Realm
gno.land/r/g12cs4cehujpffpjpywmkqj43m6u5ya53nj69sjz/lottery
Rendered output
Lottery
Enter the open round, then anyone can draw once it has at least two players. The winner is picked from the block height and a new round opens automatically.
Round 1 (open)
No entrants yet. Call Enter to join.
Past winners
No rounds drawn yet.
Query (read-only)
non-crossing functions · no tx, no wallet neededCurrentRound() → int
HasEntered(addr string) → bool
NumEntrants() → int
Call functions (state-changing)
signs a tx via AdenaDrawWinner()
Enter()
All exported functions (6)
show raw signatures
| Name | Params | Returns |
|---|---|---|
| Enter | [{"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": ""}] | — |
| DrawWinner | [{"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": ".res.0", "Type": "string", "Value": ""}] |
| CurrentRound | — | [{"Name": ".res.0", "Type": "int", "Value": ""}] |
| NumEntrants | — | [{"Name": ".res.0", "Type": "int", "Value": ""}] |
| HasEntered | [{"Name": "addr", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "bool", "Value": ""}] |
| Render | [{"Name": "path", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
Files
Storage
{
"raw": "storage: 10100, deposit: 1010000"
}