Expand description
Indexer pipelines that populate the sui-rpc-store schema
from observed Checkpoints, plus the orchestrator
(Indexer) that wires them up against a shared
[Synchronizer].
Each pipeline submodule implements the
Processor + sequential::Handler pair the
sui-indexer-alt-framework drives: process turns a checkpoint
into a Vec<Value> (with the heavy lifting done in the
processor-pool, off the commit hot path), batch folds many
values into a single Batch, and commit stages the batch’s
writes against a [sui_consistent_store::Connection] from
[sui_consistent_store::Store].
Every pipeline targets the same backing RpcStoreSchema.
Modules§
- balance
- Sequential pipeline that feeds the
schema::balanceCF. - checkpoint_
broadcast - Sequential pipeline that re-publishes each ingested checkpoint to
a [
tokio::sync::broadcast] channel, in checkpoint order. - checkpoint_
contents - Sequential pipeline that populates the
schema::checkpoint_contentsCF: one row per checkpoint carrying the BCS-encodedCheckpointContents. - checkpoint_
seq_ by_ digest - Sequential pipeline that populates the
schema::checkpoint_seq_by_digestCF: oneCheckpointDigest → checkpoint_seqrow per checkpoint. - checkpoint_
summary - Sequential pipeline that populates the
schema::checkpoint_summaryCF: one row per checkpoint carrying the BCS-encodedCheckpointSummaryand its quorum signature. - effects
- Sequential pipeline that populates the
schema::effectsCF: one row per executed transaction carrying itssui_types::effects::TransactionEffectsand the set of objects loaded but not modified during execution. - epochs
- Sequential pipeline that populates the
schema::epochsCF. - event_
bitmap - Sequential pipeline that populates the
schema::event_bitmapCF. - events
- Sequential pipeline that populates the
schema::eventsCF: one row per executed transaction carrying itsTransactionEvents. - object_
by_ owner - Sequential pipeline that populates the
schema::object_by_ownerindex. - object_
by_ type - Sequential pipeline that populates the
schema::object_by_typeindex, using the sameDelete-then-Putdiff pattern asobject_by_owner. - object_
version_ by_ checkpoint - Sequential pipeline that populates the
schema::object_version_by_checkpointCF, which resolves an object’s version as of a checkpoint. - objects
- Sequential pipeline that populates the
schema::objectsCF: one row per(ObjectID, version)written or removed by any transaction in the checkpoint. - package_
versions - Sequential pipeline that populates the
schema::package_versionsCF: one row per(original_package_id, version)published in the checkpoint. - pruner
- Background pruner for the historical column families.
- restore
- Entry point for bulk-loading the
RpcStoreSchema’s derived-index CFs from a [RestoreSource]. - transaction_
bitmap - Sequential pipeline that populates the
schema::transaction_bitmapCF. - transactions
- Sequential pipeline that populates the
schema::transactionsCF: one row per executed transaction, keyed by its assignedtx_seq. - tx_
metadata_ by_ seq - Sequential pipeline that populates the
schema::tx_metadata_by_seqCF: oneMetadatarow per executed transaction, keyed bytx_seq. - tx_
seq_ by_ digest - Sequential pipeline that populates the
schema::tx_seq_by_digestCF: oneTransactionDigest → tx_seqrow per executed transaction.
Structs§
- Indexer
- Top-level orchestrator. Wraps a
framework::Indexerover theStoreforRpcStoreSchematogether with a [Synchronizer] coordinating cross-pipeline snapshots, and exposes the per-pipeline registration shape this crate needs.
Constants§
- METRICS_
PREFIX - Metrics prefix used for both the framework indexer and the
underlying ingestion service. Surfaced as a constant so the
prefix is consistent across the metrics built in
Indexer::newand the ones the standalone-binary entry point builds when it constructs theIngestionClient/IngestionServicefromClientArgs.
Functions§
- checkpoint_
input_ objects - First-seen input version of every object that existed before
the checkpoint and was used as an input to some transaction in
it. Mirrors the helper of the same name in
sui-indexer-alt-consistent-store::handlers. - checkpoint_
output_ objects - Last-seen output version of every object that was created or
modified by some transaction in the checkpoint and is still
live at the end. Mirrors the helper of the same name in
sui-indexer-alt-consistent-store::handlers. - first_
tx_ seq - The sequence number of the first transaction in
checkpoint. - tx_
seq_ at - The
tx_seqof the transaction at indexiwithincheckpoint.