Enum Parameter

Source
pub enum Parameter {
Show 178 variants BurntGasReward, PessimisticGasPriceInflation, MainStorageProofSizeSoftLimit, PerReceiptStorageProofSizeLimit, NewTransactionsValidationStateSizeSoftLimit, CombinedTransactionsSizeLimit, OutgoingReceiptsUsualSizeLimit, OutgoingReceiptsBigSizeLimit, MinAllowedTopLevelAccountLength, RegistrarAccountId, StorageAmountPerByte, StorageNumBytesAccount, StorageNumExtraBytesRecord, ActionReceiptCreation, DataReceiptCreationBase, DataReceiptCreationPerByte, ActionCreateAccount, ActionDeleteAccount, ActionDeployContract, ActionDeployContractPerByte, ActionFunctionCall, ActionFunctionCallPerByte, ActionTransfer, ActionStake, ActionAddFullAccessKey, ActionAddFunctionCallKey, ActionAddFunctionCallKeyPerByte, ActionDeleteKey, ActionDelegate, WasmRegularOpCost, WasmGrowMemCost, WasmBase, WasmContractLoadingBase, WasmContractLoadingBytes, WasmReadMemoryBase, WasmReadMemoryByte, WasmWriteMemoryBase, WasmWriteMemoryByte, WasmReadRegisterBase, WasmReadRegisterByte, WasmWriteRegisterBase, WasmWriteRegisterByte, WasmUtf8DecodingBase, WasmUtf8DecodingByte, WasmUtf16DecodingBase, WasmUtf16DecodingByte, WasmSha256Base, WasmSha256Byte, WasmKeccak256Base, WasmKeccak256Byte, WasmKeccak512Base, WasmKeccak512Byte, WasmRipemd160Base, WasmRipemd160Block, WasmEcrecoverBase, WasmEd25519VerifyBase, WasmEd25519VerifyByte, WasmLogBase, WasmLogByte, WasmStorageWriteBase, WasmStorageWriteKeyByte, WasmStorageWriteValueByte, WasmStorageWriteEvictedByte, WasmStorageReadBase, WasmStorageReadKeyByte, WasmStorageReadValueByte, WasmStorageLargeReadOverheadBase, WasmStorageLargeReadOverheadByte, WasmStorageRemoveBase, WasmStorageRemoveKeyByte, WasmStorageRemoveRetValueByte, WasmStorageHasKeyBase, WasmStorageHasKeyByte, WasmStorageIterCreatePrefixBase, WasmStorageIterCreatePrefixByte, WasmStorageIterCreateRangeBase, WasmStorageIterCreateFromByte, WasmStorageIterCreateToByte, WasmStorageIterNextBase, WasmStorageIterNextKeyByte, WasmStorageIterNextValueByte, WasmTouchingTrieNode, WasmReadCachedTrieNode, WasmPromiseAndBase, WasmPromiseAndPerPromise, WasmPromiseReturn, WasmValidatorStakeBase, WasmValidatorTotalStakeBase, WasmAltBn128G1MultiexpBase, WasmAltBn128G1MultiexpElement, WasmAltBn128PairingCheckBase, WasmAltBn128PairingCheckElement, WasmAltBn128G1SumBase, WasmAltBn128G1SumElement, WasmYieldCreateBase, WasmYieldCreateByte, WasmYieldResumeBase, WasmYieldResumeByte, WasmBls12381P1SumBase, WasmBls12381P1SumElement, WasmBls12381P2SumBase, WasmBls12381P2SumElement, WasmBls12381G1MultiexpBase, WasmBls12381G1MultiexpElement, WasmBls12381G2MultiexpBase, WasmBls12381G2MultiexpElement, WasmBls12381MapFpToG1Base, WasmBls12381MapFpToG1Element, WasmBls12381MapFp2ToG2Base, WasmBls12381MapFp2ToG2Element, WasmBls12381PairingBase, WasmBls12381PairingElement, WasmBls12381P1DecompressBase, WasmBls12381P1DecompressElement, WasmBls12381P2DecompressBase, WasmBls12381P2DecompressElement, MaxGasBurnt, MaxGasBurntView, MaxStackHeight, ContractPrepareVersion, InitialMemoryPages, MaxMemoryPages, RegistersMemoryLimit, MaxRegisterSize, MaxNumberRegisters, MaxNumberLogs, MaxTotalLogLength, MaxTotalPrepaidGas, MaxActionsPerReceipt, MaxNumberBytesMethodNames, MaxLengthMethodName, MaxArgumentsLength, MaxLengthReturnedData, MaxContractSize, MaxTransactionSize, MaxReceiptSize, MaxLengthStorageKey, MaxLengthStorageValue, MaxPromisesPerFunctionCallAction, MaxNumberInputDataDependencies, MaxFunctionsNumberPerContract, Wasmer2StackLimit, MaxLocalsPerContract, AccountIdValidityRulesVersion, YieldTimeoutLengthInBlocks, MaxYieldPayloadSize, Disable9393Fix, FlatStorageReads, ImplicitAccountCreation, FixContractLoadingCost, MathExtension, Ed25519Verify, AltBn128, FunctionCallWeight, VmKind, EthImplicitAccounts, YieldResume, DiscardCustomSections, MaxCongestionIncomingGas, MaxCongestionOutgoingGas, MaxCongestionMemoryConsumption, MaxCongestionMissedChunks, MaxOutgoingGas, MinOutgoingGas, AllowedShardOutgoingGas, MaxTxGas, MinTxGas, RejectTxCongestionThreshold, UseStateStoredReceipt, MaxShardBandwidth, MaxSingleGrant, MaxAllowance, MaxBaseBandwidth, ActionDeployGlobalContract, ActionDeployGlobalContractPerByte, GlobalContractStorageAmountPerByte, ActionUseGlobalContract, ActionUseGlobalContractPerIdentifierByte,
}
Expand description

Protocol configuration parameter which may change between protocol versions.

Variants§

§

BurntGasReward

§

PessimisticGasPriceInflation

§

MainStorageProofSizeSoftLimit

Stateless validation config Size limit for storage proof generated while executing receipts in a chunk. After this limit is reached we defer execution of any new receipts.

§

PerReceiptStorageProofSizeLimit

Hard limit on the size of storage proof generated while executing a single receipt.

§

NewTransactionsValidationStateSizeSoftLimit

Soft size limit of storage proof used to validate new transactions in ChunkStateWitness.

§

CombinedTransactionsSizeLimit

Maximum size of transactions contained inside ChunkStateWitness. A witness contains transactions from both the previous chunk and the current one. This parameter limits the sum of sizes of transactions from both of those chunks.

§

OutgoingReceiptsUsualSizeLimit

The standard size limit for outgoing receipts aimed at a single shard. This limit is pretty small to keep the size of source_receipt_proofs under control. It limits the total sum of outgoing receipts, not individual receipts.

§

OutgoingReceiptsBigSizeLimit

Large size limit for outgoing receipts to a shard, used when it’s safe to send a lot of receipts without making the state witness too large. It limits the total sum of outgoing receipts, not individual receipts.

§

MinAllowedTopLevelAccountLength

§

RegistrarAccountId

§

StorageAmountPerByte

§

StorageNumBytesAccount

§

StorageNumExtraBytesRecord

§

ActionReceiptCreation

§

DataReceiptCreationBase

§

DataReceiptCreationPerByte

§

ActionCreateAccount

§

ActionDeleteAccount

§

ActionDeployContract

§

ActionDeployContractPerByte

§

ActionFunctionCall

§

ActionFunctionCallPerByte

§

ActionTransfer

§

ActionStake

§

ActionAddFullAccessKey

§

ActionAddFunctionCallKey

§

ActionAddFunctionCallKeyPerByte

§

ActionDeleteKey

§

ActionDelegate

§

WasmRegularOpCost

§

WasmGrowMemCost

§

WasmBase

Base cost for a host function

§

WasmContractLoadingBase

§

WasmContractLoadingBytes

§

WasmReadMemoryBase

§

WasmReadMemoryByte

§

WasmWriteMemoryBase

§

WasmWriteMemoryByte

§

WasmReadRegisterBase

§

WasmReadRegisterByte

§

WasmWriteRegisterBase

§

WasmWriteRegisterByte

§

WasmUtf8DecodingBase

§

WasmUtf8DecodingByte

§

WasmUtf16DecodingBase

§

WasmUtf16DecodingByte

§

WasmSha256Base

§

WasmSha256Byte

§

WasmKeccak256Base

§

WasmKeccak256Byte

§

WasmKeccak512Base

§

WasmKeccak512Byte

§

WasmRipemd160Base

§

WasmRipemd160Block

§

WasmEcrecoverBase

§

WasmEd25519VerifyBase

§

WasmEd25519VerifyByte

§

WasmLogBase

§

WasmLogByte

§

WasmStorageWriteBase

§

WasmStorageWriteKeyByte

§

WasmStorageWriteValueByte

§

WasmStorageWriteEvictedByte

§

WasmStorageReadBase

§

WasmStorageReadKeyByte

§

WasmStorageReadValueByte

§

WasmStorageLargeReadOverheadBase

§

WasmStorageLargeReadOverheadByte

§

WasmStorageRemoveBase

§

WasmStorageRemoveKeyByte

§

WasmStorageRemoveRetValueByte

§

WasmStorageHasKeyBase

§

WasmStorageHasKeyByte

§

WasmStorageIterCreatePrefixBase

§

WasmStorageIterCreatePrefixByte

§

WasmStorageIterCreateRangeBase

§

WasmStorageIterCreateFromByte

§

WasmStorageIterCreateToByte

§

WasmStorageIterNextBase

§

WasmStorageIterNextKeyByte

§

WasmStorageIterNextValueByte

§

WasmTouchingTrieNode

§

WasmReadCachedTrieNode

§

WasmPromiseAndBase

§

WasmPromiseAndPerPromise

§

WasmPromiseReturn

§

WasmValidatorStakeBase

§

WasmValidatorTotalStakeBase

§

WasmAltBn128G1MultiexpBase

§

WasmAltBn128G1MultiexpElement

§

WasmAltBn128PairingCheckBase

§

WasmAltBn128PairingCheckElement

§

WasmAltBn128G1SumBase

§

WasmAltBn128G1SumElement

§

WasmYieldCreateBase

§

WasmYieldCreateByte

§

WasmYieldResumeBase

§

WasmYieldResumeByte

§

WasmBls12381P1SumBase

§

WasmBls12381P1SumElement

§

WasmBls12381P2SumBase

§

WasmBls12381P2SumElement

§

WasmBls12381G1MultiexpBase

§

WasmBls12381G1MultiexpElement

§

WasmBls12381G2MultiexpBase

§

WasmBls12381G2MultiexpElement

§

WasmBls12381MapFpToG1Base

§

WasmBls12381MapFpToG1Element

§

WasmBls12381MapFp2ToG2Base

§

WasmBls12381MapFp2ToG2Element

§

WasmBls12381PairingBase

§

WasmBls12381PairingElement

§

WasmBls12381P1DecompressBase

§

WasmBls12381P1DecompressElement

§

WasmBls12381P2DecompressBase

§

WasmBls12381P2DecompressElement

§

MaxGasBurnt

§

MaxGasBurntView

§

MaxStackHeight

§

ContractPrepareVersion

§

InitialMemoryPages

§

MaxMemoryPages

§

RegistersMemoryLimit

§

MaxRegisterSize

§

MaxNumberRegisters

§

MaxNumberLogs

§

MaxTotalLogLength

§

MaxTotalPrepaidGas

§

MaxActionsPerReceipt

§

MaxNumberBytesMethodNames

§

MaxLengthMethodName

§

MaxArgumentsLength

§

MaxLengthReturnedData

§

MaxContractSize

§

MaxTransactionSize

§

MaxReceiptSize

§

MaxLengthStorageKey

§

MaxLengthStorageValue

§

MaxPromisesPerFunctionCallAction

§

MaxNumberInputDataDependencies

§

MaxFunctionsNumberPerContract

§

Wasmer2StackLimit

§

MaxLocalsPerContract

§

AccountIdValidityRulesVersion

§

YieldTimeoutLengthInBlocks

§

MaxYieldPayloadSize

§

Disable9393Fix

§

FlatStorageReads

§

ImplicitAccountCreation

§

FixContractLoadingCost

§

MathExtension

§

Ed25519Verify

§

AltBn128

§

FunctionCallWeight

§

VmKind

§

EthImplicitAccounts

§

YieldResume

§

DiscardCustomSections

§

MaxCongestionIncomingGas

§

MaxCongestionOutgoingGas

§

MaxCongestionMemoryConsumption

§

MaxCongestionMissedChunks

§

MaxOutgoingGas

§

MinOutgoingGas

§

AllowedShardOutgoingGas

§

MaxTxGas

§

MinTxGas

§

RejectTxCongestionThreshold

§

UseStateStoredReceipt

§

MaxShardBandwidth

§

MaxSingleGrant

§

MaxAllowance

§

MaxBaseBandwidth

§

ActionDeployGlobalContract

§

ActionDeployGlobalContractPerByte

§

GlobalContractStorageAmountPerByte

§

ActionUseGlobalContract

§

ActionUseGlobalContractPerIdentifierByte

Implementations§

Source§

impl Parameter

Source

pub fn vm_limits() -> Iter<'static, Parameter>

Iterate through all parameters that define numerical limits for contracts that are executed in the WASM VM.

Trait Implementations§

Source§

impl Clone for Parameter

Source§

fn clone(&self) -> Parameter

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Parameter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Parameter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'_derivative_strum> From<&'_derivative_strum Parameter> for &'static str

Source§

fn from(x: &'_derivative_strum Parameter) -> &'static str

Converts to this type from the input type.
Source§

impl From<Parameter> for &'static str

Source§

fn from(x: Parameter) -> &'static str

Converts to this type from the input type.
Source§

impl FromStr for Parameter

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Parameter, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Ord for Parameter

Source§

fn cmp(&self, other: &Parameter) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Parameter

Source§

fn eq(&self, other: &Parameter) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Parameter

Source§

fn partial_cmp(&self, other: &Parameter) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<&str> for Parameter

Source§

type Error = ParseError

The type returned in the event of a conversion error.
Source§

fn try_from(s: &str) -> Result<Parameter, <Self as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl Copy for Parameter

Source§

impl Eq for Parameter

Source§

impl StructuralPartialEq for Parameter

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.