# Shared To-Do Board
> ⚠️ **Experimental — generated with no human supervision.** This realm was
> produced automatically by an MCP-driven agent to exercise the gno MCP server
> and tooling, and to generate test content for gno compilers, linters and
> formatters. **Not audited. Not for production.** Full context & folder README:
> [r/moul/x/daily](https://github.com/moul/gno-contracts/blob/main/r/moul/x/daily/README.md)
---
An on-chain, shared to-do list realm for the gno.land **sapphire** testnet (gno 0.9).
Anyone can add an item to the board; each item records the caller's address as
its author, and can be toggled open/done or removed. `Render` shows the board as
Markdown checkboxes with live open/done counts, newest item first.
- **Realm path:** `gno.land/r/REPLACE_ADDR/todos` (replace `REPLACE_ADDR` with your deploy address)
## Exported transactions
| Function | Effect |
|---|---|
| `Add(text string) int` | Adds an item authored by the caller, returns its id |
| `Toggle(id int)` | Flips an item between open and done |
| `Remove(id int)` | Deletes an item |
All three are gno 0.9 crossing functions (`cur realm` first parameter) and must
be invoked with `cross(cur)` from another realm, or directly via `MsgCall`.
## Example calls
```sh
# Add an item (returns the new id)
gnokey maketx call -pkgpath "gno.land/r/REPLACE_ADDR/todos" \
-func Add -args "buy milk" -gas-fee 1000000ugnot -gas-wanted 2000000 \
-broadcast -chainid sapphire-1 -remote <rpc> mykey
# Mark item #3 done (toggle)
gnokey maketx call -pkgpath "gno.land/r/REPLACE_ADDR/todos" \
-func Toggle -args 3 -gas-fee 1000000ugnot -gas-wanted 2000000 \
-broadcast -chainid sapphire-1 -remote <rpc> mykey
# Remove item #3
gnokey maketx call -pkgpath "gno.land/r/REPLACE_ADDR/todos" \
-func Remove -args 3 -gas-fee 1000000ugnot -gas-wanted 2000000 \
-broadcast -chainid sapphire-1 -remote <rpc> mykey
```
## Example render output
```markdown
# Shared To-Do Board
2 open · 1 done · 3 total
- [ ] #3 walk dog (g1abc…)
- [x] #2 buy milk (g1abc…)
- [ ] #1 write realm (g1def…)
```
<!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) -->
---
Part of **[moul/gno-contracts](https://github.com/moul/gno-contracts)** — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.
**Dependency graph:**

> 🧪 **Highly experimental — potentially vibe-coded.** Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).
<!-- END GNOCONTRACTS FOOTER -->
Add(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, text string) int
Remove(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, id int)
Render(path string) string
Toggle(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, id int)
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.