import”@patchwork/contracts/PatchworkMintable/IPatchworkMintable.sol”;

Inherits: IPatchworkScoped

Functions


mint

Mints a single token to a specified address.

function mint(address to, bytes calldata data) external payable returns (uint256 tokenId);

Parameters

NameTypeDescription
toaddressThe address to which the token will be minted.
databytesAdditional data to be passed to the minting process.

Returns

NameTypeDescription
tokenIduint256The ID of the minted token.

mintBatch

Mints multiple tokens to a specified address.

function mintBatch(address to, bytes calldata data, uint256 quantity)
    external
    payable
    returns (uint256[] memory tokenIds);

Parameters

NameTypeDescription
toaddressThe address to which the tokens will be minted.
databytesAdditional data to be passed to the minting process.
quantityuint256The number of tokens to mint.

Returns

NameTypeDescription
tokenIdsuint256[]An array of the IDs of the minted tokens.