pub trait Config: Config {
Show 13 associated items
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type Verifier: Verifier;
type XcmSender: SendXcm;
type XcmExecutor: ExecuteXcm<Self::RuntimeCall>;
type GatewayAddress: Get<H160>;
type AssetHubParaId: Get<u32>;
type MessageConverter: ConvertMessage;
type Helper: BenchmarkHelper<Self>;
type RewardKind: Parameter + MaxEncodedLen + Send + Sync + Copy + Clone;
type DefaultRewardKind: Get<Self::RewardKind>;
type RewardPayment: RewardLedger<Self::AccountId, Self::RewardKind, u128>;
type AccountToLocation: for<'a> TryConvert<&'a Self::AccountId, Location>;
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.
Required Associated Types§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Sourcetype XcmExecutor: ExecuteXcm<Self::RuntimeCall>
type XcmExecutor: ExecuteXcm<Self::RuntimeCall>
Handler for XCM fees.
Sourcetype GatewayAddress: Get<H160>
type GatewayAddress: Get<H160>
Address of the Gateway contract.
Sourcetype AssetHubParaId: Get<u32>
type AssetHubParaId: Get<u32>
AssetHub parachain ID.
Sourcetype MessageConverter: ConvertMessage
type MessageConverter: ConvertMessage
Convert a command from Ethereum to an XCM message.
type Helper: BenchmarkHelper<Self>
Sourcetype RewardKind: Parameter + MaxEncodedLen + Send + Sync + Copy + Clone
type RewardKind: Parameter + MaxEncodedLen + Send + Sync + Copy + Clone
Reward discriminator type.
Sourcetype DefaultRewardKind: Get<Self::RewardKind>
type DefaultRewardKind: Get<Self::RewardKind>
The default RewardKind discriminator for rewards allocated to relayers from this pallet.
Sourcetype RewardPayment: RewardLedger<Self::AccountId, Self::RewardKind, u128>
type RewardPayment: RewardLedger<Self::AccountId, Self::RewardKind, u128>
Relayer reward payment.
Sourcetype AccountToLocation: for<'a> TryConvert<&'a Self::AccountId, Location>
type AccountToLocation: for<'a> TryConvert<&'a Self::AccountId, Location>
AccountId to Location converter
type WeightInfo: WeightInfo
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.