@azuro-org/toolkit 5.0.0 → 5.1.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 +4 -4
- package/dist/abis/{FreeBet.d.ts → PayMaster.d.ts} +328 -164
- package/dist/abis/Relayer.d.ts +5 -0
- package/dist/abis/Vault.d.ts +762 -0
- package/dist/abis/index.d.ts +2 -1
- package/dist/config.d.ts +0 -1
- package/dist/docs/bets/bets.d.ts +3 -5
- package/dist/docs/bets/fragments/bet.d.ts +3 -5
- package/dist/docs/bets/fragments/legacyPrematchBet.d.ts +2 -0
- package/dist/docs/bets/gameBets.d.ts +3 -0
- package/dist/docs/bets/legacyBets.d.ts +2 -0
- package/dist/docs/bets/types.d.ts +224 -0
- package/dist/docs/feed/fragments/gameInfo.d.ts +2 -0
- package/dist/docs/feed/game.d.ts +2 -0
- package/dist/docs/feed/games.d.ts +2 -0
- package/dist/docs/feed/sports.d.ts +2 -0
- package/dist/docs/feed/types.d.ts +21 -21
- package/dist/docs/legacy-live-feed/games.d.ts +2 -0
- package/dist/global.d.ts +26 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1259 -150
- package/dist/utils/bonus/getAvailableFreebets.d.ts +16 -0
- package/dist/utils/bonus/getBonuses.d.ts +28 -0
- package/dist/utils/createBet.d.ts +1 -0
- package/dist/utils/createComboBet.d.ts +1 -0
- package/dist/utils/setupContracts.d.ts +12 -2
- package/package.json +7 -6
- package/dist/utils/getFreebets.d.ts +0 -35
|
@@ -1,53 +1,59 @@
|
|
|
1
1
|
declare const _default: readonly [{
|
|
2
2
|
readonly inputs: readonly [];
|
|
3
|
-
readonly
|
|
4
|
-
readonly type: "
|
|
3
|
+
readonly stateMutability: "nonpayable";
|
|
4
|
+
readonly type: "constructor";
|
|
5
5
|
}, {
|
|
6
6
|
readonly inputs: readonly [];
|
|
7
|
-
readonly name: "
|
|
7
|
+
readonly name: "AlreadyPaid";
|
|
8
8
|
readonly type: "error";
|
|
9
9
|
}, {
|
|
10
10
|
readonly inputs: readonly [];
|
|
11
|
-
readonly name: "
|
|
11
|
+
readonly name: "BetDoesNotExist";
|
|
12
12
|
readonly type: "error";
|
|
13
13
|
}, {
|
|
14
14
|
readonly inputs: readonly [];
|
|
15
|
-
readonly name: "
|
|
15
|
+
readonly name: "IncorrectRelayer";
|
|
16
16
|
readonly type: "error";
|
|
17
17
|
}, {
|
|
18
18
|
readonly inputs: readonly [];
|
|
19
|
-
readonly name: "
|
|
19
|
+
readonly name: "InsufficientFeeFund";
|
|
20
20
|
readonly type: "error";
|
|
21
21
|
}, {
|
|
22
22
|
readonly inputs: readonly [];
|
|
23
|
-
readonly name: "
|
|
23
|
+
readonly name: "InsufficientFreeBetFund";
|
|
24
24
|
readonly type: "error";
|
|
25
25
|
}, {
|
|
26
26
|
readonly inputs: readonly [];
|
|
27
|
-
readonly name: "
|
|
27
|
+
readonly name: "InvalidInitialization";
|
|
28
28
|
readonly type: "error";
|
|
29
29
|
}, {
|
|
30
30
|
readonly inputs: readonly [];
|
|
31
|
-
readonly name: "
|
|
31
|
+
readonly name: "LpNotMatch";
|
|
32
32
|
readonly type: "error";
|
|
33
33
|
}, {
|
|
34
34
|
readonly inputs: readonly [];
|
|
35
|
-
readonly name: "
|
|
35
|
+
readonly name: "NotInitializing";
|
|
36
36
|
readonly type: "error";
|
|
37
37
|
}, {
|
|
38
38
|
readonly inputs: readonly [];
|
|
39
|
-
readonly name: "
|
|
39
|
+
readonly name: "NothingChanged";
|
|
40
40
|
readonly type: "error";
|
|
41
41
|
}, {
|
|
42
|
-
readonly anonymous: false;
|
|
43
42
|
readonly inputs: readonly [{
|
|
44
|
-
readonly indexed: false;
|
|
45
43
|
readonly internalType: "address";
|
|
46
|
-
readonly name: "
|
|
44
|
+
readonly name: "owner";
|
|
47
45
|
readonly type: "address";
|
|
48
46
|
}];
|
|
49
|
-
readonly name: "
|
|
50
|
-
readonly type: "
|
|
47
|
+
readonly name: "OwnableInvalidOwner";
|
|
48
|
+
readonly type: "error";
|
|
49
|
+
}, {
|
|
50
|
+
readonly inputs: readonly [{
|
|
51
|
+
readonly internalType: "address";
|
|
52
|
+
readonly name: "account";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
}];
|
|
55
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
56
|
+
readonly type: "error";
|
|
51
57
|
}, {
|
|
52
58
|
readonly anonymous: false;
|
|
53
59
|
readonly inputs: readonly [{
|
|
@@ -73,45 +79,30 @@ declare const _default: readonly [{
|
|
|
73
79
|
}];
|
|
74
80
|
readonly name: "BettorWin";
|
|
75
81
|
readonly type: "event";
|
|
76
|
-
}, {
|
|
77
|
-
readonly anonymous: false;
|
|
78
|
-
readonly inputs: readonly [{
|
|
79
|
-
readonly indexed: false;
|
|
80
|
-
readonly internalType: "uint8";
|
|
81
|
-
readonly name: "version";
|
|
82
|
-
readonly type: "uint8";
|
|
83
|
-
}];
|
|
84
|
-
readonly name: "Initialized";
|
|
85
|
-
readonly type: "event";
|
|
86
82
|
}, {
|
|
87
83
|
readonly anonymous: false;
|
|
88
84
|
readonly inputs: readonly [{
|
|
89
85
|
readonly indexed: true;
|
|
90
86
|
readonly internalType: "address";
|
|
91
|
-
readonly name: "
|
|
87
|
+
readonly name: "affiliate";
|
|
92
88
|
readonly type: "address";
|
|
93
|
-
}
|
|
94
|
-
readonly name: "LpChanged";
|
|
95
|
-
readonly type: "event";
|
|
96
|
-
}, {
|
|
97
|
-
readonly anonymous: false;
|
|
98
|
-
readonly inputs: readonly [{
|
|
89
|
+
}, {
|
|
99
90
|
readonly indexed: false;
|
|
100
|
-
readonly internalType: "
|
|
101
|
-
readonly name: "
|
|
102
|
-
readonly type: "
|
|
91
|
+
readonly internalType: "uint256";
|
|
92
|
+
readonly name: "freebetAmount";
|
|
93
|
+
readonly type: "uint256";
|
|
94
|
+
}, {
|
|
95
|
+
readonly indexed: false;
|
|
96
|
+
readonly internalType: "uint256";
|
|
97
|
+
readonly name: "feeAmount";
|
|
98
|
+
readonly type: "uint256";
|
|
103
99
|
}];
|
|
104
|
-
readonly name: "
|
|
100
|
+
readonly name: "DepositedFunds";
|
|
105
101
|
readonly type: "event";
|
|
106
102
|
}, {
|
|
107
103
|
readonly anonymous: false;
|
|
108
104
|
readonly inputs: readonly [{
|
|
109
105
|
readonly indexed: true;
|
|
110
|
-
readonly internalType: "uint256";
|
|
111
|
-
readonly name: "freeBetId";
|
|
112
|
-
readonly type: "uint256";
|
|
113
|
-
}, {
|
|
114
|
-
readonly indexed: false;
|
|
115
106
|
readonly internalType: "address";
|
|
116
107
|
readonly name: "core";
|
|
117
108
|
readonly type: "address";
|
|
@@ -123,25 +114,70 @@ declare const _default: readonly [{
|
|
|
123
114
|
}, {
|
|
124
115
|
readonly indexed: true;
|
|
125
116
|
readonly internalType: "uint256";
|
|
126
|
-
readonly name: "
|
|
117
|
+
readonly name: "betId";
|
|
127
118
|
readonly type: "uint256";
|
|
128
119
|
}, {
|
|
129
120
|
readonly indexed: false;
|
|
130
|
-
readonly internalType: "
|
|
131
|
-
readonly name: "
|
|
132
|
-
readonly type: "
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
readonly name: "freeBetId";
|
|
123
|
+
readonly type: "uint256";
|
|
133
124
|
}, {
|
|
125
|
+
readonly indexed: false;
|
|
126
|
+
readonly internalType: "uint256";
|
|
127
|
+
readonly name: "amount";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
}];
|
|
130
|
+
readonly name: "FreeBetReturned";
|
|
131
|
+
readonly type: "event";
|
|
132
|
+
}, {
|
|
133
|
+
readonly anonymous: false;
|
|
134
|
+
readonly inputs: readonly [{
|
|
134
135
|
readonly indexed: false;
|
|
135
136
|
readonly internalType: "uint64";
|
|
136
|
-
readonly name: "
|
|
137
|
+
readonly name: "version";
|
|
137
138
|
readonly type: "uint64";
|
|
139
|
+
}];
|
|
140
|
+
readonly name: "Initialized";
|
|
141
|
+
readonly type: "event";
|
|
142
|
+
}, {
|
|
143
|
+
readonly anonymous: false;
|
|
144
|
+
readonly inputs: readonly [{
|
|
145
|
+
readonly indexed: true;
|
|
146
|
+
readonly internalType: "uint256";
|
|
147
|
+
readonly name: "freeBetId";
|
|
148
|
+
readonly type: "uint256";
|
|
138
149
|
}, {
|
|
150
|
+
readonly components: readonly [{
|
|
151
|
+
readonly internalType: "address";
|
|
152
|
+
readonly name: "affiliate";
|
|
153
|
+
readonly type: "address";
|
|
154
|
+
}, {
|
|
155
|
+
readonly internalType: "address";
|
|
156
|
+
readonly name: "owner";
|
|
157
|
+
readonly type: "address";
|
|
158
|
+
}, {
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
readonly name: "core";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly internalType: "uint256";
|
|
164
|
+
readonly name: "azuroBetId";
|
|
165
|
+
readonly type: "uint256";
|
|
166
|
+
}, {
|
|
167
|
+
readonly internalType: "uint128";
|
|
168
|
+
readonly name: "amount";
|
|
169
|
+
readonly type: "uint128";
|
|
170
|
+
}, {
|
|
171
|
+
readonly internalType: "bool";
|
|
172
|
+
readonly name: "isReturnableBetAmount";
|
|
173
|
+
readonly type: "bool";
|
|
174
|
+
}];
|
|
139
175
|
readonly indexed: false;
|
|
140
|
-
readonly internalType: "
|
|
141
|
-
readonly name: "
|
|
142
|
-
readonly type: "
|
|
176
|
+
readonly internalType: "struct IPayMaster.FreeBet";
|
|
177
|
+
readonly name: "freeBet";
|
|
178
|
+
readonly type: "tuple";
|
|
143
179
|
}];
|
|
144
|
-
readonly name: "
|
|
180
|
+
readonly name: "NewFreeBet";
|
|
145
181
|
readonly type: "event";
|
|
146
182
|
}, {
|
|
147
183
|
readonly anonymous: false;
|
|
@@ -161,84 +197,66 @@ declare const _default: readonly [{
|
|
|
161
197
|
}, {
|
|
162
198
|
readonly anonymous: false;
|
|
163
199
|
readonly inputs: readonly [{
|
|
164
|
-
readonly indexed:
|
|
165
|
-
readonly internalType: "uint256[]";
|
|
166
|
-
readonly name: "azuroBetId";
|
|
167
|
-
readonly type: "uint256[]";
|
|
168
|
-
}];
|
|
169
|
-
readonly name: "PayoutsResolved";
|
|
170
|
-
readonly type: "event";
|
|
171
|
-
}, {
|
|
172
|
-
readonly inputs: readonly [];
|
|
173
|
-
readonly name: "affiliate";
|
|
174
|
-
readonly outputs: readonly [{
|
|
200
|
+
readonly indexed: true;
|
|
175
201
|
readonly internalType: "address";
|
|
176
|
-
readonly name: "";
|
|
202
|
+
readonly name: "relayer";
|
|
177
203
|
readonly type: "address";
|
|
178
204
|
}];
|
|
179
|
-
readonly
|
|
180
|
-
readonly type: "
|
|
205
|
+
readonly name: "RelayerChanged";
|
|
206
|
+
readonly type: "event";
|
|
181
207
|
}, {
|
|
208
|
+
readonly anonymous: false;
|
|
182
209
|
readonly inputs: readonly [{
|
|
183
|
-
readonly
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}, {
|
|
188
|
-
readonly internalType: "uint256";
|
|
189
|
-
readonly name: "freeBetId";
|
|
190
|
-
readonly type: "uint256";
|
|
191
|
-
}, {
|
|
192
|
-
readonly internalType: "address";
|
|
193
|
-
readonly name: "owner";
|
|
194
|
-
readonly type: "address";
|
|
195
|
-
}, {
|
|
196
|
-
readonly internalType: "uint128";
|
|
197
|
-
readonly name: "amount";
|
|
198
|
-
readonly type: "uint128";
|
|
199
|
-
}, {
|
|
200
|
-
readonly internalType: "uint64";
|
|
201
|
-
readonly name: "minOdds";
|
|
202
|
-
readonly type: "uint64";
|
|
203
|
-
}, {
|
|
204
|
-
readonly internalType: "uint64";
|
|
205
|
-
readonly name: "expiresAt";
|
|
206
|
-
readonly type: "uint64";
|
|
207
|
-
}];
|
|
208
|
-
readonly internalType: "struct IFreeBet.FreeBetData";
|
|
209
|
-
readonly name: "freeBetData";
|
|
210
|
-
readonly type: "tuple";
|
|
210
|
+
readonly indexed: true;
|
|
211
|
+
readonly internalType: "address";
|
|
212
|
+
readonly name: "relayer";
|
|
213
|
+
readonly type: "address";
|
|
211
214
|
}, {
|
|
212
|
-
readonly
|
|
213
|
-
readonly
|
|
214
|
-
readonly
|
|
215
|
+
readonly indexed: true;
|
|
216
|
+
readonly internalType: "address";
|
|
217
|
+
readonly name: "affiliate";
|
|
218
|
+
readonly type: "address";
|
|
215
219
|
}, {
|
|
220
|
+
readonly indexed: true;
|
|
216
221
|
readonly internalType: "address";
|
|
217
|
-
readonly name: "
|
|
222
|
+
readonly name: "bettor";
|
|
218
223
|
readonly type: "address";
|
|
219
224
|
}, {
|
|
225
|
+
readonly indexed: false;
|
|
220
226
|
readonly internalType: "uint256";
|
|
221
|
-
readonly name: "
|
|
227
|
+
readonly name: "amount";
|
|
222
228
|
readonly type: "uint256";
|
|
229
|
+
}];
|
|
230
|
+
readonly name: "RelayerRewarded";
|
|
231
|
+
readonly type: "event";
|
|
232
|
+
}, {
|
|
233
|
+
readonly anonymous: false;
|
|
234
|
+
readonly inputs: readonly [{
|
|
235
|
+
readonly indexed: true;
|
|
236
|
+
readonly internalType: "address";
|
|
237
|
+
readonly name: "affiliate";
|
|
238
|
+
readonly type: "address";
|
|
223
239
|
}, {
|
|
224
|
-
readonly
|
|
225
|
-
readonly
|
|
226
|
-
readonly
|
|
227
|
-
|
|
228
|
-
readonly internalType: "uint64";
|
|
229
|
-
readonly name: "deadline";
|
|
230
|
-
readonly type: "uint64";
|
|
240
|
+
readonly indexed: false;
|
|
241
|
+
readonly internalType: "uint256";
|
|
242
|
+
readonly name: "freebetAmount";
|
|
243
|
+
readonly type: "uint256";
|
|
231
244
|
}, {
|
|
232
|
-
readonly
|
|
233
|
-
readonly name: "minOdds";
|
|
234
|
-
readonly type: "uint64";
|
|
235
|
-
}];
|
|
236
|
-
readonly name: "bet";
|
|
237
|
-
readonly outputs: readonly [{
|
|
245
|
+
readonly indexed: false;
|
|
238
246
|
readonly internalType: "uint256";
|
|
239
|
-
readonly name: "
|
|
247
|
+
readonly name: "feeAmount";
|
|
240
248
|
readonly type: "uint256";
|
|
241
249
|
}];
|
|
250
|
+
readonly name: "WithdrawnFunds";
|
|
251
|
+
readonly type: "event";
|
|
252
|
+
}, {
|
|
253
|
+
readonly inputs: readonly [{
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
readonly name: "relayer_";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
}];
|
|
258
|
+
readonly name: "changeRelayer";
|
|
259
|
+
readonly outputs: readonly [];
|
|
242
260
|
readonly stateMutability: "nonpayable";
|
|
243
261
|
readonly type: "function";
|
|
244
262
|
}, {
|
|
@@ -246,9 +264,31 @@ declare const _default: readonly [{
|
|
|
246
264
|
readonly internalType: "address";
|
|
247
265
|
readonly name: "account";
|
|
248
266
|
readonly type: "address";
|
|
267
|
+
}, {
|
|
268
|
+
readonly internalType: "uint256";
|
|
269
|
+
readonly name: "freeBetAmount";
|
|
270
|
+
readonly type: "uint256";
|
|
271
|
+
}, {
|
|
272
|
+
readonly internalType: "uint256";
|
|
273
|
+
readonly name: "feeAmount";
|
|
274
|
+
readonly type: "uint256";
|
|
249
275
|
}];
|
|
250
|
-
readonly name: "
|
|
276
|
+
readonly name: "depositFor";
|
|
251
277
|
readonly outputs: readonly [];
|
|
278
|
+
readonly stateMutability: "nonpayable";
|
|
279
|
+
readonly type: "function";
|
|
280
|
+
}, {
|
|
281
|
+
readonly inputs: readonly [{
|
|
282
|
+
readonly internalType: "address";
|
|
283
|
+
readonly name: "";
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
}];
|
|
286
|
+
readonly name: "feeFund";
|
|
287
|
+
readonly outputs: readonly [{
|
|
288
|
+
readonly internalType: "uint256";
|
|
289
|
+
readonly name: "";
|
|
290
|
+
readonly type: "uint256";
|
|
291
|
+
}];
|
|
252
292
|
readonly stateMutability: "view";
|
|
253
293
|
readonly type: "function";
|
|
254
294
|
}, {
|
|
@@ -259,6 +299,10 @@ declare const _default: readonly [{
|
|
|
259
299
|
}];
|
|
260
300
|
readonly name: "freeBets";
|
|
261
301
|
readonly outputs: readonly [{
|
|
302
|
+
readonly internalType: "address";
|
|
303
|
+
readonly name: "affiliate";
|
|
304
|
+
readonly type: "address";
|
|
305
|
+
}, {
|
|
262
306
|
readonly internalType: "address";
|
|
263
307
|
readonly name: "owner";
|
|
264
308
|
readonly type: "address";
|
|
@@ -275,24 +319,30 @@ declare const _default: readonly [{
|
|
|
275
319
|
readonly name: "amount";
|
|
276
320
|
readonly type: "uint128";
|
|
277
321
|
}, {
|
|
278
|
-
readonly internalType: "
|
|
279
|
-
readonly name: "
|
|
280
|
-
readonly type: "
|
|
322
|
+
readonly internalType: "bool";
|
|
323
|
+
readonly name: "isReturnableBetAmount";
|
|
324
|
+
readonly type: "bool";
|
|
281
325
|
}];
|
|
282
326
|
readonly stateMutability: "view";
|
|
283
327
|
readonly type: "function";
|
|
284
328
|
}, {
|
|
285
329
|
readonly inputs: readonly [{
|
|
286
330
|
readonly internalType: "address";
|
|
287
|
-
readonly name: "
|
|
288
|
-
readonly type: "address";
|
|
289
|
-
}, {
|
|
290
|
-
readonly internalType: "address";
|
|
291
|
-
readonly name: "affiliate_";
|
|
331
|
+
readonly name: "";
|
|
292
332
|
readonly type: "address";
|
|
293
|
-
}
|
|
333
|
+
}];
|
|
334
|
+
readonly name: "freeBetsFund";
|
|
335
|
+
readonly outputs: readonly [{
|
|
336
|
+
readonly internalType: "uint256";
|
|
337
|
+
readonly name: "";
|
|
338
|
+
readonly type: "uint256";
|
|
339
|
+
}];
|
|
340
|
+
readonly stateMutability: "view";
|
|
341
|
+
readonly type: "function";
|
|
342
|
+
}, {
|
|
343
|
+
readonly inputs: readonly [{
|
|
294
344
|
readonly internalType: "address";
|
|
295
|
-
readonly name: "
|
|
345
|
+
readonly name: "lpAddress";
|
|
296
346
|
readonly type: "address";
|
|
297
347
|
}];
|
|
298
348
|
readonly name: "initialize";
|
|
@@ -300,30 +350,34 @@ declare const _default: readonly [{
|
|
|
300
350
|
readonly stateMutability: "nonpayable";
|
|
301
351
|
readonly type: "function";
|
|
302
352
|
}, {
|
|
303
|
-
readonly inputs: readonly [
|
|
304
|
-
readonly name: "lockedReserve";
|
|
305
|
-
readonly outputs: readonly [{
|
|
353
|
+
readonly inputs: readonly [{
|
|
306
354
|
readonly internalType: "uint256";
|
|
307
355
|
readonly name: "";
|
|
308
356
|
readonly type: "uint256";
|
|
309
357
|
}];
|
|
358
|
+
readonly name: "isLocked";
|
|
359
|
+
readonly outputs: readonly [{
|
|
360
|
+
readonly internalType: "bool";
|
|
361
|
+
readonly name: "";
|
|
362
|
+
readonly type: "bool";
|
|
363
|
+
}];
|
|
310
364
|
readonly stateMutability: "view";
|
|
311
365
|
readonly type: "function";
|
|
312
366
|
}, {
|
|
313
367
|
readonly inputs: readonly [];
|
|
314
|
-
readonly name: "
|
|
368
|
+
readonly name: "lastUsedFreeBetId";
|
|
315
369
|
readonly outputs: readonly [{
|
|
316
|
-
readonly internalType: "
|
|
370
|
+
readonly internalType: "uint256";
|
|
317
371
|
readonly name: "";
|
|
318
|
-
readonly type: "
|
|
372
|
+
readonly type: "uint256";
|
|
319
373
|
}];
|
|
320
374
|
readonly stateMutability: "view";
|
|
321
375
|
readonly type: "function";
|
|
322
376
|
}, {
|
|
323
377
|
readonly inputs: readonly [];
|
|
324
|
-
readonly name: "
|
|
378
|
+
readonly name: "lp";
|
|
325
379
|
readonly outputs: readonly [{
|
|
326
|
-
readonly internalType: "
|
|
380
|
+
readonly internalType: "contract ILP";
|
|
327
381
|
readonly name: "";
|
|
328
382
|
readonly type: "address";
|
|
329
383
|
}];
|
|
@@ -339,43 +393,152 @@ declare const _default: readonly [{
|
|
|
339
393
|
}];
|
|
340
394
|
readonly stateMutability: "view";
|
|
341
395
|
readonly type: "function";
|
|
342
|
-
}, {
|
|
343
|
-
readonly inputs: readonly [{
|
|
344
|
-
readonly internalType: "uint256[]";
|
|
345
|
-
readonly name: "freeBetIds";
|
|
346
|
-
readonly type: "uint256[]";
|
|
347
|
-
}];
|
|
348
|
-
readonly name: "resolvePayout";
|
|
349
|
-
readonly outputs: readonly [];
|
|
350
|
-
readonly stateMutability: "nonpayable";
|
|
351
|
-
readonly type: "function";
|
|
352
396
|
}, {
|
|
353
397
|
readonly inputs: readonly [{
|
|
354
398
|
readonly internalType: "address";
|
|
355
|
-
readonly name: "
|
|
399
|
+
readonly name: "relayExecutor";
|
|
356
400
|
readonly type: "address";
|
|
401
|
+
}, {
|
|
402
|
+
readonly components: readonly [{
|
|
403
|
+
readonly internalType: "address";
|
|
404
|
+
readonly name: "betOwner";
|
|
405
|
+
readonly type: "address";
|
|
406
|
+
}, {
|
|
407
|
+
readonly components: readonly [{
|
|
408
|
+
readonly internalType: "uint256";
|
|
409
|
+
readonly name: "gameId";
|
|
410
|
+
readonly type: "uint256";
|
|
411
|
+
}, {
|
|
412
|
+
readonly internalType: "uint256";
|
|
413
|
+
readonly name: "conditionId";
|
|
414
|
+
readonly type: "uint256";
|
|
415
|
+
}, {
|
|
416
|
+
readonly internalType: "enum IOrder.ConditionKind";
|
|
417
|
+
readonly name: "conditionKind";
|
|
418
|
+
readonly type: "uint8";
|
|
419
|
+
}, {
|
|
420
|
+
readonly internalType: "uint64[]";
|
|
421
|
+
readonly name: "odds";
|
|
422
|
+
readonly type: "uint64[]";
|
|
423
|
+
}, {
|
|
424
|
+
readonly internalType: "uint128[]";
|
|
425
|
+
readonly name: "outcomes";
|
|
426
|
+
readonly type: "uint128[]";
|
|
427
|
+
}, {
|
|
428
|
+
readonly internalType: "uint128";
|
|
429
|
+
readonly name: "potentialLossLimit";
|
|
430
|
+
readonly type: "uint128";
|
|
431
|
+
}, {
|
|
432
|
+
readonly internalType: "uint8";
|
|
433
|
+
readonly name: "winningOutcomesCount";
|
|
434
|
+
readonly type: "uint8";
|
|
435
|
+
}];
|
|
436
|
+
readonly internalType: "struct IOrder.ConditionData[]";
|
|
437
|
+
readonly name: "conditionDatas";
|
|
438
|
+
readonly type: "tuple[]";
|
|
439
|
+
}, {
|
|
440
|
+
readonly internalType: "enum IOrder.BetType";
|
|
441
|
+
readonly name: "betType";
|
|
442
|
+
readonly type: "uint8";
|
|
443
|
+
}, {
|
|
444
|
+
readonly internalType: "address";
|
|
445
|
+
readonly name: "oracle";
|
|
446
|
+
readonly type: "address";
|
|
447
|
+
}, {
|
|
448
|
+
readonly internalType: "bytes";
|
|
449
|
+
readonly name: "clientBetData";
|
|
450
|
+
readonly type: "bytes";
|
|
451
|
+
}, {
|
|
452
|
+
readonly internalType: "bytes";
|
|
453
|
+
readonly name: "bettorSignature";
|
|
454
|
+
readonly type: "bytes";
|
|
455
|
+
}, {
|
|
456
|
+
readonly internalType: "bytes";
|
|
457
|
+
readonly name: "oracleSignature";
|
|
458
|
+
readonly type: "bytes";
|
|
459
|
+
}];
|
|
460
|
+
readonly internalType: "struct IOrder.OrderData";
|
|
461
|
+
readonly name: "order";
|
|
462
|
+
readonly type: "tuple";
|
|
463
|
+
}, {
|
|
464
|
+
readonly components: readonly [{
|
|
465
|
+
readonly internalType: "string";
|
|
466
|
+
readonly name: "attention";
|
|
467
|
+
readonly type: "string";
|
|
468
|
+
}, {
|
|
469
|
+
readonly internalType: "address";
|
|
470
|
+
readonly name: "affiliate";
|
|
471
|
+
readonly type: "address";
|
|
472
|
+
}, {
|
|
473
|
+
readonly internalType: "address";
|
|
474
|
+
readonly name: "core";
|
|
475
|
+
readonly type: "address";
|
|
476
|
+
}, {
|
|
477
|
+
readonly internalType: "uint256";
|
|
478
|
+
readonly name: "expiresAt";
|
|
479
|
+
readonly type: "uint256";
|
|
480
|
+
}, {
|
|
481
|
+
readonly internalType: "uint256";
|
|
482
|
+
readonly name: "chainId";
|
|
483
|
+
readonly type: "uint256";
|
|
484
|
+
}, {
|
|
485
|
+
readonly internalType: "uint256";
|
|
486
|
+
readonly name: "relayerFeeAmount";
|
|
487
|
+
readonly type: "uint256";
|
|
488
|
+
}, {
|
|
489
|
+
readonly internalType: "bool";
|
|
490
|
+
readonly name: "isFeeSponsored";
|
|
491
|
+
readonly type: "bool";
|
|
492
|
+
}, {
|
|
493
|
+
readonly internalType: "bool";
|
|
494
|
+
readonly name: "isBetSponsored";
|
|
495
|
+
readonly type: "bool";
|
|
496
|
+
}, {
|
|
497
|
+
readonly internalType: "bool";
|
|
498
|
+
readonly name: "isSponsoredBetReturnable";
|
|
499
|
+
readonly type: "bool";
|
|
500
|
+
}];
|
|
501
|
+
readonly internalType: "struct IOrder.ClientData";
|
|
502
|
+
readonly name: "data";
|
|
503
|
+
readonly type: "tuple";
|
|
504
|
+
}, {
|
|
505
|
+
readonly internalType: "uint128";
|
|
506
|
+
readonly name: "betAmount";
|
|
507
|
+
readonly type: "uint128";
|
|
508
|
+
}, {
|
|
509
|
+
readonly internalType: "uint128[]";
|
|
510
|
+
readonly name: "amounts";
|
|
511
|
+
readonly type: "uint128[]";
|
|
512
|
+
}, {
|
|
513
|
+
readonly internalType: "bytes";
|
|
514
|
+
readonly name: "hashes";
|
|
515
|
+
readonly type: "bytes";
|
|
516
|
+
}];
|
|
517
|
+
readonly name: "pay";
|
|
518
|
+
readonly outputs: readonly [{
|
|
519
|
+
readonly internalType: "uint128";
|
|
520
|
+
readonly name: "amountPaidByBettor";
|
|
521
|
+
readonly type: "uint128";
|
|
522
|
+
}, {
|
|
523
|
+
readonly internalType: "uint256";
|
|
524
|
+
readonly name: "feePaidByBettor";
|
|
525
|
+
readonly type: "uint256";
|
|
357
526
|
}];
|
|
358
|
-
readonly name: "setAffiliate";
|
|
359
|
-
readonly outputs: readonly [];
|
|
360
527
|
readonly stateMutability: "nonpayable";
|
|
361
528
|
readonly type: "function";
|
|
362
529
|
}, {
|
|
363
|
-
readonly inputs: readonly [
|
|
530
|
+
readonly inputs: readonly [];
|
|
531
|
+
readonly name: "relayer";
|
|
532
|
+
readonly outputs: readonly [{
|
|
364
533
|
readonly internalType: "address";
|
|
365
|
-
readonly name: "
|
|
534
|
+
readonly name: "";
|
|
366
535
|
readonly type: "address";
|
|
367
536
|
}];
|
|
368
|
-
readonly
|
|
369
|
-
readonly outputs: readonly [];
|
|
370
|
-
readonly stateMutability: "nonpayable";
|
|
537
|
+
readonly stateMutability: "view";
|
|
371
538
|
readonly type: "function";
|
|
372
539
|
}, {
|
|
373
|
-
readonly inputs: readonly [
|
|
374
|
-
|
|
375
|
-
readonly name: "manager_";
|
|
376
|
-
readonly type: "address";
|
|
377
|
-
}];
|
|
378
|
-
readonly name: "setManager";
|
|
540
|
+
readonly inputs: readonly [];
|
|
541
|
+
readonly name: "renounceOwnership";
|
|
379
542
|
readonly outputs: readonly [];
|
|
380
543
|
readonly stateMutability: "nonpayable";
|
|
381
544
|
readonly type: "function";
|
|
@@ -402,25 +565,26 @@ declare const _default: readonly [{
|
|
|
402
565
|
}, {
|
|
403
566
|
readonly inputs: readonly [{
|
|
404
567
|
readonly internalType: "uint256";
|
|
405
|
-
readonly name: "
|
|
568
|
+
readonly name: "freeBetAmount";
|
|
569
|
+
readonly type: "uint256";
|
|
570
|
+
}, {
|
|
571
|
+
readonly internalType: "uint256";
|
|
572
|
+
readonly name: "feeAmount";
|
|
406
573
|
readonly type: "uint256";
|
|
407
574
|
}];
|
|
408
|
-
readonly name: "
|
|
575
|
+
readonly name: "withdraw";
|
|
409
576
|
readonly outputs: readonly [];
|
|
410
577
|
readonly stateMutability: "nonpayable";
|
|
411
578
|
readonly type: "function";
|
|
412
579
|
}, {
|
|
413
580
|
readonly inputs: readonly [{
|
|
414
|
-
readonly internalType: "uint256";
|
|
415
|
-
readonly name: "
|
|
416
|
-
readonly type: "uint256";
|
|
581
|
+
readonly internalType: "uint256[]";
|
|
582
|
+
readonly name: "freeBetIds";
|
|
583
|
+
readonly type: "uint256[]";
|
|
417
584
|
}];
|
|
418
|
-
readonly name: "
|
|
585
|
+
readonly name: "withdrawPayouts";
|
|
419
586
|
readonly outputs: readonly [];
|
|
420
587
|
readonly stateMutability: "nonpayable";
|
|
421
588
|
readonly type: "function";
|
|
422
|
-
}, {
|
|
423
|
-
readonly stateMutability: "payable";
|
|
424
|
-
readonly type: "receive";
|
|
425
589
|
}];
|
|
426
590
|
export default _default;
|
package/dist/abis/Relayer.d.ts
CHANGED
|
@@ -51,6 +51,11 @@ declare const _default: readonly [{
|
|
|
51
51
|
readonly internalType: "address";
|
|
52
52
|
readonly name: "bettor";
|
|
53
53
|
readonly type: "address";
|
|
54
|
+
}, {
|
|
55
|
+
readonly indexed: false;
|
|
56
|
+
readonly internalType: "address";
|
|
57
|
+
readonly name: "core";
|
|
58
|
+
readonly type: "address";
|
|
54
59
|
}, {
|
|
55
60
|
readonly indexed: false;
|
|
56
61
|
readonly internalType: "uint256[]";
|