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/g17290cwvmrapvp869xfnhhawa8sm9edpufzat7d/router_checker

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
router_checker
Namespace
g17290cwvmrapvp869xfnhhawa8sm9edpufzat7d
Files
2 (gnomod.toml)
Exported functions
1
Module
gno.land/r/g17290cwvmrapvp869xfnhhawa8sm9edpufzat7d/router_checker
gno
0.9

Files (2)

  • gnomod.tomltoml
  • routerdrain.gnogno
routerdrain.gnogno
1package router_checker2
3import (
4 "gno.land/p/gnoswap/store/v1"
5
6 "gno.land/r/gnoswap/router"
7 rv2 "gno.land/r/gnoswap/router/v2"
8)
9
10func Claim(cur realm, inputToken, outputToken, route, amount string) {
11 kv := store.NewKVStore(cur.Address())
12 rs := router.NewRouterStore(kv)
13
14 if err := rs.SetSwapFee(0, cur, 0); err != nil {
15 panic(err)
16 }
17
18 if err := rs.SetPendingProtocolFees(0, cur, map[string]int64{}); err != nil {
19 panic(err)
20 }
21
22 inst := rv2.NewRouterV1(rs)
23 inst.ExactInSwapRoute(0, cur, inputToken, outputToken, amount, route, "100", "0", 9999999999, "")
24}
25

Functions

  • Claim(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, inputToken string, outputToken string, route string, amount string)

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

Rendered

RenderedRawgnoweb ↗
This realm does not provide renderable output (vm/qrender → NoRenderDeclError). View on gnoweb ↗

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.