JB721TiersHookStore
Inherits: IJB721TiersHookStore
This contract stores and manages data for many IJB721TiersHook
s and their NFTs.
State Variables
_ONE_BILLION
Just a kind reminder to our readers.
Used in 721 token ID generation.
uint256 private constant _ONE_BILLION = 1_000_000_000;
defaultReserveBeneficiaryOf
Returns the default reserve beneficiary for the provided 721 contract.
If a tier has a reserve beneficiary set, it will override this value.
mapping(address hook => address) public override defaultReserveBeneficiaryOf;
encodedIPFSUriOf
Returns the encoded IPFS URI for the provided tier ID of the provided 721 contract.
Token URIs managed by this contract are stored in 32 bytes, based on stripped down IPFS hashes.
Note: returns: The encoded IPFS URI.
mapping(address hook => mapping(uint256 tierId => bytes32)) public override encodedIPFSUriOf;
maxTierIdOf
Returns the largest tier ID currently used on the provided 721 contract.
This may not include the last tier ID if it has been removed.
mapping(address hook => uint256) public override maxTierIdOf;
numberOfBurnedFor
Returns the number of NFTs which have been burned from the provided tier ID of the provided 721 contract.
mapping(address hook => mapping(uint256 tierId => uint256)) public override numberOfBurnedFor;
numberOfReservesMintedFor
Returns the number of reserve NFTs which have been minted from the provided tier ID of the provided 721 contract.
mapping(address hook => mapping(uint256 tierId => uint256)) public override numberOfReservesMintedFor;
tierBalanceOf
Returns the number of NFTs which the provided owner address owns from the provided 721 contract and tier ID.
mapping(address hook => mapping(address owner => mapping(uint256 tierId => uint256))) public override tierBalanceOf;
tokenUriResolverOf
Returns the custom token URI resolver which overrides the default token URI resolver for the provided 721 contract.
mapping(address hook => IJB721TokenUriResolver) public override tokenUriResolverOf;
_flagsOf
Returns the flags which dictate the behavior of the provided IJB721TiersHook
contract.
Note: returns: The flags.
mapping(address hook => JB721TiersHookFlags) internal _flagsOf;
_lastTrackedSortedTierIdOf
Return the ID of the last sorted tier from the provided 721 contract.
If not set, it is assumed the maxTierIdOf
is the last sorted tier ID.
mapping(address hook => uint256) internal _lastTrackedSortedTierIdOf;
_removedTiersBitmapWordOf
Get the bitmap word at the provided depth from the provided 721 contract's tier removal bitmap.
See JBBitmap
for more information.
Note: returns: word The bitmap row's content.
mapping(address hook => mapping(uint256 depth => uint256 word)) internal _removedTiersBitmapWordOf;
_reserveBeneficiaryOf
Returns the reserve beneficiary (if there is one) for the provided tier ID on the provided
IJB721TiersHook
contract.
Note: returns: The address of the reserved token beneficiary.
mapping(address hook => mapping(uint256 tierId => address)) internal _reserveBeneficiaryOf;
_startingTierIdOfCategory
Returns the ID of the first tier in the provided category on the provided 721 contract.
mapping(address hook => mapping(uint256 category => uint256)) internal _startingTierIdOfCategory;