Skip to content

File: src/Xcm/v5/AssetFilter/AssetFilter.sol

AssetFilter

Kind: source

Structs

struct AssetFilter

Asset collection, defined either by a number of Assets or a single wildcard.

FieldTypeDescription
variantenum AssetFilterVariantThe type of asset filter, determining how to interpret the payload. See `AssetFilterVariant` enum for possible values.
payloadbytesThe encoded payload containing the asset filter data, whose structure depends on the `variant`.

struct DefiniteParams

Parameters for the Definite variant.

FieldTypeDescription
assetsstruct AssetsThe concrete assets used by the filter.

struct WildParams

Parameters for the Wild variant.

FieldTypeDescription
wildAssetstruct WildAssetThe wildcard asset selector.

Enums

enum AssetFilterVariant

Discriminant for the type of asset filter being specified in an AssetFilter.

VariantDescription
DefiniteSpecify the filter as being everything contained by the given `Assets` inner.
WildSpecify the filter as the given `WildAsset` wildcard.

Top-Level Functions

  • function definite(struct DefiniteParams params) internal pure returns (struct AssetFilter)
    • Creates an AssetFilter struct representing the Definite variant, which matches all assets contained by the given Assets inner.
  • function wild(struct WildParams params) internal pure returns (struct AssetFilter)
    • Creates an AssetFilter struct representing the Wild variant, which matches all assets contained by the given WildAsset wildcard.

Created with solidity-doc-generator