Module ledger

Source

Re-exportsΒ§

pub use ledger_manager::LedgerManager;

ModulesΒ§

ledger_actions πŸ”’
ledger_config πŸ”’
ledger_event πŸ”’
ledger_manager
ledger_reducer πŸ”’
ledger_service πŸ”’
ledger_state πŸ”’
read
write

StructsΒ§

LEDGER_HASH_EMPTIES πŸ”’
Array size needs to be changed when the tree’s depth change
LedgerAccountIndex
LedgerConfig
LedgerCtx
LedgerState

EnumsΒ§

LedgerAction
LedgerEvent

ConstantsΒ§

LEDGER_DEPTH

TraitsΒ§

LedgerService

FunctionsΒ§

complete_height_tree_with_empties
Given the hash of the subtree containing all accounts of height subtree_height compute the hash of a tree of size LEDGER_DEPTH if all other nodes were empty.
complete_num_accounts_tree_with_empties
Given the hash of the subtree containing num_accounts accounts compute the hash of a tree of size LEDGER_DEPTH if all other nodes were empty.
hash_node_at_depth
ledger_empty_hash_at_depth
tree_height_for_num_accounts
Returns the minimum tree height required for storing num_accounts accounts.

Type AliasesΒ§

LedgerActionWithMetaRef
LedgerAddress