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/v0 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 / sapphire 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.gno.land" -data "gno.land/r/moul/x/daily/wrapped/v0.TotalSupply()"

Result