docs.rs failed to build imbibe-indexer-0.0.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
imbibe-indexer
This crate contains the code for indexing logic. Currently, it provides two kinds of cosmos indexers: LiveIndexer and BackfillIndexer, and can be started by calling the respective start method.
LiveIndexer
- It subscribes the latest block with the web-socket endopoint of a tendermint/cometbft node.
- Takes an optional
tokio::sync::oneshot::Senderto send the height of the first block returned by the web-socket endpoint. - Upon receiving a new block,
Blockand its constituentTxentities get created and then persisted to the database. - Should run indefinitely as long as the web-socket connection stays alive.
BackfillIndexer
- Determines the missing blocks, and then performs parallel querying of the blocks from the web-socket endpoint.
- Similar to
LiveIndexer, extracts out the entities and persists to the database. - Finishes when all the missing blocks get persisted to the database.