Source on GitHub

Qdraw

Idx 15·Since e179·1 ABI version
PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYVRC
1Procedures
2Functions
0Structs
1ABI Version

Current ABI

e179Open Snapshot →

Procedures

1State-changing
procbuyTicket#1
in 8Bout 0B
input1 field · 8B
nametypeoffsetbyteslayout
ticketCountuint6408

Functions

2Read-only
funcgetInfo#2
in 0Bout 59B
output7 fields · 59B
nametypeoffsetbyteslayout
potsint6408
participantCountuint6488
lastWinnerid1632
lastWinAmountsint64488
lastDrawHouruint8561
currentHouruint8571
nextDrawHouruint8581
funcgetParticipants#3
in 0Bout 40976B
output4 fields · 40976B
nametypeoffsetbyteslayout
participantCountuint6408
uniqueParticipantCountuint6488
participantsid[1024]1632768
ticketCountsuint64[1024]327848192

Raw JSON

/v1/contracts/15
contracts/15.json
{
  "contractIndex": 15,
  "contractName": "Qdraw",
  "contractAddress": "PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYVRC",
  "epoch": 179,
  "coreVersion": "v1.260.0",
  "structs": {},
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 1,
      "name": "buyTicket",
      "inputFields": [
        {
          "name": "ticketCount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 8,
      "outputSize": 0
    }
  ],
  "functions": [
    {
      "kind": "function",
      "inputType": 2,
      "name": "getInfo",
      "inputFields": [],
      "outputFields": [
        {
          "name": "pot",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "participantCount",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "lastWinner",
          "type": "id",
          "offset": 16,
          "byteLength": 32
        },
        {
          "name": "lastWinAmount",
          "type": "sint64",
          "offset": 48,
          "byteLength": 8
        },
        {
          "name": "lastDrawHour",
          "type": "uint8",
          "offset": 56,
          "byteLength": 1
        },
        {
          "name": "currentHour",
          "type": "uint8",
          "offset": 57,
          "byteLength": 1
        },
        {
          "name": "nextDrawHour",
          "type": "uint8",
          "offset": 58,
          "byteLength": 1
        }
      ],
      "inputSize": 0,
      "outputSize": 59
    },
    {
      "kind": "function",
      "inputType": 3,
      "name": "getParticipants",
      "inputFields": [],
      "outputFields": [
        {
          "name": "participantCount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "uniqueParticipantCount",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "participants",
          "type": "array",
          "offset": 16,
          "byteLength": 32768,
          "arrayLength": 1024,
          "arrayItemType": "id",
          "arrayItemByteLength": 32
        },
        {
          "name": "ticketCounts",
          "type": "array",
          "offset": 32784,
          "byteLength": 8192,
          "arrayLength": 1024,
          "arrayItemType": "uint64",
          "arrayItemByteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 40976
    }
  ],
  "effectiveFromEpoch": 179,
  "effectiveToEpoch": null
}