@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.
- package/dist/__generated__/computorcontrolledfund.d.ts +30 -30
- package/dist/__generated__/computorcontrolledfund.d.ts.map +1 -1
- package/dist/__generated__/computorcontrolledfund.js +57 -57
- package/dist/__generated__/computorcontrolledfund.js.map +1 -1
- package/dist/__generated__/escrow.d.ts +13 -13
- package/dist/__generated__/escrow.d.ts.map +1 -1
- package/dist/__generated__/escrow.js +20 -20
- package/dist/__generated__/escrow.js.map +1 -1
- package/dist/__generated__/generalquorumproposal.d.ts +21 -21
- package/dist/__generated__/generalquorumproposal.d.ts.map +1 -1
- package/dist/__generated__/generalquorumproposal.js +31 -31
- package/dist/__generated__/generalquorumproposal.js.map +1 -1
- package/dist/__generated__/msvault.d.ts +104 -104
- package/dist/__generated__/msvault.d.ts.map +1 -1
- package/dist/__generated__/msvault.js +220 -220
- package/dist/__generated__/msvault.js.map +1 -1
- package/dist/__generated__/nostromo.d.ts +43 -43
- package/dist/__generated__/nostromo.d.ts.map +1 -1
- package/dist/__generated__/nostromo.js +68 -68
- package/dist/__generated__/nostromo.js.map +1 -1
- package/dist/__generated__/pulse.d.ts +171 -171
- package/dist/__generated__/pulse.d.ts.map +1 -1
- package/dist/__generated__/pulse.js +409 -409
- package/dist/__generated__/pulse.js.map +1 -1
- package/dist/__generated__/qbay.d.ts +61 -61
- package/dist/__generated__/qbay.d.ts.map +1 -1
- package/dist/__generated__/qbay.js +103 -103
- package/dist/__generated__/qbay.js.map +1 -1
- package/dist/__generated__/qbond.d.ts +44 -44
- package/dist/__generated__/qbond.d.ts.map +1 -1
- package/dist/__generated__/qbond.js +67 -67
- package/dist/__generated__/qbond.js.map +1 -1
- package/dist/__generated__/qdraw.d.ts +4 -4
- package/dist/__generated__/qdraw.d.ts.map +1 -1
- package/dist/__generated__/qdraw.js +4 -4
- package/dist/__generated__/qdraw.js.map +1 -1
- package/dist/__generated__/qduel.d.ts +49 -49
- package/dist/__generated__/qduel.d.ts.map +1 -1
- package/dist/__generated__/qduel.js +106 -106
- package/dist/__generated__/qduel.js.map +1 -1
- package/dist/__generated__/qearn.d.ts +24 -24
- package/dist/__generated__/qearn.d.ts.map +1 -1
- package/dist/__generated__/qearn.js +38 -38
- package/dist/__generated__/qearn.js.map +1 -1
- package/dist/__generated__/qip.d.ts +10 -10
- package/dist/__generated__/qip.d.ts.map +1 -1
- package/dist/__generated__/qip.js +16 -16
- package/dist/__generated__/qip.js.map +1 -1
- package/dist/__generated__/qraffle.d.ts +51 -51
- package/dist/__generated__/qraffle.d.ts.map +1 -1
- package/dist/__generated__/qraffle.js +108 -108
- package/dist/__generated__/qraffle.js.map +1 -1
- package/dist/__generated__/qreservepool.d.ts +14 -14
- package/dist/__generated__/qreservepool.d.ts.map +1 -1
- package/dist/__generated__/qreservepool.js +22 -22
- package/dist/__generated__/qreservepool.js.map +1 -1
- package/dist/__generated__/qrwa.d.ts +71 -71
- package/dist/__generated__/qrwa.d.ts.map +1 -1
- package/dist/__generated__/qrwa.js +174 -174
- package/dist/__generated__/qrwa.js.map +1 -1
- package/dist/__generated__/qswap.d.ts +79 -79
- package/dist/__generated__/qswap.d.ts.map +1 -1
- package/dist/__generated__/qswap.js +158 -158
- package/dist/__generated__/qswap.js.map +1 -1
- package/dist/__generated__/qthirtyfour.d.ts +78 -78
- package/dist/__generated__/qthirtyfour.d.ts.map +1 -1
- package/dist/__generated__/qthirtyfour.js +161 -161
- package/dist/__generated__/qthirtyfour.js.map +1 -1
- package/dist/__generated__/quottery.d.ts +124 -124
- package/dist/__generated__/quottery.d.ts.map +1 -1
- package/dist/__generated__/quottery.js +266 -266
- package/dist/__generated__/quottery.js.map +1 -1
- package/dist/__generated__/qusino.d.ts +44 -44
- package/dist/__generated__/qusino.d.ts.map +1 -1
- package/dist/__generated__/qusino.js +88 -88
- package/dist/__generated__/qusino.js.map +1 -1
- package/dist/__generated__/qutil.d.ts +108 -108
- package/dist/__generated__/qutil.d.ts.map +1 -1
- package/dist/__generated__/qutil.js +231 -231
- package/dist/__generated__/qutil.js.map +1 -1
- package/dist/__generated__/qvault.d.ts +90 -90
- package/dist/__generated__/qvault.d.ts.map +1 -1
- package/dist/__generated__/qvault.js +146 -146
- package/dist/__generated__/qvault.js.map +1 -1
- package/dist/__generated__/qx.d.ts +36 -36
- package/dist/__generated__/qx.d.ts.map +1 -1
- package/dist/__generated__/qx.js +54 -54
- package/dist/__generated__/qx.js.map +1 -1
- package/dist/__generated__/random.d.ts +2 -1
- package/dist/__generated__/random.d.ts.map +1 -1
- package/dist/__generated__/random.js +2 -2
- package/dist/__generated__/random.js.map +1 -1
- package/dist/__generated__/randomlottery.d.ts +28 -28
- package/dist/__generated__/randomlottery.d.ts.map +1 -1
- package/dist/__generated__/randomlottery.js +41 -41
- package/dist/__generated__/randomlottery.js.map +1 -1
- package/dist/__generated__/vottunbridge.d.ts +77 -77
- package/dist/__generated__/vottunbridge.d.ts.map +1 -1
- package/dist/__generated__/vottunbridge.js +181 -181
- package/dist/__generated__/vottunbridge.js.map +1 -1
- package/dist/call-contract.d.ts +9 -3
- package/dist/call-contract.d.ts.map +1 -1
- package/dist/call-contract.js +21 -22
- package/dist/call-contract.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- 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 =
|
|
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
|
|
88
|
-
return buildPayload(PULSE_BUY_TICKET_INPUT_FIELDS, STRUCTS, input,
|
|
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
|
|
99
|
-
return decodePayload(data, PULSE_BUY_TICKET_OUTPUT_FIELDS, STRUCTS,
|
|
98
|
+
export function decodePulseBuyTicketOutput(data) {
|
|
99
|
+
return decodePayload(data, PULSE_BUY_TICKET_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
100
100
|
}
|
|
101
|
-
export const
|
|
102
|
-
const
|
|
101
|
+
export const PULSE_SET_PRICE_INPUT_TYPE = 2;
|
|
102
|
+
const PULSE_SET_PRICE_INPUT_FIELDS = [
|
|
103
103
|
{
|
|
104
|
-
name: '
|
|
105
|
-
type: '
|
|
104
|
+
name: 'newPrice',
|
|
105
|
+
type: 'uint64',
|
|
106
106
|
offset: 0,
|
|
107
|
-
byteLength:
|
|
107
|
+
byteLength: 8,
|
|
108
108
|
},
|
|
109
109
|
];
|
|
110
|
-
export function
|
|
111
|
-
return buildPayload(
|
|
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
|
|
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
|
|
122
|
-
return decodePayload(data,
|
|
121
|
+
export function decodePulseSetPriceOutput(data) {
|
|
122
|
+
return decodePayload(data, PULSE_SET_PRICE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
123
123
|
}
|
|
124
|
-
export const
|
|
125
|
-
const
|
|
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: '
|
|
127
|
+
name: 'newSchedule',
|
|
140
128
|
type: 'uint8',
|
|
141
|
-
offset:
|
|
129
|
+
offset: 0,
|
|
142
130
|
byteLength: 1,
|
|
143
131
|
},
|
|
144
132
|
];
|
|
145
|
-
export function
|
|
146
|
-
return buildPayload(
|
|
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
|
|
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
|
|
157
|
-
return decodePayload(data,
|
|
144
|
+
export function decodePulseSetScheduleOutput(data) {
|
|
145
|
+
return decodePayload(data, PULSE_SET_SCHEDULE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
158
146
|
}
|
|
159
|
-
export const
|
|
160
|
-
const
|
|
147
|
+
export const PULSE_SET_DRAW_HOUR_INPUT_TYPE = 4;
|
|
148
|
+
const PULSE_SET_DRAW_HOUR_INPUT_FIELDS = [
|
|
161
149
|
{
|
|
162
|
-
name: '
|
|
163
|
-
type: '
|
|
150
|
+
name: 'newDrawHour',
|
|
151
|
+
type: 'uint8',
|
|
164
152
|
offset: 0,
|
|
165
|
-
byteLength:
|
|
153
|
+
byteLength: 1,
|
|
166
154
|
},
|
|
167
155
|
];
|
|
168
|
-
export function
|
|
169
|
-
return buildPayload(
|
|
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
|
|
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
|
|
180
|
-
return decodePayload(data,
|
|
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
|
|
183
|
-
const
|
|
170
|
+
export const PULSE_SET_FEES_INPUT_TYPE = 5;
|
|
171
|
+
const PULSE_SET_FEES_INPUT_FIELDS = [
|
|
184
172
|
{
|
|
185
|
-
name: '
|
|
186
|
-
type: '
|
|
173
|
+
name: 'devPercent',
|
|
174
|
+
type: 'uint8',
|
|
187
175
|
offset: 0,
|
|
188
|
-
byteLength:
|
|
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
|
|
192
|
-
return buildPayload(
|
|
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
|
|
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
|
|
203
|
-
return decodePayload(data,
|
|
208
|
+
export function decodePulseSetFeesOutput(data) {
|
|
209
|
+
return decodePayload(data, PULSE_SET_FEES_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
204
210
|
}
|
|
205
|
-
export const
|
|
206
|
-
const
|
|
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: '
|
|
209
|
-
type: '
|
|
214
|
+
name: 'newQHeartHoldLimit',
|
|
215
|
+
type: 'uint64',
|
|
210
216
|
offset: 0,
|
|
211
|
-
byteLength:
|
|
217
|
+
byteLength: 8,
|
|
212
218
|
},
|
|
213
219
|
];
|
|
214
|
-
export function
|
|
215
|
-
return buildPayload(
|
|
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
|
|
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
|
|
226
|
-
return decodePayload(data,
|
|
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
|
|
229
|
-
const
|
|
234
|
+
export const PULSE_BUY_RANDOM_TICKETS_INPUT_TYPE = 7;
|
|
235
|
+
const PULSE_BUY_RANDOM_TICKETS_INPUT_FIELDS = [
|
|
230
236
|
{
|
|
231
|
-
name: '
|
|
232
|
-
type: '
|
|
237
|
+
name: 'count',
|
|
238
|
+
type: 'uint16',
|
|
233
239
|
offset: 0,
|
|
234
|
-
byteLength:
|
|
240
|
+
byteLength: 2,
|
|
235
241
|
},
|
|
236
242
|
];
|
|
237
|
-
export function
|
|
238
|
-
return buildPayload(
|
|
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
|
|
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
|
|
249
|
-
return decodePayload(data,
|
|
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
|
|
252
|
-
const
|
|
257
|
+
export const PULSE_DEPOSIT_AUTO_PARTICIPATION_INPUT_TYPE = 8;
|
|
258
|
+
const PULSE_DEPOSIT_AUTO_PARTICIPATION_INPUT_FIELDS = [
|
|
253
259
|
{
|
|
254
|
-
name: '
|
|
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
|
|
261
|
-
return buildPayload(
|
|
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
|
|
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
|
|
272
|
-
return decodePayload(data,
|
|
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
|
|
275
|
-
const
|
|
292
|
+
export const PULSE_WITHDRAW_AUTO_PARTICIPATION_INPUT_TYPE = 9;
|
|
293
|
+
const PULSE_WITHDRAW_AUTO_PARTICIPATION_INPUT_FIELDS = [
|
|
276
294
|
{
|
|
277
|
-
name: '
|
|
278
|
-
type: '
|
|
295
|
+
name: 'amount',
|
|
296
|
+
type: 'sint64',
|
|
279
297
|
offset: 0,
|
|
280
298
|
byteLength: 8,
|
|
281
299
|
},
|
|
282
300
|
];
|
|
283
|
-
export function
|
|
284
|
-
return buildPayload(
|
|
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
|
|
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
|
|
295
|
-
return decodePayload(data,
|
|
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
|
|
298
|
-
const
|
|
315
|
+
export const PULSE_SET_AUTO_CONFIG_INPUT_TYPE = 10;
|
|
316
|
+
const PULSE_SET_AUTO_CONFIG_INPUT_FIELDS = [
|
|
299
317
|
{
|
|
300
|
-
name: '
|
|
301
|
-
type: '
|
|
318
|
+
name: 'desiredTickets',
|
|
319
|
+
type: 'sint16',
|
|
302
320
|
offset: 0,
|
|
303
|
-
byteLength:
|
|
321
|
+
byteLength: 2,
|
|
304
322
|
},
|
|
305
323
|
];
|
|
306
|
-
export function
|
|
307
|
-
return buildPayload(
|
|
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
|
|
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
|
|
318
|
-
return decodePayload(data,
|
|
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
|
|
321
|
-
const
|
|
338
|
+
export const PULSE_SET_AUTO_LIMITS_INPUT_TYPE = 11;
|
|
339
|
+
const PULSE_SET_AUTO_LIMITS_INPUT_FIELDS = [
|
|
322
340
|
{
|
|
323
|
-
name: '
|
|
324
|
-
type: '
|
|
341
|
+
name: 'maxTicketsPerUser',
|
|
342
|
+
type: 'uint16',
|
|
325
343
|
offset: 0,
|
|
326
|
-
byteLength:
|
|
344
|
+
byteLength: 2,
|
|
327
345
|
},
|
|
328
346
|
];
|
|
329
|
-
export function
|
|
330
|
-
return buildPayload(
|
|
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
|
|
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
|
|
341
|
-
return decodePayload(data,
|
|
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
|
|
344
|
-
const
|
|
361
|
+
export const PULSE_TRANSFER_TOKEN_TO_QX_INPUT_TYPE = 12;
|
|
362
|
+
const PULSE_TRANSFER_TOKEN_TO_QX_INPUT_FIELDS = [
|
|
345
363
|
{
|
|
346
|
-
name: '
|
|
347
|
-
type: '
|
|
364
|
+
name: 'numberOfShares',
|
|
365
|
+
type: 'sint64',
|
|
348
366
|
offset: 0,
|
|
349
|
-
byteLength:
|
|
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
|
|
371
|
-
return buildPayload(
|
|
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
|
|
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
|
|
382
|
-
return decodePayload(data,
|
|
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
|
|
385
|
-
const
|
|
384
|
+
export const PULSE_DEPOSIT_MANAGED_Q_HEART_INPUT_TYPE = 13;
|
|
385
|
+
const PULSE_DEPOSIT_MANAGED_Q_HEART_INPUT_FIELDS = [
|
|
386
386
|
{
|
|
387
|
-
name: '
|
|
388
|
-
type: '
|
|
387
|
+
name: 'amount',
|
|
388
|
+
type: 'sint64',
|
|
389
389
|
offset: 0,
|
|
390
390
|
byteLength: 8,
|
|
391
391
|
},
|
|
392
392
|
];
|
|
393
|
-
export function
|
|
394
|
-
return buildPayload(
|
|
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
|
|
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
|
|
405
|
-
return decodePayload(data,
|
|
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
|
|
408
|
-
export const
|
|
409
|
-
const
|
|
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: '
|
|
426
|
-
type: '
|
|
411
|
+
name: 'ticketPrice',
|
|
412
|
+
type: 'uint64',
|
|
427
413
|
offset: 0,
|
|
428
|
-
byteLength:
|
|
414
|
+
byteLength: 8,
|
|
429
415
|
},
|
|
430
416
|
];
|
|
431
|
-
export function
|
|
432
|
-
return decodePayload(data,
|
|
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
|
|
420
|
+
export async function pulseGetTicketPrice(live, options) {
|
|
435
421
|
return callContractFunction({
|
|
436
422
|
live,
|
|
437
423
|
contractIndex: PULSE_CONTRACT_INDEX,
|
|
438
|
-
inputType:
|
|
439
|
-
inputSize:
|
|
440
|
-
inputFields:
|
|
441
|
-
outputFields:
|
|
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:
|
|
429
|
+
input: {},
|
|
444
430
|
...options,
|
|
445
431
|
});
|
|
446
432
|
}
|
|
447
|
-
export const
|
|
448
|
-
export const
|
|
449
|
-
const
|
|
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
|
|
458
|
-
return buildPayload(
|
|
443
|
+
export function buildPulseGetPlayerBalanceInput(input, identityToPublicKey) {
|
|
444
|
+
return buildPayload(PULSE_GET_PLAYER_BALANCE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
459
445
|
}
|
|
460
|
-
const
|
|
446
|
+
const PULSE_GET_PLAYER_BALANCE_OUTPUT_FIELDS = [
|
|
461
447
|
{
|
|
462
|
-
name: '
|
|
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:
|
|
456
|
+
offset: 8,
|
|
477
457
|
byteLength: 1,
|
|
478
458
|
},
|
|
479
459
|
];
|
|
480
|
-
export function
|
|
481
|
-
return decodePayload(data,
|
|
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
|
|
463
|
+
export async function pulseGetPlayerBalance(live, input, options) {
|
|
484
464
|
return callContractFunction({
|
|
485
465
|
live,
|
|
486
466
|
contractIndex: PULSE_CONTRACT_INDEX,
|
|
487
|
-
inputType:
|
|
488
|
-
inputSize:
|
|
489
|
-
inputFields:
|
|
490
|
-
outputFields:
|
|
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
|
|
497
|
-
export const
|
|
498
|
-
const
|
|
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: '
|
|
501
|
-
type: '
|
|
480
|
+
name: 'epoch',
|
|
481
|
+
type: 'uint32',
|
|
502
482
|
offset: 0,
|
|
503
|
-
byteLength:
|
|
504
|
-
arrayLength: 0,
|
|
505
|
-
arrayItemByteLength: 42,
|
|
506
|
-
arrayItemStructRef: 'AutoParticipant',
|
|
483
|
+
byteLength: 4,
|
|
507
484
|
},
|
|
508
485
|
{
|
|
509
|
-
name: '
|
|
486
|
+
name: 'lastDrawDateStamp',
|
|
487
|
+
type: 'uint32',
|
|
488
|
+
offset: 4,
|
|
489
|
+
byteLength: 4,
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
name: 'ticketCounter',
|
|
510
493
|
type: 'uint16',
|
|
511
|
-
offset:
|
|
494
|
+
offset: 8,
|
|
512
495
|
byteLength: 2,
|
|
513
496
|
},
|
|
514
497
|
{
|
|
515
|
-
name: '
|
|
498
|
+
name: 'maxPlayers',
|
|
516
499
|
type: 'uint16',
|
|
517
|
-
offset:
|
|
500
|
+
offset: 10,
|
|
518
501
|
byteLength: 2,
|
|
519
502
|
},
|
|
520
503
|
{
|
|
521
|
-
name: '
|
|
504
|
+
name: 'slotsLeft',
|
|
522
505
|
type: 'uint16',
|
|
523
|
-
offset:
|
|
506
|
+
offset: 12,
|
|
524
507
|
byteLength: 2,
|
|
525
508
|
},
|
|
526
509
|
{
|
|
527
|
-
name: '
|
|
510
|
+
name: 'currentState',
|
|
528
511
|
type: 'uint8',
|
|
529
|
-
offset:
|
|
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: '
|
|
554
|
-
type: '
|
|
555
|
-
offset:
|
|
556
|
-
byteLength:
|
|
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: '
|
|
580
|
-
type: '
|
|
581
|
-
offset:
|
|
582
|
-
byteLength:
|
|
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: '
|
|
591
|
-
type: '
|
|
592
|
-
offset:
|
|
593
|
-
byteLength:
|
|
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:
|
|
536
|
+
offset: 18,
|
|
599
537
|
byteLength: 1,
|
|
600
538
|
},
|
|
601
539
|
];
|
|
602
|
-
export function
|
|
603
|
-
return decodePayload(data,
|
|
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
|
|
543
|
+
export async function pulseGetRoundState(live, options) {
|
|
606
544
|
return callContractFunction({
|
|
607
545
|
live,
|
|
608
546
|
contractIndex: PULSE_CONTRACT_INDEX,
|
|
609
|
-
inputType:
|
|
610
|
-
inputSize:
|
|
611
|
-
inputFields:
|
|
612
|
-
outputFields:
|
|
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:
|
|
552
|
+
input: {},
|
|
615
553
|
...options,
|
|
616
554
|
});
|
|
617
555
|
}
|
|
618
|
-
export const PULSE_GET_FEES_INPUT_TYPE =
|
|
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
|
|
653
|
-
return decodePayload(data, PULSE_GET_FEES_OUTPUT_FIELDS, STRUCTS,
|
|
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 =
|
|
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
|
|
679
|
-
return decodePayload(data, PULSE_GET_Q_HEART_HOLD_LIMIT_OUTPUT_FIELDS, STRUCTS,
|
|
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 =
|
|
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
|
|
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 =
|
|
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
|
|
734
|
-
return decodePayload(data, PULSE_GET_WINNING_DIGITS_OUTPUT_FIELDS, STRUCTS,
|
|
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 =
|
|
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
|
|
760
|
-
return decodePayload(data, PULSE_GET_BALANCE_OUTPUT_FIELDS, STRUCTS,
|
|
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
|
|
776
|
-
export const
|
|
777
|
-
const
|
|
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: '
|
|
717
|
+
name: 'winners',
|
|
780
718
|
type: 'array',
|
|
781
719
|
offset: 0,
|
|
782
|
-
byteLength:
|
|
720
|
+
byteLength: 43008,
|
|
783
721
|
arrayLength: 1024,
|
|
784
|
-
arrayItemByteLength:
|
|
785
|
-
arrayItemStructRef: '
|
|
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:
|
|
734
|
+
offset: 43016,
|
|
791
735
|
byteLength: 1,
|
|
792
736
|
},
|
|
793
737
|
];
|
|
794
|
-
export function
|
|
795
|
-
return decodePayload(data,
|
|
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
|
|
741
|
+
export async function pulseGetWinners(live, options) {
|
|
798
742
|
return callContractFunction({
|
|
799
743
|
live,
|
|
800
744
|
contractIndex: PULSE_CONTRACT_INDEX,
|
|
801
|
-
inputType:
|
|
802
|
-
inputSize:
|
|
745
|
+
inputType: PULSE_GET_WINNERS_INPUT_TYPE,
|
|
746
|
+
inputSize: PULSE_GET_WINNERS_INPUT_SIZE,
|
|
803
747
|
inputFields: [],
|
|
804
|
-
outputFields:
|
|
748
|
+
outputFields: PULSE_GET_WINNERS_OUTPUT_FIELDS,
|
|
805
749
|
structs: STRUCTS,
|
|
806
750
|
input: {},
|
|
807
751
|
...options,
|
|
808
752
|
});
|
|
809
753
|
}
|
|
810
|
-
export const
|
|
811
|
-
export const
|
|
812
|
-
const
|
|
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: '
|
|
824
|
-
type: '
|
|
758
|
+
name: 'player',
|
|
759
|
+
type: 'id',
|
|
825
760
|
offset: 0,
|
|
826
|
-
byteLength:
|
|
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: '
|
|
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:
|
|
783
|
+
offset: 10,
|
|
841
784
|
byteLength: 1,
|
|
842
785
|
},
|
|
843
786
|
];
|
|
844
|
-
export function
|
|
845
|
-
return decodePayload(data,
|
|
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
|
|
790
|
+
export async function pulseGetAutoParticipation(live, input, options) {
|
|
848
791
|
return callContractFunction({
|
|
849
792
|
live,
|
|
850
793
|
contractIndex: PULSE_CONTRACT_INDEX,
|
|
851
|
-
inputType:
|
|
852
|
-
inputSize:
|
|
853
|
-
inputFields:
|
|
854
|
-
outputFields:
|
|
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
|
|
861
|
-
export const
|
|
862
|
-
const
|
|
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: '
|
|
865
|
-
type: '
|
|
807
|
+
name: 'participants',
|
|
808
|
+
type: 'array',
|
|
866
809
|
offset: 0,
|
|
867
|
-
byteLength:
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
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: '
|
|
816
|
+
name: 'maxAutoParticipants',
|
|
877
817
|
type: 'uint16',
|
|
878
|
-
offset:
|
|
818
|
+
offset: 0,
|
|
879
819
|
byteLength: 2,
|
|
880
820
|
},
|
|
881
821
|
{
|
|
882
|
-
name: '
|
|
822
|
+
name: 'maxAutoTicketsPerUser',
|
|
883
823
|
type: 'uint16',
|
|
884
|
-
offset:
|
|
824
|
+
offset: 2,
|
|
885
825
|
byteLength: 2,
|
|
886
826
|
},
|
|
887
827
|
{
|
|
888
|
-
name: '
|
|
828
|
+
name: 'roundSlotsLeft',
|
|
889
829
|
type: 'uint16',
|
|
890
|
-
offset:
|
|
830
|
+
offset: 4,
|
|
891
831
|
byteLength: 2,
|
|
892
832
|
},
|
|
893
833
|
{
|
|
894
|
-
name: '
|
|
834
|
+
name: 'returnCode',
|
|
895
835
|
type: 'uint8',
|
|
896
|
-
offset:
|
|
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: '
|
|
901
|
-
type: '
|
|
902
|
-
offset:
|
|
903
|
-
byteLength:
|
|
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: '
|
|
874
|
+
name: 'isValid',
|
|
907
875
|
type: 'uint8',
|
|
908
|
-
offset:
|
|
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: '
|
|
913
|
-
type: '
|
|
914
|
-
offset:
|
|
915
|
-
byteLength:
|
|
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:
|
|
911
|
+
offset: 32768,
|
|
921
912
|
byteLength: 1,
|
|
922
913
|
},
|
|
923
914
|
];
|
|
924
|
-
export function
|
|
925
|
-
return decodePayload(data,
|
|
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
|
|
918
|
+
export async function pulseGetPlayers(live, options) {
|
|
928
919
|
return callContractFunction({
|
|
929
920
|
live,
|
|
930
921
|
contractIndex: PULSE_CONTRACT_INDEX,
|
|
931
|
-
inputType:
|
|
932
|
-
inputSize:
|
|
922
|
+
inputType: PULSE_GET_PLAYERS_INPUT_TYPE,
|
|
923
|
+
inputSize: PULSE_GET_PLAYERS_INPUT_SIZE,
|
|
933
924
|
inputFields: [],
|
|
934
|
-
outputFields:
|
|
925
|
+
outputFields: PULSE_GET_PLAYERS_OUTPUT_FIELDS,
|
|
935
926
|
structs: STRUCTS,
|
|
936
927
|
input: {},
|
|
937
928
|
...options,
|
|
938
929
|
});
|
|
939
930
|
}
|
|
940
|
-
export const
|
|
941
|
-
export const
|
|
942
|
-
const
|
|
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: '
|
|
935
|
+
name: 'leftAlignedRewards',
|
|
945
936
|
type: 'array',
|
|
946
937
|
offset: 0,
|
|
947
|
-
byteLength:
|
|
948
|
-
arrayLength:
|
|
949
|
-
|
|
950
|
-
|
|
938
|
+
byteLength: 0,
|
|
939
|
+
arrayLength: 0,
|
|
940
|
+
arrayItemType: 'uint64',
|
|
941
|
+
arrayItemByteLength: 8,
|
|
951
942
|
},
|
|
952
943
|
{
|
|
953
|
-
name: '
|
|
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:
|
|
955
|
+
offset: 0,
|
|
956
956
|
byteLength: 8,
|
|
957
957
|
},
|
|
958
958
|
{
|
|
959
959
|
name: 'returnCode',
|
|
960
960
|
type: 'uint8',
|
|
961
|
-
offset:
|
|
961
|
+
offset: 8,
|
|
962
962
|
byteLength: 1,
|
|
963
963
|
},
|
|
964
964
|
];
|
|
965
|
-
export function
|
|
966
|
-
return decodePayload(data,
|
|
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
|
|
968
|
+
export async function pulseGetPrizeTable(live, options) {
|
|
969
969
|
return callContractFunction({
|
|
970
970
|
live,
|
|
971
971
|
contractIndex: PULSE_CONTRACT_INDEX,
|
|
972
|
-
inputType:
|
|
973
|
-
inputSize:
|
|
972
|
+
inputType: PULSE_GET_PRIZE_TABLE_INPUT_TYPE,
|
|
973
|
+
inputSize: PULSE_GET_PRIZE_TABLE_INPUT_SIZE,
|
|
974
974
|
inputFields: [],
|
|
975
|
-
outputFields:
|
|
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
|
-
|
|
1014
|
-
|
|
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
|