IERC721Consecutive
Inherits: IERC2309
Title: IERC721Consecutive
Authors: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80), Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721Consecutive.sol)
Errors of the ERC-721 batch-mint extension, plus the IERC2309 event. It declares no function, so its
interfaceId is 0x00000000 and nothing registers it for ERC-165.
OpenZeppelin declares these errors on its ERC721Consecutive contract. Its ERC721ForbiddenBatchBurn is not
here: neither OpenZeppelin v5.6.1 nor Lattice has a batch-burn path that could raise it.
Errors
ERC721ForbiddenBatchMint
A batch mint ran outside the diamond's first initialization. ERC-721 lets a batch skip the per-token
Transfer events only during contract creation.
error ERC721ForbiddenBatchMint();ERC721ExceededMaxBatchMint
A batch of batchSize tokens exceeds the maxBatch limit.
error ERC721ExceededMaxBatchMint(uint256 batchSize, uint256 maxBatch);Parameters
| Name | Type | Description |
|---|---|---|
| batchSize | uint256 | |
| maxBatch | uint256 |
ERC721ForbiddenMint
A single-token mint ran during the first initialization of a diamond that batch mints.
error ERC721ForbiddenMint();ERC721VotesForbiddenBatchMint
Batch minting and ERC721Votes met on one diamond. A batch moves no voting units, so the supply checkpoint would miss it. OpenZeppelin allows the pair; Lattice forbids it in either init order.
error ERC721VotesForbiddenBatchMint();ERC721ConsecutiveBatchLengthMismatch
The batch-mint initializer got receivers receivers but amounts batch sizes.
error ERC721ConsecutiveBatchLengthMismatch(uint256 receivers, uint256 amounts);Parameters
| Name | Type | Description |
|---|---|---|
| receivers | uint256 | |
| amounts | uint256 |