All packages
sei-scanner

sei-scanner

Rimantovas
v0.1.3/988 downloads/Repository

Package ref

sei-scanner@v0.1.3

Run package

CLI

Run graph_out from the command line.

substreams run sei-scanner@v0.1.3 graph_out -e sei-mainnet
Authenticate by running substreams auth or directly on thegraph.market (see docs).

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