import "solidity-scale-codec/src/Xcm/v5/AssetInstance/AssetInstance.sol";File-Level Functions
function undefined() internal pure returns (struct AssetInstance)function index(struct IndexParams params) internal pure returns (struct AssetInstance)function array4(struct Array4Params params) internal pure returns (struct AssetInstance)function array8(struct Array8Params params) internal pure returns (struct AssetInstance)function array16(struct Array16Params params) internal pure returns (struct AssetInstance)function array32(struct Array32Params params) internal pure returns (struct AssetInstance)
undefined()
function undefined() internal pure returns (struct AssetInstance)Creates an `Undefined` asset instance.
index(struct IndexParams params)
function index(struct IndexParams params) internal pure returns (struct AssetInstance)Creates an `Index` asset instance with the given index value.
array4(struct Array4Params params)
function array4(struct Array4Params params) internal pure returns (struct AssetInstance)Creates an `Array4` asset instance with the given 4-byte data.
array8(struct Array8Params params)
function array8(struct Array8Params params) internal pure returns (struct AssetInstance)Creates an `Array8` asset instance with the given 8-byte data.
array16(struct Array16Params params)
function array16(struct Array16Params params) internal pure returns (struct AssetInstance)Creates an `Array16` asset instance with the given 16-byte data.
array32(struct Array32Params params)
function array32(struct Array32Params params) internal pure returns (struct AssetInstance)Creates an `Array32` asset instance with the given 32-byte data.
File-Level Structs
AssetInstance
struct AssetInstanceA general identifier for an instance of a non-fungible asset class.
| Field | Type | Description |
|---|---|---|
variant | AssetInstanceVariant | The type of asset instance, determining how to interpret the payload. See `AssetInstanceVariant` enum for possible values. |
payload | bytes | The encoded payload containing the asset instance data, whose structure depends on the `variant`. |
IndexParams
struct IndexParamsParameters for the `Index` variant.
| Field | Type | Description |
|---|---|---|
index | uint128 | The compact index value. |
Array4Params
struct Array4ParamsParameters for the `Array4` variant.
| Field | Type | Description |
|---|---|---|
data | bytes4 | The 4-byte fixed data. |
Array8Params
struct Array8ParamsParameters for the `Array8` variant.
| Field | Type | Description |
|---|---|---|
data | bytes8 | The 8-byte fixed data. |
Array16Params
struct Array16ParamsParameters for the `Array16` variant.
| Field | Type | Description |
|---|---|---|
data | bytes16 | The 16-byte fixed data. |
Array32Params
struct Array32ParamsParameters for the `Array32` variant.
| Field | Type | Description |
|---|---|---|
data | bytes32 | The 32-byte fixed data. |
File-Level Enums
AssetInstanceVariant
enum AssetInstanceVariant| Variant | Description |
|---|---|
Undefined | Used if the non-fungible asset class has only one instance. |
Index | A compact index up to 2^128 - 1. |
Array4 | A 4-byte fixed-length datum. |
Array8 | An 8-byte fixed-length datum. |
Array16 | A 16-byte fixed-length datum. |
Array32 | A 32-byte fixed-length datum. |
AssetInstance
Kind: source