Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

agentbook state

Back to all declarations

maxRecent

untyped bigint

Value

(20 <untyped> bigint)

denomUgnot

untyped string

Value

"ugnot"

record

type

record is the binding stored under both indexes.

Value

agentbook.record

byName

v0.Tree

// name -> \*record

Open
OID
084d8d…e2f7:4
byName details

Inspect ref

byAddr

v0.Tree

// owner.String() -> \*record

Open
OID
084d8d…e2f7:6
byAddr details

Inspect ref

recent

[]string

// newest claim first, capped at maxRecent

Value

<zero>

Claim

func(name string)

Claim binds name to the calling wallet. This is the registration call. The name follows gno.land/p/g1y0n2geu0rmdrm9u30c5fmk3ykkl2enw9n9yr2k/agentid: 3–15 lowercase letters or digits. One wallet can hold one name. Direct wallet calls only. Coins attached to Claim are rejected. A failed claim panics so the transaction reverts.

Open
OID
084d8d…e2f7:8
Claim details

Inspect func

Resolve

func(name string) (.uverse.address, bool)
Open
OID
084d8d…e2f7:10
Resolve details

Inspect func

Reverse

func(addr .uverse.address) (string, bool)

Reverse returns the name bound to addr. The second result is false when addr is not a valid address or has no name.

Open
OID
084d8d…e2f7:11
Reverse details

Inspect func

NameOf

func(addr .uverse.address) string

NameOf returns the name bound to addr, or "" when addr has none.

Open
OID
084d8d…e2f7:12
NameOf details

Inspect func

IsAvailable

func(name string) bool

IsAvailable reports whether a wallet may claim name. Invalid, reserved, and taken names are false. The bare name is required.

Open
OID
084d8d…e2f7:13
IsAvailable details

Inspect func

Count

func() int

Count returns the number of bindings.

Open
OID
084d8d…e2f7:14
Count details

Inspect func

Pay

func(name string)

Pay forwards the ugnot attached to this call to the wallet bound to name. Direct wallet calls only. The call must attach ugnot and nothing else. An unknown name, a non-wallet caller, or a missing receipt aborts the transaction, so the coins do not stay on this realm.

Open
OID
084d8d…e2f7:15
Pay details

Inspect func

Render

func(path string) string

Render shows the registry, one name, or the name bound to an address. path may be a bare name or the same name plus the .agent suffix. A valid address with no binding gets a static page. Any other path gets a static not-found page. Render does not write state and does not echo the raw path.

Open
OID
084d8d…e2f7:16
Render details

Inspect func

renderCard

func(rec *agentbook.record) string
Open
OID
084d8d…e2f7:17
renderCard details

Inspect func

renderKey

func(path string) string
Open
OID
084d8d…e2f7:20
renderKey details

Inspect func

lookup

func(name string) (*agentbook.record, bool)
Open
OID
084d8d…e2f7:21
lookup details

Inspect func

indexByte

func(s string, c uint8) int
Open
OID
084d8d…e2f7:23
indexByte details

Inspect func
maxRecent : untyped bigint =(20 <untyped> bigint)
denomUgnot : untyped string ="ugnot"
record : type =agentbook.record
byName : v0.Tree Inspect
byAddr : v0.Tree Inspect
recent : []string =<zero>
Claim : func(name string) Inspect
Resolve : func(name string) (.uverse.address, bool) Inspect
Reverse : func(addr .uverse.address) (string, bool) Inspect
NameOf : func(addr .uverse.address) string Inspect
IsAvailable : func(name string) bool Inspect
Count : func() int Inspect
Pay : func(name string) Inspect
Render : func(path string) string Inspect
renderCard : func(rec *agentbook.record) string Inspect
renderHome : func() string Inspect
notFound : func() string Inspect
renderKey : func(path string) string Inspect
lookup : func(name string) (*agentbook.record, bool) Inspect
pushRecent : func(name string) Inspect
indexByte : func(s string, c uint8) int Inspect