PairCreated from the factory plus Sync events on those pairs (including same-block creates).
Output
aerodrome.v2.EventsPackage ref
aerodrome-v2@v0.1.1Run package
CLI
Run map_events from the command line.
substreams run aerodrome-v2@v0.1.1 map_events -e basesubstreams auth or directly on thegraph.market (see docs).README
Aerodrome V2 Substreams for Base: factory PairCreated events and Sync events on those pairs.
This package indexes Aerodrome V2 on Base from block 3200559 (factory deployment, 2023-08-28 02:41 UTC). It decodes the factory PoolCreated event (Uniswap V2 PairCreated equivalent) and Sync events on those pairs, including creates and Sync in the same block. Output is typed protobuf for substreams run / GUI.
Factory: 0x420DD381b31aEf6683db6B902084cB0FFECe40Da. Aerodrome Sync is Sync(uint256,uint256), not Uniswap V2's Sync(uint112,uint112).
| Name | Kind | Output | Description |
|---|---|---|---|
map_pool_created | map | proto:aerodrome.v2.Events | Factory PoolCreated events (pair_created). |
store_pools | store | proto:aerodrome.v2.PairCreated | Pair metadata keyed by pool:<address> for Sync filtering. |
map_events | map | proto:aerodrome.v2.Events | PairCreated plus Sync on those pairs, including same-block creates. |
wasm32-unknown-unknown (rustup target add wasm32-unknown-unknown)substreams auth or SUBSTREAMS_API_KEY)# Build WASM into ./target (override CARGO_TARGET_DIR if your environment sets it)
CARGO_TARGET_DIR=./target cargo build --target wasm32-unknown-unknown --release
substreams pack
substreams run substreams.yaml map_events \
--network base \
-s 3200559 \
-t +1000 \
-o jsonl
Use map_pool_created to inspect factory creates only. substreams gui substreams.yaml map_events -s 3200559 is useful for browsing decoded events. The first PoolCreated is shortly after deployment (around block 3204872).
Modules
PairCreated from the factory plus Sync events on those pairs (including same-block creates).
Output
aerodrome.v2.EventsDecode Aerodrome V2 factory PoolCreated events (Uniswap V2 PairCreated equivalent).
Output
aerodrome.v2.EventsIndex of Aerodrome V2 pairs created since factory deployment, keyed by pair address.
Store value
proto:aerodrome.v2.PairCreatedUpdate policy
set
Inputs
Output
sf.substreams.ethereum.v1.Events
`index_events` sets the following keys on the block: * Event signatures evt_sig:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef (signature in hex, prefixed by 0x) * Event address evt_addr:0x0123456789abcdef0123456789abcdef01234567 (address in hex, prefixed by 0x)
Output
sf.substreams.index.v1.Keys
Inputs