File: src/Xcm/v5/WildAsset/WildAsset.sol
WildAsset
Kind: source
Structs
struct AllOfParams
Parameters for the AllOf variant of WildAsset, specifying a particular asset class and fungibility to match against.
| Field | Type | Description |
|---|---|---|
id | struct AssetId | The asset class to match against. |
fun | enum WildFungibility | The fungibility to match against. |
struct AllOfCountedParams
Parameters for the AllOfCounted variant of WildAsset, specifying a limit of assets to match against.
| Field | Type | Description |
|---|---|---|
id | struct AssetId | The asset class to match against. |
fun | enum WildFungibility | The fungibility to match against. |
count | uint32 | The limit of assets to match against. |
struct AllCountedParams
Parameters for the AllCounted variant of WildAsset.
| Field | Type | Description |
|---|---|---|
count | uint32 | The upper bound of matched assets. |
struct WildAsset
A wildcard representing a set of assets.
| Field | Type | Description |
|---|---|---|
variant | enum WildAssetVariant | The type of wild asset, determining how to interpret the payload. See `WildAssetVariant` enum for possible values. |
payload | bytes | The encoded payload containing the wild asset data, whose structure depends on the `variant`. |
Enums
enum WildAssetVariant
Discriminant for the type of asset being specified in a WildAsset.
| Variant | Description |
|---|---|
All | All assets in Holding. |
AllOf | All assets in Holding of a given fungibility and ID. |
AllCounted | All assets in Holding, up to `uint32` individual assets (different instances of non-fungibles are separate assets). |
AllOfCounted | All assets in Holding of a given fungibility and ID up to `count` individual assets (different instances of non-fungibles are separate assets). |
Top-Level Functions
function all() internal pure returns (struct WildAsset)- Creates a
WildAssetstruct representing theAllvariant, which matches all assets in Holding.
- Creates a
function allOf(struct AllOfParams params) internal pure returns (struct WildAsset)- Creates a
WildAssetstruct representing theAllOfvariant, which matches all assets in Holding of a given fungibility and ID.
- Creates a
function allCounted(struct AllCountedParams params) internal pure returns (struct WildAsset)- Creates a
WildAssetstruct representing theAllCountedvariant, which matches all assets in Holding, up touint32individual assets (different instances of non-fungibles are separate assets).
- Creates a
function allOfCounted(struct AllOfCountedParams params) internal pure returns (struct WildAsset)- Creates a
WildAssetstruct representing theAllOfCountedvariant, which matches all assets in Holding of a given fungibility and ID up tocountindividual assets (different instances of non-fungibles are separate assets).
- Creates a