Inputs
All packages
base-orderbook
SC4RECOIN
Package ref
base-orderbook@v0.1.1Run package
CLI
Run map_evm_events from the command line.
substreams run base-orderbook@v0.1.1 map_evm_events -e base --start-block -1Authenticate by running
substreams auth or directly on thegraph.market (see docs).README
Substreams
Substreams is an indexer for onchain events when subgraphs aren't available.
Deploy subgraph
Each chain has its own configuration file. See the justfile for deployment commands.
Example: Sepolia
- Copy an existing configuration file and rename it to
substreams-sepolia.yaml - Update the package name field in the config to
name: sepolia-orderbook - Update the starting block
initialBlock: 10108380 - Update the parameter field to the appropriate chain id to
map_evm_events: "11155111" - Update the neywork field to
network: sepolia - Build and publish the spkg file with
just build-and-publish-evm sepolia - Deploy an indexing service using the docker image specified in the justfile
- Set PACKAGE env variable to
sepolia-orderbook-v0.1.1.spkg - Test with
just debug-gui sepolia 10108380(next 10 block should have events)
Modules
Execution graph
Show 2 dependencies
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