Trait pallet_bridge_messages::pallet::Config
source · pub trait Config<I: 'static = ()>: Config {
type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>;
type WeightInfo: WeightInfoExt;
type ThisChain: ChainWithMessages;
type BridgedChain: ChainWithMessages;
type BridgedHeaderChain: HeaderChain<Self::BridgedChain>;
type OutboundPayload: Parameter + Size;
type InboundPayload: Decode;
type LaneId: LaneIdType;
type DeliveryPayments: DeliveryPayments<Self::AccountId>;
type DeliveryConfirmationPayments: DeliveryConfirmationPayments<Self::AccountId, Self::LaneId>;
type OnMessagesDelivered: OnMessagesDelivered<Self::LaneId>;
type MessageDispatch: MessageDispatch<DispatchPayload = Self::InboundPayload, LaneId = Self::LaneId>;
}
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, I>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype WeightInfo: WeightInfoExt
type WeightInfo: WeightInfoExt
Benchmarks results from runtime we’re plugged into.
sourcetype BridgedChain: ChainWithMessages
type BridgedChain: ChainWithMessages
Bridged chain type.
sourcetype BridgedHeaderChain: HeaderChain<Self::BridgedChain>
type BridgedHeaderChain: HeaderChain<Self::BridgedChain>
Bridged chain headers provider.
sourcetype OutboundPayload: Parameter + Size
type OutboundPayload: Parameter + Size
Payload type of outbound messages. This payload is dispatched on the bridged chain.
sourcetype InboundPayload: Decode
type InboundPayload: Decode
Payload type of inbound messages. This payload is dispatched on this chain.
sourcetype DeliveryPayments: DeliveryPayments<Self::AccountId>
type DeliveryPayments: DeliveryPayments<Self::AccountId>
Handler for relayer payments that happen during message delivery transaction.
sourcetype DeliveryConfirmationPayments: DeliveryConfirmationPayments<Self::AccountId, Self::LaneId>
type DeliveryConfirmationPayments: DeliveryConfirmationPayments<Self::AccountId, Self::LaneId>
Handler for relayer payments that happen during message delivery confirmation transaction.
sourcetype OnMessagesDelivered: OnMessagesDelivered<Self::LaneId>
type OnMessagesDelivered: OnMessagesDelivered<Self::LaneId>
Delivery confirmation callback.
sourcetype MessageDispatch: MessageDispatch<DispatchPayload = Self::InboundPayload, LaneId = Self::LaneId>
type MessageDispatch: MessageDispatch<DispatchPayload = Self::InboundPayload, LaneId = Self::LaneId>
Message dispatch handler.