@levrbet/shared 0.5.55 → 0.5.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/contracts/abis/LevrBetCreditManager.d.ts +750 -718
- package/dist/core/contracts/abis/LevrBetCreditManager.js +327 -319
- package/dist/core/contracts/abis/LevrBetCreditManager.js.map +1 -1
- package/dist/core/contracts/abis/LevrConfigProvider.d.ts +35 -0
- package/dist/core/contracts/abis/LevrConfigProvider.js +23 -0
- package/dist/core/contracts/abis/LevrConfigProvider.js.map +1 -1
- package/dist/core/contracts/abis/LevrMarketRouter.d.ts +28 -0
- package/dist/core/contracts/abis/LevrMarketRouter.js +18 -0
- package/dist/core/contracts/abis/LevrMarketRouter.js.map +1 -1
- package/dist/core/contracts/abis/LevrOrderbook.d.ts +4 -0
- package/dist/core/contracts/abis/LevrOrderbook.js +1 -0
- package/dist/core/contracts/abis/LevrOrderbook.js.map +1 -1
- package/dist/core/contracts/abis/index.d.ts +732 -633
- package/dist/core/contracts/addresses.d.ts +5 -5
- package/dist/core/contracts/addresses.js +5 -5
- package/package.json +1 -1
|
@@ -1,1045 +1,1077 @@
|
|
|
1
1
|
export declare const abis: {
|
|
2
2
|
readonly levrBetCreditManager: readonly [{
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly internalType: "address";
|
|
5
|
+
readonly name: "configProvider";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly internalType: "address";
|
|
9
|
+
readonly name: "usdcTokenAddress";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}];
|
|
12
|
+
readonly stateMutability: "nonpayable";
|
|
3
13
|
readonly type: "constructor";
|
|
14
|
+
}, {
|
|
15
|
+
readonly inputs: readonly [];
|
|
16
|
+
readonly name: "LBCM_CAMPAIGN_BUDGET_EXCEEDED";
|
|
17
|
+
readonly type: "error";
|
|
18
|
+
}, {
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "LBCM_CAMPAIGN_PAUSED";
|
|
21
|
+
readonly type: "error";
|
|
22
|
+
}, {
|
|
23
|
+
readonly inputs: readonly [];
|
|
24
|
+
readonly name: "LBCM_CAMPAIGN_USER_PAUSED";
|
|
25
|
+
readonly type: "error";
|
|
26
|
+
}, {
|
|
27
|
+
readonly inputs: readonly [];
|
|
28
|
+
readonly name: "LBCM_CAPPED_TOURNAMENT_NOT_ALLOWED";
|
|
29
|
+
readonly type: "error";
|
|
30
|
+
}, {
|
|
31
|
+
readonly inputs: readonly [];
|
|
32
|
+
readonly name: "LBCM_CREDIT_ALREADY_CLAIMED";
|
|
33
|
+
readonly type: "error";
|
|
34
|
+
}, {
|
|
35
|
+
readonly inputs: readonly [];
|
|
36
|
+
readonly name: "LBCM_CREDIT_GRANT_ALREADY_SPENT";
|
|
37
|
+
readonly type: "error";
|
|
38
|
+
}, {
|
|
39
|
+
readonly inputs: readonly [];
|
|
40
|
+
readonly name: "LBCM_CREDIT_GRANT_REVOKED";
|
|
41
|
+
readonly type: "error";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [];
|
|
44
|
+
readonly name: "LBCM_GRANT_ABOVE_MAX";
|
|
45
|
+
readonly type: "error";
|
|
46
|
+
}, {
|
|
47
|
+
readonly inputs: readonly [];
|
|
48
|
+
readonly name: "LBCM_GRANT_BELOW_MIN";
|
|
49
|
+
readonly type: "error";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [];
|
|
52
|
+
readonly name: "LBCM_INSUFFICIENT_CREDITS_SPENT";
|
|
53
|
+
readonly type: "error";
|
|
54
|
+
}, {
|
|
55
|
+
readonly inputs: readonly [];
|
|
56
|
+
readonly name: "LBCM_INSUFFICIENT_PAYOUT_FOR_SPONSORSHIP";
|
|
57
|
+
readonly type: "error";
|
|
58
|
+
}, {
|
|
59
|
+
readonly inputs: readonly [];
|
|
60
|
+
readonly name: "LBCM_INVALID_ADDRESS";
|
|
61
|
+
readonly type: "error";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "LBCM_INVALID_BENEFICIARY";
|
|
65
|
+
readonly type: "error";
|
|
66
|
+
}, {
|
|
67
|
+
readonly inputs: readonly [];
|
|
68
|
+
readonly name: "LBCM_INVALID_CREDITS";
|
|
69
|
+
readonly type: "error";
|
|
70
|
+
}, {
|
|
71
|
+
readonly inputs: readonly [];
|
|
72
|
+
readonly name: "LBCM_INVALID_CREDIT_CAMPAIGN";
|
|
73
|
+
readonly type: "error";
|
|
74
|
+
}, {
|
|
75
|
+
readonly inputs: readonly [];
|
|
76
|
+
readonly name: "LBCM_INVALID_CREDIT_GRANT";
|
|
77
|
+
readonly type: "error";
|
|
78
|
+
}, {
|
|
79
|
+
readonly inputs: readonly [];
|
|
80
|
+
readonly name: "LBCM_INVALID_CREDIT_PROOF";
|
|
81
|
+
readonly type: "error";
|
|
82
|
+
}, {
|
|
83
|
+
readonly inputs: readonly [];
|
|
84
|
+
readonly name: "LBCM_INVALID_LEVR_MARKET_ID";
|
|
85
|
+
readonly type: "error";
|
|
86
|
+
}, {
|
|
87
|
+
readonly inputs: readonly [];
|
|
88
|
+
readonly name: "LBCM_INVALID_MERKLE_ROOT";
|
|
89
|
+
readonly type: "error";
|
|
90
|
+
}, {
|
|
91
|
+
readonly inputs: readonly [];
|
|
92
|
+
readonly name: "LBCM_INVALID_SPEND";
|
|
93
|
+
readonly type: "error";
|
|
94
|
+
}, {
|
|
95
|
+
readonly inputs: readonly [];
|
|
96
|
+
readonly name: "LBCM_MARKET_MAKER_NOT_ALLOWED";
|
|
97
|
+
readonly type: "error";
|
|
98
|
+
}, {
|
|
99
|
+
readonly inputs: readonly [];
|
|
100
|
+
readonly name: "LBCM_NON_USDC_MARKET";
|
|
101
|
+
readonly type: "error";
|
|
102
|
+
}, {
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly name: "LBCM_NOT_CREDITOR";
|
|
105
|
+
readonly type: "error";
|
|
106
|
+
}, {
|
|
107
|
+
readonly inputs: readonly [];
|
|
108
|
+
readonly name: "LBCM_NOT_LEVR_ADMIN";
|
|
109
|
+
readonly type: "error";
|
|
110
|
+
}, {
|
|
111
|
+
readonly inputs: readonly [];
|
|
112
|
+
readonly name: "LBCM_NO_CREDITS_TO_SPEND";
|
|
113
|
+
readonly type: "error";
|
|
114
|
+
}, {
|
|
115
|
+
readonly inputs: readonly [];
|
|
116
|
+
readonly name: "LBCM_SPEND_ABOVE_MAX";
|
|
117
|
+
readonly type: "error";
|
|
118
|
+
}, {
|
|
119
|
+
readonly inputs: readonly [];
|
|
120
|
+
readonly name: "LBCM_SPEND_BELOW_MIN";
|
|
121
|
+
readonly type: "error";
|
|
122
|
+
}, {
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
readonly name: "LBCM_UNEXPECTED_CAMPAIGN_ID";
|
|
125
|
+
readonly type: "error";
|
|
126
|
+
}, {
|
|
127
|
+
readonly inputs: readonly [];
|
|
128
|
+
readonly name: "LBCM_USERS_LIMIT_EXCEEDED";
|
|
129
|
+
readonly type: "error";
|
|
130
|
+
}, {
|
|
131
|
+
readonly inputs: readonly [{
|
|
132
|
+
readonly internalType: "address";
|
|
133
|
+
readonly name: "user";
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
}];
|
|
136
|
+
readonly name: "LBCM_USER_BLACKLISTED";
|
|
137
|
+
readonly type: "error";
|
|
138
|
+
}, {
|
|
139
|
+
readonly inputs: readonly [];
|
|
140
|
+
readonly name: "LBCM_USER_NOT_WHITELISTED";
|
|
141
|
+
readonly type: "error";
|
|
142
|
+
}, {
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly name: "LB_CONFIG_INVALID_INTERFACE";
|
|
145
|
+
readonly type: "error";
|
|
146
|
+
}, {
|
|
147
|
+
readonly inputs: readonly [];
|
|
148
|
+
readonly name: "LB_CONFIG_PROVIDER_NOT_CONTRACT";
|
|
149
|
+
readonly type: "error";
|
|
150
|
+
}, {
|
|
151
|
+
readonly inputs: readonly [];
|
|
152
|
+
readonly name: "LB_NOT_LEVR_ADMIN";
|
|
153
|
+
readonly type: "error";
|
|
154
|
+
}, {
|
|
155
|
+
readonly inputs: readonly [];
|
|
156
|
+
readonly name: "LM_INVALID_PROGRESS_BPS";
|
|
157
|
+
readonly type: "error";
|
|
158
|
+
}, {
|
|
159
|
+
readonly inputs: readonly [{
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
readonly name: "token";
|
|
162
|
+
readonly type: "address";
|
|
163
|
+
}];
|
|
164
|
+
readonly name: "SafeERC20FailedOperation";
|
|
165
|
+
readonly type: "error";
|
|
166
|
+
}, {
|
|
167
|
+
readonly anonymous: false;
|
|
168
|
+
readonly inputs: readonly [{
|
|
169
|
+
readonly indexed: true;
|
|
170
|
+
readonly internalType: "address";
|
|
171
|
+
readonly name: "user";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}, {
|
|
174
|
+
readonly indexed: false;
|
|
175
|
+
readonly internalType: "bool";
|
|
176
|
+
readonly name: "blacklisted";
|
|
177
|
+
readonly type: "bool";
|
|
178
|
+
}];
|
|
179
|
+
readonly name: "BlacklistUpdated";
|
|
180
|
+
readonly type: "event";
|
|
181
|
+
}, {
|
|
182
|
+
readonly anonymous: false;
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly indexed: true;
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
readonly name: "campaignId";
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
}, {
|
|
189
|
+
readonly indexed: true;
|
|
190
|
+
readonly internalType: "bytes32";
|
|
191
|
+
readonly name: "merkleRoot";
|
|
192
|
+
readonly type: "bytes32";
|
|
193
|
+
}, {
|
|
194
|
+
readonly indexed: true;
|
|
195
|
+
readonly internalType: "address";
|
|
196
|
+
readonly name: "issuer";
|
|
197
|
+
readonly type: "address";
|
|
198
|
+
}, {
|
|
199
|
+
readonly indexed: false;
|
|
200
|
+
readonly internalType: "uint256";
|
|
201
|
+
readonly name: "totalCredits";
|
|
202
|
+
readonly type: "uint256";
|
|
203
|
+
}];
|
|
204
|
+
readonly name: "CreditCampaignCreated";
|
|
205
|
+
readonly type: "event";
|
|
206
|
+
}, {
|
|
207
|
+
readonly anonymous: false;
|
|
208
|
+
readonly inputs: readonly [{
|
|
209
|
+
readonly indexed: true;
|
|
210
|
+
readonly internalType: "uint256";
|
|
211
|
+
readonly name: "campaignId";
|
|
212
|
+
readonly type: "uint256";
|
|
213
|
+
}, {
|
|
214
|
+
readonly indexed: false;
|
|
215
|
+
readonly internalType: "bool";
|
|
216
|
+
readonly name: "paused";
|
|
217
|
+
readonly type: "bool";
|
|
218
|
+
}];
|
|
219
|
+
readonly name: "CreditCampaignPaused";
|
|
220
|
+
readonly type: "event";
|
|
221
|
+
}, {
|
|
222
|
+
readonly anonymous: false;
|
|
223
|
+
readonly inputs: readonly [{
|
|
224
|
+
readonly indexed: true;
|
|
225
|
+
readonly internalType: "uint256";
|
|
226
|
+
readonly name: "campaignId";
|
|
227
|
+
readonly type: "uint256";
|
|
228
|
+
}, {
|
|
229
|
+
readonly indexed: true;
|
|
230
|
+
readonly internalType: "address";
|
|
231
|
+
readonly name: "user";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
}, {
|
|
234
|
+
readonly indexed: false;
|
|
235
|
+
readonly internalType: "bool";
|
|
236
|
+
readonly name: "paused";
|
|
237
|
+
readonly type: "bool";
|
|
238
|
+
}];
|
|
239
|
+
readonly name: "CreditCampaignUserPaused";
|
|
240
|
+
readonly type: "event";
|
|
241
|
+
}, {
|
|
242
|
+
readonly anonymous: false;
|
|
243
|
+
readonly inputs: readonly [{
|
|
244
|
+
readonly indexed: true;
|
|
245
|
+
readonly internalType: "address";
|
|
246
|
+
readonly name: "user";
|
|
247
|
+
readonly type: "address";
|
|
248
|
+
}, {
|
|
249
|
+
readonly indexed: true;
|
|
250
|
+
readonly internalType: "uint256";
|
|
251
|
+
readonly name: "creditId";
|
|
252
|
+
readonly type: "uint256";
|
|
253
|
+
}];
|
|
254
|
+
readonly name: "CreditRevoked";
|
|
255
|
+
readonly type: "event";
|
|
256
|
+
}, {
|
|
257
|
+
readonly anonymous: false;
|
|
258
|
+
readonly inputs: readonly [{
|
|
259
|
+
readonly indexed: true;
|
|
260
|
+
readonly internalType: "address";
|
|
261
|
+
readonly name: "creditor";
|
|
262
|
+
readonly type: "address";
|
|
263
|
+
}, {
|
|
264
|
+
readonly indexed: false;
|
|
265
|
+
readonly internalType: "bool";
|
|
266
|
+
readonly name: "added";
|
|
267
|
+
readonly type: "bool";
|
|
268
|
+
}];
|
|
269
|
+
readonly name: "CreditorUpdated";
|
|
270
|
+
readonly type: "event";
|
|
271
|
+
}, {
|
|
272
|
+
readonly anonymous: false;
|
|
273
|
+
readonly inputs: readonly [{
|
|
274
|
+
readonly indexed: true;
|
|
275
|
+
readonly internalType: "uint256";
|
|
276
|
+
readonly name: "campaignId";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
}, {
|
|
279
|
+
readonly indexed: true;
|
|
280
|
+
readonly internalType: "uint256";
|
|
281
|
+
readonly name: "creditId";
|
|
282
|
+
readonly type: "uint256";
|
|
283
|
+
}, {
|
|
284
|
+
readonly indexed: true;
|
|
285
|
+
readonly internalType: "bytes32";
|
|
286
|
+
readonly name: "positionId";
|
|
287
|
+
readonly type: "bytes32";
|
|
288
|
+
}, {
|
|
289
|
+
readonly indexed: false;
|
|
290
|
+
readonly internalType: "address";
|
|
291
|
+
readonly name: "user";
|
|
292
|
+
readonly type: "address";
|
|
293
|
+
}, {
|
|
294
|
+
readonly indexed: false;
|
|
295
|
+
readonly internalType: "uint256";
|
|
296
|
+
readonly name: "creditAmount";
|
|
297
|
+
readonly type: "uint256";
|
|
298
|
+
}, {
|
|
299
|
+
readonly indexed: false;
|
|
300
|
+
readonly internalType: "bytes16";
|
|
301
|
+
readonly name: "levrMarketId";
|
|
302
|
+
readonly type: "bytes16";
|
|
303
|
+
}, {
|
|
304
|
+
readonly indexed: false;
|
|
305
|
+
readonly internalType: "enum Side";
|
|
306
|
+
readonly name: "side";
|
|
307
|
+
readonly type: "uint8";
|
|
308
|
+
}, {
|
|
309
|
+
readonly indexed: false;
|
|
310
|
+
readonly internalType: "uint8";
|
|
311
|
+
readonly name: "leverage";
|
|
312
|
+
readonly type: "uint8";
|
|
313
|
+
}];
|
|
314
|
+
readonly name: "CreditsSpent";
|
|
315
|
+
readonly type: "event";
|
|
316
|
+
}, {
|
|
317
|
+
readonly anonymous: false;
|
|
318
|
+
readonly inputs: readonly [{
|
|
319
|
+
readonly indexed: true;
|
|
320
|
+
readonly internalType: "address";
|
|
321
|
+
readonly name: "prevProvider";
|
|
322
|
+
readonly type: "address";
|
|
323
|
+
}, {
|
|
324
|
+
readonly indexed: true;
|
|
325
|
+
readonly internalType: "address";
|
|
326
|
+
readonly name: "newProvider";
|
|
327
|
+
readonly type: "address";
|
|
328
|
+
}];
|
|
329
|
+
readonly name: "LevrConfigProviderUpdated";
|
|
330
|
+
readonly type: "event";
|
|
331
|
+
}, {
|
|
332
|
+
readonly anonymous: false;
|
|
4
333
|
readonly inputs: readonly [{
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
334
|
+
readonly indexed: true;
|
|
335
|
+
readonly internalType: "bytes32";
|
|
336
|
+
readonly name: "positionId";
|
|
337
|
+
readonly type: "bytes32";
|
|
338
|
+
}, {
|
|
339
|
+
readonly indexed: true;
|
|
7
340
|
readonly internalType: "address";
|
|
341
|
+
readonly name: "user";
|
|
342
|
+
readonly type: "address";
|
|
8
343
|
}, {
|
|
9
|
-
readonly
|
|
344
|
+
readonly indexed: false;
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
readonly name: "campaignId";
|
|
347
|
+
readonly type: "uint256";
|
|
348
|
+
}, {
|
|
349
|
+
readonly indexed: false;
|
|
350
|
+
readonly internalType: "bytes32";
|
|
351
|
+
readonly name: "leaf";
|
|
352
|
+
readonly type: "bytes32";
|
|
353
|
+
}, {
|
|
354
|
+
readonly indexed: false;
|
|
355
|
+
readonly internalType: "uint256";
|
|
356
|
+
readonly name: "creditId";
|
|
357
|
+
readonly type: "uint256";
|
|
358
|
+
}, {
|
|
359
|
+
readonly indexed: false;
|
|
360
|
+
readonly internalType: "uint256";
|
|
361
|
+
readonly name: "amountRedeemed";
|
|
362
|
+
readonly type: "uint256";
|
|
363
|
+
}, {
|
|
364
|
+
readonly indexed: false;
|
|
365
|
+
readonly internalType: "uint256";
|
|
366
|
+
readonly name: "userNetRedeemed";
|
|
367
|
+
readonly type: "uint256";
|
|
368
|
+
}, {
|
|
369
|
+
readonly indexed: false;
|
|
370
|
+
readonly internalType: "uint256";
|
|
371
|
+
readonly name: "shortfall";
|
|
372
|
+
readonly type: "uint256";
|
|
373
|
+
}, {
|
|
374
|
+
readonly indexed: false;
|
|
375
|
+
readonly internalType: "bool";
|
|
376
|
+
readonly name: "refunded";
|
|
377
|
+
readonly type: "bool";
|
|
378
|
+
}];
|
|
379
|
+
readonly name: "SponsoredPositionRedeemed";
|
|
380
|
+
readonly type: "event";
|
|
381
|
+
}, {
|
|
382
|
+
readonly anonymous: false;
|
|
383
|
+
readonly inputs: readonly [{
|
|
384
|
+
readonly indexed: true;
|
|
385
|
+
readonly internalType: "uint256";
|
|
386
|
+
readonly name: "creditId";
|
|
387
|
+
readonly type: "uint256";
|
|
388
|
+
}, {
|
|
389
|
+
readonly indexed: true;
|
|
390
|
+
readonly internalType: "address";
|
|
391
|
+
readonly name: "user";
|
|
10
392
|
readonly type: "address";
|
|
393
|
+
}, {
|
|
394
|
+
readonly indexed: false;
|
|
395
|
+
readonly internalType: "uint256";
|
|
396
|
+
readonly name: "amount";
|
|
397
|
+
readonly type: "uint256";
|
|
398
|
+
}, {
|
|
399
|
+
readonly indexed: true;
|
|
11
400
|
readonly internalType: "address";
|
|
401
|
+
readonly name: "issuer";
|
|
402
|
+
readonly type: "address";
|
|
12
403
|
}];
|
|
13
|
-
readonly
|
|
404
|
+
readonly name: "UserCredited";
|
|
405
|
+
readonly type: "event";
|
|
14
406
|
}, {
|
|
15
|
-
readonly type: "function";
|
|
16
|
-
readonly name: "CREDIT_USERS_LIMIT";
|
|
17
407
|
readonly inputs: readonly [];
|
|
408
|
+
readonly name: "CREDIT_USERS_LIMIT";
|
|
18
409
|
readonly outputs: readonly [{
|
|
410
|
+
readonly internalType: "uint8";
|
|
19
411
|
readonly name: "";
|
|
20
412
|
readonly type: "uint8";
|
|
21
|
-
readonly internalType: "uint8";
|
|
22
413
|
}];
|
|
23
414
|
readonly stateMutability: "view";
|
|
24
|
-
}, {
|
|
25
415
|
readonly type: "function";
|
|
26
|
-
|
|
416
|
+
}, {
|
|
27
417
|
readonly inputs: readonly [{
|
|
418
|
+
readonly internalType: "bytes32";
|
|
28
419
|
readonly name: "positionId";
|
|
29
420
|
readonly type: "bytes32";
|
|
30
|
-
readonly internalType: "bytes32";
|
|
31
421
|
}, {
|
|
422
|
+
readonly internalType: "address";
|
|
32
423
|
readonly name: "beneficiary";
|
|
33
424
|
readonly type: "address";
|
|
34
|
-
readonly internalType: "address";
|
|
35
425
|
}];
|
|
426
|
+
readonly name: "adminRedeemSponsoredPosition";
|
|
36
427
|
readonly outputs: readonly [];
|
|
37
428
|
readonly stateMutability: "nonpayable";
|
|
38
|
-
}, {
|
|
39
429
|
readonly type: "function";
|
|
40
|
-
|
|
430
|
+
}, {
|
|
41
431
|
readonly inputs: readonly [{
|
|
432
|
+
readonly internalType: "address[]";
|
|
42
433
|
readonly name: "users";
|
|
43
434
|
readonly type: "address[]";
|
|
44
|
-
readonly internalType: "address[]";
|
|
45
435
|
}, {
|
|
436
|
+
readonly internalType: "bool";
|
|
46
437
|
readonly name: "blacklist";
|
|
47
438
|
readonly type: "bool";
|
|
48
|
-
readonly internalType: "bool";
|
|
49
439
|
}];
|
|
440
|
+
readonly name: "blacklistUsers";
|
|
50
441
|
readonly outputs: readonly [];
|
|
51
442
|
readonly stateMutability: "nonpayable";
|
|
52
|
-
}, {
|
|
53
443
|
readonly type: "function";
|
|
54
|
-
|
|
444
|
+
}, {
|
|
55
445
|
readonly inputs: readonly [{
|
|
446
|
+
readonly internalType: "address";
|
|
56
447
|
readonly name: "user";
|
|
57
448
|
readonly type: "address";
|
|
58
|
-
readonly internalType: "address";
|
|
59
449
|
}];
|
|
450
|
+
readonly name: "blacklisted";
|
|
60
451
|
readonly outputs: readonly [{
|
|
452
|
+
readonly internalType: "bool";
|
|
61
453
|
readonly name: "banned";
|
|
62
454
|
readonly type: "bool";
|
|
63
|
-
readonly internalType: "bool";
|
|
64
455
|
}];
|
|
65
456
|
readonly stateMutability: "view";
|
|
66
|
-
}, {
|
|
67
457
|
readonly type: "function";
|
|
68
|
-
|
|
458
|
+
}, {
|
|
69
459
|
readonly inputs: readonly [{
|
|
460
|
+
readonly internalType: "uint256";
|
|
70
461
|
readonly name: "campaignId";
|
|
71
462
|
readonly type: "uint256";
|
|
72
|
-
readonly internalType: "uint256";
|
|
73
463
|
}, {
|
|
464
|
+
readonly internalType: "bytes32";
|
|
74
465
|
readonly name: "leaf";
|
|
75
466
|
readonly type: "bytes32";
|
|
76
|
-
readonly internalType: "bytes32";
|
|
77
467
|
}];
|
|
468
|
+
readonly name: "campaignCreditClaims";
|
|
78
469
|
readonly outputs: readonly [{
|
|
470
|
+
readonly internalType: "bool";
|
|
79
471
|
readonly name: "claimed";
|
|
80
472
|
readonly type: "bool";
|
|
81
|
-
readonly internalType: "bool";
|
|
82
473
|
}];
|
|
83
474
|
readonly stateMutability: "view";
|
|
84
|
-
}, {
|
|
85
475
|
readonly type: "function";
|
|
86
|
-
|
|
476
|
+
}, {
|
|
87
477
|
readonly inputs: readonly [{
|
|
478
|
+
readonly internalType: "bytes32";
|
|
88
479
|
readonly name: "root";
|
|
89
480
|
readonly type: "bytes32";
|
|
90
|
-
readonly internalType: "bytes32";
|
|
91
481
|
}, {
|
|
482
|
+
readonly internalType: "address";
|
|
92
483
|
readonly name: "issuer";
|
|
93
484
|
readonly type: "address";
|
|
94
|
-
readonly internalType: "address";
|
|
95
485
|
}, {
|
|
486
|
+
readonly internalType: "uint256";
|
|
96
487
|
readonly name: "totalCredits";
|
|
97
488
|
readonly type: "uint256";
|
|
98
|
-
readonly internalType: "uint256";
|
|
99
489
|
}, {
|
|
490
|
+
readonly internalType: "uint256";
|
|
100
491
|
readonly name: "expectedId";
|
|
101
492
|
readonly type: "uint256";
|
|
102
|
-
readonly internalType: "uint256";
|
|
103
493
|
}];
|
|
494
|
+
readonly name: "createCreditCampaign";
|
|
104
495
|
readonly outputs: readonly [];
|
|
105
496
|
readonly stateMutability: "nonpayable";
|
|
106
|
-
}, {
|
|
107
497
|
readonly type: "function";
|
|
108
|
-
|
|
498
|
+
}, {
|
|
109
499
|
readonly inputs: readonly [];
|
|
500
|
+
readonly name: "creditCampaignId";
|
|
110
501
|
readonly outputs: readonly [{
|
|
502
|
+
readonly internalType: "uint256";
|
|
111
503
|
readonly name: "";
|
|
112
504
|
readonly type: "uint256";
|
|
113
|
-
readonly internalType: "uint256";
|
|
114
505
|
}];
|
|
115
506
|
readonly stateMutability: "view";
|
|
116
|
-
}, {
|
|
117
507
|
readonly type: "function";
|
|
118
|
-
|
|
508
|
+
}, {
|
|
119
509
|
readonly inputs: readonly [{
|
|
510
|
+
readonly internalType: "address[]";
|
|
120
511
|
readonly name: "users";
|
|
121
512
|
readonly type: "address[]";
|
|
122
|
-
readonly internalType: "address[]";
|
|
123
513
|
}, {
|
|
514
|
+
readonly internalType: "uint256[]";
|
|
124
515
|
readonly name: "amounts";
|
|
125
516
|
readonly type: "uint256[]";
|
|
126
|
-
readonly internalType: "uint256[]";
|
|
127
517
|
}, {
|
|
518
|
+
readonly internalType: "address";
|
|
128
519
|
readonly name: "issuer";
|
|
129
520
|
readonly type: "address";
|
|
130
|
-
readonly internalType: "address";
|
|
131
521
|
}];
|
|
522
|
+
readonly name: "creditUsers";
|
|
132
523
|
readonly outputs: readonly [];
|
|
133
524
|
readonly stateMutability: "nonpayable";
|
|
134
|
-
}, {
|
|
135
525
|
readonly type: "function";
|
|
136
|
-
|
|
526
|
+
}, {
|
|
137
527
|
readonly inputs: readonly [{
|
|
528
|
+
readonly internalType: "address";
|
|
138
529
|
readonly name: "issuer";
|
|
139
530
|
readonly type: "address";
|
|
140
|
-
readonly internalType: "address";
|
|
141
531
|
}, {
|
|
532
|
+
readonly internalType: "uint256";
|
|
142
533
|
readonly name: "amount";
|
|
143
534
|
readonly type: "uint256";
|
|
144
|
-
readonly internalType: "uint256";
|
|
145
535
|
}];
|
|
536
|
+
readonly name: "depositToPool";
|
|
146
537
|
readonly outputs: readonly [];
|
|
147
538
|
readonly stateMutability: "nonpayable";
|
|
148
|
-
}, {
|
|
149
539
|
readonly type: "function";
|
|
150
|
-
|
|
540
|
+
}, {
|
|
151
541
|
readonly inputs: readonly [];
|
|
542
|
+
readonly name: "getAuthorizedCreditors";
|
|
152
543
|
readonly outputs: readonly [{
|
|
544
|
+
readonly internalType: "address[]";
|
|
153
545
|
readonly name: "";
|
|
154
546
|
readonly type: "address[]";
|
|
155
|
-
readonly internalType: "address[]";
|
|
156
547
|
}];
|
|
157
548
|
readonly stateMutability: "view";
|
|
158
|
-
}, {
|
|
159
549
|
readonly type: "function";
|
|
160
|
-
|
|
550
|
+
}, {
|
|
161
551
|
readonly inputs: readonly [{
|
|
552
|
+
readonly internalType: "uint256";
|
|
162
553
|
readonly name: "campaignId";
|
|
163
554
|
readonly type: "uint256";
|
|
164
|
-
readonly internalType: "uint256";
|
|
165
555
|
}, {
|
|
556
|
+
readonly internalType: "address";
|
|
166
557
|
readonly name: "user";
|
|
167
558
|
readonly type: "address";
|
|
168
|
-
readonly internalType: "address";
|
|
169
559
|
}];
|
|
560
|
+
readonly name: "getCampaignUserPaused";
|
|
170
561
|
readonly outputs: readonly [{
|
|
562
|
+
readonly internalType: "bool";
|
|
171
563
|
readonly name: "";
|
|
172
564
|
readonly type: "bool";
|
|
173
|
-
readonly internalType: "bool";
|
|
174
565
|
}];
|
|
175
566
|
readonly stateMutability: "view";
|
|
176
|
-
}, {
|
|
177
567
|
readonly type: "function";
|
|
178
|
-
|
|
568
|
+
}, {
|
|
179
569
|
readonly inputs: readonly [{
|
|
570
|
+
readonly internalType: "uint256";
|
|
180
571
|
readonly name: "campaignId";
|
|
181
572
|
readonly type: "uint256";
|
|
182
|
-
readonly internalType: "uint256";
|
|
183
573
|
}];
|
|
574
|
+
readonly name: "getCreditCampaign";
|
|
184
575
|
readonly outputs: readonly [{
|
|
185
|
-
readonly name: "";
|
|
186
|
-
readonly type: "tuple";
|
|
187
|
-
readonly internalType: "struct ILevrBetCreditManager.CreditCampaign";
|
|
188
576
|
readonly components: readonly [{
|
|
577
|
+
readonly internalType: "bytes32";
|
|
189
578
|
readonly name: "merkleRoot";
|
|
190
579
|
readonly type: "bytes32";
|
|
191
|
-
readonly internalType: "bytes32";
|
|
192
580
|
}, {
|
|
581
|
+
readonly internalType: "uint256";
|
|
193
582
|
readonly name: "totalCredits";
|
|
194
583
|
readonly type: "uint256";
|
|
195
|
-
readonly internalType: "uint256";
|
|
196
584
|
}, {
|
|
585
|
+
readonly internalType: "uint256";
|
|
197
586
|
readonly name: "usedCredits";
|
|
198
587
|
readonly type: "uint256";
|
|
199
|
-
readonly internalType: "uint256";
|
|
200
588
|
}, {
|
|
589
|
+
readonly internalType: "address";
|
|
201
590
|
readonly name: "issuer";
|
|
202
591
|
readonly type: "address";
|
|
203
|
-
readonly internalType: "address";
|
|
204
592
|
}, {
|
|
593
|
+
readonly internalType: "bool";
|
|
205
594
|
readonly name: "paused";
|
|
206
595
|
readonly type: "bool";
|
|
207
|
-
readonly internalType: "bool";
|
|
208
596
|
}];
|
|
597
|
+
readonly internalType: "struct ILevrBetCreditManager.CreditCampaign";
|
|
598
|
+
readonly name: "";
|
|
599
|
+
readonly type: "tuple";
|
|
209
600
|
}];
|
|
210
601
|
readonly stateMutability: "view";
|
|
211
|
-
}, {
|
|
212
602
|
readonly type: "function";
|
|
213
|
-
|
|
603
|
+
}, {
|
|
214
604
|
readonly inputs: readonly [{
|
|
605
|
+
readonly internalType: "address";
|
|
215
606
|
readonly name: "user";
|
|
216
607
|
readonly type: "address";
|
|
217
|
-
readonly internalType: "address";
|
|
218
608
|
}, {
|
|
609
|
+
readonly internalType: "uint256";
|
|
219
610
|
readonly name: "creditId";
|
|
220
611
|
readonly type: "uint256";
|
|
221
|
-
readonly internalType: "uint256";
|
|
222
612
|
}];
|
|
613
|
+
readonly name: "getCreditGrant";
|
|
223
614
|
readonly outputs: readonly [{
|
|
224
|
-
readonly name: "";
|
|
225
|
-
readonly type: "tuple";
|
|
226
|
-
readonly internalType: "struct ILevrBetCreditManager.CreditGrant";
|
|
227
615
|
readonly components: readonly [{
|
|
616
|
+
readonly internalType: "uint256";
|
|
228
617
|
readonly name: "amount";
|
|
229
618
|
readonly type: "uint256";
|
|
230
|
-
readonly internalType: "uint256";
|
|
231
619
|
}, {
|
|
620
|
+
readonly internalType: "address";
|
|
232
621
|
readonly name: "issuer";
|
|
233
622
|
readonly type: "address";
|
|
234
|
-
readonly internalType: "address";
|
|
235
623
|
}, {
|
|
624
|
+
readonly internalType: "address";
|
|
236
625
|
readonly name: "beneficiary";
|
|
237
626
|
readonly type: "address";
|
|
238
|
-
readonly internalType: "address";
|
|
239
627
|
}, {
|
|
628
|
+
readonly internalType: "bool";
|
|
240
629
|
readonly name: "spent";
|
|
241
630
|
readonly type: "bool";
|
|
242
|
-
readonly internalType: "bool";
|
|
243
631
|
}, {
|
|
632
|
+
readonly internalType: "bool";
|
|
244
633
|
readonly name: "revoked";
|
|
245
634
|
readonly type: "bool";
|
|
246
|
-
readonly internalType: "bool";
|
|
247
635
|
}];
|
|
636
|
+
readonly internalType: "struct ILevrBetCreditManager.CreditGrant";
|
|
637
|
+
readonly name: "";
|
|
638
|
+
readonly type: "tuple";
|
|
248
639
|
}];
|
|
249
640
|
readonly stateMutability: "view";
|
|
250
|
-
}, {
|
|
251
641
|
readonly type: "function";
|
|
252
|
-
|
|
642
|
+
}, {
|
|
253
643
|
readonly inputs: readonly [{
|
|
644
|
+
readonly internalType: "bytes32";
|
|
254
645
|
readonly name: "positionId";
|
|
255
646
|
readonly type: "bytes32";
|
|
256
|
-
readonly internalType: "bytes32";
|
|
257
647
|
}];
|
|
648
|
+
readonly name: "getSponsoredPosition";
|
|
258
649
|
readonly outputs: readonly [{
|
|
259
|
-
readonly name: "";
|
|
260
|
-
readonly type: "tuple";
|
|
261
|
-
readonly internalType: "struct ILevrBetCreditManager.SponsoredPosition";
|
|
262
650
|
readonly components: readonly [{
|
|
651
|
+
readonly internalType: "bytes32";
|
|
263
652
|
readonly name: "positionId";
|
|
264
653
|
readonly type: "bytes32";
|
|
265
|
-
readonly internalType: "bytes32";
|
|
266
654
|
}, {
|
|
655
|
+
readonly internalType: "bytes32";
|
|
267
656
|
readonly name: "leaf";
|
|
268
657
|
readonly type: "bytes32";
|
|
269
|
-
readonly internalType: "bytes32";
|
|
270
658
|
}, {
|
|
659
|
+
readonly internalType: "uint256";
|
|
271
660
|
readonly name: "campaignId";
|
|
272
661
|
readonly type: "uint256";
|
|
273
|
-
readonly internalType: "uint256";
|
|
274
662
|
}, {
|
|
663
|
+
readonly internalType: "uint256";
|
|
275
664
|
readonly name: "creditId";
|
|
276
665
|
readonly type: "uint256";
|
|
277
|
-
readonly internalType: "uint256";
|
|
278
666
|
}, {
|
|
667
|
+
readonly internalType: "uint256";
|
|
279
668
|
readonly name: "sponsoredAmount";
|
|
280
669
|
readonly type: "uint256";
|
|
281
|
-
readonly internalType: "uint256";
|
|
282
670
|
}, {
|
|
671
|
+
readonly internalType: "address";
|
|
283
672
|
readonly name: "contractAddress";
|
|
284
673
|
readonly type: "address";
|
|
285
|
-
readonly internalType: "address";
|
|
286
674
|
}, {
|
|
675
|
+
readonly internalType: "bool";
|
|
287
676
|
readonly name: "refunded";
|
|
288
677
|
readonly type: "bool";
|
|
289
|
-
readonly internalType: "bool";
|
|
290
678
|
}];
|
|
679
|
+
readonly internalType: "struct ILevrBetCreditManager.SponsoredPosition";
|
|
680
|
+
readonly name: "";
|
|
681
|
+
readonly type: "tuple";
|
|
291
682
|
}];
|
|
292
683
|
readonly stateMutability: "view";
|
|
293
|
-
}, {
|
|
294
684
|
readonly type: "function";
|
|
295
|
-
|
|
685
|
+
}, {
|
|
296
686
|
readonly inputs: readonly [{
|
|
687
|
+
readonly internalType: "address";
|
|
297
688
|
readonly name: "user";
|
|
298
689
|
readonly type: "address";
|
|
299
|
-
readonly internalType: "address";
|
|
300
690
|
}];
|
|
691
|
+
readonly name: "getUserCreditGrants";
|
|
301
692
|
readonly outputs: readonly [{
|
|
302
|
-
readonly name: "";
|
|
303
|
-
readonly type: "tuple[]";
|
|
304
|
-
readonly internalType: "struct ILevrBetCreditManager.CreditGrant[]";
|
|
305
693
|
readonly components: readonly [{
|
|
694
|
+
readonly internalType: "uint256";
|
|
306
695
|
readonly name: "amount";
|
|
307
696
|
readonly type: "uint256";
|
|
308
|
-
readonly internalType: "uint256";
|
|
309
697
|
}, {
|
|
698
|
+
readonly internalType: "address";
|
|
310
699
|
readonly name: "issuer";
|
|
311
700
|
readonly type: "address";
|
|
312
|
-
readonly internalType: "address";
|
|
313
701
|
}, {
|
|
702
|
+
readonly internalType: "address";
|
|
314
703
|
readonly name: "beneficiary";
|
|
315
704
|
readonly type: "address";
|
|
316
|
-
readonly internalType: "address";
|
|
317
705
|
}, {
|
|
706
|
+
readonly internalType: "bool";
|
|
318
707
|
readonly name: "spent";
|
|
319
708
|
readonly type: "bool";
|
|
320
|
-
readonly internalType: "bool";
|
|
321
709
|
}, {
|
|
710
|
+
readonly internalType: "bool";
|
|
322
711
|
readonly name: "revoked";
|
|
323
712
|
readonly type: "bool";
|
|
324
|
-
readonly internalType: "bool";
|
|
325
713
|
}];
|
|
714
|
+
readonly internalType: "struct ILevrBetCreditManager.CreditGrant[]";
|
|
715
|
+
readonly name: "";
|
|
716
|
+
readonly type: "tuple[]";
|
|
326
717
|
}];
|
|
327
718
|
readonly stateMutability: "view";
|
|
328
|
-
}, {
|
|
329
719
|
readonly type: "function";
|
|
330
|
-
|
|
720
|
+
}, {
|
|
331
721
|
readonly inputs: readonly [{
|
|
722
|
+
readonly internalType: "address";
|
|
332
723
|
readonly name: "user";
|
|
333
724
|
readonly type: "address";
|
|
334
|
-
readonly internalType: "address";
|
|
335
725
|
}];
|
|
726
|
+
readonly name: "getUserCreditGrantsQueue";
|
|
336
727
|
readonly outputs: readonly [{
|
|
728
|
+
readonly internalType: "uint256[]";
|
|
337
729
|
readonly name: "";
|
|
338
730
|
readonly type: "uint256[]";
|
|
339
|
-
readonly internalType: "uint256[]";
|
|
340
731
|
}];
|
|
341
732
|
readonly stateMutability: "view";
|
|
342
|
-
}, {
|
|
343
733
|
readonly type: "function";
|
|
344
|
-
|
|
734
|
+
}, {
|
|
345
735
|
readonly inputs: readonly [{
|
|
736
|
+
readonly internalType: "address";
|
|
346
737
|
readonly name: "user";
|
|
347
738
|
readonly type: "address";
|
|
348
|
-
readonly internalType: "address";
|
|
349
739
|
}];
|
|
740
|
+
readonly name: "getUserPendingCreditBalance";
|
|
350
741
|
readonly outputs: readonly [{
|
|
742
|
+
readonly internalType: "uint256";
|
|
351
743
|
readonly name: "total";
|
|
352
744
|
readonly type: "uint256";
|
|
353
|
-
readonly internalType: "uint256";
|
|
354
745
|
}];
|
|
355
746
|
readonly stateMutability: "view";
|
|
356
|
-
}, {
|
|
357
747
|
readonly type: "function";
|
|
358
|
-
|
|
748
|
+
}, {
|
|
359
749
|
readonly inputs: readonly [{
|
|
750
|
+
readonly internalType: "address";
|
|
360
751
|
readonly name: "user";
|
|
361
752
|
readonly type: "address";
|
|
362
|
-
readonly internalType: "address";
|
|
363
753
|
}];
|
|
754
|
+
readonly name: "getUserPositionIds";
|
|
364
755
|
readonly outputs: readonly [{
|
|
756
|
+
readonly internalType: "bytes32[]";
|
|
365
757
|
readonly name: "";
|
|
366
758
|
readonly type: "bytes32[]";
|
|
367
|
-
readonly internalType: "bytes32[]";
|
|
368
759
|
}];
|
|
369
760
|
readonly stateMutability: "view";
|
|
370
|
-
}, {
|
|
371
761
|
readonly type: "function";
|
|
372
|
-
|
|
762
|
+
}, {
|
|
373
763
|
readonly inputs: readonly [{
|
|
764
|
+
readonly internalType: "address";
|
|
374
765
|
readonly name: "user";
|
|
375
766
|
readonly type: "address";
|
|
376
|
-
readonly internalType: "address";
|
|
377
767
|
}];
|
|
768
|
+
readonly name: "getUserSponsoredPositions";
|
|
378
769
|
readonly outputs: readonly [{
|
|
379
|
-
readonly name: "";
|
|
380
|
-
readonly type: "tuple[]";
|
|
381
|
-
readonly internalType: "struct ILevrBetCreditManager.SponsoredPosition[]";
|
|
382
770
|
readonly components: readonly [{
|
|
771
|
+
readonly internalType: "bytes32";
|
|
383
772
|
readonly name: "positionId";
|
|
384
773
|
readonly type: "bytes32";
|
|
385
|
-
readonly internalType: "bytes32";
|
|
386
774
|
}, {
|
|
775
|
+
readonly internalType: "bytes32";
|
|
387
776
|
readonly name: "leaf";
|
|
388
777
|
readonly type: "bytes32";
|
|
389
|
-
readonly internalType: "bytes32";
|
|
390
778
|
}, {
|
|
779
|
+
readonly internalType: "uint256";
|
|
391
780
|
readonly name: "campaignId";
|
|
392
781
|
readonly type: "uint256";
|
|
393
|
-
readonly internalType: "uint256";
|
|
394
782
|
}, {
|
|
783
|
+
readonly internalType: "uint256";
|
|
395
784
|
readonly name: "creditId";
|
|
396
785
|
readonly type: "uint256";
|
|
397
|
-
readonly internalType: "uint256";
|
|
398
786
|
}, {
|
|
787
|
+
readonly internalType: "uint256";
|
|
399
788
|
readonly name: "sponsoredAmount";
|
|
400
789
|
readonly type: "uint256";
|
|
401
|
-
readonly internalType: "uint256";
|
|
402
790
|
}, {
|
|
791
|
+
readonly internalType: "address";
|
|
403
792
|
readonly name: "contractAddress";
|
|
404
793
|
readonly type: "address";
|
|
405
|
-
readonly internalType: "address";
|
|
406
794
|
}, {
|
|
795
|
+
readonly internalType: "bool";
|
|
407
796
|
readonly name: "refunded";
|
|
408
797
|
readonly type: "bool";
|
|
409
|
-
readonly internalType: "bool";
|
|
410
798
|
}];
|
|
411
|
-
|
|
412
|
-
readonly stateMutability: "view";
|
|
413
|
-
}, {
|
|
414
|
-
readonly type: "function";
|
|
415
|
-
readonly name: "isCampaignCreditClaimed";
|
|
416
|
-
readonly inputs: readonly [{
|
|
417
|
-
readonly name: "campaignId";
|
|
418
|
-
readonly type: "uint256";
|
|
419
|
-
readonly internalType: "uint256";
|
|
420
|
-
}, {
|
|
421
|
-
readonly name: "user";
|
|
422
|
-
readonly type: "address";
|
|
423
|
-
readonly internalType: "address";
|
|
424
|
-
}, {
|
|
425
|
-
readonly name: "amount";
|
|
426
|
-
readonly type: "uint256";
|
|
427
|
-
readonly internalType: "uint256";
|
|
428
|
-
}, {
|
|
429
|
-
readonly name: "nonce";
|
|
430
|
-
readonly type: "uint256";
|
|
431
|
-
readonly internalType: "uint256";
|
|
432
|
-
}];
|
|
433
|
-
readonly outputs: readonly [{
|
|
434
|
-
readonly name: "";
|
|
435
|
-
readonly type: "bool";
|
|
436
|
-
readonly internalType: "bool";
|
|
437
|
-
}];
|
|
438
|
-
readonly stateMutability: "view";
|
|
439
|
-
}, {
|
|
440
|
-
readonly type: "function";
|
|
441
|
-
readonly name: "levrConfigProvider";
|
|
442
|
-
readonly inputs: readonly [];
|
|
443
|
-
readonly outputs: readonly [{
|
|
799
|
+
readonly internalType: "struct ILevrBetCreditManager.SponsoredPosition[]";
|
|
444
800
|
readonly name: "";
|
|
445
|
-
readonly type: "
|
|
446
|
-
readonly internalType: "address";
|
|
801
|
+
readonly type: "tuple[]";
|
|
447
802
|
}];
|
|
448
803
|
readonly stateMutability: "view";
|
|
449
|
-
}, {
|
|
450
|
-
readonly type: "function";
|
|
451
|
-
readonly name: "redeemSponsoredPosition";
|
|
452
|
-
readonly inputs: readonly [{
|
|
453
|
-
readonly name: "positionId";
|
|
454
|
-
readonly type: "bytes32";
|
|
455
|
-
readonly internalType: "bytes32";
|
|
456
|
-
}];
|
|
457
|
-
readonly outputs: readonly [];
|
|
458
|
-
readonly stateMutability: "nonpayable";
|
|
459
|
-
}, {
|
|
460
|
-
readonly type: "function";
|
|
461
|
-
readonly name: "redeemSponsoredPositions";
|
|
462
|
-
readonly inputs: readonly [{
|
|
463
|
-
readonly name: "positionIds";
|
|
464
|
-
readonly type: "bytes32[]";
|
|
465
|
-
readonly internalType: "bytes32[]";
|
|
466
|
-
}];
|
|
467
|
-
readonly outputs: readonly [];
|
|
468
|
-
readonly stateMutability: "nonpayable";
|
|
469
|
-
}, {
|
|
470
804
|
readonly type: "function";
|
|
471
|
-
readonly name: "revokeCredit";
|
|
472
|
-
readonly inputs: readonly [{
|
|
473
|
-
readonly name: "user";
|
|
474
|
-
readonly type: "address";
|
|
475
|
-
readonly internalType: "address";
|
|
476
|
-
}, {
|
|
477
|
-
readonly name: "creditId";
|
|
478
|
-
readonly type: "uint256";
|
|
479
|
-
readonly internalType: "uint256";
|
|
480
|
-
}];
|
|
481
|
-
readonly outputs: readonly [];
|
|
482
|
-
readonly stateMutability: "nonpayable";
|
|
483
805
|
}, {
|
|
484
|
-
readonly type: "function";
|
|
485
|
-
readonly name: "setCreditCampaignPaused";
|
|
486
806
|
readonly inputs: readonly [{
|
|
487
|
-
readonly name: "campaignId";
|
|
488
|
-
readonly type: "uint256";
|
|
489
807
|
readonly internalType: "uint256";
|
|
490
|
-
}, {
|
|
491
|
-
readonly name: "pause";
|
|
492
|
-
readonly type: "bool";
|
|
493
|
-
readonly internalType: "bool";
|
|
494
|
-
}];
|
|
495
|
-
readonly outputs: readonly [];
|
|
496
|
-
readonly stateMutability: "nonpayable";
|
|
497
|
-
}, {
|
|
498
|
-
readonly type: "function";
|
|
499
|
-
readonly name: "setCreditCampaignUserPaused";
|
|
500
|
-
readonly inputs: readonly [{
|
|
501
808
|
readonly name: "campaignId";
|
|
502
809
|
readonly type: "uint256";
|
|
503
|
-
readonly internalType: "uint256";
|
|
504
810
|
}, {
|
|
811
|
+
readonly internalType: "address";
|
|
505
812
|
readonly name: "user";
|
|
506
813
|
readonly type: "address";
|
|
507
|
-
readonly internalType: "address";
|
|
508
|
-
}, {
|
|
509
|
-
readonly name: "pause";
|
|
510
|
-
readonly type: "bool";
|
|
511
|
-
readonly internalType: "bool";
|
|
512
|
-
}];
|
|
513
|
-
readonly outputs: readonly [];
|
|
514
|
-
readonly stateMutability: "nonpayable";
|
|
515
|
-
}, {
|
|
516
|
-
readonly type: "function";
|
|
517
|
-
readonly name: "setCreditors";
|
|
518
|
-
readonly inputs: readonly [{
|
|
519
|
-
readonly name: "_creditors";
|
|
520
|
-
readonly type: "address[]";
|
|
521
|
-
readonly internalType: "address[]";
|
|
522
|
-
}, {
|
|
523
|
-
readonly name: "add";
|
|
524
|
-
readonly type: "bool";
|
|
525
|
-
readonly internalType: "bool";
|
|
526
|
-
}];
|
|
527
|
-
readonly outputs: readonly [];
|
|
528
|
-
readonly stateMutability: "nonpayable";
|
|
529
|
-
}, {
|
|
530
|
-
readonly type: "function";
|
|
531
|
-
readonly name: "spendCredits";
|
|
532
|
-
readonly inputs: readonly [{
|
|
533
|
-
readonly name: "creditId";
|
|
534
|
-
readonly type: "uint256";
|
|
535
|
-
readonly internalType: "uint256";
|
|
536
|
-
}, {
|
|
537
|
-
readonly name: "gameMarketId";
|
|
538
|
-
readonly type: "bytes32";
|
|
539
|
-
readonly internalType: "bytes32";
|
|
540
|
-
}, {
|
|
541
|
-
readonly name: "levrMarketId";
|
|
542
|
-
readonly type: "bytes16";
|
|
543
|
-
readonly internalType: "bytes16";
|
|
544
|
-
}, {
|
|
545
|
-
readonly name: "minTokensOut";
|
|
546
|
-
readonly type: "uint256";
|
|
547
|
-
readonly internalType: "uint256";
|
|
548
|
-
}, {
|
|
549
|
-
readonly name: "side";
|
|
550
|
-
readonly type: "uint8";
|
|
551
|
-
readonly internalType: "enum Side";
|
|
552
|
-
}, {
|
|
553
|
-
readonly name: "leverage";
|
|
554
|
-
readonly type: "uint8";
|
|
555
|
-
readonly internalType: "uint8";
|
|
556
814
|
}, {
|
|
557
|
-
readonly name: "whitelistProof";
|
|
558
|
-
readonly type: "bytes32[]";
|
|
559
|
-
readonly internalType: "bytes32[]";
|
|
560
|
-
}];
|
|
561
|
-
readonly outputs: readonly [];
|
|
562
|
-
readonly stateMutability: "nonpayable";
|
|
563
|
-
}, {
|
|
564
|
-
readonly type: "function";
|
|
565
|
-
readonly name: "spendCredits";
|
|
566
|
-
readonly inputs: readonly [{
|
|
567
|
-
readonly name: "campaignId";
|
|
568
|
-
readonly type: "uint256";
|
|
569
815
|
readonly internalType: "uint256";
|
|
570
|
-
|
|
571
|
-
readonly name: "proof";
|
|
572
|
-
readonly type: "bytes32[]";
|
|
573
|
-
readonly internalType: "bytes32[]";
|
|
574
|
-
}, {
|
|
575
|
-
readonly name: "claimNonce";
|
|
816
|
+
readonly name: "amount";
|
|
576
817
|
readonly type: "uint256";
|
|
577
|
-
readonly internalType: "uint256";
|
|
578
|
-
}, {
|
|
579
|
-
readonly name: "gameMarketId";
|
|
580
|
-
readonly type: "bytes32";
|
|
581
|
-
readonly internalType: "bytes32";
|
|
582
|
-
}, {
|
|
583
|
-
readonly name: "levrMarketId";
|
|
584
|
-
readonly type: "bytes16";
|
|
585
|
-
readonly internalType: "bytes16";
|
|
586
818
|
}, {
|
|
587
|
-
readonly name: "assetAmount";
|
|
588
|
-
readonly type: "uint256";
|
|
589
819
|
readonly internalType: "uint256";
|
|
590
|
-
|
|
591
|
-
readonly name: "minTokensOut";
|
|
820
|
+
readonly name: "nonce";
|
|
592
821
|
readonly type: "uint256";
|
|
593
|
-
readonly internalType: "uint256";
|
|
594
|
-
}, {
|
|
595
|
-
readonly name: "side";
|
|
596
|
-
readonly type: "uint8";
|
|
597
|
-
readonly internalType: "enum Side";
|
|
598
|
-
}, {
|
|
599
|
-
readonly name: "leverage";
|
|
600
|
-
readonly type: "uint8";
|
|
601
|
-
readonly internalType: "uint8";
|
|
602
|
-
}, {
|
|
603
|
-
readonly name: "whitelistProof";
|
|
604
|
-
readonly type: "bytes32[]";
|
|
605
|
-
readonly internalType: "bytes32[]";
|
|
606
|
-
}];
|
|
607
|
-
readonly outputs: readonly [];
|
|
608
|
-
readonly stateMutability: "nonpayable";
|
|
609
|
-
}, {
|
|
610
|
-
readonly type: "function";
|
|
611
|
-
readonly name: "supportsInterface";
|
|
612
|
-
readonly inputs: readonly [{
|
|
613
|
-
readonly name: "interfaceId";
|
|
614
|
-
readonly type: "bytes4";
|
|
615
|
-
readonly internalType: "bytes4";
|
|
616
822
|
}];
|
|
823
|
+
readonly name: "isCampaignCreditClaimed";
|
|
617
824
|
readonly outputs: readonly [{
|
|
825
|
+
readonly internalType: "bool";
|
|
618
826
|
readonly name: "";
|
|
619
827
|
readonly type: "bool";
|
|
620
|
-
readonly internalType: "bool";
|
|
621
828
|
}];
|
|
622
829
|
readonly stateMutability: "view";
|
|
623
|
-
}, {
|
|
624
|
-
readonly type: "function";
|
|
625
|
-
readonly name: "updateLevrConfigProvider";
|
|
626
|
-
readonly inputs: readonly [{
|
|
627
|
-
readonly name: "newLevrConfigProvider";
|
|
628
|
-
readonly type: "address";
|
|
629
|
-
readonly internalType: "address";
|
|
630
|
-
}];
|
|
631
|
-
readonly outputs: readonly [];
|
|
632
|
-
readonly stateMutability: "nonpayable";
|
|
633
|
-
}, {
|
|
634
830
|
readonly type: "function";
|
|
635
|
-
|
|
831
|
+
}, {
|
|
636
832
|
readonly inputs: readonly [];
|
|
833
|
+
readonly name: "levrConfigProvider";
|
|
637
834
|
readonly outputs: readonly [{
|
|
835
|
+
readonly internalType: "address";
|
|
638
836
|
readonly name: "";
|
|
639
837
|
readonly type: "address";
|
|
640
|
-
readonly internalType: "contract IERC20";
|
|
641
838
|
}];
|
|
642
839
|
readonly stateMutability: "view";
|
|
643
|
-
}, {
|
|
644
840
|
readonly type: "function";
|
|
645
|
-
|
|
841
|
+
}, {
|
|
646
842
|
readonly inputs: readonly [{
|
|
647
|
-
readonly
|
|
648
|
-
readonly
|
|
649
|
-
readonly
|
|
650
|
-
}];
|
|
651
|
-
readonly outputs: readonly [{
|
|
652
|
-
readonly name: "creditId";
|
|
653
|
-
readonly type: "uint256";
|
|
654
|
-
readonly internalType: "uint256";
|
|
843
|
+
readonly internalType: "bytes32";
|
|
844
|
+
readonly name: "positionId";
|
|
845
|
+
readonly type: "bytes32";
|
|
655
846
|
}];
|
|
656
|
-
readonly
|
|
657
|
-
|
|
847
|
+
readonly name: "redeemSponsoredPosition";
|
|
848
|
+
readonly outputs: readonly [];
|
|
849
|
+
readonly stateMutability: "nonpayable";
|
|
658
850
|
readonly type: "function";
|
|
659
|
-
|
|
851
|
+
}, {
|
|
660
852
|
readonly inputs: readonly [{
|
|
661
|
-
readonly
|
|
662
|
-
readonly
|
|
663
|
-
readonly
|
|
664
|
-
}, {
|
|
665
|
-
readonly name: "to";
|
|
666
|
-
readonly type: "address";
|
|
667
|
-
readonly internalType: "address";
|
|
668
|
-
}, {
|
|
669
|
-
readonly name: "amount";
|
|
670
|
-
readonly type: "uint256";
|
|
671
|
-
readonly internalType: "uint256";
|
|
853
|
+
readonly internalType: "bytes32[]";
|
|
854
|
+
readonly name: "positionIds";
|
|
855
|
+
readonly type: "bytes32[]";
|
|
672
856
|
}];
|
|
857
|
+
readonly name: "redeemSponsoredPositions";
|
|
673
858
|
readonly outputs: readonly [];
|
|
674
859
|
readonly stateMutability: "nonpayable";
|
|
860
|
+
readonly type: "function";
|
|
675
861
|
}, {
|
|
676
|
-
readonly type: "event";
|
|
677
|
-
readonly name: "BlacklistUpdated";
|
|
678
862
|
readonly inputs: readonly [{
|
|
863
|
+
readonly internalType: "address";
|
|
679
864
|
readonly name: "user";
|
|
680
865
|
readonly type: "address";
|
|
681
|
-
readonly indexed: true;
|
|
682
|
-
readonly internalType: "address";
|
|
683
866
|
}, {
|
|
684
|
-
readonly name: "blacklisted";
|
|
685
|
-
readonly type: "bool";
|
|
686
|
-
readonly indexed: false;
|
|
687
|
-
readonly internalType: "bool";
|
|
688
|
-
}];
|
|
689
|
-
readonly anonymous: false;
|
|
690
|
-
}, {
|
|
691
|
-
readonly type: "event";
|
|
692
|
-
readonly name: "CreditCampaignCreated";
|
|
693
|
-
readonly inputs: readonly [{
|
|
694
|
-
readonly name: "campaignId";
|
|
695
|
-
readonly type: "uint256";
|
|
696
|
-
readonly indexed: true;
|
|
697
867
|
readonly internalType: "uint256";
|
|
698
|
-
|
|
699
|
-
readonly name: "merkleRoot";
|
|
700
|
-
readonly type: "bytes32";
|
|
701
|
-
readonly indexed: true;
|
|
702
|
-
readonly internalType: "bytes32";
|
|
703
|
-
}, {
|
|
704
|
-
readonly name: "issuer";
|
|
705
|
-
readonly type: "address";
|
|
706
|
-
readonly indexed: true;
|
|
707
|
-
readonly internalType: "address";
|
|
708
|
-
}, {
|
|
709
|
-
readonly name: "totalCredits";
|
|
868
|
+
readonly name: "creditId";
|
|
710
869
|
readonly type: "uint256";
|
|
711
|
-
readonly indexed: false;
|
|
712
|
-
readonly internalType: "uint256";
|
|
713
870
|
}];
|
|
714
|
-
readonly
|
|
871
|
+
readonly name: "revokeCredit";
|
|
872
|
+
readonly outputs: readonly [];
|
|
873
|
+
readonly stateMutability: "nonpayable";
|
|
874
|
+
readonly type: "function";
|
|
715
875
|
}, {
|
|
716
|
-
readonly type: "event";
|
|
717
|
-
readonly name: "CreditCampaignPaused";
|
|
718
876
|
readonly inputs: readonly [{
|
|
877
|
+
readonly internalType: "uint256";
|
|
719
878
|
readonly name: "campaignId";
|
|
720
879
|
readonly type: "uint256";
|
|
721
|
-
readonly indexed: true;
|
|
722
|
-
readonly internalType: "uint256";
|
|
723
880
|
}, {
|
|
724
|
-
readonly name: "paused";
|
|
725
|
-
readonly type: "bool";
|
|
726
|
-
readonly indexed: false;
|
|
727
881
|
readonly internalType: "bool";
|
|
882
|
+
readonly name: "pause";
|
|
883
|
+
readonly type: "bool";
|
|
728
884
|
}];
|
|
729
|
-
readonly
|
|
885
|
+
readonly name: "setCreditCampaignPaused";
|
|
886
|
+
readonly outputs: readonly [];
|
|
887
|
+
readonly stateMutability: "nonpayable";
|
|
888
|
+
readonly type: "function";
|
|
730
889
|
}, {
|
|
731
|
-
readonly type: "event";
|
|
732
|
-
readonly name: "CreditCampaignUserPaused";
|
|
733
890
|
readonly inputs: readonly [{
|
|
891
|
+
readonly internalType: "uint256";
|
|
734
892
|
readonly name: "campaignId";
|
|
735
893
|
readonly type: "uint256";
|
|
736
|
-
readonly indexed: true;
|
|
737
|
-
readonly internalType: "uint256";
|
|
738
894
|
}, {
|
|
739
|
-
readonly name: "user";
|
|
740
|
-
readonly type: "address";
|
|
741
|
-
readonly indexed: true;
|
|
742
895
|
readonly internalType: "address";
|
|
743
|
-
}, {
|
|
744
|
-
readonly name: "paused";
|
|
745
|
-
readonly type: "bool";
|
|
746
|
-
readonly indexed: false;
|
|
747
|
-
readonly internalType: "bool";
|
|
748
|
-
}];
|
|
749
|
-
readonly anonymous: false;
|
|
750
|
-
}, {
|
|
751
|
-
readonly type: "event";
|
|
752
|
-
readonly name: "CreditRevoked";
|
|
753
|
-
readonly inputs: readonly [{
|
|
754
896
|
readonly name: "user";
|
|
755
897
|
readonly type: "address";
|
|
756
|
-
readonly indexed: true;
|
|
757
|
-
readonly internalType: "address";
|
|
758
898
|
}, {
|
|
759
|
-
readonly
|
|
760
|
-
readonly
|
|
761
|
-
readonly
|
|
762
|
-
readonly internalType: "uint256";
|
|
899
|
+
readonly internalType: "bool";
|
|
900
|
+
readonly name: "pause";
|
|
901
|
+
readonly type: "bool";
|
|
763
902
|
}];
|
|
764
|
-
readonly
|
|
903
|
+
readonly name: "setCreditCampaignUserPaused";
|
|
904
|
+
readonly outputs: readonly [];
|
|
905
|
+
readonly stateMutability: "nonpayable";
|
|
906
|
+
readonly type: "function";
|
|
765
907
|
}, {
|
|
766
|
-
readonly type: "event";
|
|
767
|
-
readonly name: "CreditorUpdated";
|
|
768
908
|
readonly inputs: readonly [{
|
|
769
|
-
readonly
|
|
770
|
-
readonly
|
|
771
|
-
readonly
|
|
772
|
-
readonly internalType: "address";
|
|
909
|
+
readonly internalType: "address[]";
|
|
910
|
+
readonly name: "_creditors";
|
|
911
|
+
readonly type: "address[]";
|
|
773
912
|
}, {
|
|
774
|
-
readonly name: "added";
|
|
775
|
-
readonly type: "bool";
|
|
776
|
-
readonly indexed: false;
|
|
777
913
|
readonly internalType: "bool";
|
|
914
|
+
readonly name: "add";
|
|
915
|
+
readonly type: "bool";
|
|
778
916
|
}];
|
|
779
|
-
readonly
|
|
917
|
+
readonly name: "setCreditors";
|
|
918
|
+
readonly outputs: readonly [];
|
|
919
|
+
readonly stateMutability: "nonpayable";
|
|
920
|
+
readonly type: "function";
|
|
780
921
|
}, {
|
|
781
|
-
readonly type: "event";
|
|
782
|
-
readonly name: "CreditsSpent";
|
|
783
922
|
readonly inputs: readonly [{
|
|
784
|
-
readonly name: "campaignId";
|
|
785
|
-
readonly type: "uint256";
|
|
786
|
-
readonly indexed: true;
|
|
787
923
|
readonly internalType: "uint256";
|
|
788
|
-
}, {
|
|
789
924
|
readonly name: "creditId";
|
|
790
925
|
readonly type: "uint256";
|
|
791
|
-
readonly indexed: true;
|
|
792
|
-
readonly internalType: "uint256";
|
|
793
926
|
}, {
|
|
794
|
-
readonly name: "positionId";
|
|
795
|
-
readonly type: "bytes32";
|
|
796
|
-
readonly indexed: true;
|
|
797
927
|
readonly internalType: "bytes32";
|
|
928
|
+
readonly name: "gameMarketId";
|
|
929
|
+
readonly type: "bytes32";
|
|
798
930
|
}, {
|
|
799
|
-
readonly
|
|
800
|
-
readonly type: "address";
|
|
801
|
-
readonly indexed: false;
|
|
802
|
-
readonly internalType: "address";
|
|
803
|
-
}, {
|
|
804
|
-
readonly name: "creditAmount";
|
|
805
|
-
readonly type: "uint256";
|
|
806
|
-
readonly indexed: false;
|
|
807
|
-
readonly internalType: "uint256";
|
|
808
|
-
}, {
|
|
931
|
+
readonly internalType: "bytes16";
|
|
809
932
|
readonly name: "levrMarketId";
|
|
810
933
|
readonly type: "bytes16";
|
|
811
|
-
readonly indexed: false;
|
|
812
|
-
readonly internalType: "bytes16";
|
|
813
934
|
}, {
|
|
935
|
+
readonly internalType: "uint256";
|
|
936
|
+
readonly name: "minTokensOut";
|
|
937
|
+
readonly type: "uint256";
|
|
938
|
+
}, {
|
|
939
|
+
readonly internalType: "enum Side";
|
|
814
940
|
readonly name: "side";
|
|
815
941
|
readonly type: "uint8";
|
|
816
|
-
readonly indexed: false;
|
|
817
|
-
readonly internalType: "enum Side";
|
|
818
942
|
}, {
|
|
943
|
+
readonly internalType: "uint8";
|
|
819
944
|
readonly name: "leverage";
|
|
820
945
|
readonly type: "uint8";
|
|
821
|
-
readonly indexed: false;
|
|
822
|
-
readonly internalType: "uint8";
|
|
823
|
-
}];
|
|
824
|
-
readonly anonymous: false;
|
|
825
|
-
}, {
|
|
826
|
-
readonly type: "event";
|
|
827
|
-
readonly name: "LevrConfigProviderUpdated";
|
|
828
|
-
readonly inputs: readonly [{
|
|
829
|
-
readonly name: "prevProvider";
|
|
830
|
-
readonly type: "address";
|
|
831
|
-
readonly indexed: true;
|
|
832
|
-
readonly internalType: "address";
|
|
833
946
|
}, {
|
|
834
|
-
readonly
|
|
835
|
-
readonly
|
|
836
|
-
readonly
|
|
837
|
-
|
|
947
|
+
readonly internalType: "bytes32[]";
|
|
948
|
+
readonly name: "userWhitelistProof";
|
|
949
|
+
readonly type: "bytes32[]";
|
|
950
|
+
}, {
|
|
951
|
+
readonly internalType: "bytes32[]";
|
|
952
|
+
readonly name: "contractWhitelistProof";
|
|
953
|
+
readonly type: "bytes32[]";
|
|
838
954
|
}];
|
|
839
|
-
readonly
|
|
955
|
+
readonly name: "spendCredits";
|
|
956
|
+
readonly outputs: readonly [];
|
|
957
|
+
readonly stateMutability: "nonpayable";
|
|
958
|
+
readonly type: "function";
|
|
840
959
|
}, {
|
|
841
|
-
readonly type: "event";
|
|
842
|
-
readonly name: "SponsoredPositionRedeemed";
|
|
843
960
|
readonly inputs: readonly [{
|
|
844
|
-
readonly
|
|
845
|
-
readonly type: "bytes32";
|
|
846
|
-
readonly indexed: true;
|
|
847
|
-
readonly internalType: "bytes32";
|
|
848
|
-
}, {
|
|
849
|
-
readonly name: "user";
|
|
850
|
-
readonly type: "address";
|
|
851
|
-
readonly indexed: true;
|
|
852
|
-
readonly internalType: "address";
|
|
853
|
-
}, {
|
|
961
|
+
readonly internalType: "uint256";
|
|
854
962
|
readonly name: "campaignId";
|
|
855
963
|
readonly type: "uint256";
|
|
856
|
-
|
|
964
|
+
}, {
|
|
965
|
+
readonly internalType: "bytes32[]";
|
|
966
|
+
readonly name: "proof";
|
|
967
|
+
readonly type: "bytes32[]";
|
|
968
|
+
}, {
|
|
857
969
|
readonly internalType: "uint256";
|
|
970
|
+
readonly name: "claimNonce";
|
|
971
|
+
readonly type: "uint256";
|
|
858
972
|
}, {
|
|
859
|
-
readonly name: "leaf";
|
|
860
|
-
readonly type: "bytes32";
|
|
861
|
-
readonly indexed: false;
|
|
862
973
|
readonly internalType: "bytes32";
|
|
974
|
+
readonly name: "gameMarketId";
|
|
975
|
+
readonly type: "bytes32";
|
|
863
976
|
}, {
|
|
864
|
-
readonly
|
|
865
|
-
readonly
|
|
866
|
-
readonly
|
|
867
|
-
readonly internalType: "uint256";
|
|
977
|
+
readonly internalType: "bytes16";
|
|
978
|
+
readonly name: "levrMarketId";
|
|
979
|
+
readonly type: "bytes16";
|
|
868
980
|
}, {
|
|
869
|
-
readonly name: "amountRedeemed";
|
|
870
|
-
readonly type: "uint256";
|
|
871
|
-
readonly indexed: false;
|
|
872
981
|
readonly internalType: "uint256";
|
|
873
|
-
|
|
874
|
-
readonly name: "userNetRedeemed";
|
|
982
|
+
readonly name: "assetAmount";
|
|
875
983
|
readonly type: "uint256";
|
|
876
|
-
|
|
984
|
+
}, {
|
|
877
985
|
readonly internalType: "uint256";
|
|
986
|
+
readonly name: "minTokensOut";
|
|
987
|
+
readonly type: "uint256";
|
|
988
|
+
}, {
|
|
989
|
+
readonly internalType: "enum Side";
|
|
990
|
+
readonly name: "side";
|
|
991
|
+
readonly type: "uint8";
|
|
992
|
+
}, {
|
|
993
|
+
readonly internalType: "uint8";
|
|
994
|
+
readonly name: "leverage";
|
|
995
|
+
readonly type: "uint8";
|
|
878
996
|
}, {
|
|
879
|
-
readonly
|
|
880
|
-
readonly
|
|
881
|
-
readonly
|
|
882
|
-
readonly internalType: "uint256";
|
|
997
|
+
readonly internalType: "bytes32[]";
|
|
998
|
+
readonly name: "userWhitelistProof";
|
|
999
|
+
readonly type: "bytes32[]";
|
|
883
1000
|
}, {
|
|
884
|
-
readonly
|
|
885
|
-
readonly
|
|
886
|
-
readonly
|
|
1001
|
+
readonly internalType: "bytes32[]";
|
|
1002
|
+
readonly name: "contractWhitelistProof";
|
|
1003
|
+
readonly type: "bytes32[]";
|
|
1004
|
+
}];
|
|
1005
|
+
readonly name: "spendCredits";
|
|
1006
|
+
readonly outputs: readonly [];
|
|
1007
|
+
readonly stateMutability: "nonpayable";
|
|
1008
|
+
readonly type: "function";
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly inputs: readonly [{
|
|
1011
|
+
readonly internalType: "bytes4";
|
|
1012
|
+
readonly name: "interfaceId";
|
|
1013
|
+
readonly type: "bytes4";
|
|
1014
|
+
}];
|
|
1015
|
+
readonly name: "supportsInterface";
|
|
1016
|
+
readonly outputs: readonly [{
|
|
887
1017
|
readonly internalType: "bool";
|
|
1018
|
+
readonly name: "";
|
|
1019
|
+
readonly type: "bool";
|
|
888
1020
|
}];
|
|
889
|
-
readonly
|
|
1021
|
+
readonly stateMutability: "view";
|
|
1022
|
+
readonly type: "function";
|
|
890
1023
|
}, {
|
|
891
|
-
readonly type: "event";
|
|
892
|
-
readonly name: "UserCredited";
|
|
893
1024
|
readonly inputs: readonly [{
|
|
894
|
-
readonly name: "creditId";
|
|
895
|
-
readonly type: "uint256";
|
|
896
|
-
readonly indexed: true;
|
|
897
|
-
readonly internalType: "uint256";
|
|
898
|
-
}, {
|
|
899
|
-
readonly name: "user";
|
|
900
|
-
readonly type: "address";
|
|
901
|
-
readonly indexed: true;
|
|
902
1025
|
readonly internalType: "address";
|
|
903
|
-
|
|
904
|
-
readonly name: "amount";
|
|
905
|
-
readonly type: "uint256";
|
|
906
|
-
readonly indexed: false;
|
|
907
|
-
readonly internalType: "uint256";
|
|
908
|
-
}, {
|
|
909
|
-
readonly name: "issuer";
|
|
1026
|
+
readonly name: "newLevrConfigProvider";
|
|
910
1027
|
readonly type: "address";
|
|
911
|
-
readonly indexed: true;
|
|
912
|
-
readonly internalType: "address";
|
|
913
1028
|
}];
|
|
914
|
-
readonly
|
|
915
|
-
|
|
916
|
-
readonly
|
|
917
|
-
readonly
|
|
918
|
-
readonly inputs: readonly [];
|
|
919
|
-
}, {
|
|
920
|
-
readonly type: "error";
|
|
921
|
-
readonly name: "LBCM_CAMPAIGN_PAUSED";
|
|
922
|
-
readonly inputs: readonly [];
|
|
923
|
-
}, {
|
|
924
|
-
readonly type: "error";
|
|
925
|
-
readonly name: "LBCM_CAMPAIGN_USER_PAUSED";
|
|
926
|
-
readonly inputs: readonly [];
|
|
927
|
-
}, {
|
|
928
|
-
readonly type: "error";
|
|
929
|
-
readonly name: "LBCM_CREDIT_ALREADY_CLAIMED";
|
|
930
|
-
readonly inputs: readonly [];
|
|
931
|
-
}, {
|
|
932
|
-
readonly type: "error";
|
|
933
|
-
readonly name: "LBCM_CREDIT_GRANT_ALREADY_SPENT";
|
|
934
|
-
readonly inputs: readonly [];
|
|
935
|
-
}, {
|
|
936
|
-
readonly type: "error";
|
|
937
|
-
readonly name: "LBCM_CREDIT_GRANT_REVOKED";
|
|
938
|
-
readonly inputs: readonly [];
|
|
939
|
-
}, {
|
|
940
|
-
readonly type: "error";
|
|
941
|
-
readonly name: "LBCM_GRANT_BELOW_MIN";
|
|
942
|
-
readonly inputs: readonly [];
|
|
943
|
-
}, {
|
|
944
|
-
readonly type: "error";
|
|
945
|
-
readonly name: "LBCM_INSUFFICIENT_CREDITS_SPENT";
|
|
946
|
-
readonly inputs: readonly [];
|
|
947
|
-
}, {
|
|
948
|
-
readonly type: "error";
|
|
949
|
-
readonly name: "LBCM_INSUFFICIENT_PAYOUT_FOR_SPONSORSHIP";
|
|
950
|
-
readonly inputs: readonly [];
|
|
951
|
-
}, {
|
|
952
|
-
readonly type: "error";
|
|
953
|
-
readonly name: "LBCM_INVALID_ADDRESS";
|
|
954
|
-
readonly inputs: readonly [];
|
|
955
|
-
}, {
|
|
956
|
-
readonly type: "error";
|
|
957
|
-
readonly name: "LBCM_INVALID_BENEFICIARY";
|
|
958
|
-
readonly inputs: readonly [];
|
|
959
|
-
}, {
|
|
960
|
-
readonly type: "error";
|
|
961
|
-
readonly name: "LBCM_INVALID_CREDITS";
|
|
962
|
-
readonly inputs: readonly [];
|
|
963
|
-
}, {
|
|
964
|
-
readonly type: "error";
|
|
965
|
-
readonly name: "LBCM_INVALID_CREDIT_CAMPAIGN";
|
|
966
|
-
readonly inputs: readonly [];
|
|
967
|
-
}, {
|
|
968
|
-
readonly type: "error";
|
|
969
|
-
readonly name: "LBCM_INVALID_CREDIT_GRANT";
|
|
970
|
-
readonly inputs: readonly [];
|
|
971
|
-
}, {
|
|
972
|
-
readonly type: "error";
|
|
973
|
-
readonly name: "LBCM_INVALID_CREDIT_PROOF";
|
|
974
|
-
readonly inputs: readonly [];
|
|
975
|
-
}, {
|
|
976
|
-
readonly type: "error";
|
|
977
|
-
readonly name: "LBCM_INVALID_LEVR_MARKET_ID";
|
|
978
|
-
readonly inputs: readonly [];
|
|
979
|
-
}, {
|
|
980
|
-
readonly type: "error";
|
|
981
|
-
readonly name: "LBCM_INVALID_MERKLE_ROOT";
|
|
982
|
-
readonly inputs: readonly [];
|
|
983
|
-
}, {
|
|
984
|
-
readonly type: "error";
|
|
985
|
-
readonly name: "LBCM_INVALID_SPEND";
|
|
986
|
-
readonly inputs: readonly [];
|
|
987
|
-
}, {
|
|
988
|
-
readonly type: "error";
|
|
989
|
-
readonly name: "LBCM_NON_USDC_MARKET";
|
|
990
|
-
readonly inputs: readonly [];
|
|
991
|
-
}, {
|
|
992
|
-
readonly type: "error";
|
|
993
|
-
readonly name: "LBCM_NOT_CREDITOR";
|
|
994
|
-
readonly inputs: readonly [];
|
|
995
|
-
}, {
|
|
996
|
-
readonly type: "error";
|
|
997
|
-
readonly name: "LBCM_NOT_LEVR_ADMIN";
|
|
998
|
-
readonly inputs: readonly [];
|
|
999
|
-
}, {
|
|
1000
|
-
readonly type: "error";
|
|
1001
|
-
readonly name: "LBCM_NO_CREDITS_TO_SPEND";
|
|
1002
|
-
readonly inputs: readonly [];
|
|
1003
|
-
}, {
|
|
1004
|
-
readonly type: "error";
|
|
1005
|
-
readonly name: "LBCM_UNEXPECTED_CAMPAIGN_ID";
|
|
1006
|
-
readonly inputs: readonly [];
|
|
1029
|
+
readonly name: "updateLevrConfigProvider";
|
|
1030
|
+
readonly outputs: readonly [];
|
|
1031
|
+
readonly stateMutability: "nonpayable";
|
|
1032
|
+
readonly type: "function";
|
|
1007
1033
|
}, {
|
|
1008
|
-
readonly type: "error";
|
|
1009
|
-
readonly name: "LBCM_USERS_LIMIT_EXCEEDED";
|
|
1010
1034
|
readonly inputs: readonly [];
|
|
1035
|
+
readonly name: "usdcToken";
|
|
1036
|
+
readonly outputs: readonly [{
|
|
1037
|
+
readonly internalType: "contract IERC20";
|
|
1038
|
+
readonly name: "";
|
|
1039
|
+
readonly type: "address";
|
|
1040
|
+
}];
|
|
1041
|
+
readonly stateMutability: "view";
|
|
1042
|
+
readonly type: "function";
|
|
1011
1043
|
}, {
|
|
1012
|
-
readonly type: "error";
|
|
1013
|
-
readonly name: "LBCM_USER_BLACKLISTED";
|
|
1014
1044
|
readonly inputs: readonly [{
|
|
1045
|
+
readonly internalType: "address";
|
|
1015
1046
|
readonly name: "user";
|
|
1016
1047
|
readonly type: "address";
|
|
1017
|
-
readonly internalType: "address";
|
|
1018
1048
|
}];
|
|
1049
|
+
readonly name: "userCreditId";
|
|
1050
|
+
readonly outputs: readonly [{
|
|
1051
|
+
readonly internalType: "uint256";
|
|
1052
|
+
readonly name: "creditId";
|
|
1053
|
+
readonly type: "uint256";
|
|
1054
|
+
}];
|
|
1055
|
+
readonly stateMutability: "view";
|
|
1056
|
+
readonly type: "function";
|
|
1019
1057
|
}, {
|
|
1020
|
-
readonly type: "error";
|
|
1021
|
-
readonly name: "LB_CONFIG_INVALID_INTERFACE";
|
|
1022
|
-
readonly inputs: readonly [];
|
|
1023
|
-
}, {
|
|
1024
|
-
readonly type: "error";
|
|
1025
|
-
readonly name: "LB_CONFIG_PROVIDER_NOT_CONTRACT";
|
|
1026
|
-
readonly inputs: readonly [];
|
|
1027
|
-
}, {
|
|
1028
|
-
readonly type: "error";
|
|
1029
|
-
readonly name: "LB_NOT_LEVR_ADMIN";
|
|
1030
|
-
readonly inputs: readonly [];
|
|
1031
|
-
}, {
|
|
1032
|
-
readonly type: "error";
|
|
1033
|
-
readonly name: "LM_INVALID_PROGRESS_BPS";
|
|
1034
|
-
readonly inputs: readonly [];
|
|
1035
|
-
}, {
|
|
1036
|
-
readonly type: "error";
|
|
1037
|
-
readonly name: "SafeERC20FailedOperation";
|
|
1038
1058
|
readonly inputs: readonly [{
|
|
1059
|
+
readonly internalType: "address";
|
|
1039
1060
|
readonly name: "token";
|
|
1040
1061
|
readonly type: "address";
|
|
1062
|
+
}, {
|
|
1041
1063
|
readonly internalType: "address";
|
|
1064
|
+
readonly name: "to";
|
|
1065
|
+
readonly type: "address";
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly internalType: "uint256";
|
|
1068
|
+
readonly name: "amount";
|
|
1069
|
+
readonly type: "uint256";
|
|
1042
1070
|
}];
|
|
1071
|
+
readonly name: "withdrawFromFundManager";
|
|
1072
|
+
readonly outputs: readonly [];
|
|
1073
|
+
readonly stateMutability: "nonpayable";
|
|
1074
|
+
readonly type: "function";
|
|
1043
1075
|
}];
|
|
1044
1076
|
readonly levrConfigProvider: readonly [{
|
|
1045
1077
|
readonly inputs: readonly [{
|
|
@@ -1377,6 +1409,21 @@ export declare const abis: {
|
|
|
1377
1409
|
}];
|
|
1378
1410
|
readonly name: "InGameTierFeesUpdated";
|
|
1379
1411
|
readonly type: "event";
|
|
1412
|
+
}, {
|
|
1413
|
+
readonly anonymous: false;
|
|
1414
|
+
readonly inputs: readonly [{
|
|
1415
|
+
readonly indexed: false;
|
|
1416
|
+
readonly internalType: "address";
|
|
1417
|
+
readonly name: "prevBetCreditManager";
|
|
1418
|
+
readonly type: "address";
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly indexed: false;
|
|
1421
|
+
readonly internalType: "address";
|
|
1422
|
+
readonly name: "newBetCreditManager";
|
|
1423
|
+
readonly type: "address";
|
|
1424
|
+
}];
|
|
1425
|
+
readonly name: "LevrBetCreditManagerUpdated";
|
|
1426
|
+
readonly type: "event";
|
|
1380
1427
|
}, {
|
|
1381
1428
|
readonly anonymous: false;
|
|
1382
1429
|
readonly inputs: readonly [{
|
|
@@ -3046,6 +3093,16 @@ export declare const abis: {
|
|
|
3046
3093
|
}];
|
|
3047
3094
|
readonly stateMutability: "view";
|
|
3048
3095
|
readonly type: "function";
|
|
3096
|
+
}, {
|
|
3097
|
+
readonly inputs: readonly [];
|
|
3098
|
+
readonly name: "levrBetCreditManager";
|
|
3099
|
+
readonly outputs: readonly [{
|
|
3100
|
+
readonly internalType: "address";
|
|
3101
|
+
readonly name: "";
|
|
3102
|
+
readonly type: "address";
|
|
3103
|
+
}];
|
|
3104
|
+
readonly stateMutability: "view";
|
|
3105
|
+
readonly type: "function";
|
|
3049
3106
|
}, {
|
|
3050
3107
|
readonly inputs: readonly [];
|
|
3051
3108
|
readonly name: "levrDrawPool";
|
|
@@ -3622,6 +3679,16 @@ export declare const abis: {
|
|
|
3622
3679
|
readonly outputs: readonly [];
|
|
3623
3680
|
readonly stateMutability: "nonpayable";
|
|
3624
3681
|
readonly type: "function";
|
|
3682
|
+
}, {
|
|
3683
|
+
readonly inputs: readonly [{
|
|
3684
|
+
readonly internalType: "address";
|
|
3685
|
+
readonly name: "newBetCreditManager";
|
|
3686
|
+
readonly type: "address";
|
|
3687
|
+
}];
|
|
3688
|
+
readonly name: "updateLevrBetCreditManager";
|
|
3689
|
+
readonly outputs: readonly [];
|
|
3690
|
+
readonly stateMutability: "nonpayable";
|
|
3691
|
+
readonly type: "function";
|
|
3625
3692
|
}, {
|
|
3626
3693
|
readonly inputs: readonly [{
|
|
3627
3694
|
readonly internalType: "address";
|
|
@@ -9308,6 +9375,10 @@ export declare const abis: {
|
|
|
9308
9375
|
readonly inputs: readonly [];
|
|
9309
9376
|
readonly name: "LMR_NO_POSITIONS_TO_REDEEM";
|
|
9310
9377
|
readonly type: "error";
|
|
9378
|
+
}, {
|
|
9379
|
+
readonly inputs: readonly [];
|
|
9380
|
+
readonly name: "LMR_USER_IS_BCM";
|
|
9381
|
+
readonly type: "error";
|
|
9311
9382
|
}, {
|
|
9312
9383
|
readonly anonymous: false;
|
|
9313
9384
|
readonly inputs: readonly [{
|
|
@@ -9561,6 +9632,30 @@ export declare const abis: {
|
|
|
9561
9632
|
readonly outputs: readonly [];
|
|
9562
9633
|
readonly stateMutability: "nonpayable";
|
|
9563
9634
|
readonly type: "function";
|
|
9635
|
+
}, {
|
|
9636
|
+
readonly inputs: readonly [{
|
|
9637
|
+
readonly internalType: "bytes32";
|
|
9638
|
+
readonly name: "gameMarketId";
|
|
9639
|
+
readonly type: "bytes32";
|
|
9640
|
+
}];
|
|
9641
|
+
readonly name: "redeemAllPositionsInGameMarket";
|
|
9642
|
+
readonly outputs: readonly [];
|
|
9643
|
+
readonly stateMutability: "nonpayable";
|
|
9644
|
+
readonly type: "function";
|
|
9645
|
+
}, {
|
|
9646
|
+
readonly inputs: readonly [{
|
|
9647
|
+
readonly internalType: "bytes32";
|
|
9648
|
+
readonly name: "gameMarketId";
|
|
9649
|
+
readonly type: "bytes32";
|
|
9650
|
+
}, {
|
|
9651
|
+
readonly internalType: "address";
|
|
9652
|
+
readonly name: "user";
|
|
9653
|
+
readonly type: "address";
|
|
9654
|
+
}];
|
|
9655
|
+
readonly name: "redeemAllPositionsInGameMarketFor";
|
|
9656
|
+
readonly outputs: readonly [];
|
|
9657
|
+
readonly stateMutability: "nonpayable";
|
|
9658
|
+
readonly type: "function";
|
|
9564
9659
|
}, {
|
|
9565
9660
|
readonly inputs: readonly [{
|
|
9566
9661
|
readonly internalType: "bytes32";
|
|
@@ -12076,6 +12171,10 @@ export declare const abis: {
|
|
|
12076
12171
|
readonly inputs: readonly [];
|
|
12077
12172
|
readonly name: "LM_INVALID_TOKEN_PRICE";
|
|
12078
12173
|
readonly type: "error";
|
|
12174
|
+
}, {
|
|
12175
|
+
readonly inputs: readonly [];
|
|
12176
|
+
readonly name: "LO_BCM_NOT_ALLOWED";
|
|
12177
|
+
readonly type: "error";
|
|
12079
12178
|
}, {
|
|
12080
12179
|
readonly inputs: readonly [{
|
|
12081
12180
|
readonly internalType: "address";
|