IColleCollectionUpgradeable
This interface includes the necessary methods for managing ColleCollection NFTs.
MetadataUpdate
SecondaryMetadataIPFS
Emitted when the off-chain metadata for a token has been updated.
RecallReason
Emitted when a token is recalled back to Colle. A reason must be provided.
mint
Mints a new NFT.
Parameters
_uri
string
The URI of the NFT's metadata.
_receiver
address
The address to receive the minted NFT.
updateSaleMetadata
Updates the sale metadata of a specific NFT.
Parameters
_tokenId
uint256
The ID of the NFT to update.
_uri
string
The new URI of the sale metadata.
updateTokenURI
Updates the token metadata URI
This function can only be called by a Colle.
Parameters
_tokenId
uint256
The ID of the token to update.
_uri
string
The new URI for the token metadata.
getSaleMetadata
Gets the sale metadata of a specific NFT.
Parameters
_tokenId
uint256
The ID of the NFT to query.
Return Values
[0]
string
The URI of the sale metadata.
isSaleMetadataSet
Checks if the sale metadata of a specific NFT is set.
Parameters
_tokenId
uint256
The ID of the NFT to query.
Return Values
[0]
bool
True if the sale metadata is set, false otherwise.
permitApprove
Allows a signer to approve a transfer on their behalf using a signature.
Parameters
_to
address
The address to approve.
_tokenId
uint256
The ID of the token to approve.
_signature
struct Signature
The signature from the approving address, the 'from', including deadline
permitSetApprovalForAll
Approves an address to transfer any tokens owned by the sender.
Parameters
_operator
address
The address to approve.
_approve
bool
Whether to approve or revoke approval
_signature
struct Signature
The signature, deadline and signer from the owner of the token.
permitSafeTransfer
Allows a signer to transfer a NFT on their behalf using a signature.
Parameters
_to
address
The address to receive the token.
_tokenId
uint256
The ID of the token to transfer.
_signature
struct Signature
The signature, deadline and signer from the owner of the token.
recall
Allows relayer to forceably transfer a token from one address to another.
This function can only be called by a relayer, and a reason must be provided. This function is used to recall tokens if the NFT's association with it's physical counterpart is lost, and a user proves they are in possessio of the physical good.
Parameters
_tokenId
uint256
The ID of the token to transfer.
_to
address
The address to receive the token.
_ipfsReason
string
The IPFS hash which leads to the reason for the recall.
Last updated