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

gsdash/v0 package

Overview

Package gsdash renders one address's whole GnoSwap footprint on chain, with no indexer and no off-chain query: balances, liquidity positions, what each one is worth right now, and what it has earned but not collected.

It reads GnoSwap through the unversioned proxy paths (r/gnoswap/position and friends) rather than their /vN implementations, so a GnoSwap implementation upgrade does not reach this realm.

Function

Render

func Render(path string) string

Render serves three routes: the index, an address page, and the next page of an address whose records did not fit in one scan window.

Example
1""                  the index
2"g1..."             that address, scanning from record 0
3"g1.../from/500"    the same, scanning from record 500

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/gsdash/v0.Render()"

Result