Struct parables_testing::ledger::Ledger[][src]

pub struct Ledger<S> where
    S: LedgerState
{ /* fields omitted */ }

Methods

impl<'a> Ledger<AccountBalance<'a>>
[src]

Construct a new empty ledger that doesn't have any specialized state.

impl<S> Ledger<S> where
    S: LedgerState
[src]

Construct a new ledger.

To construct a ledger without state, use Ledger::empty().

Synchronize the ledger against the current state of the virtual machine.

Sync multiple addresses.

Go through each registered account, and verify their invariants.

Access the mutable state for the given address.

impl<S> Ledger<S> where
    S: LedgerState<Entry = U256>, 
[src]

Add to the balance for the given address.

Subtract from the balance for the given address.

Trait Implementations

impl<S: Debug> Debug for Ledger<S> where
    S: LedgerState,
    S::Entry: Debug
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S> Send for Ledger<S> where
    S: Send,
    <S as LedgerState>::Entry: Send

impl<S> Sync for Ledger<S> where
    S: Sync,
    <S as LedgerState>::Entry: Sync