Package Logo
solana-orderbook
solana-orderbook@v0.1.1
Total Downloads
3
Published
3 hours ago
Publisher
User Avatar SC4RECOIN

Readme

Substreams

Substreams is an indexer for onchain events when subgraphs aren't available.

https://docs.substreams.dev

Deploy subgraph

Each chain has its own configuration file. See the justfile for deployment commands.

Example: Sepolia

  1. Copy an existing configuration file and rename it to substreams-sepolia.yaml
  2. Update the package name field in the config to name: sepolia-orderbook
  3. Update the starting block initialBlock: 10108380
  4. Update the parameter field to the appropriate chain id: map_evm_events: "11155111"
  5. Update the newtork field to network: sepolia
  6. Build and publish the spkg file with just build-and-publish-evm sepolia
  7. Deploy an indexing service using the docker image specified in the justfile
  8. Set PACKAGE env variable to sepolia-orderbook-v0.1.1.spkg

Documentation

Modules

Maps icon
Maps

map
map_svm_events

d16ca13a03330985c2abeb29d08b879a49c7d40f
map map_svm_events (
paramsstring
solana:blocks_without_votessf.solana.type.v1.Block
)  -> substreams.v1.program.Data
Default param : 1399811149
substreams gui solana-orderbook@v0.1.1 map_svm_events

map
solana:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map solana:blocks_without_votes (
)  -> sf.solana.type.v1.Block
substreams gui solana-orderbook@v0.1.1 solana:blocks_without_votes

map
solana:v020:blocks_without_votes

0be93a73c65aa8ec2de4b1a47209edeea493ff29
map solana:v020:blocks_without_votes (
)  -> sf.solana.type.v1.Block

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.

substreams gui solana-orderbook@v0.1.1 solana:v020:blocks_without_votes
Block Indexes icon
Block Indexes

blockIndex
solana:program_ids_without_votes

811466d12743a8b02be8ba6649cfa9a24aa1af62
substreams gui solana-orderbook@v0.1.1 solana:program_ids_without_votes
Protobuf

Protobuf Docs Explorer

schema
substreams.v1.program
sol.instructions.v1
sol.transactions.v1
sf.solana.type.v1