Package Logo
mantra_advanced
mantra_advanced@v1.1.15
Total Downloads
479
Published
21 hours ago

Readme

A substreams package for MANTRA Chain blocks, transactions and events

[SVG and data: images/links are blocked for security reasons]

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 proto folder (directory is defined in buf.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 and generate Rust bindings from protobuf

just bindings

Develop

Add more streams

  1. Add a handler in src/lib.rs.
  2. Add the handler in substreams.yaml under modules section.

Sample codes: https://github.com/streamingfast/substreams-foundational-modules/blob/develop/cosmos-common/src/lib.rs

Develop on Canary

substreams gui -e sf.canary.mantrachain.dev:443

Create release for mantra-advanced spkg

  1. Update version in Cargo.toml and substreams.yaml — both must match the tag (the release workflow verifies this and fails on mismatch). Note that Cargo.toml uses 1.1.15 while substreams.yaml and the tag use v1.1.15.
  2. Create a git tag using the mantra-advanced@v*.*.* format
git tag mantra-advanced@v1.1.x
  1. Push the tag
git push origin mantra-advanced@v1.1.x

Documentation

Modules

Maps icon
Maps

map
all_events

b24f0114dba246b557c98626b3682edcc82b4c47
map all_events (
blocksf.cosmos.type.v2.Block
)  -> sf.substreams.cosmos.v1.EventList
substreams gui mantra-advanced@v1.1.15 all_events

map
all_detailed_blocks

b8bdce4231c75ff2f6b2122216d2f7284a85ef17
map all_detailed_blocks (
paramsstring
)  -> mantra.all.custom.DetailedBlock
Default param : 14488888
substreams gui mantra-advanced@v1.1.15 all_detailed_blocks

map
explorer_blocks

71e4ccf17b198559657d70e94322cd45bcb6225f
substreams gui mantra-advanced@v1.1.15 explorer_blocks

map
all_transactions

5077e4728fe29161afb8c2b47cd395bacb3d677f
map all_transactions (
paramsstring
)  -> mantra.all.custom.TransactionList
Default param : 14488888
substreams gui mantra-advanced@v1.1.15 all_transactions

map
filtered_events

a29907a25382f71f76c79c944313041d8c90d935
Default param : (type:message && attr:action) || (type:wasm && attr:_contract_address)
substreams gui mantra-advanced@v1.1.15 filtered_events

map
filtered_event_groups

d12f9602ccc0b4d50af326b2017e9ba77588fee6
Default param : type:wasm && attr:_contract_address
substreams gui mantra-advanced@v1.1.15 filtered_event_groups

map
filtered_events_by_attribute_value

cb378327f90d75b5819b708a16d10cefe580477f
map filtered_events_by_attribute_value (
paramsstring
)  -> sf.substreams.cosmos.v1.EventList
Default param : type:wasm && attr:_contract_address:mantra
substreams gui mantra-advanced@v1.1.15 filtered_events_by_attribute_value

map
filtered_event_groups_by_attribute_value

f3d8031944cdd1f54fca9d1eba7b9a50c75b16fd
map filtered_event_groups_by_attribute_value (
paramsstring
)  -> sf.substreams.cosmos.v1.EventList
Default param : type:wasm && attr:_contract_address:mantra
substreams gui mantra-advanced@v1.1.15 filtered_event_groups_by_attribute_value

map
cosmos:all_events

b24f0114dba246b557c98626b3682edcc82b4c47

all_events reads from the sf.cosmos.type.v2.Block source and outputs a list of all events in the block. Some events are at the block level, others appear inside the transactions.

substreams gui mantra-advanced@v1.1.15 cosmos:all_events
Block Indexes icon
Block Indexes

blockIndex
index_events

c58e05630f6be72a75791baeadbafbdd865bed48
substreams gui mantra-advanced@v1.1.15 index_events
Protobuf

Protobuf Docs Explorer

ibc.applications.fee.v1
cosmos.gov.v1beta1
cosmos.tx.config.v1
cosmos.base.abci.v1beta1
cosmos_proto
cosmos.store.streaming.abci
cosmos.crypto.secp256r1
ibc.applications.transfer.v2
tendermint.libs.bits
cosmwasm.wasm.v1
cosmos.evm.vm.v1
ibc.core.connection.v1
cosmos.evm.erc20.v1
cosmos.feegrant.v1beta1
cosmos.app.v1alpha1
cosmos.mint.v1beta1
mantrachain.tax.v1
cosmos.crypto.keyring.v1
ibc.applications.interchain_accounts.controller.v1
tendermint.p2p
cosmos.store.snapshots.v1
mantrachain.sanction.v1
tendermint.abci
ibc.core.client.v1
cosmos.base.v1beta1
ibc.lightclients.wasm.v1
connect.types.v2
cosmos.bank.v1beta1
cosmos.evm.feemarket.v1
ibc.applications.transfer.v1
osmosis.tokenfactory
cosmos.slashing.v1beta1
cosmos.evm.types.v1
tendermint.version
cosmos.crisis.v1beta1
cosmos.vesting.v1beta1
cosmos.crypto.hd.v1
ibc.lightclients.tendermint.v1
cosmos.params.v1beta1
cosmos.msg.v1
gogoproto
cosmos.crypto.multisig.v1beta1
ibc.applications.interchain_accounts.host.v1
cosmos.ics23.v1
connect.marketmap.v2
cosmos.base.tendermint.v1beta1
mantra.all.custom
cosmos.group.v1
tendermint.crypto
cosmos.nft.v1beta1
cosmos.evidence.v1beta1
ibc.core.channel.v1
cosmos.msg.textual.v1
connect.oracle.v2
cosmos.store.v1beta1
mantrachain.xfeemarket.v1
ibc.lightclients.solomachine.v3
cosmos.crypto.ed25519
ibc.lightclients.solomachine.v2
cosmos.upgrade.v1beta1
cosmos.distribution.v1beta1
cosmos.tx.signing.v1beta1
ratelimit.v1
cosmos.authz.v1beta1
cosmos.auth.v1beta1
cosmos.circuit.v1
cosmos.tx.v1beta1
sf.cosmos.type.v2
ibc.applications.interchain_accounts.v1
cosmos.crypto.multisig
cosmos.store.internal.kv.v1beta1
cosmos.crypto.secp256k1
cosmos.gov.v1
amino
cosmos.consensus.v1
osmosis.tokenfactory.v1beta1
feemarket.feemarket.v1
cosmos.staking.v1beta1
ibc.core.commitment.v1
tendermint.types