Skip to content

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.

FieldTypeDescription
idstruct AssetIdThe asset class to match against.
funenum WildFungibilityThe fungibility to match against.

struct AllOfCountedParams

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

FieldTypeDescription
idstruct AssetIdThe asset class to match against.
funenum WildFungibilityThe fungibility to match against.
countuint32The limit of assets to match against.

struct AllCountedParams

Parameters for the AllCounted variant of WildAsset.

FieldTypeDescription
countuint32The upper bound of matched assets.

struct WildAsset

A wildcard representing a set of assets.

FieldTypeDescription
variantenum WildAssetVariantThe 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`.

Enums

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).

Top-Level Functions

  • function all() internal pure returns (struct WildAsset)
    • Creates a WildAsset struct representing the All variant, which matches all assets in Holding.
  • 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.
  • 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).
  • 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).

Created with solidity-doc-generator