Skip to content

Commit

Permalink
Minor change in bridge-hub
Browse files Browse the repository at this point in the history
  • Loading branch information
raynaudoe committed Nov 14, 2024
1 parent d52ab9b commit c5f3312
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions system-parachains/bridge-hub-paseo/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ parameter_types! {
pub StakingPot: AccountId = CollatorSelection::account_id();
}

/// Type for specifying how a `Location` can be converted into an `AccountId`. This is used
/// when determining ownership of accounts for asset transacting and when attempting to use XCM
/// `Transact` in order to determine the dispatch Origin.
/// Type for specifying how a `Location` can be converted into an `AccountId`.
///
/// This is used when determining ownership of accounts for asset transacting and when attempting to
/// use XCM `Transact` in order to determine the dispatch Origin.
pub type LocationToAccountId = (
// The parent (Relay-chain) origin converts to the parent `AccountId`.
ParentIsPreset<AccountId>,
Expand All @@ -102,8 +103,9 @@ pub type FungibleTransactor = FungibleAdapter<
>;

/// This is the type we use to convert an (incoming) XCM origin into a local `Origin` instance,
/// ready for dispatching a transaction with Xcm's `Transact`. There is an `OriginKind` which can
/// biases the kind of local `Origin` it will become.
/// ready for dispatching a transaction with Xcm's `Transact`.
///
/// There is an `OriginKind` which can biases the kind of local `Origin` it will become.
pub type XcmOriginToTransactDispatchOrigin = (
// Sovereign account converter; this attempts to derive an `AccountId` from the origin location
// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for
Expand Down Expand Up @@ -301,6 +303,7 @@ impl cumulus_pallet_xcm::Config for Runtime {
}

/// A `FeeManager` implementation that forces fees for any message delivered to Ethereum.
///
/// Otherwise, it permits the specified `WaivedLocations` to not pay for fees and uses the provided
/// `HandleFee` implementation.
pub struct XcmFeeManagerFromComponentsBridgeHub<WaivedLocations, HandleFee>(
Expand Down

0 comments on commit c5f3312

Please sign in to comment.