GTokenLockedDepositNft

Receipt NFT for a gToken locked deposits

Methods

approve

function approve(address to, uint256 tokenId) external nonpayable

See {IERC721-approve}.

Parameters

NameTypeDescription

to

address

undefined

tokenId

uint256

undefined

balanceOf

function balanceOf(address owner) external view returns (uint256)

See {IERC721-balanceOf}.

Parameters

NameTypeDescription

owner

address

undefined

Returns

NameTypeDescription

_0

uint256

undefined

burn

function burn(uint256 tokenId) external nonpayable

Parameters

NameTypeDescription

tokenId

uint256

undefined

design

function design() external view returns (contract IGTokenLockedDepositNftDesign)

Returns

NameTypeDescription

_0

contract IGTokenLockedDepositNftDesign

undefined

designDecimals

function designDecimals() external view returns (uint8)

Returns

NameTypeDescription

_0

uint8

undefined

gToken

function gToken() external view returns (address)

Returns

NameTypeDescription

_0

address

undefined

getApproved

function getApproved(uint256 tokenId) external view returns (address)

See {IERC721-getApproved}.

Parameters

NameTypeDescription

tokenId

uint256

undefined

Returns

NameTypeDescription

_0

address

undefined

isApprovedForAll

function isApprovedForAll(address owner, address operator) external view returns (bool)

See {IERC721-isApprovedForAll}.

Parameters

NameTypeDescription

owner

address

undefined

operator

address

undefined

Returns

NameTypeDescription

_0

bool

undefined

mint

function mint(address to, uint256 tokenId) external nonpayable

Parameters

NameTypeDescription

to

address

undefined

tokenId

uint256

undefined

name

function name() external view returns (string)

See {IERC721Metadata-name}.

Returns

NameTypeDescription

_0

string

undefined

ownerOf

function ownerOf(uint256 tokenId) external view returns (address)

See {IERC721-ownerOf}.

Parameters

NameTypeDescription

tokenId

uint256

undefined

Returns

NameTypeDescription

_0

address

undefined

safeTransferFrom

function safeTransferFrom(address from, address to, uint256 tokenId) external nonpayable

See {IERC721-safeTransferFrom}.

Parameters

NameTypeDescription

from

address

undefined

to

address

undefined

tokenId

uint256

undefined

safeTransferFrom

function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) external nonpayable

See {IERC721-safeTransferFrom}.

Parameters

NameTypeDescription

from

address

undefined

to

address

undefined

tokenId

uint256

undefined

data

bytes

undefined

setApprovalForAll

function setApprovalForAll(address operator, bool approved) external nonpayable

See {IERC721-setApprovalForAll}.

Parameters

NameTypeDescription

operator

address

undefined

approved

bool

undefined

supportsInterface

function supportsInterface(bytes4 interfaceId) external view returns (bool)

See {IERC165-supportsInterface}.

Parameters

NameTypeDescription

interfaceId

bytes4

undefined

Returns

NameTypeDescription

_0

bool

undefined

symbol

function symbol() external view returns (string)

See {IERC721Metadata-symbol}.

Returns

NameTypeDescription

_0

string

undefined

tokenByIndex

function tokenByIndex(uint256 index) external view returns (uint256)

See {IERC721Enumerable-tokenByIndex}.

Parameters

NameTypeDescription

index

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

tokenOfOwnerByIndex

function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256)

See {IERC721Enumerable-tokenOfOwnerByIndex}.

Parameters

NameTypeDescription

owner

address

undefined

index

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

tokenURI

function tokenURI(uint256 tokenId) external view returns (string)

See {IERC721Metadata-tokenURI}.

Parameters

NameTypeDescription

tokenId

uint256

undefined

Returns

NameTypeDescription

_0

string

undefined

totalSupply

function totalSupply() external view returns (uint256)

See {IERC721Enumerable-totalSupply}.

Returns

NameTypeDescription

_0

uint256

undefined

transferFrom

function transferFrom(address from, address to, uint256 tokenId) external nonpayable

See {IERC721-transferFrom}.

Parameters

NameTypeDescription

from

address

undefined

to

address

undefined

tokenId

uint256

undefined

updateDesign

function updateDesign(contract IGTokenLockedDepositNftDesign newValue) external nonpayable

Parameters

NameTypeDescription

newValue

contract IGTokenLockedDepositNftDesign

undefined

updateDesignDecimals

function updateDesignDecimals(uint8 newValue) external nonpayable

Parameters

NameTypeDescription

newValue

uint8

undefined

Events

Approval

event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

Emitted when owner enables approved to manage the tokenId token.

Parameters

NameTypeDescription

owner indexed

address

undefined

approved indexed

address

undefined

tokenId indexed

uint256

undefined

ApprovalForAll

event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

Emitted when owner enables or disables (approved) operator to manage all of its assets.

Parameters

NameTypeDescription

owner indexed

address

undefined

operator indexed

address

undefined

approved

bool

undefined

DesignDecimalsUpdated

event DesignDecimalsUpdated(uint8 newValue)

Parameters

NameTypeDescription

newValue

uint8

undefined

DesignUpdated

event DesignUpdated(contract IGTokenLockedDepositNftDesign newValue)

Parameters

NameTypeDescription

newValue

contract IGTokenLockedDepositNftDesign

undefined

Transfer

event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)

Emitted when tokenId token is transferred from from to to.

Parameters

NameTypeDescription

from indexed

address

undefined

to indexed

address

undefined

tokenId indexed

uint256

undefined