Links
Comment on page

vNFT

The "VNFT" contract is to manage NFTs representing validators in a blockchain network.

#validatorExists

external validatorExists()
Description:Checks if a validator exists
Return Parameter
Return Type
Description
_pubkey
bytes calldata
public keys of validators that are active.

#activeNftsOfUser

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.

#validatorOf

external validatorOf()
Description: Finds the validator's public key of a nft
Parameter
Type
Description
_tokenId
bytes memory
tokenId of the validator nft

#operatorOf

external operatorOf()
Description: Finds the operator id of a nft
Parameter
Type
Description
_tokenId
bytes memory
tokenId of the validator nft

#validatorsOfOwner

external validatorsOfOwner()
Description: Finds all the validator's public key of a particular address
Parameter
Type
Description
_owner
address
owner's address

#tokenOfValidator

external tokenOfValidator()
Description: Finds the tokenId of a validator
Parameter
Type
Description
_pubkey
bytes calldata
validator's public key

#validatorsOfOperator

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

#validatorOf

external validatorOf()
Description: Finds the validator's public key of a nft
Parameter
Type
Description
_tokenId
bytes memory
tokenId of the validator nft

#lastOwnerOf

external lastOwnerOf()
Description: Returns the last owner before the nft is burned
Parameter
Type
Description
_tokenId
uint256
tokenId of the validator nft

#numberMinted

external numberMinted()
Description: Returns the number of tokens minted by owner.
Parameter
Type
Description
_owner
address
nft owner address

#getTotalActiveNftCounts

external getTotalActiveNftCounts()
Description: Get the number of total active nft counts
Return Parameter
Type
Description
_totalActiveNftCounts
uint256
value of active nft counts

#getEmptyNftCounts

external getEmptyNftCounts ()
Description: returns empty nft counts.
Return Parameter
Type
Description
emptyNftCounts
uint256
value of empty nft counts