IERC721TL
Author: transientlabs.xyz
Interface for ERC721TL
Interface id = 0xc74089ae
Functions
mint
Function to mint a single token
Requires owner or admin
function mint(address recipient, string calldata uri) external;
Parameters
Name | Type | Description |
---|---|---|
recipient | address | The recipient of the token - assumed as able to receive 721 tokens |
uri | string | The token uri to mint |
mint
Function to mint a single token with specific token royalty
Requires owner or admin
function mint(address recipient, string calldata uri, address royaltyAddress, uint256 royaltyPercent) external;
Parameters
Name | Type | Description |
---|---|---|
recipient | address | The recipient of the token - assumed as able to receive 721 tokens |
uri | string | The token uri to mint |
royaltyAddress | address | Royalty payout address for this new token |
royaltyPercent | uint256 | Royalty percentage for this new token |
batchMint
Function to batch mint tokens
Requires owner or admin
The baseUri
folder should have the same number of json files in it as numTokens
The baseUri
folder should have files named without any file extension
function batchMint(address recipient, uint128 numTokens, string calldata baseUri) external;
Parameters
Name | Type | Description |
---|---|---|
recipient | address | The recipient of the token - assumed as able to receive 721 tokens |
numTokens | uint128 | Number of tokens in the batch mint |
baseUri | string | The base uri for the batch, expecting json to be in order, starting at file name 0, and SHOULD NOT have a trailing / |
airdrop
Function to airdrop tokens to addresses
Requires owner or admin
Utilizes batch mint token uri values to save some gas but still ultimately mints individual tokens to people
The baseUri
folder should have the same number of json files in it as addresses in addresses
The baseUri
folder should have files named without any file extension
function airdrop(address[] calldata addresses, string calldata baseUri) external;
Parameters
Name | Type | Description |
---|---|---|
addresses | address[] | Dynamic array of addresses to mint to |
baseUri | string | The base uri for the batch, expecting json to be in order, starting at file name 0, and SHOULD NOT have a trailing / |
externalMint
Function to allow an approved mint contract to mint
Requires the caller to be an approved mint contract
function externalMint(address recipient, string calldata uri) external;
Parameters
Name | Type | Description |
---|---|---|
recipient | address | The recipient of the token - assumed as able to receive 721 tokens |
uri | string | The token uri to mint |
burn
Function to burn a token
Caller must be approved or owner of the token
function burn(uint256 tokenId) external;
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token to burn |