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.
| Field | Type | Description |
|---|---|---|
variant | enum AssetFilterVariant | The type of asset filter, determining how to interpret the payload. See `AssetFilterVariant` enum for possible values. |
payload | bytes | The encoded payload containing the asset filter data, whose structure depends on the `variant`. |
struct DefiniteParams
Parameters for the Definite variant.
| Field | Type | Description |
|---|---|---|
assets | struct Assets | The concrete assets used by the filter. |
struct WildParams
Parameters for the Wild variant.
| Field | Type | Description |
|---|---|---|
wildAsset | struct WildAsset | The wildcard asset selector. |
Enums
enum AssetFilterVariant
Discriminant for the type of asset filter being specified in an AssetFilter.
| Variant | Description |
|---|---|
Definite | Specify the filter as being everything contained by the given `Assets` inner. |
Wild | Specify the filter as the given `WildAsset` wildcard. |
Top-Level Functions
function definite(struct DefiniteParams params) internal pure returns (struct AssetFilter)- Creates an
AssetFilterstruct representing theDefinitevariant, which matches all assets contained by the givenAssetsinner.
- Creates an
function wild(struct WildParams params) internal pure returns (struct AssetFilter)- Creates an
AssetFilterstruct representing theWildvariant, which matches all assets contained by the givenWildAssetwildcard.
- Creates an