[][src]Trait evm::backend::Backend

pub trait Backend {
    fn gas_price(&self) -> U256;
fn origin(&self) -> H160;
fn block_hash(&self, number: U256) -> H256;
fn block_number(&self) -> U256;
fn block_coinbase(&self) -> H160;
fn block_timestamp(&self) -> U256;
fn block_difficulty(&self) -> U256;
fn block_gas_limit(&self) -> U256;
fn chain_id(&self) -> U256;
fn exists(&self, address: H160) -> bool;
fn basic(&self, address: H160) -> Basic;
fn code_hash(&self, address: H160) -> H256;
fn code_size(&self, address: H160) -> usize;
fn code(&self, address: H160) -> Vec<u8>;
fn storage(&self, address: H160, index: H256) -> H256; }

Required methods

fn gas_price(&self) -> U256

fn origin(&self) -> H160

fn block_hash(&self, number: U256) -> H256

fn block_number(&self) -> U256

fn block_coinbase(&self) -> H160

fn block_timestamp(&self) -> U256

fn block_difficulty(&self) -> U256

fn block_gas_limit(&self) -> U256

fn chain_id(&self) -> U256

fn exists(&self, address: H160) -> bool

fn basic(&self, address: H160) -> Basic

fn code_hash(&self, address: H160) -> H256

fn code_size(&self, address: H160) -> usize

fn code(&self, address: H160) -> Vec<u8>

fn storage(&self, address: H160, index: H256) -> H256

Loading content...

Implementors

impl<'vicinity> Backend for MemoryBackend<'vicinity>[src]

Loading content...