Skip to main content

FactoryERC721

FactoryERC721

INTERNAL TOOL Used to factory ERC721 NFTs for unit testing

lastTokenId

uint256 lastTokenId

constructor

constructor(string nftName, string nftSymbol) public

Creates ERC721 token

NameTypeDescription
nftNamestringname used to identify nft
nftSymbolstringticker used to identify nft

mintTokens

function mintTokens(uint256 count) public

Creates and gives a token to whoever calls the method

NameTypeDescription
countuint256number of tokens to generate and give

mint

function mint(address to, uint256 tokenId) public

Mints a token and assigns it to to. doesn't require permissions.

NameTypeDescription
toaddressadd
tokenIduint256token

safeMint

function safeMint(address to, uint256 tokenId) public

Mints a token and assigns it to to. doesn't require permissions.

NameTypeDescription
toaddressadd
tokenIduint256token

exists

function exists(uint256 tokenId) external view returns (bool)

setTrustedForwarder

function setTrustedForwarder(address forwarder) public

_msgSender

function _msgSender() internal view returns (address sender)

the following 3 functions are all required for OpenGSN integration

_msgData

function _msgData() internal view returns (bytes)

versionRecipient

function versionRecipient() external pure returns (string)