@qubic.org/contracts 0.2.6 → 1.0.0
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/LICENSE +41 -0
- package/README.md +15 -18
- package/dist/__generated__/computorcontrolledfund.d.ts +1 -1
- package/dist/__generated__/computorcontrolledfund.d.ts.map +1 -1
- package/dist/__generated__/computorcontrolledfund.js +8 -8
- package/dist/__generated__/computorcontrolledfund.js.map +1 -1
- package/dist/__generated__/escrow.d.ts +1 -1
- package/dist/__generated__/escrow.d.ts.map +1 -1
- package/dist/__generated__/escrow.js +3 -3
- package/dist/__generated__/escrow.js.map +1 -1
- package/dist/__generated__/generalquorumproposal.d.ts +1 -1
- package/dist/__generated__/generalquorumproposal.d.ts.map +1 -1
- package/dist/__generated__/generalquorumproposal.js +6 -6
- package/dist/__generated__/generalquorumproposal.js.map +1 -1
- package/dist/__generated__/ggwp.d.ts +265 -0
- package/dist/__generated__/ggwp.d.ts.map +1 -0
- package/dist/__generated__/ggwp.js +825 -0
- package/dist/__generated__/ggwp.js.map +1 -0
- package/dist/__generated__/index.d.ts +1 -0
- package/dist/__generated__/index.d.ts.map +1 -1
- package/dist/__generated__/index.js +1 -0
- package/dist/__generated__/index.js.map +1 -1
- package/dist/__generated__/msvault.d.ts +1 -1
- package/dist/__generated__/msvault.d.ts.map +1 -1
- package/dist/__generated__/msvault.js +19 -19
- package/dist/__generated__/msvault.js.map +1 -1
- package/dist/__generated__/multisignvault.d.ts +25 -25
- package/dist/__generated__/multisignvault.d.ts.map +1 -1
- package/dist/__generated__/multisignvault.js +25 -25
- package/dist/__generated__/multisignvault.js.map +1 -1
- package/dist/__generated__/nostromo.d.ts +1 -1
- package/dist/__generated__/nostromo.d.ts.map +1 -1
- package/dist/__generated__/nostromo.js +15 -15
- package/dist/__generated__/nostromo.js.map +1 -1
- package/dist/__generated__/pulse.d.ts +1 -1
- package/dist/__generated__/pulse.d.ts.map +1 -1
- package/dist/__generated__/pulse.js +26 -26
- package/dist/__generated__/pulse.js.map +1 -1
- package/dist/__generated__/qbay.d.ts +1 -1
- package/dist/__generated__/qbay.d.ts.map +1 -1
- package/dist/__generated__/qbay.js +23 -23
- package/dist/__generated__/qbay.js.map +1 -1
- package/dist/__generated__/qbond.d.ts +1 -1
- package/dist/__generated__/qbond.d.ts.map +1 -1
- package/dist/__generated__/qbond.js +14 -14
- package/dist/__generated__/qbond.js.map +1 -1
- package/dist/__generated__/qdraw.d.ts +1 -1
- package/dist/__generated__/qdraw.d.ts.map +1 -1
- package/dist/__generated__/qdraw.js.map +1 -1
- package/dist/__generated__/qduel.d.ts +1 -1
- package/dist/__generated__/qduel.d.ts.map +1 -1
- package/dist/__generated__/qduel.js +11 -11
- package/dist/__generated__/qduel.js.map +1 -1
- package/dist/__generated__/qearn.d.ts +1 -1
- package/dist/__generated__/qearn.d.ts.map +1 -1
- package/dist/__generated__/qearn.js +10 -10
- package/dist/__generated__/qearn.js.map +1 -1
- package/dist/__generated__/qip.d.ts +18 -1
- package/dist/__generated__/qip.d.ts.map +1 -1
- package/dist/__generated__/qip.js +64 -3
- package/dist/__generated__/qip.js.map +1 -1
- package/dist/__generated__/qraffle.d.ts +1 -1
- package/dist/__generated__/qraffle.d.ts.map +1 -1
- package/dist/__generated__/qraffle.js +12 -12
- package/dist/__generated__/qraffle.js.map +1 -1
- package/dist/__generated__/qreservepool.d.ts +1 -1
- package/dist/__generated__/qreservepool.d.ts.map +1 -1
- package/dist/__generated__/qreservepool.js +5 -5
- package/dist/__generated__/qreservepool.js.map +1 -1
- package/dist/__generated__/qrwa.d.ts +1 -1
- package/dist/__generated__/qrwa.d.ts.map +1 -1
- package/dist/__generated__/qrwa.js +18 -18
- package/dist/__generated__/qrwa.js.map +1 -1
- package/dist/__generated__/qswap.d.ts +3 -1
- package/dist/__generated__/qswap.d.ts.map +1 -1
- package/dist/__generated__/qswap.js +30 -18
- package/dist/__generated__/qswap.js.map +1 -1
- package/dist/__generated__/qthirtyfour.d.ts +1 -1
- package/dist/__generated__/qthirtyfour.d.ts.map +1 -1
- package/dist/__generated__/qthirtyfour.js +19 -19
- package/dist/__generated__/qthirtyfour.js.map +1 -1
- package/dist/__generated__/qubicicoportal.d.ts +4 -4
- package/dist/__generated__/qubicicoportal.d.ts.map +1 -1
- package/dist/__generated__/qubicicoportal.js +4 -4
- package/dist/__generated__/qubicicoportal.js.map +1 -1
- package/dist/__generated__/quottery.d.ts +1 -1
- package/dist/__generated__/quottery.d.ts.map +1 -1
- package/dist/__generated__/quottery.js +14 -14
- package/dist/__generated__/quottery.js.map +1 -1
- package/dist/__generated__/qusino.d.ts +1 -1
- package/dist/__generated__/qusino.d.ts.map +1 -1
- package/dist/__generated__/qusino.js +13 -13
- package/dist/__generated__/qusino.js.map +1 -1
- package/dist/__generated__/qutil.d.ts +1 -1
- package/dist/__generated__/qutil.d.ts.map +1 -1
- package/dist/__generated__/qutil.js +22 -22
- package/dist/__generated__/qutil.js.map +1 -1
- package/dist/__generated__/qvault.d.ts +14 -2
- package/dist/__generated__/qvault.d.ts.map +1 -1
- package/dist/__generated__/qvault.js +70 -32
- package/dist/__generated__/qvault.js.map +1 -1
- package/dist/__generated__/qx.d.ts +1 -1
- package/dist/__generated__/qx.d.ts.map +1 -1
- package/dist/__generated__/qx.js +12 -12
- package/dist/__generated__/qx.js.map +1 -1
- package/dist/__generated__/random.d.ts +24 -1
- package/dist/__generated__/random.d.ts.map +1 -1
- package/dist/__generated__/random.js +68 -0
- package/dist/__generated__/random.js.map +1 -1
- package/dist/__generated__/randomlottery.d.ts +1 -1
- package/dist/__generated__/randomlottery.d.ts.map +1 -1
- package/dist/__generated__/randomlottery.js +12 -12
- package/dist/__generated__/randomlottery.js.map +1 -1
- package/dist/__generated__/vottunbridge.d.ts +1 -1
- package/dist/__generated__/vottunbridge.d.ts.map +1 -1
- package/dist/__generated__/vottunbridge.js +13 -13
- package/dist/__generated__/vottunbridge.js.map +1 -1
- package/dist/call-contract.d.ts.map +1 -1
- package/dist/call-contract.js +6 -1
- package/dist/call-contract.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
- package/src/__generated__/computorcontrolledfund.ts +1066 -0
- package/src/__generated__/escrow.ts +529 -0
- package/src/__generated__/generalquorumproposal.ts +691 -0
- package/src/__generated__/ggwp.ts +1241 -0
- package/src/__generated__/index.ts +28 -0
- package/src/__generated__/msvault.ts +1716 -0
- package/src/__generated__/multisignvault.ts +1511 -0
- package/src/__generated__/mylastmatch.ts +12 -0
- package/src/__generated__/nostromo.ts +1551 -0
- package/src/__generated__/pulse.ts +1512 -0
- package/src/__generated__/qbay.ts +2097 -0
- package/src/__generated__/qbond.ts +1016 -0
- package/src/__generated__/qdraw.ts +188 -0
- package/src/__generated__/qduel.ts +827 -0
- package/src/__generated__/qearn.ts +696 -0
- package/src/__generated__/qip.ts +501 -0
- package/src/__generated__/qraffle.ts +1162 -0
- package/src/__generated__/qreservepool.ts +281 -0
- package/src/__generated__/qrwa.ts +1491 -0
- package/src/__generated__/qswap.ts +1336 -0
- package/src/__generated__/qthirtyfour.ts +1131 -0
- package/src/__generated__/qubicicoportal.ts +386 -0
- package/src/__generated__/quottery.ts +1519 -0
- package/src/__generated__/qusino.ts +799 -0
- package/src/__generated__/qutil.ts +1506 -0
- package/src/__generated__/qvault.ts +2911 -0
- package/src/__generated__/qx.ts +861 -0
- package/src/__generated__/random.ts +145 -0
- package/src/__generated__/randomlottery.ts +653 -0
- package/src/__generated__/supplywatcher.ts +12 -0
- package/src/__generated__/vottunbridge.ts +1162 -0
- package/src/__tests__/contracts.test.ts +933 -0
- package/src/call-contract.ts +87 -0
- package/src/index.ts +9 -0
- package/dist/result.d.ts +0 -12
- package/dist/result.d.ts.map +0 -1
- package/dist/result.js +0 -7
- package/dist/result.js.map +0 -1
|
@@ -0,0 +1,1131 @@
|
|
|
1
|
+
// @generated — do not edit by hand. Run `bun run generate` to regenerate.
|
|
2
|
+
import type { BinaryField, FieldValue, NamedStruct } from '@qubic.org/registry'
|
|
3
|
+
import { buildPayload, decodePayload } from '@qubic.org/registry'
|
|
4
|
+
import type { QubicRpcError } from '@qubic.org/rpc'
|
|
5
|
+
import type { Result } from '@qubic.org/types'
|
|
6
|
+
import { type ContractCall, type ContractCallOptions, type SmartContractCaller, callContractFunction } from '../call-contract.js'
|
|
7
|
+
|
|
8
|
+
export const Q_THIRTY_FOUR_CONTRACT_INDEX = 22
|
|
9
|
+
|
|
10
|
+
export interface QThirtyFourNextEpochDataStruct {
|
|
11
|
+
newTicketPrice: bigint
|
|
12
|
+
newTargetJackpot: bigint
|
|
13
|
+
newSchedule: number
|
|
14
|
+
newDrawHour: number
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface QThirtyFourWinnerDataStruct {
|
|
18
|
+
winners: number[]
|
|
19
|
+
winnerValues: number[]
|
|
20
|
+
winnerCounter: bigint
|
|
21
|
+
epoch: number
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface QThirtyFourPoolsSnapshotStruct {
|
|
25
|
+
jackpot: bigint
|
|
26
|
+
reserve: bigint
|
|
27
|
+
targetJackpot: bigint
|
|
28
|
+
frActive: number
|
|
29
|
+
roundsSinceK4: number
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface QThirtyFourPlayerDataStruct {
|
|
33
|
+
player: string
|
|
34
|
+
randomValues: number[]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface QThirtyFourWinningCombinationStruct {
|
|
38
|
+
values: number[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface QThirtyFourWinnerPlayerDataStruct {
|
|
42
|
+
player: string
|
|
43
|
+
randomValues: number[]
|
|
44
|
+
wonAmount: number
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const STRUCTS: Record<string, NamedStruct> = {
|
|
48
|
+
'NextEpochData': {
|
|
49
|
+
name: 'NextEpochData',
|
|
50
|
+
byteLength: 18,
|
|
51
|
+
fields: [
|
|
52
|
+
{
|
|
53
|
+
name: 'newTicketPrice',
|
|
54
|
+
type: 'uint64',
|
|
55
|
+
offset: 0,
|
|
56
|
+
byteLength: 8,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'newTargetJackpot',
|
|
60
|
+
type: 'uint64',
|
|
61
|
+
offset: 8,
|
|
62
|
+
byteLength: 8,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'newSchedule',
|
|
66
|
+
type: 'uint8',
|
|
67
|
+
offset: 16,
|
|
68
|
+
byteLength: 1,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'newDrawHour',
|
|
72
|
+
type: 'uint8',
|
|
73
|
+
offset: 17,
|
|
74
|
+
byteLength: 1,
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
'WinnerData': {
|
|
79
|
+
name: 'WinnerData',
|
|
80
|
+
byteLength: 40974,
|
|
81
|
+
fields: [
|
|
82
|
+
{
|
|
83
|
+
name: 'winners',
|
|
84
|
+
type: 'array',
|
|
85
|
+
offset: 0,
|
|
86
|
+
byteLength: 40960,
|
|
87
|
+
arrayLength: 1024,
|
|
88
|
+
arrayItemByteLength: 40,
|
|
89
|
+
arrayItemStructRef: 'WinnerPlayerData',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'winnerValues',
|
|
93
|
+
type: 'array',
|
|
94
|
+
offset: 40960,
|
|
95
|
+
byteLength: 4,
|
|
96
|
+
arrayLength: 4,
|
|
97
|
+
arrayItemType: 'uint8',
|
|
98
|
+
arrayItemByteLength: 1,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'winnerCounter',
|
|
102
|
+
type: 'uint64',
|
|
103
|
+
offset: 40964,
|
|
104
|
+
byteLength: 8,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'epoch',
|
|
108
|
+
type: 'uint16',
|
|
109
|
+
offset: 40972,
|
|
110
|
+
byteLength: 2,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
'PoolsSnapshot': {
|
|
115
|
+
name: 'PoolsSnapshot',
|
|
116
|
+
byteLength: 27,
|
|
117
|
+
fields: [
|
|
118
|
+
{
|
|
119
|
+
name: 'jackpot',
|
|
120
|
+
type: 'uint64',
|
|
121
|
+
offset: 0,
|
|
122
|
+
byteLength: 8,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'reserve',
|
|
126
|
+
type: 'uint64',
|
|
127
|
+
offset: 8,
|
|
128
|
+
byteLength: 8,
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'targetJackpot',
|
|
132
|
+
type: 'uint64',
|
|
133
|
+
offset: 16,
|
|
134
|
+
byteLength: 8,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'frActive',
|
|
138
|
+
type: 'uint8',
|
|
139
|
+
offset: 24,
|
|
140
|
+
byteLength: 1,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'roundsSinceK4',
|
|
144
|
+
type: 'uint16',
|
|
145
|
+
offset: 25,
|
|
146
|
+
byteLength: 2,
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
'PlayerData': {
|
|
151
|
+
name: 'PlayerData',
|
|
152
|
+
byteLength: 36,
|
|
153
|
+
fields: [
|
|
154
|
+
{
|
|
155
|
+
name: 'player',
|
|
156
|
+
type: 'id',
|
|
157
|
+
offset: 0,
|
|
158
|
+
byteLength: 32,
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'randomValues',
|
|
162
|
+
type: 'array',
|
|
163
|
+
offset: 32,
|
|
164
|
+
byteLength: 4,
|
|
165
|
+
arrayLength: 4,
|
|
166
|
+
arrayItemType: 'uint8',
|
|
167
|
+
arrayItemByteLength: 1,
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
},
|
|
171
|
+
'WinningCombination': {
|
|
172
|
+
name: 'WinningCombination',
|
|
173
|
+
byteLength: 4,
|
|
174
|
+
fields: [
|
|
175
|
+
{
|
|
176
|
+
name: 'values',
|
|
177
|
+
type: 'array',
|
|
178
|
+
offset: 0,
|
|
179
|
+
byteLength: 4,
|
|
180
|
+
arrayLength: 4,
|
|
181
|
+
arrayItemType: 'uint8',
|
|
182
|
+
arrayItemByteLength: 1,
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
'WinnerPlayerData': {
|
|
187
|
+
name: 'WinnerPlayerData',
|
|
188
|
+
byteLength: 40,
|
|
189
|
+
fields: [
|
|
190
|
+
{
|
|
191
|
+
name: 'player',
|
|
192
|
+
type: 'id',
|
|
193
|
+
offset: 0,
|
|
194
|
+
byteLength: 32,
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'randomValues',
|
|
198
|
+
type: 'array',
|
|
199
|
+
offset: 32,
|
|
200
|
+
byteLength: 4,
|
|
201
|
+
arrayLength: 4,
|
|
202
|
+
arrayItemType: 'uint8',
|
|
203
|
+
arrayItemByteLength: 1,
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: 'wonAmount',
|
|
207
|
+
type: 'uint32',
|
|
208
|
+
offset: 36,
|
|
209
|
+
byteLength: 4,
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export const Q_THIRTY_FOUR_BUY_TICKET_INPUT_TYPE = 1
|
|
216
|
+
|
|
217
|
+
export interface QThirtyFourBuyTicketInput {
|
|
218
|
+
randomValues: number[]
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const Q_THIRTY_FOUR_BUY_TICKET_INPUT_FIELDS: BinaryField[] = [
|
|
222
|
+
{
|
|
223
|
+
name: 'randomValues',
|
|
224
|
+
type: 'array',
|
|
225
|
+
offset: 0,
|
|
226
|
+
byteLength: 4,
|
|
227
|
+
arrayLength: 4,
|
|
228
|
+
arrayItemType: 'uint8',
|
|
229
|
+
arrayItemByteLength: 1,
|
|
230
|
+
},
|
|
231
|
+
]
|
|
232
|
+
|
|
233
|
+
export function buildQThirtyFourBuyTicketInput(
|
|
234
|
+
input: QThirtyFourBuyTicketInput,
|
|
235
|
+
): ContractCall {
|
|
236
|
+
return { contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX, inputType: Q_THIRTY_FOUR_BUY_TICKET_INPUT_TYPE, payload: buildPayload(Q_THIRTY_FOUR_BUY_TICKET_INPUT_FIELDS, STRUCTS, input as unknown as Record<string, FieldValue | Uint8Array>, (_: string) => new Uint8Array(32)) }
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface QThirtyFourBuyTicketOutput {
|
|
240
|
+
returnCode: number
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const Q_THIRTY_FOUR_BUY_TICKET_OUTPUT_FIELDS: BinaryField[] = [
|
|
244
|
+
{
|
|
245
|
+
name: 'returnCode',
|
|
246
|
+
type: 'uint8',
|
|
247
|
+
offset: 0,
|
|
248
|
+
byteLength: 1,
|
|
249
|
+
},
|
|
250
|
+
]
|
|
251
|
+
|
|
252
|
+
export function decodeQThirtyFourBuyTicketOutput(
|
|
253
|
+
data: Uint8Array,
|
|
254
|
+
): QThirtyFourBuyTicketOutput {
|
|
255
|
+
return decodePayload(data, Q_THIRTY_FOUR_BUY_TICKET_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourBuyTicketOutput
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export const Q_THIRTY_FOUR_SET_PRICE_INPUT_TYPE = 2
|
|
259
|
+
|
|
260
|
+
export interface QThirtyFourSetPriceInput {
|
|
261
|
+
newPrice: bigint
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const Q_THIRTY_FOUR_SET_PRICE_INPUT_FIELDS: BinaryField[] = [
|
|
265
|
+
{
|
|
266
|
+
name: 'newPrice',
|
|
267
|
+
type: 'uint64',
|
|
268
|
+
offset: 0,
|
|
269
|
+
byteLength: 8,
|
|
270
|
+
},
|
|
271
|
+
]
|
|
272
|
+
|
|
273
|
+
export function buildQThirtyFourSetPriceInput(
|
|
274
|
+
input: QThirtyFourSetPriceInput,
|
|
275
|
+
): ContractCall {
|
|
276
|
+
return { contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX, inputType: Q_THIRTY_FOUR_SET_PRICE_INPUT_TYPE, payload: buildPayload(Q_THIRTY_FOUR_SET_PRICE_INPUT_FIELDS, STRUCTS, input as unknown as Record<string, FieldValue | Uint8Array>, (_: string) => new Uint8Array(32)) }
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export interface QThirtyFourSetPriceOutput {
|
|
280
|
+
returnCode: number
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
const Q_THIRTY_FOUR_SET_PRICE_OUTPUT_FIELDS: BinaryField[] = [
|
|
284
|
+
{
|
|
285
|
+
name: 'returnCode',
|
|
286
|
+
type: 'uint8',
|
|
287
|
+
offset: 0,
|
|
288
|
+
byteLength: 1,
|
|
289
|
+
},
|
|
290
|
+
]
|
|
291
|
+
|
|
292
|
+
export function decodeQThirtyFourSetPriceOutput(
|
|
293
|
+
data: Uint8Array,
|
|
294
|
+
): QThirtyFourSetPriceOutput {
|
|
295
|
+
return decodePayload(data, Q_THIRTY_FOUR_SET_PRICE_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourSetPriceOutput
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export const Q_THIRTY_FOUR_SET_SCHEDULE_INPUT_TYPE = 3
|
|
299
|
+
|
|
300
|
+
export interface QThirtyFourSetScheduleInput {
|
|
301
|
+
newSchedule: number
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
const Q_THIRTY_FOUR_SET_SCHEDULE_INPUT_FIELDS: BinaryField[] = [
|
|
305
|
+
{
|
|
306
|
+
name: 'newSchedule',
|
|
307
|
+
type: 'uint8',
|
|
308
|
+
offset: 0,
|
|
309
|
+
byteLength: 1,
|
|
310
|
+
},
|
|
311
|
+
]
|
|
312
|
+
|
|
313
|
+
export function buildQThirtyFourSetScheduleInput(
|
|
314
|
+
input: QThirtyFourSetScheduleInput,
|
|
315
|
+
): ContractCall {
|
|
316
|
+
return { contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX, inputType: Q_THIRTY_FOUR_SET_SCHEDULE_INPUT_TYPE, payload: buildPayload(Q_THIRTY_FOUR_SET_SCHEDULE_INPUT_FIELDS, STRUCTS, input as unknown as Record<string, FieldValue | Uint8Array>, (_: string) => new Uint8Array(32)) }
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface QThirtyFourSetScheduleOutput {
|
|
320
|
+
returnCode: number
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
const Q_THIRTY_FOUR_SET_SCHEDULE_OUTPUT_FIELDS: BinaryField[] = [
|
|
324
|
+
{
|
|
325
|
+
name: 'returnCode',
|
|
326
|
+
type: 'uint8',
|
|
327
|
+
offset: 0,
|
|
328
|
+
byteLength: 1,
|
|
329
|
+
},
|
|
330
|
+
]
|
|
331
|
+
|
|
332
|
+
export function decodeQThirtyFourSetScheduleOutput(
|
|
333
|
+
data: Uint8Array,
|
|
334
|
+
): QThirtyFourSetScheduleOutput {
|
|
335
|
+
return decodePayload(data, Q_THIRTY_FOUR_SET_SCHEDULE_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourSetScheduleOutput
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export const Q_THIRTY_FOUR_SET_TARGET_JACKPOT_INPUT_TYPE = 4
|
|
339
|
+
|
|
340
|
+
export interface QThirtyFourSetTargetJackpotInput {
|
|
341
|
+
newTargetJackpot: bigint
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
const Q_THIRTY_FOUR_SET_TARGET_JACKPOT_INPUT_FIELDS: BinaryField[] = [
|
|
345
|
+
{
|
|
346
|
+
name: 'newTargetJackpot',
|
|
347
|
+
type: 'uint64',
|
|
348
|
+
offset: 0,
|
|
349
|
+
byteLength: 8,
|
|
350
|
+
},
|
|
351
|
+
]
|
|
352
|
+
|
|
353
|
+
export function buildQThirtyFourSetTargetJackpotInput(
|
|
354
|
+
input: QThirtyFourSetTargetJackpotInput,
|
|
355
|
+
): ContractCall {
|
|
356
|
+
return { contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX, inputType: Q_THIRTY_FOUR_SET_TARGET_JACKPOT_INPUT_TYPE, payload: buildPayload(Q_THIRTY_FOUR_SET_TARGET_JACKPOT_INPUT_FIELDS, STRUCTS, input as unknown as Record<string, FieldValue | Uint8Array>, (_: string) => new Uint8Array(32)) }
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export interface QThirtyFourSetTargetJackpotOutput {
|
|
360
|
+
returnCode: number
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
const Q_THIRTY_FOUR_SET_TARGET_JACKPOT_OUTPUT_FIELDS: BinaryField[] = [
|
|
364
|
+
{
|
|
365
|
+
name: 'returnCode',
|
|
366
|
+
type: 'uint8',
|
|
367
|
+
offset: 0,
|
|
368
|
+
byteLength: 1,
|
|
369
|
+
},
|
|
370
|
+
]
|
|
371
|
+
|
|
372
|
+
export function decodeQThirtyFourSetTargetJackpotOutput(
|
|
373
|
+
data: Uint8Array,
|
|
374
|
+
): QThirtyFourSetTargetJackpotOutput {
|
|
375
|
+
return decodePayload(data, Q_THIRTY_FOUR_SET_TARGET_JACKPOT_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourSetTargetJackpotOutput
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export const Q_THIRTY_FOUR_SET_DRAW_HOUR_INPUT_TYPE = 5
|
|
379
|
+
|
|
380
|
+
export interface QThirtyFourSetDrawHourInput {
|
|
381
|
+
newDrawHour: number
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const Q_THIRTY_FOUR_SET_DRAW_HOUR_INPUT_FIELDS: BinaryField[] = [
|
|
385
|
+
{
|
|
386
|
+
name: 'newDrawHour',
|
|
387
|
+
type: 'uint8',
|
|
388
|
+
offset: 0,
|
|
389
|
+
byteLength: 1,
|
|
390
|
+
},
|
|
391
|
+
]
|
|
392
|
+
|
|
393
|
+
export function buildQThirtyFourSetDrawHourInput(
|
|
394
|
+
input: QThirtyFourSetDrawHourInput,
|
|
395
|
+
): ContractCall {
|
|
396
|
+
return { contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX, inputType: Q_THIRTY_FOUR_SET_DRAW_HOUR_INPUT_TYPE, payload: buildPayload(Q_THIRTY_FOUR_SET_DRAW_HOUR_INPUT_FIELDS, STRUCTS, input as unknown as Record<string, FieldValue | Uint8Array>, (_: string) => new Uint8Array(32)) }
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export interface QThirtyFourSetDrawHourOutput {
|
|
400
|
+
returnCode: number
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
const Q_THIRTY_FOUR_SET_DRAW_HOUR_OUTPUT_FIELDS: BinaryField[] = [
|
|
404
|
+
{
|
|
405
|
+
name: 'returnCode',
|
|
406
|
+
type: 'uint8',
|
|
407
|
+
offset: 0,
|
|
408
|
+
byteLength: 1,
|
|
409
|
+
},
|
|
410
|
+
]
|
|
411
|
+
|
|
412
|
+
export function decodeQThirtyFourSetDrawHourOutput(
|
|
413
|
+
data: Uint8Array,
|
|
414
|
+
): QThirtyFourSetDrawHourOutput {
|
|
415
|
+
return decodePayload(data, Q_THIRTY_FOUR_SET_DRAW_HOUR_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourSetDrawHourOutput
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export const Q_THIRTY_FOUR_SYNC_JACKPOT_INPUT_TYPE = 6
|
|
419
|
+
|
|
420
|
+
export interface QThirtyFourSyncJackpotOutput {
|
|
421
|
+
returnCode: number
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
const Q_THIRTY_FOUR_SYNC_JACKPOT_OUTPUT_FIELDS: BinaryField[] = [
|
|
425
|
+
{
|
|
426
|
+
name: 'returnCode',
|
|
427
|
+
type: 'uint8',
|
|
428
|
+
offset: 0,
|
|
429
|
+
byteLength: 1,
|
|
430
|
+
},
|
|
431
|
+
]
|
|
432
|
+
|
|
433
|
+
export function decodeQThirtyFourSyncJackpotOutput(
|
|
434
|
+
data: Uint8Array,
|
|
435
|
+
): QThirtyFourSyncJackpotOutput {
|
|
436
|
+
return decodePayload(data, Q_THIRTY_FOUR_SYNC_JACKPOT_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourSyncJackpotOutput
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export const Q_THIRTY_FOUR_BUY_TICKETS_BATCH_INPUT_TYPE = 7
|
|
440
|
+
|
|
441
|
+
export interface QThirtyFourBuyTicketsBatchInput {
|
|
442
|
+
tickets: number[]
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
const Q_THIRTY_FOUR_BUY_TICKETS_BATCH_INPUT_FIELDS: BinaryField[] = [
|
|
446
|
+
{
|
|
447
|
+
name: 'tickets',
|
|
448
|
+
type: 'array',
|
|
449
|
+
offset: 0,
|
|
450
|
+
byteLength: 0,
|
|
451
|
+
arrayLength: 0,
|
|
452
|
+
arrayItemType: 'uint8',
|
|
453
|
+
arrayItemByteLength: 1,
|
|
454
|
+
},
|
|
455
|
+
]
|
|
456
|
+
|
|
457
|
+
export function buildQThirtyFourBuyTicketsBatchInput(
|
|
458
|
+
input: QThirtyFourBuyTicketsBatchInput,
|
|
459
|
+
): ContractCall {
|
|
460
|
+
return { contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX, inputType: Q_THIRTY_FOUR_BUY_TICKETS_BATCH_INPUT_TYPE, payload: buildPayload(Q_THIRTY_FOUR_BUY_TICKETS_BATCH_INPUT_FIELDS, STRUCTS, input as unknown as Record<string, FieldValue | Uint8Array>, (_: string) => new Uint8Array(32)) }
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export interface QThirtyFourBuyTicketsBatchOutput {
|
|
464
|
+
boughtTicketCount: number
|
|
465
|
+
returnCode: number
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
const Q_THIRTY_FOUR_BUY_TICKETS_BATCH_OUTPUT_FIELDS: BinaryField[] = [
|
|
469
|
+
{
|
|
470
|
+
name: 'boughtTicketCount',
|
|
471
|
+
type: 'uint16',
|
|
472
|
+
offset: 0,
|
|
473
|
+
byteLength: 2,
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
name: 'returnCode',
|
|
477
|
+
type: 'uint8',
|
|
478
|
+
offset: 2,
|
|
479
|
+
byteLength: 1,
|
|
480
|
+
},
|
|
481
|
+
]
|
|
482
|
+
|
|
483
|
+
export function decodeQThirtyFourBuyTicketsBatchOutput(
|
|
484
|
+
data: Uint8Array,
|
|
485
|
+
): QThirtyFourBuyTicketsBatchOutput {
|
|
486
|
+
return decodePayload(data, Q_THIRTY_FOUR_BUY_TICKETS_BATCH_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourBuyTicketsBatchOutput
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export const Q_THIRTY_FOUR_BUY_TICKETS_BY_SELECTION_INPUT_TYPE = 8
|
|
490
|
+
|
|
491
|
+
export interface QThirtyFourBuyTicketsBySelectionInput {
|
|
492
|
+
numbers: number[]
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
const Q_THIRTY_FOUR_BUY_TICKETS_BY_SELECTION_INPUT_FIELDS: BinaryField[] = [
|
|
496
|
+
{
|
|
497
|
+
name: 'numbers',
|
|
498
|
+
type: 'array',
|
|
499
|
+
offset: 0,
|
|
500
|
+
byteLength: 0,
|
|
501
|
+
arrayLength: 0,
|
|
502
|
+
arrayItemType: 'uint8',
|
|
503
|
+
arrayItemByteLength: 1,
|
|
504
|
+
},
|
|
505
|
+
]
|
|
506
|
+
|
|
507
|
+
export function buildQThirtyFourBuyTicketsBySelectionInput(
|
|
508
|
+
input: QThirtyFourBuyTicketsBySelectionInput,
|
|
509
|
+
): ContractCall {
|
|
510
|
+
return { contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX, inputType: Q_THIRTY_FOUR_BUY_TICKETS_BY_SELECTION_INPUT_TYPE, payload: buildPayload(Q_THIRTY_FOUR_BUY_TICKETS_BY_SELECTION_INPUT_FIELDS, STRUCTS, input as unknown as Record<string, FieldValue | Uint8Array>, (_: string) => new Uint8Array(32)) }
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export interface QThirtyFourBuyTicketsBySelectionOutput {
|
|
514
|
+
requestedTicketCount: number
|
|
515
|
+
boughtTicketCount: number
|
|
516
|
+
returnCode: number
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
const Q_THIRTY_FOUR_BUY_TICKETS_BY_SELECTION_OUTPUT_FIELDS: BinaryField[] = [
|
|
520
|
+
{
|
|
521
|
+
name: 'requestedTicketCount',
|
|
522
|
+
type: 'uint16',
|
|
523
|
+
offset: 0,
|
|
524
|
+
byteLength: 2,
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
name: 'boughtTicketCount',
|
|
528
|
+
type: 'uint16',
|
|
529
|
+
offset: 2,
|
|
530
|
+
byteLength: 2,
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
name: 'returnCode',
|
|
534
|
+
type: 'uint8',
|
|
535
|
+
offset: 4,
|
|
536
|
+
byteLength: 1,
|
|
537
|
+
},
|
|
538
|
+
]
|
|
539
|
+
|
|
540
|
+
export function decodeQThirtyFourBuyTicketsBySelectionOutput(
|
|
541
|
+
data: Uint8Array,
|
|
542
|
+
): QThirtyFourBuyTicketsBySelectionOutput {
|
|
543
|
+
return decodePayload(data, Q_THIRTY_FOUR_BUY_TICKETS_BY_SELECTION_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourBuyTicketsBySelectionOutput
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
export const Q_THIRTY_FOUR_GET_TICKET_PRICE_INPUT_TYPE = 1
|
|
547
|
+
export const Q_THIRTY_FOUR_GET_TICKET_PRICE_INPUT_SIZE = 0
|
|
548
|
+
|
|
549
|
+
export interface QThirtyFourGetTicketPriceOutput {
|
|
550
|
+
ticketPrice: bigint
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
const Q_THIRTY_FOUR_GET_TICKET_PRICE_OUTPUT_FIELDS: BinaryField[] = [
|
|
554
|
+
{
|
|
555
|
+
name: 'ticketPrice',
|
|
556
|
+
type: 'uint64',
|
|
557
|
+
offset: 0,
|
|
558
|
+
byteLength: 8,
|
|
559
|
+
},
|
|
560
|
+
]
|
|
561
|
+
|
|
562
|
+
export function decodeQThirtyFourGetTicketPriceOutput(
|
|
563
|
+
data: Uint8Array,
|
|
564
|
+
): QThirtyFourGetTicketPriceOutput {
|
|
565
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_TICKET_PRICE_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetTicketPriceOutput
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export async function qThirtyFourGetTicketPrice(
|
|
569
|
+
live: SmartContractCaller,
|
|
570
|
+
options?: ContractCallOptions,
|
|
571
|
+
): Promise<Result<QThirtyFourGetTicketPriceOutput, QubicRpcError>> {
|
|
572
|
+
return callContractFunction({
|
|
573
|
+
live,
|
|
574
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
575
|
+
inputType: Q_THIRTY_FOUR_GET_TICKET_PRICE_INPUT_TYPE,
|
|
576
|
+
inputSize: Q_THIRTY_FOUR_GET_TICKET_PRICE_INPUT_SIZE,
|
|
577
|
+
inputFields: [],
|
|
578
|
+
outputFields: Q_THIRTY_FOUR_GET_TICKET_PRICE_OUTPUT_FIELDS,
|
|
579
|
+
structs: STRUCTS,
|
|
580
|
+
input: {},
|
|
581
|
+
...options,
|
|
582
|
+
})
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export const Q_THIRTY_FOUR_GET_NEXT_EPOCH_DATA_INPUT_TYPE = 2
|
|
586
|
+
export const Q_THIRTY_FOUR_GET_NEXT_EPOCH_DATA_INPUT_SIZE = 0
|
|
587
|
+
|
|
588
|
+
export interface QThirtyFourGetNextEpochDataOutput {
|
|
589
|
+
nextEpochData: QThirtyFourNextEpochDataStruct
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
const Q_THIRTY_FOUR_GET_NEXT_EPOCH_DATA_OUTPUT_FIELDS: BinaryField[] = [
|
|
593
|
+
{
|
|
594
|
+
name: 'nextEpochData',
|
|
595
|
+
type: 'struct',
|
|
596
|
+
offset: 0,
|
|
597
|
+
byteLength: 18,
|
|
598
|
+
structRef: 'NextEpochData',
|
|
599
|
+
},
|
|
600
|
+
]
|
|
601
|
+
|
|
602
|
+
export function decodeQThirtyFourGetNextEpochDataOutput(
|
|
603
|
+
data: Uint8Array,
|
|
604
|
+
): QThirtyFourGetNextEpochDataOutput {
|
|
605
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_NEXT_EPOCH_DATA_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetNextEpochDataOutput
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
export async function qThirtyFourGetNextEpochData(
|
|
609
|
+
live: SmartContractCaller,
|
|
610
|
+
options?: ContractCallOptions,
|
|
611
|
+
): Promise<Result<QThirtyFourGetNextEpochDataOutput, QubicRpcError>> {
|
|
612
|
+
return callContractFunction({
|
|
613
|
+
live,
|
|
614
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
615
|
+
inputType: Q_THIRTY_FOUR_GET_NEXT_EPOCH_DATA_INPUT_TYPE,
|
|
616
|
+
inputSize: Q_THIRTY_FOUR_GET_NEXT_EPOCH_DATA_INPUT_SIZE,
|
|
617
|
+
inputFields: [],
|
|
618
|
+
outputFields: Q_THIRTY_FOUR_GET_NEXT_EPOCH_DATA_OUTPUT_FIELDS,
|
|
619
|
+
structs: STRUCTS,
|
|
620
|
+
input: {},
|
|
621
|
+
...options,
|
|
622
|
+
})
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
export const Q_THIRTY_FOUR_GET_WINNER_DATA_INPUT_TYPE = 3
|
|
626
|
+
export const Q_THIRTY_FOUR_GET_WINNER_DATA_INPUT_SIZE = 0
|
|
627
|
+
|
|
628
|
+
export interface QThirtyFourGetWinnerDataOutput {
|
|
629
|
+
winnerData: QThirtyFourWinnerDataStruct
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
const Q_THIRTY_FOUR_GET_WINNER_DATA_OUTPUT_FIELDS: BinaryField[] = [
|
|
633
|
+
{
|
|
634
|
+
name: 'winnerData',
|
|
635
|
+
type: 'struct',
|
|
636
|
+
offset: 0,
|
|
637
|
+
byteLength: 40974,
|
|
638
|
+
structRef: 'WinnerData',
|
|
639
|
+
},
|
|
640
|
+
]
|
|
641
|
+
|
|
642
|
+
export function decodeQThirtyFourGetWinnerDataOutput(
|
|
643
|
+
data: Uint8Array,
|
|
644
|
+
): QThirtyFourGetWinnerDataOutput {
|
|
645
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_WINNER_DATA_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetWinnerDataOutput
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export async function qThirtyFourGetWinnerData(
|
|
649
|
+
live: SmartContractCaller,
|
|
650
|
+
options?: ContractCallOptions,
|
|
651
|
+
): Promise<Result<QThirtyFourGetWinnerDataOutput, QubicRpcError>> {
|
|
652
|
+
return callContractFunction({
|
|
653
|
+
live,
|
|
654
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
655
|
+
inputType: Q_THIRTY_FOUR_GET_WINNER_DATA_INPUT_TYPE,
|
|
656
|
+
inputSize: Q_THIRTY_FOUR_GET_WINNER_DATA_INPUT_SIZE,
|
|
657
|
+
inputFields: [],
|
|
658
|
+
outputFields: Q_THIRTY_FOUR_GET_WINNER_DATA_OUTPUT_FIELDS,
|
|
659
|
+
structs: STRUCTS,
|
|
660
|
+
input: {},
|
|
661
|
+
...options,
|
|
662
|
+
})
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export const Q_THIRTY_FOUR_GET_POOLS_INPUT_TYPE = 4
|
|
666
|
+
export const Q_THIRTY_FOUR_GET_POOLS_INPUT_SIZE = 0
|
|
667
|
+
|
|
668
|
+
export interface QThirtyFourGetPoolsOutput {
|
|
669
|
+
pools: QThirtyFourPoolsSnapshotStruct
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
const Q_THIRTY_FOUR_GET_POOLS_OUTPUT_FIELDS: BinaryField[] = [
|
|
673
|
+
{
|
|
674
|
+
name: 'pools',
|
|
675
|
+
type: 'struct',
|
|
676
|
+
offset: 0,
|
|
677
|
+
byteLength: 27,
|
|
678
|
+
structRef: 'PoolsSnapshot',
|
|
679
|
+
},
|
|
680
|
+
]
|
|
681
|
+
|
|
682
|
+
export function decodeQThirtyFourGetPoolsOutput(
|
|
683
|
+
data: Uint8Array,
|
|
684
|
+
): QThirtyFourGetPoolsOutput {
|
|
685
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_POOLS_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetPoolsOutput
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
export async function qThirtyFourGetPools(
|
|
689
|
+
live: SmartContractCaller,
|
|
690
|
+
options?: ContractCallOptions,
|
|
691
|
+
): Promise<Result<QThirtyFourGetPoolsOutput, QubicRpcError>> {
|
|
692
|
+
return callContractFunction({
|
|
693
|
+
live,
|
|
694
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
695
|
+
inputType: Q_THIRTY_FOUR_GET_POOLS_INPUT_TYPE,
|
|
696
|
+
inputSize: Q_THIRTY_FOUR_GET_POOLS_INPUT_SIZE,
|
|
697
|
+
inputFields: [],
|
|
698
|
+
outputFields: Q_THIRTY_FOUR_GET_POOLS_OUTPUT_FIELDS,
|
|
699
|
+
structs: STRUCTS,
|
|
700
|
+
input: {},
|
|
701
|
+
...options,
|
|
702
|
+
})
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export const Q_THIRTY_FOUR_GET_SCHEDULE_INPUT_TYPE = 5
|
|
706
|
+
export const Q_THIRTY_FOUR_GET_SCHEDULE_INPUT_SIZE = 0
|
|
707
|
+
|
|
708
|
+
export interface QThirtyFourGetScheduleOutput {
|
|
709
|
+
schedule: number
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
const Q_THIRTY_FOUR_GET_SCHEDULE_OUTPUT_FIELDS: BinaryField[] = [
|
|
713
|
+
{
|
|
714
|
+
name: 'schedule',
|
|
715
|
+
type: 'uint8',
|
|
716
|
+
offset: 0,
|
|
717
|
+
byteLength: 1,
|
|
718
|
+
},
|
|
719
|
+
]
|
|
720
|
+
|
|
721
|
+
export function decodeQThirtyFourGetScheduleOutput(
|
|
722
|
+
data: Uint8Array,
|
|
723
|
+
): QThirtyFourGetScheduleOutput {
|
|
724
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_SCHEDULE_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetScheduleOutput
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export async function qThirtyFourGetSchedule(
|
|
728
|
+
live: SmartContractCaller,
|
|
729
|
+
options?: ContractCallOptions,
|
|
730
|
+
): Promise<Result<QThirtyFourGetScheduleOutput, QubicRpcError>> {
|
|
731
|
+
return callContractFunction({
|
|
732
|
+
live,
|
|
733
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
734
|
+
inputType: Q_THIRTY_FOUR_GET_SCHEDULE_INPUT_TYPE,
|
|
735
|
+
inputSize: Q_THIRTY_FOUR_GET_SCHEDULE_INPUT_SIZE,
|
|
736
|
+
inputFields: [],
|
|
737
|
+
outputFields: Q_THIRTY_FOUR_GET_SCHEDULE_OUTPUT_FIELDS,
|
|
738
|
+
structs: STRUCTS,
|
|
739
|
+
input: {},
|
|
740
|
+
...options,
|
|
741
|
+
})
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export const Q_THIRTY_FOUR_GET_DRAW_HOUR_INPUT_TYPE = 6
|
|
745
|
+
export const Q_THIRTY_FOUR_GET_DRAW_HOUR_INPUT_SIZE = 0
|
|
746
|
+
|
|
747
|
+
export interface QThirtyFourGetDrawHourOutput {
|
|
748
|
+
drawHour: number
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
const Q_THIRTY_FOUR_GET_DRAW_HOUR_OUTPUT_FIELDS: BinaryField[] = [
|
|
752
|
+
{
|
|
753
|
+
name: 'drawHour',
|
|
754
|
+
type: 'uint8',
|
|
755
|
+
offset: 0,
|
|
756
|
+
byteLength: 1,
|
|
757
|
+
},
|
|
758
|
+
]
|
|
759
|
+
|
|
760
|
+
export function decodeQThirtyFourGetDrawHourOutput(
|
|
761
|
+
data: Uint8Array,
|
|
762
|
+
): QThirtyFourGetDrawHourOutput {
|
|
763
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_DRAW_HOUR_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetDrawHourOutput
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export async function qThirtyFourGetDrawHour(
|
|
767
|
+
live: SmartContractCaller,
|
|
768
|
+
options?: ContractCallOptions,
|
|
769
|
+
): Promise<Result<QThirtyFourGetDrawHourOutput, QubicRpcError>> {
|
|
770
|
+
return callContractFunction({
|
|
771
|
+
live,
|
|
772
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
773
|
+
inputType: Q_THIRTY_FOUR_GET_DRAW_HOUR_INPUT_TYPE,
|
|
774
|
+
inputSize: Q_THIRTY_FOUR_GET_DRAW_HOUR_INPUT_SIZE,
|
|
775
|
+
inputFields: [],
|
|
776
|
+
outputFields: Q_THIRTY_FOUR_GET_DRAW_HOUR_OUTPUT_FIELDS,
|
|
777
|
+
structs: STRUCTS,
|
|
778
|
+
input: {},
|
|
779
|
+
...options,
|
|
780
|
+
})
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export const Q_THIRTY_FOUR_GET_STATE_INPUT_TYPE = 7
|
|
784
|
+
export const Q_THIRTY_FOUR_GET_STATE_INPUT_SIZE = 0
|
|
785
|
+
|
|
786
|
+
export interface QThirtyFourGetStateOutput {
|
|
787
|
+
currentState: number
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
const Q_THIRTY_FOUR_GET_STATE_OUTPUT_FIELDS: BinaryField[] = [
|
|
791
|
+
{
|
|
792
|
+
name: 'currentState',
|
|
793
|
+
type: 'uint8',
|
|
794
|
+
offset: 0,
|
|
795
|
+
byteLength: 1,
|
|
796
|
+
},
|
|
797
|
+
]
|
|
798
|
+
|
|
799
|
+
export function decodeQThirtyFourGetStateOutput(
|
|
800
|
+
data: Uint8Array,
|
|
801
|
+
): QThirtyFourGetStateOutput {
|
|
802
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_STATE_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetStateOutput
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export async function qThirtyFourGetState(
|
|
806
|
+
live: SmartContractCaller,
|
|
807
|
+
options?: ContractCallOptions,
|
|
808
|
+
): Promise<Result<QThirtyFourGetStateOutput, QubicRpcError>> {
|
|
809
|
+
return callContractFunction({
|
|
810
|
+
live,
|
|
811
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
812
|
+
inputType: Q_THIRTY_FOUR_GET_STATE_INPUT_TYPE,
|
|
813
|
+
inputSize: Q_THIRTY_FOUR_GET_STATE_INPUT_SIZE,
|
|
814
|
+
inputFields: [],
|
|
815
|
+
outputFields: Q_THIRTY_FOUR_GET_STATE_OUTPUT_FIELDS,
|
|
816
|
+
structs: STRUCTS,
|
|
817
|
+
input: {},
|
|
818
|
+
...options,
|
|
819
|
+
})
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
export const Q_THIRTY_FOUR_GET_FEES_INPUT_TYPE = 8
|
|
823
|
+
export const Q_THIRTY_FOUR_GET_FEES_INPUT_SIZE = 0
|
|
824
|
+
|
|
825
|
+
export interface QThirtyFourGetFeesOutput {
|
|
826
|
+
teamFeePercent: number
|
|
827
|
+
distributionFeePercent: number
|
|
828
|
+
winnerFeePercent: number
|
|
829
|
+
burnPercent: number
|
|
830
|
+
returnCode: number
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
const Q_THIRTY_FOUR_GET_FEES_OUTPUT_FIELDS: BinaryField[] = [
|
|
834
|
+
{
|
|
835
|
+
name: 'teamFeePercent',
|
|
836
|
+
type: 'uint8',
|
|
837
|
+
offset: 0,
|
|
838
|
+
byteLength: 1,
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
name: 'distributionFeePercent',
|
|
842
|
+
type: 'uint8',
|
|
843
|
+
offset: 1,
|
|
844
|
+
byteLength: 1,
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
name: 'winnerFeePercent',
|
|
848
|
+
type: 'uint8',
|
|
849
|
+
offset: 2,
|
|
850
|
+
byteLength: 1,
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: 'burnPercent',
|
|
854
|
+
type: 'uint8',
|
|
855
|
+
offset: 3,
|
|
856
|
+
byteLength: 1,
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
name: 'returnCode',
|
|
860
|
+
type: 'uint8',
|
|
861
|
+
offset: 4,
|
|
862
|
+
byteLength: 1,
|
|
863
|
+
},
|
|
864
|
+
]
|
|
865
|
+
|
|
866
|
+
export function decodeQThirtyFourGetFeesOutput(
|
|
867
|
+
data: Uint8Array,
|
|
868
|
+
): QThirtyFourGetFeesOutput {
|
|
869
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_FEES_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetFeesOutput
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export async function qThirtyFourGetFees(
|
|
873
|
+
live: SmartContractCaller,
|
|
874
|
+
options?: ContractCallOptions,
|
|
875
|
+
): Promise<Result<QThirtyFourGetFeesOutput, QubicRpcError>> {
|
|
876
|
+
return callContractFunction({
|
|
877
|
+
live,
|
|
878
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
879
|
+
inputType: Q_THIRTY_FOUR_GET_FEES_INPUT_TYPE,
|
|
880
|
+
inputSize: Q_THIRTY_FOUR_GET_FEES_INPUT_SIZE,
|
|
881
|
+
inputFields: [],
|
|
882
|
+
outputFields: Q_THIRTY_FOUR_GET_FEES_OUTPUT_FIELDS,
|
|
883
|
+
structs: STRUCTS,
|
|
884
|
+
input: {},
|
|
885
|
+
...options,
|
|
886
|
+
})
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export const Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_INPUT_TYPE = 9
|
|
890
|
+
export const Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_INPUT_SIZE = 16
|
|
891
|
+
|
|
892
|
+
export interface QThirtyFourEstimatePrizePayoutsInput {
|
|
893
|
+
k2WinnerCount: bigint
|
|
894
|
+
k3WinnerCount: bigint
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
const Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_INPUT_FIELDS: BinaryField[] = [
|
|
898
|
+
{
|
|
899
|
+
name: 'k2WinnerCount',
|
|
900
|
+
type: 'uint64',
|
|
901
|
+
offset: 0,
|
|
902
|
+
byteLength: 8,
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
name: 'k3WinnerCount',
|
|
906
|
+
type: 'uint64',
|
|
907
|
+
offset: 8,
|
|
908
|
+
byteLength: 8,
|
|
909
|
+
},
|
|
910
|
+
]
|
|
911
|
+
|
|
912
|
+
export function buildQThirtyFourEstimatePrizePayoutsInput(
|
|
913
|
+
input: QThirtyFourEstimatePrizePayoutsInput,
|
|
914
|
+
): Uint8Array {
|
|
915
|
+
return buildPayload(Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_INPUT_FIELDS, STRUCTS, input as unknown as Record<string, FieldValue | Uint8Array>, (_: string) => new Uint8Array(32))
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export interface QThirtyFourEstimatePrizePayoutsOutput {
|
|
919
|
+
k2PayoutPerWinner: bigint
|
|
920
|
+
k3PayoutPerWinner: bigint
|
|
921
|
+
k2MinFloor: bigint
|
|
922
|
+
k3MinFloor: bigint
|
|
923
|
+
perWinnerCap: bigint
|
|
924
|
+
totalRevenue: bigint
|
|
925
|
+
k2Pool: bigint
|
|
926
|
+
k3Pool: bigint
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
const Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_OUTPUT_FIELDS: BinaryField[] = [
|
|
930
|
+
{
|
|
931
|
+
name: 'k2PayoutPerWinner',
|
|
932
|
+
type: 'uint64',
|
|
933
|
+
offset: 0,
|
|
934
|
+
byteLength: 8,
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
name: 'k3PayoutPerWinner',
|
|
938
|
+
type: 'uint64',
|
|
939
|
+
offset: 8,
|
|
940
|
+
byteLength: 8,
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
name: 'k2MinFloor',
|
|
944
|
+
type: 'uint64',
|
|
945
|
+
offset: 16,
|
|
946
|
+
byteLength: 8,
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
name: 'k3MinFloor',
|
|
950
|
+
type: 'uint64',
|
|
951
|
+
offset: 24,
|
|
952
|
+
byteLength: 8,
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
name: 'perWinnerCap',
|
|
956
|
+
type: 'uint64',
|
|
957
|
+
offset: 32,
|
|
958
|
+
byteLength: 8,
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
name: 'totalRevenue',
|
|
962
|
+
type: 'uint64',
|
|
963
|
+
offset: 40,
|
|
964
|
+
byteLength: 8,
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
name: 'k2Pool',
|
|
968
|
+
type: 'uint64',
|
|
969
|
+
offset: 48,
|
|
970
|
+
byteLength: 8,
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
name: 'k3Pool',
|
|
974
|
+
type: 'uint64',
|
|
975
|
+
offset: 56,
|
|
976
|
+
byteLength: 8,
|
|
977
|
+
},
|
|
978
|
+
]
|
|
979
|
+
|
|
980
|
+
export function decodeQThirtyFourEstimatePrizePayoutsOutput(
|
|
981
|
+
data: Uint8Array,
|
|
982
|
+
): QThirtyFourEstimatePrizePayoutsOutput {
|
|
983
|
+
return decodePayload(data, Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourEstimatePrizePayoutsOutput
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export async function qThirtyFourEstimatePrizePayouts(
|
|
987
|
+
live: SmartContractCaller,
|
|
988
|
+
input: QThirtyFourEstimatePrizePayoutsInput,
|
|
989
|
+
options?: ContractCallOptions,
|
|
990
|
+
): Promise<Result<QThirtyFourEstimatePrizePayoutsOutput, QubicRpcError>> {
|
|
991
|
+
return callContractFunction({
|
|
992
|
+
live,
|
|
993
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
994
|
+
inputType: Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_INPUT_TYPE,
|
|
995
|
+
inputSize: Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_INPUT_SIZE,
|
|
996
|
+
inputFields: Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_INPUT_FIELDS,
|
|
997
|
+
outputFields: Q_THIRTY_FOUR_ESTIMATE_PRIZE_PAYOUTS_OUTPUT_FIELDS,
|
|
998
|
+
structs: STRUCTS,
|
|
999
|
+
input: (input as unknown as Record<string, unknown>),
|
|
1000
|
+
...options,
|
|
1001
|
+
})
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
export const Q_THIRTY_FOUR_GET_PLAYERS_INPUT_TYPE = 10
|
|
1005
|
+
export const Q_THIRTY_FOUR_GET_PLAYERS_INPUT_SIZE = 0
|
|
1006
|
+
|
|
1007
|
+
export interface QThirtyFourGetPlayersOutput {
|
|
1008
|
+
players: number[]
|
|
1009
|
+
returnCode: number
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
const Q_THIRTY_FOUR_GET_PLAYERS_OUTPUT_FIELDS: BinaryField[] = [
|
|
1013
|
+
{
|
|
1014
|
+
name: 'players',
|
|
1015
|
+
type: 'array',
|
|
1016
|
+
offset: 0,
|
|
1017
|
+
byteLength: 36864,
|
|
1018
|
+
arrayLength: 1024,
|
|
1019
|
+
arrayItemByteLength: 36,
|
|
1020
|
+
arrayItemStructRef: 'PlayerData',
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
name: 'returnCode',
|
|
1024
|
+
type: 'uint8',
|
|
1025
|
+
offset: 36864,
|
|
1026
|
+
byteLength: 1,
|
|
1027
|
+
},
|
|
1028
|
+
]
|
|
1029
|
+
|
|
1030
|
+
export function decodeQThirtyFourGetPlayersOutput(
|
|
1031
|
+
data: Uint8Array,
|
|
1032
|
+
): QThirtyFourGetPlayersOutput {
|
|
1033
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_PLAYERS_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetPlayersOutput
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
export async function qThirtyFourGetPlayers(
|
|
1037
|
+
live: SmartContractCaller,
|
|
1038
|
+
options?: ContractCallOptions,
|
|
1039
|
+
): Promise<Result<QThirtyFourGetPlayersOutput, QubicRpcError>> {
|
|
1040
|
+
return callContractFunction({
|
|
1041
|
+
live,
|
|
1042
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
1043
|
+
inputType: Q_THIRTY_FOUR_GET_PLAYERS_INPUT_TYPE,
|
|
1044
|
+
inputSize: Q_THIRTY_FOUR_GET_PLAYERS_INPUT_SIZE,
|
|
1045
|
+
inputFields: [],
|
|
1046
|
+
outputFields: Q_THIRTY_FOUR_GET_PLAYERS_OUTPUT_FIELDS,
|
|
1047
|
+
structs: STRUCTS,
|
|
1048
|
+
input: {},
|
|
1049
|
+
...options,
|
|
1050
|
+
})
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export const Q_THIRTY_FOUR_GET_WINNING_COMBINATIONS_HISTORY_INPUT_TYPE = 11
|
|
1054
|
+
export const Q_THIRTY_FOUR_GET_WINNING_COMBINATIONS_HISTORY_INPUT_SIZE = 0
|
|
1055
|
+
|
|
1056
|
+
export interface QThirtyFourGetWinningCombinationsHistoryOutput {
|
|
1057
|
+
history: number[]
|
|
1058
|
+
returnCode: number
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
const Q_THIRTY_FOUR_GET_WINNING_COMBINATIONS_HISTORY_OUTPUT_FIELDS: BinaryField[] = [
|
|
1062
|
+
{
|
|
1063
|
+
name: 'history',
|
|
1064
|
+
type: 'array',
|
|
1065
|
+
offset: 0,
|
|
1066
|
+
byteLength: 512,
|
|
1067
|
+
arrayLength: 128,
|
|
1068
|
+
arrayItemByteLength: 4,
|
|
1069
|
+
arrayItemStructRef: 'WinningCombination',
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
name: 'returnCode',
|
|
1073
|
+
type: 'uint8',
|
|
1074
|
+
offset: 512,
|
|
1075
|
+
byteLength: 1,
|
|
1076
|
+
},
|
|
1077
|
+
]
|
|
1078
|
+
|
|
1079
|
+
export function decodeQThirtyFourGetWinningCombinationsHistoryOutput(
|
|
1080
|
+
data: Uint8Array,
|
|
1081
|
+
): QThirtyFourGetWinningCombinationsHistoryOutput {
|
|
1082
|
+
return decodePayload(data, Q_THIRTY_FOUR_GET_WINNING_COMBINATIONS_HISTORY_OUTPUT_FIELDS, STRUCTS, (_: Uint8Array) => { throw new Error('unreachable') }) as unknown as QThirtyFourGetWinningCombinationsHistoryOutput
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
export async function qThirtyFourGetWinningCombinationsHistory(
|
|
1086
|
+
live: SmartContractCaller,
|
|
1087
|
+
options?: ContractCallOptions,
|
|
1088
|
+
): Promise<Result<QThirtyFourGetWinningCombinationsHistoryOutput, QubicRpcError>> {
|
|
1089
|
+
return callContractFunction({
|
|
1090
|
+
live,
|
|
1091
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
1092
|
+
inputType: Q_THIRTY_FOUR_GET_WINNING_COMBINATIONS_HISTORY_INPUT_TYPE,
|
|
1093
|
+
inputSize: Q_THIRTY_FOUR_GET_WINNING_COMBINATIONS_HISTORY_INPUT_SIZE,
|
|
1094
|
+
inputFields: [],
|
|
1095
|
+
outputFields: Q_THIRTY_FOUR_GET_WINNING_COMBINATIONS_HISTORY_OUTPUT_FIELDS,
|
|
1096
|
+
structs: STRUCTS,
|
|
1097
|
+
input: {},
|
|
1098
|
+
...options,
|
|
1099
|
+
})
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export const qThirtyFour = {
|
|
1103
|
+
contractIndex: Q_THIRTY_FOUR_CONTRACT_INDEX,
|
|
1104
|
+
GetTicketPrice: qThirtyFourGetTicketPrice,
|
|
1105
|
+
GetNextEpochData: qThirtyFourGetNextEpochData,
|
|
1106
|
+
GetWinnerData: qThirtyFourGetWinnerData,
|
|
1107
|
+
GetPools: qThirtyFourGetPools,
|
|
1108
|
+
GetSchedule: qThirtyFourGetSchedule,
|
|
1109
|
+
GetDrawHour: qThirtyFourGetDrawHour,
|
|
1110
|
+
GetState: qThirtyFourGetState,
|
|
1111
|
+
GetFees: qThirtyFourGetFees,
|
|
1112
|
+
EstimatePrizePayouts: qThirtyFourEstimatePrizePayouts,
|
|
1113
|
+
GetPlayers: qThirtyFourGetPlayers,
|
|
1114
|
+
GetWinningCombinationsHistory: qThirtyFourGetWinningCombinationsHistory,
|
|
1115
|
+
buildBuyTicketInput: buildQThirtyFourBuyTicketInput,
|
|
1116
|
+
decodeBuyTicketOutput: decodeQThirtyFourBuyTicketOutput,
|
|
1117
|
+
buildSetPriceInput: buildQThirtyFourSetPriceInput,
|
|
1118
|
+
decodeSetPriceOutput: decodeQThirtyFourSetPriceOutput,
|
|
1119
|
+
buildSetScheduleInput: buildQThirtyFourSetScheduleInput,
|
|
1120
|
+
decodeSetScheduleOutput: decodeQThirtyFourSetScheduleOutput,
|
|
1121
|
+
buildSetTargetJackpotInput: buildQThirtyFourSetTargetJackpotInput,
|
|
1122
|
+
decodeSetTargetJackpotOutput: decodeQThirtyFourSetTargetJackpotOutput,
|
|
1123
|
+
buildSetDrawHourInput: buildQThirtyFourSetDrawHourInput,
|
|
1124
|
+
decodeSetDrawHourOutput: decodeQThirtyFourSetDrawHourOutput,
|
|
1125
|
+
decodeSyncJackpotOutput: decodeQThirtyFourSyncJackpotOutput,
|
|
1126
|
+
buildBuyTicketsBatchInput: buildQThirtyFourBuyTicketsBatchInput,
|
|
1127
|
+
decodeBuyTicketsBatchOutput: decodeQThirtyFourBuyTicketsBatchOutput,
|
|
1128
|
+
buildBuyTicketsBySelectionInput: buildQThirtyFourBuyTicketsBySelectionInput,
|
|
1129
|
+
decodeBuyTicketsBySelectionOutput: decodeQThirtyFourBuyTicketsBySelectionOutput,
|
|
1130
|
+
}
|
|
1131
|
+
|