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/akkadia/beta/admin

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
admin
Namespace
akkadia / beta
Files
12 (gnomod.toml)
Exported functions
25
Module
gno.land/r/akkadia/beta/admin
gno
0.9

Files (12)

  • gnomod.tomltoml
  • admin.gnogno
  • fee_collector.gnogno
  • operator_faucet.gnogno
  • operator.gnogno
  • protocol.gnogno
  • render.gnogno
  • utils.gnogno
  • validation.gnogno
  • admin_test.gnogno
  • operator_faucet_test.gnogno
  • setup_test.gnogno
  • operator.gnogno
    1package admin23import (4	"chain"56	"gno.land/p/akkadia/beta/accesscontrol"7	"gno.land/p/nt/bptree/v0"8)910const (11	SetOperatorEvent   = "SetOperator"12	UnsetOperatorEvent = "UnsetOperator"13)1415var (16	operatorAddrs *bptree.BPTree = bptree.NewBPTree32()17)1819func SetOperator(cur realm, addr address) {20	accesscontrol.AssertIsAdmin(0, cur, IsAdmin)2122	assertValidAddress(addr)23	operatorAddrs.Set(addr.String(), true)2425	chain.Emit(26		SetOperatorEvent,27		"address", addr.String(),28	)29}3031func GetOperators() []address {32	result := []address{}33	operatorAddrs.Iterate("", "", func(addr string, _ any) bool {34		result = append(result, address(addr))35		return false36	})37	return result38}3940func UnsetOperator(cur realm, addr address) {41	accesscontrol.AssertIsAdmin(0, cur, IsAdmin)42	assertValidAddress(addr)43	if !operatorAddrs.Has(addr.String()) {44		panic("address is not an operator")45	}46	operatorAddrs.Remove(addr.String())47	chain.Emit(48		UnsetOperatorEvent,49		"address", addr.String(),50	)51}5253func IsOperator(addr address) bool {54	return operatorAddrs.Has(addr.String())55}56

    Functions

    • AcceptAdmin(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})

    • CancelAdminTransfer(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})

    • GetAdmin() string

    • GetExplorerURL() string

    • GetFaucetTargetAmount() int64

    • GetFeeCollector() string

    • GetOperators() [].uverse.address

    • GetPendingAdmin() string

    • GetProtocol() string

    • IsAdmin(address string) bool

    • IsFeeCollector(address string) bool

    • IsOperator(addr string) bool

    • IsProtocol(address string) bool

    • Render(path string) string

    • RequestFaucet(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}) int64

    • RequestFaucetFor(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}, operator string) int64

    • RequestFaucets(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}) int64

    • SetExplorerURL(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}, url string)

    • SetFaucetTargetAmount(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}, amount int64)

    • SetFeeCollector(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}, addr string)

    • SetOperator(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}, addr string)

    • SetProtocol(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}, addr string)

    • TransferAdmin(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}, newAdmin string)

    • UnsetOperator(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}, addr string)

    • Withdraw(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}, recipient string, amount int64) int64

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

    Rendered

    RenderedRawgnoweb ↗

    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.