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 source realm

Readme View source

🪨 Moodstone

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


An on-chain mood tracker for the Gno ecosystem. Users log how they're feeling with a short note, and the realm shows live community sentiment stats — all stored immutably on gno.land.

Realm path: gno.land/r/g12cs4cehujpffpjpywmkqj43m6u5ya53nj69sjz/moodstone

Moods

happy · sad · excited · calm · anxious · angry · neutral

Example Calls

 1# Log a mood
 2gnokey maketx call \
 3  -pkgpath gno.land/r/g12cs4cehujpffpjpywmkqj43m6u5ya53nj69sjz/moodstone \
 4  -func LogMood \
 5  -args 'happy' -args 'Just deployed my first realm!' \
 6  -gas-fee 1000000ugnot -gas-wanted 2000000 \
 7  -broadcast -chainid test5 \
 8  test5.gno.land:443
 9
10# Query total entries (read-only)
11gnokey query vm/qeval \
12  -remote test5.gno.land:443 \
13  -data 'gno.land/r/g12cs4cehujpffpjpywmkqj43m6u5ya53nj69sjz/moodstone.TotalEntries()'
14
15# Query dominant mood
16gnokey query vm/qeval \
17  -remote test5.gno.land:443 \
18  -data 'gno.land/r/g12cs4cehujpffpjpywmkqj43m6u5ya53nj69sjz/moodstone.DominantMood()'

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

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

Functions 5

func LogMood

crossing Action
1func LogMood(_ realm, mood, note string)
source

LogMood records the caller's current mood with an optional note. mood must be one of: happy sad excited calm anxious angry neutral

func MoodCount

Action
1func MoodCount(mood string) int
source

MoodCount returns how many times the given mood has been logged.

Types 1

type Entry

struct
1type Entry struct {
2	Author address
3	Mood   string
4	Note   string
5	Block  int64
6}
source

Entry holds a single mood log.

Imports 4

  • chain/runtime stdlib
  • chain/runtime/unsafe stdlib
  • strconv stdlib
  • strings stdlib

Source Files 3