referrerpolicy=no-referrer-when-downgrade

Trait pallet_xcm_bridge_hub::pallet::Config

source ·
pub trait Config<I: 'static = ()>: BridgeMessagesConfig<Self::BridgeMessagesPalletInstance> {
Show 15 associated items type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>; type UniversalLocation: Get<InteriorLocation>; type BridgedNetwork: Get<Location>; type BridgeMessagesPalletInstance: 'static; type MessageExportPrice: Get<Assets>; type DestinationVersion: GetVersion; type ForceOrigin: EnsureOrigin<<Self as SystemConfig>::RuntimeOrigin>; type OpenBridgeOrigin: EnsureOrigin<<Self as SystemConfig>::RuntimeOrigin, Success = Location>; type BridgeOriginAccountIdConverter: ConvertLocation<AccountIdOf<ThisChainOf<Self, I>>>; type BridgeDeposit: Get<BalanceOf<ThisChainOf<Self, I>>>; type Currency: MutateHold<AccountIdOf<ThisChainOf<Self, I>>, Balance = BalanceOf<ThisChainOf<Self, I>>, Reason = Self::RuntimeHoldReason>; type RuntimeHoldReason: From<HoldReason<I>>; type AllowWithoutBridgeDeposit: Contains<Location>; type LocalXcmChannelManager: LocalXcmChannelManager; type BlobDispatcher: DispatchBlob;
}
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 UniversalLocation: Get<InteriorLocation>

Runtime’s universal location.

source

type BridgedNetwork: Get<Location>

Bridged network as relative location of bridged GlobalConsensus.

source

type BridgeMessagesPalletInstance: 'static

Associated messages pallet instance that bridges us with the BridgedNetworkId consensus.

source

type MessageExportPrice: Get<Assets>

Price of single message export to the bridged consensus (Self::BridgedNetwork).

source

type DestinationVersion: GetVersion

Checks the XCM version for the destination.

source

type ForceOrigin: EnsureOrigin<<Self as SystemConfig>::RuntimeOrigin>

The origin that is allowed to call privileged operations on the pallet, e.g. open/close bridge for locations.

source

type OpenBridgeOrigin: EnsureOrigin<<Self as SystemConfig>::RuntimeOrigin, Success = Location>

A set of XCM locations within local consensus system that are allowed to open bridges with remote destinations.

source

type BridgeOriginAccountIdConverter: ConvertLocation<AccountIdOf<ThisChainOf<Self, I>>>

A converter between a location and a sovereign account.

source

type BridgeDeposit: Get<BalanceOf<ThisChainOf<Self, I>>>

Amount of this chain native tokens that is reserved on the sibling parachain account when bridge open request is registered.

source

type Currency: MutateHold<AccountIdOf<ThisChainOf<Self, I>>, Balance = BalanceOf<ThisChainOf<Self, I>>, Reason = Self::RuntimeHoldReason>

Currency used to pay for bridge registration.

source

type RuntimeHoldReason: From<HoldReason<I>>

The overarching runtime hold reason.

source

type AllowWithoutBridgeDeposit: Contains<Location>

Do not hold Self::BridgeDeposit for the location of Self::OpenBridgeOrigin. For example, it is possible to make an exception for a system parachain or relay.

source

type LocalXcmChannelManager: LocalXcmChannelManager

Local XCM channel manager.

source

type BlobDispatcher: DispatchBlob

XCM-level dispatcher for inbound bridge messages.

Object Safety§

This trait is not object safe.

Implementors§