pub trait Config: Config + Config {
    type BridgePalletId: Get<PalletId>;
    type BridgeOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = <Self as Config>::AccountId>;
    type Fees: Fees<AccountId = <Self as Config>::AccountId, Balance = <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
    type Currency: Currency<<Self as Config>::AccountId>;
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type NativeTokenId: Get<ResourceId>;
    type NativeTokenTransferFeeKey: Get<<Self::Fees as Fees>::FeeKey>;
    type WeightInfo: WeightInfo;
}
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. Bridge pallet’s configuration trait.

Associated types and constants are declared in this trait. If the pallet depends on other super-traits, the latter must be added to this trait, Note that [frame_system::Config] must always be included.

Required Associated Types§

source

type BridgePalletId: Get<PalletId>

Pallet identifier.

The module identifier may be of the form

source

type BridgeOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = <Self as Config>::AccountId>

Specifies the origin check provided by the chainbridge for calls that can only be called by the chainbridge pallet.

source

type Fees: Fees<AccountId = <Self as Config>::AccountId, Balance = <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

Entity used to pay fees

source

type Currency: Currency<<Self as Config>::AccountId>

Currency as viewed from this pallet

source

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

Associated type for Event enum

source

type NativeTokenId: Get<ResourceId>

source

type NativeTokenTransferFeeKey: Get<<Self::Fees as Fees>::FeeKey>

Key used to retrieve the fee that are charged when transferring native tokens to target chains.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet

Object Safety§

This trait is not object safe.

Implementors§