Crate xcm_primitives

source ·
Expand description

The XCM primitive trait implementations

Re-exports§

Modules§

Macros§

Structs§

  • This struct offers uses RelativeReserveProvider to output relative views of multilocations However, additionally accepts a Location that aims at representing the chain part (parent: 1, Parachain(paraId)) of the absolute representation of our chain. If a token reserve matches against this absolute view, we return Some(Location::here()) This helps users by preventing errors when they try to transfer a token through xtokens to our chain (either inserting the relative or the absolute value).
  • Instructs how to convert a 20 byte accountId into a Location
  • Converter struct implementing AssetIdConversion converting a numeric asset ID (must be TryFrom/TryInto<u128>) into a Location Value and vice versa through an intermediate generic type AssetType. The trait bounds enforce is that the AssetTypeGetter trait is also implemented for AssetIdInfoGetter
  • Matches foreign assets from a given origin. Foreign assets are assets bridged from other consensus systems. i.e parents > 1.
  • Manually sets a gas fee.
  • A ContainsPair implementation. Filters multi native assets whose reserve is same with origin.

Enums§

Constants§

Traits§

Functions§