Expand description
The XCM primitive trait implementations
Structs§
- Absolute
AndRelative Reserve - 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).
- Account
IdTo Location - Instructs how to convert a 20 byte accountId into a Location
- AsAsset
Type - Converter struct implementing
AssetIdConversionconverting 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 - Ethereum
XcmTransaction V1 - Ethereum
XcmTransaction V2 - Ethereum
XcmTransaction V3 - IsBridged
Concrete Asset From - Matches foreign assets from a given origin. Foreign assets are assets bridged from other consensus systems. i.e parents > 1.
- Manual
Ethereum XcmFee - Manually sets a gas fee.
- Multi
Native Asset - A
ContainsPairimplementation. Filters multi native assets whose reserve is same withorigin. - Relative
Reserve Provider - Signed
ToAccount Id20
Enums§
- Available
Stake Calls - Ethereum
XcmFee - Xcm transact’s Ethereum transaction configurable fee.
- Ethereum
XcmTransaction - Xcm transact’s Ethereum transaction.
- Hrmp
Available Calls - Utility
Available Calls
Constants§
- DEFAULT_
PROOF_ SIZE - MAX_
ASSETS - MAX_
ETHEREUM_ XCM_ INPUT_ SIZE - Max. allowed size of 65_536 bytes.
Traits§
- Account
IdTo Currency Id - This trait ensure we can convert AccountIds to CurrencyIds We will require Runtime to have this trait implemented
- Asset
Type Getter - Defines the trait to obtain a generic AssetType from a generic AssetId and vice versa
- Ensure
Proxy - Ensure that a proxy between
delegatoranddelegateeexists in order to deny or grant permission to do xcm-transact totransact_through_proxy. - Filter
MaxAsset Fee - 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, elsefalseis returned. - Hrmp
Encode Call - Reserve
- Stake
Encode Call - Utility
Encode Call - XcmFee
Trader - Trait for computing XCM fees and managing asset pricing. This allows pallets to delegate fee calculation to an external system (e.g., pallet-xcm-weight-trader) instead of maintaining their own storage.
- XcmTo
Ethereum - XcmTransact
Functions§
- rs_id
- Value for
randsfor the invalid signature included in Xcm transact’s Ethereum transaction. - split_
location_ into_ chain_ part_ and_ beneficiary