pkgPath
untyped string// must match gnomod.toml
Value
"gno.land/r/g1leu8d2vsplhehcfkjg50mwgdpxdkt8tztu95wr/adtreasury"
GNOT
untyped stringValue
"ugnot"
maxMemo
untyped bigintValue
(120 <untyped> bigint)
listMax
untyped bigint// spends the page lists
Value
(50 <untyped> bigint)
Payment
typePayment is one spend out of the treasury, on the record for good.
Value
adtreasury.Payment
controller
.uverse.address// Jae's cold key (the realm ownership rule)
Value
<gnolang.StringValue>
nextController
.uverse.addressValue
<zero>
spends
[]adtreasury.PaymentValue
<zero>
spent
int64Value
0
init.9
func()- OID
- 02afe8…3d1b:7
init.9 details
Address
func() .uverse.address- OID
- 02afe8…3d1b:9
Address details
Balance
func() int64Balance is the GNOT the treasury holds, in ugnot.
- OID
- 02afe8…3d1b:10
Balance details
Controller
func() .uverse.address- OID
- 02afe8…3d1b:11
Controller details
NextController
func() .uverse.address- OID
- 02afe8…3d1b:12
NextController details
Spent
func() int64- OID
- 02afe8…3d1b:13
Spent details
Count
func() int- OID
- 02afe8…3d1b:14
Count details
Get
func(id int64) adtreasury.PaymentGet is a copy of spend id (1-based).
- OID
- 02afe8…3d1b:15
Get details
caller
func() .uverse.address- OID
- 02afe8…3d1b:16
caller details
mustControl
func() .uverse.address- OID
- 02afe8…3d1b:17
mustControl details
Spend
func(to .uverse.address, ugnot int64, memo string) int64Spend pays ugnot to an address, by the controller, with a memo kept on the record (plain text, at most 120 characters). Returns the spend's id.
- OID
- 02afe8…3d1b:18
Spend details
SetController
func(to .uverse.address)SetController names the next controller; nothing changes until they AcceptController. "" withdraws the offer.
- OID
- 02afe8…3d1b:19
SetController details
AcceptController
func()AcceptController takes the controller role, by the one named (a user or a realm).
- OID
- 02afe8…3d1b:20
AcceptController details
plain
func(s string)plain refuses text the page would render as markup.
- OID
- 02afe8…3d1b:21
plain details
Render
func(path string) stringRender: "" the treasury and its last spends; "json" its figures.
- OID
- 02afe8…3d1b:22
Render details
home
func() string- OID
- 02afe8…3d1b:23
home details
gnot
func(ugnot int64) stringgnot formats ugnot as GNOT, the trailing zeros trimmed.
- OID
- 02afe8…3d1b:24