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§
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 UniversalLocation: Get<InteriorLocation>
type UniversalLocation: Get<InteriorLocation>
Runtime’s universal location.
sourcetype BridgedNetwork: Get<Location>
type BridgedNetwork: Get<Location>
Bridged network as relative location of bridged GlobalConsensus
.
sourcetype BridgeMessagesPalletInstance: 'static
type BridgeMessagesPalletInstance: 'static
Associated messages pallet instance that bridges us with the
BridgedNetworkId
consensus.
sourcetype MessageExportPrice: Get<Assets>
type MessageExportPrice: Get<Assets>
Price of single message export to the bridged consensus (Self::BridgedNetwork
).
sourcetype DestinationVersion: GetVersion
type DestinationVersion: GetVersion
Checks the XCM version for the destination.
sourcetype ForceOrigin: EnsureOrigin<<Self as SystemConfig>::RuntimeOrigin>
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.
sourcetype OpenBridgeOrigin: EnsureOrigin<<Self as SystemConfig>::RuntimeOrigin, Success = Location>
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.
sourcetype BridgeOriginAccountIdConverter: ConvertLocation<AccountIdOf<ThisChainOf<Self, I>>>
type BridgeOriginAccountIdConverter: ConvertLocation<AccountIdOf<ThisChainOf<Self, I>>>
A converter between a location and a sovereign account.
sourcetype BridgeDeposit: Get<BalanceOf<ThisChainOf<Self, I>>>
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.
sourcetype Currency: MutateHold<AccountIdOf<ThisChainOf<Self, I>>, Balance = BalanceOf<ThisChainOf<Self, I>>, Reason = Self::RuntimeHoldReason>
type Currency: MutateHold<AccountIdOf<ThisChainOf<Self, I>>, Balance = BalanceOf<ThisChainOf<Self, I>>, Reason = Self::RuntimeHoldReason>
Currency used to pay for bridge registration.
sourcetype RuntimeHoldReason: From<HoldReason<I>>
type RuntimeHoldReason: From<HoldReason<I>>
The overarching runtime hold reason.
sourcetype AllowWithoutBridgeDeposit: Contains<Location>
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.
sourcetype LocalXcmChannelManager: LocalXcmChannelManager
type LocalXcmChannelManager: LocalXcmChannelManager
Local XCM channel manager.
sourcetype BlobDispatcher: DispatchBlob
type BlobDispatcher: DispatchBlob
XCM-level dispatcher for inbound bridge messages.