Please enable JavaScript.
Coggle requires JavaScript to display documents.
runtime (construct_runtime! (registrar (register_parathread (register_para…
runtime
construct_runtime!
Block
generic::Block
-
Header
-
-
number
BlockNumber
u32
136 years of blocks, assuming 1 block per second.
-
digest
Digest
logs
Vec
DigestItem
- 6 more items...
-
-
-
-
-
-
system
Defines core data types.
Provides utility functions.
Manages storage for extrinsics data, indexes, events and digests.
Handles depositing logs, set up and tear down of temporary storage, and access to previous block hashes.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
babe
Block production consensus module.
Collects on-chain randomness from VRF outputs.
Manages epoch transitions.
-
-
-
-
-
balances
-
-
withdraw
-
Err if ExistenceRequirement is KeepAlive and the remaining balance would become less than ExistentialDeposit.
-
can_withdraw
Err if there are locks in place in the current block for the withdraw reasons and the new_balances is greater than or equal to the lock amount.
Err if WithdrawReason is Reserve or Transfer and the vesting balance is greater than the new balance.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
treasury
Pot of funds managed by stakeholders.
Propose, approve and deny expend
claims
claim
-
-
-
-
-
-
-
-
Deposits the claim to a Polkadot address, creating it if it does not exist.
-
-
-
-
parachains
-
-
-
-
Watermarks
For every parachain, the block height from which all messages targeting that parachain have been processed.
UnroutedIngress
Maps (BlockNumber, to_chain) pairs to Vec<(from_chain, egress_root Hash)>
-
-
RelayDispatchQueueSize
map
-
(count of messages, length in bytes of the payloads)
-
set_heads
-
-
Err
If the parachain heads were already updated in the block.
If the number of heads to set is greater than the number of active parachains.
If the parachains ids are not sorted or there are duplicated ids.
If the head id is not in the active parachains.
If the parachain collator is not the same as the head collator.
Err
If the new upward messages make the queue greater than MAX_QUEUE_COUNT or the total size of the payloads in the queue greater than WATERMARK_QUEUE_SIZE.
If it is not a system parachain and the origin of one of the new upward messages is Root.
Err
If the egress queue roots are not sorted or there are duplicated ids.
If the egress parachain id is the same as the head parachain id. (routing to self)
If there is an empty trie root in the egress queue.
If the egress parachain id is not in the active parachains.
-
check_candidates
-
-
Err if the number of validity votes is less than the majority of the validators assigned to the parachain.
-
-
AttestedCandidate
candidate
CandidateRecipt
-
collator
CollatorId
- 1 more item...
-
-
-
-
-
-
-
-
Err
If validity_votes are missing at least one of the validator_indices.
If validator_indices includes at least one validator that is not in duty for the parachain.
-
-
-
-
-
-
dispatch_upward_messages
Dispatches messages while the count is not greater than MAX_QUEUE_COUNT and size is not greater than WATERMARK_QUEUE_SIZE.
-
-
-
-
-
-
-
-
-
-
-
slots
-
-
-
-
-
-
-
-
-
on_initialize
-
manage_auction_end
-
-
-
Withdraw the deposit.
For new bidders
-
-
-
-
-
Add the parachain to Onboarding, as Unset IncommingParachain.
-
-
-
-
-
-
Deposits
-
The actual amount locked for a Parachain is the maximum item in the list.
Items are ordered by lease period. The first item is for the current period.
Parachains scheduled to exist in the future are left-padded with zeroes.
AuctionInfo
(First of four contiguous lease periods, First block of the Ending Period)
-
-
-
Onboarding
map
(LeasePeriodOf, IncomingParachain)
-
-
-
new_auction
-
Err
If origin is not Root.
If AuctionInfo exists. (an auction is in progress)
If the lease period is in the past.
-
-
-
-
-
fix_deploy_data
-
Err
If the parachain is not in Onboarding.
If the parachain was not registered by the origin.
If the deploy data has already been set.
-
-
elaborate_deploy_data
-
Err
If the parachain is not in Onboarding.
If the code_hash has not been set.
If the code and code_hash do not match.
-
-
-
-
-
-
-
attestations
-
IncludedBlocks
-
-
-
-
para_blocks
Vec
Hash
Hashes of the candidates included,
-
-