Skip to main content

MinterAutoId

MinterAutoId​

Decentralized NFT Minter contract

version​

string version

ERC165TAG​

bytes4 ERC165TAG

nextTokenId​

uint256 nextTokenId

constructor​

constructor() public

initialize​

function initialize(address _admin, address _mintFeeToken, address _mintFeeAddress, uint256 _mintFeeAmount, address _nftContractAddr, address _forwarder) external

proxyInitialize​

function proxyInitialize(address _admin, address _mintFeeToken, address _mintFeeAddress, uint256 _mintFeeAmount, address _nftContractAddr, address _forwarder) external

__MinterAutoId_init​

function __MinterAutoId_init(address _admin, address _mintFeeToken, address _mintFeeAddress, uint256 _mintFeeAmount, address _nftContractAddr, address _forwarder) internal

__MinterAutoId_init_unchained​

function __MinterAutoId_init_unchained() internal

mint​

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

Create a new type of species and define attributes.

NameTypeDescription
[0]uint256nextTokenId

safeMint​

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

Create a new type of species and define attributes.

NameTypeDescription
[0]uint256nextTokenId

setNextTokenId​

function setNextTokenId(uint256 nextTokenId_) public

Used to set the starting nextTokenId value. Used to save situtations where someone mints directly and we get out of sync.

NameTypeDescription
nextTokenId_uint256next token id to be minted

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