Nft

Inherits: ERC721Enumerable, INft

Extensions to ECR-721 to support an image contract and owner enumeration.

State Variables

_nextTokenId

uint256 private _nextTokenId = 1;

Functions

constructor

constructor(string memory __name, string memory __symbol) ERC721(__name, __symbol);

_mint

Internal function to mint a new NFT and assign it to the specified address.

function _mint(address to) internal returns (uint256 tokenId);

Parameters

Name
Type
Description

to

address

The address to which the NFT will be minted.

Returns

Name
Type
Description

tokenId

uint256

The ID of the newly minted NFT.

onlyTokenIdAuthorizedUser

Modifier to restrict access to functions to the owner of a specific NFT by its tokenId.

tokenOfOwnerByIndexExists

Check if an NFT exists for a given owner and index.

tokenIdsOfOwner

List of tokenIds by owner.

checkAuthorized

Check if the caller has access to a specific NFT by tokenId.

_update

_increaseBalance

name

symbol

supportsInterface

tokenURI

Last updated