Struct near_runtime::config::RuntimeConfig[][src]

pub struct RuntimeConfig {
    pub storage_amount_per_byte: u128,
    pub transaction_costs: RuntimeFeesConfig,
    pub wasm_config: VMConfig,
    pub account_creation_config: AccountCreationConfig,
}

The structure that holds the parameters of the runtime, mostly economics.

Fields

storage_amount_per_byte: u128

Amount of yN per byte required to have on the account. See https://nomicon.io/Economics/README.html#state-stake for details.

transaction_costs: RuntimeFeesConfig

Costs of different actions that need to be performed when sending and processing transaction and receipts.

wasm_config: VMConfig

Config of wasm operations.

account_creation_config: AccountCreationConfig

Config that defines rules for account creation.

Implementations

impl RuntimeConfig[src]

pub fn free() -> RuntimeConfig[src]

pub fn from_protocol_version(
    genesis_runtime_config: &Arc<RuntimeConfig>,
    protocol_version: u32
) -> Arc<RuntimeConfig>
[src]

Returns a RuntimeConfig for the corresponding protocol version. It uses genesis_runtime_config to identify the original config and protocol_version for the current protocol version.

Trait Implementations

impl Clone for RuntimeConfig[src]

impl Debug for RuntimeConfig[src]

impl Default for RuntimeConfig[src]

impl<'de> Deserialize<'de> for RuntimeConfig where
    RuntimeConfig: Default
[src]

impl Eq for RuntimeConfig[src]

impl PartialEq<RuntimeConfig> for RuntimeConfig[src]

impl Serialize for RuntimeConfig[src]

impl StructuralEq for RuntimeConfig[src]

impl StructuralPartialEq for RuntimeConfig[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

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