[−][src]Struct evm::DynamicPatch
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
fn account_patch(&self) -> &Self::Account
[src]
fn code_deposit_limit(&self) -> Option<usize>
[src]
fn callstack_limit(&self) -> usize
[src]
fn gas_extcode(&self) -> Gas
[src]
fn gas_balance(&self) -> Gas
[src]
fn gas_sload(&self) -> Gas
[src]
fn gas_suicide(&self) -> Gas
[src]
fn gas_suicide_new_account(&self) -> Gas
[src]
fn gas_call(&self) -> Gas
[src]
fn gas_expbyte(&self) -> Gas
[src]
fn gas_transaction_create(&self) -> Gas
[src]
fn force_code_deposit(&self) -> bool
[src]
fn has_delegate_call(&self) -> bool
[src]
fn has_static_call(&self) -> bool
[src]
fn has_revert(&self) -> bool
[src]
fn has_return_data(&self) -> bool
[src]
fn has_bitwise_shift(&self) -> bool
[src]
fn has_create2(&self) -> bool
[src]
fn has_extcodehash(&self) -> bool
[src]
fn has_reduced_sstore_gas_metering(&self) -> bool
[src]
fn err_on_call_with_more_gas(&self) -> bool
[src]
fn call_create_l64_after_gas(&self) -> bool
[src]
fn memory_limit(&self) -> usize
[src]
fn is_precompiled_contract_enabled(&self, address: &Address) -> bool
[src]
fn precompileds(
&self
) -> &[(Address, Option<&'static [u8]>, &'static dyn Precompiled)]
[src]
&self
) -> &[(Address, Option<&'static [u8]>, &'static dyn Precompiled)]
impl Clone for DynamicPatch
[src]
fn clone(&self) -> DynamicPatch
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for DynamicPatch
impl Sync for DynamicPatch
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self