Snapshot Current
RandomLottery @ epoch 203
contractIndex 16 · effective e186 → now
QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPIYE
Procedures
3procBuyTicket#1
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procSetPrice#2
in 8Bout 1B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| newPrice | uint64 | 0 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procSetSchedule#3
in 1Bout 1B
→input1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| newSchedule | uint8 | 0 | 1 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
Functions
10funcGetFees#1
in 0Bout 5B
←output5 fields · 5B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| teamFeePercent | uint8 | 0 | 1 | |
| distributionFeePercent | uint8 | 1 | 1 | |
| winnerFeePercent | uint8 | 2 | 1 | |
| burnPercent | uint8 | 3 | 1 | |
| returnCode | uint8 | 4 | 1 |
funcGetPlayers#2
in 0Bout 32777B
←output3 fields · 32777B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| players | id[1024] | 0 | 32768 | |
| playerCounter | uint64 | 32768 | 8 | |
| returnCode | uint8 | 32776 | 1 |
funcGetWinners#3
in 0Bout 48137B
←output3 fields · 48137B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| winners | WinnerInfo[1024] | 0 | 48128 | |
| winnersCounter | uint64 | 48128 | 8 | |
| returnCode | uint8 | 48136 | 1 |
funcGetTicketPrice#4
in 0Bout 8B
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| ticketPrice | uint64 | 0 | 8 |
funcGetMaxNumberOfPlayers#5
in 0Bout 8B
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| numberOfPlayers | uint64 | 0 | 8 |
funcGetState#6
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| currentState | uint8 | 0 | 1 |
funcGetBalance#7
in 0Bout 8B
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| balance | uint64 | 0 | 8 |
funcGetNextEpochData#8
in 0Bout 9B
←output1 field · 9B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| nextEpochData | NextEpochData | 0 | 9 |
funcGetDrawHour#9
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| drawHour | uint8 | 0 | 1 |
funcGetSchedule#10
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| schedule | uint8 | 0 | 1 |
Structs
2structWinnerInfo
47B5 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| winnerAddress | id | 0 | 32 | |
| revenue | uint64 | 32 | 8 | |
| tick | uint32 | 40 | 4 | |
| epoch | uint16 | 44 | 2 | |
| dayOfWeek | uint8 | 46 | 1 |
structNextEpochData
9B2 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| newPrice | uint64 | 0 | 8 | |
| schedule | uint8 | 8 | 1 |