Trait pallet_bridge::pallet::Config
source · 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§
sourcetype BridgePalletId: Get<PalletId>
type BridgePalletId: Get<PalletId>
Pallet identifier.
The module identifier may be of the form
sourcetype BridgeOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = <Self as Config>::AccountId>
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.
sourcetype Fees: Fees<AccountId = <Self as Config>::AccountId, Balance = <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
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
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Associated type for Event enum
type NativeTokenId: Get<ResourceId>
sourcetype NativeTokenTransferFeeKey: Get<<Self::Fees as Fees>::FeeKey>
type NativeTokenTransferFeeKey: Get<<Self::Fees as Fees>::FeeKey>
Key used to retrieve the fee that are charged when transferring native tokens to target chains.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet