Package Logo
sei-scanner
sei-scanner@v0.1.3
Total Downloads
23
Published
2 days ago
Publisher
User Avatar Rimantovas

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

Documentation

Modules

Maps icon
Maps

map
map_pool_created

8253503e8a366ce10c8599f3dcd7be54d97af90f
map map_pool_created (
blocksf.ethereum.type.v2.Block
)  -> trading.Pools
substreams gui sei-scanner@v0.1.3 map_pool_created

map
map_swaps

437bd0d9a3515a554c31b2f0f4efb68efa79774c
substreams gui sei-scanner@v0.1.3 map_swaps

map
map_mints

78bc5f3a6c08168500a551326a73e82b2468d5d2
substreams gui sei-scanner@v0.1.3 map_mints

map
map_burns

fa20a3b4e9665746430c6b526cacffe20493d31c
substreams gui sei-scanner@v0.1.3 map_burns

map
map_token_accounts

62d84d187ee1eb95361db0fd467bce33e92d0bb4
map map_token_accounts (
)  -> trading.TokenAccounts
substreams gui sei-scanner@v0.1.3 map_token_accounts

map
graph_out

162087c0704746ce8487ba7689cfb7fbeb3822f0
substreams gui sei-scanner@v0.1.3 graph_out
Stores icon
Stores

store
store_pools

103304821cf57f16140c8b0253e0fda339a317ac
store <set,trading.Pool> store_pools (
)
substreams gui sei-scanner@v0.1.3 store_pools
Protobuf

Protobuf Docs Explorer

sf.ethereum.type.v2
contract.v1
sf.ethereum.substreams.v1
trading