Struct near_parameters::config::RuntimeConfig
source · pub struct RuntimeConfig {
pub fees: Arc<RuntimeFeesConfig>,
pub wasm_config: Arc<Config>,
pub account_creation_config: AccountCreationConfig,
pub congestion_control_config: CongestionControlConfig,
pub witness_config: WitnessConfig,
}
Expand description
The structure that holds the parameters of the runtime, mostly economics.
Fields§
§fees: Arc<RuntimeFeesConfig>
Action gas costs, storage fees, and economic constants around them.
This contains parameters that are required by the WASM runtime and the transaction runtime.
wasm_config: Arc<Config>
Config of wasm operations, also includes wasm gas costs.
This contains all the configuration parameters that are only required by the WASM runtime.
account_creation_config: AccountCreationConfig
Config that defines rules for account creation.
congestion_control_config: CongestionControlConfig
The configuration for congestion control.
witness_config: WitnessConfig
Configuration specific to ChunkStateWitness.
Implementations§
source§impl RuntimeConfig
impl RuntimeConfig
pub fn initial_testnet_config() -> RuntimeConfig
pub fn test() -> Self
pub fn free() -> Self
pub fn storage_amount_per_byte(&self) -> Balance
Trait Implementations§
source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
source§impl From<RuntimeConfig> for RuntimeConfigView
impl From<RuntimeConfig> for RuntimeConfigView
source§fn from(config: RuntimeConfig) -> Self
fn from(config: RuntimeConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq for RuntimeConfig
impl PartialEq for RuntimeConfig
impl StructuralPartialEq for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)