Struct pallet_evm::EvmConfig

pub struct EvmConfig {
Show 48 fields pub gas_ext_code: u64, pub gas_ext_code_hash: u64, pub gas_sstore_set: u64, pub gas_sstore_reset: u64, pub refund_sstore_clears: i64, pub max_refund_quotient: u64, pub gas_balance: u64, pub gas_sload: u64, pub gas_sload_cold: u64, pub gas_suicide: u64, pub gas_suicide_new_account: u64, pub gas_call: u64, pub gas_expbyte: u64, pub gas_transaction_create: u64, pub gas_transaction_call: u64, pub gas_transaction_zero_data: u64, pub gas_transaction_non_zero_data: u64, pub gas_access_list_address: u64, pub gas_access_list_storage_key: u64, pub gas_account_access_cold: u64, pub gas_storage_read_warm: u64, pub sstore_gas_metering: bool, pub sstore_revert_under_stipend: bool, pub increase_state_access_gas: bool, pub decrease_clears_refund: bool, pub disallow_executable_format: bool, pub warm_coinbase_address: 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 max_initcode_size: Option<usize>, pub call_stipend: u64, 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, pub has_base_fee: bool, pub has_push0: bool, pub estimate: bool,
}
Expand description

Runtime configuration.

Fields§

§gas_ext_code: u64

Gas paid for extcode.

§gas_ext_code_hash: u64

Gas paid for extcodehash.

§gas_sstore_set: u64

Gas paid for sstore set.

§gas_sstore_reset: u64

Gas paid for sstore reset.

§refund_sstore_clears: i64

Gas paid for sstore refund.

§max_refund_quotient: u64

EIP-3529

§gas_balance: u64

Gas paid for BALANCE opcode.

§gas_sload: u64

Gas paid for SLOAD opcode.

§gas_sload_cold: u64

Gas paid for cold SLOAD opcode.

§gas_suicide: u64

Gas paid for SUICIDE opcode.

§gas_suicide_new_account: u64

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

§gas_call: u64

Gas paid for CALL opcode.

§gas_expbyte: u64

Gas paid for EXP opcode for every byte.

§gas_transaction_create: u64

Gas paid for a contract creation transaction.

§gas_transaction_call: u64

Gas paid for a message call transaction.

§gas_transaction_zero_data: u64

Gas paid for zero data in a transaction.

§gas_transaction_non_zero_data: u64

Gas paid for non-zero data in a transaction.

§gas_access_list_address: u64

Gas paid per address in transaction access list (see EIP-2930).

§gas_access_list_storage_key: u64

Gas paid per storage key in transaction access list (see EIP-2930).

§gas_account_access_cold: u64

Gas paid for accessing cold account.

§gas_storage_read_warm: u64

Gas paid for accessing ready storage.

§sstore_gas_metering: bool

EIP-1283.

§sstore_revert_under_stipend: bool

EIP-1706.

§increase_state_access_gas: bool

EIP-2929

§decrease_clears_refund: bool

EIP-3529

§disallow_executable_format: bool

EIP-3541

§warm_coinbase_address: bool

EIP-3651

§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.

§max_initcode_size: Option<usize>

EIP-3860, maximum size limit of init_code.

§call_stipend: u64

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.

§has_base_fee: bool

Has ext block fee. See EIP-3198

§has_push0: bool

Has PUSH0 opcode. See EIP-3855

§estimate: bool

Whether the gasometer is running in estimate mode.

Implementations§

§

impl Config

pub const fn frontier() -> Config

Frontier hard fork configuration.

pub const fn istanbul() -> Config

Istanbul hard fork configuration.

pub const fn berlin() -> Config

Berlin hard fork configuration.

pub const fn london() -> Config

london hard fork configuration.

pub const fn merge() -> Config

The Merge (Paris) hard fork configuration.

pub const fn shanghai() -> Config

Shanghai hard fork configuration.

Trait Implementations§

§

impl Clone for Config

§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Config

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
§

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

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

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> IntoKey<U> for T
where U: FromKey<T>,

§

fn into_key(self) -> U

§

impl<T> IsType<T> for T

§

fn from_ref(t: &T) -> &T

Cast reference.
§

fn into_ref(&self) -> &T

Cast reference.
§

fn from_mut(t: &mut T) -> &mut T

Cast mutable reference.
§

fn into_mut(&mut self) -> &mut T

Cast mutable reference.
§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T> SaturatedConversion for T

§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryIntoKey<U> for T
where U: TryFromKey<T>,

§

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

§

fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>

§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
§

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

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> JsonSchemaMaybe for T

§

impl<T> MaybeDebug for T
where T: Debug,

§

impl<T> MaybeRefUnwindSafe for T
where T: RefUnwindSafe,