Trait evm::executor::StackState[][src]

pub trait StackState<'config>: Backend {
    fn metadata(&self) -> &StackSubstateMetadata<'config>;
fn metadata_mut(&mut self) -> &mut StackSubstateMetadata<'config>;
fn enter(&mut self, gas_limit: u64, is_static: bool);
fn exit_commit(&mut self) -> Result<(), ExitError>;
fn exit_revert(&mut self) -> Result<(), ExitError>;
fn exit_discard(&mut self) -> Result<(), ExitError>;
fn is_empty(&self, address: H160) -> bool;
fn deleted(&self, address: H160) -> bool;
fn inc_nonce(&mut self, address: H160);
fn set_storage(&mut self, address: H160, key: H256, value: H256);
fn reset_storage(&mut self, address: H160);
fn log(&mut self, address: H160, topics: Vec<H256>, data: Vec<u8>);
fn set_deleted(&mut self, address: H160);
fn set_code(&mut self, address: H160, code: Vec<u8>);
fn transfer(&mut self, transfer: Transfer) -> Result<(), ExitError>;
fn reset_balance(&mut self, address: H160);
fn touch(&mut self, address: H160); }

Required methods

fn metadata(&self) -> &StackSubstateMetadata<'config>[src]

fn metadata_mut(&mut self) -> &mut StackSubstateMetadata<'config>[src]

fn enter(&mut self, gas_limit: u64, is_static: bool)[src]

fn exit_commit(&mut self) -> Result<(), ExitError>[src]

fn exit_revert(&mut self) -> Result<(), ExitError>[src]

fn exit_discard(&mut self) -> Result<(), ExitError>[src]

fn is_empty(&self, address: H160) -> bool[src]

fn deleted(&self, address: H160) -> bool[src]

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

fn set_storage(&mut self, address: H160, key: H256, value: H256)[src]

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

fn log(&mut self, address: H160, topics: Vec<H256>, data: Vec<u8>)[src]

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

fn set_code(&mut self, address: H160, code: Vec<u8>)[src]

fn transfer(&mut self, transfer: Transfer) -> Result<(), ExitError>[src]

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

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

Loading content...

Implementors

impl<'backend, 'config, B: Backend> StackState<'config> for MemoryStackState<'backend, 'config, B>[src]

Loading content...