DELAY
untyped bigint// seconds of block time
Value
(259200 <untyped> bigint)
maxKey
untyped bigintThe bounds of every call: none can be made to run, or to store, unbounded.
Value
(256 <untyped> bigint)
maxValue
untyped bigintThe bounds of every call: none can be made to run, or to store, unbounded.
Value
(65536 <untyped> bigint)
maxPage
untyped bigintThe bounds of every call: none can be made to run, or to store, unbounded.
Value
(300 <untyped> bigint)
maxOps
untyped bigintThe bounds of every call: none can be made to run, or to store, unbounded.
Value
(64 <untyped> bigint)
maxName
untyped bigintThe bounds of every call: none can be made to run, or to store, unbounded.
Value
(32 <untyped> bigint)
self
stringValue
"gno.land/r/nym-alexiscolin000/gnogolf/store"
writer
stringValue
"gno.land/r/nym-alexiscolin000/gnogolf/golf/v2"
proposed
stringValue
""
at
int64Value
0
paused
stringValue
""
owner
.uverse.addressValue
<gnolang.StringValue>
pending
.uverse.addressValue
<zero>
colls
map[string]*v0.BPTree- OID
- 093f99…7910:11
colls details
standard
[]stringthe collections v2 keeps its data in, made at deploy: a first save never pays a whole new tree
- OID
- 093f99…7910:13
standard details
init.15
func()- OID
- 093f99…7910:14
init.15 details
seeded
func() *v0.BPTreeseeded is a collection whose first leaf the deployer pays, not its first player: its key "", which no write can make (checkKey) and no read shows, sorts before every other.
- OID
- 093f99…7910:16
seeded details
Writer
func() stringWriter is the realm whose writes store takes now: the proposed one once its delay is over ("" while paused).
- OID
- 093f99…7910:17
Writer details
matured
func() bool- OID
- 093f99…7910:18
matured details
Proposed
func() (string, int64)Proposed is the writer proposed and when it takes over (unix seconds; 0 while its code has not called Ready), or "" and 0.
- OID
- 093f99…7910:19
Proposed details
settle
func()settle makes a proposed writer whose delay is over the writer, as it is already for every read (Writer).
- OID
- 093f99…7910:20
settle details
Owner
func() .uverse.address- OID
- 093f99…7910:21
Owner details
gate
func()gate lets the writer through, and only it: the immediate caller's pkgpath, never the signer (an account, a MsgRun script or another realm is refused). A proposed writer whose delay is over becomes the writer at its first write.
- OID
- 093f99…7910:22
gate details
onlyOwner
func(what string)- OID
- 093f99…7910:23
onlyOwner details
Propose
func(pkgpath string)Propose names the next writer, a realm's pkgpath under gno.land/r/. Only the owner can; a new proposal replaces the last. Its delay starts when that realm, on chain, calls Ready: its code can then be read, as it will run.
- OID
- 093f99…7910:24
Propose details
Ready
func()Ready is the proposed writer's own call, once it is on chain: it takes over DELAY later, with no transaction to send. Only that realm can, once.
- OID
- 093f99…7910:25
Ready details
validPkgPath
func(p string) boolvalidPkgPath is golf v1's: gno.land/r/, up to 100 of a-z, 0-9 and \_-/., no "", "." or ".." segment.
- OID
- 093f99…7910:26
validPkgPath details
Cancel
func()Cancel drops the proposed writer before it takes over. Only the owner can.
- OID
- 093f99…7910:27
Cancel details
Pause
func()Pause stops every write at once (the reads go on), and drops any proposal. Only the owner can: for a bug in the rules, or one feared. Resume starts the same rules again at once; new rules take their delay.
- OID
- 093f99…7910:28
Pause details
Resume
func()Resume starts again, at once, the rules a Pause stopped: their code was in force already, so nothing new runs. Only the owner can.
- OID
- 093f99…7910:29
Resume details
drop
func()drop forgets a proposal not in force, and says so.
- OID
- 093f99…7910:30
drop details
Transfer
func(to .uverse.address)Transfer offers the owner's role, which the address offered takes with Accept.
- OID
- 093f99…7910:31
Transfer details
Accept
func()Accept takes the role offered.
- OID
- 093f99…7910:32
Accept details
Renounce
func()Renounce gives the role up for good: the writer can then never change, nor be paused; a proposal not yet in force is dropped. Only the owner can, and not while paused: no rules could ever write again.
- OID
- 093f99…7910:33
Renounce details
coll
func(name string) *v0.BPTree- OID
- 093f99…7910:34
coll details
checkKey
func(k string)- OID
- 093f99…7910:35
checkKey details
set
func(name string, k string, v string)(a string is a value: what store keeps is its own, never the caller's slice)
- OID
- 093f99…7910:36
set details
Set
func(name string, key string, value string)Set keeps value under key in a collection. The writer only.
- OID
- 093f99…7910:37
Set details
Remove
func(name string, key string) boolRemove drops a key from a collection, reporting whether it was there. The writer only.
- OID
- 093f99…7910:38
Remove details
Batch
func(ops []string)Batch applies a save's writes in one call: ops is "set", collection, key, value or "del", collection, key, "" (four strings an op), at most 64 ops. A transaction is all or nothing: a bad op undoes the whole batch.
- OID
- 093f99…7910:39
Batch details
Make
func(name string)Make adds a collection, for rules that need one more. The writer only.
- OID
- 093f99…7910:40
Make details
Get
func(name string, key string) (string, bool)Get is a key's value in a collection, and whether it is there.
- OID
- 093f99…7910:41
Get details
Has
func(name string, key string) boolHas reports whether a collection holds a key.
- OID
- 093f99…7910:42
Has details
Size
func(name string) intSize is how many keys a collection holds.
- OID
- 093f99…7910:43
Size details
Index
func(name string, key string) intIndex is how many keys of a collection sort before key: its place, from 0 (O(log n) a step of a binary search, as golf v1's boards).
- OID
- 093f99…7910:44
Index details
At
func(name string, i int) (string, string)At is the key and value at a place in a collection's order.
- OID
- 093f99…7910:45
At details
Page
func(name string, start string, end string, limit int) stringPage is up to limit keys of a collection from start (included) to end (excluded; "" to its end), in order, as rows one after another: each the key's length, ":", the key, the value's length, ":", the value (no separator to escape: the lengths say where each ends). limit is 1 to 300.
- OID
- 093f99…7910:46
Page details
PageBack
func(name string, start string, end string, limit int) stringPageBack is Page from end (kept, as bptree's back walk) down to start.
- OID
- 093f99…7910:47
PageBack details
PageAt
func(name string, offset int, limit int) stringPageAt is up to limit keys from the offset-th of a collection (from 0), as Page's rows.
- OID
- 093f99…7910:48
PageAt details
page
func(name string, start string, end string, limit int, back bool) string- OID
- 093f99…7910:49
page details
row
func(sb *strings.Builder, k string, v string)row writes one key and its value into a page.
- OID
- 093f99…7910:50
row details
Render
func(path string) stringRender says who writes, what is proposed and who may change it.
- OID
- 093f99…7910:51