mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 05:41:07 +00:00
leave some todos
This commit is contained in:
@@ -51,6 +51,7 @@ parameter_types! {
|
|||||||
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
|
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
|
||||||
pub UniversalLocation: InteriorMultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();
|
pub UniversalLocation: InteriorMultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();
|
||||||
pub const Local: MultiLocation = Here.into_location();
|
pub const Local: MultiLocation = Here.into_location();
|
||||||
|
// todo: accept all instances, perhaps need a type for each instance?
|
||||||
pub AssetsPalletLocation: MultiLocation =
|
pub AssetsPalletLocation: MultiLocation =
|
||||||
PalletInstance(<TrustBackedAssets as PalletInfoAccess>::index() as u8).into();
|
PalletInstance(<TrustBackedAssets as PalletInfoAccess>::index() as u8).into();
|
||||||
pub CheckingAccount: AccountId = PolkadotXcm::check_account();
|
pub CheckingAccount: AccountId = PolkadotXcm::check_account();
|
||||||
@@ -85,12 +86,12 @@ pub type CurrencyTransactor = CurrencyAdapter<
|
|||||||
/// Means for transacting assets besides the native currency on this chain.
|
/// Means for transacting assets besides the native currency on this chain.
|
||||||
pub type FungiblesTransactor = FungiblesAdapter<
|
pub type FungiblesTransactor = FungiblesAdapter<
|
||||||
// Use this fungibles implementation:
|
// Use this fungibles implementation:
|
||||||
TrustBackedAssets,
|
TrustBackedAssets, // todo: accept all instances
|
||||||
// Use this currency when it is a fungible asset matching the given location or name:
|
// Use this currency when it is a fungible asset matching the given location or name:
|
||||||
ConvertedConcreteId<
|
ConvertedConcreteId<
|
||||||
AssetId,
|
AssetId,
|
||||||
Balance,
|
Balance,
|
||||||
AsPrefixedGeneralIndex<AssetsPalletLocation, AssetId, JustTry>,
|
AsPrefixedGeneralIndex<AssetsPalletLocation, AssetId, JustTry>, // todo: accept all instances
|
||||||
JustTry,
|
JustTry,
|
||||||
>,
|
>,
|
||||||
// Convert an XCM MultiLocation into a local account id:
|
// Convert an XCM MultiLocation into a local account id:
|
||||||
@@ -99,7 +100,7 @@ pub type FungiblesTransactor = FungiblesAdapter<
|
|||||||
AccountId,
|
AccountId,
|
||||||
// We only want to allow teleports of known assets. We use non-zero issuance as an indication
|
// We only want to allow teleports of known assets. We use non-zero issuance as an indication
|
||||||
// that this asset is known.
|
// that this asset is known.
|
||||||
parachains_common::impls::NonZeroIssuance<AccountId, TrustBackedAssets>,
|
parachains_common::impls::NonZeroIssuance<AccountId, TrustBackedAssets>, // todo: accept all instances
|
||||||
// The account to use for tracking teleports.
|
// The account to use for tracking teleports.
|
||||||
CheckingAccount,
|
CheckingAccount,
|
||||||
>;
|
>;
|
||||||
@@ -187,10 +188,10 @@ impl xcm_executor::Config for XcmConfig {
|
|||||||
ConvertedConcreteId<
|
ConvertedConcreteId<
|
||||||
AssetId,
|
AssetId,
|
||||||
Balance,
|
Balance,
|
||||||
AsPrefixedGeneralIndex<AssetsPalletLocation, AssetId, JustTry>,
|
AsPrefixedGeneralIndex<AssetsPalletLocation, AssetId, JustTry>, // todo: accept all instances
|
||||||
JustTry,
|
JustTry,
|
||||||
>,
|
>,
|
||||||
TrustBackedAssets,
|
TrustBackedAssets, // todo: accept all instances
|
||||||
cumulus_primitives_utility::XcmFeesTo32ByteAccount<
|
cumulus_primitives_utility::XcmFeesTo32ByteAccount<
|
||||||
FungiblesTransactor,
|
FungiblesTransactor,
|
||||||
AccountId,
|
AccountId,
|
||||||
|
|||||||
Reference in New Issue
Block a user