[][src]Struct evm::Config

pub struct Config {
    pub gas_ext_code: usize,
    pub gas_ext_code_hash: usize,
    pub gas_sstore_set: usize,
    pub gas_sstore_reset: usize,
    pub refund_sstore_clears: isize,
    pub gas_balance: usize,
    pub gas_sload: usize,
    pub gas_suicide: usize,
    pub gas_suicide_new_account: usize,
    pub gas_call: usize,
    pub gas_expbyte: usize,
    pub gas_transaction_create: usize,
    pub gas_transaction_call: usize,
    pub gas_transaction_zero_data: usize,
    pub gas_transaction_non_zero_data: usize,
    pub sstore_gas_metering: bool,
    pub sstore_revert_under_stipend: bool,
    pub err_on_call_with_more_gas: bool,
    pub call_l64_after_gas: bool,
    pub empty_considered_exists: bool,
    pub create_increase_nonce: bool,
    pub stack_limit: usize,
    pub memory_limit: usize,
    pub call_stack_limit: usize,
    pub create_contract_limit: Option<usize>,
    pub call_stipend: usize,
    pub has_delegate_call: bool,
    pub has_create2: bool,
    pub has_revert: bool,
    pub has_return_data: bool,
    pub has_bitwise_shifting: bool,
    pub has_chain_id: bool,
    pub has_self_balance: bool,
    pub has_ext_code_hash: bool,


gas_ext_code: usize

Gas paid for extcode.

gas_ext_code_hash: usize

Gas paid for extcodehash.

gas_sstore_set: usize

Gas paid for sstore set.

gas_sstore_reset: usize

Gas paid for sstore reset.

refund_sstore_clears: isize

Gas paid for sstore refund.

gas_balance: usize

Gas paid for BALANCE opcode.

gas_sload: usize

Gas paid for SLOAD opcode.

gas_suicide: usize

Gas paid for SUICIDE opcode.

gas_suicide_new_account: usize

Gas paid for SUICIDE opcode when it hits a new account.

gas_call: usize

Gas paid for CALL opcode.

gas_expbyte: usize

Gas paid for EXP opcode for every byte.

gas_transaction_create: usize

Gas paid for a contract creation transaction.

gas_transaction_call: usize

Gas paid for a message call transaction.

gas_transaction_zero_data: usize

Gas paid for zero data in a transaction.

gas_transaction_non_zero_data: usize

Gas paid for non-zero data in a transaction.

sstore_gas_metering: bool


sstore_revert_under_stipend: bool


err_on_call_with_more_gas: bool

Whether to throw out of gas error when CALL/CALLCODE/DELEGATECALL requires more than maximum amount of gas.

call_l64_after_gas: bool

Take l64 for callcreate after gas.

empty_considered_exists: bool

Whether empty account is considered exists.

create_increase_nonce: bool

Whether create transactions and create opcode increases nonce by one.

stack_limit: usize

Stack limit.

memory_limit: usize

Memory limit.

call_stack_limit: usize

Call limit.

create_contract_limit: Option<usize>

Create contract limit.

call_stipend: usize

Call stipend.

has_delegate_call: bool

Has delegate call.

has_create2: bool

Has create2.

has_revert: bool

Has revert.

has_return_data: bool

Has return data.

has_bitwise_shifting: bool

Has bitwise shifting.

has_chain_id: bool

Has chain ID.

has_self_balance: bool

Has self balance.

has_ext_code_hash: bool

Has ext code hash.


impl Config[src]

pub fn frontier() -> Config[src]

pub fn istanbul() -> Config[src]

Trait Implementations

impl Debug for Config[src]

impl Clone for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

impl RefUnwindSafe for Config

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self