ODCdataManagersERC1155extensions
ERC1155Mintable
Abstract contract that provides minting capabilities of the ERC1155 Data Manager
onlyMinter
Modifier to check if the caller is the minter
mint
Mint value
tokens of id
to to
The caller must be allowed to mint
Parameters
Name | Type | Description |
---|---|---|
to | address | Address to mint tokens to |
id | uint256 | Token id to mint |
value | uint256 | Amount to mint |
data | bytes | Additional data with no specified format |
batchMint
Mint values
tokens of ids
to to
The caller must be allowed to mint
Parameters
Name | Type | Description |
---|---|---|
to | address | Address to mint tokens to |
ids | uint256[] | Array of token ids to mint |
values | uint256[] | Array of amounts to mint |
data | bytes | Additional data with no specified format |
_checkMinter
SHOULD throw an error if the sender is not allowed to mint