Skip to main content

Module ledger

Module ledger 

Source
Expand description

Balance ledger types.

BalanceLedger is the engine-owned runtime source of truth for account balances. Runtime cash movement must be reduced through BalanceUpdate effects so replay, snapshots, and followers share one ordered contract.

Structs§

BalanceLedger
Engine-owned runtime balance ledger.
InMemoryLedger
In-memory test double for code that still exercises the async durable ledger trait.
LedgerBalanceProvider
MockBalanceProvider
Mock balance provider for tests – always returns zero balance.

Enums§

LedgerError
Error type for ledger operations.

Traits§

BalanceProvider
Read-only source for runtime account balances.
Ledger
Durable account balance persistence interface.