Struct evm_state::EvmBackend[][src]

pub struct EvmBackend<State> {
    pub state: State,
    pub kvs: KVS,
}

Fields

state: Statekvs: KVS

Implementations

impl<State> EvmBackend<State>[src]

pub fn new(state: State, kvs: KVS) -> Self[src]

impl EvmBackend<Incomming>[src]

pub fn commit_block(
    self,
    slot: u64,
    native_blockhash: H256
) -> EvmBackend<Committed>
[src]

pub fn set_account_state(&mut self, address: H160, account_state: AccountState)[src]

pub fn remove_account(&mut self, address: H160)[src]

pub fn ext_storage(
    &mut self,
    address: H160,
    indexed_values: impl IntoIterator<Item = (H256, H256)>
)
[src]

pub fn find_transaction_receipt(
    &self,
    transaction: H256
) -> Option<&TransactionReceipt>
[src]

pub fn push_transaction_receipt(
    &mut self,
    transaction: H256,
    receipt: TransactionReceipt
)
[src]

pub fn get_executed_transactions(&self) -> Vec<H256>[src]

pub fn set_initial(
    &mut self,
    accounts: impl IntoIterator<Item = (H160, MemoryAccount)>
)
[src]

impl<State> EvmBackend<State>[src]

pub fn get_account_state_from_kvs(
    &self,
    root: H256,
    address: H160
) -> Option<AccountState>
[src]

pub fn get_storage_from_kvs(
    &self,
    root: H256,
    address: H160,
    index: H256
) -> Option<H256>
[src]

impl EvmBackend<Committed>[src]

pub fn last_root(&self) -> H256[src]

pub fn next_incomming(&self, block_start_time: u64) -> EvmBackend<Incomming>[src]

pub fn find_committed_transaction(
    &self,
    hash: H256
) -> Option<&TransactionReceipt>
[src]

Trait Implementations

impl AccountProvider for EvmBackend<Incomming>[src]

impl AccountProvider for EvmBackend<Committed>[src]

impl<State: Clone> Clone for EvmBackend<State>[src]

impl<State: Debug> Debug for EvmBackend<State>[src]

impl Default for EvmBackend<Incomming>[src]

impl From<EvmBackend<Committed>> for EvmState[src]

impl From<EvmBackend<Incomming>> for EvmState[src]

Auto Trait Implementations

impl<State> RefUnwindSafe for EvmBackend<State> where
    State: RefUnwindSafe

impl<State> Send for EvmBackend<State> where
    State: Send

impl<State> Sync for EvmBackend<State> where
    State: Sync

impl<State> Unpin for EvmBackend<State> where
    State: Unpin

impl<State> UnwindSafe for EvmBackend<State> where
    State: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]