Skip to main content

CloberOrderNFT

CloberOrderNFT

baseURI

function baseURI() external view returns (string)

Returns the base URI for the metadata of this NFT collection.

Return Values

NameTypeDescription
[0]stringThe base URI for the metadata of this NFT collection.

contractURI

function contractURI() external view returns (string)

Returns the contract URI for the metadata of this NFT collection.

Return Values

NameTypeDescription
[0]stringThe contract URI for the metadata of this NFT collection.

market

function market() external view returns (address)

Returns the address of the market contract that manages this token.

Return Values

NameTypeDescription
[0]addressThe address of the market contract that manages this token.

owner

function owner() external view returns (address)

Returns the address of contract owner.

Return Values

NameTypeDescription
[0]addressThe address of the contract owner.

onMint

function onMint(address to, uint256 tokenId) external

Called when a new token is minted.

Parameters

NameTypeDescription
toaddressThe receiver address of the minted token.
tokenIduint256The id of the token minted.

onBurn

function onBurn(uint256 tokenId) external

Called when a token is burned.

Parameters

NameTypeDescription
tokenIduint256The id of the token burned.

changeBaseURI

function changeBaseURI(string newBaseURI) external

Changes the base URI for the metadata of this NFT collection.

Parameters

NameTypeDescription
newBaseURIstringThe new base URI for the metadata of this NFT collection.

changeContractURI

function changeContractURI(string newContractURI) external

Changes the contract URI for the metadata of this NFT collection.

Parameters

NameTypeDescription
newContractURIstringThe new contract URI for the metadata of this NFT collection.

decodeId

function decodeId(uint256 id) external pure returns (struct OrderKey)

Decodes a token id into an order key.

Parameters

NameTypeDescription
iduint256The id to decode.

Return Values

NameTypeDescription
[0]struct OrderKeyThe order key corresponding to the given id.

encodeId

function encodeId(struct OrderKey orderKey) external pure returns (uint256)

Encodes an order key to a token id.

Parameters

NameTypeDescription
orderKeystruct OrderKeyThe order key to encode.

Return Values

NameTypeDescription
[0]uint256The id corresponding to the given order key.

cancel

function cancel(address from, uint256[] tokenIds, address receiver) external

Cancels orders with token ids.

Only the OrderCanceler can call this function.

Parameters

NameTypeDescription
fromaddressThe address of the owner of the tokens.
tokenIdsuint256[]The ids of the tokens to cancel.
receiveraddressThe address to send the underlying assets to.