Skip to content
Lattice

ERC721ConsecutiveStorage

Git Source

Storage struct for the ERC-721 batch-mint extension.

The first three fields share one slot, so the base library's range check costs a single SLOAD.

Note:

  • storage-location: erc7201:lattice.storage.ERC721Consecutive
struct ERC721ConsecutiveStorage {
    uint96 _firstConsecutiveId;
    uint96 _nextConsecutiveId;
    bool _enabled;
    Checkpoints.Trace160 _sequentialOwnership;
    mapping(uint256 bucket => uint256) _sequentialBurn;
}

Properties

NameTypeDescription
_firstConsecutiveIduint96
_nextConsecutiveIduint96
_enabledbool
_sequentialOwnershipCheckpoints.Trace160
_sequentialBurnmapping(uint256 bucket => uint256)