referrerpolicy=no-referrer-when-downgrade
snowbridge_pallet_inbound_queue_v2::pallet

Trait Config

Source
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§

Source

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

Source

type Verifier: Verifier

The verifier for inbound messages from Ethereum.

Source

type XcmSender: SendXcm

XCM message sender.

Source

type XcmExecutor: ExecuteXcm<Self::RuntimeCall>

Handler for XCM fees.

Source

type GatewayAddress: Get<H160>

Address of the Gateway contract.

Source

type AssetHubParaId: Get<u32>

AssetHub parachain ID.

Source

type MessageConverter: ConvertMessage

Convert a command from Ethereum to an XCM message.

Source

type Helper: BenchmarkHelper<Self>

Source

type RewardKind: Parameter + MaxEncodedLen + Send + Sync + Copy + Clone

Reward discriminator type.

Source

type DefaultRewardKind: Get<Self::RewardKind>

The default RewardKind discriminator for rewards allocated to relayers from this pallet.

Source

type RewardPayment: RewardLedger<Self::AccountId, Self::RewardKind, u128>

Relayer reward payment.

Source

type AccountToLocation: for<'a> TryConvert<&'a Self::AccountId, Location>

AccountId to Location converter

Source

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.

Implementors§

impl Config for Runtime