sputnikvm_network_foundation

Struct FrontierPatch

Source
pub struct FrontierPatch;
Expand description

Frontier patch.

Trait Implementations§

Source§

impl Patch for FrontierPatch

Source§

type Account = FrontierAccountPatch

Account patch
Source§

fn code_deposit_limit() -> Option<usize>

Maximum contract size.
Source§

fn callstack_limit() -> usize

Limit of the call stack.
Source§

fn gas_extcode() -> Gas

Gas paid for extcode.
Source§

fn gas_balance() -> Gas

Gas paid for BALANCE opcode.
Source§

fn gas_sload() -> Gas

Gas paid for SLOAD opcode.
Source§

fn gas_suicide() -> Gas

Gas paid for SUICIDE opcode.
Source§

fn gas_suicide_new_account() -> Gas

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

fn gas_call() -> Gas

Gas paid for CALL opcode.
Source§

fn gas_expbyte() -> Gas

Gas paid for EXP opcode for every byte.
Source§

fn gas_transaction_create() -> Gas

Gas paid for a contract creation transaction.
Source§

fn force_code_deposit() -> bool

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

fn has_delegate_call() -> bool

Whether the EVM has DELEGATECALL opcode.
Source§

fn has_static_call() -> bool

Whether the EVM has STATICCALL opcode.
Source§

fn has_revert() -> bool

Whether the EVM has REVERT opcode.
Source§

fn has_return_data() -> bool

Whether the EVM has RETURNDATASIZE and RETURNDATACOPY opcode.
Source§

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

fn call_create_l64_after_gas() -> bool

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

fn memory_limit() -> usize

Maximum size of the memory, in bytes.
Source§

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

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

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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.