Chatterpay is a Wallet for WhatsApp that integrates AI and Account Abstraction, enabling any user to use blockchain easily and securely without technical knowledge.
Built for: Level Up Hackathon - Ethereum Argentina 2024
Build By: mpefaur, tomasfrancizco, TomasDmArg, gonzageraci, dappsar
Components:
- Landing Page (product, source code)
- User Dashboard Website (product, source code)
- Backend API (source code)
- Smart Contracts (source code) (this Repo)
- Data Indexing (Subgraph) (source code)
- Bot AI (Chatizalo) (product)
- Bot AI Admin Dashboard Website (product)
This repository contains the source code of the Smart Contracts.
Build With:
- Framework: Foundry
- Language: Solidity
- Smart Contracts Library: OpenZeppelin
- L2 Blockchain: Scroll
- Account Abstraction L2 Keystore: Scroll L1SLOAD
- Web3 Data Feed: api3
1. Install these Requirements:
2. Clone repository:
git clone https://github.com/P4-Games/ChatterPay-SmartContracts
cd ChatterPay-SmartContracts
3. Complete .env file:
Create a .env file in the root folder and populate it with the following keys and values:
ETH_SEPOLIA_RPC_URL=Your node provider URL for Sepolia
SCROLL_SEPOLIA_RPC_URL=Your node provider URL for Scroll-Sepolia
PRIVATE_KEY=Your private key
SCROLLSCAN_API_KEY=Your Scrollscan API key
4. Install Dependencies:
git submodule update --init --recursive
5. Usage:
Build
$ forge build
Test
$ forge test
Format
$ forge fmt
Gas Snapshots
$ forge snapshot
Anvil
$ anvil
Deploy
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
Cast
$ cast <subcommand>
Help
$ forge --help
$ anvil --help
$ cast --help