pub trait Config: Config {
Show 13 associated items type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type AdminOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin>; type Message: LpMessageSerializer + LpMessageBatch + LpMessageProof + LpMessageRecovery + Clone + Debug + PartialEq + Eq + MaxEncodedLen + TypeInfo + FullCodec; type MessageSender: MessageSender<Middleware = Self::RouterId, Origin = DomainAddress, Message = Self::Message>; type RouterId: Parameter + MaxEncodedLen + Into<Domain>; type RouterProvider: RouterProvider<Domain, RouterId = Self::RouterId>; type InboundMessageHandler: InboundMessageHandler<Sender = DomainAddress, Message = Self::Message>; type WeightInfo: WeightInfo; type MaxIncomingMessageSize: Get<u32>; type Sender: Get<DomainAddress>; type MessageQueue: MessageQueue<Message = GatewayMessage<Self::Message, Self::RouterId>>; type MaxRouterCount: Get<u32>; type SessionId: Parameter + Member + BaseArithmetic + Default + Copy + MaxEncodedLen;
}
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>> + IsType<<Self as Config>::RuntimeEvent>

The event type.

source

type AdminOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin>

The AdminOrigin ensures that some calls can only be performed by admins.

source

type Message: LpMessageSerializer + LpMessageBatch + LpMessageProof + LpMessageRecovery + Clone + Debug + PartialEq + Eq + MaxEncodedLen + TypeInfo + FullCodec

The Liquidity Pools message type.

source

type MessageSender: MessageSender<Middleware = Self::RouterId, Origin = DomainAddress, Message = Self::Message>

The target of the messages coming from this chain

source

type RouterId: Parameter + MaxEncodedLen + Into<Domain>

An identification of a router

source

type RouterProvider: RouterProvider<Domain, RouterId = Self::RouterId>

The type that provides the router available for a domain.

source

type InboundMessageHandler: InboundMessageHandler<Sender = DomainAddress, Message = Self::Message>

The type that processes inbound messages.

source

type WeightInfo: WeightInfo

source

type MaxIncomingMessageSize: Get<u32>

Maximum size of an incoming message.

source

type Sender: Get<DomainAddress>

The sender account that will be used in the OutboundQueue implementation.

source

type MessageQueue: MessageQueue<Message = GatewayMessage<Self::Message, Self::RouterId>>

Type used for queueing messages.

source

type MaxRouterCount: Get<u32>

Maximum number of routers allowed for a domain.

source

type SessionId: Parameter + Member + BaseArithmetic + Default + Copy + MaxEncodedLen

Type for identifying sessions of inbound routers.

Object Safety§

This trait is not object safe.

Implementors§