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

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(&self, address: H160) -> Vec<u8>;
fn storage(&self, address: H160, index: H256) -> H256;
fn original_storage(&self, address: H160, index: H256) -> Option<H256>; }

EVM backend.

Required methods

fn gas_price(&self) -> U256[src]

Gas price.

fn origin(&self) -> H160[src]

Origin.

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

Environmental block hash.

fn block_number(&self) -> U256[src]

Environmental block number.

fn block_coinbase(&self) -> H160[src]

Environmental coinbase.

fn block_timestamp(&self) -> U256[src]

Environmental block timestamp.

fn block_difficulty(&self) -> U256[src]

Environmental block difficulty.

fn block_gas_limit(&self) -> U256[src]

Environmental block gas limit.

fn chain_id(&self) -> U256[src]

Environmental chain ID.

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

Whether account at address exists.

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

Get basic account information.

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

Get account code.

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

Get storage value of address at index.

fn original_storage(&self, address: H160, index: H256) -> Option<H256>[src]

Get original storage value of address at index, if available.

Loading content...

Implementors

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

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

Loading content...