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
Name | Type | Description |
---|---|---|
owner | struct ISCAgentID | The address to query the balance of. |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | The 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
Name | Type | Description |
---|---|---|
nft | struct ISCNFT | The NFT to check. |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | True 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
Name | Type | Description |
---|---|---|
[0] | NFTID | The ID of the collection. |
name
function name() external view virtual returns (string)
Returns the name of the collection.
Return Values
Name | Type | Description |
---|---|---|
[0] | string | The name of the collection. |