referrerpolicy=no-referrer-when-downgrade
assets_common

Type Alias TrustBackedAssetsAsLocation

Source
pub type TrustBackedAssetsAsLocation<TrustBackedAssetsPalletLocation, Balance, L, LocationConverter = WithLatestLocationConverter<L>> = MatchedConvertedConcreteId<L, Balance, StartsWith<TrustBackedAssetsPalletLocation>, LocationConverter, TryConvertInto>;
Expand description

[MatchedConvertedConcreteId] converter dedicated for TrustBackedAssets, it is a similar implementation to TrustBackedAssetsConvertedConcreteId, but it converts AssetId to xcm::v*::Location type instead of AssetIdForTrustBackedAssets = u32

Aliased Type§

struct TrustBackedAssetsAsLocation<TrustBackedAssetsPalletLocation, Balance, L, LocationConverter = WithLatestLocationConverter<L>>(/* private fields */);

Trait Implementations

Source§

impl<AssetId: Clone, Balance: Clone, MatchAssetId: Contains<Location>, ConvertAssetId: MaybeEquivalence<Location, AssetId>, ConvertBalance: MaybeEquivalence<u128, Balance>> AssetConverter<AssetId, Balance, ConvertAssetId, ConvertBalance> for MatchedConvertedConcreteId<AssetId, Balance, MatchAssetId, ConvertAssetId, ConvertBalance>

§

impl<AssetId, Balance, MatchAssetId, ConvertAssetId, ConvertBalance> MatchesFungibles<AssetId, Balance> for MatchedConvertedConcreteId<AssetId, Balance, MatchAssetId, ConvertAssetId, ConvertBalance>
where AssetId: Clone, Balance: Clone, MatchAssetId: Contains<Location>, ConvertAssetId: MaybeEquivalence<Location, AssetId>, ConvertBalance: MaybeEquivalence<u128, Balance>,

Source§

impl<AssetId: Clone, Balance: Clone, MatchAssetId: Contains<Location>, ConvertAssetId: MaybeEquivalence<Location, AssetId>, ConvertBalance: MaybeEquivalence<u128, Balance>> MatchesLocation<AssetId, Balance, MatchAssetId, ConvertAssetId, ConvertBalance> for MatchedConvertedConcreteId<AssetId, Balance, MatchAssetId, ConvertAssetId, ConvertBalance>

Source§

fn contains(location: &Location) -> bool

§

impl<ClassId, InstanceId, MatchClassId, ConvertClassId, ConvertInstanceId> MatchesNonFungibles<ClassId, InstanceId> for MatchedConvertedConcreteId<ClassId, InstanceId, MatchClassId, ConvertClassId, ConvertInstanceId>
where ClassId: Clone, InstanceId: Clone, MatchClassId: Contains<Location>, ConvertClassId: MaybeEquivalence<Location, ClassId>, ConvertInstanceId: MaybeEquivalence<AssetInstance, InstanceId>,