IColleCollection

This interface includes the necessary methods for managing ColleCollection NFTs.

PermanentURI

event PermanentURI(string _value, uint256 _id)

Emitted when a token is minted, we freeze the URI per OpenSea's metadata standard.

SecondaryMetadataIPFS

event SecondaryMetadataIPFS(string _ipfsHash, uint256 _id)

Emitted when the off-chain metadata for a token has been updated.

mint

function mint(string _uri, address _receiver) external

Mints a new NFT.

Parameters

Name
Type
Description

_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

Name
Type
Description

_tokenId

uint256

The ID of the NFT to update.

_uri

string

The new URI of the sale metadata.

getSaleMetadata

Gets the sale metadata of a specific NFT.

Parameters

Name
Type
Description

_tokenId

uint256

The ID of the NFT to query.

Return Values

Name
Type
Description

[0]

string

The URI of the sale metadata.

isSaleMetadataSet

Checks if the sale metadata of a specific NFT is set.

Parameters

Name
Type
Description

_tokenId

uint256

The ID of the NFT to query.

Return Values

Name
Type
Description

[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

Name
Type
Description

_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

Name
Type
Description

_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

Name
Type
Description

_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.

Last updated