QThirtyFour
Idx 22·Since e206·3 ABI versions
WAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVDQA
Procedures
8procBuyTicket#1
in 4Bout 1B
→input1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| randomValues | uint8[4] | 0 | 4 |
←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 |
procSetTargetJackpot#4
in 8Bout 1B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| newTargetJackpot | uint64 | 0 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procSetDrawHour#5
in 1Bout 1B
→input1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| newDrawHour | uint8 | 0 | 1 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procSyncJackpot#6
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procBuyTicketsBatch#7
in 0Bout 3B
→input1 field · 0B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| tickets | uint8[] | 0 | 0 |
←output2 fields · 3B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| boughtTicketCount | uint16 | 0 | 2 | |
| returnCode | uint8 | 2 | 1 |
procBuyTicketsBySelection#8
in 0Bout 5B
→input1 field · 0B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| numbers | uint8[] | 0 | 0 |
←output3 fields · 5B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| requestedTicketCount | uint16 | 0 | 2 | |
| boughtTicketCount | uint16 | 2 | 2 | |
| returnCode | uint8 | 4 | 1 |
Functions
11funcGetTicketPrice#1
in 0Bout 8B
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| ticketPrice | uint64 | 0 | 8 |
funcGetNextEpochData#2
in 0Bout 18B
←output1 field · 18B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| nextEpochData | NextEpochData | 0 | 18 |
funcGetWinnerData#3
in 0Bout 40974B
←output1 field · 40974B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| winnerData | WinnerData | 0 | 40974 |
funcGetPools#4
in 0Bout 27B
←output1 field · 27B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| pools | PoolsSnapshot | 0 | 27 |
funcGetSchedule#5
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| schedule | uint8 | 0 | 1 |
funcGetDrawHour#6
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| drawHour | uint8 | 0 | 1 |
funcGetState#7
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| currentState | uint8 | 0 | 1 |
funcGetFees#8
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 |
funcEstimatePrizePayouts#9
in 16Bout 64B
→input2 fields · 16B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| k2WinnerCount | uint64 | 0 | 8 | |
| k3WinnerCount | uint64 | 8 | 8 |
←output8 fields · 64B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| k2PayoutPerWinner | uint64 | 0 | 8 | |
| k3PayoutPerWinner | uint64 | 8 | 8 | |
| k2MinFloor | uint64 | 16 | 8 | |
| k3MinFloor | uint64 | 24 | 8 | |
| perWinnerCap | uint64 | 32 | 8 | |
| totalRevenue | uint64 | 40 | 8 | |
| k2Pool | uint64 | 48 | 8 | |
| k3Pool | uint64 | 56 | 8 |
funcGetPlayers#10
in 0Bout 36865B
←output2 fields · 36865B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| players | PlayerData[1024] | 0 | 36864 | |
| returnCode | uint8 | 36864 | 1 |
funcGetWinningCombinationsHistory#11
in 0Bout 513B
←output2 fields · 513B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| history | WinningCombination[128] | 0 | 512 | |
| returnCode | uint8 | 512 | 1 |
Structs
6structNextEpochData
18B4 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| newTicketPrice | uint64 | 0 | 8 | |
| newTargetJackpot | uint64 | 8 | 8 | |
| newSchedule | uint8 | 16 | 1 | |
| newDrawHour | uint8 | 17 | 1 |
structWinnerData
40974B4 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| winners | WinnerPlayerData[1024] | 0 | 40960 | |
| winnerValues | uint8[4] | 40960 | 4 | |
| winnerCounter | uint64 | 40964 | 8 | |
| epoch | uint16 | 40972 | 2 |
structPoolsSnapshot
27B5 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| jackpot | uint64 | 0 | 8 | |
| reserve | uint64 | 8 | 8 | |
| targetJackpot | uint64 | 16 | 8 | |
| frActive | uint8 | 24 | 1 | |
| roundsSinceK4 | uint16 | 25 | 2 |
structPlayerData
36B2 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| player | id | 0 | 32 | |
| randomValues | uint8[4] | 32 | 4 |
structWinningCombination
4B1 field
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| values | uint8[4] | 0 | 4 |
structWinnerPlayerData
40B3 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| player | id | 0 | 32 | |
| randomValues | uint8[4] | 32 | 4 | |
| wonAmount | uint32 | 36 | 4 |
Raw JSON
{ "contractIndex": 22, "contractName": "QThirtyFour", "contractAddress": "WAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVDQA", "epoch": 206, "coreVersion": "v1.284.0", "structs": { "NextEpochData": { "name": "NextEpochData", "fields": [ { "name": "newTicketPrice", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "newTargetJackpot", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "newSchedule", "type": "uint8", "offset": 16, "byteLength": 1 }, { "name": "newDrawHour", "type": "uint8", "offset": 17, "byteLength": 1 } ], "byteLength": 18 }, "WinnerData": { "name": "WinnerData", "fields": [ { "name": "winners", "type": "array", "offset": 0, "byteLength": 40960, "arrayLength": 1024, "arrayItemStructRef": "WinnerPlayerData", "arrayItemByteLength": 40 }, { "name": "winnerValues", "type": "array", "offset": 40960, "byteLength": 4, "arrayLength": 4, "arrayItemType": "uint8", "arrayItemByteLength": 1 }, { "name": "winnerCounter", "type": "uint64", "offset": 40964, "byteLength": 8 }, { "name": "epoch", "type": "uint16", "offset": 40972, "byteLength": 2 } ], "byteLength": 40974 }, "PoolsSnapshot": { "name": "PoolsSnapshot", "fields": [ { "name": "jackpot", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "reserve", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "targetJackpot", "type": "uint64", "offset": 16, "byteLength": 8 }, { "name": "frActive", "type": "uint8", "offset": 24, "byteLength": 1 }, { "name": "roundsSinceK4", "type": "uint16", "offset": 25, "byteLength": 2 } ], "byteLength": 27 }, "PlayerData": { "name": "PlayerData", "fields": [ { "name": "player", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "randomValues", "type": "array", "offset": 32, "byteLength": 4, "arrayLength": 4, "arrayItemType": "uint8", "arrayItemByteLength": 1 } ], "byteLength": 36 }, "WinningCombination": { "name": "WinningCombination", "fields": [ { "name": "values", "type": "array", "offset": 0, "byteLength": 4, "arrayLength": 4, "arrayItemType": "uint8", "arrayItemByteLength": 1 } ], "byteLength": 4 }, "WinnerPlayerData": { "name": "WinnerPlayerData", "fields": [ { "name": "player", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "randomValues", "type": "array", "offset": 32, "byteLength": 4, "arrayLength": 4, "arrayItemType": "uint8", "arrayItemByteLength": 1 }, { "name": "wonAmount", "type": "uint32", "offset": 36, "byteLength": 4 } ], "byteLength": 40 } }, "procedures": [ { "kind": "procedure", "inputType": 1, "name": "BuyTicket", "inputFields": [ { "name": "randomValues", "type": "array", "offset": 0, "byteLength": 4, "arrayLength": 4, "arrayItemType": "uint8", "arrayItemByteLength": 1 } ], "outputFields": [ { "name": "returnCode", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 4, "outputSize": 1 }, { "kind": "procedure", "inputType": 2, "name": "SetPrice", "inputFields": [ { "name": "newPrice", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "returnCode", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 8, "outputSize": 1 }, { "kind": "procedure", "inputType": 3, "name": "SetSchedule", "inputFields": [ { "name": "newSchedule", "type": "uint8", "offset": 0, "byteLength": 1 } ], "outputFields": [ { "name": "returnCode", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 1, "outputSize": 1 }, { "kind": "procedure", "inputType": 4, "name": "SetTargetJackpot", "inputFields": [ { "name": "newTargetJackpot", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "returnCode", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 8, "outputSize": 1 }, { "kind": "procedure", "inputType": 5, "name": "SetDrawHour", "inputFields": [ { "name": "newDrawHour", "type": "uint8", "offset": 0, "byteLength": 1 } ], "outputFields": [ { "name": "returnCode", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 1, "outputSize": 1 }, { "kind": "procedure", "inputType": 6, "name": "SyncJackpot", "inputFields": [], "outputFields": [ { "name": "returnCode", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 0, "outputSize": 1 }, { "kind": "procedure", "inputType": 7, "name": "BuyTicketsBatch", "inputFields": [ { "name": "tickets", "type": "array", "offset": 0, "byteLength": 0, "arrayLength": 0, "arrayItemType": "uint8", "arrayItemByteLength": 1 } ], "outputFields": [ { "name": "boughtTicketCount", "type": "uint16", "offset": 0, "byteLength": 2 }, { "name": "returnCode", "type": "uint8", "offset": 2, "byteLength": 1 } ], "inputSize": 0, "outputSize": 3 }, { "kind": "procedure", "inputType": 8, "name": "BuyTicketsBySelection", "inputFields": [ { "name": "numbers", "type": "array", "offset": 0, "byteLength": 0, "arrayLength": 0, "arrayItemType": "uint8", "arrayItemByteLength": 1 } ], "outputFields": [ { "name": "requestedTicketCount", "type": "uint16", "offset": 0, "byteLength": 2 }, { "name": "boughtTicketCount", "type": "uint16", "offset": 2, "byteLength": 2 }, { "name": "returnCode", "type": "uint8", "offset": 4, "byteLength": 1 } ], "inputSize": 0, "outputSize": 5 } ], "functions": [ { "kind": "function", "inputType": 1, "name": "GetTicketPrice", "inputFields": [], "outputFields": [ { "name": "ticketPrice", "type": "uint64", "offset": 0, "byteLength": 8 } ], "inputSize": 0, "outputSize": 8 }, { "kind": "function", "inputType": 2, "name": "GetNextEpochData", "inputFields": [], "outputFields": [ { "name": "nextEpochData", "type": "struct", "offset": 0, "byteLength": 18, "structRef": "NextEpochData" } ], "inputSize": 0, "outputSize": 18 }, { "kind": "function", "inputType": 3, "name": "GetWinnerData", "inputFields": [], "outputFields": [ { "name": "winnerData", "type": "struct", "offset": 0, "byteLength": 40974, "structRef": "WinnerData" } ], "inputSize": 0, "outputSize": 40974 }, { "kind": "function", "inputType": 4, "name": "GetPools", "inputFields": [], "outputFields": [ { "name": "pools", "type": "struct", "offset": 0, "byteLength": 27, "structRef": "PoolsSnapshot" } ], "inputSize": 0, "outputSize": 27 }, { "kind": "function", "inputType": 5, "name": "GetSchedule", "inputFields": [], "outputFields": [ { "name": "schedule", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 0, "outputSize": 1 }, { "kind": "function", "inputType": 6, "name": "GetDrawHour", "inputFields": [], "outputFields": [ { "name": "drawHour", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 0, "outputSize": 1 }, { "kind": "function", "inputType": 7, "name": "GetState", "inputFields": [], "outputFields": [ { "name": "currentState", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 0, "outputSize": 1 }, { "kind": "function", "inputType": 8, "name": "GetFees", "inputFields": [], "outputFields": [ { "name": "teamFeePercent", "type": "uint8", "offset": 0, "byteLength": 1 }, { "name": "distributionFeePercent", "type": "uint8", "offset": 1, "byteLength": 1 }, { "name": "winnerFeePercent", "type": "uint8", "offset": 2, "byteLength": 1 }, { "name": "burnPercent", "type": "uint8", "offset": 3, "byteLength": 1 }, { "name": "returnCode", "type": "uint8", "offset": 4, "byteLength": 1 } ], "inputSize": 0, "outputSize": 5 }, { "kind": "function", "inputType": 9, "name": "EstimatePrizePayouts", "inputFields": [ { "name": "k2WinnerCount", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "k3WinnerCount", "type": "uint64", "offset": 8, "byteLength": 8 } ], "outputFields": [ { "name": "k2PayoutPerWinner", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "k3PayoutPerWinner", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "k2MinFloor", "type": "uint64", "offset": 16, "byteLength": 8 }, { "name": "k3MinFloor", "type": "uint64", "offset": 24, "byteLength": 8 }, { "name": "perWinnerCap", "type": "uint64", "offset": 32, "byteLength": 8 }, { "name": "totalRevenue", "type": "uint64", "offset": 40, "byteLength": 8 }, { "name": "k2Pool", "type": "uint64", "offset": 48, "byteLength": 8 }, { "name": "k3Pool", "type": "uint64", "offset": 56, "byteLength": 8 } ], "inputSize": 16, "outputSize": 64 }, { "kind": "function", "inputType": 10, "name": "GetPlayers", "inputFields": [], "outputFields": [ { "name": "players", "type": "array", "offset": 0, "byteLength": 36864, "arrayLength": 1024, "arrayItemStructRef": "PlayerData", "arrayItemByteLength": 36 }, { "name": "returnCode", "type": "uint8", "offset": 36864, "byteLength": 1 } ], "inputSize": 0, "outputSize": 36865 }, { "kind": "function", "inputType": 11, "name": "GetWinningCombinationsHistory", "inputFields": [], "outputFields": [ { "name": "history", "type": "array", "offset": 0, "byteLength": 512, "arrayLength": 128, "arrayItemStructRef": "WinningCombination", "arrayItemByteLength": 4 }, { "name": "returnCode", "type": "uint8", "offset": 512, "byteLength": 1 } ], "inputSize": 0, "outputSize": 513 } ], "effectiveFromEpoch": 206, "effectiveToEpoch": null }