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

v1 source realm

Readme View source

Key-Value Vault

⚠️ 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


A per-address key-value store on gno.land. Each caller gets their own private namespace; only the owner can set or delete their own entries. The root render lists every address that owns a vault with its entry count, and the /<address> path renders that address's keys and values in a table.

Realm path: gno.land/r/moul/x/daily/vault/v1

Example calls

# Store a value in your namespace
Set("greeting", "hello")

# Overwrite it
Set("greeting", "hi there")

# Remove it (aborts if the key doesn't exist)
Delete("greeting")

Render

  • Render("") — table of all addresses with a vault and their entry counts.
  • Render("/g1abc...") — table of that address's keys and values.

Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

On mainnet: deployment status transactions unique callers deployed revision

Dependency graph:

gno.land/r/moul/x/daily/vault/v1 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.

Constants 1

const MaxVaults, MaxEntries, MaxKeyLen, MaxValueLen

1const (
2	MaxVaults   = 1000
3	MaxEntries  = 100 // per vault
4	MaxKeyLen   = 64
5	MaxValueLen = 512
6)
source

The bounds on what a caller may store. Anyone may open a vault, the root page lists every vault, and a vault's page lists every entry.

Functions 3

func Delete

crossing Action
1func Delete(cur realm, key string)
source

Delete removes key from the caller's own namespace.

func Render

1func Render(path string) string
source

Render shows all vaults (root) or a single address's entries ("/<address>").

func Set

crossing Action
1func Set(cur realm, key string, value string)
source

Set stores value under key in the caller's own namespace.

Imports 5

Source Files 7