Module tables

Source
Expand description

This module defines the following tables:

Slot Tables:

  • SlotNumber -> StoredSlot
  • SlotNumber -> Vec<BatchNumber>

Batch Tables:

  • BatchNumber -> StoredBatch
  • BatchHash -> BatchNumber

Tx Tables:

  • TxNumber -> (TxHash,Tx)
  • TxHash -> TxNumber

Event Tables:

  • (EventKey, TxNumber) -> EventNumber
  • EventNumber -> (EventKey, EventValue)

JMT Tables:

  • KeyHash -> Key
  • (Key, Version) -> JmtValue
  • NodeKey -> Node

Module Accessory State Table:

  • (ModuleAddress, Key) -> Value

Constants§

LEDGER_TABLES
A list of all tables used by the LedgerDB. These tables store rollup “history” - meaning transaction, events, receipts, etc.
NATIVE_TABLES
A list of all tables used by the NativeDB. These tables store “accessory” state only accessible from a native execution context, to be used for JSON-RPC and other tooling.
STATE_TABLES
A list of all tables used by the StateDB. These tables store rollup state - meaning account balances, nonces, etc.