realmPath
untyped stringrealmPath is this realm's own path. Passed explicitly to config rather than relying on its zero-argument helpers. Both work (a plain read is borrowed, so config sees this realm as the caller), but a constant cannot be wrong, and spelling it out is what a reader copying this file needs to see.
Value
"gno.land/r/moul/x/allinone/devtools/v0"
maxNotes
untyped bigintmaxNotes bounds the guest list. fifo drops the oldest rather than growing, because storage on chain is paid for and never refunded: an unbounded list in a demo anyone can write to is a bill with no ceiling.
Value
(10 <untyped> bigint)
notes
*v0.List- OID
- 0a096f…dfca:4
notes details
authors
*v0.Boardauthors counts notes per writer. A tally.Board rather than a map: gno map iteration order is unspecified, so a leaderboard built by ranging one is not reproducible between calls.
- OID
- 0a096f…dfca:7
authors details
depositPerByte
untyped bigintdepositPerByte is what the chain charges to keep a byte, in ugnot. Used only to price the note list on the page, never to settle anything.
Value
(100 <untyped> bigint)
Add
func(body string)Add appends a note. It is the only mutating function here, and it carries both guards a real one should.
- OID
- 0a096f…dfca:11
Add details
Reset
func()Reset empties the list, so the realm can be put back to a known state without a redeploy. Not gated by the pause switch: clearing up is the thing you still want to do while paused.
- OID
- 0a096f…dfca:13
Reset details
Render
func(path string) stringRender shows every package at work. The root view is deliberately free of anything that moves on its own, so an example test can pin it; the live numbers live under "chain".
- OID
- 0a096f…dfca:14
Render details
renderHome
func(path string) string- OID
- 0a096f…dfca:15
renderHome details
renderBoard
func() stringrenderBoard shows who has written the most notes, and what the list costs to keep. Both numbers come from a package rather than from arithmetic here.
- OID
- 0a096f…dfca:16
renderBoard details
notesBytes
func() intnotesBytes is the length of every note currently held.
- OID
- 0a096f…dfca:17
notesBytes details
renderChain
func() stringrenderChain is everything that moves: the height, and the links built from it. Kept off the root view so the root can be pinned by an example.
- OID
- 0a096f…dfca:18
renderChain details
renderNotes
func() string- OID
- 0a096f…dfca:19