Skip to main content

IJBTiered721DelegateStore

Git Source

Functions

totalSupplyOf

function totalSupplyOf(address _nft) external view returns (uint256);

balanceOf

function balanceOf(address _nft, address _owner) external view returns (uint256);

maxTierIdOf

function maxTierIdOf(address _nft) external view returns (uint256);

tiersOf

function tiersOf(
address nft,
uint256[] calldata categories,
bool includeResolvedUri,
uint256 startingSortIndex,
uint256 size
) external view returns (JB721Tier[] memory tiers);

tierOf

function tierOf(address nft, uint256 id, bool includeResolvedUri) external view returns (JB721Tier memory tier);

tierBalanceOf

function tierBalanceOf(address nft, address owner, uint256 tier) external view returns (uint256);

tierOfTokenId

function tierOfTokenId(address nft, uint256 tokenId, bool includeResolvedUri)
external
view
returns (JB721Tier memory tier);

tierIdOfToken

function tierIdOfToken(uint256 tokenId) external pure returns (uint256);

encodedIPFSUriOf

function encodedIPFSUriOf(address nft, uint256 tierId) external view returns (bytes32);

redemptionWeightOf

function redemptionWeightOf(address nft, uint256[] memory tokenIds) external view returns (uint256 weight);

totalRedemptionWeight

function totalRedemptionWeight(address nft) external view returns (uint256 weight);

numberOfReservedTokensOutstandingFor

function numberOfReservedTokensOutstandingFor(address nft, uint256 tierId) external view returns (uint256);

numberOfReservesMintedFor

function numberOfReservesMintedFor(address nft, uint256 tierId) external view returns (uint256);

numberOfBurnedFor

function numberOfBurnedFor(address nft, uint256 tierId) external view returns (uint256);

isTierRemoved

function isTierRemoved(address nft, uint256 tierId) external view returns (bool);

flagsOf

function flagsOf(address nft) external view returns (JBTiered721Flags memory);

votingUnitsOf

function votingUnitsOf(address nft, address account) external view returns (uint256 units);

tierVotingUnitsOf

function tierVotingUnitsOf(address nft, address account, uint256 tierId) external view returns (uint256 units);

defaultReservedTokenBeneficiaryOf

function defaultReservedTokenBeneficiaryOf(address nft) external view returns (address);

reservedTokenBeneficiaryOf

function reservedTokenBeneficiaryOf(address nft, uint256 tierId) external view returns (address);

tokenUriResolverOf

function tokenUriResolverOf(address nft) external view returns (IJB721TokenUriResolver);

encodedTierIPFSUriOf

function encodedTierIPFSUriOf(address nft, uint256 tokenId) external view returns (bytes32);

recordAddTiers

function recordAddTiers(JB721TierParams[] memory tierData) external returns (uint256[] memory tierIds);

recordMintReservesFor

function recordMintReservesFor(uint256 tierId, uint256 count) external returns (uint256[] memory tokenIds);

recordBurn

function recordBurn(uint256[] memory tokenIds) external;

recordMint

function recordMint(uint256 amount, uint16[] calldata tierIds, bool isManualMint)
external
returns (uint256[] memory tokenIds, uint256 leftoverAmount);

recordTransferForTier

function recordTransferForTier(uint256 tierId, address from, address to) external;

recordRemoveTierIds

function recordRemoveTierIds(uint256[] memory tierIds) external;

recordSetTokenUriResolver

function recordSetTokenUriResolver(IJB721TokenUriResolver resolver) external;

recordSetEncodedIPFSUriOf

function recordSetEncodedIPFSUriOf(uint256 tierId, bytes32 encodedIPFSUri) external;

recordFlags

function recordFlags(JBTiered721Flags calldata flag) external;

cleanTiers

function cleanTiers(address nft) external;

Events

CleanTiers

event CleanTiers(address indexed nft, address caller);