pub trait Config: Config<OnSetCode = ParachainSetCode<Self>> {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type OnSystemEvent: OnSystemEvent;
type SelfParaId: Get<ParaId>;
type OutboundXcmpMessageSource: XcmpMessageSource;
type DmpMessageHandler: DmpMessageHandler;
type ReservedDmpWeight: Get<Weight>;
type XcmpMessageHandler: XcmpMessageHandler;
type ReservedXcmpWeight: Get<Weight>;
type CheckAssociatedRelayNumber: CheckAssociatedRelayNumber;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
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 DmpMessageHandler: DmpMessageHandler
type DmpMessageHandler: DmpMessageHandler
The message handler that will be invoked when messages are received via DMP.
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.
The messages are dispatched in the order they were relayed by the relay chain. If multiple messages were relayed at one block, these will be dispatched in ascending order of the sender’s para ID.
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.