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

File-Level Functions

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.

FieldTypeDescription
variantAssetFilterVariantThe 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`.

DefiniteParams

solidity
struct DefiniteParams

Parameters for the `Definite` variant.

FieldTypeDescription
assetsAssetsThe concrete assets used by the filter.

WildParams

solidity
struct WildParams

Parameters for the `Wild` variant.

FieldTypeDescription
wildAssetWildAssetThe wildcard asset selector.

File-Level Enums

AssetFilterVariant

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

AssetFilter

Kind: source