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