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