This repo contains an example Envio indexer built using TypeScript for the Compound V2 forks across multiple chains.
This repo was forked from the original indexer built by Joss Duff, one of Envio's first grantees.
LiquidateBorrow
event from the pool contracts of below Compound V2 forks are indexed, specifically storing the amount of tokens seized and liquidators.
Addresses of all the pool contracts are stored in the config.yaml
file.
- Compound V2 on Ethereum Mainnet
- Flux Finance on Ethereum Mainnet
- Iron Bank on Ethereum Mainnet
- Strike Finance on Ethereum Mainnet
- Iron Bank on Optimism
- Sonne Finance on Optimism
- Benqi Lending on Avalanche C-chain
- Iron Bank on Avalanche C-chain
- Venus on BSC
The indexer has been built using v0.0.21 of Envio.
- Clone the repo
- Install any other pre-requisite packages for Envio listed here
- Install Envio via
npm i -g envio@v0.0.21
- Generate indexing code via
envio codegen
- Run the indexer via
envio dev
(make sure you have Docker running) - Stop the indexer via
envio start
Please refer to the documentation website for a thorough guide on all Envio indexer features