Core Interfaces
IPatchworkMintable
IPatchwork721 interface to add protocol-level mint support and enable mint fee accrual to the contract’s Scope.
import”@patchwork/contracts/PatchworkMintable/IPatchworkMintable.sol”;
Inherits:
IPatchworkScoped
Functions
mint
Mints a single token to a specified address.
Parameters
Name | Type | Description |
---|---|---|
to | address | The address to which the token will be minted. |
data | bytes | Additional data to be passed to the minting process. |
Returns
Name | Type | Description |
---|---|---|
tokenId | uint256 | The ID of the minted token. |
mintBatch
Mints multiple tokens to a specified address.
Parameters
Name | Type | Description |
---|---|---|
to | address | The address to which the tokens will be minted. |
data | bytes | Additional data to be passed to the minting process. |
quantity | uint256 | The number of tokens to mint. |
Returns
Name | Type | Description |
---|---|---|
tokenIds | uint256[] | An array of the IDs of the minted tokens. |