pub trait StateView {
// Required methods
fn account(&self, id: AccountId) -> Option<&Account>;
fn pending(&self, id: TransferId) -> Option<&PendingReservation>;
fn now(&self) -> u64;
}Expand description
Read-only view of ledger state the engine needs. Backends implement this over
their own storage (a BTreeMap for MemLedger, RocksDB point-reads for
RocksLedger).
Required Methods§
Sourcefn pending(&self, id: TransferId) -> Option<&PendingReservation>
fn pending(&self, id: TransferId) -> Option<&PendingReservation>
Look up a pending reservation by its phase-1 transfer id.