pub trait Config: Config<OnSetCode = ParachainSetCode<Self>> {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type OnSystemEvent: OnSystemEvent;
type SelfParaId: Get<ParaId>;
type OutboundXcmpMessageSource: XcmpMessageSource;
type DmpQueue: HandleMessage;
type ReservedDmpWeight: Get<Weight>;
type XcmpMessageHandler: XcmpMessageHandler;
type ReservedXcmpWeight: Get<Weight>;
type CheckAssociatedRelayNumber: CheckAssociatedRelayNumber;
type WeightInfo: WeightInfo;
type ConsensusHook: ConsensusHook;
type SelectCore: SelectCore;
}
Expand description
Configuration trait of this pallet.
The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.
Consequently, a runtime that wants to include this pallet must implement this trait.
Required Associated Types§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype OnSystemEvent: OnSystemEvent
type OnSystemEvent: OnSystemEvent
Something which can be notified when the validation data is set.
sourcetype SelfParaId: Get<ParaId>
type SelfParaId: Get<ParaId>
Returns the parachain ID we are running with.
sourcetype OutboundXcmpMessageSource: XcmpMessageSource
type OutboundXcmpMessageSource: XcmpMessageSource
The place where outbound XCMP messages come from. This is queried in finalize_block
.
sourcetype DmpQueue: HandleMessage
type DmpQueue: HandleMessage
Queues inbound downward messages for delayed processing.
All inbound DMP messages from the relay are pushed into this. The handler is expected to eventually process all the messages that are pushed to it.
sourcetype ReservedDmpWeight: Get<Weight>
type ReservedDmpWeight: Get<Weight>
The weight we reserve at the beginning of the block for processing DMP messages.
sourcetype XcmpMessageHandler: XcmpMessageHandler
type XcmpMessageHandler: XcmpMessageHandler
The message handler that will be invoked when messages are received via XCMP.
This should normally link to the XCMP Queue pallet.
sourcetype ReservedXcmpWeight: Get<Weight>
type ReservedXcmpWeight: Get<Weight>
The weight we reserve at the beginning of the block for processing XCMP messages.
sourcetype CheckAssociatedRelayNumber: CheckAssociatedRelayNumber
type CheckAssociatedRelayNumber: CheckAssociatedRelayNumber
Something that can check the associated relay parent block number.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight info for functions and calls.
sourcetype ConsensusHook: ConsensusHook
type ConsensusHook: ConsensusHook
An entry-point for higher-level logic to manage the backlog of unincluded parachain blocks and authorship rights for those blocks.
Typically, this should be a hook tailored to the collator-selection/consensus mechanism that is used for this chain.
However, to maintain the same behavior as prior to asynchronous backing, provide the
consensus_hook::ExpectParentIncluded
here. This is only necessary in the case
that collators aren’t expected to have node versions that supply the included block
in the relay-chain state proof.
sourcetype SelectCore: SelectCore
type SelectCore: SelectCore
Select core.