maxRecent
untyped bigintValue
(20 <untyped> bigint)
denomUgnot
untyped stringValue
"ugnot"
record
typerecord is the binding stored under both indexes.
Value
agentbook.record
byName
v0.Tree// name -> \*record
- OID
- 084d8d…e2f7:4
byName details
byAddr
v0.Tree// owner.String() -> \*record
- OID
- 084d8d…e2f7:6
byAddr details
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.
- OID
- 084d8d…e2f7:8
Claim details
Resolve
func(name string) (.uverse.address, bool)- OID
- 084d8d…e2f7:10
Resolve details
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.
- OID
- 084d8d…e2f7:11
Reverse details
NameOf
func(addr .uverse.address) stringNameOf returns the name bound to addr, or "" when addr has none.
- OID
- 084d8d…e2f7:12
NameOf details
IsAvailable
func(name string) boolIsAvailable reports whether a wallet may claim name. Invalid, reserved, and taken names are false. The bare name is required.
- OID
- 084d8d…e2f7:13
IsAvailable details
Count
func() intCount returns the number of bindings.
- OID
- 084d8d…e2f7:14
Count details
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.
- OID
- 084d8d…e2f7:15
Pay details
Render
func(path string) stringRender 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.
- OID
- 084d8d…e2f7:16
Render details
renderCard
func(rec *agentbook.record) string- OID
- 084d8d…e2f7:17
renderCard details
renderHome
func() string- OID
- 084d8d…e2f7:18
renderHome details
notFound
func() string- OID
- 084d8d…e2f7:19
notFound details
renderKey
func(path string) string- OID
- 084d8d…e2f7:20
renderKey details
lookup
func(name string) (*agentbook.record, bool)- OID
- 084d8d…e2f7:21
lookup details
pushRecent
func(name string)- OID
- 084d8d…e2f7:22
pushRecent details
indexByte
func(s string, c uint8) int- OID
- 084d8d…e2f7:23