Skip to content
solidity
import "solidity-scale-codec/src/Xcm/v5/WildAsset/WildAsset.sol";

File-Level Functions ​

all() ​

solidity
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) ​

solidity
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) ​

solidity
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) ​

solidity
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 ​

solidity
struct AllOfParams

Parameters for the `AllOf` variant of `WildAsset`, specifying a particular asset class and fungibility to match against.

FieldTypeDescription
idAssetIdThe asset class to match against.
funWildFungibilityThe fungibility to match against.

AllOfCountedParams ​

solidity
struct AllOfCountedParams

Parameters for the `AllOfCounted` variant of `WildAsset`, specifying a limit of assets to match against.

FieldTypeDescription
idAssetIdThe asset class to match against.
funWildFungibilityThe fungibility to match against.
countuint32The limit of assets to match against.

AllCountedParams ​

solidity
struct AllCountedParams

Parameters for the `AllCounted` variant of `WildAsset`.

FieldTypeDescription
countuint32The upper bound of matched assets.

WildAsset ​

solidity
struct WildAsset

A wildcard representing a set of assets.

FieldTypeDescription
variantWildAssetVariantThe type of wild asset, determining how to interpret the payload. See `WildAssetVariant` enum for possible values.
payloadbytesThe encoded payload containing the wild asset data, whose structure depends on the `variant`.

File-Level Enums ​

WildAssetVariant ​

solidity
enum WildAssetVariant

Discriminant for the type of asset being specified in a `WildAsset`.

VariantDescription
AllAll assets in Holding.
AllOfAll assets in Holding of a given fungibility and ID.
AllCountedAll assets in Holding, up to `uint32` individual assets (different instances of non-fungibles are separate assets).
AllOfCountedAll 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