Meem ERC-721 Facet
Error
NotTokenAdmin
NotPayable
Meem
RequireCanMintParams
MeemBaseERC721Facet
MeemTransfer
Emitted when a token is transferred
Name | Type | Description |
---|---|---|
from | address | The address the token is being transferred from |
to | address | The address the token is being transferred to |
tokenId | uint256 | The token being transferred |
bulkMint
Bulk Mint tokens
Name | Type | Description |
---|---|---|
bulkParams | struct MintParameters[] | Array of minting parameters |
mint
Mint a token
Name | Type | Description |
---|---|---|
params | struct MintParameters | The minting parameters |
mintWithProof
Mint a token and provide a proof that the minter is in the allowlist
Name | Type | Description |
---|---|---|
params | struct MintWithProofParameters | The minting parameters |
tokenURI
Get the token URI
Name | Type | Description |
---|---|---|
tokenId | uint256 | The tokenId to get the token URI for |
handleSaleDistribution
When a token is sold, distribute the royalties
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token that is being purchased. This function will also be called when a token is minted with tokenId=0. |
msgSender | address | The address who is purchasing the token |
requireCanMint
Require that an address can mint a token
Name | Type | Description |
---|---|---|
params | struct RequireCanMintParams | The requirement parameters |
requireTokenAdmin
Require that an address is a token admin. By default only the token owner is an admin
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token id to check |
addy | address | The address to check |
requireCanTransfer
Check if a token can be transferred
Name | Type | Description |
---|---|---|
from | address | The address the token is being transferred from |
to | address | The address the token is being transferred to |
tokenId | uint256 | The token id to check |
getMeem
transferFrom
Transfer a token
Name | Type | Description |
---|---|---|
from | address | The address the token is being transferred from |
to | address | The address the token is being transferred to |
tokenId | uint256 | The token id to transfer |
safeTransferFrom
Safely transfer a token
Name | Type | Description |
---|---|---|
from | address | The address the token is being transferred from |
to | address | The address the token is being transferred to |
tokenId | uint256 | The token id to transfer |
safeTransferFrom
Safely transfer a token
Name | Type | Description |
---|---|---|
from | address | The address the token is being transferred from |
to | address | The address the token is being transferred to |
tokenId | uint256 | The token id to transfer |
data | bytes | The data |
burn
Burns a token (sends it to the 0x0 address)
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token id to burn |
_beforeTokenTransfer
Runs before a token is transferred
Name | Type | Description |
---|---|---|
from | address | The address the token is being transferred from |
to | address | The address the token is being transferred to |
tokenId | uint256 | The token id to burn |
requireAdmin
Convenience function to require the caller to be an admin
Last updated