跳到主要内容

IJBTiered721Delegate

Git Source

Inherits: IJB721Delegate

Functions

codeOrigin

function codeOrigin() external view returns (address);

store

function store() external view returns (IJBTiered721DelegateStore);

fundingCycleStore

function fundingCycleStore() external view returns (IJBFundingCycleStore);

pricingContext

function pricingContext() external view returns (uint256, uint256, IJBPrices);

creditsOf

function creditsOf(address _address) external view returns (uint256);

firstOwnerOf

function firstOwnerOf(uint256 _tokenId) external view returns (address);

baseURI

function baseURI() external view returns (string memory);

contractURI

function contractURI() external view returns (string memory);

adjustTiers

function adjustTiers(JB721TierParams[] memory tierDataToAdd, uint256[] memory tierIdsToRemove) external;

mintReservesFor

function mintReservesFor(JBTiered721MintReservesForTiersData[] memory mintReservesForTiersData) external;

mintReservesFor

function mintReservesFor(uint256 tierId, uint256 count) external;

mintFor

function mintFor(uint16[] calldata tierIds, address beneficiary) external returns (uint256[] memory tokenIds);

setMetadata

function setMetadata(
string memory baseUri,
string calldata contractMetadataUri,
IJB721TokenUriResolver tokenUriResolver,
uint256 encodedIPFSUriTierId,
bytes32 encodedIPFSUri
) external;

initialize

function initialize(
uint256 projectId,
string memory name,
string memory symbol,
IJBFundingCycleStore fundingCycleStore,
string memory baseUri,
IJB721TokenUriResolver tokenUriResolver,
string memory contractUri,
JB721PricingParams memory pricing,
IJBTiered721DelegateStore store,
JBTiered721Flags memory flags
) external;

Events

Mint

event Mint(
uint256 indexed tokenId,
uint256 indexed tierId,
address indexed beneficiary,
uint256 totalAmountContributed,
address caller
);

MintReservedToken

event MintReservedToken(uint256 indexed tokenId, uint256 indexed tierId, address indexed beneficiary, address caller);

AddTier

event AddTier(uint256 indexed tierId, JB721TierParams data, address caller);

RemoveTier

event RemoveTier(uint256 indexed tierId, address caller);

SetEncodedIPFSUri

event SetEncodedIPFSUri(uint256 indexed tierId, bytes32 encodedIPFSUri, address caller);

SetBaseUri

event SetBaseUri(string indexed baseUri, address caller);

SetContractUri

event SetContractUri(string indexed contractUri, address caller);

SetTokenUriResolver

event SetTokenUriResolver(IJB721TokenUriResolver indexed newResolver, address caller);

AddCredits

event AddCredits(
uint256 indexed changeAmount, uint256 indexed newTotalCredits, address indexed account, address caller
);

UseCredits

event UseCredits(
uint256 indexed changeAmount, uint256 indexed newTotalCredits, address indexed account, address caller
);