Struct evm::Config [−][src]
pub struct Config {Show 45 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 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: 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 estimate: bool,
}Expand description
Runtime configuration.
Fields
gas_ext_code: u64Gas paid for extcode.
gas_ext_code_hash: u64Gas paid for extcodehash.
gas_sstore_set: u64Gas paid for sstore set.
gas_sstore_reset: u64Gas paid for sstore reset.
refund_sstore_clears: i64Gas paid for sstore refund.
max_refund_quotient: u64EIP-3529
gas_balance: u64Gas paid for BALANCE opcode.
gas_sload: u64Gas paid for SLOAD opcode.
gas_sload_cold: u64Gas paid for cold SLOAD opcode.
gas_suicide: u64Gas paid for SUICIDE opcode.
gas_suicide_new_account: u64Gas paid for SUICIDE opcode when it hits a new account.
gas_call: u64Gas paid for CALL opcode.
gas_expbyte: u64Gas paid for EXP opcode for every byte.
gas_transaction_create: u64Gas paid for a contract creation transaction.
gas_transaction_call: u64Gas paid for a message call transaction.
gas_transaction_zero_data: u64Gas paid for zero data in a transaction.
gas_transaction_non_zero_data: u64Gas paid for non-zero data in a transaction.
gas_access_list_address: u64Gas paid per address in transaction access list (see EIP-2930).
gas_access_list_storage_key: u64Gas paid per storage key in transaction access list (see EIP-2930).
gas_account_access_cold: u64Gas paid for accessing cold account.
gas_storage_read_warm: u64Gas paid for accessing ready storage.
sstore_gas_metering: boolEIP-1283.
sstore_revert_under_stipend: boolEIP-1706.
increase_state_access_gas: boolEIP-2929
decrease_clears_refund: boolEIP-3529
disallow_executable_format: boolEIP-3541
err_on_call_with_more_gas: boolWhether to throw out of gas error when CALL/CALLCODE/DELEGATECALL requires more than maximum amount of gas.
call_l64_after_gas: boolTake l64 for callcreate after gas.
empty_considered_exists: boolWhether empty account is considered exists.
create_increase_nonce: boolWhether create transactions and create opcode increases nonce by one.
stack_limit: usizeStack limit.
memory_limit: usizeMemory limit.
call_stack_limit: usizeCall limit.
create_contract_limit: Option<usize>Create contract limit.
call_stipend: u64Call stipend.
has_delegate_call: boolHas delegate call.
has_create2: boolHas create2.
has_revert: boolHas revert.
has_return_data: boolHas return data.
has_bitwise_shifting: boolHas bitwise shifting.
has_chain_id: boolHas chain ID.
has_self_balance: boolHas self balance.
has_ext_code_hash: boolHas ext code hash.
has_base_fee: boolHas ext block fee. See EIP-3198
estimate: boolWhether the gasometer is running in estimate mode.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more