Skip to main content
Version: v1.4

ERC721NFTCollection

ERC721NFTCollection

The ERC721 contract for a L2 collection of ISC NFTs, as defined in IRC27. Implements the ERC721 standard and extends the ERC721NFTs contract. For more information about IRC27, refer to: https://github.com/iotaledger/tips/blob/main/tips/TIP-0027/tip-0027.md

_balanceOf

function _balanceOf(struct ISCAgentID owner) internal view virtual returns (uint256)

Returns the balance of the specified owner.

Parameters

NameTypeDescription
ownerstruct ISCAgentIDThe address to query the balance of.

Return Values

NameTypeDescription
[0]uint256The balance of the specified owner.

_isManagedByThisContract

function _isManagedByThisContract(struct ISCNFT nft) internal view virtual returns (bool)

Checks if the given NFT is managed by this contract.

Parameters

NameTypeDescription
nftstruct ISCNFTThe NFT to check.

Return Values

NameTypeDescription
[0]boolTrue if the NFT is managed by this contract, false otherwise.

collectionId

function collectionId() external view virtual returns (NFTID)

Returns the ID of the collection.

Return Values

NameTypeDescription
[0]NFTIDThe ID of the collection.

name

function name() external view virtual returns (string)

Returns the name of the collection.

Return Values

NameTypeDescription
[0]stringThe name of the collection.