EeseeNFTLazyMint
EeseeNFTLazyMint
contractURI
string contractURI
Opensea royalty and NFT collection info.
collectionID
uint256 collectionID
Collection ID that is used to match collections in minting contract.
owner
address owner
Owner address. Note: Owner doesn't have any special rights.
minter
address minter
Minter contract.
initialize
function initialize(uint256 _collectionID, address _owner, address _minter, struct LazyMintCollectionMetadata metadata) external
mintSingle
function mintSingle(address recipient, struct LazyMintTokenMetadata metadata) external returns (uint256 tokenId)
Mints 1 NFT and sends it to the {recipient}.
Parameters
recipient
address
- Receiver of NFTs.
metadata
struct LazyMintTokenMetadata
- URI of the minted token, receiver of royalties for this token and amount of royalties received from each sale. [10000 = 100%]
Return Values
tokenId
uint256
- ID of token minted.
Note: This function can only be called minter.
tokenURI
function tokenURI(uint256 tokenId) public view virtual returns (string)
Returns tokenId's token URI.
Parameters
tokenId
uint256
- Token ID to check.
Return Values
[0]
string
string Token URI.
supportsInterface
function supportsInterface(bytes4 interfaceId) public view returns (bool)
Inherited from ERC2771Context
isTrustedForwarder
function isTrustedForwarder(address forwarder) public view virtual returns (bool)
Inherited from ERC2981
royaltyInfo
function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256)
Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
Inherited from ERC721AUpgradeable
totalSupply
function totalSupply() public view virtual returns (uint256)
_Returns the total number of tokens in existence. Burned tokens will reduce the count. To get the total number of tokens minted, please see {totalMinted}.
balanceOf
function balanceOf(address owner) public view virtual returns (uint256)
Returns the number of tokens in owner
's account.
name
function name() public view virtual returns (string)
Returns the token collection name.
symbol
function symbol() public view virtual returns (string)
Returns the token collection symbol.
ownerOf
function ownerOf(uint256 tokenId) public view virtual returns (address)
_Returns the owner of the tokenId
token.
Requirements:
tokenId
must exist._
approve
function approve(address to, uint256 tokenId) public payable virtual
_Gives permission to to
to transfer tokenId
token to another account. See {ERC721A-_approve}.
Requirements:
The caller must own the token or be an approved operator._
getApproved
function getApproved(uint256 tokenId) public view virtual returns (address)
_Returns the account approved for tokenId
token.
Requirements:
tokenId
must exist._
setApprovalForAll
function setApprovalForAll(address operator, bool approved) public virtual
_Approve or remove operator
as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
Requirements:
The
operator
cannot be the caller.
Emits an {ApprovalForAll} event._
isApprovedForAll
function isApprovedForAll(address owner, address operator) public view virtual returns (bool)
_Returns if the operator
is allowed to manage all of the assets of owner
.
See {setApprovalForAll}._
transferFrom
function transferFrom(address from, address to, uint256 tokenId) public payable virtual
_Transfers tokenId
from from
to to
.
Requirements:
from
cannot be the zero address.to
cannot be the zero address.tokenId
token must be owned byfrom
.If the caller is not
from
, it must be approved to move this token by either {approve} or {setApprovalForAll}.
Emits a {Transfer} event._
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 tokenId) public payable virtual
Equivalent to safeTransferFrom(from, to, tokenId, '')
.
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) public payable virtual
_Safely transfers tokenId
token from from
to to
.
Requirements:
from
cannot be the zero address.to
cannot be the zero address.tokenId
token must exist and be owned byfrom
.If the caller is not
from
, it must be approved to move this token by either {approve} or {setApprovalForAll}.If
to
refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
Emits a {Transfer} event._
Inherited from IERC721AUpgradeable
Transfer
event Transfer(address from, address to, uint256 tokenId)
Emitted when tokenId
token is transferred from from
to to
.
Approval
event Approval(address owner, address approved, uint256 tokenId)
Emitted when owner
enables approved
to manage the tokenId
token.
ApprovalForAll
event ApprovalForAll(address owner, address operator, bool approved)
Emitted when owner
enables or disables (approved
) operator
to manage all of its assets.
ConsecutiveTransfer
event ConsecutiveTransfer(uint256 fromTokenId, uint256 toTokenId, address from, address to)
_Emitted when tokens in fromTokenId
to toTokenId
(inclusive) is transferred from from
to to
, as defined in the ERC2309 standard.
See {mintERC2309} for more details.
Inherited from IEeseeNFTLazyMint
contractURI
function contractURI() external view returns (string)
collectionID
function collectionID() external view returns (uint256)
owner
function owner() external view returns (address)
minter
function minter() external view returns (address)
Inherited from Initializable
Initialized
event Initialized(uint8 version)
Triggered when the contract has been initialized or reinitialized.
Last updated