Skip to main content

MinterSimpleMerkle

MinterSimpleMerkle

Decentralized NFT Minter contract

ERC165TAG

bytes4 ERC165TAG

merkleRoot

bytes32 merkleRoot

uri

string uri

SetMerkleRoot

event SetMerkleRoot(bytes32 merkleRoot)

initialize

function initialize(address _admin, address _mintFeeToken, address _mintFeeAddress, uint256 _mintFeeAmount, address _nftContractAddr, bytes32 _merkleRoot, string _uri, address _forwarder) external

proxyInitialize

function proxyInitialize(address _admin, address _mintFeeToken, address _mintFeeAddress, uint256 _mintFeeAmount, address _nftContractAddr, bytes32 _merkleRoot, string _uri, address _forwarder) external

__MinterSimpleMerkle_init

function __MinterSimpleMerkle_init(address _admin, address _mintFeeToken, address _mintFeeAddress, uint256 _mintFeeAmount, address _nftContractAddr, bytes32 _merkleRoot, string _uri, address _forwarder) internal

__MinterSimpleMerkle_init_unchained

function __MinterSimpleMerkle_init_unchained(bytes32 _merkleRoot, string _uri) internal

mint

function mint(address buyer) public pure returns (uint256)

Create a new type of species and define attributes.

NameTypeDescription
[0]uint256nextTokenId

safeMint

function safeMint(address buyer) public pure returns (uint256)

Create a new type of species and define attributes.

NameTypeDescription
[0]uint256nextTokenId

mint

function mint(address buyer, bytes32[] merkleProof) public

Create a new type of species and define attributes.

safeMint

function safeMint(address buyer, bytes32[] merkleProof) public

Create a new type of species and define attributes.

updateMerkleRoot

function updateMerkleRoot(bytes32 _merkleRoot, string _uri) public

_verifyMerkle

function _verifyMerkle(bytes32[] merkleProof) internal view returns (bool)

supportsInterface

function supportsInterface(bytes4 interfaceId) public view virtual returns (bool)

ERC165 Support

NameTypeDescription
interfaceIdbytes4hash of the interface testing for
NameTypeDescription
[0]boolbool whether interface is supported