Skip to content

ChatterPay: A wallet for WhatsApp that integrates AI and Account Abstraction, enabling any user to easily and securely use blockchain without technical knowledge.

Notifications You must be signed in to change notification settings

P4-Games/ChatterPay-Subgraph

Repository files navigation

ChatterPay

Chatterpay is a Wallet for WhatsApp that integrates AI and Account Abstraction, enabling any user to use blockchain easily and securely without technical knowledge.

Create Wallet, Transfer, Swap, and mint NFTs — directly from WhatsApp!

Built for: Level Up Hackathon - Ethereum Argentina 2024 & Ethereum Uruguay 2024

Build By: mpefaur, tomasfrancizco, TomasDmArg, gonzageraci, dappsar

Get started with our Bot 🤖:

WhatsApp Bot

Components:

 

Components Interaction

About this repo

This repository contains a GraphQL API designed for tracking Deposits from non-Chatters to ChatterPay Accounts.

It is intended to index from the block 15400000 in scroll mainnet, which represents an approximate date from when the accounts started running under the last deploy.

Also only the following tokens are included: USDT, WETH and WBTC, which are currently supported by ChatterPay. More may be added in the future.

Built With:

Getting Started

1. Install these Requirements:

  • git
  • nvm (allows you to quickly install and use different versions of node via the command line.)
  • node js & npm (installed with nvm)
  • graph-client: npm install -g @graphprotocol/graph-cli or yarn global add @graphprotocol/graph-cli

2. Clone repository:

   git clone https://github.com/P4-Games/ChatterPay-Subgraph
   cd ChatterPay-Subgraph

3. Install Dependencies:

- yarn install # with yarn
- npm i # with npm

If you have troubles with dependencies, try this:

set http_proxy=
set https_proxy=
npm config rm https-proxy
npm config rm proxy
npm config set registry "https://registry.npmjs.org"
yarn cache clean
yarn config delete proxy
yarn --network-timeout 100000

4. Generate folder 'generated':

graph codegen

5. Build:

graph build

6. Run Local Graph Node (optional):

If you want to test your subgraph locally instead of deploying to The Graph Hosted Service or Subgraph Studio:

docker-compose up

7. Deploy:

Local Deploy

graph create <your-subgraph-name> --node http://localhost:8020
graph deploy <your-subgraph-name> --node http://localhost:8020 --ipfs http://localhost:5001

Hosted Service Deploy

# Authenticate with your deploy key
graph auth --product hosted-service <YOUR_DEPLOY_KEY>

# Create your subgraph in The Graph Hosted Service, then deploy it
graph deploy --product hosted-service <GITHUB_USER>/<SUBGRAPH_NAME>

Additional Info

Contribution:

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. If you wish to submit more complex changes though, please check up with the core devs first to ensure those changes are in line with the general philosophy of the project and/or get some early feedback which can make both your efforts much lighter as well as our review and merge procedures quick and simple.

Contributors:

 


X Instagram LinkedIn Facebook YouTube WhatsApp Community

About

ChatterPay: A wallet for WhatsApp that integrates AI and Account Abstraction, enabling any user to easily and securely use blockchain without technical knowledge.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •