Expand description
The pallet
module in each FRAME pallet hosts the most important items needed
to construct this pallet.
The main components of this pallet are:
Pallet
, which implements all of the dispatchable extrinsics of the pallet, among other public functions.- The subset of the functions that are dispatchable can be identified either in the
dispatchables
module or in theCall
enum.
- The subset of the functions that are dispatchable can be identified either in the
storage_types
, which contains the list of all types that are representing a storage item. Otherwise, all storage items are listed among Type Definitions.Config
, which contains the configuration trait of this pallet.Event
andError
, which are listed among the Enums.
Modules§
- dispatchables
- Auto-generated docs-only module listing all defined dispatchables for this pallet.
- storage_
types - Auto-generated docs-only module listing all (public and private) defined storage types for this pallet.
Structs§
- Genesis
Config - Can be used to configure the genesis state of this pallet.
- Pallet
- The
Pallet
struct, the main type that implements traits and standalone functions within the pallet.
Enums§
- Call
- Contains a variant per dispatchable extrinsic that this pallet has.
- Error
- The
Error
enum of this pallet. - Event
- The
Event
enum of this pallet
Traits§
- Config
- Configuration trait of this pallet.
Type Aliases§
- Aggregated
Unincluded Segment - Storage field that keeps track of bandwidth used by the unincluded segment along with the latest HRMP watermark. Used for limiting the acceptance of new blocks with respect to relay chain constraints.
- Announced
Hrmp Messages PerCandidate - The number of HRMP messages we observed in
on_initialize
and thus used that number for announcing the weight ofon_initialize
andon_finalize
. - Custom
Validation Head Data - A custom head data that should be returned as result of
validate_block
. - DidSet
Validation Code - Were the validation data set to notify the relay chain?
- Host
Configuration - The parachain host configuration that was obtained from the relay parent.
- Hrmp
Outbound Messages - HRMP messages that were sent in a block.
- Hrmp
Watermark - HRMP watermark that was set in a block.
- Last
DmqMqc Head - The last downward message queue chain head we have observed.
- Last
Hrmp MqcHeads - The message queue chain heads we have observed per each channel incoming channel.
- Last
Processed Downward Message - The last processed downward message.
- Last
Processed Hrmp Message - The last processed HRMP message.
- Last
Relay Chain Block Number - The relay chain block number associated with the last parachain block.
- Module
Deprecated - Type alias to
Pallet
, to be used byconstruct_runtime
. - NewValidation
Code - Validation code that is set by the parachain and is to be communicated to collator and consequently the relay-chain.
- Pending
Upward Messages - Upward messages that are still pending and not yet send to the relay chain.
- Pending
Validation Code - In case of a scheduled upgrade, this storage field contains the validation code to be applied.
- Processed
Downward Messages - Number of downward messages processed in a block.
- Relay
State Proof - The state proof for the last relay parent block.
- Relevant
Messaging State - The snapshot of some state related to messaging relevant to the current parachain as per the relay parent.
- Reserved
DmpWeight Override - The weight we reserve at the beginning of the block for processing DMP messages. This overrides the amount set in the Config trait.
- Reserved
Xcmp Weight Override - The weight we reserve at the beginning of the block for processing XCMP messages. This overrides the amount set in the Config trait.
- Unincluded
Segment - Latest included block descendants the runtime accepted. In other words, these are ancestors of the currently executing block which have not been included in the observed relay-chain state.
- Upgrade
GoAhead - Optional upgrade go-ahead signal from the relay-chain.
- Upgrade
Restriction Signal - An option which indicates if the relay-chain restricts signalling a validation code upgrade.
In other words, if this is
Some
andNewValidationCode
isSome
then the produced candidate will be invalid. - Upward
Delivery FeeFactor - The factor to multiply the base delivery fee by for UMP.
- Upward
Messages - Upward messages that were sent in a block.
- Validation
Data - The [
PersistedValidationData
] set for this block. This value is expected to be set only once per block and it’s never stored in the trie.