Module schema

Module schema 

Source
Expand description

Column-family layout for sui-rpc-store.

Each CF lives in its own submodule that declares:

  • NAME — the on-disk column-family name.
  • Key — the key type with Encode / Decode pinning its on-disk layout.
  • Value — the value type, typically Protobuf<…>.
  • options(resolver) — per-CF rocksdb::Options, obtained from the [CfOptionsResolver] with the CF’s merge operator and compaction filter (if any) layered on top.

RpcStoreSchema aggregates these into the schema passed to [sui_consistent_store::Db::open]. Keys reused across multiple CFs live in primitives.

Modules§

balance
(owner, coin_type)BalanceDelta.
checkpoint_contents
checkpoint_seqStoredCheckpointContents.
checkpoint_seq_by_digest
CheckpointDigestcheckpoint_seq.
checkpoint_summary
checkpoint_seqStoredCheckpointSummary.
effects
tx_seqStoredEffects.
epochs
EpochIdStoredEpoch.
event_bitmap
(dimension_key, bucket)BitmapBlob.
events
tx_seqStoredEvents.
object_by_owner
(OwnerKind, type, inverted_balance?, ObjectID) → latest live version.
object_by_type
(StructTag, ObjectID) → latest live version.
object_version_by_checkpoint
(ObjectID, checkpoint) -> version.
objects
(ObjectID, version)StoredObject.
package_versions
(original_package_id, version)PackageVersionInfo.
primitives
Key types shared across multiple sui-rpc-store CFs.
pruning_watermark
()PruningWatermarks.
transaction_bitmap
(dimension_key, bucket)BitmapBlob.
transactions
tx_seqStoredTransaction.
tx_metadata_by_seq
tx_seqTxMetadata.
tx_seq_by_digest
TransactionDigesttx_seq.
type_filter
Structured Move-type filters that double as RocksDB key prefixes for CFs whose keys carry a StructTag BCS-encoded inline (currently super::object_by_owner and super::object_by_type).

Structs§

RpcStoreSchema
Typed handles to every CF in the sui-rpc-store layout.

Functions§

default_rocksdb_config
The tuned [RocksDbConfig] this crate ships as its baseline for the sui-rpc-store column families.