Trait pallet_liquidity_pools_gateway::pallet::Config
source · 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§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The event type.
sourcetype AdminOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin>
type AdminOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin>
The AdminOrigin ensures that some calls can only be performed by admins.
sourcetype Message: LpMessageSerializer + LpMessageBatch + LpMessageProof + LpMessageRecovery + Clone + Debug + PartialEq + Eq + MaxEncodedLen + TypeInfo + FullCodec
type Message: LpMessageSerializer + LpMessageBatch + LpMessageProof + LpMessageRecovery + Clone + Debug + PartialEq + Eq + MaxEncodedLen + TypeInfo + FullCodec
The Liquidity Pools message type.
sourcetype MessageSender: MessageSender<Middleware = Self::RouterId, Origin = DomainAddress, Message = Self::Message>
type MessageSender: MessageSender<Middleware = Self::RouterId, Origin = DomainAddress, Message = Self::Message>
The target of the messages coming from this chain
sourcetype RouterProvider: RouterProvider<Domain, RouterId = Self::RouterId>
type RouterProvider: RouterProvider<Domain, RouterId = Self::RouterId>
The type that provides the router available for a domain.
sourcetype InboundMessageHandler: InboundMessageHandler<Sender = DomainAddress, Message = Self::Message>
type InboundMessageHandler: InboundMessageHandler<Sender = DomainAddress, Message = Self::Message>
The type that processes inbound messages.
type WeightInfo: WeightInfo
sourcetype MaxIncomingMessageSize: Get<u32>
type MaxIncomingMessageSize: Get<u32>
Maximum size of an incoming message.
sourcetype Sender: Get<DomainAddress>
type Sender: Get<DomainAddress>
The sender account that will be used in the OutboundQueue implementation.
sourcetype MessageQueue: MessageQueue<Message = GatewayMessage<Self::Message, Self::RouterId>>
type MessageQueue: MessageQueue<Message = GatewayMessage<Self::Message, Self::RouterId>>
Type used for queueing messages.
sourcetype MaxRouterCount: Get<u32>
type MaxRouterCount: Get<u32>
Maximum number of routers allowed for a domain.