Struct evm::executor::stack::MemoryStackSubstate
source · pub struct MemoryStackSubstate<'config> { /* private fields */ }
Implementations§
source§impl<'config> MemoryStackSubstate<'config>
impl<'config> MemoryStackSubstate<'config>
pub fn new(metadata: StackSubstateMetadata<'config>) -> Self
pub fn logs(&self) -> &[Log]
pub fn logs_mut(&mut self) -> &mut Vec<Log>
pub fn metadata(&self) -> &StackSubstateMetadata<'config>
pub fn metadata_mut(&mut self) -> &mut StackSubstateMetadata<'config>
sourcepub fn deconstruct<B: Backend>(
self,
backend: &B
) -> (impl IntoIterator<Item = Apply<impl IntoIterator<Item = (H256, H256)>>>, impl IntoIterator<Item = Log>)
pub fn deconstruct<B: Backend>( self, backend: &B ) -> (impl IntoIterator<Item = Apply<impl IntoIterator<Item = (H256, H256)>>>, impl IntoIterator<Item = Log>)
Deconstruct the memory stack substate, return state to be applied. Panic if the substate is not in the top-level substate.
pub fn enter(&mut self, gas_limit: u64, is_static: bool)
pub fn exit_commit(&mut self) -> Result<(), ExitError>
pub fn exit_revert(&mut self) -> Result<(), ExitError>
pub fn exit_discard(&mut self) -> Result<(), ExitError>
pub fn known_account(&self, address: H160) -> Option<&MemoryStackAccount>
pub fn known_basic(&self, address: H160) -> Option<Basic>
pub fn known_code(&self, address: H160) -> Option<Vec<u8>>
pub fn known_empty(&self, address: H160) -> Option<bool>
pub fn known_storage(&self, address: H160, key: H256) -> Option<H256>
pub fn known_original_storage(&self, address: H160) -> Option<H256>
pub fn is_cold(&self, address: H160) -> bool
pub fn is_storage_cold(&self, address: H160, key: H256) -> bool
pub fn deleted(&self, address: H160) -> bool
pub fn inc_nonce<B: Backend>( &mut self, address: H160, backend: &B ) -> Result<(), ExitError>
pub fn set_storage(&mut self, address: H160, key: H256, value: H256)
pub fn reset_storage<B: Backend>(&mut self, address: H160, backend: &B)
pub fn log(&mut self, address: H160, topics: Vec<H256>, data: Vec<u8>)
pub fn set_deleted(&mut self, address: H160)
pub fn set_code<B: Backend>( &mut self, address: H160, code: Vec<u8>, backend: &B )
pub fn transfer<B: Backend>( &mut self, transfer: Transfer, backend: &B ) -> Result<(), ExitError>
pub fn withdraw<B: Backend>( &mut self, address: H160, value: U256, backend: &B ) -> Result<(), ExitError>
pub fn deposit<B: Backend>(&mut self, address: H160, value: U256, backend: &B)
pub fn reset_balance<B: Backend>(&mut self, address: H160, backend: &B)
pub fn touch<B: Backend>(&mut self, address: H160, backend: &B)
Trait Implementations§
source§impl<'config> Clone for MemoryStackSubstate<'config>
impl<'config> Clone for MemoryStackSubstate<'config>
source§fn clone(&self) -> MemoryStackSubstate<'config>
fn clone(&self) -> MemoryStackSubstate<'config>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'config> RefUnwindSafe for MemoryStackSubstate<'config>
impl<'config> Send for MemoryStackSubstate<'config>
impl<'config> Sync for MemoryStackSubstate<'config>
impl<'config> Unpin for MemoryStackSubstate<'config>
impl<'config> UnwindSafe for MemoryStackSubstate<'config>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more