Realm

gno.land/r/moul/x/daily/polls/v1

Rendered output

Polls & Voting

No polls yet. Create one with CreatePoll(question, "a,b,c").

Query (read-only)

non-crossing functions · no tx, no wallet needed
PollCount() → int

Call functions (state-changing)

signs a tx via Adena
CreatePoll(question string, options string)
Vote(pollID int, optionIndex int)

All exported functions (4)

show raw signatures
NameParamsReturns
CreatePoll [{"Name": "cur", "Type": "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}", "Value": ""}, {"Name": "question", "Type": "string", "Value": ""}, {"Name": "options", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int", "Value": ""}]
Vote [{"Name": "cur", "Type": "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}", "Value": ""}, {"Name": "pollID", "Type": "int", "Value": ""}, {"Name": "optionIndex", "Type": "int", "Value": ""}]
PollCount [{"Name": ".res.0", "Type": "int", "Value": ""}]
Render [{"Name": "path", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]

Files

Storage

{
  "raw": "storage: 10568, deposit: 1056800"
}