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-SmartContracts3. 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
BACKEND_EOA=chatterpay's backend EOA wallet address
BACKEND_PK=chatterpay's bachend private key (seed)4. Install Dependencies:
yarngit submodule update --init --recursive5. Usage:
Build
$ forge clean && forge buildTest
$ forge testFormat
$ forge fmtGas Snapshots
$ forge snapshotAnvil
$ anvilDeploy
$ 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