PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/r/gnoswap/common/v1

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
v1
Namespace
gnoswap / common
Files
7 (gnomod.toml)
Exported functions
1
Module
gno.land/r/gnoswap/common/v1
gno
0.9

Files (7)

  • gnomod.tomltoml
  • errors.gnogno
  • init.gnogno
  • instance.gnogno
  • native_coin.gnogno
  • render.gnogno
  • validate.gnogno
render.gnogno
1package common23import (4	"chain"5	"strings"67	"gno.land/p/moul/md/v0"8	"gno.land/p/moul/mdtable/v0"9	"gno.land/p/nt/ufmt/v0"10	"gno.land/r/gnoswap/common"11	"gno.land/r/nt/grc20reg/v0"12)1314func (c *commonV1) Render(path string) string {15	if path != "" {16		return "404\n"17	}1819	implementation := common.GetImplementationPackagePath()20	table := mdtable.Table{21		Headers: []string{"Field", "Value"},22		Rows: [][]string{23			{"Realm address", md.InlineCode(chain.PackageAddress("gno.land/r/gnoswap/common").String())},24			{"Active implementation", md.Link(implementation, strings.TrimPrefix(implementation, "gno.land"))},25			{"Token registry", md.Link("gno.land/r/nt/grc20reg/v0", "/r/nt/grc20reg/v0")},26			{"Registry entries (network-wide)", ufmt.Sprintf("%d", grc20reg.GetRegistry().Size())},27		},28	}2930	out := md.H1("Gnoswap Common") + "\n"31	out += md.H2("Registry configuration") + "\n"32	out += table.String() + "\n"33	out += md.Paragraph(34		"Token operations resolve a registered " + md.InlineCode("realm-path.SYMBOL") + " key. " +35			"The registry count includes tokens outside Gnoswap; it is not a trading whitelist.",36	)37	out += md.Paragraph(38		"Native coins are not accepted by token operations. " +39			"Query balances and allowances per token; amounts use that token's base units.",40	)41	return out42}43

Functions

  • NewCommonV1() interface {Allowance func(string, .uverse.address, .uverse.address) int64; Approve func(int, .uverse.realm, string, .uverse.address, int64) .uverse.error; BalanceOf func(string, .uverse.address) int64; IsRegistered func(string) .uverse.error; Render func(string) string; TotalSupply func(string) int64; Transfer func(int, .uverse.realm, string, .uverse.address, int64) .uverse.error; TransferFrom func(int, .uverse.realm, string, .uverse.address, .uverse.address, int64) .uverse.error; ValidateNotHandleNativeCoin func() .uverse.error; ValidateRegistered func(...string) .uverse.error}

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.

Rendered

RenderedRawgnoweb ↗

Render unavailable

rate limit exceeded — the render query is served by the Gnoland archive RPC.

vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.