Skip to content

contract.BurnNFT

Aleksey Bykhun edited this page Jan 18, 2023 · 1 revision

BurnNFT

Git Source

Inherits: ERC721, ERC721Enumerable, IERC721Receiver, Ownable

State Variables

maxSupply

uint256 public constant maxSupply = 10000;

_price

uint256 private _price = 0.03 ether;

_reserved

uint256 private _reserved = 250;

PROVENANCE_HASH

string public PROVENANCE_HASH = "";

startingIndex

uint256 public startingIndex;

_saleStarted

bool private _saleStarted;

Functions

constructor

constructor() ERC721("HoldersClub", "HODL");

_baseURI

function _baseURI() internal pure override returns (string memory);

contractURI

function contractURI() public pure returns (string memory);

_beforeTokenTransfer

function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable);

supportsInterface

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

onERC721Received

function onERC721Received(address, address, uint256, bytes calldata)
    external
    pure
    override(IERC721Receiver)
    returns (bytes4);

whenSaleStarted

modifier whenSaleStarted();

flipSaleStarted

function flipSaleStarted() external onlyOwner;

saleStarted

function saleStarted() public view returns (bool);

setPrice

function setPrice(uint256 _newPrice) external onlyOwner;

getPrice

function getPrice() public view returns (uint256);

getReservedLeft

function getReservedLeft() public view returns (uint256);

setProvenanceHash

function setProvenanceHash(string memory provenanceHash) public onlyOwner;

walletOfOwner

function walletOfOwner(address _owner) public view returns (uint256[] memory);

claimReserved

function claimReserved(uint256 _number, address _receiver) external onlyOwner;

setStartingIndex

function setStartingIndex() public;

withdraw

function withdraw() public onlyOwner;

withdraw

function withdraw(ERC721 token, uint256 tokenId) public onlyOwner;

burnAndMintOne

function burnAndMintOne(ERC721 token, uint256 tokenId) external payable whenSaleStarted;

burnAndMintAll

function burnAndMintAll(ERC721Enumerable token) external payable whenSaleStarted;
Clone this wiki locally