Fraction Protocolhelpers

ERC721MintBurn

This contract is deployed by the Erc71DeployerFacet and represents an NFT collection that tracks investors' positions in campaigns offering ERC20 fractions with discount and/or vesting mechanisms until the campaigns are either successfully funded or fail to reach their funding goal. For more details on how vested and discounted ERC20 fractions are handled, as well as the structure of these positions, see TwoClickPurchaseSkeleton.sol and TwoClickPurchaseSkeletonStorage.sol respectively.

The owner of this contract is always the deployer, which is the diamond proxy itself (i.e., the Platform).

constructor

constructor(string name_, string symbol_) public

Initializes the contract by setting a name and a symbol to the token collection.

mint

function mint(address to, uint256 tokenId) external

Mints an NFT with the specified tokenId ID to the given address.

Can only be called by the contract owner (i.e., the Platform).

Parameters

NameTypeDescription
toaddressThe address that will receive the newly minted NFT.
tokenIduint256The unique identifier of the NFT to mint.

burn

function burn(uint256 tokenId) external

Burns the NFT with the specified tokenId.

Can only be called by the contract owner (i.e., the Platform).

Parameters

NameTypeDescription
tokenIduint256The unique identifier of the NFT to burn.

On this page