Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions runtime/acala/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use frame_support::{
traits::{Everything, Get, Nothing},
weights::Weight,
};
use orml_traits::{parameter_type_with_key, MultiCurrency};
use orml_traits::{location::AbsoluteReserveProvider, parameter_type_with_key, MultiCurrency};
use orml_xcm_support::{DepositToAlternative, IsNativeConcrete, MultiCurrencyAdapter, MultiNativeAsset};
use pallet_xcm::XcmPassthrough;
use polkadot_parachain::primitives::Sibling;
Expand Down Expand Up @@ -150,7 +150,7 @@ impl xcm_executor::Config for XcmConfig {
// How to withdraw and deposit an asset.
type AssetTransactor = LocalAssetTransactor;
type OriginConverter = XcmOriginToCallOrigin;
type IsReserve = MultiNativeAsset;
type IsReserve = MultiNativeAsset<AbsoluteReserveProvider>;
// Teleporting is disabled.
type IsTeleporter = ();
type LocationInverter = LocationInverter<Ancestry>;
Expand Down Expand Up @@ -355,4 +355,6 @@ impl orml_xtokens::Config for Runtime {
type LocationInverter = LocationInverter<Ancestry>;
type MaxAssetsForTransfer = MaxAssetsForTransfer;
type MinXcmFee = ParachainMinFee;
type MultiLocationsFilter = Everything;
type ReserveProvider = AbsoluteReserveProvider;
}
6 changes: 4 additions & 2 deletions runtime/karura/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub use frame_support::{
weights::Weight,
};
use module_support::HomaSubAccountXcm;
use orml_traits::{parameter_type_with_key, MultiCurrency};
use orml_traits::{location::AbsoluteReserveProvider, parameter_type_with_key, MultiCurrency};
use orml_xcm_support::{DepositToAlternative, IsNativeConcrete, MultiCurrencyAdapter, MultiNativeAsset};
use pallet_xcm::XcmPassthrough;
use polkadot_parachain::primitives::Sibling;
Expand Down Expand Up @@ -212,7 +212,7 @@ impl xcm_executor::Config for XcmConfig {
// How to withdraw and deposit an asset.
type AssetTransactor = LocalAssetTransactor;
type OriginConverter = XcmOriginToCallOrigin;
type IsReserve = MultiNativeAsset;
type IsReserve = MultiNativeAsset<AbsoluteReserveProvider>;
// Teleporting is disabled.
type IsTeleporter = ();
type LocationInverter = LocationInverter<Ancestry>;
Expand Down Expand Up @@ -328,6 +328,8 @@ impl orml_xtokens::Config for Runtime {
type LocationInverter = LocationInverter<Ancestry>;
type MaxAssetsForTransfer = MaxAssetsForTransfer;
type MinXcmFee = ParachainMinFee;
type MultiLocationsFilter = Everything;
type ReserveProvider = AbsoluteReserveProvider;
}

pub type LocalAssetTransactor = MultiCurrencyAdapter<
Expand Down
6 changes: 4 additions & 2 deletions runtime/mandala/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use frame_support::{
traits::{Everything, Get, Nothing},
weights::Weight,
};
use orml_traits::{parameter_type_with_key, MultiCurrency};
use orml_traits::{location::AbsoluteReserveProvider, parameter_type_with_key, MultiCurrency};
use orml_xcm_support::{DepositToAlternative, IsNativeConcrete, MultiCurrencyAdapter, MultiNativeAsset};
use pallet_xcm::XcmPassthrough;
use polkadot_parachain::primitives::Sibling;
Expand Down Expand Up @@ -141,7 +141,7 @@ impl xcm_executor::Config for XcmConfig {
// How to withdraw and deposit an asset.
type AssetTransactor = LocalAssetTransactor;
type OriginConverter = XcmOriginToCallOrigin;
type IsReserve = MultiNativeAsset;
type IsReserve = MultiNativeAsset<AbsoluteReserveProvider>;
// Teleporting is disabled.
type IsTeleporter = ();
type LocationInverter = LocationInverter<Ancestry>;
Expand Down Expand Up @@ -345,4 +345,6 @@ impl orml_xtokens::Config for Runtime {
type LocationInverter = LocationInverter<Ancestry>;
type MaxAssetsForTransfer = MaxAssetsForTransfer;
type MinXcmFee = ParachainMinFee;
type MultiLocationsFilter = Everything;
type ReserveProvider = AbsoluteReserveProvider;
}