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]
fn get_account_state(&self, address: H160) -> Option<AccountState>
[src]
fn get_storage(&self, address: H160, index: H256) -> Option<H256>
[src]
fn last_root(&self) -> H256
[src]
fn block_number(&self) -> u64
[src]
fn timestamp(&self) -> u64
[src]
fn block_version(&self) -> BlockVersion
[src]
impl AccountProvider for EvmBackend<Committed>
[src]
fn get_account_state(&self, address: H160) -> Option<AccountState>
[src]
fn get_storage(&self, address: H160, index: H256) -> Option<H256>
[src]
fn last_root(&self) -> H256
[src]
fn block_number(&self) -> u64
[src]
fn timestamp(&self) -> u64
[src]
fn block_version(&self) -> BlockVersion
[src]
impl<State: Clone> Clone for EvmBackend<State>
[src]
fn clone(&self) -> EvmBackend<State>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<State: Debug> Debug for EvmBackend<State>
[src]
impl Default for EvmBackend<Incomming>
[src]
impl From<EvmBackend<Committed>> for EvmState
[src]
fn from(comm: EvmBackend<Committed>) -> EvmState
[src]
impl From<EvmBackend<Incomming>> for EvmState
[src]
fn from(inc: EvmBackend<Incomming>) -> 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,