Skip to content

subsquid-labs/evm-factory-example

Repository files navigation

Open in Gitpod

Uniswap v3 swaps

This sample squid indexes Uniswap v3 swaps on Ethereum Mainnet. The squid listens to the PoolCreated events to dynamically update the set of trading pools using the factory contract pattern.

One can use this example as a template for scaffolding a new squid project with sqd init:

sqd init my-new-squid --template https://github.com/subsquid-labs/factory-example

Prerequisites

Running

Clone the repo and navigate to the root folder.

npm ci
sqd build
# start the database
sqd up
# starts a long-running ETL and blocks the terminal
sqd process

# starts the GraphQL API server at localhost:4350/graphql
sqd serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published