referrerpolicy=no-referrer-when-downgrade

Trait pallet_xcm_bridge_hub_router::pallet::Config

source ·
pub trait Config<I: 'static = ()>: Config {
    type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>;
    type WeightInfo: WeightInfo;
    type UniversalLocation: Get<InteriorLocation>;
    type SiblingBridgeHubLocation: Get<Location>;
    type BridgedNetworkId: Get<Option<NetworkId>>;
    type Bridges: ExporterFor;
    type DestinationVersion: GetVersion;
    type ToBridgeHubSender: SendXcm;
    type LocalXcmChannelManager: XcmChannelStatusProvider;
    type ByteFee: Get<u128>;
    type FeeAsset: Get<AssetId>;
}
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, I>> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type.

source

type WeightInfo: WeightInfo

Benchmarks results from runtime we’re plugged into.

source

type UniversalLocation: Get<InteriorLocation>

Universal location of this runtime.

source

type SiblingBridgeHubLocation: Get<Location>

Relative location of the supported sibling bridge hub.

source

type BridgedNetworkId: Get<Option<NetworkId>>

The bridged network that this config is for if specified. Also used for filtering Bridges by BridgedNetworkId. If not specified, allows all networks pass through.

source

type Bridges: ExporterFor

Configuration for supported bridged networks/locations with bridge location and possible fee. Allows to externalize better control over allowed bridged networks/locations.

source

type DestinationVersion: GetVersion

Checks the XCM version for the destination.

source

type ToBridgeHubSender: SendXcm

Actual message sender (HRMP or DMP) to the sibling bridge hub location.

source

type LocalXcmChannelManager: XcmChannelStatusProvider

Local XCM channel manager.

source

type ByteFee: Get<u128>

Additional fee that is paid for every byte of the outbound message.

source

type FeeAsset: Get<AssetId>

Asset that is used to paid bridge fee.

Object Safety§

This trait is not object safe.

Implementors§