solidity
import "solidity-scale-codec/src/Xcm/v5/AssetFilter/AssetFilter.sol";File-Level Functions
function definite(struct DefiniteParams params) internal pure returns (struct AssetFilter)function wild(struct WildParams params) internal pure returns (struct AssetFilter)
definite(struct DefiniteParams params)
solidity
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.
wild(struct WildParams params)
solidity
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.
File-Level Structs
AssetFilter
solidity
struct AssetFilter`Asset` collection, defined either by a number of `Assets` or a single wildcard.
| Field | Type | Description |
|---|---|---|
variant | 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`. |
DefiniteParams
solidity
struct DefiniteParamsParameters for the `Definite` variant.
| Field | Type | Description |
|---|---|---|
assets | Assets | The concrete assets used by the filter. |
WildParams
solidity
struct WildParamsParameters for the `Wild` variant.
| Field | Type | Description |
|---|---|---|
wildAsset | WildAsset | The wildcard asset selector. |
File-Level Enums
AssetFilterVariant
solidity
enum AssetFilterVariantDiscriminant 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. |
AssetFilter
Kind: source