import "solidity-scale-codec/src/Xcm/v5/WildAsset/WildAsset.sol";File-Level Functions
function allOf(struct AllOfParams params) internal pure returns (struct WildAsset)function allCounted(struct AllCountedParams params) internal pure returns (struct WildAsset)function allOfCounted(struct AllOfCountedParams params) internal pure returns (struct WildAsset)
all()
function all() internal pure returns (struct WildAsset)Creates a `WildAsset` struct representing the `All` variant, which matches all assets in Holding.
allOf(struct AllOfParams params)
function allOf(struct AllOfParams params) internal pure returns (struct WildAsset)Creates a `WildAsset` struct representing the `AllOf` variant, which matches all assets in Holding of a given fungibility and ID.
allCounted(struct AllCountedParams params)
function allCounted(struct AllCountedParams params) internal pure returns (struct WildAsset)Creates a `WildAsset` struct representing the `AllCounted` variant, which matches all assets in Holding, up to `uint32` individual assets (different instances of non-fungibles are separate assets).
allOfCounted(struct AllOfCountedParams params)
function allOfCounted(struct AllOfCountedParams params) internal pure returns (struct WildAsset)Creates a `WildAsset` struct representing the `AllOfCounted` variant, which matches all assets in Holding of a given fungibility and ID up to `count` individual assets (different instances of non-fungibles are separate assets).
File-Level Structs
AllOfParams
struct AllOfParamsParameters for the `AllOf` variant of `WildAsset`, specifying a particular asset class and fungibility to match against.
| Field | Type | Description |
|---|---|---|
id | AssetId | The asset class to match against. |
fun | WildFungibility | The fungibility to match against. |
AllOfCountedParams
struct AllOfCountedParamsParameters for the `AllOfCounted` variant of `WildAsset`, specifying a limit of assets to match against.
| Field | Type | Description |
|---|---|---|
id | AssetId | The asset class to match against. |
fun | WildFungibility | The fungibility to match against. |
count | uint32 | The limit of assets to match against. |
AllCountedParams
struct AllCountedParamsParameters for the `AllCounted` variant of `WildAsset`.
| Field | Type | Description |
|---|---|---|
count | uint32 | The upper bound of matched assets. |
WildAsset
struct WildAssetA wildcard representing a set of assets.
| Field | Type | Description |
|---|---|---|
variant | 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`. |
File-Level Enums
WildAssetVariant
enum WildAssetVariantDiscriminant 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). |
WildAsset
Kind: source