ERC721Burnable

ERC721Burnable

Git Source

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

Name
Type
Description

_tokenId

uint256

The token ID to burn.

ERC721Enumerable

Git Source

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

Name
Type
Description

_owner

address

The owner of the tokens.

_index

uint256

The index to query.

Returns

Name
Type
Description

<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

Name
Type
Description

<none>

uint256

The total supply of tokens.

tokenByIndex

Returns the token ID at a given index.

Throws if _index >= totalSupply().

Parameters

Name
Type
Description

_index

uint256

A counter less than totalSupply().

Returns

Name
Type
Description

<none>

uint256

The token identifier for the _indexth NFT, (sort order not specified).

ERC721Metadata_URI_autoIncrementID

Git Source

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

Name
Type
Description

_tokenId

uint256

The token ID to query.

Returns

Name
Type
Description

<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

Name
Type
Description

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