{
"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
}