Realm
gno.land/r/g16m0r7rm7fv5hx0ekr7gvx8g4fr7eu08nzhk6gt/raffle
Render
this realm has no Render() output
Query (read-only)
non-crossing functions · no tx, no wallet neededGetRaffleOrganizer(raffleID int64) → string
GetRaffleStatus(raffleID int64) → string
GetRaffleWinner(raffleID int64) → string
GetRevealDeadlineHeight(raffleID int64) → int64
GetSaleEndHeight(raffleID int64) → int64
GetTicketsSold(raffleID int64) → int64
HasBoughtTicket(raffleID int64, addr string) → bool
Call functions (state-changing)
signs a tx via AdenaBuyTicket(raffleID int64)
CreateRaffle(commitHash [32]uint8, ticketPrice int64, maxTickets int64, organizerFeeBps int64, saleDurationBlocks int64, revealWindowBlocks int64)
ReclaimRefund(raffleID int64)
RevealAndSettle(raffleID int64, salt []uint8, data []uint8)
All exported functions (11)
show raw signatures
| Name | Params | Returns |
|---|---|---|
| CreateRaffle | [{"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": "commitHash", "Type": "[32]uint8", "Value": ""}, {"Name": "ticketPrice", "Type": "int64", "Value": ""}, {"Name": "maxTickets", "Type": "int64", "Value": ""}, {"Name": "organizerFeeBps", "Type": "int64", "Value": ""}, {"Name": "saleDurationBlocks", "Type": "int64", "Value": ""}, {"Name": "revealWindowBlocks", "Type": "int64", "Value": ""}] | [{"Name": ".res.0", "Type": "int64", "Value": ""}] |
| BuyTicket | [{"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": "raffleID", "Type": "int64", "Value": ""}] | — |
| RevealAndSettle | [{"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": "raffleID", "Type": "int64", "Value": ""}, {"Name": "salt", "Type": "[]uint8", "Value": ""}, {"Name": "data", "Type": "[]uint8", "Value": ""}] | — |
| ReclaimRefund | [{"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": "raffleID", "Type": "int64", "Value": ""}] | — |
| GetRaffleStatus | [{"Name": "raffleID", "Type": "int64", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
| GetRaffleOrganizer | [{"Name": "raffleID", "Type": "int64", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
| GetTicketsSold | [{"Name": "raffleID", "Type": "int64", "Value": ""}] | [{"Name": ".res.0", "Type": "int64", "Value": ""}] |
| GetRaffleWinner | [{"Name": "raffleID", "Type": "int64", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
| GetSaleEndHeight | [{"Name": "raffleID", "Type": "int64", "Value": ""}] | [{"Name": ".res.0", "Type": "int64", "Value": ""}] |
| GetRevealDeadlineHeight | [{"Name": "raffleID", "Type": "int64", "Value": ""}] | [{"Name": ".res.0", "Type": "int64", "Value": ""}] |
| HasBoughtTicket | [{"Name": "raffleID", "Type": "int64", "Value": ""}, {"Name": "addr", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "bool", "Value": ""}] |
Files
Storage
{
"raw": "storage: 17705, deposit: 1770500"
}