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
- 09fd8a…78a1:4
notes details
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
- 09fd8a…78a1:6
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
- 09fd8a…78a1:8
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
- 09fd8a…78a1:9
Render details
renderHome
func(path string) string- OID
- 09fd8a…78a1:10
renderHome 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
- 09fd8a…78a1:11
renderChain details
renderNotes
func() string- OID
- 09fd8a…78a1:12