DominantMood
DominantMood returns the most-logged mood, or "none" if no entries.
Command
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/moodstone/v0.DominantMood()"
Result
DominantMood returns the most-logged mood, or "none" if no entries.
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/moodstone/v0.DominantMood()"
LogMood records the caller's current mood with an optional note. mood must be one of: happy sad excited calm anxious angry neutral
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/x/daily/moodstone/v0" -func "LogMood" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "gnoland-1" -remote "https://rpc.gno.land" ADDRESSgnokey query -remote "https://rpc.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/x/daily/moodstone/v0" -func "LogMood" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "gnoland-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land" call.tx
MoodCount returns how many times the given mood has been logged.
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/moodstone/v0.MoodCount()"
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/moodstone/v0.Render()"
TotalEntries returns the total number of mood logs on record.
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/moodstone/v0.TotalEntries()"