Skip to main content

Uniswap V3

This is a development repo that is undergoing continual changes for benchmarking purposes.

This repo contains an example Envio indexer built using TypeScript for the Uniswap V3 USDC / ETH 0.05% pool deployed on Ethereum Mainnet.

Swap events from the contract are indexed as entities and the LiquidityPool entity is updated on each Swap event to track cumulative statistics for the pool.

The indexer has been built using v0.0.21 of Envio.

Steps to run the indexer

  1. Clone the repo
  2. Install any other pre-requisite packages for Envio listed here
  3. Install Envio via npm i -g envio@v0.0.21
  4. Generate indexing code via envio codegen
  5. Run the indexer via envio dev (make sure you have Docker running)
  6. Stop the indexer via envio stop