runtime-constants.md
-
* cargo xtask gen-doc * add documentation * refactore errors * better type formatting * refactoring * add constants * add storages
* 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
-
BlockWeights
value: 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 () } } })
-
BlockLength
value: frame_system::limits::BlockLength({ max: { normal: 3932160, operational: 5242880, mandatory: 5242880 } })
-
BlockHashCount
value: U32(2400)
-
DbWeight
value: sp_weights::RuntimeDbWeight({ read: 14314000, write: 99642000 })
-
Version
value: 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 })
-
SS58Prefix
This 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
-
MaximumWeight
value: sp_weights::weight_v2::Weight({ ref_time: 1600000000000, proof_size: 14757395258967641292 })
-
MaxScheduledPerBlock
NOTE:
- Dependent pallets' benchmarks might require a higher limit for the setting. Set a
higher limit under
runtime-benchmarks
feature.
value: U32(50)
- Dependent pallets' benchmarks might require a higher limit for the setting. Set a
higher limit under
-
- Babe - 3
-
EpochDuration
value: U64(30)
-
ExpectedBlockTime
value: U64(6000)
-
MaxAuthorities
value: U32(32)
-
MaxNominators
value: U32(64)
-
- Timestamp - 4
-
MinimumPeriod
Be 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
-
ExistentialDeposit
If you really need it to be zero, you can enable the feature
insecure_zero_ed
for 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)
-
MaxLocks
Use of locks is deprecated in favour of freezes. See
https://github.com/paritytech/substrate/pull/12951/
value: U32(50)
-
MaxReserves
Use of reserves is deprecated in favour of holds. See
https://github.com/paritytech/substrate/pull/12951/
value: U32(5)
-
MaxFreezes
value: U32(0)
-
- TransactionPayment - 32
-
OperationalFeeMultiplier
This value is multiplied by the
final_fee
to obtain a "virtual tip" that is later added to a tip component in regularpriority
calculations. It means that aNormal
transaction can front-run a similarly-sizedOperational
extrinsic (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_fee
the multiplier applies also to the regulartip
sent 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 toOperational
transactions.value: U8(5)
-
- OneshotAccount - 7
- Quota - 66
-
RefundAccount
value: 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
-
MaxByIssuer
value: U32(8)
-
MinCertForMembership
value: U32(2)
-
SmithInactivityMaxDuration
value: U32(48)
-
- AuthorityMembers - 11
-
MaxAuthorities
value: U32(32)
-
- Authorship - 12
- Offences - 13
- Historical - 14
- Session - 15
- Grandpa - 16
-
MaxAuthorities
value: U32(32)
-
MaxNominators
value: U32(64)
-
MaxSetIdSessionEntries
Since the
SetIdSession
map 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
-
UnsignedPriority
This 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
-
MaxProposalWeight
value: sp_weights::weight_v2::Weight({ ref_time: 1000000000000, proof_size: 9223372036854775807 })
-
- UniversalDividend - 30
-
MaxPastReeval
value: U32(160)
-
SquareMoneyGrowthRate
value: sp_arithmetic::per_things::Perbill((2381440))
-
UdCreationPeriod
value: U64(60000)
-
UdReevalPeriod
value: U64(1200000)
-
- Wot - 40
-
FirstIssuableOn
value: U32(20)
-
MinCertForMembership
value: U32(2)
-
MinCertForCreateIdtyRight
value: U32(2)
-
- Identity - 41
-
ConfirmPeriod
value: U32(40)
-
ValidationPeriod
value: U32(876600)
-
AutorevocationPeriod
value: U32(438300)
-
DeletionPeriod
value: U32(438300)
-
ChangeOwnerKeyPeriod
value: U32(100800)
-
IdtyCreationPeriod
value: U32(50)
-
- Membership - 42
-
MembershipPeriod
value: U32(1000)
-
MembershipRenewalPeriod
value: U32(1000)
-
- Certification - 43
-
CertPeriod
value: U32(15)
-
MaxByIssuer
value: U32(10)
-
MinReceivedCertToBeAbleToIssueCert
value: U32(2)
-
ValidityPeriod
value: U32(1000)
-
- Distance - 44
-
EvaluationPrice
value: U64(1000)
-
EvaluationPeriod
value: U32(7)
-
MaxRefereeDistance
value: U32(5)
-
MinAccessibleReferees
value: sp_arithmetic::per_things::Perbill((800000000))
-
- AtomicSwap - 50
-
ProofLimit
Atomic 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
-
DepositBase
This 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)
-
DepositFactor
This is held for adding 32 bytes more into a pre-existing storage value.
value: U64(32)
-
MaxSignatories
value: U32(10)
-
- ProvideRandomness - 52
-
MaxRequests
value: U32(100)
-
RequestPrice
value: U64(2000)
-
- Proxy - 53
-
ProxyDepositBase
This is held for an additional storage item whose value size is
sizeof(Balance)
bytes and whose key size issizeof(AccountId)
bytes.value: U64(108)
-
ProxyDepositFactor
This is held for adding 32 bytes plus an instance of
ProxyType
more into a pre-existing storage value. Thus, when configuringProxyDepositFactor
one should take into account32 + proxy_type.encode().len()
bytes of data.value: U64(33)
-
MaxProxies
value: U32(32)
-
MaxPending
value: U32(32)
-
AnnouncementDepositBase
This is held when a new storage item holding a
Balance
is created (typically 16 bytes).value: U64(108)
-
AnnouncementDepositFactor
This is held for adding an
AccountId
,Hash
andBlockNumber
(typically 68 bytes) into a pre-existing storage value.value: U64(66)
-
- Utility - 54
-
batched_calls_limit
value: U32(10922)
-
- Treasury - 55
-
SpendPeriod
value: U32(14400)
-
Burn
value: sp_arithmetic::per_things::Permill((0))
-
PalletId
value: frame_support::PalletId(((112, 121, 47, 116, 114, 115, 114, 121)))
-
MaxApprovals
The 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)
-
PayoutPeriod
value: U32(10)
-