Struct near_primitives_core::runtime::fees::EvmCostConfig[][src]

pub struct EvmCostConfig {
    pub bootstrap_cost: Gas,
    pub deploy_cost_per_evm_gas: Gas,
    pub deploy_cost_per_byte: Gas,
    pub funcall_cost_base: Gas,
    pub funcall_cost_per_evm_gas: Gas,
    pub precompile_costs: EvmPrecompileCostConfig,
}

Describe cost of evm

Fields

bootstrap_cost: Gas

Base cost of instantiate an evm instance for any evm operation

deploy_cost_per_evm_gas: Gas

For every unit of gas used by evm in deploy evm contract, equivalent near gas cost

deploy_cost_per_byte: Gas

For every byte of evm contract, result near gas cost

funcall_cost_base: Gas

For bootstrapped evm, base cost to invoke a contract function

funcall_cost_per_evm_gas: Gas

For every unit of gas used by evm in funcall, equivalent near gas cost

precompile_costs: EvmPrecompileCostConfig

Evm precompiled function costs

Trait Implementations

impl Clone for EvmCostConfig[src]

impl Debug for EvmCostConfig[src]

impl Default for EvmCostConfig[src]

impl<'de> Deserialize<'de> for EvmCostConfig[src]

impl Eq for EvmCostConfig[src]

impl Hash for EvmCostConfig[src]

impl PartialEq<EvmCostConfig> for EvmCostConfig[src]

impl Serialize for EvmCostConfig[src]

impl StructuralEq for EvmCostConfig[src]

impl StructuralPartialEq for EvmCostConfig[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.