Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 state

Back to all declarations

realmPath

untyped string

realmPath 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 bigint

maxNotes 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)

Add

func(body string)

Add appends a note. It is the only mutating function here, and it carries both guards a real one should.

Open
OID
09fd8a…78a1:6
Add details

Inspect func

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.

Open
OID
09fd8a…78a1:8
Reset details

Inspect func

Render

func(path string) string

Render 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".

Open
OID
09fd8a…78a1:9
Render details

Inspect func

renderHome

func(path string) string
Open
OID
09fd8a…78a1:10
renderHome details

Inspect func

renderChain

func() string

renderChain 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.

Open
OID
09fd8a…78a1:11
renderChain details

Inspect func
realmPath : untyped string ="gno.land/r/moul/x/allinone/devtools/v0"
maxNotes : untyped bigint =(10 <untyped> bigint)
notes : *v0.List Inspect
Add : func(body string) Inspect
Reset : func() Inspect
Render : func(path string) string Inspect
renderHome : func(path string) string Inspect
renderChain : func() string Inspect
renderNotes : func() string Inspect