ERC721Burnable
ERC721Burnable
Inherits: ERC721
ERC721 Token that can be burned (destroyed).
Functions
burn
Burns a specific token.
The caller must own tokenId or be an approved operator.
function burn(uint256 _tokenId) external;Parameters
_tokenId
uint256
The token ID to burn.
ERC721Enumerable
Inherits: ERC721
*This implements an optional extension of {ERC721} * defined in the EIP that adds enumerability of all * the token ids in the contract as well as all token * ids owned by each account. **
Note: security-contact: [email protected] *
Functions
tokenOfOwnerByIndex
Returns the token ID owned by _owner at a given index.
Throws if _owner is not the owner of the token at _index.
Parameters
_owner
address
The owner of the tokens.
_index
uint256
The index to query.
Returns
<none>
uint256
The token ID owned by _owner at _index.
totalSupply
Returns the total supply of tokens.
A count of valid NFTs tracked by this contract, where each one of them has an assigned and queryable owner not equal to the zero address.
Returns
<none>
uint256
The total supply of tokens.
tokenByIndex
Returns the token ID at a given index.
Throws if _index >= totalSupply().
Parameters
_index
uint256
A counter less than totalSupply().
Returns
<none>
uint256
The token identifier for the _indexth NFT, (sort order not specified).
ERC721Metadata_URI_autoIncrementID
Inherits: ERC721, Metadata
ERC721 token with storage based token URI management.
State Variables
_deployedContract
address of the contract containing the code for the generative art (P5.js or similar)
Functions
tokenURI
Returns the URI for token type tokenId.
Throws if _exists(tokenId) is not true.
Parameters
_tokenId
uint256
The token ID to query.
Returns
<none>
string
The URI of the token.
_setBaseURI
Sets the base URI and the deployed contract address.
Child contract MAY require access control to the external function implementation.
Parameters
baseURI_
string
The new base URI.
deployedContract_
address
The address of the deployed contract, set to address(0) if not applicable to baseURI, see tokenURI().
Last updated