Inputs
All packages
solana-devnet-m0-orderbook
jonalvarezz
Package ref
solana-devnet-m0-orderbook@v0.2.0Run package
CLI
Run map_svm_events from the command line.
substreams run solana-devnet-m0-orderbook@v0.2.0 map_svm_events -e solana-devnet --start-block -1Authenticate by running
substreams auth or directly on thegraph.market (see docs).README
Substreams
Substreams is an indexer for the M0 OrderBook program on Solana.
Deploy substream
Each network has its own configuration file. See the justfile for deployment commands.
Example: Solana devnet
- Copy an existing configuration file and rename it to
substreams-solana-devnet.yaml - Update the package name field in the config to
name: solana-devnet-orderbook - Update the starting block
initialBlock: 436247835 - Update the parameter field to the appropriate chain id to
map_svm_events: "1399811150" - Update the network field to
network: solana-devnet - Build and publish the spkg file with
just build-and-publish solana-devnet - Deploy an indexing service using the docker image specified in the justfile
- Set PACKAGE env variable to
solana-devnet-orderbook-v0.1.1.spkg - Test with
just debug-gui solana-devnet 436247835(next 10 blocks should have events)
Modules
Execution graph
Show 3 dependencies
Output
sf.solana.type.v1.BlockInputs
Output
sf.substreams.index.v1.Keys
`blocks_without_votes` allows you to consume a full Solana Block without Vote instructions (`Vote111111111111111111111111111111111111111`). If you consume it on HISTORICAL data (+1000 blocks from HEAD), you will be reading from the StreamingFast cache, thus saving costs on the amount of TB read.
Output
sf.solana.type.v1.BlockInputs