@azuro-org/toolkit 4.5.4 → 5.0.0-beta.1
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/README.md +3 -3
- package/dist/abis/{PrematchComboCore.d.ts → AzuroBet.d.ts} +158 -319
- package/dist/abis/Cashback.d.ts +302 -0
- package/dist/abis/Cashout.d.ts +424 -0
- package/dist/abis/{PrematchCore.d.ts → Core.d.ts} +548 -340
- package/dist/abis/LP.d.ts +218 -650
- package/dist/abis/Relayer.d.ts +393 -0
- package/dist/abis/index.d.ts +4 -4
- package/dist/config.d.ts +78 -15
- package/dist/docs/bets/bets.d.ts +64 -0
- package/dist/docs/bets/fragments/bet.d.ts +54 -0
- package/dist/docs/{prematch/fragments/liveBet.d.ts → bets/fragments/legacyLiveBet.d.ts} +2 -2
- package/dist/docs/{prematch/fragments/prematchBet.d.ts → bets/fragments/legacyPrematchBet.d.ts} +2 -2
- package/dist/docs/{prematch → bets}/gameBets.d.ts +2 -0
- package/dist/docs/{prematch/liveBets.d.ts → bets/legacyLiveBets.d.ts} +3 -3
- package/dist/docs/{prematch/prematchBets.d.ts → bets/legacyPrematchBets.d.ts} +3 -3
- package/dist/docs/{prematch → bets}/types.d.ts +1719 -15
- package/dist/docs/{prematch → feed}/condition.d.ts +6 -13
- package/dist/docs/{live → feed}/conditions.d.ts +10 -4
- package/dist/docs/{prematch → feed}/conditionsBatch.d.ts +4 -4
- package/dist/docs/{prematch → feed}/fragments/condition.d.ts +5 -12
- package/dist/docs/feed/fragments/gameInfo.d.ts +31 -0
- package/dist/docs/{prematch → feed}/game.d.ts +10 -10
- package/dist/docs/{prematch → feed}/games.d.ts +7 -7
- package/dist/docs/{prematch → feed}/navigation.d.ts +13 -6
- package/dist/docs/{prematch → feed}/sports.d.ts +7 -7
- package/dist/docs/{prematch → feed}/sportsNavigation.d.ts +3 -6
- package/dist/docs/{live → feed}/types.d.ts +1024 -462
- package/dist/docs/index.d.ts +21 -22
- package/dist/global.d.ts +16 -10
- package/dist/index.d.ts +9 -13
- package/dist/index.js +3817 -3199
- package/dist/utils/cashback/createCashbackTransaction.d.ts +0 -0
- package/dist/utils/cashback/getCashbackBalance.d.ts +0 -0
- package/dist/utils/createBet.d.ts +16 -0
- package/dist/utils/createComboBet.d.ts +16 -0
- package/dist/utils/getBet.d.ts +23 -0
- package/dist/utils/{getLiveBetFee.d.ts → getBetFee.d.ts} +2 -2
- package/dist/utils/getBetStatus.d.ts +6 -4
- package/dist/utils/getBetTypedData.d.ts +16 -0
- package/dist/utils/getComboBetTypedData.d.ts +16 -0
- package/dist/utils/getEndpoints.d.ts +4 -4
- package/dist/utils/getFreebets.d.ts +1 -1
- package/dist/utils/getIsPendingResolution.d.ts +7 -0
- package/dist/utils/getMaxBet.d.ts +17 -0
- package/dist/utils/groupConditionsByMarket.d.ts +13 -11
- package/dist/utils/setupContracts.d.ts +11 -24
- package/package.json +4 -4
- package/dist/abis/LiveCore.d.ts +0 -694
- package/dist/abis/ProxyFront.d.ts +0 -137
- package/dist/docs/live/condition.d.ts +0 -26
- package/dist/docs/live/fragments/condition.d.ts +0 -20
- package/dist/docs/prematch/conditions.d.ts +0 -42
- package/dist/utils/calcOdds.d.ts +0 -28
- package/dist/utils/createLiveBet.d.ts +0 -23
- package/dist/utils/deBridge/createDeBridgeBet.d.ts +0 -65
- package/dist/utils/deBridge/getDeBridgeOrder.d.ts +0 -39
- package/dist/utils/deBridge/getDeBridgeSupportedChains.d.ts +0 -11
- package/dist/utils/deBridge/getDeBridgeSupportedTokens.d.ts +0 -13
- package/dist/utils/getGameStatus.d.ts +0 -16
- package/dist/utils/getLiveBet.d.ts +0 -13
- package/dist/utils/getLiveBetTypedData.d.ts +0 -10
- package/dist/utils/getPrematchBetDataBytes.d.ts +0 -3
- package/dist/utils/groupByConditionId.d.ts +0 -5
- /package/dist/docs/{prematch → bets}/bettors.d.ts +0 -0
- /package/dist/docs/{prematch → bets}/fragments/bettor.d.ts +0 -0
- /package/dist/docs/{prematch → bets}/fragments/mainGameInfo.d.ts +0 -0
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
declare const _default: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly stateMutability: "nonpayable";
|
|
4
|
+
readonly type: "constructor";
|
|
5
|
+
}, {
|
|
6
|
+
readonly inputs: readonly [];
|
|
7
|
+
readonly name: "InvalidInitialization";
|
|
8
|
+
readonly type: "error";
|
|
9
|
+
}, {
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly name: "NotInitializing";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly internalType: "address";
|
|
16
|
+
readonly name: "owner";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}];
|
|
19
|
+
readonly name: "OwnableInvalidOwner";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [{
|
|
23
|
+
readonly internalType: "address";
|
|
24
|
+
readonly name: "account";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
}];
|
|
27
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
28
|
+
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly anonymous: false;
|
|
31
|
+
readonly inputs: readonly [{
|
|
32
|
+
readonly indexed: false;
|
|
33
|
+
readonly internalType: "uint64";
|
|
34
|
+
readonly name: "version";
|
|
35
|
+
readonly type: "uint64";
|
|
36
|
+
}];
|
|
37
|
+
readonly name: "Initialized";
|
|
38
|
+
readonly type: "event";
|
|
39
|
+
}, {
|
|
40
|
+
readonly anonymous: false;
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly indexed: true;
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
readonly name: "previousOwner";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}, {
|
|
47
|
+
readonly indexed: true;
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
readonly name: "newOwner";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}];
|
|
52
|
+
readonly name: "OwnershipTransferred";
|
|
53
|
+
readonly type: "event";
|
|
54
|
+
}, {
|
|
55
|
+
readonly anonymous: false;
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly indexed: true;
|
|
58
|
+
readonly internalType: "address";
|
|
59
|
+
readonly name: "relayer";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}, {
|
|
62
|
+
readonly indexed: false;
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
readonly name: "amount";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}];
|
|
67
|
+
readonly name: "RelayerRewarded";
|
|
68
|
+
readonly type: "event";
|
|
69
|
+
}, {
|
|
70
|
+
readonly inputs: readonly [];
|
|
71
|
+
readonly name: "_CLIENTBETDATA_TYPEHASH";
|
|
72
|
+
readonly outputs: readonly [{
|
|
73
|
+
readonly internalType: "bytes32";
|
|
74
|
+
readonly name: "";
|
|
75
|
+
readonly type: "bytes32";
|
|
76
|
+
}];
|
|
77
|
+
readonly stateMutability: "view";
|
|
78
|
+
readonly type: "function";
|
|
79
|
+
}, {
|
|
80
|
+
readonly inputs: readonly [];
|
|
81
|
+
readonly name: "_CLIENTDATA_TYPEHASH";
|
|
82
|
+
readonly outputs: readonly [{
|
|
83
|
+
readonly internalType: "bytes32";
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly type: "bytes32";
|
|
86
|
+
}];
|
|
87
|
+
readonly stateMutability: "view";
|
|
88
|
+
readonly type: "function";
|
|
89
|
+
}, {
|
|
90
|
+
readonly inputs: readonly [];
|
|
91
|
+
readonly name: "_COMBOPART_TYPE_TYPEHASH";
|
|
92
|
+
readonly outputs: readonly [{
|
|
93
|
+
readonly internalType: "bytes32";
|
|
94
|
+
readonly name: "";
|
|
95
|
+
readonly type: "bytes32";
|
|
96
|
+
}];
|
|
97
|
+
readonly stateMutability: "view";
|
|
98
|
+
readonly type: "function";
|
|
99
|
+
}, {
|
|
100
|
+
readonly inputs: readonly [];
|
|
101
|
+
readonly name: "_SUBBET_TYPEHASH";
|
|
102
|
+
readonly outputs: readonly [{
|
|
103
|
+
readonly internalType: "bytes32";
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "bytes32";
|
|
106
|
+
}];
|
|
107
|
+
readonly stateMutability: "view";
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
}, {
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly components: readonly [{
|
|
112
|
+
readonly internalType: "address";
|
|
113
|
+
readonly name: "betOwner";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
}, {
|
|
116
|
+
readonly components: readonly [{
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
readonly name: "gameId";
|
|
119
|
+
readonly type: "uint256";
|
|
120
|
+
}, {
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
readonly name: "conditionId";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}, {
|
|
125
|
+
readonly internalType: "enum IOrder.ConditionKind";
|
|
126
|
+
readonly name: "conditionKind";
|
|
127
|
+
readonly type: "uint8";
|
|
128
|
+
}, {
|
|
129
|
+
readonly internalType: "uint64[]";
|
|
130
|
+
readonly name: "odds";
|
|
131
|
+
readonly type: "uint64[]";
|
|
132
|
+
}, {
|
|
133
|
+
readonly internalType: "uint128[]";
|
|
134
|
+
readonly name: "outcomes";
|
|
135
|
+
readonly type: "uint128[]";
|
|
136
|
+
}, {
|
|
137
|
+
readonly internalType: "uint128";
|
|
138
|
+
readonly name: "payoutLimit";
|
|
139
|
+
readonly type: "uint128";
|
|
140
|
+
}, {
|
|
141
|
+
readonly internalType: "uint8";
|
|
142
|
+
readonly name: "winningOutcomesCount";
|
|
143
|
+
readonly type: "uint8";
|
|
144
|
+
}];
|
|
145
|
+
readonly internalType: "struct IOrder.ConditionData[]";
|
|
146
|
+
readonly name: "conditionDatas";
|
|
147
|
+
readonly type: "tuple[]";
|
|
148
|
+
}, {
|
|
149
|
+
readonly internalType: "enum IOrder.BetType";
|
|
150
|
+
readonly name: "betType";
|
|
151
|
+
readonly type: "uint8";
|
|
152
|
+
}, {
|
|
153
|
+
readonly internalType: "address";
|
|
154
|
+
readonly name: "oracle";
|
|
155
|
+
readonly type: "address";
|
|
156
|
+
}, {
|
|
157
|
+
readonly internalType: "bytes";
|
|
158
|
+
readonly name: "clientBetData";
|
|
159
|
+
readonly type: "bytes";
|
|
160
|
+
}, {
|
|
161
|
+
readonly internalType: "bytes";
|
|
162
|
+
readonly name: "bettorSignature";
|
|
163
|
+
readonly type: "bytes";
|
|
164
|
+
}, {
|
|
165
|
+
readonly internalType: "bytes";
|
|
166
|
+
readonly name: "oracleSignature";
|
|
167
|
+
readonly type: "bytes";
|
|
168
|
+
}];
|
|
169
|
+
readonly internalType: "struct IOrder.OrderData[]";
|
|
170
|
+
readonly name: "orders";
|
|
171
|
+
readonly type: "tuple[]";
|
|
172
|
+
}];
|
|
173
|
+
readonly name: "betFor";
|
|
174
|
+
readonly outputs: readonly [];
|
|
175
|
+
readonly stateMutability: "nonpayable";
|
|
176
|
+
readonly type: "function";
|
|
177
|
+
}, {
|
|
178
|
+
readonly inputs: readonly [{
|
|
179
|
+
readonly components: readonly [{
|
|
180
|
+
readonly internalType: "address";
|
|
181
|
+
readonly name: "betOwner";
|
|
182
|
+
readonly type: "address";
|
|
183
|
+
}, {
|
|
184
|
+
readonly components: readonly [{
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
readonly name: "gameId";
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
}, {
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
readonly name: "conditionId";
|
|
191
|
+
readonly type: "uint256";
|
|
192
|
+
}, {
|
|
193
|
+
readonly internalType: "enum IOrder.ConditionKind";
|
|
194
|
+
readonly name: "conditionKind";
|
|
195
|
+
readonly type: "uint8";
|
|
196
|
+
}, {
|
|
197
|
+
readonly internalType: "uint64[]";
|
|
198
|
+
readonly name: "odds";
|
|
199
|
+
readonly type: "uint64[]";
|
|
200
|
+
}, {
|
|
201
|
+
readonly internalType: "uint128[]";
|
|
202
|
+
readonly name: "outcomes";
|
|
203
|
+
readonly type: "uint128[]";
|
|
204
|
+
}, {
|
|
205
|
+
readonly internalType: "uint128";
|
|
206
|
+
readonly name: "payoutLimit";
|
|
207
|
+
readonly type: "uint128";
|
|
208
|
+
}, {
|
|
209
|
+
readonly internalType: "uint8";
|
|
210
|
+
readonly name: "winningOutcomesCount";
|
|
211
|
+
readonly type: "uint8";
|
|
212
|
+
}];
|
|
213
|
+
readonly internalType: "struct IOrder.ConditionData[]";
|
|
214
|
+
readonly name: "conditionDatas";
|
|
215
|
+
readonly type: "tuple[]";
|
|
216
|
+
}, {
|
|
217
|
+
readonly internalType: "enum IOrder.BetType";
|
|
218
|
+
readonly name: "betType";
|
|
219
|
+
readonly type: "uint8";
|
|
220
|
+
}, {
|
|
221
|
+
readonly internalType: "address";
|
|
222
|
+
readonly name: "oracle";
|
|
223
|
+
readonly type: "address";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "bytes";
|
|
226
|
+
readonly name: "clientBetData";
|
|
227
|
+
readonly type: "bytes";
|
|
228
|
+
}, {
|
|
229
|
+
readonly internalType: "bytes";
|
|
230
|
+
readonly name: "bettorSignature";
|
|
231
|
+
readonly type: "bytes";
|
|
232
|
+
}, {
|
|
233
|
+
readonly internalType: "bytes";
|
|
234
|
+
readonly name: "oracleSignature";
|
|
235
|
+
readonly type: "bytes";
|
|
236
|
+
}];
|
|
237
|
+
readonly internalType: "struct IOrder.OrderData";
|
|
238
|
+
readonly name: "order";
|
|
239
|
+
readonly type: "tuple";
|
|
240
|
+
}];
|
|
241
|
+
readonly name: "getClientData";
|
|
242
|
+
readonly outputs: readonly [{
|
|
243
|
+
readonly components: readonly [{
|
|
244
|
+
readonly internalType: "string";
|
|
245
|
+
readonly name: "attention";
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
}, {
|
|
248
|
+
readonly internalType: "address";
|
|
249
|
+
readonly name: "affiliate";
|
|
250
|
+
readonly type: "address";
|
|
251
|
+
}, {
|
|
252
|
+
readonly internalType: "address";
|
|
253
|
+
readonly name: "core";
|
|
254
|
+
readonly type: "address";
|
|
255
|
+
}, {
|
|
256
|
+
readonly internalType: "uint256";
|
|
257
|
+
readonly name: "expiresAt";
|
|
258
|
+
readonly type: "uint256";
|
|
259
|
+
}, {
|
|
260
|
+
readonly internalType: "uint256";
|
|
261
|
+
readonly name: "chainId";
|
|
262
|
+
readonly type: "uint256";
|
|
263
|
+
}, {
|
|
264
|
+
readonly internalType: "uint256";
|
|
265
|
+
readonly name: "relayerFeeAmount";
|
|
266
|
+
readonly type: "uint256";
|
|
267
|
+
}];
|
|
268
|
+
readonly internalType: "struct IOrder.ClientData";
|
|
269
|
+
readonly name: "clientData";
|
|
270
|
+
readonly type: "tuple";
|
|
271
|
+
}];
|
|
272
|
+
readonly stateMutability: "pure";
|
|
273
|
+
readonly type: "function";
|
|
274
|
+
}, {
|
|
275
|
+
readonly inputs: readonly [{
|
|
276
|
+
readonly components: readonly [{
|
|
277
|
+
readonly internalType: "address";
|
|
278
|
+
readonly name: "betOwner";
|
|
279
|
+
readonly type: "address";
|
|
280
|
+
}, {
|
|
281
|
+
readonly components: readonly [{
|
|
282
|
+
readonly internalType: "uint256";
|
|
283
|
+
readonly name: "gameId";
|
|
284
|
+
readonly type: "uint256";
|
|
285
|
+
}, {
|
|
286
|
+
readonly internalType: "uint256";
|
|
287
|
+
readonly name: "conditionId";
|
|
288
|
+
readonly type: "uint256";
|
|
289
|
+
}, {
|
|
290
|
+
readonly internalType: "enum IOrder.ConditionKind";
|
|
291
|
+
readonly name: "conditionKind";
|
|
292
|
+
readonly type: "uint8";
|
|
293
|
+
}, {
|
|
294
|
+
readonly internalType: "uint64[]";
|
|
295
|
+
readonly name: "odds";
|
|
296
|
+
readonly type: "uint64[]";
|
|
297
|
+
}, {
|
|
298
|
+
readonly internalType: "uint128[]";
|
|
299
|
+
readonly name: "outcomes";
|
|
300
|
+
readonly type: "uint128[]";
|
|
301
|
+
}, {
|
|
302
|
+
readonly internalType: "uint128";
|
|
303
|
+
readonly name: "payoutLimit";
|
|
304
|
+
readonly type: "uint128";
|
|
305
|
+
}, {
|
|
306
|
+
readonly internalType: "uint8";
|
|
307
|
+
readonly name: "winningOutcomesCount";
|
|
308
|
+
readonly type: "uint8";
|
|
309
|
+
}];
|
|
310
|
+
readonly internalType: "struct IOrder.ConditionData[]";
|
|
311
|
+
readonly name: "conditionDatas";
|
|
312
|
+
readonly type: "tuple[]";
|
|
313
|
+
}, {
|
|
314
|
+
readonly internalType: "enum IOrder.BetType";
|
|
315
|
+
readonly name: "betType";
|
|
316
|
+
readonly type: "uint8";
|
|
317
|
+
}, {
|
|
318
|
+
readonly internalType: "address";
|
|
319
|
+
readonly name: "oracle";
|
|
320
|
+
readonly type: "address";
|
|
321
|
+
}, {
|
|
322
|
+
readonly internalType: "bytes";
|
|
323
|
+
readonly name: "clientBetData";
|
|
324
|
+
readonly type: "bytes";
|
|
325
|
+
}, {
|
|
326
|
+
readonly internalType: "bytes";
|
|
327
|
+
readonly name: "bettorSignature";
|
|
328
|
+
readonly type: "bytes";
|
|
329
|
+
}, {
|
|
330
|
+
readonly internalType: "bytes";
|
|
331
|
+
readonly name: "oracleSignature";
|
|
332
|
+
readonly type: "bytes";
|
|
333
|
+
}];
|
|
334
|
+
readonly internalType: "struct IOrder.OrderData";
|
|
335
|
+
readonly name: "order";
|
|
336
|
+
readonly type: "tuple";
|
|
337
|
+
}];
|
|
338
|
+
readonly name: "getOrderBetsAmounts";
|
|
339
|
+
readonly outputs: readonly [{
|
|
340
|
+
readonly internalType: "uint128";
|
|
341
|
+
readonly name: "totalAmount";
|
|
342
|
+
readonly type: "uint128";
|
|
343
|
+
}];
|
|
344
|
+
readonly stateMutability: "pure";
|
|
345
|
+
readonly type: "function";
|
|
346
|
+
}, {
|
|
347
|
+
readonly inputs: readonly [{
|
|
348
|
+
readonly internalType: "address";
|
|
349
|
+
readonly name: "lp_";
|
|
350
|
+
readonly type: "address";
|
|
351
|
+
}];
|
|
352
|
+
readonly name: "initialize";
|
|
353
|
+
readonly outputs: readonly [];
|
|
354
|
+
readonly stateMutability: "nonpayable";
|
|
355
|
+
readonly type: "function";
|
|
356
|
+
}, {
|
|
357
|
+
readonly inputs: readonly [];
|
|
358
|
+
readonly name: "lp";
|
|
359
|
+
readonly outputs: readonly [{
|
|
360
|
+
readonly internalType: "contract ILP";
|
|
361
|
+
readonly name: "";
|
|
362
|
+
readonly type: "address";
|
|
363
|
+
}];
|
|
364
|
+
readonly stateMutability: "view";
|
|
365
|
+
readonly type: "function";
|
|
366
|
+
}, {
|
|
367
|
+
readonly inputs: readonly [];
|
|
368
|
+
readonly name: "owner";
|
|
369
|
+
readonly outputs: readonly [{
|
|
370
|
+
readonly internalType: "address";
|
|
371
|
+
readonly name: "";
|
|
372
|
+
readonly type: "address";
|
|
373
|
+
}];
|
|
374
|
+
readonly stateMutability: "view";
|
|
375
|
+
readonly type: "function";
|
|
376
|
+
}, {
|
|
377
|
+
readonly inputs: readonly [];
|
|
378
|
+
readonly name: "renounceOwnership";
|
|
379
|
+
readonly outputs: readonly [];
|
|
380
|
+
readonly stateMutability: "nonpayable";
|
|
381
|
+
readonly type: "function";
|
|
382
|
+
}, {
|
|
383
|
+
readonly inputs: readonly [{
|
|
384
|
+
readonly internalType: "address";
|
|
385
|
+
readonly name: "newOwner";
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
}];
|
|
388
|
+
readonly name: "transferOwnership";
|
|
389
|
+
readonly outputs: readonly [];
|
|
390
|
+
readonly stateMutability: "nonpayable";
|
|
391
|
+
readonly type: "function";
|
|
392
|
+
}];
|
|
393
|
+
export default _default;
|
package/dist/abis/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as lpAbi } from './LP';
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as prematchCoreAbi } from './PrematchCore';
|
|
5
|
-
export { default as proxyFrontAbi } from './ProxyFront';
|
|
2
|
+
export { default as coreAbi } from './Core';
|
|
3
|
+
export { default as azuroBetAbi } from './AzuroBet';
|
|
6
4
|
export { default as freeBetAbi } from './FreeBet';
|
|
5
|
+
export { default as cashoutAbi } from './Cashout';
|
|
6
|
+
export { default as relayerAbi } from './Relayer';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
import { Environment } from './envs';
|
|
2
2
|
import { type ChainData } from './global';
|
|
3
3
|
export declare const ODDS_DECIMALS = 12;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
4
|
+
export declare const MIN_BET_AMOUNT = 1;
|
|
5
|
+
export declare const CLIENT_DATA_TYPES: readonly [{
|
|
6
|
+
readonly name: "attention";
|
|
7
|
+
readonly type: "string";
|
|
8
|
+
}, {
|
|
9
|
+
readonly name: "affiliate";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "core";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "expiresAt";
|
|
16
|
+
readonly type: "uint256";
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "chainId";
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "relayerFeeAmount";
|
|
22
|
+
readonly type: "uint256";
|
|
23
|
+
}];
|
|
24
|
+
export declare const BET_DATA_TYPES: {
|
|
7
25
|
readonly ClientBetData: readonly [{
|
|
26
|
+
readonly name: "clientData";
|
|
27
|
+
readonly type: "ClientData";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "bets";
|
|
30
|
+
readonly type: "SubBet[]";
|
|
31
|
+
}];
|
|
32
|
+
readonly ClientData: readonly [{
|
|
8
33
|
readonly name: "attention";
|
|
9
34
|
readonly type: "string";
|
|
10
35
|
}, {
|
|
@@ -14,20 +39,58 @@ export declare const LIVE_BET_DATA_TYPES: {
|
|
|
14
39
|
readonly name: "core";
|
|
15
40
|
readonly type: "address";
|
|
16
41
|
}, {
|
|
17
|
-
readonly name: "
|
|
18
|
-
readonly type: "
|
|
42
|
+
readonly name: "expiresAt";
|
|
43
|
+
readonly type: "uint256";
|
|
19
44
|
}, {
|
|
20
|
-
readonly name: "
|
|
45
|
+
readonly name: "chainId";
|
|
21
46
|
readonly type: "uint256";
|
|
22
47
|
}, {
|
|
48
|
+
readonly name: "relayerFeeAmount";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}];
|
|
51
|
+
readonly SubBet: readonly [{
|
|
23
52
|
readonly name: "conditionId";
|
|
24
53
|
readonly type: "uint256";
|
|
25
54
|
}, {
|
|
26
55
|
readonly name: "outcomeId";
|
|
56
|
+
readonly type: "uint128";
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "minOdds";
|
|
27
59
|
readonly type: "uint64";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "amount";
|
|
62
|
+
readonly type: "uint128";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "nonce";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}];
|
|
67
|
+
};
|
|
68
|
+
export declare const COMBO_BET_DATA_TYPES: {
|
|
69
|
+
readonly ClientComboBetData: readonly [{
|
|
70
|
+
readonly name: "clientData";
|
|
71
|
+
readonly type: "ClientData";
|
|
28
72
|
}, {
|
|
29
73
|
readonly name: "minOdds";
|
|
30
74
|
readonly type: "uint64";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "amount";
|
|
77
|
+
readonly type: "uint128";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "nonce";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "bets";
|
|
83
|
+
readonly type: "ComboPart[]";
|
|
84
|
+
}];
|
|
85
|
+
readonly ClientData: readonly [{
|
|
86
|
+
readonly name: "attention";
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "affiliate";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "core";
|
|
93
|
+
readonly type: "address";
|
|
31
94
|
}, {
|
|
32
95
|
readonly name: "expiresAt";
|
|
33
96
|
readonly type: "uint256";
|
|
@@ -38,9 +101,16 @@ export declare const LIVE_BET_DATA_TYPES: {
|
|
|
38
101
|
readonly name: "relayerFeeAmount";
|
|
39
102
|
readonly type: "uint256";
|
|
40
103
|
}];
|
|
104
|
+
readonly ComboPart: readonly [{
|
|
105
|
+
readonly name: "conditionId";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "outcomeId";
|
|
109
|
+
readonly type: "uint128";
|
|
110
|
+
}];
|
|
41
111
|
};
|
|
42
|
-
export declare const
|
|
43
|
-
export declare const
|
|
112
|
+
export declare const TYPED_DATA_DOMAIN_NAME = "Live Betting";
|
|
113
|
+
export declare const TYPED_DATA_DOMAIN_VERSION = "1.0.0";
|
|
44
114
|
export declare const CASHOUT_DATA_TYPES: {
|
|
45
115
|
readonly CashOutItem: readonly [{
|
|
46
116
|
readonly name: "betId";
|
|
@@ -68,13 +138,6 @@ export declare const CASHOUT_DATA_TYPES: {
|
|
|
68
138
|
};
|
|
69
139
|
export declare const CASHOUT_TYPED_DATA_DOMAIN_NAME = "Cash Out";
|
|
70
140
|
export declare const CASHOUT_TYPED_DATA_DOMAIN_VERSION = "1.0.0";
|
|
71
|
-
export declare const deBridgeUrl = "https://api.dln.trade/v1.0";
|
|
72
|
-
export declare const deBridgeTxUrl = "https://stats-api.dln.trade/api";
|
|
73
|
-
export declare const liveHostAddress = "0x67Fca88E2f5F2C33b86bFa4EccfCb8dCD6a56D17";
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated please, check the liveCore address existence for specific chain in chainsData
|
|
76
|
-
*/
|
|
77
|
-
export declare const liveSupportedChains: ChainId[];
|
|
78
141
|
export declare const chainsData: {
|
|
79
142
|
100: ChainData;
|
|
80
143
|
137: ChainData;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as Types from './types';
|
|
2
|
+
export type BetsQueryVariables = Types.Exact<{
|
|
3
|
+
first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
4
|
+
skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
5
|
+
where: Types.V3_Bet_Filter;
|
|
6
|
+
orderBy?: Types.InputMaybe<Types.V3_Bet_OrderBy>;
|
|
7
|
+
orderDirection?: Types.InputMaybe<Types.OrderDirection>;
|
|
8
|
+
}>;
|
|
9
|
+
export type BetsQuery = {
|
|
10
|
+
__typename?: 'Query';
|
|
11
|
+
v3Bets: Array<{
|
|
12
|
+
__typename?: 'V3_Bet';
|
|
13
|
+
id: string;
|
|
14
|
+
amount: string;
|
|
15
|
+
status: Types.BetStatus;
|
|
16
|
+
potentialPayout: string;
|
|
17
|
+
payout?: string | null;
|
|
18
|
+
result?: Types.BetResult | null;
|
|
19
|
+
odds: string;
|
|
20
|
+
settledOdds?: string | null;
|
|
21
|
+
affiliate: string;
|
|
22
|
+
isRedeemed: boolean;
|
|
23
|
+
isRedeemable: boolean;
|
|
24
|
+
isCashedOut: boolean;
|
|
25
|
+
tokenId: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
txHash: string;
|
|
28
|
+
core: {
|
|
29
|
+
__typename?: 'CoreContract';
|
|
30
|
+
address: string;
|
|
31
|
+
liquidityPool: {
|
|
32
|
+
__typename?: 'LiquidityPoolContract';
|
|
33
|
+
address: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
selections: Array<{
|
|
37
|
+
__typename?: 'V3_Selection';
|
|
38
|
+
odds: string;
|
|
39
|
+
result?: Types.SelectionResult | null;
|
|
40
|
+
outcome: {
|
|
41
|
+
__typename?: 'V3_Outcome';
|
|
42
|
+
outcomeId: string;
|
|
43
|
+
title?: string | null;
|
|
44
|
+
condition: {
|
|
45
|
+
__typename?: 'V3_Condition';
|
|
46
|
+
conditionId: string;
|
|
47
|
+
title?: string | null;
|
|
48
|
+
status: Types.ConditionStatus;
|
|
49
|
+
gameId: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}>;
|
|
53
|
+
freebet?: {
|
|
54
|
+
__typename?: 'Freebet';
|
|
55
|
+
freebetId: string;
|
|
56
|
+
contractAddress: string;
|
|
57
|
+
} | null;
|
|
58
|
+
cashout?: {
|
|
59
|
+
__typename?: 'Cashout';
|
|
60
|
+
payout: string;
|
|
61
|
+
} | null;
|
|
62
|
+
}>;
|
|
63
|
+
};
|
|
64
|
+
export declare const BetsDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as Types from '../types';
|
|
2
|
+
export type BetFragment = {
|
|
3
|
+
__typename?: 'V3_Bet';
|
|
4
|
+
id: string;
|
|
5
|
+
amount: string;
|
|
6
|
+
status: Types.BetStatus;
|
|
7
|
+
potentialPayout: string;
|
|
8
|
+
payout?: string | null;
|
|
9
|
+
result?: Types.BetResult | null;
|
|
10
|
+
odds: string;
|
|
11
|
+
settledOdds?: string | null;
|
|
12
|
+
affiliate: string;
|
|
13
|
+
isRedeemed: boolean;
|
|
14
|
+
isRedeemable: boolean;
|
|
15
|
+
isCashedOut: boolean;
|
|
16
|
+
tokenId: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
txHash: string;
|
|
19
|
+
core: {
|
|
20
|
+
__typename?: 'CoreContract';
|
|
21
|
+
address: string;
|
|
22
|
+
liquidityPool: {
|
|
23
|
+
__typename?: 'LiquidityPoolContract';
|
|
24
|
+
address: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
selections: Array<{
|
|
28
|
+
__typename?: 'V3_Selection';
|
|
29
|
+
odds: string;
|
|
30
|
+
result?: Types.SelectionResult | null;
|
|
31
|
+
outcome: {
|
|
32
|
+
__typename?: 'V3_Outcome';
|
|
33
|
+
outcomeId: string;
|
|
34
|
+
title?: string | null;
|
|
35
|
+
condition: {
|
|
36
|
+
__typename?: 'V3_Condition';
|
|
37
|
+
conditionId: string;
|
|
38
|
+
title?: string | null;
|
|
39
|
+
status: Types.ConditionStatus;
|
|
40
|
+
gameId: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
44
|
+
freebet?: {
|
|
45
|
+
__typename?: 'Freebet';
|
|
46
|
+
freebetId: string;
|
|
47
|
+
contractAddress: string;
|
|
48
|
+
} | null;
|
|
49
|
+
cashout?: {
|
|
50
|
+
__typename?: 'Cashout';
|
|
51
|
+
payout: string;
|
|
52
|
+
} | null;
|
|
53
|
+
};
|
|
54
|
+
export declare const BetFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Types from '../types';
|
|
2
|
-
export type
|
|
2
|
+
export type LegacyLiveBetFragment = {
|
|
3
3
|
__typename?: 'LiveBet';
|
|
4
4
|
id: string;
|
|
5
5
|
amount: string;
|
|
@@ -44,4 +44,4 @@ export type LiveBetFragment = {
|
|
|
44
44
|
payout: string;
|
|
45
45
|
} | null;
|
|
46
46
|
};
|
|
47
|
-
export declare const
|
|
47
|
+
export declare const LegacyLiveBetFragmentDoc: import("graphql/language/ast").DocumentNode;
|
package/dist/docs/{prematch/fragments/prematchBet.d.ts → bets/fragments/legacyPrematchBet.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Types from '../types';
|
|
2
|
-
export type
|
|
2
|
+
export type LegacyPrematchBetFragment = {
|
|
3
3
|
__typename?: 'Bet';
|
|
4
4
|
id: string;
|
|
5
5
|
amount: string;
|
|
@@ -79,4 +79,4 @@ export type PrematchBetFragment = {
|
|
|
79
79
|
payout: string;
|
|
80
80
|
} | null;
|
|
81
81
|
};
|
|
82
|
-
export declare const
|
|
82
|
+
export declare const LegacyPrematchBetFragmentDoc: import("graphql/language/ast").DocumentNode;
|