SBTEnumerable
This implements an optional extension of {SBT} defined in the EIP that adds enumerability of all the token ids in the contract as well as all token ids owned by each account.
Methods
balanceOf
function balanceOf(address owner) external view returns (uint256)
See {ISBT-balanceOf}.
Parameters
Name | Type | Description |
---|---|---|
owner | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
name
function name() external view returns (string)
See {ISBTMetadata-name}.
Returns
Name | Type | Description |
---|---|---|
_0 | string | undefined |
ownerOf
function ownerOf(uint256 tokenId) external view returns (address)
See {ISBT-ownerOf}.
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool)
See {IERC165-supportsInterface}.
Parameters
Name | Type | Description |
---|---|---|
interfaceId | bytes4 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
symbol
function symbol() external view returns (string)
See {ISBTMetadata-symbol}.
Returns
Name | Type | Description |
---|---|---|
_0 | string | undefined |
tokenByIndex
function tokenByIndex(uint256 index) external view returns (uint256)
See {ISBTEnumerable-tokenByIndex}.
Parameters
Name | Type | Description |
---|---|---|
index | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
tokenOfOwnerByIndex
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256)
See {ISBTEnumerable-tokenOfOwnerByIndex}.
Parameters
Name | Type | Description |
---|---|---|
owner | address | undefined |
index | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
tokenURI
function tokenURI(uint256 tokenId) external view returns (string)
See {ISBTMetadata-tokenURI}.
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | string | undefined |
totalSupply
function totalSupply() external view returns (uint256)
See {ISBTEnumerable-totalSupply}.
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
Events
Burn
event Burn(address indexed _owner, uint256 indexed _tokenId)
This emits when an SBT is burned This event emits when SBTs are destroyed
Parameters
Name | Type | Description |
---|---|---|
_owner indexed | address | undefined |
_tokenId indexed | uint256 | undefined |
Mint
event Mint(address indexed _owner, uint256 indexed _tokenId)
This emits when an SBT is newly minted. This event emits when SBTs are created
Parameters
Name | Type | Description |
---|---|---|
_owner indexed | address | undefined |
_tokenId indexed | uint256 | undefined |