referrerpolicy=no-referrer-when-downgrade

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§

source

type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type.

source

type WeightInfo: WeightInfoExt

Benchmarks results from runtime we’re plugged into.

source

type ThisChain: ChainWithMessages

This chain type.

source

type BridgedChain: ChainWithMessages

Bridged chain type.

source

type BridgedHeaderChain: HeaderChain<Self::BridgedChain>

Bridged chain headers provider.

source

type OutboundPayload: Parameter + Size

Payload type of outbound messages. This payload is dispatched on the bridged chain.

source

type InboundPayload: Decode

Payload type of inbound messages. This payload is dispatched on this chain.

source

type LaneId: LaneIdType

Lane identifier type.

source

type DeliveryPayments: DeliveryPayments<Self::AccountId>

Handler for relayer payments that happen during message delivery transaction.

source

type DeliveryConfirmationPayments: DeliveryConfirmationPayments<Self::AccountId, Self::LaneId>

Handler for relayer payments that happen during message delivery confirmation transaction.

source

type OnMessagesDelivered: OnMessagesDelivered<Self::LaneId>

Delivery confirmation callback.

source

type MessageDispatch: MessageDispatch<DispatchPayload = Self::InboundPayload, LaneId = Self::LaneId>

Message dispatch handler.

Object Safety§

This trait is not object safe.

Implementors§