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