diff --git a/parachain-template/runtime/src/xcm_config.rs b/parachain-template/runtime/src/xcm_config.rs index bc55538be6..75f203f97c 100644 --- a/parachain-template/runtime/src/xcm_config.rs +++ b/parachain-template/runtime/src/xcm_config.rs @@ -1,14 +1,15 @@ use super::{ - AccountId, Balance, Balances, Call, Event, Origin, ParachainInfo, ParachainSystem, PolkadotXcm, - Runtime, XcmpQueue, + AccountId, Balances, Call, Event, Origin, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, + WeightToFee, XcmpQueue, }; use frame_support::{ match_types, parameter_types, traits::{Everything, Nothing}, - weights::{IdentityFee, Weight}, + weights::Weight, }; use pallet_xcm::XcmPassthrough; use polkadot_parachain::primitives::Sibling; +use polkadot_runtime_common::impls::ToAuthor; use xcm::latest::prelude::*; use xcm_builder::{ AccountId32Aliases, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, CurrencyAdapter, @@ -105,7 +106,8 @@ impl xcm_executor::Config for XcmConfig { type LocationInverter = LocationInverter; type Barrier = Barrier; type Weigher = FixedWeightBounds; - type Trader = UsingComponents, RelayLocation, AccountId, Balances, ()>; + type Trader = + UsingComponents>; type ResponseHandler = PolkadotXcm; type AssetTrap = PolkadotXcm; type AssetClaims = PolkadotXcm; diff --git a/polkadot-parachains/canvas-kusama/src/xcm_config.rs b/polkadot-parachains/canvas-kusama/src/xcm_config.rs index c838f0154a..c129d4d016 100644 --- a/polkadot-parachains/canvas-kusama/src/xcm_config.rs +++ b/polkadot-parachains/canvas-kusama/src/xcm_config.rs @@ -14,13 +14,13 @@ // limitations under the License. use super::{ - AccountId, Balance, Balances, Call, Event, Origin, ParachainInfo, ParachainSystem, PolkadotXcm, - Runtime, XcmpQueue, + AccountId, Balances, Call, Event, Origin, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, + WeightToFee, XcmpQueue, }; use frame_support::{ match_types, parameter_types, traits::{EnsureOneOf, Everything, Nothing}, - weights::{IdentityFee, Weight}, + weights::Weight, }; use frame_system::EnsureRoot; use pallet_xcm::{EnsureXcm, IsMajorityOfBody, XcmPassthrough}; @@ -139,7 +139,7 @@ impl xcm_executor::Config for XcmConfig { type LocationInverter = LocationInverter; type Barrier = Barrier; type Weigher = FixedWeightBounds; - type Trader = UsingComponents, RelayLocation, AccountId, Balances, ()>; + type Trader = UsingComponents; type ResponseHandler = PolkadotXcm; type AssetTrap = PolkadotXcm; type AssetClaims = PolkadotXcm; diff --git a/polkadot-parachains/statemine/src/xcm_config.rs b/polkadot-parachains/statemine/src/xcm_config.rs index 97b076e129..9bf8b827f1 100644 --- a/polkadot-parachains/statemine/src/xcm_config.rs +++ b/polkadot-parachains/statemine/src/xcm_config.rs @@ -15,14 +15,15 @@ use super::{ AccountId, AssetId, Assets, Balance, Balances, Call, Event, Origin, ParachainInfo, - ParachainSystem, PolkadotXcm, Runtime, XcmpQueue, + ParachainSystem, PolkadotXcm, Runtime, WeightToFee, XcmpQueue, }; use frame_support::{ match_types, parameter_types, traits::{Everything, Nothing, PalletInfoAccess}, - weights::{IdentityFee, Weight}, + weights::Weight, }; use pallet_xcm::XcmPassthrough; +use parachains_common::impls::ToStakingPot; use polkadot_parachain::primitives::Sibling; use xcm::latest::prelude::*; use xcm_builder::{ @@ -160,7 +161,8 @@ impl xcm_executor::Config for XcmConfig { type LocationInverter = LocationInverter; type Barrier = Barrier; type Weigher = FixedWeightBounds; - type Trader = UsingComponents, KsmLocation, AccountId, Balances, ()>; + type Trader = + UsingComponents>; type ResponseHandler = PolkadotXcm; type AssetTrap = PolkadotXcm; type AssetClaims = PolkadotXcm; diff --git a/polkadot-parachains/statemint/src/xcm_config.rs b/polkadot-parachains/statemint/src/xcm_config.rs index 0cd96e4a5a..c5386f1dde 100644 --- a/polkadot-parachains/statemint/src/xcm_config.rs +++ b/polkadot-parachains/statemint/src/xcm_config.rs @@ -15,14 +15,15 @@ use super::{ AccountId, AssetId, Assets, Balance, Balances, Call, Event, Origin, ParachainInfo, - ParachainSystem, PolkadotXcm, Runtime, XcmpQueue, + ParachainSystem, PolkadotXcm, Runtime, WeightToFee, XcmpQueue, }; use frame_support::{ match_types, parameter_types, traits::{Everything, Nothing, PalletInfoAccess}, - weights::{IdentityFee, Weight}, + weights::Weight, }; use pallet_xcm::XcmPassthrough; +use parachains_common::impls::ToStakingPot; use polkadot_parachain::primitives::Sibling; use xcm::latest::prelude::*; use xcm_builder::{ @@ -160,7 +161,8 @@ impl xcm_executor::Config for XcmConfig { type LocationInverter = LocationInverter; type Barrier = Barrier; type Weigher = FixedWeightBounds; - type Trader = UsingComponents, DotLocation, AccountId, Balances, ()>; + type Trader = + UsingComponents>; type ResponseHandler = PolkadotXcm; type AssetTrap = PolkadotXcm; type AssetClaims = PolkadotXcm; diff --git a/polkadot-parachains/westmint/src/xcm_config.rs b/polkadot-parachains/westmint/src/xcm_config.rs index 662bf9831f..d95cbe7cfd 100644 --- a/polkadot-parachains/westmint/src/xcm_config.rs +++ b/polkadot-parachains/westmint/src/xcm_config.rs @@ -15,14 +15,15 @@ use super::{ AccountId, AssetId, Assets, Balance, Balances, Call, Event, Origin, ParachainInfo, - ParachainSystem, PolkadotXcm, Runtime, XcmpQueue, + ParachainSystem, PolkadotXcm, Runtime, WeightToFee, XcmpQueue, }; use frame_support::{ match_types, parameter_types, traits::{Everything, PalletInfoAccess}, - weights::{IdentityFee, Weight}, + weights::Weight, }; use pallet_xcm::XcmPassthrough; +use parachains_common::impls::ToStakingPot; use polkadot_parachain::primitives::Sibling; use xcm::latest::prelude::*; use xcm_builder::{ @@ -156,7 +157,8 @@ impl xcm_executor::Config for XcmConfig { type LocationInverter = LocationInverter; type Barrier = Barrier; type Weigher = FixedWeightBounds; - type Trader = UsingComponents, WestendLocation, AccountId, Balances, ()>; + type Trader = + UsingComponents>; type ResponseHandler = PolkadotXcm; type AssetTrap = PolkadotXcm; type AssetClaims = PolkadotXcm;