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
Name | Type | Description |
---|---|---|
nftName | string | name used to identify nft |
nftSymbol | string | ticker used to identify nft |
mintTokens
function mintTokens(uint256 count) public
Creates and gives a token to whoever calls the method
Name | Type | Description |
---|---|---|
count | uint256 | number 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.
Name | Type | Description |
---|---|---|
to | address | add |
tokenId | uint256 | token |
safeMint
function safeMint(address to, uint256 tokenId) public
Mints a token and assigns it to to
.
doesn't require permissions.
Name | Type | Description |
---|---|---|
to | address | add |
tokenId | uint256 | token |
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)