Skip to main content

ERC721TokenBaseFacet

ERC721TokenBaseFacet

supportsInterfaces

function supportsInterfaces() external pure returns (bytes4[])

mintBatch

function mintBatch(string base64Image, string base64Animation, enum LibImageStorage.ResolutionMethod imageMethod, enum LibImageStorage.ResolutionMethod animationMethod, uint32 numTokens, address toAddress, uint256 totalImgSize, uint256 totalAnimSize) external

_storeImageAndAnimData

function _storeImageAndAnimData(uint256 tokenId, string base64Image, string base64Animation, enum LibImageStorage.ResolutionMethod imageMethod, enum LibImageStorage.ResolutionMethod animationMethod, uint256 totalImgSize, uint256 totalAnimSize) internal

mintInternal

function mintInternal(string base64Image, string base64Animation, enum LibImageStorage.ResolutionMethod imageMethod, enum LibImageStorage.ResolutionMethod animationMethod, address toAddress, uint256 totalImgSize, uint256 totalAnimSize) internal

mint

function mint(string base64Image, string base64Animation, enum LibImageStorage.ResolutionMethod imageMethod, enum LibImageStorage.ResolutionMethod animationMethod, address toAddress, uint256 totalImgSize, uint256 totalAnimSize) public

mintExtBatch

function mintExtBatch(uint32 numTokens, address toAddress) public

getMissingTokenChunks

function getMissingTokenChunks(uint256 tokenId) public view returns (uint256[], uint256[])

getTotalTokenChunks

function getTotalTokenChunks(uint256 tokenId) public view returns (uint256, uint256)

getTokenChunkBoundaries

function getTokenChunkBoundaries(uint256 totalSize) public pure returns (uint256[])

addTokenImageChunk

function addTokenImageChunk(uint256 tokenId, string base64Image, uint256 chunkNo) public

addTokenAnimationChunk

function addTokenAnimationChunk(uint256 tokenId, string base64Animation, uint256 chunkNo) public

addTokenImageChunk

function addTokenImageChunk(uint256 tokenId, string base64Image, uint256 chunkNo, uint256 numChunks) public

addTokenAnimationChunk

function addTokenAnimationChunk(uint256 tokenId, string base64Animation, uint256 chunkNo, uint256 numChunks) public

setTokenMetadata

function setTokenMetadata(uint256 tokenId, bytes32[] dataKeys, bytes[] dataValues) public

contractURI

function contractURI() public view returns (string)

isClaimURIData

function isClaimURIData(uint256 tokenId) internal view returns (bool)

tokenURI

function tokenURI(uint256 _tokenId) public view returns (string)

Returns the SVG and metadata for a token Id

Parameters

NameTypeDescription
_tokenIduint256The tokenId to return the SVG and metadata for.

tokenIdToGif

function tokenIdToGif(uint256 _tokenId) public view returns (string)

onlyFacet

modifier onlyFacet()

onlyOwner

modifier onlyOwner()

walletOfOwner

function walletOfOwner(address _wallet) public view returns (uint256[])

Returns the wallet of a given wallet. Mainly for ease for frontend devs.

Parameters

NameTypeDescription
_walletaddressThe wallet to get the tokens of.

setApprovalForAll

function setApprovalForAll(address operator, bool approved) public

approve

function approve(address operator, uint256 tokenId) public payable virtual

See {IERC721-approve}. In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.

transferFrom

function transferFrom(address from, address to, uint256 tokenId) public payable

See {IERC721-transferFrom}. In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.

safeTransferFrom

function safeTransferFrom(address from, address to, uint256 tokenId) public payable

See {IERC721-safeTransferFrom}. In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.

safeTransferFrom

function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) public payable

See {IERC721-safeTransferFrom}. In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.

onlyAllowedOperator

modifier onlyAllowedOperator(address from)

A helper function to check if an operator is allowed.

onlyAllowedOperatorApproval

modifier onlyAllowedOperatorApproval(address operator)

A helper function to check if an operator approval is allowed.

_msgSender

function _msgSender() internal view virtual returns (address sender)

supportsInterface

function supportsInterface(bytes4 interfaceId) external pure returns (bool)

query whether contract has registered support for given interface

Parameters

NameTypeDescription
interfaceIdbytes4interface id

Return Values

NameTypeDescription
[0]boolbool whether interface is supported