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

pub trait Backend {
Show 15 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 block_base_fee_per_gas(&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>;
}
Expand description

EVM backend.

Required methods

Gas price. Unused for London.

Origin.

Environmental block hash.

Environmental block number.

Environmental coinbase.

Environmental block timestamp.

Environmental block difficulty.

Environmental block gas limit.

Environmental block base fee.

Environmental chain ID.

Whether account at address exists.

Get basic account information.

Get account code.

Get storage value of address at index.

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

Implementations on Foreign Types

Implementors