TestMultiToken
Inherits: ERC1155
Functions
constructor
constructor() ERC1155("https://test-multi-token.com/{id}.json");
mint
Mint multi-tokens for oneself.
function mint(uint256 tokenId, uint256 value) external;
Parameters
| Name | Type | Description |
|---|---|---|
tokenId | uint256 | The multi-token ID |
value | uint256 | The amount of fungible tokens to mint |
mintBatch
Mint a batch of multi-tokens for oneself.
function mintBatch(uint256[] calldata tokenIds, uint256[] calldata values) external;
Parameters
| Name | Type | Description |
|---|---|---|
tokenIds | uint256[] | The multi-token IDs |
values | uint256[] | The amounts of fungible tokens to mint |
mint
Mint multi-tokens.
function mint(address to, uint256 tokenId, uint256 value) external;
Parameters
| Name | Type | Description |
|---|---|---|
to | address | The account that will receive the tokens |
tokenId | uint256 | The multi-token ID |
value | uint256 | The amount of fungible tokens to mint |
mintBatch
Mint a batch of multi-tokens.
function mintBatch(address to, uint256[] calldata tokenIds, uint256[] calldata values)
external;
Parameters
| Name | Type | Description |
|---|---|---|
to | address | The account that will receive the tokens |
tokenIds | uint256[] | The multi-token IDs |
values | uint256[] | The amounts of fungible tokens to mint |