Source on GitHub

QThirtyFour

Idx 22·Since e206·3 ABI versions
WAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVDQA
8Procedures
11Functions
6Structs
3ABI Versions

Current ABI

e206Open Snapshot →

Procedures

8State-changing
procBuyTicket#1
in 4Bout 1B
input1 field · 4B
nametypeoffsetbyteslayout
randomValuesuint8[4]04
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSetPrice#2
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
newPriceuint6408
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSetSchedule#3
in 1Bout 1B
input1 field · 1B
nametypeoffsetbyteslayout
newScheduleuint801
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSetTargetJackpot#4
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
newTargetJackpotuint6408
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSetDrawHour#5
in 1Bout 1B
input1 field · 1B
nametypeoffsetbyteslayout
newDrawHouruint801
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSyncJackpot#6
in 0Bout 1B
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procBuyTicketsBatch#7
in 0Bout 3B
input1 field · 0B
nametypeoffsetbyteslayout
ticketsuint8[]00
output2 fields · 3B
nametypeoffsetbyteslayout
boughtTicketCountuint1602
returnCodeuint821
procBuyTicketsBySelection#8
in 0Bout 5B
input1 field · 0B
nametypeoffsetbyteslayout
numbersuint8[]00
output3 fields · 5B
nametypeoffsetbyteslayout
requestedTicketCountuint1602
boughtTicketCountuint1622
returnCodeuint841

Functions

11Read-only
funcGetTicketPrice#1
in 0Bout 8B
output1 field · 8B
nametypeoffsetbyteslayout
ticketPriceuint6408
funcGetNextEpochData#2
in 0Bout 18B
output1 field · 18B
nametypeoffsetbyteslayout
nextEpochDataNextEpochData018
funcGetWinnerData#3
in 0Bout 40974B
output1 field · 40974B
nametypeoffsetbyteslayout
winnerDataWinnerData040974
funcGetPools#4
in 0Bout 27B
output1 field · 27B
nametypeoffsetbyteslayout
poolsPoolsSnapshot027
funcGetSchedule#5
in 0Bout 1B
output1 field · 1B
nametypeoffsetbyteslayout
scheduleuint801
funcGetDrawHour#6
in 0Bout 1B
output1 field · 1B
nametypeoffsetbyteslayout
drawHouruint801
funcGetState#7
in 0Bout 1B
output1 field · 1B
nametypeoffsetbyteslayout
currentStateuint801
funcGetFees#8
in 0Bout 5B
output5 fields · 5B
nametypeoffsetbyteslayout
teamFeePercentuint801
distributionFeePercentuint811
winnerFeePercentuint821
burnPercentuint831
returnCodeuint841
funcEstimatePrizePayouts#9
in 16Bout 64B
input2 fields · 16B
nametypeoffsetbyteslayout
k2WinnerCountuint6408
k3WinnerCountuint6488
output8 fields · 64B
nametypeoffsetbyteslayout
k2PayoutPerWinneruint6408
k3PayoutPerWinneruint6488
k2MinFlooruint64168
k3MinFlooruint64248
perWinnerCapuint64328
totalRevenueuint64408
k2Pooluint64488
k3Pooluint64568
funcGetPlayers#10
in 0Bout 36865B
output2 fields · 36865B
nametypeoffsetbyteslayout
playersPlayerData[1024]036864
returnCodeuint8368641
funcGetWinningCombinationsHistory#11
in 0Bout 513B
output2 fields · 513B
nametypeoffsetbyteslayout
historyWinningCombination[128]0512
returnCodeuint85121

Structs

6Shared types
structNextEpochData
18B4 fields
fields
nametypeoffsetbyteslayout
newTicketPriceuint6408
newTargetJackpotuint6488
newScheduleuint8161
newDrawHouruint8171
structWinnerData
40974B4 fields
fields
nametypeoffsetbyteslayout
winnersWinnerPlayerData[1024]040960
winnerValuesuint8[4]409604
winnerCounteruint64409648
epochuint16409722
structPoolsSnapshot
27B5 fields
fields
nametypeoffsetbyteslayout
jackpotuint6408
reserveuint6488
targetJackpotuint64168
frActiveuint8241
roundsSinceK4uint16252
structPlayerData
36B2 fields
fields
nametypeoffsetbyteslayout
playerid032
randomValuesuint8[4]324
structWinningCombination
4B1 field
fields
nametypeoffsetbyteslayout
valuesuint8[4]04
structWinnerPlayerData
40B3 fields
fields
nametypeoffsetbyteslayout
playerid032
randomValuesuint8[4]324
wonAmountuint32364

Raw JSON

/v1/contracts/22
contracts/22.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
}