runtime-constants.md
* cargo xtask gen-doc * add documentation * refactore errors * better type formatting * refactoring * add constants * add storages
Runtime Constant
There are 69 constants from 35 pallets.
- System - 0
-
Block & extrinsics weights: base values and limits.BlockWeightsvalue: frame_system::limits::BlockWeights({ base_block: { ref_time: 431614000, proof_size: 0 }, max_block: { ref_time: 2000000000000, proof_size: 18446744073709551615 }, per_class: { normal: { base_extrinsic: { ref_time: 108157000, proof_size: 0 }, max_extrinsic: Some ({ ref_time: 1299891843000, proof_size: 11990383647911208550 }), max_total: Some ({ ref_time: 1500000000000, proof_size: 13835058055282163711 }), reserved: Some ({ ref_time: 0, proof_size: 0 }) }, operational: { base_extrinsic: { ref_time: 108157000, proof_size: 0 }, max_extrinsic: Some ({ ref_time: 1799891843000, proof_size: 16602069666338596454 }), max_total: Some ({ ref_time: 2000000000000, proof_size: 18446744073709551615 }), reserved: Some ({ ref_time: 500000000000, proof_size: 4611686018427387904 }) }, mandatory: { base_extrinsic: { ref_time: 108157000, proof_size: 0 }, max_extrinsic: None (), max_total: None (), reserved: None () } } }) -
The maximum length of a block (in bytes).BlockLengthvalue: frame_system::limits::BlockLength({ max: { normal: 3932160, operational: 5242880, mandatory: 5242880 } }) -
Maximum number of block number to block hash mappings to keep (oldest pruned first).BlockHashCountvalue: U32(2400) -
The weight of runtime database operations the runtime can invoke.DbWeightvalue: sp_weights::RuntimeDbWeight({ read: 14314000, write: 99642000 }) -
Get the chain's in-code version.Versionvalue: sp_version::RuntimeVersion({ spec_name: ("gdev"), impl_name: ("duniter-gdev"), authoring_version: 1, spec_version: 800, impl_version: 1, apis: ((((104, 122, 212, 74, 211, 127, 3, 194), 1), ((203, 202, 37, 227, 159, 20, 35, 135), 2), ((223, 106, 203, 104, 153, 7, 96, 155), 5), ((55, 227, 151, 252, 124, 145, 245, 228), 2), ((64, 254, 58, 212, 1, 248, 149, 154), 6), ((210, 188, 152, 151, 238, 208, 143, 21), 3), ((247, 139, 39, 139, 229, 63, 69, 76), 2), ((171, 60, 5, 114, 41, 31, 235, 139), 1), ((237, 153, 197, 172, 178, 94, 237, 245), 3), ((188, 157, 137, 144, 79, 91, 146, 63), 1), ((55, 200, 187, 19, 80, 169, 162, 168), 4), ((251, 197, 119, 185, 215, 71, 239, 214), 1))), transaction_version: 1, system_version: 1 }) -
The designated SS58 prefix of this chain.SS58PrefixThis replaces the "ss58Format" property declared in the chain spec. Reason is that the runtime should know about the prefix in order to make use of it as an identifier of the chain.
value: U16(42)
-
- Account - 1
- Scheduler - 2
-
The maximum weight that may be scheduled per block for any dispatchables.MaximumWeightvalue: sp_weights::weight_v2::Weight({ ref_time: 1600000000000, proof_size: 14757395258967641292 }) -
The maximum number of scheduled calls in the queue for a single block.MaxScheduledPerBlockNOTE:
- Dependent pallets' benchmarks might require a higher limit for the setting. Set a
higher limit under
runtime-benchmarksfeature.
value: U32(50) - Dependent pallets' benchmarks might require a higher limit for the setting. Set a
higher limit under
-
- Babe - 3
-
The amount of time, in slots, that each epoch should last. NOTE: Currently it is not possible to change the epoch duration after the chain has started. Attempting to do so will brick block production.EpochDurationvalue: U64(30) -
The expected average block time at which BABE should be creating blocks. Since BABE is probabilistic it is not trivial to figure out what the expected average block time should be based on the slot duration and the security parameter `c` (where `1 - c` represents the probability of a slot being empty).ExpectedBlockTimevalue: U64(6000) -
Max number of authorities allowedMaxAuthoritiesvalue: U32(32) -
The maximum number of nominators for each validator.MaxNominatorsvalue: U32(64)
-
- Timestamp - 4
-
The minimum period between blocks.MinimumPeriodBe aware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. For example, in the Aura pallet it will be double this period on default settings.
value: U64(3000)
-
- Parameters - 5
- Balances - 6
-
The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!ExistentialDepositIf you really need it to be zero, you can enable the feature
insecure_zero_edfor this pallet. However, you do so at your own risk: this will open up a major DoS vector. In case you have multiple sources of provider references, you may also get unexpected behaviour if you set this to zero.Bottom line: Do yourself a favour and make it at least one!
value: U64(100) -
The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation.MaxLocksUse of locks is deprecated in favour of freezes. See
https://github.com/paritytech/substrate/pull/12951/value: U32(50) -
The maximum number of named reserves that can exist on an account.MaxReservesUse of reserves is deprecated in favour of holds. See
https://github.com/paritytech/substrate/pull/12951/value: U32(5) -
The maximum number of individual freeze locks that can exist on an account at any time.MaxFreezesvalue: U32(0)
-
- TransactionPayment - 32
-
A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their `priority`OperationalFeeMultiplierThis value is multiplied by the
final_feeto obtain a "virtual tip" that is later added to a tip component in regularprioritycalculations. It means that aNormaltransaction can front-run a similarly-sizedOperationalextrinsic (with no tip), by including a tip value greater than the virtual tip.// For `Normal` let priority = priority_calc(tip); // For `Operational` let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; let priority = priority_calc(tip + virtual_tip);Note that since we use
final_feethe multiplier applies also to the regulartipsent with the transaction. So, not only does the transaction get a priority bump based on theinclusion_fee, but we also amplify the impact of tips applied toOperationaltransactions.value: U8(5)
-
- OneshotAccount - 7
- Quota - 66
-
Account used to refund fees.RefundAccountvalue: sp_core::crypto::AccountId32(((109, 111, 100, 108, 112, 121, 47, 116, 114, 115, 114, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)))
-
- SmithMembers - 10
-
Maximum number of active certifications per issuer.MaxByIssuervalue: U32(8) -
Minimum number of certifications required to become a Smith.MinCertForMembershipvalue: U32(2) -
Maximum duration of inactivity allowed before a Smith is removed.SmithInactivityMaxDurationvalue: U32(48)
-
- AuthorityMembers - 11
-
Maximum number of authorities allowed.MaxAuthoritiesvalue: U32(32)
-
- Authorship - 12
- Offences - 13
- Historical - 14
- Session - 15
- Grandpa - 16
-
Max Authorities in useMaxAuthoritiesvalue: U32(32) -
The maximum number of nominators for each validator.MaxNominatorsvalue: U32(64) -
The maximum number of entries to keep in the set id to session index mapping.MaxSetIdSessionEntriesSince the
SetIdSessionmap is only used for validating equivocations this value should relate to the bonding duration of whatever staking system is being used (if any). If equivocation handling is not enabled then this value can be zero.value: U64(1000)
-
- ImOnline - 17
-
A configuration for base priority of unsigned transactions.UnsignedPriorityThis is exposed so that it can be tuned for particular runtime, when multiple pallets send unsigned transactions.
value: U64(18446744073709551615)
-
- AuthorityDiscovery - 18
- Sudo - 20
- UpgradeOrigin - 21
- Preimage - 22
- TechnicalCommittee - 23
-
The maximum weight of a dispatch call that can be proposed and executed.MaxProposalWeightvalue: sp_weights::weight_v2::Weight({ ref_time: 1000000000000, proof_size: 9223372036854775807 })
-
- UniversalDividend - 30
-
Maximum number of past UD revaluations to keep in storage.MaxPastReevalvalue: U32(160) -
Square of the money growth rate per UD reevaluation period.SquareMoneyGrowthRatevalue: sp_arithmetic::per_things::Perbill((2381440)) -
Universal dividend creation period in milliseconds.UdCreationPeriodvalue: U64(60000) -
Universal dividend reevaluation period in milliseconds.UdReevalPeriodvalue: U64(1200000)
-
- Wot - 40
-
The block number from which the first certification can be issued.FirstIssuableOnvalue: U32(20) -
The minimum number of certifications required for membership eligibility.MinCertForMembershipvalue: U32(2) -
The minimum number of certifications required to create an identity.MinCertForCreateIdtyRightvalue: U32(2)
-
- Identity - 41
-
The period during which the owner can confirm the new identity.ConfirmPeriodvalue: U32(40) -
The period during which the identity has to be validated to become a member.ValidationPeriodvalue: U32(876600) -
The period before which an identity that lost membership is automatically revoked.AutorevocationPeriodvalue: U32(438300) -
The period after which a revoked identity is removed and the keys are freed.DeletionPeriodvalue: U32(438300) -
The minimum duration between two owner key changes to prevent identity theft.ChangeOwnerKeyPeriodvalue: U32(100800) -
The minimum duration between the creation of two identities by the same creator. Should be greater than or equal to the certification period defined in the certification pallet.IdtyCreationPeriodvalue: U32(50)
-
- Membership - 42
-
Maximum lifespan of a single membership (in number of blocks).MembershipPeriodvalue: U32(1000) -
Minimum delay to wait before renewing membership, i.e., asking for distance evaluation.MembershipRenewalPeriodvalue: U32(1000)
-
- Certification - 43
-
The minimum duration (in blocks) between two certifications issued by the same issuer.CertPeriodvalue: U32(15) -
The maximum number of active certifications that can be issued by a single issuer.MaxByIssuervalue: U32(10) -
The minimum number of certifications received that an identity must have to be allowed to issue a certification.MinReceivedCertToBeAbleToIssueCertvalue: U32(2) -
The duration (in blocks) for which a certification remains valid.ValidityPeriodvalue: U32(1000)
-
- Distance - 44
-
The amount reserved during evaluation.EvaluationPricevalue: U64(1000) -
The evaluation period in blocks. Since the evaluation uses 3 pools, the total evaluation time will be 3 * EvaluationPeriod.EvaluationPeriodvalue: U32(7) -
The maximum distance used to define a referee's accessibility. This value is not used by the runtime but is needed by the client distance oracle.MaxRefereeDistancevalue: U32(5) -
The minimum ratio of accessible referees required.MinAccessibleRefereesvalue: sp_arithmetic::per_things::Perbill((800000000))
-
- AtomicSwap - 50
-
Limit of proof size.ProofLimitAtomic swap is only atomic if once the proof is revealed, both parties can submit the proofs on-chain. If A is the one that generates the proof, then it requires that either:
- A's blockchain has the same proof length limit as B's blockchain.
- Or A's blockchain has shorter proof length limit as B's blockchain.
If B sees A is on a blockchain with larger proof length limit, then it should kindly refuse to accept the atomic swap request if A generates the proof, and asks that B generates the proof instead.
value: U32(1024)
-
- Multisig - 51
-
The base amount of currency needed to reserve for creating a multisig execution or to store a dispatch call for later.DepositBaseThis is held for an additional storage item whose value size is
4 + sizeof((BlockNumber, Balance, AccountId))bytes and whose key size is32 + sizeof(AccountId)bytes.value: U64(100) -
The amount of currency needed per unit threshold when creating a multisig execution.DepositFactorThis is held for adding 32 bytes more into a pre-existing storage value.
value: U64(32) -
The maximum amount of signatories allowed in the multisig.MaxSignatoriesvalue: U32(10)
-
- ProvideRandomness - 52
-
Maximum number of not yet filled requests.MaxRequestsvalue: U32(100) -
The price of a request.RequestPricevalue: U64(2000)
-
- Proxy - 53
-
The base amount of currency needed to reserve for creating a proxy.ProxyDepositBaseThis is held for an additional storage item whose value size is
sizeof(Balance)bytes and whose key size issizeof(AccountId)bytes.value: U64(108) -
The amount of currency needed per proxy added.ProxyDepositFactorThis is held for adding 32 bytes plus an instance of
ProxyTypemore into a pre-existing storage value. Thus, when configuringProxyDepositFactorone should take into account32 + proxy_type.encode().len()bytes of data.value: U64(33) -
The maximum amount of proxies allowed for a single account.MaxProxiesvalue: U32(32) -
The maximum amount of time-delayed announcements that are allowed to be pending.MaxPendingvalue: U32(32) -
The base amount of currency needed to reserve for creating an announcement.AnnouncementDepositBaseThis is held when a new storage item holding a
Balanceis created (typically 16 bytes).value: U64(108) -
The amount of currency needed per announcement made.AnnouncementDepositFactorThis is held for adding an
AccountId,HashandBlockNumber(typically 68 bytes) into a pre-existing storage value.value: U64(66)
-
- Utility - 54
-
The limit on the number of batched calls.batched_calls_limitvalue: U32(10922)
-
- Treasury - 55
-
Period between successive spends.SpendPeriodvalue: U32(14400) -
Percentage of spare funds (if any) that are burnt per spend period.Burnvalue: sp_arithmetic::per_things::Permill((0)) -
The treasury's pallet id, used for deriving its sovereign account ID.PalletIdvalue: frame_support::PalletId(((112, 121, 47, 116, 114, 115, 114, 121))) -
DEPRECATED: associated with `spend_local` call and will be removed in May 2025. Refer to for migration to `spend`.MaxApprovalsThe maximum number of approvals that can wait in the spending queue.
NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
value: U32(100) -
The period during which an approved treasury spend has to be claimed.PayoutPeriodvalue: U32(10)
-