Source on GitHub

Pulse

Idx 24·Since e208·3 ABI versions
YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMSME
13Procedures
14Functions
3Structs
3ABI Versions

Current ABI

e208Open Snapshot →

Procedures

13State-changing
procBuyTicket#1
in 0Bout 1B
input1 field · 0B
nametypeoffsetbyteslayout
digitsuint8[]00
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
procSetDrawHour#4
in 1Bout 1B
input1 field · 1B
nametypeoffsetbyteslayout
newDrawHouruint801
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSetFees#5
in 4Bout 1B
input4 fields · 4B
nametypeoffsetbyteslayout
devPercentuint801
burnPercentuint811
shareholdersPercentuint821
rlShareholdersPercentuint831
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSetQHeartHoldLimit#6
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
newQHeartHoldLimituint6408
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procBuyRandomTickets#7
in 2Bout 1B
input1 field · 2B
nametypeoffsetbyteslayout
countuint1602
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procDepositAutoParticipation#8
in 11Bout 1B
input3 fields · 11B
nametypeoffsetbyteslayout
amountsint6408
desiredTicketssint1682
buyNowuint8101
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procWithdrawAutoParticipation#9
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
amountsint6408
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSetAutoConfig#10
in 2Bout 1B
input1 field · 2B
nametypeoffsetbyteslayout
desiredTicketssint1602
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSetAutoLimits#11
in 2Bout 1B
input1 field · 2B
nametypeoffsetbyteslayout
maxTicketsPerUseruint1602
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procTransferTokenToQx#12
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
numberOfSharessint6408
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procDepositManagedQHeart#13
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
amountsint6408
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801

Functions

14Read-only
funcGetTicketPrice#1
in 0Bout 8B
output1 field · 8B
nametypeoffsetbyteslayout
ticketPriceuint6408
funcGetPlayerBalance#2
in 32Bout 9B
input1 field · 32B
nametypeoffsetbyteslayout
playerid032
output2 fields · 9B
nametypeoffsetbyteslayout
balanceuint6408
returnCodeuint881
funcGetRoundState#3
in 0Bout 19B
output10 fields · 19B
nametypeoffsetbyteslayout
epochuint3204
lastDrawDateStampuint3244
ticketCounteruint1682
maxPlayersuint16102
slotsLeftuint16122
currentStateuint8141
drawHouruint8151
scheduleuint8161
sellingOpenuint8171
returnCodeuint8181
funcGetFees#4
in 0Bout 5B
output5 fields · 5B
nametypeoffsetbyteslayout
devPercentuint801
burnPercentuint811
shareholdersPercentuint821
rlShareholdersPercentuint831
returnCodeuint841
funcGetQHeartHoldLimit#5
in 0Bout 8B
output1 field · 8B
nametypeoffsetbyteslayout
qheartHoldLimituint6408
funcGetQHeartWallet#6
in 0Bout 32B
output1 field · 32B
nametypeoffsetbyteslayout
walletid032
funcGetWinningDigits#7
in 0Bout 0B
output1 field · 0B
nametypeoffsetbyteslayout
digitsuint8[]00
funcGetBalance#8
in 0Bout 8B
output1 field · 8B
nametypeoffsetbyteslayout
balanceuint6408
funcGetWinners#9
in 0Bout 43017B
output3 fields · 43017B
nametypeoffsetbyteslayout
winnersWinnerInfo[1024]043008
winnersCounteruint64430088
returnCodeuint8430161
funcGetAutoParticipation#10
in 32Bout 11B
input1 field · 32B
nametypeoffsetbyteslayout
playerid032
output3 fields · 11B
nametypeoffsetbyteslayout
deposituint6408
desiredTicketsuint1682
returnCodeuint8101
funcGetAutoStats#11
in 0Bout 7B
output5 fields · 7B
nametypeoffsetbyteslayout
participantsAutoParticipant[]00
maxAutoParticipantsuint1602
maxAutoTicketsPerUseruint1622
roundSlotsLeftuint1642
returnCodeuint861
funcValidateDigits#12
in 0Bout 1B
input1 field · 0B
nametypeoffsetbyteslayout
digitsuint8[]00
output1 field · 1B
nametypeoffsetbyteslayout
isValiduint801
funcGetPlayers#13
in 0Bout 32769B
output2 fields · 32769B
nametypeoffsetbyteslayout
playersTicket[1024]032768
returnCodeuint8327681
funcGetPrizeTable#14
in 0Bout 9B
output4 fields · 9B
nametypeoffsetbyteslayout
leftAlignedRewardsuint64[]00
anyPositionRewardsuint64[]00
ticketPriceuint6408
returnCodeuint881

Structs

3Shared types
structTicket
32B2 fields
fields
nametypeoffsetbyteslayout
playerid032
digitsuint8[]320
structWinnerInfo
42B3 fields
fields
nametypeoffsetbyteslayout
winnerAddressid032
revenueuint64328
epochuint16402
structAutoParticipant
42B3 fields
fields
nametypeoffsetbyteslayout
playerid032
depositsint64328
desiredTicketsuint16402

Raw JSON

/v1/contracts/24
contracts/24.json
{
  "contractIndex": 24,
  "contractName": "Pulse",
  "contractAddress": "YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMSME",
  "epoch": 208,
  "coreVersion": "v1.286.1",
  "structs": {
    "Ticket": {
      "name": "Ticket",
      "fields": [
        {
          "name": "player",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "digits",
          "type": "array",
          "offset": 32,
          "byteLength": 0,
          "arrayLength": 0,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        }
      ],
      "byteLength": 32
    },
    "WinnerInfo": {
      "name": "WinnerInfo",
      "fields": [
        {
          "name": "winnerAddress",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "revenue",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "epoch",
          "type": "uint16",
          "offset": 40,
          "byteLength": 2
        }
      ],
      "byteLength": 42
    },
    "AutoParticipant": {
      "name": "AutoParticipant",
      "fields": [
        {
          "name": "player",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "deposit",
          "type": "sint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "desiredTickets",
          "type": "uint16",
          "offset": 40,
          "byteLength": 2
        }
      ],
      "byteLength": 42
    }
  },
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 1,
      "name": "BuyTicket",
      "inputFields": [
        {
          "name": "digits",
          "type": "array",
          "offset": 0,
          "byteLength": 0,
          "arrayLength": 0,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 0,
      "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": "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": 5,
      "name": "SetFees",
      "inputFields": [
        {
          "name": "devPercent",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        },
        {
          "name": "burnPercent",
          "type": "uint8",
          "offset": 1,
          "byteLength": 1
        },
        {
          "name": "shareholdersPercent",
          "type": "uint8",
          "offset": 2,
          "byteLength": 1
        },
        {
          "name": "rlShareholdersPercent",
          "type": "uint8",
          "offset": 3,
          "byteLength": 1
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 4,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 6,
      "name": "SetQHeartHoldLimit",
      "inputFields": [
        {
          "name": "newQHeartHoldLimit",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 8,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 7,
      "name": "BuyRandomTickets",
      "inputFields": [
        {
          "name": "count",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 2,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 8,
      "name": "DepositAutoParticipation",
      "inputFields": [
        {
          "name": "amount",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "desiredTickets",
          "type": "sint16",
          "offset": 8,
          "byteLength": 2
        },
        {
          "name": "buyNow",
          "type": "uint8",
          "offset": 10,
          "byteLength": 1
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 11,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 9,
      "name": "WithdrawAutoParticipation",
      "inputFields": [
        {
          "name": "amount",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 8,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 10,
      "name": "SetAutoConfig",
      "inputFields": [
        {
          "name": "desiredTickets",
          "type": "sint16",
          "offset": 0,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 2,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 11,
      "name": "SetAutoLimits",
      "inputFields": [
        {
          "name": "maxTicketsPerUser",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 2,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 12,
      "name": "TransferTokenToQx",
      "inputFields": [
        {
          "name": "numberOfShares",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 8,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 13,
      "name": "DepositManagedQHeart",
      "inputFields": [
        {
          "name": "amount",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 8,
      "outputSize": 1
    }
  ],
  "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": "GetPlayerBalance",
      "inputFields": [
        {
          "name": "player",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        }
      ],
      "outputFields": [
        {
          "name": "balance",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 8,
          "byteLength": 1
        }
      ],
      "inputSize": 32,
      "outputSize": 9
    },
    {
      "kind": "function",
      "inputType": 3,
      "name": "GetRoundState",
      "inputFields": [],
      "outputFields": [
        {
          "name": "epoch",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        },
        {
          "name": "lastDrawDateStamp",
          "type": "uint32",
          "offset": 4,
          "byteLength": 4
        },
        {
          "name": "ticketCounter",
          "type": "uint16",
          "offset": 8,
          "byteLength": 2
        },
        {
          "name": "maxPlayers",
          "type": "uint16",
          "offset": 10,
          "byteLength": 2
        },
        {
          "name": "slotsLeft",
          "type": "uint16",
          "offset": 12,
          "byteLength": 2
        },
        {
          "name": "currentState",
          "type": "uint8",
          "offset": 14,
          "byteLength": 1
        },
        {
          "name": "drawHour",
          "type": "uint8",
          "offset": 15,
          "byteLength": 1
        },
        {
          "name": "schedule",
          "type": "uint8",
          "offset": 16,
          "byteLength": 1
        },
        {
          "name": "sellingOpen",
          "type": "uint8",
          "offset": 17,
          "byteLength": 1
        },
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 18,
          "byteLength": 1
        }
      ],
      "inputSize": 0,
      "outputSize": 19
    },
    {
      "kind": "function",
      "inputType": 4,
      "name": "GetFees",
      "inputFields": [],
      "outputFields": [
        {
          "name": "devPercent",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        },
        {
          "name": "burnPercent",
          "type": "uint8",
          "offset": 1,
          "byteLength": 1
        },
        {
          "name": "shareholdersPercent",
          "type": "uint8",
          "offset": 2,
          "byteLength": 1
        },
        {
          "name": "rlShareholdersPercent",
          "type": "uint8",
          "offset": 3,
          "byteLength": 1
        },
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 4,
          "byteLength": 1
        }
      ],
      "inputSize": 0,
      "outputSize": 5
    },
    {
      "kind": "function",
      "inputType": 5,
      "name": "GetQHeartHoldLimit",
      "inputFields": [],
      "outputFields": [
        {
          "name": "qheartHoldLimit",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 8
    },
    {
      "kind": "function",
      "inputType": 6,
      "name": "GetQHeartWallet",
      "inputFields": [],
      "outputFields": [
        {
          "name": "wallet",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        }
      ],
      "inputSize": 0,
      "outputSize": 32
    },
    {
      "kind": "function",
      "inputType": 7,
      "name": "GetWinningDigits",
      "inputFields": [],
      "outputFields": [
        {
          "name": "digits",
          "type": "array",
          "offset": 0,
          "byteLength": 0,
          "arrayLength": 0,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        }
      ],
      "inputSize": 0,
      "outputSize": 0
    },
    {
      "kind": "function",
      "inputType": 8,
      "name": "GetBalance",
      "inputFields": [],
      "outputFields": [
        {
          "name": "balance",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 8
    },
    {
      "kind": "function",
      "inputType": 9,
      "name": "GetWinners",
      "inputFields": [],
      "outputFields": [
        {
          "name": "winners",
          "type": "array",
          "offset": 0,
          "byteLength": 43008,
          "arrayLength": 1024,
          "arrayItemStructRef": "WinnerInfo",
          "arrayItemByteLength": 42
        },
        {
          "name": "winnersCounter",
          "type": "uint64",
          "offset": 43008,
          "byteLength": 8
        },
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 43016,
          "byteLength": 1
        }
      ],
      "inputSize": 0,
      "outputSize": 43017
    },
    {
      "kind": "function",
      "inputType": 10,
      "name": "GetAutoParticipation",
      "inputFields": [
        {
          "name": "player",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        }
      ],
      "outputFields": [
        {
          "name": "deposit",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "desiredTickets",
          "type": "uint16",
          "offset": 8,
          "byteLength": 2
        },
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 10,
          "byteLength": 1
        }
      ],
      "inputSize": 32,
      "outputSize": 11
    },
    {
      "kind": "function",
      "inputType": 11,
      "name": "GetAutoStats",
      "inputFields": [],
      "outputFields": [
        {
          "name": "participants",
          "type": "array",
          "offset": 0,
          "byteLength": 0,
          "arrayLength": 0,
          "arrayItemStructRef": "AutoParticipant",
          "arrayItemByteLength": 42
        },
        {
          "name": "maxAutoParticipants",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        },
        {
          "name": "maxAutoTicketsPerUser",
          "type": "uint16",
          "offset": 2,
          "byteLength": 2
        },
        {
          "name": "roundSlotsLeft",
          "type": "uint16",
          "offset": 4,
          "byteLength": 2
        },
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 6,
          "byteLength": 1
        }
      ],
      "inputSize": 0,
      "outputSize": 7
    },
    {
      "kind": "function",
      "inputType": 12,
      "name": "ValidateDigits",
      "inputFields": [
        {
          "name": "digits",
          "type": "array",
          "offset": 0,
          "byteLength": 0,
          "arrayLength": 0,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        }
      ],
      "outputFields": [
        {
          "name": "isValid",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 0,
      "outputSize": 1
    },
    {
      "kind": "function",
      "inputType": 13,
      "name": "GetPlayers",
      "inputFields": [],
      "outputFields": [
        {
          "name": "players",
          "type": "array",
          "offset": 0,
          "byteLength": 32768,
          "arrayLength": 1024,
          "arrayItemStructRef": "Ticket",
          "arrayItemByteLength": 32
        },
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 32768,
          "byteLength": 1
        }
      ],
      "inputSize": 0,
      "outputSize": 32769
    },
    {
      "kind": "function",
      "inputType": 14,
      "name": "GetPrizeTable",
      "inputFields": [],
      "outputFields": [
        {
          "name": "leftAlignedRewards",
          "type": "array",
          "offset": 0,
          "byteLength": 0,
          "arrayLength": 0,
          "arrayItemType": "uint64",
          "arrayItemByteLength": 8
        },
        {
          "name": "anyPositionRewards",
          "type": "array",
          "offset": 0,
          "byteLength": 0,
          "arrayLength": 0,
          "arrayItemType": "uint64",
          "arrayItemByteLength": 8
        },
        {
          "name": "ticketPrice",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 8,
          "byteLength": 1
        }
      ],
      "inputSize": 0,
      "outputSize": 9
    }
  ],
  "effectiveFromEpoch": 208,
  "effectiveToEpoch": null
}