NFT

Git Source

Inherits: ERC721Enumerable, ERC2981

State Variables

_tokenCounter

uint256 internal _tokenCounter;

Functions

constructor

constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_);

mint

function mint(address to) external returns (uint256 tokenId);

setTokenRoyalty

function setTokenRoyalty(uint256 tokenId, address recipient, uint96 fraction) external;

setDefaultRoyalty

function setDefaultRoyalty(address recipient, uint96 fraction) external;

deleteDefaultRoyalty

function deleteDefaultRoyalty() external;

supportsInterface

function supportsInterface(bytes4 interfaceId) public view virtual override(ERC2981, ERC721Enumerable) returns (bool);

totalSupply

function totalSupply() public view override returns (uint256);