EVM Substreams
Extended Blocks: Ethereum, Base, BSC, Polygon, ArbitrumOne, Optimism, Avalanche, Tron EVM
Directory Structure
evm-dex/ # DEX aggregator (db_out) + clickhouse/ + postgres/
evm-transfers/ # Transfer aggregator (db_out) + clickhouse/ + postgres/
evm-balances/ # Balance aggregator (db_out) + clickhouse/ + postgres/
evm-supply/ # Supply aggregator (db_out) + clickhouse/ + postgres/
evm-nfts/ # NFT aggregator (db_out) + clickhouse/ + postgres/
evm-contracts/ # Contract metadata aggregator (db_out) + clickhouse/ + postgres/
blocks/ # Block metadata + clickhouse/
dex/ # Individual DEX map_events modules
dex-pools/ # Native-callable shared pool creation decoder
dex-swaps-pools/ # One Block input -> Hosted Store + legacy pool store
dex-nfts/ # NFT market protocol modules (for example, Seaport)
erc20/ # ERC-20 modules (transfers/ balances/ supply/ tokens/)
native/ # Native transfer/balance modules (transfers/ balances/)
erc4626/ # ERC-4626 tokenized-vault events (map_events)
erc1155/ # ERC-1155 multi-token events
proto/ # Protobuf definitions
common/ # Shared Rust helpers
scripts/ # Utility scripts and analysis notes
spkg/ # Pre-built Substreams packages
DEX Modules (/dex)
Complete-block V2/V3 pool state is maintained in
substreams-evm-extended/dex/pool-state.
That package requires Extended blocks and provides one map_events module with
wire-compatible dex.pool_state.v1.BlockPoolState output. The old
dex-pool-state, map_pool_closes and map_pool_changes build paths have moved;
transaction-level DEX modules below remain here. Contract ABI structs are maintained
in substreams-abis.
Uniswap Family
| Module | Protocol | Events |
|---|
uniswap-v1 | Uniswap V1, JustSwap V1 | TokenPurchase, EthPurchase |
uniswap-v2 | Uniswap V2, SunSwap V2 + forks | Swap, Sync, Mint, Burn |
uniswap-v3 | Uniswap V3 + forks | Swap, Mint, Burn, Flash |
uniswap-v4 | Uniswap V4 | Swap, ModifyLiquidity, Initialize |
Standalone DEX Protocols
| Module | Protocol | Events |
|---|
aerodrome | Aerodrome / Velodrome | Swap, Fees, Mint, Burn |
balancer | Balancer V2/V3 | Swap (WeightedPool, StablePool, Vault) |
bancor | Bancor V3 | TokensTraded (StandardPoolConverter) |
cow | CoW Protocol | Trade (GPv2Settlement) |
curvefi | Curve Finance | TokenExchange, [REDACTED:Token] |
dodo | DODO | DODOSwap |
kyber-elastic | KyberSwap Elastic | Swap (Pool) |
sunpump | SunPump | Traded |
traderjoe | Trader Joe V2 (Liquidity Book) | Swap (packed bytes32 amounts) |
woofi | WOOFi | WooSwap (WooPPV2) |
EVM DEX Factory Addresses
ETH Mainnet
| DEX | Protocol | Factory Address |
|---|
| Uniswap V2 | uniswap_v2 | 0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f |
| Uniswap V3 | uniswap_v3 | 0x1f98431c8ad98523631ae4a59f267346ea31f984 |
| Uniswap V4 | uniswap_v4 | 0x000000000004444c5dc75cb358380d2e3de08a90 |
| SushiSwap V2 | uniswap_v2 | 0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac |
| SushiSwap V3 | uniswap_v3 | 0xbaceb8ec6b9355dfc0269c18bac9d6e2bdc29c4f |
| PancakeSwap V2 | uniswap_v2 | 0x1097053fd2ea711dad45caccc45eff7548fcb362 |
| Balancer V2 | balancer | 0xba12222222228d8ba445958a75a0704d566bf2c8 |
| Curve Finance | curvefi | Various pool contracts |
| Bancor V3 | bancor | 0xeef417e1d5cc832e619ae18d2f140de2999dd4fb |
| CoW Protocol | cow | 0x9008d19f58aabd9ed0d60971565aa8510560ab41 |
| DODO | dodo | Various pool contracts |
| WOOFi | woofi | Various WooPPV2 contracts |
| Trader Joe V2 | traderjoe | 0x8e42f2f4101563bf679975178e880fd87d3efd4e |
| KyberSwap Elastic | kyber_elastic | Various pool contracts |
Arbitrum One
| DEX | Protocol | Factory Address |
|---|
| Uniswap V3 | uniswap_v3 | 0x1f98431c8ad98523631ae4a59f267346ea31f984 |
| Uniswap V4 | uniswap_v4 | 0x360e68faccca8ca495c1b759fd9eee466db9fb32 |
| SushiSwap V3 | uniswap_v3 | 0x1af415a1eba07a4986a52b6f2e7de7003d82231e |
| Camelot | uniswap_v2 | 0x6eccab422d763ac031210895c81787e87b43a652 |
Base
| DEX | Protocol | Factory Address |
|---|
| Uniswap V3 | uniswap_v3 | 0x33128a8fC17869897dcE68Ed026d694621f6FDfD |
| Uniswap V4 | uniswap_v4 | 0x7c5f5a4bbd8fd63184577525326123b519429bdc |
| Aerodrome | aerodrome | 0x420dd381b31aef6683db6b902084cb0ffece40da |
TRON (TVM)