Trait to_parachain_backing::pallet::Config
source · [−]pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type WeightInfo: WeightInfo;
type PalletId: Get<PalletId>;
type MaxLockRingAmountPerTx: Get<RingBalance<Self>>;
type RingCurrency: Currency<AccountId<Self>>;
type BridgedAccountIdConverter: Convert<H256, Self::AccountId>;
type BridgedChainId: Get<ChainId>;
type OutboundPayloadCreator: Parameter + IssueFromRemotePayload<Self::AccountId, MultiSigner, MultiSignature, Self>;
type MessageNoncer: LatestMessageNoncer;
type MessageLaneId: Get<LaneId>;
type MessagesBridge: MessagesBridge<Self::Origin, Self::AccountId, RingBalance<Self>, <<Self as Config>::OutboundPayloadCreator as IssueFromRemotePayload<Self::AccountId, MultiSigner, MultiSignature, Self>>::Payload, Error = DispatchErrorWithPostInfo<PostDispatchInfo>>;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types
type WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
type MaxLockRingAmountPerTx: Get<RingBalance<Self>>
type MaxLockRingAmountPerTx: Get<RingBalance<Self>>
The max lock amount per transaction for security.
type RingCurrency: Currency<AccountId<Self>>
type RingCurrency: Currency<AccountId<Self>>
The RING currency.
type BridgedAccountIdConverter: Convert<H256, Self::AccountId>
type BridgedAccountIdConverter: Convert<H256, Self::AccountId>
The bridge account id converter.
remote account
+ remote chain id
derive the new account
type BridgedChainId: Get<ChainId>
type BridgedChainId: Get<ChainId>
The bridged chain id
type OutboundPayloadCreator: Parameter + IssueFromRemotePayload<Self::AccountId, MultiSigner, MultiSignature, Self>
type OutboundPayloadCreator: Parameter + IssueFromRemotePayload<Self::AccountId, MultiSigner, MultiSignature, Self>
Outbound payload creator used for s2s message
The message noncer to get the message nonce from the bridge
type MessageLaneId: Get<LaneId>
type MessageLaneId: Get<LaneId>
The lane id of the s2s bridge
type MessagesBridge: MessagesBridge<Self::Origin, Self::AccountId, RingBalance<Self>, <<Self as Config>::OutboundPayloadCreator as IssueFromRemotePayload<Self::AccountId, MultiSigner, MultiSignature, Self>>::Payload, Error = DispatchErrorWithPostInfo<PostDispatchInfo>>
type MessagesBridge: MessagesBridge<Self::Origin, Self::AccountId, RingBalance<Self>, <<Self as Config>::OutboundPayloadCreator as IssueFromRemotePayload<Self::AccountId, MultiSigner, MultiSignature, Self>>::Payload, Error = DispatchErrorWithPostInfo<PostDispatchInfo>>
The message bridge instance to send message