Trait evm::Patch [] [src]

pub trait Patch {
    fn callstack_limit() -> usize;
fn gas_extcode() -> Gas;
fn gas_balance() -> Gas;
fn gas_sload() -> Gas;
fn gas_suicide() -> Gas;
fn gas_suicide_new_account() -> Gas;
fn gas_call() -> Gas;
fn gas_expbyte() -> Gas;
fn gas_transaction_create() -> Gas;
fn force_code_deposit() -> bool;
fn has_delegate_call() -> bool;
fn err_on_call_with_more_gas() -> bool;
fn call_create_l64_after_gas() -> bool;
fn precompileds(
    ) -> &'static [(Address, Option<&'static [u8]>, Box<Precompiled>)]; }

Represents different block range context.

Required Methods

Limit of the call stack.

Gas paid for extcode.

Gas paid for BALANCE opcode.

Gas paid for SLOAD opcode.

Gas paid for SUICIDE opcode.

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

Gas paid for CALL opcode.

Gas paid for EXP opcode for every byte.

Gas paid for a contract creation transaction.

Whether to force code deposit even if it does not have enough gas.

Whether the EVM has DELEGATECALL opcode.

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

If true, only consume at maximum l64(after_gas) when CALL/CALLCODE/DELEGATECALL.

Precompiled contracts at given address, with required code, and its definition.

Implementors