Crate xcm_primitives
source ·Expand description
The XCM primitive trait implementations
Re-exports§
pub use get_by_key::*;
Modules§
Macros§
- Create new implementations of the
GetByKey
trait.
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 beTryFrom/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 withorigin
.
Enums§
- Xcm transact’s Ethereum transaction configurable fee.
- The current EthereumXcmTransaction trace status.
- Xcm transact’s Ethereum transaction.
Constants§
- The EthereumXcmTracingStatus storage key.
- Max. allowed size of 65_536 bytes.
Traits§
- This trait ensure we can convert AccountIds to CurrencyIds We will require Runtime to have this trait implemented
- Defines the trait to obtain a generic AssetType from a generic AssetId and vice versa
- Ensure that a proxy between
delegator
anddelegatee
exists in order to deny or grant permission to do xcm-transact totransact_through_proxy
. - Filters max fee for a given multiasset. It takes self (a multiasset) and runs contains in the argument multiasset Can be amalgamated into tuples. If any item returns
true
, it short-circuits, elsefalse
is returned.
Functions§
- Value for
r
ands
for the invalid signature included in Xcm transact’s Ethereum transaction.