@qubic.org/contracts 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/__generated__/computorcontrolledfund.d.ts +30 -30
  2. package/dist/__generated__/computorcontrolledfund.d.ts.map +1 -1
  3. package/dist/__generated__/computorcontrolledfund.js +57 -57
  4. package/dist/__generated__/computorcontrolledfund.js.map +1 -1
  5. package/dist/__generated__/escrow.d.ts +13 -13
  6. package/dist/__generated__/escrow.d.ts.map +1 -1
  7. package/dist/__generated__/escrow.js +20 -20
  8. package/dist/__generated__/escrow.js.map +1 -1
  9. package/dist/__generated__/generalquorumproposal.d.ts +21 -21
  10. package/dist/__generated__/generalquorumproposal.d.ts.map +1 -1
  11. package/dist/__generated__/generalquorumproposal.js +31 -31
  12. package/dist/__generated__/generalquorumproposal.js.map +1 -1
  13. package/dist/__generated__/msvault.d.ts +104 -104
  14. package/dist/__generated__/msvault.d.ts.map +1 -1
  15. package/dist/__generated__/msvault.js +220 -220
  16. package/dist/__generated__/msvault.js.map +1 -1
  17. package/dist/__generated__/nostromo.d.ts +43 -43
  18. package/dist/__generated__/nostromo.d.ts.map +1 -1
  19. package/dist/__generated__/nostromo.js +68 -68
  20. package/dist/__generated__/nostromo.js.map +1 -1
  21. package/dist/__generated__/pulse.d.ts +171 -171
  22. package/dist/__generated__/pulse.d.ts.map +1 -1
  23. package/dist/__generated__/pulse.js +409 -409
  24. package/dist/__generated__/pulse.js.map +1 -1
  25. package/dist/__generated__/qbay.d.ts +61 -61
  26. package/dist/__generated__/qbay.d.ts.map +1 -1
  27. package/dist/__generated__/qbay.js +103 -103
  28. package/dist/__generated__/qbay.js.map +1 -1
  29. package/dist/__generated__/qbond.d.ts +44 -44
  30. package/dist/__generated__/qbond.d.ts.map +1 -1
  31. package/dist/__generated__/qbond.js +67 -67
  32. package/dist/__generated__/qbond.js.map +1 -1
  33. package/dist/__generated__/qdraw.d.ts +4 -4
  34. package/dist/__generated__/qdraw.d.ts.map +1 -1
  35. package/dist/__generated__/qdraw.js +4 -4
  36. package/dist/__generated__/qdraw.js.map +1 -1
  37. package/dist/__generated__/qduel.d.ts +49 -49
  38. package/dist/__generated__/qduel.d.ts.map +1 -1
  39. package/dist/__generated__/qduel.js +106 -106
  40. package/dist/__generated__/qduel.js.map +1 -1
  41. package/dist/__generated__/qearn.d.ts +24 -24
  42. package/dist/__generated__/qearn.d.ts.map +1 -1
  43. package/dist/__generated__/qearn.js +38 -38
  44. package/dist/__generated__/qearn.js.map +1 -1
  45. package/dist/__generated__/qip.d.ts +10 -10
  46. package/dist/__generated__/qip.d.ts.map +1 -1
  47. package/dist/__generated__/qip.js +16 -16
  48. package/dist/__generated__/qip.js.map +1 -1
  49. package/dist/__generated__/qraffle.d.ts +51 -51
  50. package/dist/__generated__/qraffle.d.ts.map +1 -1
  51. package/dist/__generated__/qraffle.js +108 -108
  52. package/dist/__generated__/qraffle.js.map +1 -1
  53. package/dist/__generated__/qreservepool.d.ts +14 -14
  54. package/dist/__generated__/qreservepool.d.ts.map +1 -1
  55. package/dist/__generated__/qreservepool.js +22 -22
  56. package/dist/__generated__/qreservepool.js.map +1 -1
  57. package/dist/__generated__/qrwa.d.ts +71 -71
  58. package/dist/__generated__/qrwa.d.ts.map +1 -1
  59. package/dist/__generated__/qrwa.js +174 -174
  60. package/dist/__generated__/qrwa.js.map +1 -1
  61. package/dist/__generated__/qswap.d.ts +79 -79
  62. package/dist/__generated__/qswap.d.ts.map +1 -1
  63. package/dist/__generated__/qswap.js +158 -158
  64. package/dist/__generated__/qswap.js.map +1 -1
  65. package/dist/__generated__/qthirtyfour.d.ts +78 -78
  66. package/dist/__generated__/qthirtyfour.d.ts.map +1 -1
  67. package/dist/__generated__/qthirtyfour.js +161 -161
  68. package/dist/__generated__/qthirtyfour.js.map +1 -1
  69. package/dist/__generated__/quottery.d.ts +124 -124
  70. package/dist/__generated__/quottery.d.ts.map +1 -1
  71. package/dist/__generated__/quottery.js +266 -266
  72. package/dist/__generated__/quottery.js.map +1 -1
  73. package/dist/__generated__/qusino.d.ts +44 -44
  74. package/dist/__generated__/qusino.d.ts.map +1 -1
  75. package/dist/__generated__/qusino.js +88 -88
  76. package/dist/__generated__/qusino.js.map +1 -1
  77. package/dist/__generated__/qutil.d.ts +108 -108
  78. package/dist/__generated__/qutil.d.ts.map +1 -1
  79. package/dist/__generated__/qutil.js +231 -231
  80. package/dist/__generated__/qutil.js.map +1 -1
  81. package/dist/__generated__/qvault.d.ts +90 -90
  82. package/dist/__generated__/qvault.d.ts.map +1 -1
  83. package/dist/__generated__/qvault.js +146 -146
  84. package/dist/__generated__/qvault.js.map +1 -1
  85. package/dist/__generated__/qx.d.ts +36 -36
  86. package/dist/__generated__/qx.d.ts.map +1 -1
  87. package/dist/__generated__/qx.js +54 -54
  88. package/dist/__generated__/qx.js.map +1 -1
  89. package/dist/__generated__/random.d.ts +2 -1
  90. package/dist/__generated__/random.d.ts.map +1 -1
  91. package/dist/__generated__/random.js +2 -2
  92. package/dist/__generated__/random.js.map +1 -1
  93. package/dist/__generated__/randomlottery.d.ts +28 -28
  94. package/dist/__generated__/randomlottery.d.ts.map +1 -1
  95. package/dist/__generated__/randomlottery.js +41 -41
  96. package/dist/__generated__/randomlottery.js.map +1 -1
  97. package/dist/__generated__/vottunbridge.d.ts +77 -77
  98. package/dist/__generated__/vottunbridge.d.ts.map +1 -1
  99. package/dist/__generated__/vottunbridge.js +181 -181
  100. package/dist/__generated__/vottunbridge.js.map +1 -1
  101. package/dist/call-contract.d.ts +9 -3
  102. package/dist/call-contract.d.ts.map +1 -1
  103. package/dist/call-contract.js +21 -22
  104. package/dist/call-contract.js.map +1 -1
  105. package/dist/index.d.ts +1 -1
  106. package/dist/index.d.ts.map +1 -1
  107. package/dist/index.js.map +1 -1
  108. package/package.json +7 -10
@@ -72,7 +72,7 @@ const STRUCTS = {
72
72
  ],
73
73
  },
74
74
  };
75
- export const PULSE_BUY_TICKET_INPUT_TYPE = 2;
75
+ export const PULSE_BUY_TICKET_INPUT_TYPE = 1;
76
76
  const PULSE_BUY_TICKET_INPUT_FIELDS = [
77
77
  {
78
78
  name: 'digits',
@@ -84,8 +84,8 @@ const PULSE_BUY_TICKET_INPUT_FIELDS = [
84
84
  arrayItemByteLength: 1,
85
85
  },
86
86
  ];
87
- export function buildPulseBuyTicketInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
88
- return buildPayload(PULSE_BUY_TICKET_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
87
+ export function buildPulseBuyTicketInput(input) {
88
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_BUY_TICKET_INPUT_TYPE, payload: buildPayload(PULSE_BUY_TICKET_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
89
89
  }
90
90
  const PULSE_BUY_TICKET_OUTPUT_FIELDS = [
91
91
  {
@@ -95,22 +95,22 @@ const PULSE_BUY_TICKET_OUTPUT_FIELDS = [
95
95
  byteLength: 1,
96
96
  },
97
97
  ];
98
- export function decodePulseBuyTicketOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
99
- return decodePayload(data, PULSE_BUY_TICKET_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
98
+ export function decodePulseBuyTicketOutput(data) {
99
+ return decodePayload(data, PULSE_BUY_TICKET_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
100
100
  }
101
- export const PULSE_BUY_RANDOM_TICKETS_INPUT_TYPE = 7;
102
- const PULSE_BUY_RANDOM_TICKETS_INPUT_FIELDS = [
101
+ export const PULSE_SET_PRICE_INPUT_TYPE = 2;
102
+ const PULSE_SET_PRICE_INPUT_FIELDS = [
103
103
  {
104
- name: 'count',
105
- type: 'uint16',
104
+ name: 'newPrice',
105
+ type: 'uint64',
106
106
  offset: 0,
107
- byteLength: 2,
107
+ byteLength: 8,
108
108
  },
109
109
  ];
110
- export function buildPulseBuyRandomTicketsInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
111
- return buildPayload(PULSE_BUY_RANDOM_TICKETS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
110
+ export function buildPulseSetPriceInput(input) {
111
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_SET_PRICE_INPUT_TYPE, payload: buildPayload(PULSE_SET_PRICE_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
112
112
  }
113
- const PULSE_BUY_RANDOM_TICKETS_OUTPUT_FIELDS = [
113
+ const PULSE_SET_PRICE_OUTPUT_FIELDS = [
114
114
  {
115
115
  name: 'returnCode',
116
116
  type: 'uint8',
@@ -118,34 +118,22 @@ const PULSE_BUY_RANDOM_TICKETS_OUTPUT_FIELDS = [
118
118
  byteLength: 1,
119
119
  },
120
120
  ];
121
- export function decodePulseBuyRandomTicketsOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
122
- return decodePayload(data, PULSE_BUY_RANDOM_TICKETS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
121
+ export function decodePulseSetPriceOutput(data) {
122
+ return decodePayload(data, PULSE_SET_PRICE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
123
123
  }
124
- export const PULSE_DEPOSIT_AUTO_PARTICIPATION_INPUT_TYPE = 11;
125
- const PULSE_DEPOSIT_AUTO_PARTICIPATION_INPUT_FIELDS = [
126
- {
127
- name: 'amount',
128
- type: 'sint64',
129
- offset: 0,
130
- byteLength: 8,
131
- },
132
- {
133
- name: 'desiredTickets',
134
- type: 'sint16',
135
- offset: 8,
136
- byteLength: 2,
137
- },
124
+ export const PULSE_SET_SCHEDULE_INPUT_TYPE = 3;
125
+ const PULSE_SET_SCHEDULE_INPUT_FIELDS = [
138
126
  {
139
- name: 'buyNow',
127
+ name: 'newSchedule',
140
128
  type: 'uint8',
141
- offset: 10,
129
+ offset: 0,
142
130
  byteLength: 1,
143
131
  },
144
132
  ];
145
- export function buildPulseDepositAutoParticipationInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
146
- return buildPayload(PULSE_DEPOSIT_AUTO_PARTICIPATION_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
133
+ export function buildPulseSetScheduleInput(input) {
134
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_SET_SCHEDULE_INPUT_TYPE, payload: buildPayload(PULSE_SET_SCHEDULE_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
147
135
  }
148
- const PULSE_DEPOSIT_AUTO_PARTICIPATION_OUTPUT_FIELDS = [
136
+ const PULSE_SET_SCHEDULE_OUTPUT_FIELDS = [
149
137
  {
150
138
  name: 'returnCode',
151
139
  type: 'uint8',
@@ -153,22 +141,22 @@ const PULSE_DEPOSIT_AUTO_PARTICIPATION_OUTPUT_FIELDS = [
153
141
  byteLength: 1,
154
142
  },
155
143
  ];
156
- export function decodePulseDepositAutoParticipationOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
157
- return decodePayload(data, PULSE_DEPOSIT_AUTO_PARTICIPATION_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
144
+ export function decodePulseSetScheduleOutput(data) {
145
+ return decodePayload(data, PULSE_SET_SCHEDULE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
158
146
  }
159
- export const PULSE_WITHDRAW_AUTO_PARTICIPATION_INPUT_TYPE = 12;
160
- const PULSE_WITHDRAW_AUTO_PARTICIPATION_INPUT_FIELDS = [
147
+ export const PULSE_SET_DRAW_HOUR_INPUT_TYPE = 4;
148
+ const PULSE_SET_DRAW_HOUR_INPUT_FIELDS = [
161
149
  {
162
- name: 'amount',
163
- type: 'sint64',
150
+ name: 'newDrawHour',
151
+ type: 'uint8',
164
152
  offset: 0,
165
- byteLength: 8,
153
+ byteLength: 1,
166
154
  },
167
155
  ];
168
- export function buildPulseWithdrawAutoParticipationInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
169
- return buildPayload(PULSE_WITHDRAW_AUTO_PARTICIPATION_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
156
+ export function buildPulseSetDrawHourInput(input) {
157
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_SET_DRAW_HOUR_INPUT_TYPE, payload: buildPayload(PULSE_SET_DRAW_HOUR_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
170
158
  }
171
- const PULSE_WITHDRAW_AUTO_PARTICIPATION_OUTPUT_FIELDS = [
159
+ const PULSE_SET_DRAW_HOUR_OUTPUT_FIELDS = [
172
160
  {
173
161
  name: 'returnCode',
174
162
  type: 'uint8',
@@ -176,22 +164,40 @@ const PULSE_WITHDRAW_AUTO_PARTICIPATION_OUTPUT_FIELDS = [
176
164
  byteLength: 1,
177
165
  },
178
166
  ];
179
- export function decodePulseWithdrawAutoParticipationOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
180
- return decodePayload(data, PULSE_WITHDRAW_AUTO_PARTICIPATION_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
167
+ export function decodePulseSetDrawHourOutput(data) {
168
+ return decodePayload(data, PULSE_SET_DRAW_HOUR_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
181
169
  }
182
- export const PULSE_SET_AUTO_CONFIG_INPUT_TYPE = 13;
183
- const PULSE_SET_AUTO_CONFIG_INPUT_FIELDS = [
170
+ export const PULSE_SET_FEES_INPUT_TYPE = 5;
171
+ const PULSE_SET_FEES_INPUT_FIELDS = [
184
172
  {
185
- name: 'desiredTickets',
186
- type: 'sint16',
173
+ name: 'devPercent',
174
+ type: 'uint8',
187
175
  offset: 0,
188
- byteLength: 2,
176
+ byteLength: 1,
177
+ },
178
+ {
179
+ name: 'burnPercent',
180
+ type: 'uint8',
181
+ offset: 1,
182
+ byteLength: 1,
183
+ },
184
+ {
185
+ name: 'shareholdersPercent',
186
+ type: 'uint8',
187
+ offset: 2,
188
+ byteLength: 1,
189
+ },
190
+ {
191
+ name: 'rlShareholdersPercent',
192
+ type: 'uint8',
193
+ offset: 3,
194
+ byteLength: 1,
189
195
  },
190
196
  ];
191
- export function buildPulseSetAutoConfigInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
192
- return buildPayload(PULSE_SET_AUTO_CONFIG_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
197
+ export function buildPulseSetFeesInput(input) {
198
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_SET_FEES_INPUT_TYPE, payload: buildPayload(PULSE_SET_FEES_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
193
199
  }
194
- const PULSE_SET_AUTO_CONFIG_OUTPUT_FIELDS = [
200
+ const PULSE_SET_FEES_OUTPUT_FIELDS = [
195
201
  {
196
202
  name: 'returnCode',
197
203
  type: 'uint8',
@@ -199,22 +205,22 @@ const PULSE_SET_AUTO_CONFIG_OUTPUT_FIELDS = [
199
205
  byteLength: 1,
200
206
  },
201
207
  ];
202
- export function decodePulseSetAutoConfigOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
203
- return decodePayload(data, PULSE_SET_AUTO_CONFIG_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
208
+ export function decodePulseSetFeesOutput(data) {
209
+ return decodePayload(data, PULSE_SET_FEES_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
204
210
  }
205
- export const PULSE_SET_AUTO_LIMITS_INPUT_TYPE = 14;
206
- const PULSE_SET_AUTO_LIMITS_INPUT_FIELDS = [
211
+ export const PULSE_SET_Q_HEART_HOLD_LIMIT_INPUT_TYPE = 6;
212
+ const PULSE_SET_Q_HEART_HOLD_LIMIT_INPUT_FIELDS = [
207
213
  {
208
- name: 'maxTicketsPerUser',
209
- type: 'uint16',
214
+ name: 'newQHeartHoldLimit',
215
+ type: 'uint64',
210
216
  offset: 0,
211
- byteLength: 2,
217
+ byteLength: 8,
212
218
  },
213
219
  ];
214
- export function buildPulseSetAutoLimitsInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
215
- return buildPayload(PULSE_SET_AUTO_LIMITS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
220
+ export function buildPulseSetQHeartHoldLimitInput(input) {
221
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_SET_Q_HEART_HOLD_LIMIT_INPUT_TYPE, payload: buildPayload(PULSE_SET_Q_HEART_HOLD_LIMIT_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
216
222
  }
217
- const PULSE_SET_AUTO_LIMITS_OUTPUT_FIELDS = [
223
+ const PULSE_SET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS = [
218
224
  {
219
225
  name: 'returnCode',
220
226
  type: 'uint8',
@@ -222,22 +228,22 @@ const PULSE_SET_AUTO_LIMITS_OUTPUT_FIELDS = [
222
228
  byteLength: 1,
223
229
  },
224
230
  ];
225
- export function decodePulseSetAutoLimitsOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
226
- return decodePayload(data, PULSE_SET_AUTO_LIMITS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
231
+ export function decodePulseSetQHeartHoldLimitOutput(data) {
232
+ return decodePayload(data, PULSE_SET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
227
233
  }
228
- export const PULSE_DEPOSIT_MANAGED_Q_HEART_INPUT_TYPE = 15;
229
- const PULSE_DEPOSIT_MANAGED_Q_HEART_INPUT_FIELDS = [
234
+ export const PULSE_BUY_RANDOM_TICKETS_INPUT_TYPE = 7;
235
+ const PULSE_BUY_RANDOM_TICKETS_INPUT_FIELDS = [
230
236
  {
231
- name: 'amount',
232
- type: 'sint64',
237
+ name: 'count',
238
+ type: 'uint16',
233
239
  offset: 0,
234
- byteLength: 8,
240
+ byteLength: 2,
235
241
  },
236
242
  ];
237
- export function buildPulseDepositManagedQHeartInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
238
- return buildPayload(PULSE_DEPOSIT_MANAGED_Q_HEART_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
243
+ export function buildPulseBuyRandomTicketsInput(input) {
244
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_BUY_RANDOM_TICKETS_INPUT_TYPE, payload: buildPayload(PULSE_BUY_RANDOM_TICKETS_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
239
245
  }
240
- const PULSE_DEPOSIT_MANAGED_Q_HEART_OUTPUT_FIELDS = [
246
+ const PULSE_BUY_RANDOM_TICKETS_OUTPUT_FIELDS = [
241
247
  {
242
248
  name: 'returnCode',
243
249
  type: 'uint8',
@@ -245,22 +251,34 @@ const PULSE_DEPOSIT_MANAGED_Q_HEART_OUTPUT_FIELDS = [
245
251
  byteLength: 1,
246
252
  },
247
253
  ];
248
- export function decodePulseDepositManagedQHeartOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
249
- return decodePayload(data, PULSE_DEPOSIT_MANAGED_Q_HEART_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
254
+ export function decodePulseBuyRandomTicketsOutput(data) {
255
+ return decodePayload(data, PULSE_BUY_RANDOM_TICKETS_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
250
256
  }
251
- export const PULSE_TRANSFER_TOKEN_TO_QX_INPUT_TYPE = 16;
252
- const PULSE_TRANSFER_TOKEN_TO_QX_INPUT_FIELDS = [
257
+ export const PULSE_DEPOSIT_AUTO_PARTICIPATION_INPUT_TYPE = 8;
258
+ const PULSE_DEPOSIT_AUTO_PARTICIPATION_INPUT_FIELDS = [
253
259
  {
254
- name: 'numberOfShares',
260
+ name: 'amount',
255
261
  type: 'sint64',
256
262
  offset: 0,
257
263
  byteLength: 8,
258
264
  },
265
+ {
266
+ name: 'desiredTickets',
267
+ type: 'sint16',
268
+ offset: 8,
269
+ byteLength: 2,
270
+ },
271
+ {
272
+ name: 'buyNow',
273
+ type: 'uint8',
274
+ offset: 10,
275
+ byteLength: 1,
276
+ },
259
277
  ];
260
- export function buildPulseTransferTokenToQxInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
261
- return buildPayload(PULSE_TRANSFER_TOKEN_TO_QX_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
278
+ export function buildPulseDepositAutoParticipationInput(input) {
279
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_DEPOSIT_AUTO_PARTICIPATION_INPUT_TYPE, payload: buildPayload(PULSE_DEPOSIT_AUTO_PARTICIPATION_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
262
280
  }
263
- const PULSE_TRANSFER_TOKEN_TO_QX_OUTPUT_FIELDS = [
281
+ const PULSE_DEPOSIT_AUTO_PARTICIPATION_OUTPUT_FIELDS = [
264
282
  {
265
283
  name: 'returnCode',
266
284
  type: 'uint8',
@@ -268,22 +286,22 @@ const PULSE_TRANSFER_TOKEN_TO_QX_OUTPUT_FIELDS = [
268
286
  byteLength: 1,
269
287
  },
270
288
  ];
271
- export function decodePulseTransferTokenToQxOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
272
- return decodePayload(data, PULSE_TRANSFER_TOKEN_TO_QX_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
289
+ export function decodePulseDepositAutoParticipationOutput(data) {
290
+ return decodePayload(data, PULSE_DEPOSIT_AUTO_PARTICIPATION_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
273
291
  }
274
- export const PULSE_SET_PRICE_INPUT_TYPE = 29;
275
- const PULSE_SET_PRICE_INPUT_FIELDS = [
292
+ export const PULSE_WITHDRAW_AUTO_PARTICIPATION_INPUT_TYPE = 9;
293
+ const PULSE_WITHDRAW_AUTO_PARTICIPATION_INPUT_FIELDS = [
276
294
  {
277
- name: 'newPrice',
278
- type: 'uint64',
295
+ name: 'amount',
296
+ type: 'sint64',
279
297
  offset: 0,
280
298
  byteLength: 8,
281
299
  },
282
300
  ];
283
- export function buildPulseSetPriceInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
284
- return buildPayload(PULSE_SET_PRICE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
301
+ export function buildPulseWithdrawAutoParticipationInput(input) {
302
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_WITHDRAW_AUTO_PARTICIPATION_INPUT_TYPE, payload: buildPayload(PULSE_WITHDRAW_AUTO_PARTICIPATION_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
285
303
  }
286
- const PULSE_SET_PRICE_OUTPUT_FIELDS = [
304
+ const PULSE_WITHDRAW_AUTO_PARTICIPATION_OUTPUT_FIELDS = [
287
305
  {
288
306
  name: 'returnCode',
289
307
  type: 'uint8',
@@ -291,22 +309,22 @@ const PULSE_SET_PRICE_OUTPUT_FIELDS = [
291
309
  byteLength: 1,
292
310
  },
293
311
  ];
294
- export function decodePulseSetPriceOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
295
- return decodePayload(data, PULSE_SET_PRICE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
312
+ export function decodePulseWithdrawAutoParticipationOutput(data) {
313
+ return decodePayload(data, PULSE_WITHDRAW_AUTO_PARTICIPATION_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
296
314
  }
297
- export const PULSE_SET_SCHEDULE_INPUT_TYPE = 30;
298
- const PULSE_SET_SCHEDULE_INPUT_FIELDS = [
315
+ export const PULSE_SET_AUTO_CONFIG_INPUT_TYPE = 10;
316
+ const PULSE_SET_AUTO_CONFIG_INPUT_FIELDS = [
299
317
  {
300
- name: 'newSchedule',
301
- type: 'uint8',
318
+ name: 'desiredTickets',
319
+ type: 'sint16',
302
320
  offset: 0,
303
- byteLength: 1,
321
+ byteLength: 2,
304
322
  },
305
323
  ];
306
- export function buildPulseSetScheduleInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
307
- return buildPayload(PULSE_SET_SCHEDULE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
324
+ export function buildPulseSetAutoConfigInput(input) {
325
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_SET_AUTO_CONFIG_INPUT_TYPE, payload: buildPayload(PULSE_SET_AUTO_CONFIG_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
308
326
  }
309
- const PULSE_SET_SCHEDULE_OUTPUT_FIELDS = [
327
+ const PULSE_SET_AUTO_CONFIG_OUTPUT_FIELDS = [
310
328
  {
311
329
  name: 'returnCode',
312
330
  type: 'uint8',
@@ -314,22 +332,22 @@ const PULSE_SET_SCHEDULE_OUTPUT_FIELDS = [
314
332
  byteLength: 1,
315
333
  },
316
334
  ];
317
- export function decodePulseSetScheduleOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
318
- return decodePayload(data, PULSE_SET_SCHEDULE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
335
+ export function decodePulseSetAutoConfigOutput(data) {
336
+ return decodePayload(data, PULSE_SET_AUTO_CONFIG_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
319
337
  }
320
- export const PULSE_SET_DRAW_HOUR_INPUT_TYPE = 31;
321
- const PULSE_SET_DRAW_HOUR_INPUT_FIELDS = [
338
+ export const PULSE_SET_AUTO_LIMITS_INPUT_TYPE = 11;
339
+ const PULSE_SET_AUTO_LIMITS_INPUT_FIELDS = [
322
340
  {
323
- name: 'newDrawHour',
324
- type: 'uint8',
341
+ name: 'maxTicketsPerUser',
342
+ type: 'uint16',
325
343
  offset: 0,
326
- byteLength: 1,
344
+ byteLength: 2,
327
345
  },
328
346
  ];
329
- export function buildPulseSetDrawHourInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
330
- return buildPayload(PULSE_SET_DRAW_HOUR_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
347
+ export function buildPulseSetAutoLimitsInput(input) {
348
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_SET_AUTO_LIMITS_INPUT_TYPE, payload: buildPayload(PULSE_SET_AUTO_LIMITS_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
331
349
  }
332
- const PULSE_SET_DRAW_HOUR_OUTPUT_FIELDS = [
350
+ const PULSE_SET_AUTO_LIMITS_OUTPUT_FIELDS = [
333
351
  {
334
352
  name: 'returnCode',
335
353
  type: 'uint8',
@@ -337,40 +355,22 @@ const PULSE_SET_DRAW_HOUR_OUTPUT_FIELDS = [
337
355
  byteLength: 1,
338
356
  },
339
357
  ];
340
- export function decodePulseSetDrawHourOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
341
- return decodePayload(data, PULSE_SET_DRAW_HOUR_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
358
+ export function decodePulseSetAutoLimitsOutput(data) {
359
+ return decodePayload(data, PULSE_SET_AUTO_LIMITS_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
342
360
  }
343
- export const PULSE_SET_FEES_INPUT_TYPE = 32;
344
- const PULSE_SET_FEES_INPUT_FIELDS = [
361
+ export const PULSE_TRANSFER_TOKEN_TO_QX_INPUT_TYPE = 12;
362
+ const PULSE_TRANSFER_TOKEN_TO_QX_INPUT_FIELDS = [
345
363
  {
346
- name: 'devPercent',
347
- type: 'uint8',
364
+ name: 'numberOfShares',
365
+ type: 'sint64',
348
366
  offset: 0,
349
- byteLength: 1,
350
- },
351
- {
352
- name: 'burnPercent',
353
- type: 'uint8',
354
- offset: 1,
355
- byteLength: 1,
356
- },
357
- {
358
- name: 'shareholdersPercent',
359
- type: 'uint8',
360
- offset: 2,
361
- byteLength: 1,
362
- },
363
- {
364
- name: 'rlShareholdersPercent',
365
- type: 'uint8',
366
- offset: 3,
367
- byteLength: 1,
367
+ byteLength: 8,
368
368
  },
369
369
  ];
370
- export function buildPulseSetFeesInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
371
- return buildPayload(PULSE_SET_FEES_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
370
+ export function buildPulseTransferTokenToQxInput(input) {
371
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_TRANSFER_TOKEN_TO_QX_INPUT_TYPE, payload: buildPayload(PULSE_TRANSFER_TOKEN_TO_QX_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
372
372
  }
373
- const PULSE_SET_FEES_OUTPUT_FIELDS = [
373
+ const PULSE_TRANSFER_TOKEN_TO_QX_OUTPUT_FIELDS = [
374
374
  {
375
375
  name: 'returnCode',
376
376
  type: 'uint8',
@@ -378,22 +378,22 @@ const PULSE_SET_FEES_OUTPUT_FIELDS = [
378
378
  byteLength: 1,
379
379
  },
380
380
  ];
381
- export function decodePulseSetFeesOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
382
- return decodePayload(data, PULSE_SET_FEES_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
381
+ export function decodePulseTransferTokenToQxOutput(data) {
382
+ return decodePayload(data, PULSE_TRANSFER_TOKEN_TO_QX_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
383
383
  }
384
- export const PULSE_SET_Q_HEART_HOLD_LIMIT_INPUT_TYPE = 33;
385
- const PULSE_SET_Q_HEART_HOLD_LIMIT_INPUT_FIELDS = [
384
+ export const PULSE_DEPOSIT_MANAGED_Q_HEART_INPUT_TYPE = 13;
385
+ const PULSE_DEPOSIT_MANAGED_Q_HEART_INPUT_FIELDS = [
386
386
  {
387
- name: 'newQHeartHoldLimit',
388
- type: 'uint64',
387
+ name: 'amount',
388
+ type: 'sint64',
389
389
  offset: 0,
390
390
  byteLength: 8,
391
391
  },
392
392
  ];
393
- export function buildPulseSetQHeartHoldLimitInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
394
- return buildPayload(PULSE_SET_Q_HEART_HOLD_LIMIT_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
393
+ export function buildPulseDepositManagedQHeartInput(input) {
394
+ return { contractIndex: PULSE_CONTRACT_INDEX, inputType: PULSE_DEPOSIT_MANAGED_Q_HEART_INPUT_TYPE, payload: buildPayload(PULSE_DEPOSIT_MANAGED_Q_HEART_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
395
395
  }
396
- const PULSE_SET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS = [
396
+ const PULSE_DEPOSIT_MANAGED_Q_HEART_OUTPUT_FIELDS = [
397
397
  {
398
398
  name: 'returnCode',
399
399
  type: 'uint8',
@@ -401,52 +401,38 @@ const PULSE_SET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS = [
401
401
  byteLength: 1,
402
402
  },
403
403
  ];
404
- export function decodePulseSetQHeartHoldLimitOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
405
- return decodePayload(data, PULSE_SET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
404
+ export function decodePulseDepositManagedQHeartOutput(data) {
405
+ return decodePayload(data, PULSE_DEPOSIT_MANAGED_Q_HEART_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
406
406
  }
407
- export const PULSE_VALIDATE_DIGITS_INPUT_TYPE = 1;
408
- export const PULSE_VALIDATE_DIGITS_INPUT_SIZE = 0;
409
- const PULSE_VALIDATE_DIGITS_INPUT_FIELDS = [
410
- {
411
- name: 'digits',
412
- type: 'array',
413
- offset: 0,
414
- byteLength: 0,
415
- arrayLength: 0,
416
- arrayItemType: 'uint8',
417
- arrayItemByteLength: 1,
418
- },
419
- ];
420
- export function buildPulseValidateDigitsInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
421
- return buildPayload(PULSE_VALIDATE_DIGITS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
422
- }
423
- const PULSE_VALIDATE_DIGITS_OUTPUT_FIELDS = [
407
+ export const PULSE_GET_TICKET_PRICE_INPUT_TYPE = 1;
408
+ export const PULSE_GET_TICKET_PRICE_INPUT_SIZE = 0;
409
+ const PULSE_GET_TICKET_PRICE_OUTPUT_FIELDS = [
424
410
  {
425
- name: 'isValid',
426
- type: 'uint8',
411
+ name: 'ticketPrice',
412
+ type: 'uint64',
427
413
  offset: 0,
428
- byteLength: 1,
414
+ byteLength: 8,
429
415
  },
430
416
  ];
431
- export function decodePulseValidateDigitsOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
432
- return decodePayload(data, PULSE_VALIDATE_DIGITS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
417
+ export function decodePulseGetTicketPriceOutput(data) {
418
+ return decodePayload(data, PULSE_GET_TICKET_PRICE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
433
419
  }
434
- export async function pulseValidateDigits(live, input, options) {
420
+ export async function pulseGetTicketPrice(live, options) {
435
421
  return callContractFunction({
436
422
  live,
437
423
  contractIndex: PULSE_CONTRACT_INDEX,
438
- inputType: PULSE_VALIDATE_DIGITS_INPUT_TYPE,
439
- inputSize: PULSE_VALIDATE_DIGITS_INPUT_SIZE,
440
- inputFields: PULSE_VALIDATE_DIGITS_INPUT_FIELDS,
441
- outputFields: PULSE_VALIDATE_DIGITS_OUTPUT_FIELDS,
424
+ inputType: PULSE_GET_TICKET_PRICE_INPUT_TYPE,
425
+ inputSize: PULSE_GET_TICKET_PRICE_INPUT_SIZE,
426
+ inputFields: [],
427
+ outputFields: PULSE_GET_TICKET_PRICE_OUTPUT_FIELDS,
442
428
  structs: STRUCTS,
443
- input: input,
429
+ input: {},
444
430
  ...options,
445
431
  });
446
432
  }
447
- export const PULSE_GET_AUTO_PARTICIPATION_INPUT_TYPE = 9;
448
- export const PULSE_GET_AUTO_PARTICIPATION_INPUT_SIZE = 32;
449
- const PULSE_GET_AUTO_PARTICIPATION_INPUT_FIELDS = [
433
+ export const PULSE_GET_PLAYER_BALANCE_INPUT_TYPE = 2;
434
+ export const PULSE_GET_PLAYER_BALANCE_INPUT_SIZE = 32;
435
+ const PULSE_GET_PLAYER_BALANCE_INPUT_FIELDS = [
450
436
  {
451
437
  name: 'player',
452
438
  type: 'id',
@@ -454,168 +440,120 @@ const PULSE_GET_AUTO_PARTICIPATION_INPUT_FIELDS = [
454
440
  byteLength: 32,
455
441
  },
456
442
  ];
457
- export function buildPulseGetAutoParticipationInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
458
- return buildPayload(PULSE_GET_AUTO_PARTICIPATION_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
443
+ export function buildPulseGetPlayerBalanceInput(input, identityToPublicKey) {
444
+ return buildPayload(PULSE_GET_PLAYER_BALANCE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
459
445
  }
460
- const PULSE_GET_AUTO_PARTICIPATION_OUTPUT_FIELDS = [
446
+ const PULSE_GET_PLAYER_BALANCE_OUTPUT_FIELDS = [
461
447
  {
462
- name: 'deposit',
448
+ name: 'balance',
463
449
  type: 'uint64',
464
450
  offset: 0,
465
451
  byteLength: 8,
466
452
  },
467
- {
468
- name: 'desiredTickets',
469
- type: 'uint16',
470
- offset: 8,
471
- byteLength: 2,
472
- },
473
453
  {
474
454
  name: 'returnCode',
475
455
  type: 'uint8',
476
- offset: 10,
456
+ offset: 8,
477
457
  byteLength: 1,
478
458
  },
479
459
  ];
480
- export function decodePulseGetAutoParticipationOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
481
- return decodePayload(data, PULSE_GET_AUTO_PARTICIPATION_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
460
+ export function decodePulseGetPlayerBalanceOutput(data) {
461
+ return decodePayload(data, PULSE_GET_PLAYER_BALANCE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
482
462
  }
483
- export async function pulseGetAutoParticipation(live, input, options) {
463
+ export async function pulseGetPlayerBalance(live, input, options) {
484
464
  return callContractFunction({
485
465
  live,
486
466
  contractIndex: PULSE_CONTRACT_INDEX,
487
- inputType: PULSE_GET_AUTO_PARTICIPATION_INPUT_TYPE,
488
- inputSize: PULSE_GET_AUTO_PARTICIPATION_INPUT_SIZE,
489
- inputFields: PULSE_GET_AUTO_PARTICIPATION_INPUT_FIELDS,
490
- outputFields: PULSE_GET_AUTO_PARTICIPATION_OUTPUT_FIELDS,
467
+ inputType: PULSE_GET_PLAYER_BALANCE_INPUT_TYPE,
468
+ inputSize: PULSE_GET_PLAYER_BALANCE_INPUT_SIZE,
469
+ inputFields: PULSE_GET_PLAYER_BALANCE_INPUT_FIELDS,
470
+ outputFields: PULSE_GET_PLAYER_BALANCE_OUTPUT_FIELDS,
491
471
  structs: STRUCTS,
492
472
  input: input,
493
473
  ...options,
494
474
  });
495
475
  }
496
- export const PULSE_GET_AUTO_STATS_INPUT_TYPE = 10;
497
- export const PULSE_GET_AUTO_STATS_INPUT_SIZE = 0;
498
- const PULSE_GET_AUTO_STATS_OUTPUT_FIELDS = [
476
+ export const PULSE_GET_ROUND_STATE_INPUT_TYPE = 3;
477
+ export const PULSE_GET_ROUND_STATE_INPUT_SIZE = 0;
478
+ const PULSE_GET_ROUND_STATE_OUTPUT_FIELDS = [
499
479
  {
500
- name: 'participants',
501
- type: 'array',
480
+ name: 'epoch',
481
+ type: 'uint32',
502
482
  offset: 0,
503
- byteLength: 0,
504
- arrayLength: 0,
505
- arrayItemByteLength: 42,
506
- arrayItemStructRef: 'AutoParticipant',
483
+ byteLength: 4,
507
484
  },
508
485
  {
509
- name: 'maxAutoParticipants',
486
+ name: 'lastDrawDateStamp',
487
+ type: 'uint32',
488
+ offset: 4,
489
+ byteLength: 4,
490
+ },
491
+ {
492
+ name: 'ticketCounter',
510
493
  type: 'uint16',
511
- offset: 0,
494
+ offset: 8,
512
495
  byteLength: 2,
513
496
  },
514
497
  {
515
- name: 'maxAutoTicketsPerUser',
498
+ name: 'maxPlayers',
516
499
  type: 'uint16',
517
- offset: 2,
500
+ offset: 10,
518
501
  byteLength: 2,
519
502
  },
520
503
  {
521
- name: 'roundSlotsLeft',
504
+ name: 'slotsLeft',
522
505
  type: 'uint16',
523
- offset: 4,
506
+ offset: 12,
524
507
  byteLength: 2,
525
508
  },
526
509
  {
527
- name: 'returnCode',
510
+ name: 'currentState',
528
511
  type: 'uint8',
529
- offset: 6,
512
+ offset: 14,
530
513
  byteLength: 1,
531
514
  },
532
- ];
533
- export function decodePulseGetAutoStatsOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
534
- return decodePayload(data, PULSE_GET_AUTO_STATS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
535
- }
536
- export async function pulseGetAutoStats(live, options) {
537
- return callContractFunction({
538
- live,
539
- contractIndex: PULSE_CONTRACT_INDEX,
540
- inputType: PULSE_GET_AUTO_STATS_INPUT_TYPE,
541
- inputSize: PULSE_GET_AUTO_STATS_INPUT_SIZE,
542
- inputFields: [],
543
- outputFields: PULSE_GET_AUTO_STATS_OUTPUT_FIELDS,
544
- structs: STRUCTS,
545
- input: {},
546
- ...options,
547
- });
548
- }
549
- export const PULSE_GET_TICKET_PRICE_INPUT_TYPE = 17;
550
- export const PULSE_GET_TICKET_PRICE_INPUT_SIZE = 0;
551
- const PULSE_GET_TICKET_PRICE_OUTPUT_FIELDS = [
552
515
  {
553
- name: 'ticketPrice',
554
- type: 'uint64',
555
- offset: 0,
556
- byteLength: 8,
516
+ name: 'drawHour',
517
+ type: 'uint8',
518
+ offset: 15,
519
+ byteLength: 1,
557
520
  },
558
- ];
559
- export function decodePulseGetTicketPriceOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
560
- return decodePayload(data, PULSE_GET_TICKET_PRICE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
561
- }
562
- export async function pulseGetTicketPrice(live, options) {
563
- return callContractFunction({
564
- live,
565
- contractIndex: PULSE_CONTRACT_INDEX,
566
- inputType: PULSE_GET_TICKET_PRICE_INPUT_TYPE,
567
- inputSize: PULSE_GET_TICKET_PRICE_INPUT_SIZE,
568
- inputFields: [],
569
- outputFields: PULSE_GET_TICKET_PRICE_OUTPUT_FIELDS,
570
- structs: STRUCTS,
571
- input: {},
572
- ...options,
573
- });
574
- }
575
- export const PULSE_GET_PLAYER_BALANCE_INPUT_TYPE = 18;
576
- export const PULSE_GET_PLAYER_BALANCE_INPUT_SIZE = 32;
577
- const PULSE_GET_PLAYER_BALANCE_INPUT_FIELDS = [
578
521
  {
579
- name: 'player',
580
- type: 'id',
581
- offset: 0,
582
- byteLength: 32,
522
+ name: 'schedule',
523
+ type: 'uint8',
524
+ offset: 16,
525
+ byteLength: 1,
583
526
  },
584
- ];
585
- export function buildPulseGetPlayerBalanceInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
586
- return buildPayload(PULSE_GET_PLAYER_BALANCE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
587
- }
588
- const PULSE_GET_PLAYER_BALANCE_OUTPUT_FIELDS = [
589
527
  {
590
- name: 'balance',
591
- type: 'uint64',
592
- offset: 0,
593
- byteLength: 8,
528
+ name: 'sellingOpen',
529
+ type: 'uint8',
530
+ offset: 17,
531
+ byteLength: 1,
594
532
  },
595
533
  {
596
534
  name: 'returnCode',
597
535
  type: 'uint8',
598
- offset: 8,
536
+ offset: 18,
599
537
  byteLength: 1,
600
538
  },
601
539
  ];
602
- export function decodePulseGetPlayerBalanceOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
603
- return decodePayload(data, PULSE_GET_PLAYER_BALANCE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
540
+ export function decodePulseGetRoundStateOutput(data) {
541
+ return decodePayload(data, PULSE_GET_ROUND_STATE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
604
542
  }
605
- export async function pulseGetPlayerBalance(live, input, options) {
543
+ export async function pulseGetRoundState(live, options) {
606
544
  return callContractFunction({
607
545
  live,
608
546
  contractIndex: PULSE_CONTRACT_INDEX,
609
- inputType: PULSE_GET_PLAYER_BALANCE_INPUT_TYPE,
610
- inputSize: PULSE_GET_PLAYER_BALANCE_INPUT_SIZE,
611
- inputFields: PULSE_GET_PLAYER_BALANCE_INPUT_FIELDS,
612
- outputFields: PULSE_GET_PLAYER_BALANCE_OUTPUT_FIELDS,
547
+ inputType: PULSE_GET_ROUND_STATE_INPUT_TYPE,
548
+ inputSize: PULSE_GET_ROUND_STATE_INPUT_SIZE,
549
+ inputFields: [],
550
+ outputFields: PULSE_GET_ROUND_STATE_OUTPUT_FIELDS,
613
551
  structs: STRUCTS,
614
- input: input,
552
+ input: {},
615
553
  ...options,
616
554
  });
617
555
  }
618
- export const PULSE_GET_FEES_INPUT_TYPE = 19;
556
+ export const PULSE_GET_FEES_INPUT_TYPE = 4;
619
557
  export const PULSE_GET_FEES_INPUT_SIZE = 0;
620
558
  const PULSE_GET_FEES_OUTPUT_FIELDS = [
621
559
  {
@@ -649,8 +587,8 @@ const PULSE_GET_FEES_OUTPUT_FIELDS = [
649
587
  byteLength: 1,
650
588
  },
651
589
  ];
652
- export function decodePulseGetFeesOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
653
- return decodePayload(data, PULSE_GET_FEES_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
590
+ export function decodePulseGetFeesOutput(data) {
591
+ return decodePayload(data, PULSE_GET_FEES_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
654
592
  }
655
593
  export async function pulseGetFees(live, options) {
656
594
  return callContractFunction({
@@ -665,7 +603,7 @@ export async function pulseGetFees(live, options) {
665
603
  ...options,
666
604
  });
667
605
  }
668
- export const PULSE_GET_Q_HEART_HOLD_LIMIT_INPUT_TYPE = 20;
606
+ export const PULSE_GET_Q_HEART_HOLD_LIMIT_INPUT_TYPE = 5;
669
607
  export const PULSE_GET_Q_HEART_HOLD_LIMIT_INPUT_SIZE = 0;
670
608
  const PULSE_GET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS = [
671
609
  {
@@ -675,8 +613,8 @@ const PULSE_GET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS = [
675
613
  byteLength: 8,
676
614
  },
677
615
  ];
678
- export function decodePulseGetQHeartHoldLimitOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
679
- return decodePayload(data, PULSE_GET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
616
+ export function decodePulseGetQHeartHoldLimitOutput(data) {
617
+ return decodePayload(data, PULSE_GET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
680
618
  }
681
619
  export async function pulseGetQHeartHoldLimit(live, options) {
682
620
  return callContractFunction({
@@ -691,7 +629,7 @@ export async function pulseGetQHeartHoldLimit(live, options) {
691
629
  ...options,
692
630
  });
693
631
  }
694
- export const PULSE_GET_Q_HEART_WALLET_INPUT_TYPE = 21;
632
+ export const PULSE_GET_Q_HEART_WALLET_INPUT_TYPE = 6;
695
633
  export const PULSE_GET_Q_HEART_WALLET_INPUT_SIZE = 0;
696
634
  const PULSE_GET_Q_HEART_WALLET_OUTPUT_FIELDS = [
697
635
  {
@@ -701,7 +639,7 @@ const PULSE_GET_Q_HEART_WALLET_OUTPUT_FIELDS = [
701
639
  byteLength: 32,
702
640
  },
703
641
  ];
704
- export function decodePulseGetQHeartWalletOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
642
+ export function decodePulseGetQHeartWalletOutput(data, publicKeyToIdentity) {
705
643
  return decodePayload(data, PULSE_GET_Q_HEART_WALLET_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
706
644
  }
707
645
  export async function pulseGetQHeartWallet(live, options) {
@@ -717,7 +655,7 @@ export async function pulseGetQHeartWallet(live, options) {
717
655
  ...options,
718
656
  });
719
657
  }
720
- export const PULSE_GET_WINNING_DIGITS_INPUT_TYPE = 22;
658
+ export const PULSE_GET_WINNING_DIGITS_INPUT_TYPE = 7;
721
659
  export const PULSE_GET_WINNING_DIGITS_INPUT_SIZE = 0;
722
660
  const PULSE_GET_WINNING_DIGITS_OUTPUT_FIELDS = [
723
661
  {
@@ -730,8 +668,8 @@ const PULSE_GET_WINNING_DIGITS_OUTPUT_FIELDS = [
730
668
  arrayItemByteLength: 1,
731
669
  },
732
670
  ];
733
- export function decodePulseGetWinningDigitsOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
734
- return decodePayload(data, PULSE_GET_WINNING_DIGITS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
671
+ export function decodePulseGetWinningDigitsOutput(data) {
672
+ return decodePayload(data, PULSE_GET_WINNING_DIGITS_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
735
673
  }
736
674
  export async function pulseGetWinningDigits(live, options) {
737
675
  return callContractFunction({
@@ -746,7 +684,7 @@ export async function pulseGetWinningDigits(live, options) {
746
684
  ...options,
747
685
  });
748
686
  }
749
- export const PULSE_GET_BALANCE_INPUT_TYPE = 23;
687
+ export const PULSE_GET_BALANCE_INPUT_TYPE = 8;
750
688
  export const PULSE_GET_BALANCE_INPUT_SIZE = 0;
751
689
  const PULSE_GET_BALANCE_OUTPUT_FIELDS = [
752
690
  {
@@ -756,8 +694,8 @@ const PULSE_GET_BALANCE_OUTPUT_FIELDS = [
756
694
  byteLength: 8,
757
695
  },
758
696
  ];
759
- export function decodePulseGetBalanceOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
760
- return decodePayload(data, PULSE_GET_BALANCE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
697
+ export function decodePulseGetBalanceOutput(data) {
698
+ return decodePayload(data, PULSE_GET_BALANCE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
761
699
  }
762
700
  export async function pulseGetBalance(live, options) {
763
701
  return callContractFunction({
@@ -772,207 +710,269 @@ export async function pulseGetBalance(live, options) {
772
710
  ...options,
773
711
  });
774
712
  }
775
- export const PULSE_GET_PLAYERS_INPUT_TYPE = 24;
776
- export const PULSE_GET_PLAYERS_INPUT_SIZE = 0;
777
- const PULSE_GET_PLAYERS_OUTPUT_FIELDS = [
713
+ export const PULSE_GET_WINNERS_INPUT_TYPE = 9;
714
+ export const PULSE_GET_WINNERS_INPUT_SIZE = 0;
715
+ const PULSE_GET_WINNERS_OUTPUT_FIELDS = [
778
716
  {
779
- name: 'players',
717
+ name: 'winners',
780
718
  type: 'array',
781
719
  offset: 0,
782
- byteLength: 32768,
720
+ byteLength: 43008,
783
721
  arrayLength: 1024,
784
- arrayItemByteLength: 32,
785
- arrayItemStructRef: 'Ticket',
722
+ arrayItemByteLength: 42,
723
+ arrayItemStructRef: 'WinnerInfo',
724
+ },
725
+ {
726
+ name: 'winnersCounter',
727
+ type: 'uint64',
728
+ offset: 43008,
729
+ byteLength: 8,
786
730
  },
787
731
  {
788
732
  name: 'returnCode',
789
733
  type: 'uint8',
790
- offset: 32768,
734
+ offset: 43016,
791
735
  byteLength: 1,
792
736
  },
793
737
  ];
794
- export function decodePulseGetPlayersOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
795
- return decodePayload(data, PULSE_GET_PLAYERS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
738
+ export function decodePulseGetWinnersOutput(data) {
739
+ return decodePayload(data, PULSE_GET_WINNERS_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
796
740
  }
797
- export async function pulseGetPlayers(live, options) {
741
+ export async function pulseGetWinners(live, options) {
798
742
  return callContractFunction({
799
743
  live,
800
744
  contractIndex: PULSE_CONTRACT_INDEX,
801
- inputType: PULSE_GET_PLAYERS_INPUT_TYPE,
802
- inputSize: PULSE_GET_PLAYERS_INPUT_SIZE,
745
+ inputType: PULSE_GET_WINNERS_INPUT_TYPE,
746
+ inputSize: PULSE_GET_WINNERS_INPUT_SIZE,
803
747
  inputFields: [],
804
- outputFields: PULSE_GET_PLAYERS_OUTPUT_FIELDS,
748
+ outputFields: PULSE_GET_WINNERS_OUTPUT_FIELDS,
805
749
  structs: STRUCTS,
806
750
  input: {},
807
751
  ...options,
808
752
  });
809
753
  }
810
- export const PULSE_GET_PRIZE_TABLE_INPUT_TYPE = 25;
811
- export const PULSE_GET_PRIZE_TABLE_INPUT_SIZE = 0;
812
- const PULSE_GET_PRIZE_TABLE_OUTPUT_FIELDS = [
813
- {
814
- name: 'leftAlignedRewards',
815
- type: 'array',
816
- offset: 0,
817
- byteLength: 0,
818
- arrayLength: 0,
819
- arrayItemType: 'uint64',
820
- arrayItemByteLength: 8,
821
- },
754
+ export const PULSE_GET_AUTO_PARTICIPATION_INPUT_TYPE = 10;
755
+ export const PULSE_GET_AUTO_PARTICIPATION_INPUT_SIZE = 32;
756
+ const PULSE_GET_AUTO_PARTICIPATION_INPUT_FIELDS = [
822
757
  {
823
- name: 'anyPositionRewards',
824
- type: 'array',
758
+ name: 'player',
759
+ type: 'id',
825
760
  offset: 0,
826
- byteLength: 0,
827
- arrayLength: 0,
828
- arrayItemType: 'uint64',
829
- arrayItemByteLength: 8,
761
+ byteLength: 32,
830
762
  },
763
+ ];
764
+ export function buildPulseGetAutoParticipationInput(input, identityToPublicKey) {
765
+ return buildPayload(PULSE_GET_AUTO_PARTICIPATION_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
766
+ }
767
+ const PULSE_GET_AUTO_PARTICIPATION_OUTPUT_FIELDS = [
831
768
  {
832
- name: 'ticketPrice',
769
+ name: 'deposit',
833
770
  type: 'uint64',
834
771
  offset: 0,
835
772
  byteLength: 8,
836
773
  },
774
+ {
775
+ name: 'desiredTickets',
776
+ type: 'uint16',
777
+ offset: 8,
778
+ byteLength: 2,
779
+ },
837
780
  {
838
781
  name: 'returnCode',
839
782
  type: 'uint8',
840
- offset: 8,
783
+ offset: 10,
841
784
  byteLength: 1,
842
785
  },
843
786
  ];
844
- export function decodePulseGetPrizeTableOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
845
- return decodePayload(data, PULSE_GET_PRIZE_TABLE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
787
+ export function decodePulseGetAutoParticipationOutput(data) {
788
+ return decodePayload(data, PULSE_GET_AUTO_PARTICIPATION_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
846
789
  }
847
- export async function pulseGetPrizeTable(live, options) {
790
+ export async function pulseGetAutoParticipation(live, input, options) {
848
791
  return callContractFunction({
849
792
  live,
850
793
  contractIndex: PULSE_CONTRACT_INDEX,
851
- inputType: PULSE_GET_PRIZE_TABLE_INPUT_TYPE,
852
- inputSize: PULSE_GET_PRIZE_TABLE_INPUT_SIZE,
853
- inputFields: [],
854
- outputFields: PULSE_GET_PRIZE_TABLE_OUTPUT_FIELDS,
794
+ inputType: PULSE_GET_AUTO_PARTICIPATION_INPUT_TYPE,
795
+ inputSize: PULSE_GET_AUTO_PARTICIPATION_INPUT_SIZE,
796
+ inputFields: PULSE_GET_AUTO_PARTICIPATION_INPUT_FIELDS,
797
+ outputFields: PULSE_GET_AUTO_PARTICIPATION_OUTPUT_FIELDS,
855
798
  structs: STRUCTS,
856
- input: {},
799
+ input: input,
857
800
  ...options,
858
801
  });
859
802
  }
860
- export const PULSE_GET_ROUND_STATE_INPUT_TYPE = 26;
861
- export const PULSE_GET_ROUND_STATE_INPUT_SIZE = 0;
862
- const PULSE_GET_ROUND_STATE_OUTPUT_FIELDS = [
803
+ export const PULSE_GET_AUTO_STATS_INPUT_TYPE = 11;
804
+ export const PULSE_GET_AUTO_STATS_INPUT_SIZE = 0;
805
+ const PULSE_GET_AUTO_STATS_OUTPUT_FIELDS = [
863
806
  {
864
- name: 'epoch',
865
- type: 'uint32',
807
+ name: 'participants',
808
+ type: 'array',
866
809
  offset: 0,
867
- byteLength: 4,
868
- },
869
- {
870
- name: 'lastDrawDateStamp',
871
- type: 'uint32',
872
- offset: 4,
873
- byteLength: 4,
810
+ byteLength: 0,
811
+ arrayLength: 0,
812
+ arrayItemByteLength: 42,
813
+ arrayItemStructRef: 'AutoParticipant',
874
814
  },
875
815
  {
876
- name: 'ticketCounter',
816
+ name: 'maxAutoParticipants',
877
817
  type: 'uint16',
878
- offset: 8,
818
+ offset: 0,
879
819
  byteLength: 2,
880
820
  },
881
821
  {
882
- name: 'maxPlayers',
822
+ name: 'maxAutoTicketsPerUser',
883
823
  type: 'uint16',
884
- offset: 10,
824
+ offset: 2,
885
825
  byteLength: 2,
886
826
  },
887
827
  {
888
- name: 'slotsLeft',
828
+ name: 'roundSlotsLeft',
889
829
  type: 'uint16',
890
- offset: 12,
830
+ offset: 4,
891
831
  byteLength: 2,
892
832
  },
893
833
  {
894
- name: 'currentState',
834
+ name: 'returnCode',
895
835
  type: 'uint8',
896
- offset: 14,
836
+ offset: 6,
897
837
  byteLength: 1,
898
838
  },
839
+ ];
840
+ export function decodePulseGetAutoStatsOutput(data) {
841
+ return decodePayload(data, PULSE_GET_AUTO_STATS_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
842
+ }
843
+ export async function pulseGetAutoStats(live, options) {
844
+ return callContractFunction({
845
+ live,
846
+ contractIndex: PULSE_CONTRACT_INDEX,
847
+ inputType: PULSE_GET_AUTO_STATS_INPUT_TYPE,
848
+ inputSize: PULSE_GET_AUTO_STATS_INPUT_SIZE,
849
+ inputFields: [],
850
+ outputFields: PULSE_GET_AUTO_STATS_OUTPUT_FIELDS,
851
+ structs: STRUCTS,
852
+ input: {},
853
+ ...options,
854
+ });
855
+ }
856
+ export const PULSE_VALIDATE_DIGITS_INPUT_TYPE = 12;
857
+ export const PULSE_VALIDATE_DIGITS_INPUT_SIZE = 0;
858
+ const PULSE_VALIDATE_DIGITS_INPUT_FIELDS = [
899
859
  {
900
- name: 'drawHour',
901
- type: 'uint8',
902
- offset: 15,
903
- byteLength: 1,
860
+ name: 'digits',
861
+ type: 'array',
862
+ offset: 0,
863
+ byteLength: 0,
864
+ arrayLength: 0,
865
+ arrayItemType: 'uint8',
866
+ arrayItemByteLength: 1,
904
867
  },
868
+ ];
869
+ export function buildPulseValidateDigitsInput(input) {
870
+ return buildPayload(PULSE_VALIDATE_DIGITS_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
871
+ }
872
+ const PULSE_VALIDATE_DIGITS_OUTPUT_FIELDS = [
905
873
  {
906
- name: 'schedule',
874
+ name: 'isValid',
907
875
  type: 'uint8',
908
- offset: 16,
876
+ offset: 0,
909
877
  byteLength: 1,
910
878
  },
879
+ ];
880
+ export function decodePulseValidateDigitsOutput(data) {
881
+ return decodePayload(data, PULSE_VALIDATE_DIGITS_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
882
+ }
883
+ export async function pulseValidateDigits(live, input, options) {
884
+ return callContractFunction({
885
+ live,
886
+ contractIndex: PULSE_CONTRACT_INDEX,
887
+ inputType: PULSE_VALIDATE_DIGITS_INPUT_TYPE,
888
+ inputSize: PULSE_VALIDATE_DIGITS_INPUT_SIZE,
889
+ inputFields: PULSE_VALIDATE_DIGITS_INPUT_FIELDS,
890
+ outputFields: PULSE_VALIDATE_DIGITS_OUTPUT_FIELDS,
891
+ structs: STRUCTS,
892
+ input: input,
893
+ ...options,
894
+ });
895
+ }
896
+ export const PULSE_GET_PLAYERS_INPUT_TYPE = 13;
897
+ export const PULSE_GET_PLAYERS_INPUT_SIZE = 0;
898
+ const PULSE_GET_PLAYERS_OUTPUT_FIELDS = [
911
899
  {
912
- name: 'sellingOpen',
913
- type: 'uint8',
914
- offset: 17,
915
- byteLength: 1,
900
+ name: 'players',
901
+ type: 'array',
902
+ offset: 0,
903
+ byteLength: 32768,
904
+ arrayLength: 1024,
905
+ arrayItemByteLength: 32,
906
+ arrayItemStructRef: 'Ticket',
916
907
  },
917
908
  {
918
909
  name: 'returnCode',
919
910
  type: 'uint8',
920
- offset: 18,
911
+ offset: 32768,
921
912
  byteLength: 1,
922
913
  },
923
914
  ];
924
- export function decodePulseGetRoundStateOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
925
- return decodePayload(data, PULSE_GET_ROUND_STATE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
915
+ export function decodePulseGetPlayersOutput(data) {
916
+ return decodePayload(data, PULSE_GET_PLAYERS_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
926
917
  }
927
- export async function pulseGetRoundState(live, options) {
918
+ export async function pulseGetPlayers(live, options) {
928
919
  return callContractFunction({
929
920
  live,
930
921
  contractIndex: PULSE_CONTRACT_INDEX,
931
- inputType: PULSE_GET_ROUND_STATE_INPUT_TYPE,
932
- inputSize: PULSE_GET_ROUND_STATE_INPUT_SIZE,
922
+ inputType: PULSE_GET_PLAYERS_INPUT_TYPE,
923
+ inputSize: PULSE_GET_PLAYERS_INPUT_SIZE,
933
924
  inputFields: [],
934
- outputFields: PULSE_GET_ROUND_STATE_OUTPUT_FIELDS,
925
+ outputFields: PULSE_GET_PLAYERS_OUTPUT_FIELDS,
935
926
  structs: STRUCTS,
936
927
  input: {},
937
928
  ...options,
938
929
  });
939
930
  }
940
- export const PULSE_GET_WINNERS_INPUT_TYPE = 28;
941
- export const PULSE_GET_WINNERS_INPUT_SIZE = 0;
942
- const PULSE_GET_WINNERS_OUTPUT_FIELDS = [
931
+ export const PULSE_GET_PRIZE_TABLE_INPUT_TYPE = 14;
932
+ export const PULSE_GET_PRIZE_TABLE_INPUT_SIZE = 0;
933
+ const PULSE_GET_PRIZE_TABLE_OUTPUT_FIELDS = [
943
934
  {
944
- name: 'winners',
935
+ name: 'leftAlignedRewards',
945
936
  type: 'array',
946
937
  offset: 0,
947
- byteLength: 43008,
948
- arrayLength: 1024,
949
- arrayItemByteLength: 42,
950
- arrayItemStructRef: 'WinnerInfo',
938
+ byteLength: 0,
939
+ arrayLength: 0,
940
+ arrayItemType: 'uint64',
941
+ arrayItemByteLength: 8,
951
942
  },
952
943
  {
953
- name: 'winnersCounter',
944
+ name: 'anyPositionRewards',
945
+ type: 'array',
946
+ offset: 0,
947
+ byteLength: 0,
948
+ arrayLength: 0,
949
+ arrayItemType: 'uint64',
950
+ arrayItemByteLength: 8,
951
+ },
952
+ {
953
+ name: 'ticketPrice',
954
954
  type: 'uint64',
955
- offset: 43008,
955
+ offset: 0,
956
956
  byteLength: 8,
957
957
  },
958
958
  {
959
959
  name: 'returnCode',
960
960
  type: 'uint8',
961
- offset: 43016,
961
+ offset: 8,
962
962
  byteLength: 1,
963
963
  },
964
964
  ];
965
- export function decodePulseGetWinnersOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
966
- return decodePayload(data, PULSE_GET_WINNERS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
965
+ export function decodePulseGetPrizeTableOutput(data) {
966
+ return decodePayload(data, PULSE_GET_PRIZE_TABLE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
967
967
  }
968
- export async function pulseGetWinners(live, options) {
968
+ export async function pulseGetPrizeTable(live, options) {
969
969
  return callContractFunction({
970
970
  live,
971
971
  contractIndex: PULSE_CONTRACT_INDEX,
972
- inputType: PULSE_GET_WINNERS_INPUT_TYPE,
973
- inputSize: PULSE_GET_WINNERS_INPUT_SIZE,
972
+ inputType: PULSE_GET_PRIZE_TABLE_INPUT_TYPE,
973
+ inputSize: PULSE_GET_PRIZE_TABLE_INPUT_SIZE,
974
974
  inputFields: [],
975
- outputFields: PULSE_GET_WINNERS_OUTPUT_FIELDS,
975
+ outputFields: PULSE_GET_PRIZE_TABLE_OUTPUT_FIELDS,
976
976
  structs: STRUCTS,
977
977
  input: {},
978
978
  ...options,
@@ -980,22 +980,32 @@ export async function pulseGetWinners(live, options) {
980
980
  }
981
981
  export const pulse = {
982
982
  contractIndex: PULSE_CONTRACT_INDEX,
983
- ValidateDigits: pulseValidateDigits,
984
- GetAutoParticipation: pulseGetAutoParticipation,
985
- GetAutoStats: pulseGetAutoStats,
986
983
  GetTicketPrice: pulseGetTicketPrice,
987
984
  GetPlayerBalance: pulseGetPlayerBalance,
985
+ GetRoundState: pulseGetRoundState,
988
986
  GetFees: pulseGetFees,
989
987
  GetQHeartHoldLimit: pulseGetQHeartHoldLimit,
990
988
  GetQHeartWallet: pulseGetQHeartWallet,
991
989
  GetWinningDigits: pulseGetWinningDigits,
992
990
  GetBalance: pulseGetBalance,
991
+ GetWinners: pulseGetWinners,
992
+ GetAutoParticipation: pulseGetAutoParticipation,
993
+ GetAutoStats: pulseGetAutoStats,
994
+ ValidateDigits: pulseValidateDigits,
993
995
  GetPlayers: pulseGetPlayers,
994
996
  GetPrizeTable: pulseGetPrizeTable,
995
- GetRoundState: pulseGetRoundState,
996
- GetWinners: pulseGetWinners,
997
997
  buildBuyTicketInput: buildPulseBuyTicketInput,
998
998
  decodeBuyTicketOutput: decodePulseBuyTicketOutput,
999
+ buildSetPriceInput: buildPulseSetPriceInput,
1000
+ decodeSetPriceOutput: decodePulseSetPriceOutput,
1001
+ buildSetScheduleInput: buildPulseSetScheduleInput,
1002
+ decodeSetScheduleOutput: decodePulseSetScheduleOutput,
1003
+ buildSetDrawHourInput: buildPulseSetDrawHourInput,
1004
+ decodeSetDrawHourOutput: decodePulseSetDrawHourOutput,
1005
+ buildSetFeesInput: buildPulseSetFeesInput,
1006
+ decodeSetFeesOutput: decodePulseSetFeesOutput,
1007
+ buildSetQHeartHoldLimitInput: buildPulseSetQHeartHoldLimitInput,
1008
+ decodeSetQHeartHoldLimitOutput: decodePulseSetQHeartHoldLimitOutput,
999
1009
  buildBuyRandomTicketsInput: buildPulseBuyRandomTicketsInput,
1000
1010
  decodeBuyRandomTicketsOutput: decodePulseBuyRandomTicketsOutput,
1001
1011
  buildDepositAutoParticipationInput: buildPulseDepositAutoParticipationInput,
@@ -1006,19 +1016,9 @@ export const pulse = {
1006
1016
  decodeSetAutoConfigOutput: decodePulseSetAutoConfigOutput,
1007
1017
  buildSetAutoLimitsInput: buildPulseSetAutoLimitsInput,
1008
1018
  decodeSetAutoLimitsOutput: decodePulseSetAutoLimitsOutput,
1009
- buildDepositManagedQHeartInput: buildPulseDepositManagedQHeartInput,
1010
- decodeDepositManagedQHeartOutput: decodePulseDepositManagedQHeartOutput,
1011
1019
  buildTransferTokenToQxInput: buildPulseTransferTokenToQxInput,
1012
1020
  decodeTransferTokenToQxOutput: decodePulseTransferTokenToQxOutput,
1013
- buildSetPriceInput: buildPulseSetPriceInput,
1014
- decodeSetPriceOutput: decodePulseSetPriceOutput,
1015
- buildSetScheduleInput: buildPulseSetScheduleInput,
1016
- decodeSetScheduleOutput: decodePulseSetScheduleOutput,
1017
- buildSetDrawHourInput: buildPulseSetDrawHourInput,
1018
- decodeSetDrawHourOutput: decodePulseSetDrawHourOutput,
1019
- buildSetFeesInput: buildPulseSetFeesInput,
1020
- decodeSetFeesOutput: decodePulseSetFeesOutput,
1021
- buildSetQHeartHoldLimitInput: buildPulseSetQHeartHoldLimitInput,
1022
- decodeSetQHeartHoldLimitOutput: decodePulseSetQHeartHoldLimitOutput,
1021
+ buildDepositManagedQHeartInput: buildPulseDepositManagedQHeartInput,
1022
+ decodeDepositManagedQHeartOutput: decodePulseDepositManagedQHeartOutput,
1023
1023
  };
1024
1024
  //# sourceMappingURL=pulse.js.map