Struct evm_state::EvmBackend [−][src]
Fields
state: State
kvs: KVS
Implementations
impl<State> EvmBackend<State>
[src][−]
impl EvmBackend<Incomming>
[src][−]
pub fn commit_block(
self,
slot: u64,
native_blockhash: H256
) -> EvmBackend<Committed>
[src]
self,
slot: u64,
native_blockhash: H256
) -> EvmBackend<Committed>
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]
&mut self,
address: H160,
indexed_values: impl IntoIterator<Item = (H256, H256)>
)
pub fn find_transaction_receipt(
&self,
transaction: H256
) -> Option<&TransactionReceipt>
[src]
&self,
transaction: H256
) -> Option<&TransactionReceipt>
pub fn push_transaction_receipt(
&mut self,
transaction: H256,
receipt: TransactionReceipt
)
[src]
&mut self,
transaction: H256,
receipt: TransactionReceipt
)
pub fn get_executed_transactions(&self) -> Vec<H256>
[src]
pub fn set_initial(
&mut self,
accounts: impl IntoIterator<Item = (H160, MemoryAccount)>
)
[src]
&mut self,
accounts: impl IntoIterator<Item = (H160, MemoryAccount)>
)
impl<State> EvmBackend<State>
[src][−]
pub fn get_account_state_from_kvs(
&self,
root: H256,
address: H160
) -> Option<AccountState>
[src]
&self,
root: H256,
address: H160
) -> Option<AccountState>
pub fn get_storage_from_kvs(
&self,
root: H256,
address: H160,
index: H256
) -> Option<H256>
[src]
&self,
root: H256,
address: H160,
index: H256
) -> Option<H256>
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]
&self,
hash: H256
) -> Option<&TransactionReceipt>
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,
State: RefUnwindSafe,
impl<State> Send for EvmBackend<State> where
State: Send,
State: Send,
impl<State> Sync for EvmBackend<State> where
State: Sync,
State: Sync,
impl<State> Unpin for EvmBackend<State> where
State: Unpin,
State: Unpin,
impl<State> UnwindSafe for EvmBackend<State> where
State: UnwindSafe,
State: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,