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 withEncode/Decodepinning its on-disk layout.Value— the value type, typicallyProtobuf<…>.options(resolver)— per-CFrocksdb::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_seq→StoredCheckpointContents.- checkpoint_
seq_ by_ digest CheckpointDigest→checkpoint_seq.- checkpoint_
summary checkpoint_seq→StoredCheckpointSummary.- effects
tx_seq→StoredEffects.- epochs
EpochId→StoredEpoch.- event_
bitmap (dimension_key, bucket)→BitmapBlob.- events
tx_seq→StoredEvents.- object_
by_ owner (OwnerKind, type, inverted_balance?, ObjectID)→ latest liveversion.- object_
by_ type (StructTag, ObjectID)→ latest liveversion.- 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-storeCFs. - pruning_
watermark ()→PruningWatermarks.- transaction_
bitmap (dimension_key, bucket)→BitmapBlob.- transactions
tx_seq→StoredTransaction.- tx_
metadata_ by_ seq tx_seq→TxMetadata.- tx_
seq_ by_ digest TransactionDigest→tx_seq.- type_
filter - Structured Move-type filters that double as RocksDB key
prefixes for CFs whose keys carry a
StructTagBCS-encoded inline (currentlysuper::object_by_ownerandsuper::object_by_type).
Structs§
- RpcStore
Schema - Typed handles to every CF in the
sui-rpc-storelayout.
Functions§
- default_
rocksdb_ config - The tuned [
RocksDbConfig] this crate ships as its baseline for thesui-rpc-storecolumn families.