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 Admin Dashboard Website (product)
- Bot AI (Chatizalo) (product)
- Bot AI Admin Dashboard Website (product)
This repository contains the source code of the Smart Contracts.
Built With:
- Framework: Foundry
- Language: Solidity
- Smart Contracts Library: OpenZeppelin
- L2 Blockchain: Arbitrum
- Account Abstraction: ERC-4337
- Web3 Data Feed: Chainlink
1. Install 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 keys indicated in file example_env
4. Install Dependencies:
yarn
git submodule update --init --recursive
5. Usage:
Build
# Local development (faster builds)
yarn run build:local
# Production build (optimized)
yarn run build:prod
Test
# Run tests with local profile
yarn run test:local
# Run tests with production profile
yarn run test:prod
# Run coverage tests
yarn run test:coverage
# Run gas report
yarn run test:gas
Format
forge fmt
Deploy
# Deploy Simulation
yarn run deploy:simulate
# Real Deploy
yarn run deploy:prod
# Real Deploy + Verify contracts
yarn run deploy:verify
# Deploy only ChatterPay contract
yarn run deploy:chatterpay
# Deploy + Verify only ChatterPay contract
yarn run deploy:chatterpay:verify
If you would like to explore more details about the source code, you can review this link.
Thank you for considering helping out with the source code! We welcome contributions from anyone on the internet, and are grateful for even the smallest of fixes!
If you'd like to contribute to ChatterPay, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base.
Please make sure your contributions adhere to our coding guidelines.
Contributors: