- Procedures
- 13
- Functions
- 14
- Custom types
- 8
Procedures
BuyTicketinput 1
Buys a single ticket and transfers the ticket price from the invocator.
Input1
- digitsuint8[8]
Output1
- returnCodeEReturnCode
SetPriceinput 2
Schedules a new ticket price for the next epoch (owner-only).
Input1
- newPriceuint64
Output1
- returnCodeEReturnCode
SetScheduleinput 3
Schedules a new draw schedule bitmask for the next epoch (owner-only).
Input1
- newScheduleuint8
Output1
- returnCodeEReturnCode
SetDrawHourinput 4
Schedules a new draw hour in UTC for the next epoch (owner-only).
Input1
- newDrawHouruint8
Output1
- returnCodeEReturnCode
SetFeesinput 5
Schedules new fee splits for the next epoch (owner-only).
Input4
- devPercentuint8
- burnPercentuint8
- shareholdersPercentuint8
- rlShareholdersPercentuint8
Output1
- returnCodeEReturnCode
SetQHeartHoldLimitinput 6
Schedules a new QHeart hold limit for the next epoch (owner-only).
Input1
- newQHeartHoldLimituint64
Output1
- returnCodeEReturnCode
BuyRandomTicketsinput 7
Buys multiple random tickets and transfers the total price from the invocator.
Input1
- countuint16
Output1
- returnCodeEReturnCode
DepositAutoParticipationinput 8
Deposits QHeart into the contract for automatic ticket purchases.
Input3
- amountsint64
- desiredTicketssint16
- buyNowbit
Output1
- returnCodeEReturnCode
WithdrawAutoParticipationinput 9
Withdraws QHeart from the invocator's auto-participation deposit.
Input1
- amountsint64
Output1
- returnCodeEReturnCode
SetAutoConfiginput 10
Updates the invocator's auto-participation configuration.
Input1
- desiredTicketssint16
Output1
- returnCodeEReturnCode
SetAutoLimitsinput 11
Sets the global auto-participation ticket limit (owner-only).
Input1
- maxTicketsPerUseruint16
Output1
- returnCodeEReturnCode
TransferShareManagementRightsinput 12
Releases managed QHeart token rights to another contract for the invocator.
Input2
- numberOfSharessint64
- newManagingContractIndexuint16
Output1
- returnCodeEReturnCode
DepositManagedQHeartinput 13
Deposits QHeart already managed by Pulse into the Pulse wallet.
Input1
- amountsint64
Output1
- returnCodeEReturnCode
Functions
GetTicketPriceinput 1
Returns the current ticket price in QHeart units.
Input0
None
Output1
- ticketPriceuint64
GetPlayerBalanceinput 2
Input1
- playerid
Output2
- balanceuint64
- returnCodeEReturnCode
GetRoundStateinput 3
Returns the current round lifecycle state and sale progress.
Input0
None
Output10
- epochuint32
- lastDrawDateStampuint32
- ticketCounteruint16
- maxPlayersuint16
- slotsLeftuint16
- currentStateuint8
- drawHouruint8
- scheduleuint8
- sellingOpenbit
- returnCodeEReturnCode
GetFeesinput 4
Returns the current fee split configuration.
Input0
None
Output5
- devPercentuint8
- burnPercentuint8
- shareholdersPercentuint8
- rlShareholdersPercentuint8
- returnCodeEReturnCode
GetQHeartHoldLimitinput 5
Returns the QHeart balance cap retained by the contract.
Input0
None
Output1
- qheartHoldLimituint64
GetQHeartWalletinput 6
Returns the designated QHeart issuer wallet.
Input0
None
Output1
- walletid
GetWinningDigitsinput 7
Returns the digits from the last settled draw.
Input0
None
Output1
- digitsuint8[8]
GetBalanceinput 8
Returns the contract QHeart balance held in the Pulse wallet.
Input0
None
Output1
- balanceuint64
GetWinnersinput 9
Returns the winners ring buffer snapshot and the current insertion counter.
Input0
None
Output3
- winnersstruct[1024]
- winnersCounteruint64
- returnCodeEReturnCode
GetAutoParticipationinput 10
Returns auto-participation settings for the invocator.
Input1
- playerid
Output3
- deposituint64
- desiredTicketsuint16
- returnCodeEReturnCode
GetAutoStatsinput 11
Returns the current auto-participation roster and shared limits.
Input0
None
Output5
- participantsstruct[512]
- maxAutoParticipantsuint16
- maxAutoTicketsPerUseruint16
- roundSlotsLeftuint16
- returnCodeEReturnCode
ValidateDigitsinput 12
Validates a ticket payload without changing contract state.
Input1
- digitsuint8[8]
Output1
- isValidbit
GetPlayersinput 13
Returns the current round ticket snapshot.
Input0
None
Output2
- playersstruct[1024]
- returnCodeEReturnCode
GetPrizeTableinput 14
Returns the payout table derived from the current ticket price.
Input0
None
Output4
- leftAlignedRewardsuint64[8]
- anyPositionRewardsuint64[8]
- ticketPriceuint64
- returnCodeEReturnCode
Custom types
WinnerInfostruct · 48 B
Fields3
- winnerAddressid
- revenueuint64
- epochuint16
AutoParticipantstruct · 48 B
Fields3
- playerid
- depositsint64
- desiredTicketsuint16
Ticketstruct · 40 B
Fields2
- playerid
- digitsuint8[8]
HashMapConverterstruct · 16 B
Fields2
- hashMapIndexsint64
- arrayIndexuint64
NextEpochDatastruct · 32 B
Fields13
- hasNewPricebit
- hasNewSchedulebit
- hasNewDrawHourbit
- hasNewFeebit
- hasNewQHeartHoldLimitbit
- newPriceuint64
- newScheduleuint8
- newDrawHouruint8
- newDevPercentuint8
- newBurnPercentuint8
- newShareholdersPercentuint8
- newRLShareholdersPercentuint8
- newQHeartHoldLimituint64
RandomDatastruct · 568 B
Fields6
- entropyuint64[64]
- playerid
- domainuint64
- ticketCountersint64
- tickuint32
- countuint16
SettleEntropyDatastruct · 544 B
Fields6
- entropyuint64[64]
- domainuint64
- ticketCountersint64
- ticketPricesint64
- tickuint32
- epochuint16
EReturnCode
enum · uint8
