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§
sourcetype RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Benchmarks results from runtime we’re plugged into.
sourcetype UniversalLocation: Get<InteriorLocation>
type UniversalLocation: Get<InteriorLocation>
Universal location of this runtime.
sourcetype SiblingBridgeHubLocation: Get<Location>
type SiblingBridgeHubLocation: Get<Location>
Relative location of the supported sibling bridge hub.
sourcetype BridgedNetworkId: Get<Option<NetworkId>>
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.
sourcetype Bridges: ExporterFor
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.
sourcetype DestinationVersion: GetVersion
type DestinationVersion: GetVersion
Checks the XCM version for the destination.
sourcetype ToBridgeHubSender: SendXcm
type ToBridgeHubSender: SendXcm
Actual message sender (HRMP
or DMP
) to the sibling bridge hub location.
sourcetype LocalXcmChannelManager: XcmChannelStatusProvider
type LocalXcmChannelManager: XcmChannelStatusProvider
Local XCM channel manager.