Inputs

mantra_all
Package ref
mantra-all@v0.3.1Run package
CLI
Run explorer_blocks from the command line.
substreams run mantra-all@v0.3.1 explorer_blocks -e mantra-mainnet --start-block -1substreams auth or directly on thegraph.market (see docs).README
A substreams package for MANTRA Chain blocks, transactions and events
Inherit all modules from mantra_common, plus all_transactions, which is a module that includes events and transaction body. If you need memo, messages, please use all_transactions.
Usage
substreams build
substreams auth
substreams gui # Get streaming!
substreams registry login # Login to substreams.dev
substreams registry publish # Publish your Substreams to substreams.dev
Build protobuf bin file
Put protobuf files in
protofolder (directory is defined inbuf.work.yaml)
1. Install tools
brew install bufbuild/buf/buf
2. Download dependencies
# Install deps in proto module
buf dep update proto
3. Build protobuf bin file
buf build --as-file-descriptor-set -o generated-mantra-all-buf.binpb
4. Generate Rust structs from protobuf
substreams protogen substreams.yaml --exclude-paths sf/substreams,google
Develop
Add more streams
- Add a handler in
src/lib.rs. - Add the handler in
substreams.yamlundermodulessection.
Sample codes: https://github.com/streamingfast/substreams-foundational-modules/blob/develop/cosmos-common/src/lib.rs
Create release for mantra-all spkg
- Update version in
Cargo.tomlandsubstreams.yaml - Create a git tag
It's better to align the version number with the one in
substreams.yaml
git tag v0.1.x
- Push the tag
git push origin v0.1.x
Modules
Execution graph
Inputs
Output
mantra.all.custom.v1.EventList
Inputs
Inputs
Output
mantra.all.custom.v1.EventList
Inputs
Output
mantra.all.custom.v1.EventList
Inputs
Output
mantra.all.custom.v1.EventList
Inputs
Output
mantra.all.custom.v1.EventList
Inputs
Output
sf.substreams.index.v1.Keys
Inputs
