[][src]Struct evm::DynamicPatch

pub struct DynamicPatch {
    pub account_patch: DynamicAccountPatch,
    pub code_deposit_limit: Option<usize>,
    pub callstack_limit: usize,
    pub gas_extcode: Gas,
    pub gas_balance: Gas,
    pub gas_sload: Gas,
    pub gas_suicide: Gas,
    pub gas_suicide_new_account: Gas,
    pub gas_call: Gas,
    pub gas_expbyte: Gas,
    pub gas_transaction_create: Gas,
    pub force_code_deposit: bool,
    pub has_delegate_call: bool,
    pub has_static_call: bool,
    pub has_revert: bool,
    pub has_return_data: bool,
    pub has_bitwise_shift: bool,
    pub has_extcodehash: bool,
    pub has_create2: bool,
    pub has_reduced_sstore_gas_metering: bool,
    pub err_on_call_with_more_gas: bool,
    pub call_create_l64_after_gas: bool,
    pub memory_limit: usize,
    pub enabled_precompileds: SmallVec<[Address; 8]>,
    pub precompileds: &'static [(Address, Option<&'static [u8]>, &'static dyn Precompiled)],
}

Patch that can be configured in client code runtime

Fields

account_patch: DynamicAccountPatch

AccountPatch

code_deposit_limit: Option<usize>

Maximum contract size.

callstack_limit: usize

Limit of the call stack.

gas_extcode: Gas

Gas paid for extcode.

gas_balance: Gas

Gas paid for BALANCE opcode.

gas_sload: Gas

Gas paid for SLOAD opcode.

gas_suicide: Gas

Gas paid for SUICIDE opcode.

gas_suicide_new_account: Gas

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

gas_call: Gas

Gas paid for CALL opcode.

gas_expbyte: Gas

Gas paid for EXP opcode for every byte.

gas_transaction_create: Gas

Gas paid for a contract creation transaction.

force_code_deposit: bool

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

has_delegate_call: bool

Whether the EVM has DELEGATECALL opcode.

has_static_call: bool

Whether the EVM has STATICCALL opcode.

has_revert: bool

Whether the EVM has REVERT opcode.

has_return_data: bool

Whether the EVM has RETURNDATASIZE and RETURNDATACOPY opcode.

has_bitwise_shift: bool

Whether the EVM has SHL, SHR and SAR

has_extcodehash: bool

Whether the EVM has EXTCODEHASH

has_create2: bool

Whether the EVM has CREATE2

has_reduced_sstore_gas_metering: bool

Whether EVM should implement the EIP1283 gas metering scheme for SSTORE opcode

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_create_l64_after_gas: bool

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

memory_limit: usize

Maximum size of the memory, in bytes. NOTE: NOT runtime-configurable by block number

enabled_precompileds: SmallVec<[Address; 8]>

Array of addresses of enabled precompiled contracts

precompileds: &'static [(Address, Option<&'static [u8]>, &'static dyn Precompiled)]

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

Trait Implementations

impl Patch for DynamicPatch[src]

type Account = DynamicAccountPatch

Account patch

impl Clone for DynamicPatch[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self