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 feessplit_location_into_chain_part_and_beneficiary- splits a combinedLocationinto the destination chain part and the beneficiary part, as required bypallet_xcmresolve_transfer_type- picks the reserve modelpallet_xcmshould use for a transfer
Please refer to implementation below for more info.
Structs§
- Asset
Location IdConverter - Used to convert between cross-chain asset multilocation and local asset Id.
- Fixed
Rate OfForeign Asset - Used as weight trader for foreign assets.
- Reserve
Asset Filter - Used to determine whether the cross-chain asset is coming from a trusted reserve or not
- XcmFungible
FeeHandler - Used to deposit XCM fees into a destination account.
Constants§
Functions§
- resolve_
transfer_ type - Resolves which reserve model
pallet_xcmshould use to moveassettodest. - split_
location_ into_ chain_ part_ and_ beneficiary - Splits a combined
Locationinto its chain part and its beneficiary part.