Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

wrapped package

Overview

Package wrapped is an accounting-only port of Wrapped Ether (WETH).

The canonical WETH contract lets anyone lock native ETH and mint a 1:1 ERC-20 representation (and burn it back). On gno.land / topaz there is no msg.value / payable, so there is NO real coin transfer here: Deposit and Withdraw are pure accounting operations that model the wrap/unwrap. Balances and totalSupply are plain uint64 ledgers kept in an avl.Tree.

Function

TotalSupply

func TotalSupply() uint64

TotalSupply returns the total amount of wrapped units in existence.

Command

gnokey query vm/qeval -remote "https://rpc.topaz.testnets.gno.land" -data "gno.land/r/g12cs4cehujpffpjpywmkqj43m6u5ya53nj69sjz/wrapped.TotalSupply()"

Result