Module 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 multilocation
  • FixedRateOfForeignAsset - weight trader for execution payment in foreign asset
  • ReserveAssetFilter - used to check whether asset/origin are a valid reserve location
  • XcmFungibleFeeHandler - used to handle XCM fee execution fees
  • split_location_into_chain_part_and_beneficiary - splits a combined Location into the destination chain part and the beneficiary part, as required by pallet_xcm
  • resolve_transfer_type - picks the reserve model pallet_xcm should use for a transfer

Please refer to implementation below for more info.

Structs§

AssetLocationIdConverter
Used to convert between cross-chain asset multilocation and local asset Id.
FixedRateOfForeignAsset
Used as weight trader for foreign assets.
ReserveAssetFilter
Used to determine whether the cross-chain asset is coming from a trusted reserve or not
XcmFungibleFeeHandler
Used to deposit XCM fees into a destination account.

Constants§

ASSET_HUB_PARA_ID
MAX_ASSETS
XCM_SIZE_LIMIT

Functions§

resolve_transfer_type
Resolves which reserve model pallet_xcm should use to move asset to dest.
split_location_into_chain_part_and_beneficiary
Splits a combined Location into its chain part and its beneficiary part.