ODCdataManagersERC1155extensions

ERC1155Mintable

Abstract contract that provides minting capabilities of the ERC1155 Data Manager

onlyMinter

modifier onlyMinter()

Modifier to check if the caller is the minter

mint

function mint(address to, uint256 id, uint256 value, bytes data) public virtual

Mint value tokens of id to to

The caller must be allowed to mint

Parameters

NameTypeDescription
toaddressAddress to mint tokens to
iduint256Token id to mint
valueuint256Amount to mint
databytesAdditional data with no specified format

batchMint

function batchMint(address to, uint256[] ids, uint256[] values, bytes data) public virtual

Mint values tokens of ids to to

The caller must be allowed to mint

Parameters

NameTypeDescription
toaddressAddress to mint tokens to
idsuint256[]Array of token ids to mint
valuesuint256[]Array of amounts to mint
databytesAdditional data with no specified format

_checkMinter

function _checkMinter() internal virtual

SHOULD throw an error if the sender is not allowed to mint

On this page