Trait parables_testing::ledger::LedgerState [−][src]
pub trait LedgerState { type Entry; fn new_instance(&self) -> Self::Entry; fn verify(
&self,
address: Address,
instance: Self::Entry
) -> Result<(), Error>; fn sync(
&self,
address: Address,
instance: &mut Self::Entry
) -> Result<(), Error>; }
A state that can be verified with a virtual machine.
Associated Types
type Entry
Required Methods
fn new_instance(&self) -> Self::Entry
Construct a new instance.
fn verify(&self, address: Address, instance: Self::Entry) -> Result<(), Error>
Verify the given state.
fn sync(
&self,
address: Address,
instance: &mut Self::Entry
) -> Result<(), Error>
&self,
address: Address,
instance: &mut Self::Entry
) -> Result<(), Error>
Synchronize the given state.
Implementors
impl<'a> LedgerState for AccountBalance<'a> type Entry = U256;