Skip to content

Squid indexing three chains for the network launch quests

License

Notifications You must be signed in to change notification settings

nunes2020/triple-chain-squid

Repository files navigation

Squid tracking USDC transfers across three chains

This squid captures USDC Transfer events on ETH, BSC and Base, stores them in the same database and serves the data over a common GraphQL API.

Data ingester ("processor") code for each network is located at the corresponding src/ subdirectory: src/eth, src/bsc or src/base. The scripts file commands.json contains commands for running each processor (process:eth, process:bsc and process:base correspondingly). GraphQL server runs as a separate process started by sqd serve. You can also use sqd run to run all the services at once.

The squid uses Subsquid Network as its primary data source.

Dependencies: Node.js, Docker, Git.

Quickstart

# 0. Install @subsquid/cli a.k.a. the sqd command globally
npm i -g @subsquid/cli

# 1. Clone the repo
git clone https://github.com/subsquid-labs/quest-triple-chain-squid
cd quest-triple-chain-squid

# 2. Install dependencies
npm ci

# 3. Start containers for the Postgres database and the network query gateway
sqd up

# 4. Build and start the processors _in separate terminals_
sqd process:eth
sqd process:bsc
sqd process:base

# 5. Start the GraphQL server by running in yet another terminal
sqd serve

A GraphiQL playground will be available at localhost:4350/graphql.

About

Squid indexing three chains for the network launch quests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.1%
  • JavaScript 5.9%