item
typeitem is one entry on the board. \`address\` is the uverse bech32 type — it is persistable (unlike a \`realm\` value), so it is safe to store across txs. It carries no id field: the id belongs to the store, which hands it back on lookup and iteration.
Value
v1.item
items
*v0.Storeitems assigns the item ids. v1 kept its own nextID plus an idKey() that zero-padded to width 12, which stopped ordering Render past 10^12.
- OID
- 07cd4e…4d59:4
items details
Add
func(text string) intAdd appends a new item authored by the caller and returns its id. Crossing function: takes \`cur realm\` first (gno 0.9 interrealm convention), authenticates with cur.IsCurrent() before trusting cur.Previous().
- OID
- 07cd4e…4d59:7
Add details
Toggle
func(id int)Toggle flips the done state of the item with the given id.
- OID
- 07cd4e…4d59:9
Toggle details
Remove
func(id int)Remove deletes the item with the given id.
- OID
- 07cd4e…4d59:10
Remove details
counts
func() (open int, done int)counts returns the number of open and done items.
- OID
- 07cd4e…4d59:11
counts details
Render
func(path string) stringRender returns the board as Markdown. Newest item (highest id) first. Render is NOT a crossing function (no \`cur realm\` param) — it is read-only and invoked by gnoweb, not via MsgCall.
- OID
- 07cd4e…4d59:12