Crate frequency_runtime

Source

Re-exports§

pub use pallet_capacity;
pub use pallet_msa;
pub use pallet_passkey;
pub use pallet_schemas;

Modules§

api
capacity_stable_weights
Fixes the Weight values for Capacity transactions as static values Any change in actual weight does not adjust the cost, but will still adjust the block space
currency
opaque
Opaque types. These are used by the CLI to instantiate machinery that don’t need to know the specifics of the runtime. They can then be made to be agnostic over specific formats of data like extrinsics, allowing for them to continue syncing the network through upgrades to even the core data structures.
polkadot_xcm_fee
weights
Expose the auto generated weight files.

Macros§

prod_or_testnet_or_local
Macro to set a value (e.g. when using the parameter_types macro) to either a production value or to an environment variable or testing value (in case the frequency-local feature is selected or in instant sealing mode). Note that the environment variable is evaluated at compile time.

Structs§

AnnouncementDepositBase
AnnouncementDepositFactor
BaseCallFilter
Base filter to only allow calls to specified transactions to be executed
BlockExecutionWeight
Weight of executing an empty block. Calculated by multiplying the Average with 1.0 and adding 0.
Burn
How much of the treasury to burn, if funds remain at the end of the SpendPeriod Set to zero until the economic system is setup and stabilized
CapacityBatchProvider
CapacityEligibleCalls
CapacityPerToken
CapacityRewardCap
CouncilProposalProvider
EnsureTimeReleaseOrigin
ExistentialDeposit
ExtrinsicBaseWeight
Weight of executing a NO-OP extrinsic, for example System::remark. Calculated by multiplying the Average with 1.0 and adding 0.
MaxCollectivesProposalWeight
MaxItemizedBlobSizeBytes
The maximum size of a single item in an itemized storage model (in bytes)
MaxItemizedPageSizeBytes
The maximum size of a page (in bytes) for an Itemized storage model ~ (10KiB) extra 2 bytes is for ItemHeader which enables us to simulate max PoV in benchmarks
MaxPaginatedPageSizeBytes
The maximum size of a page (in bytes) for a Paginated storage model (1KiB)
MaxPending
MaxProxies
MaxSpending
MaximumSchedulerWeight
MessagesMaxPayloadSizeBytes
MigratePalletsCurrentStorage
MsaCallFilter
NeverDepositIntoId
PalletInfo
Provides an implementation of PalletInfo to provide information about the pallet setup in the runtime.
PasskeyCallFilter
PasskeyCallFilter to only allow calls to specified transactions to be executed
PayoutSpendPeriod
Perbill
A fixed point representation of a number in the range [0, 1].
PreimageHoldReason
ProposalBondPercent
Bond amount a treasury request must put up to make the proposal This will be transferred to OnSlash if the proposal is rejected
ProviderBoostHistoryLimit
The maximum number of eras over which one can claim rewards
ProxyDepositBase
ProxyDepositFactor
RewardPoolChunkLength
The number of chunks of Reward Pool history we expect to store
Runtime
RuntimeApi
RuntimeApiImpl
Implements all runtime apis for the client side.
RuntimeBlockLength
RuntimeBlockWeights
RuntimeGenesisConfig
RuntimeOrigin
The runtime origin type representing the origin of a call.
SchedulerProvider
SchemasMaxBytesBoundedVecLimit
The maximum length of a schema model (in bytes)
SessionKeys
SetSafeXcmVersion
Migration to set the initial safe XCM version for the XCM pallet.
Ss58Prefix
SS58 Prefix for the for Frequency Network 90 is the prefix for the Frequency Network on Polkadot 42 is the default prefix elsewhere
TreasuryAccount
TreasuryPalletId
Keyless account that holds the money for the treasury
Version
WeightToFee
Handles converting a weight scalar to a fee value, based on the scale and granularity of the node’s balance type.

Enums§

OriginCaller
ProxyType
The type used to represent the kinds of proxying allowed.
RuntimeCall
The aggregated runtime call type.
RuntimeError
RuntimeEvent
RuntimeFreezeReason
A reason for placing a freeze on funds.
RuntimeHoldReason
A reason for placing a hold on funds.
RuntimeLockId
An identifier for each lock placed on funds.
RuntimeSlashReason
A reason for slashing funds.
RuntimeTask
An aggregation of all Task enums across all pallets included in the current runtime.
RuntimeViewFunction
Runtime query type.

Constants§

AVERAGE_ON_INITIALIZE_RATIO
We assume that ~5% of the block weight is consumed by on_initialize handlers. This is used to limit the maximal weight of a single extrinsic.
CENTS
CHAIN_ID
DAYS
EXISTENTIAL_DEPOSIT
The existential deposit. Set to be 1/100th of a token.
FREQUENCY_LOCAL_TOKEN
FREQUENCY_TESTNET_TOKEN
FREQUENCY_TOKEN
HOURS
MAXIMUM_BLOCK_WEIGHT
We allow for 2 seconds of compute with a 6 second average block time.
MAX_RELEASE_SCHEDULES
Update
MILLISECS_PER_BLOCK
This determines the average expected block time that we are targeting. Blocks will be produced at a minimum duration defined by SLOT_DURATION. SLOT_DURATION is picked up by pallet_timestamp which is in turn picked up by pallet_aura to implement fn slot_duration().
MINUTES
NORMAL_DISPATCH_RATIO
We allow Normal extrinsics to fill up the block up to 75%, the rest can be used by Operational extrinsics.
RUNTIME_API_VERSIONS
SLOT_DURATION
TOKEN_DECIMALS
TREASURY_PALLET_ID
Generates the pallet “account” 5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z
VERSION
WASM_BINARY
WASM_BINARY_BLOATY
WASM_BINARY_PATH

Traits§

BuildStorage
Complex storage builder stuff.
GetStableWeight
Gets stable weights for a capacity Call
SchedulerProviderTrait
A trait that defines a scheduler provider for scheduling calls to be executed at a specific block number.

Functions§

native_version
The version information used to identify this runtime when compiled natively.
wasm_binary_unwrap
Wasm binary unwrapped. If built with WASM_BINARY, the function panics.

Type Aliases§

AllPalletsWithSystem
All pallets included in the runtime as a nested tuple of types.
AllPalletsWithoutSystem
All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
Aura
AuraConfig
AuraExt
AuraExtConfig
AuraId
An Aura authority identifier using S/R 25519 as its crypto.
AuraMaxAuthorities
The maximum number of authorities
Authorship
AuthorshipUncleGenerations
Balances
BalancesConfig
BalancesMaxFreezes
BalancesMaxLocks
BalancesMaxReserves
Block
Block type as expected by this runtime.
BlockId
BlockId type as expected by this runtime.
Capacity
CapacityMaxEpochLength
CapacityMaxUnlockingChunks
CapacityMinimumStakingAmount
CapacityMinimumTokenBalance
CapacityRewardEraLength
CapacityUnstakingThawPeriod
CollatorKickThreshold
CollatorMaxCandidates
CollatorMaxInvulnerables
CollatorMinCandidates
CollatorSelection
CollatorSelectionConfig
ConsensusHook
CooloffPeriod
Council
CouncilConfig
CouncilMaxMembers
CouncilMaxProposals
CouncilMotionDuration
Democracy
DemocracyConfig
DemocracyMaxProposals
DemocracyMaxVotes
DepositBase
DepositFactor
EnactmentPeriod
Executive
FIFTY
FastTrackVotingPeriod
FrameSystemMaxConsumers
FrequencyTxPayment
HUNDRED
HandleSuffixMax
The maximum suffix value
HandleSuffixMin
The minimum suffix value
Handles
LaunchPeriod
MSAMaxSignaturesStored
The upper limit on total stored signatures. Set to an average of 50 signatures per block
MSAMortalityWindowSize
The number of blocks per virtual bucket
MaxApprovals
Maximum number of approved proposals per Spending Period Set to 64 or 16 per week
MaxItemizedActionsCount
The maximum number of actions in itemized actions
MaxPaginatedPageId
The maximum number of pages in a Paginated storage model
MaxReleaseSchedules
Need this declaration method for use + type safety in benchmarks
MaxSchemaGrants
The maximum number of schema grants allowed per delegation
MaxSchemaSettingsPerSchema
The maximum number of grants allowed per schema
MaxSignatories
MaximumCapacityBatchLength
Messages
MinReleaseTransfer
MinimumDeposit
MinimumPeriod
Msa
MsaMaxProviderNameSize
The maximum size of the provider name (in bytes)
MsaMaxPublicKeysPerMsa
The maximum number of public keys per MSA
Multisig
ParachainInfo
ParachainInfoConfig
ParachainSystem
ParachainSystemConfig
Passkey
Preimage
PreimageBaseDeposit
PreimageByteDeposit
PreimageMaxSize
Preimage maximum size set to 4 MB Expected to be removed in Polkadot v0.9.31
ProposalBondMaximum
Minimum bond for a treasury proposal
ProposalBondMinimum
Minimum bond for a treasury proposal
Proxy
ScheduleName
Alias for a schedule identifier
Scheduler
SchedulerMaxScheduledPerBlock
Schemas
SchemasConfig
SchemasMaxRegistrations
The maximum number of schema registrations
SchemasMinModelSizeBytes
The minimum schema model size (in bytes)
Session
SessionConfig
SessionOffset
SessionPeriod
SignedBlock
A Block signed with a Justification
SpendPeriod
StatefulMortalityWindowSize
The number of blocks for Stateful mortality is 48 hours
StatefulStorage
System
SystemConfig
TCMaxMembers
TCMaxProposals
TCMotionDuration
TWO
TechnicalCommittee
TechnicalCommitteeConfig
TimeRelease
TimeReleaseConfig
Timestamp
TransactionByteFee
Relay Chain TransactionByteFee / 10
TransactionPayment
TransactionPaymentOperationalFeeMultiplier
Treasury
TreasuryConfig
TxExtension
The TransactionExtension to the basic transaction logic.
UncheckedExtrinsic
Unchecked extrinsic type as expected by this runtime.
Utility
VotingPeriod
WeightReclaim
ZERO