Module astar_primitives::xcm
source · Expand description
§XCM Primitives
§Overview
Collection of common XCM primitives used by runtimes.
AssetLocationIdConverter
- conversion between local asset Id and cross-chain asset multilocationFixedRateOfForeignAsset
- weight trader for execution payment in foreign assetReserveAssetFilter
- used to check whether asset/origin are a valid reserve locationXcmFungibleFeeHandler
- used to handle XCM fee execution fees
Please refer to implementation below for more info.
Structs§
Asset
reserve location provider. It’s based onRelativeReserveProvider
and in addition will convert self absolute location to relative location.- Convert
AccountId
toLocation
. - Allows execution from
origin
if it is contained inT
(i.e.T::Contains(origin)
) taking payments into account. - Used to convert between cross-chain asset multilocation and local asset Id.
- Used as weight trader for foreign assets.
- Used to determine whether the cross-chain asset is coming from a trusted reserve or not
- Used to deposit XCM fees into a destination account.