Comment on page
vNFT
The "VNFT" contract is to manage NFTs representing validators in a blockchain network.
external validatorExists()
Description:Checks if a validator exists
Return Parameter | Return Type | Description |
_pubkey | bytes calldata | public keys of validators that are active. |
external activeNftsOfUser()
Description: Returns all the tokenId that are active.
Parameter | Return Type | Description |
_nfts | uint256[] memory | Returns all the tokenId that are currently active, including those that may not be active on the beacon chain yet. |
external validatorOf()
Description: Finds the validator's public key of a nft
Parameter | Type | Description |
_tokenId | bytes memory | tokenId of the validator nft |
external operatorOf()
Description: Finds the operator id of a nft
Parameter | Type | Description |
_tokenId | bytes memory | tokenId of the validator nft |
external validatorsOfOwner()
Description: Finds all the validator's public key of a particular address
Parameter | Type | Description |
_owner | address | owner's address |
external tokenOfValidator()
Description: Finds the tokenId of a validator
Parameter | Type | Description |
_pubkey | bytes calldata | validator's public key |
external validatorsOfOperator()
Description: Finds all the validator's public key of a particular operator
Parameter | Type | Description |
_operatorId | bytes[] memory | particular address of the operator |
external validatorOf()
Description: Finds the validator's public key of a nft
Parameter | Type | Description |
_tokenId | bytes memory | tokenId of the validator nft |
external lastOwnerOf()
Description: Returns the last owner before the nft is burned
Parameter | Type | Description |
_tokenId | uint256 | tokenId of the validator nft |
external numberMinted()
Description: Returns the number of tokens minted by
owner
.Parameter | Type | Description |
_owner | address | nft owner address |
external getTotalActiveNftCounts()
Description: Get the number of total active nft counts
Return Parameter | Type | Description |
_totalActiveNftCounts | uint256 | value of active nft counts |
external getEmptyNftCounts ()
Description: returns empty nft counts.
Return Parameter | Type | Description |
emptyNftCounts | uint256 | value of empty nft counts |
Last modified 6mo ago