[][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; }

EVM backend.

Required methods

fn gas_price(&self) -> U256

Gas price.

fn origin(&self) -> H160

Origin.

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

Environmental block hash.

fn block_number(&self) -> U256

Environmental block number.

fn block_coinbase(&self) -> H160

Environmental coinbase.

fn block_timestamp(&self) -> U256

Environmental block timestamp.

fn block_difficulty(&self) -> U256

Environmental block difficulty.

fn block_gas_limit(&self) -> U256

Environmental block gas limit.

fn chain_id(&self) -> U256

Environmental chain ID.

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

Whether account at address exists.

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

Get basic account information.

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

Get account code hash.

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

Get account code size.

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

Get account code.

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

Get storage value of address at index.

Loading content...

Implementors

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

Loading content...