All packages
sei-scanner

sei-scanner

Rimantovas
v0.1.3/999 downloads

Package ref

sei-scanner@v0.1.3

Run package

Start block
0, the module's first block

This module reads a store, which starts empty at the module's first block: it runs from there, so its output is from then, not from the chain head. Any later block would first need the store rebuilt up to it.

README

Modules

The pipeline processes blockchain data through 7 stages:

  1. map_pool_created - Discovers new liquidity pools from factory contracts
  2. store_pools - Stores canonical pool metadata (tokens, fees, addresses)
  3. map_swaps - Extracts swap/trade events from pools
  4. map_mints - Tracks liquidity additions
  5. map_burns - Tracks liquidity removals
  6. map_token_accounts - Monitors ERC20 token balance changes
  7. graph_out - Combines all outputs into unified structured message

Supported DEX Protocols

  • Sailor (Uniswap V3 fork) - Factory: 0xa51136931fdd3875902618bf6b3abe38ab2d703b
  • Dragonswap V2 (Uniswap V3 fork)
  • Dragonswap V1 (Uniswap V2 style)

Installation stuff

  1. Install Rust: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && source $HOME/.cargo/env # to configure your current shell
  2. Install WASM: rustup target add wasm32-unknown-unknown
  3. Install CLI: brew install streamingfast/tap/substreams
  4. Install Buf: npm install -g @bufbuild/buf (https://buf.build/docs/cli/installation)

Deployment Guide

To deploy updates to the substreams registry:

  1. Increment the version field in substreams.yaml
  2. Run substreams build to compile the WASM binary
  3. Run substreams registry publish {name of new spkg file} to upload the package

Modules

Execution graph

7 modules