@bouncetech/contracts 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -24
- package/dist/abis/erc20-abi.d.ts +171 -0
- package/dist/abis/erc20-abi.js +131 -0
- package/dist/abis/factory-abi.d.ts +149 -0
- package/dist/abis/factory-abi.js +197 -0
- package/dist/abis/global-storage-abi.d.ts +921 -0
- package/dist/abis/global-storage-abi.js +1188 -0
- package/dist/abis/global-storage-helper-abi.d.ts +100 -0
- package/dist/abis/global-storage-helper-abi.js +131 -0
- package/dist/abis/hyperliquid-handler-abi.d.ts +113 -0
- package/dist/abis/hyperliquid-handler-abi.js +154 -0
- package/dist/abis/leveraged-token-abi.d.ts +1036 -0
- package/dist/abis/leveraged-token-abi.js +1347 -0
- package/dist/abis/leveraged-token-helper-abi.d.ts +344 -0
- package/dist/abis/leveraged-token-helper-abi.js +446 -0
- package/dist/abis/referrals-abi.d.ts +323 -0
- package/dist/abis/referrals-abi.js +425 -0
- package/dist/index.d.ts +3165 -352
- package/dist/index.js +27 -35
- package/package.json +1 -1
- package/abis/erc20-abi.json +0 -130
- package/abis/factory-abi.json +0 -194
- package/abis/global-storage-abi.json +0 -1185
- package/abis/global-storage-helper-abi.json +0 -128
- package/abis/hyperliquid-handler-abi.json +0 -151
- package/abis/leveraged-token-abi.json +0 -1344
- package/abis/leveraged-token-helper-abi.json +0 -443
- package/abis/referrals-abi.json +0 -422
- package/addresses.json +0 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,353 +1,3166 @@
|
|
|
1
1
|
export type Address = `0x${string}`;
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
name:
|
|
36
|
-
type:
|
|
37
|
-
internalType:
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
name:
|
|
82
|
-
type:
|
|
83
|
-
internalType:
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
type:
|
|
128
|
-
name:
|
|
129
|
-
inputs:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
type:
|
|
144
|
-
name:
|
|
145
|
-
inputs:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
type:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
type:
|
|
219
|
-
name:
|
|
220
|
-
inputs:
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
name:
|
|
233
|
-
type:
|
|
234
|
-
internalType:
|
|
235
|
-
}
|
|
236
|
-
stateMutability:
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
302
|
-
type:
|
|
303
|
-
name:
|
|
304
|
-
inputs:
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
internalType:
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
2
|
+
export declare const FACTORY_ADDRESS = "0xeD8bCDe433EB7c4B69DB1235483bf0Edb726Fc1B";
|
|
3
|
+
export declare const GLOBAL_STORAGE_ADDRESS = "0xa07d06383c1863c8A54d427aC890643d76cc03ff";
|
|
4
|
+
export declare const GLOBAL_STORAGE_HELPER_ADDRESS = "0x99836aCBD207d5BCa57E3Fe0448bD1AB0A4BDf5C";
|
|
5
|
+
export declare const HYPERLIQUID_HANDLER_ADDRESS = "0xE57F983f3F317b2feF5585E660ed24980Ba7C3dA";
|
|
6
|
+
export declare const LEVERAGED_TOKEN_HELPER_ADDRESS = "0x9F53b119025733d174d514b13B6a061f1C482f8C";
|
|
7
|
+
export declare const LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = "0x20132f1804Df40Acc9b5115F47191016a5258721";
|
|
8
|
+
export declare const REFERRALS_ADDRESS = "0xfD3A6323878Fc991447CcDd4c644ab419afC6f76";
|
|
9
|
+
export declare const USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
10
|
+
export declare const FACTORY_ABI: readonly [{
|
|
11
|
+
readonly type: "constructor";
|
|
12
|
+
readonly inputs: readonly [{
|
|
13
|
+
readonly name: "globalStorage_";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
readonly internalType: "address";
|
|
16
|
+
}];
|
|
17
|
+
readonly stateMutability: "nonpayable";
|
|
18
|
+
}, {
|
|
19
|
+
readonly type: "function";
|
|
20
|
+
readonly name: "createLt";
|
|
21
|
+
readonly inputs: readonly [{
|
|
22
|
+
readonly name: "marketId_";
|
|
23
|
+
readonly type: "uint32";
|
|
24
|
+
readonly internalType: "uint32";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "targetLeverage_";
|
|
27
|
+
readonly type: "uint256";
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "isLong_";
|
|
31
|
+
readonly type: "bool";
|
|
32
|
+
readonly internalType: "bool";
|
|
33
|
+
}];
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "address";
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
}];
|
|
39
|
+
readonly stateMutability: "nonpayable";
|
|
40
|
+
}, {
|
|
41
|
+
readonly type: "function";
|
|
42
|
+
readonly name: "lt";
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly name: "";
|
|
45
|
+
readonly type: "uint32";
|
|
46
|
+
readonly internalType: "uint32";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
readonly internalType: "uint256";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "";
|
|
53
|
+
readonly type: "bool";
|
|
54
|
+
readonly internalType: "bool";
|
|
55
|
+
}];
|
|
56
|
+
readonly outputs: readonly [{
|
|
57
|
+
readonly name: "";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
}];
|
|
61
|
+
readonly stateMutability: "view";
|
|
62
|
+
}, {
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
readonly name: "ltExists";
|
|
65
|
+
readonly inputs: readonly [{
|
|
66
|
+
readonly name: "";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
readonly internalType: "address";
|
|
69
|
+
}];
|
|
70
|
+
readonly outputs: readonly [{
|
|
71
|
+
readonly name: "";
|
|
72
|
+
readonly type: "bool";
|
|
73
|
+
readonly internalType: "bool";
|
|
74
|
+
}];
|
|
75
|
+
readonly stateMutability: "view";
|
|
76
|
+
}, {
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
readonly name: "lts";
|
|
79
|
+
readonly inputs: readonly [];
|
|
80
|
+
readonly outputs: readonly [{
|
|
81
|
+
readonly name: "";
|
|
82
|
+
readonly type: "address[]";
|
|
83
|
+
readonly internalType: "address[]";
|
|
84
|
+
}];
|
|
85
|
+
readonly stateMutability: "view";
|
|
86
|
+
}, {
|
|
87
|
+
readonly type: "function";
|
|
88
|
+
readonly name: "redeployLt";
|
|
89
|
+
readonly inputs: readonly [{
|
|
90
|
+
readonly name: "ltAddress_";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
readonly internalType: "address";
|
|
93
|
+
}];
|
|
94
|
+
readonly outputs: readonly [];
|
|
95
|
+
readonly stateMutability: "nonpayable";
|
|
96
|
+
}, {
|
|
97
|
+
readonly type: "event";
|
|
98
|
+
readonly name: "CreateLeveragedToken";
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly name: "creator";
|
|
101
|
+
readonly type: "address";
|
|
102
|
+
readonly indexed: true;
|
|
103
|
+
readonly internalType: "address";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "token";
|
|
106
|
+
readonly type: "address";
|
|
107
|
+
readonly indexed: true;
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "marketId";
|
|
111
|
+
readonly type: "uint32";
|
|
112
|
+
readonly indexed: true;
|
|
113
|
+
readonly internalType: "uint32";
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "targetLeverage";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
readonly indexed: false;
|
|
118
|
+
readonly internalType: "uint256";
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "isLong";
|
|
121
|
+
readonly type: "bool";
|
|
122
|
+
readonly indexed: false;
|
|
123
|
+
readonly internalType: "bool";
|
|
124
|
+
}];
|
|
125
|
+
readonly anonymous: false;
|
|
126
|
+
}, {
|
|
127
|
+
readonly type: "error";
|
|
128
|
+
readonly name: "AlreadyCreated";
|
|
129
|
+
readonly inputs: readonly [];
|
|
130
|
+
}, {
|
|
131
|
+
readonly type: "error";
|
|
132
|
+
readonly name: "InvalidLeverage";
|
|
133
|
+
readonly inputs: readonly [];
|
|
134
|
+
}, {
|
|
135
|
+
readonly type: "error";
|
|
136
|
+
readonly name: "NotLeveragedToken";
|
|
137
|
+
readonly inputs: readonly [];
|
|
138
|
+
}, {
|
|
139
|
+
readonly type: "error";
|
|
140
|
+
readonly name: "NotOwner";
|
|
141
|
+
readonly inputs: readonly [];
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: "error";
|
|
144
|
+
readonly name: "PrecompileLib__PerpAssetInfoPrecompileFailed";
|
|
145
|
+
readonly inputs: readonly [];
|
|
146
|
+
}, {
|
|
147
|
+
readonly type: "error";
|
|
148
|
+
readonly name: "SafeERC20FailedOperation";
|
|
149
|
+
readonly inputs: readonly [{
|
|
150
|
+
readonly name: "token";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
}];
|
|
154
|
+
}, {
|
|
155
|
+
readonly type: "error";
|
|
156
|
+
readonly name: "StillHasMargin";
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
}];
|
|
159
|
+
export declare const GLOBAL_STORAGE_ABI: readonly [{
|
|
160
|
+
readonly type: "constructor";
|
|
161
|
+
readonly inputs: readonly [];
|
|
162
|
+
readonly stateMutability: "nonpayable";
|
|
163
|
+
}, {
|
|
164
|
+
readonly type: "function";
|
|
165
|
+
readonly name: "acceptOwnership";
|
|
166
|
+
readonly inputs: readonly [];
|
|
167
|
+
readonly outputs: readonly [];
|
|
168
|
+
readonly stateMutability: "nonpayable";
|
|
169
|
+
}, {
|
|
170
|
+
readonly type: "function";
|
|
171
|
+
readonly name: "additionalAddresses";
|
|
172
|
+
readonly inputs: readonly [{
|
|
173
|
+
readonly name: "";
|
|
174
|
+
readonly type: "bytes32";
|
|
175
|
+
readonly internalType: "bytes32";
|
|
176
|
+
}];
|
|
177
|
+
readonly outputs: readonly [{
|
|
178
|
+
readonly name: "";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
readonly internalType: "address";
|
|
181
|
+
}];
|
|
182
|
+
readonly stateMutability: "view";
|
|
183
|
+
}, {
|
|
184
|
+
readonly type: "function";
|
|
185
|
+
readonly name: "additionalValues";
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly name: "";
|
|
188
|
+
readonly type: "bytes32";
|
|
189
|
+
readonly internalType: "bytes32";
|
|
190
|
+
}];
|
|
191
|
+
readonly outputs: readonly [{
|
|
192
|
+
readonly name: "";
|
|
193
|
+
readonly type: "uint256";
|
|
194
|
+
readonly internalType: "uint256";
|
|
195
|
+
}];
|
|
196
|
+
readonly stateMutability: "view";
|
|
197
|
+
}, {
|
|
198
|
+
readonly type: "function";
|
|
199
|
+
readonly name: "airdrop";
|
|
200
|
+
readonly inputs: readonly [];
|
|
201
|
+
readonly outputs: readonly [{
|
|
202
|
+
readonly name: "";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
readonly internalType: "contract IAirdrop";
|
|
205
|
+
}];
|
|
206
|
+
readonly stateMutability: "view";
|
|
207
|
+
}, {
|
|
208
|
+
readonly type: "function";
|
|
209
|
+
readonly name: "allMintsPaused";
|
|
210
|
+
readonly inputs: readonly [];
|
|
211
|
+
readonly outputs: readonly [{
|
|
212
|
+
readonly name: "";
|
|
213
|
+
readonly type: "bool";
|
|
214
|
+
readonly internalType: "bool";
|
|
215
|
+
}];
|
|
216
|
+
readonly stateMutability: "view";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
readonly name: "baseAsset";
|
|
220
|
+
readonly inputs: readonly [];
|
|
221
|
+
readonly outputs: readonly [{
|
|
222
|
+
readonly name: "";
|
|
223
|
+
readonly type: "address";
|
|
224
|
+
readonly internalType: "address";
|
|
225
|
+
}];
|
|
226
|
+
readonly stateMutability: "view";
|
|
227
|
+
}, {
|
|
228
|
+
readonly type: "function";
|
|
229
|
+
readonly name: "bounce";
|
|
230
|
+
readonly inputs: readonly [];
|
|
231
|
+
readonly outputs: readonly [{
|
|
232
|
+
readonly name: "";
|
|
233
|
+
readonly type: "address";
|
|
234
|
+
readonly internalType: "contract IERC20Metadata";
|
|
235
|
+
}];
|
|
236
|
+
readonly stateMutability: "view";
|
|
237
|
+
}, {
|
|
238
|
+
readonly type: "function";
|
|
239
|
+
readonly name: "executeRedemptionFee";
|
|
240
|
+
readonly inputs: readonly [];
|
|
241
|
+
readonly outputs: readonly [{
|
|
242
|
+
readonly name: "";
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
readonly internalType: "uint256";
|
|
245
|
+
}];
|
|
246
|
+
readonly stateMutability: "view";
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
readonly name: "factory";
|
|
250
|
+
readonly inputs: readonly [];
|
|
251
|
+
readonly outputs: readonly [{
|
|
252
|
+
readonly name: "";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
readonly internalType: "contract IFactory";
|
|
255
|
+
}];
|
|
256
|
+
readonly stateMutability: "view";
|
|
257
|
+
}, {
|
|
258
|
+
readonly type: "function";
|
|
259
|
+
readonly name: "feeHandler";
|
|
260
|
+
readonly inputs: readonly [];
|
|
261
|
+
readonly outputs: readonly [{
|
|
262
|
+
readonly name: "";
|
|
263
|
+
readonly type: "address";
|
|
264
|
+
readonly internalType: "contract IFeeHandler";
|
|
265
|
+
}];
|
|
266
|
+
readonly stateMutability: "view";
|
|
267
|
+
}, {
|
|
268
|
+
readonly type: "function";
|
|
269
|
+
readonly name: "hyperliquidHandler";
|
|
270
|
+
readonly inputs: readonly [];
|
|
271
|
+
readonly outputs: readonly [{
|
|
272
|
+
readonly name: "";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
readonly internalType: "contract IHyperliquidHandler";
|
|
275
|
+
}];
|
|
276
|
+
readonly stateMutability: "view";
|
|
277
|
+
}, {
|
|
278
|
+
readonly type: "function";
|
|
279
|
+
readonly name: "isExecutor";
|
|
280
|
+
readonly inputs: readonly [{
|
|
281
|
+
readonly name: "";
|
|
282
|
+
readonly type: "address";
|
|
283
|
+
readonly internalType: "address";
|
|
284
|
+
}];
|
|
285
|
+
readonly outputs: readonly [{
|
|
286
|
+
readonly name: "";
|
|
287
|
+
readonly type: "bool";
|
|
288
|
+
readonly internalType: "bool";
|
|
289
|
+
}];
|
|
290
|
+
readonly stateMutability: "view";
|
|
291
|
+
}, {
|
|
292
|
+
readonly type: "function";
|
|
293
|
+
readonly name: "ltImplementation";
|
|
294
|
+
readonly inputs: readonly [];
|
|
295
|
+
readonly outputs: readonly [{
|
|
296
|
+
readonly name: "";
|
|
297
|
+
readonly type: "address";
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
}];
|
|
300
|
+
readonly stateMutability: "view";
|
|
301
|
+
}, {
|
|
302
|
+
readonly type: "function";
|
|
303
|
+
readonly name: "minLockAmount";
|
|
304
|
+
readonly inputs: readonly [];
|
|
305
|
+
readonly outputs: readonly [{
|
|
306
|
+
readonly name: "";
|
|
307
|
+
readonly type: "uint256";
|
|
308
|
+
readonly internalType: "uint256";
|
|
309
|
+
}];
|
|
310
|
+
readonly stateMutability: "view";
|
|
311
|
+
}, {
|
|
312
|
+
readonly type: "function";
|
|
313
|
+
readonly name: "minTransactionSize";
|
|
314
|
+
readonly inputs: readonly [];
|
|
315
|
+
readonly outputs: readonly [{
|
|
316
|
+
readonly name: "";
|
|
317
|
+
readonly type: "uint256";
|
|
318
|
+
readonly internalType: "uint256";
|
|
319
|
+
}];
|
|
320
|
+
readonly stateMutability: "view";
|
|
321
|
+
}, {
|
|
322
|
+
readonly type: "function";
|
|
323
|
+
readonly name: "owner";
|
|
324
|
+
readonly inputs: readonly [];
|
|
325
|
+
readonly outputs: readonly [{
|
|
326
|
+
readonly name: "";
|
|
327
|
+
readonly type: "address";
|
|
328
|
+
readonly internalType: "address";
|
|
329
|
+
}];
|
|
330
|
+
readonly stateMutability: "view";
|
|
331
|
+
}, {
|
|
332
|
+
readonly type: "function";
|
|
333
|
+
readonly name: "pendingOwner";
|
|
334
|
+
readonly inputs: readonly [];
|
|
335
|
+
readonly outputs: readonly [{
|
|
336
|
+
readonly name: "";
|
|
337
|
+
readonly type: "address";
|
|
338
|
+
readonly internalType: "address";
|
|
339
|
+
}];
|
|
340
|
+
readonly stateMutability: "view";
|
|
341
|
+
}, {
|
|
342
|
+
readonly type: "function";
|
|
343
|
+
readonly name: "redemptionFee";
|
|
344
|
+
readonly inputs: readonly [];
|
|
345
|
+
readonly outputs: readonly [{
|
|
346
|
+
readonly name: "";
|
|
347
|
+
readonly type: "uint256";
|
|
348
|
+
readonly internalType: "uint256";
|
|
349
|
+
}];
|
|
350
|
+
readonly stateMutability: "view";
|
|
351
|
+
}, {
|
|
352
|
+
readonly type: "function";
|
|
353
|
+
readonly name: "refereeRebate";
|
|
354
|
+
readonly inputs: readonly [];
|
|
355
|
+
readonly outputs: readonly [{
|
|
356
|
+
readonly name: "";
|
|
357
|
+
readonly type: "uint256";
|
|
358
|
+
readonly internalType: "uint256";
|
|
359
|
+
}];
|
|
360
|
+
readonly stateMutability: "view";
|
|
361
|
+
}, {
|
|
362
|
+
readonly type: "function";
|
|
363
|
+
readonly name: "referrals";
|
|
364
|
+
readonly inputs: readonly [];
|
|
365
|
+
readonly outputs: readonly [{
|
|
366
|
+
readonly name: "";
|
|
367
|
+
readonly type: "address";
|
|
368
|
+
readonly internalType: "contract IReferrals";
|
|
369
|
+
}];
|
|
370
|
+
readonly stateMutability: "view";
|
|
371
|
+
}, {
|
|
372
|
+
readonly type: "function";
|
|
373
|
+
readonly name: "referrerRebate";
|
|
374
|
+
readonly inputs: readonly [];
|
|
375
|
+
readonly outputs: readonly [{
|
|
376
|
+
readonly name: "";
|
|
377
|
+
readonly type: "uint256";
|
|
378
|
+
readonly internalType: "uint256";
|
|
379
|
+
}];
|
|
380
|
+
readonly stateMutability: "view";
|
|
381
|
+
}, {
|
|
382
|
+
readonly type: "function";
|
|
383
|
+
readonly name: "renounceOwnership";
|
|
384
|
+
readonly inputs: readonly [];
|
|
385
|
+
readonly outputs: readonly [];
|
|
386
|
+
readonly stateMutability: "nonpayable";
|
|
387
|
+
}, {
|
|
388
|
+
readonly type: "function";
|
|
389
|
+
readonly name: "setAdditionalAddress";
|
|
390
|
+
readonly inputs: readonly [{
|
|
391
|
+
readonly name: "key_";
|
|
392
|
+
readonly type: "bytes32";
|
|
393
|
+
readonly internalType: "bytes32";
|
|
394
|
+
}, {
|
|
395
|
+
readonly name: "value_";
|
|
396
|
+
readonly type: "address";
|
|
397
|
+
readonly internalType: "address";
|
|
398
|
+
}];
|
|
399
|
+
readonly outputs: readonly [];
|
|
400
|
+
readonly stateMutability: "nonpayable";
|
|
401
|
+
}, {
|
|
402
|
+
readonly type: "function";
|
|
403
|
+
readonly name: "setAdditionalValue";
|
|
404
|
+
readonly inputs: readonly [{
|
|
405
|
+
readonly name: "key_";
|
|
406
|
+
readonly type: "bytes32";
|
|
407
|
+
readonly internalType: "bytes32";
|
|
408
|
+
}, {
|
|
409
|
+
readonly name: "value_";
|
|
410
|
+
readonly type: "uint256";
|
|
411
|
+
readonly internalType: "uint256";
|
|
412
|
+
}];
|
|
413
|
+
readonly outputs: readonly [];
|
|
414
|
+
readonly stateMutability: "nonpayable";
|
|
415
|
+
}, {
|
|
416
|
+
readonly type: "function";
|
|
417
|
+
readonly name: "setAirdrop";
|
|
418
|
+
readonly inputs: readonly [{
|
|
419
|
+
readonly name: "airdrop_";
|
|
420
|
+
readonly type: "address";
|
|
421
|
+
readonly internalType: "address";
|
|
422
|
+
}];
|
|
423
|
+
readonly outputs: readonly [];
|
|
424
|
+
readonly stateMutability: "nonpayable";
|
|
425
|
+
}, {
|
|
426
|
+
readonly type: "function";
|
|
427
|
+
readonly name: "setAllMintsPaused";
|
|
428
|
+
readonly inputs: readonly [{
|
|
429
|
+
readonly name: "allMintsPaused_";
|
|
430
|
+
readonly type: "bool";
|
|
431
|
+
readonly internalType: "bool";
|
|
432
|
+
}];
|
|
433
|
+
readonly outputs: readonly [];
|
|
434
|
+
readonly stateMutability: "nonpayable";
|
|
435
|
+
}, {
|
|
436
|
+
readonly type: "function";
|
|
437
|
+
readonly name: "setBaseAsset";
|
|
438
|
+
readonly inputs: readonly [{
|
|
439
|
+
readonly name: "baseAsset_";
|
|
440
|
+
readonly type: "address";
|
|
441
|
+
readonly internalType: "address";
|
|
442
|
+
}];
|
|
443
|
+
readonly outputs: readonly [];
|
|
444
|
+
readonly stateMutability: "nonpayable";
|
|
445
|
+
}, {
|
|
446
|
+
readonly type: "function";
|
|
447
|
+
readonly name: "setBounce";
|
|
448
|
+
readonly inputs: readonly [{
|
|
449
|
+
readonly name: "bounce_";
|
|
450
|
+
readonly type: "address";
|
|
451
|
+
readonly internalType: "address";
|
|
452
|
+
}];
|
|
453
|
+
readonly outputs: readonly [];
|
|
454
|
+
readonly stateMutability: "nonpayable";
|
|
455
|
+
}, {
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
readonly name: "setExecuteRedemptionFee";
|
|
458
|
+
readonly inputs: readonly [{
|
|
459
|
+
readonly name: "executeRedemptionFee_";
|
|
460
|
+
readonly type: "uint256";
|
|
461
|
+
readonly internalType: "uint256";
|
|
462
|
+
}];
|
|
463
|
+
readonly outputs: readonly [];
|
|
464
|
+
readonly stateMutability: "nonpayable";
|
|
465
|
+
}, {
|
|
466
|
+
readonly type: "function";
|
|
467
|
+
readonly name: "setExecutor";
|
|
468
|
+
readonly inputs: readonly [{
|
|
469
|
+
readonly name: "executor_";
|
|
470
|
+
readonly type: "address";
|
|
471
|
+
readonly internalType: "address";
|
|
472
|
+
}, {
|
|
473
|
+
readonly name: "isExecutor_";
|
|
474
|
+
readonly type: "bool";
|
|
475
|
+
readonly internalType: "bool";
|
|
476
|
+
}];
|
|
477
|
+
readonly outputs: readonly [];
|
|
478
|
+
readonly stateMutability: "nonpayable";
|
|
479
|
+
}, {
|
|
480
|
+
readonly type: "function";
|
|
481
|
+
readonly name: "setFactory";
|
|
482
|
+
readonly inputs: readonly [{
|
|
483
|
+
readonly name: "factory_";
|
|
484
|
+
readonly type: "address";
|
|
485
|
+
readonly internalType: "address";
|
|
486
|
+
}];
|
|
487
|
+
readonly outputs: readonly [];
|
|
488
|
+
readonly stateMutability: "nonpayable";
|
|
489
|
+
}, {
|
|
490
|
+
readonly type: "function";
|
|
491
|
+
readonly name: "setFeeHandler";
|
|
492
|
+
readonly inputs: readonly [{
|
|
493
|
+
readonly name: "feeHandler_";
|
|
494
|
+
readonly type: "address";
|
|
495
|
+
readonly internalType: "address";
|
|
496
|
+
}];
|
|
497
|
+
readonly outputs: readonly [];
|
|
498
|
+
readonly stateMutability: "nonpayable";
|
|
499
|
+
}, {
|
|
500
|
+
readonly type: "function";
|
|
501
|
+
readonly name: "setHyperliquidHandler";
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly name: "hyperliquidHandler_";
|
|
504
|
+
readonly type: "address";
|
|
505
|
+
readonly internalType: "address";
|
|
506
|
+
}];
|
|
507
|
+
readonly outputs: readonly [];
|
|
508
|
+
readonly stateMutability: "nonpayable";
|
|
509
|
+
}, {
|
|
510
|
+
readonly type: "function";
|
|
511
|
+
readonly name: "setLtImplementation";
|
|
512
|
+
readonly inputs: readonly [{
|
|
513
|
+
readonly name: "ltImplementation_";
|
|
514
|
+
readonly type: "address";
|
|
515
|
+
readonly internalType: "address";
|
|
516
|
+
}];
|
|
517
|
+
readonly outputs: readonly [];
|
|
518
|
+
readonly stateMutability: "nonpayable";
|
|
519
|
+
}, {
|
|
520
|
+
readonly type: "function";
|
|
521
|
+
readonly name: "setMinLockAmount";
|
|
522
|
+
readonly inputs: readonly [{
|
|
523
|
+
readonly name: "minLockAmount_";
|
|
524
|
+
readonly type: "uint256";
|
|
525
|
+
readonly internalType: "uint256";
|
|
526
|
+
}];
|
|
527
|
+
readonly outputs: readonly [];
|
|
528
|
+
readonly stateMutability: "nonpayable";
|
|
529
|
+
}, {
|
|
530
|
+
readonly type: "function";
|
|
531
|
+
readonly name: "setMinTransactionSize";
|
|
532
|
+
readonly inputs: readonly [{
|
|
533
|
+
readonly name: "minTransactionSize_";
|
|
534
|
+
readonly type: "uint256";
|
|
535
|
+
readonly internalType: "uint256";
|
|
536
|
+
}];
|
|
537
|
+
readonly outputs: readonly [];
|
|
538
|
+
readonly stateMutability: "nonpayable";
|
|
539
|
+
}, {
|
|
540
|
+
readonly type: "function";
|
|
541
|
+
readonly name: "setRedemptionFee";
|
|
542
|
+
readonly inputs: readonly [{
|
|
543
|
+
readonly name: "redemptionFee_";
|
|
544
|
+
readonly type: "uint256";
|
|
545
|
+
readonly internalType: "uint256";
|
|
546
|
+
}];
|
|
547
|
+
readonly outputs: readonly [];
|
|
548
|
+
readonly stateMutability: "nonpayable";
|
|
549
|
+
}, {
|
|
550
|
+
readonly type: "function";
|
|
551
|
+
readonly name: "setRefereeRebate";
|
|
552
|
+
readonly inputs: readonly [{
|
|
553
|
+
readonly name: "refereeRebate_";
|
|
554
|
+
readonly type: "uint256";
|
|
555
|
+
readonly internalType: "uint256";
|
|
556
|
+
}];
|
|
557
|
+
readonly outputs: readonly [];
|
|
558
|
+
readonly stateMutability: "nonpayable";
|
|
559
|
+
}, {
|
|
560
|
+
readonly type: "function";
|
|
561
|
+
readonly name: "setReferrals";
|
|
562
|
+
readonly inputs: readonly [{
|
|
563
|
+
readonly name: "referrals_";
|
|
564
|
+
readonly type: "address";
|
|
565
|
+
readonly internalType: "address";
|
|
566
|
+
}];
|
|
567
|
+
readonly outputs: readonly [];
|
|
568
|
+
readonly stateMutability: "nonpayable";
|
|
569
|
+
}, {
|
|
570
|
+
readonly type: "function";
|
|
571
|
+
readonly name: "setReferrerRebate";
|
|
572
|
+
readonly inputs: readonly [{
|
|
573
|
+
readonly name: "referrerRebate_";
|
|
574
|
+
readonly type: "uint256";
|
|
575
|
+
readonly internalType: "uint256";
|
|
576
|
+
}];
|
|
577
|
+
readonly outputs: readonly [];
|
|
578
|
+
readonly stateMutability: "nonpayable";
|
|
579
|
+
}, {
|
|
580
|
+
readonly type: "function";
|
|
581
|
+
readonly name: "setStreamingFee";
|
|
582
|
+
readonly inputs: readonly [{
|
|
583
|
+
readonly name: "streamingFee_";
|
|
584
|
+
readonly type: "uint256";
|
|
585
|
+
readonly internalType: "uint256";
|
|
586
|
+
}];
|
|
587
|
+
readonly outputs: readonly [];
|
|
588
|
+
readonly stateMutability: "nonpayable";
|
|
589
|
+
}, {
|
|
590
|
+
readonly type: "function";
|
|
591
|
+
readonly name: "setTreasury";
|
|
592
|
+
readonly inputs: readonly [{
|
|
593
|
+
readonly name: "treasury_";
|
|
594
|
+
readonly type: "address";
|
|
595
|
+
readonly internalType: "address";
|
|
596
|
+
}];
|
|
597
|
+
readonly outputs: readonly [];
|
|
598
|
+
readonly stateMutability: "nonpayable";
|
|
599
|
+
}, {
|
|
600
|
+
readonly type: "function";
|
|
601
|
+
readonly name: "setTreasuryFeeShare";
|
|
602
|
+
readonly inputs: readonly [{
|
|
603
|
+
readonly name: "treasuryFeeShare_";
|
|
604
|
+
readonly type: "uint256";
|
|
605
|
+
readonly internalType: "uint256";
|
|
606
|
+
}];
|
|
607
|
+
readonly outputs: readonly [];
|
|
608
|
+
readonly stateMutability: "nonpayable";
|
|
609
|
+
}, {
|
|
610
|
+
readonly type: "function";
|
|
611
|
+
readonly name: "setVesting";
|
|
612
|
+
readonly inputs: readonly [{
|
|
613
|
+
readonly name: "vesting_";
|
|
614
|
+
readonly type: "address";
|
|
615
|
+
readonly internalType: "address";
|
|
616
|
+
}];
|
|
617
|
+
readonly outputs: readonly [];
|
|
618
|
+
readonly stateMutability: "nonpayable";
|
|
619
|
+
}, {
|
|
620
|
+
readonly type: "function";
|
|
621
|
+
readonly name: "streamingFee";
|
|
622
|
+
readonly inputs: readonly [];
|
|
623
|
+
readonly outputs: readonly [{
|
|
624
|
+
readonly name: "";
|
|
625
|
+
readonly type: "uint256";
|
|
626
|
+
readonly internalType: "uint256";
|
|
627
|
+
}];
|
|
628
|
+
readonly stateMutability: "view";
|
|
629
|
+
}, {
|
|
630
|
+
readonly type: "function";
|
|
631
|
+
readonly name: "transferOwnership";
|
|
632
|
+
readonly inputs: readonly [{
|
|
633
|
+
readonly name: "newOwner";
|
|
634
|
+
readonly type: "address";
|
|
635
|
+
readonly internalType: "address";
|
|
636
|
+
}];
|
|
637
|
+
readonly outputs: readonly [];
|
|
638
|
+
readonly stateMutability: "nonpayable";
|
|
639
|
+
}, {
|
|
640
|
+
readonly type: "function";
|
|
641
|
+
readonly name: "treasury";
|
|
642
|
+
readonly inputs: readonly [];
|
|
643
|
+
readonly outputs: readonly [{
|
|
644
|
+
readonly name: "";
|
|
645
|
+
readonly type: "address";
|
|
646
|
+
readonly internalType: "address";
|
|
647
|
+
}];
|
|
648
|
+
readonly stateMutability: "view";
|
|
649
|
+
}, {
|
|
650
|
+
readonly type: "function";
|
|
651
|
+
readonly name: "treasuryFeeShare";
|
|
652
|
+
readonly inputs: readonly [];
|
|
653
|
+
readonly outputs: readonly [{
|
|
654
|
+
readonly name: "";
|
|
655
|
+
readonly type: "uint256";
|
|
656
|
+
readonly internalType: "uint256";
|
|
657
|
+
}];
|
|
658
|
+
readonly stateMutability: "view";
|
|
659
|
+
}, {
|
|
660
|
+
readonly type: "function";
|
|
661
|
+
readonly name: "vesting";
|
|
662
|
+
readonly inputs: readonly [];
|
|
663
|
+
readonly outputs: readonly [{
|
|
664
|
+
readonly name: "";
|
|
665
|
+
readonly type: "address";
|
|
666
|
+
readonly internalType: "contract IVesting";
|
|
667
|
+
}];
|
|
668
|
+
readonly stateMutability: "view";
|
|
669
|
+
}, {
|
|
670
|
+
readonly type: "event";
|
|
671
|
+
readonly name: "OwnershipTransferStarted";
|
|
672
|
+
readonly inputs: readonly [{
|
|
673
|
+
readonly name: "previousOwner";
|
|
674
|
+
readonly type: "address";
|
|
675
|
+
readonly indexed: true;
|
|
676
|
+
readonly internalType: "address";
|
|
677
|
+
}, {
|
|
678
|
+
readonly name: "newOwner";
|
|
679
|
+
readonly type: "address";
|
|
680
|
+
readonly indexed: true;
|
|
681
|
+
readonly internalType: "address";
|
|
682
|
+
}];
|
|
683
|
+
readonly anonymous: false;
|
|
684
|
+
}, {
|
|
685
|
+
readonly type: "event";
|
|
686
|
+
readonly name: "OwnershipTransferred";
|
|
687
|
+
readonly inputs: readonly [{
|
|
688
|
+
readonly name: "previousOwner";
|
|
689
|
+
readonly type: "address";
|
|
690
|
+
readonly indexed: true;
|
|
691
|
+
readonly internalType: "address";
|
|
692
|
+
}, {
|
|
693
|
+
readonly name: "newOwner";
|
|
694
|
+
readonly type: "address";
|
|
695
|
+
readonly indexed: true;
|
|
696
|
+
readonly internalType: "address";
|
|
697
|
+
}];
|
|
698
|
+
readonly anonymous: false;
|
|
699
|
+
}, {
|
|
700
|
+
readonly type: "event";
|
|
701
|
+
readonly name: "SetAdditionalAddress";
|
|
702
|
+
readonly inputs: readonly [{
|
|
703
|
+
readonly name: "key";
|
|
704
|
+
readonly type: "bytes32";
|
|
705
|
+
readonly indexed: true;
|
|
706
|
+
readonly internalType: "bytes32";
|
|
707
|
+
}, {
|
|
708
|
+
readonly name: "previousValue";
|
|
709
|
+
readonly type: "address";
|
|
710
|
+
readonly indexed: true;
|
|
711
|
+
readonly internalType: "address";
|
|
712
|
+
}, {
|
|
713
|
+
readonly name: "newValue";
|
|
714
|
+
readonly type: "address";
|
|
715
|
+
readonly indexed: true;
|
|
716
|
+
readonly internalType: "address";
|
|
717
|
+
}];
|
|
718
|
+
readonly anonymous: false;
|
|
719
|
+
}, {
|
|
720
|
+
readonly type: "event";
|
|
721
|
+
readonly name: "SetAdditionalValue";
|
|
722
|
+
readonly inputs: readonly [{
|
|
723
|
+
readonly name: "key";
|
|
724
|
+
readonly type: "bytes32";
|
|
725
|
+
readonly indexed: true;
|
|
726
|
+
readonly internalType: "bytes32";
|
|
727
|
+
}, {
|
|
728
|
+
readonly name: "previousValue";
|
|
729
|
+
readonly type: "uint256";
|
|
730
|
+
readonly indexed: true;
|
|
731
|
+
readonly internalType: "uint256";
|
|
732
|
+
}, {
|
|
733
|
+
readonly name: "newValue";
|
|
734
|
+
readonly type: "uint256";
|
|
735
|
+
readonly indexed: true;
|
|
736
|
+
readonly internalType: "uint256";
|
|
737
|
+
}];
|
|
738
|
+
readonly anonymous: false;
|
|
739
|
+
}, {
|
|
740
|
+
readonly type: "event";
|
|
741
|
+
readonly name: "SetAirdrop";
|
|
742
|
+
readonly inputs: readonly [{
|
|
743
|
+
readonly name: "previousAirdrop";
|
|
744
|
+
readonly type: "address";
|
|
745
|
+
readonly indexed: true;
|
|
746
|
+
readonly internalType: "address";
|
|
747
|
+
}, {
|
|
748
|
+
readonly name: "newAirdrop";
|
|
749
|
+
readonly type: "address";
|
|
750
|
+
readonly indexed: true;
|
|
751
|
+
readonly internalType: "address";
|
|
752
|
+
}];
|
|
753
|
+
readonly anonymous: false;
|
|
754
|
+
}, {
|
|
755
|
+
readonly type: "event";
|
|
756
|
+
readonly name: "SetAllMintsPaused";
|
|
757
|
+
readonly inputs: readonly [{
|
|
758
|
+
readonly name: "previousPaused";
|
|
759
|
+
readonly type: "bool";
|
|
760
|
+
readonly indexed: true;
|
|
761
|
+
readonly internalType: "bool";
|
|
762
|
+
}, {
|
|
763
|
+
readonly name: "newPaused";
|
|
764
|
+
readonly type: "bool";
|
|
765
|
+
readonly indexed: true;
|
|
766
|
+
readonly internalType: "bool";
|
|
767
|
+
}];
|
|
768
|
+
readonly anonymous: false;
|
|
769
|
+
}, {
|
|
770
|
+
readonly type: "event";
|
|
771
|
+
readonly name: "SetBaseAsset";
|
|
772
|
+
readonly inputs: readonly [{
|
|
773
|
+
readonly name: "previousAsset";
|
|
774
|
+
readonly type: "address";
|
|
775
|
+
readonly indexed: true;
|
|
776
|
+
readonly internalType: "address";
|
|
777
|
+
}, {
|
|
778
|
+
readonly name: "newAsset";
|
|
779
|
+
readonly type: "address";
|
|
780
|
+
readonly indexed: true;
|
|
781
|
+
readonly internalType: "address";
|
|
782
|
+
}];
|
|
783
|
+
readonly anonymous: false;
|
|
784
|
+
}, {
|
|
785
|
+
readonly type: "event";
|
|
786
|
+
readonly name: "SetBounce";
|
|
787
|
+
readonly inputs: readonly [{
|
|
788
|
+
readonly name: "previousBounce";
|
|
789
|
+
readonly type: "address";
|
|
790
|
+
readonly indexed: true;
|
|
791
|
+
readonly internalType: "address";
|
|
792
|
+
}, {
|
|
793
|
+
readonly name: "newBounce";
|
|
794
|
+
readonly type: "address";
|
|
795
|
+
readonly indexed: true;
|
|
796
|
+
readonly internalType: "address";
|
|
797
|
+
}];
|
|
798
|
+
readonly anonymous: false;
|
|
799
|
+
}, {
|
|
800
|
+
readonly type: "event";
|
|
801
|
+
readonly name: "SetExecuteRedemptionFee";
|
|
802
|
+
readonly inputs: readonly [{
|
|
803
|
+
readonly name: "previousFee";
|
|
804
|
+
readonly type: "uint256";
|
|
805
|
+
readonly indexed: true;
|
|
806
|
+
readonly internalType: "uint256";
|
|
807
|
+
}, {
|
|
808
|
+
readonly name: "newFee";
|
|
809
|
+
readonly type: "uint256";
|
|
810
|
+
readonly indexed: true;
|
|
811
|
+
readonly internalType: "uint256";
|
|
812
|
+
}];
|
|
813
|
+
readonly anonymous: false;
|
|
814
|
+
}, {
|
|
815
|
+
readonly type: "event";
|
|
816
|
+
readonly name: "SetExecutor";
|
|
817
|
+
readonly inputs: readonly [{
|
|
818
|
+
readonly name: "executor";
|
|
819
|
+
readonly type: "address";
|
|
820
|
+
readonly indexed: true;
|
|
821
|
+
readonly internalType: "address";
|
|
822
|
+
}, {
|
|
823
|
+
readonly name: "isExecutor";
|
|
824
|
+
readonly type: "bool";
|
|
825
|
+
readonly indexed: true;
|
|
826
|
+
readonly internalType: "bool";
|
|
827
|
+
}];
|
|
828
|
+
readonly anonymous: false;
|
|
829
|
+
}, {
|
|
830
|
+
readonly type: "event";
|
|
831
|
+
readonly name: "SetFactory";
|
|
832
|
+
readonly inputs: readonly [{
|
|
833
|
+
readonly name: "previousFactory";
|
|
834
|
+
readonly type: "address";
|
|
835
|
+
readonly indexed: true;
|
|
836
|
+
readonly internalType: "address";
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "newFactory";
|
|
839
|
+
readonly type: "address";
|
|
840
|
+
readonly indexed: true;
|
|
841
|
+
readonly internalType: "address";
|
|
842
|
+
}];
|
|
843
|
+
readonly anonymous: false;
|
|
844
|
+
}, {
|
|
845
|
+
readonly type: "event";
|
|
846
|
+
readonly name: "SetFeeHandler";
|
|
847
|
+
readonly inputs: readonly [{
|
|
848
|
+
readonly name: "previousFeeHandler";
|
|
849
|
+
readonly type: "address";
|
|
850
|
+
readonly indexed: true;
|
|
851
|
+
readonly internalType: "address";
|
|
852
|
+
}, {
|
|
853
|
+
readonly name: "newFeeHandler";
|
|
854
|
+
readonly type: "address";
|
|
855
|
+
readonly indexed: true;
|
|
856
|
+
readonly internalType: "address";
|
|
857
|
+
}];
|
|
858
|
+
readonly anonymous: false;
|
|
859
|
+
}, {
|
|
860
|
+
readonly type: "event";
|
|
861
|
+
readonly name: "SetHyperliquidHandler";
|
|
862
|
+
readonly inputs: readonly [{
|
|
863
|
+
readonly name: "previousHyperliquidHandler";
|
|
864
|
+
readonly type: "address";
|
|
865
|
+
readonly indexed: true;
|
|
866
|
+
readonly internalType: "address";
|
|
867
|
+
}, {
|
|
868
|
+
readonly name: "newHyperliquidHandler";
|
|
869
|
+
readonly type: "address";
|
|
870
|
+
readonly indexed: true;
|
|
871
|
+
readonly internalType: "address";
|
|
872
|
+
}];
|
|
873
|
+
readonly anonymous: false;
|
|
874
|
+
}, {
|
|
875
|
+
readonly type: "event";
|
|
876
|
+
readonly name: "SetLtImplementation";
|
|
877
|
+
readonly inputs: readonly [{
|
|
878
|
+
readonly name: "previousImplementation";
|
|
879
|
+
readonly type: "address";
|
|
880
|
+
readonly indexed: true;
|
|
881
|
+
readonly internalType: "address";
|
|
882
|
+
}, {
|
|
883
|
+
readonly name: "newImplementation";
|
|
884
|
+
readonly type: "address";
|
|
885
|
+
readonly indexed: true;
|
|
886
|
+
readonly internalType: "address";
|
|
887
|
+
}];
|
|
888
|
+
readonly anonymous: false;
|
|
889
|
+
}, {
|
|
890
|
+
readonly type: "event";
|
|
891
|
+
readonly name: "SetMinLockAmount";
|
|
892
|
+
readonly inputs: readonly [{
|
|
893
|
+
readonly name: "previousMinLockAmount";
|
|
894
|
+
readonly type: "uint256";
|
|
895
|
+
readonly indexed: true;
|
|
896
|
+
readonly internalType: "uint256";
|
|
897
|
+
}, {
|
|
898
|
+
readonly name: "newMinLockAmount";
|
|
899
|
+
readonly type: "uint256";
|
|
900
|
+
readonly indexed: true;
|
|
901
|
+
readonly internalType: "uint256";
|
|
902
|
+
}];
|
|
903
|
+
readonly anonymous: false;
|
|
904
|
+
}, {
|
|
905
|
+
readonly type: "event";
|
|
906
|
+
readonly name: "SetMinTransactionSize";
|
|
907
|
+
readonly inputs: readonly [{
|
|
908
|
+
readonly name: "previousMinTransactionSize";
|
|
909
|
+
readonly type: "uint256";
|
|
910
|
+
readonly indexed: true;
|
|
911
|
+
readonly internalType: "uint256";
|
|
912
|
+
}, {
|
|
913
|
+
readonly name: "newMinTransactionSize";
|
|
914
|
+
readonly type: "uint256";
|
|
915
|
+
readonly indexed: true;
|
|
916
|
+
readonly internalType: "uint256";
|
|
917
|
+
}];
|
|
918
|
+
readonly anonymous: false;
|
|
919
|
+
}, {
|
|
920
|
+
readonly type: "event";
|
|
921
|
+
readonly name: "SetRedemptionFee";
|
|
922
|
+
readonly inputs: readonly [{
|
|
923
|
+
readonly name: "previousFee";
|
|
924
|
+
readonly type: "uint256";
|
|
925
|
+
readonly indexed: true;
|
|
926
|
+
readonly internalType: "uint256";
|
|
927
|
+
}, {
|
|
928
|
+
readonly name: "newFee";
|
|
929
|
+
readonly type: "uint256";
|
|
930
|
+
readonly indexed: true;
|
|
931
|
+
readonly internalType: "uint256";
|
|
932
|
+
}];
|
|
933
|
+
readonly anonymous: false;
|
|
934
|
+
}, {
|
|
935
|
+
readonly type: "event";
|
|
936
|
+
readonly name: "SetRefereeRebate";
|
|
937
|
+
readonly inputs: readonly [{
|
|
938
|
+
readonly name: "previousRebate";
|
|
939
|
+
readonly type: "uint256";
|
|
940
|
+
readonly indexed: true;
|
|
941
|
+
readonly internalType: "uint256";
|
|
942
|
+
}, {
|
|
943
|
+
readonly name: "newRebate";
|
|
944
|
+
readonly type: "uint256";
|
|
945
|
+
readonly indexed: true;
|
|
946
|
+
readonly internalType: "uint256";
|
|
947
|
+
}];
|
|
948
|
+
readonly anonymous: false;
|
|
949
|
+
}, {
|
|
950
|
+
readonly type: "event";
|
|
951
|
+
readonly name: "SetReferrals";
|
|
952
|
+
readonly inputs: readonly [{
|
|
953
|
+
readonly name: "previousReferrals";
|
|
954
|
+
readonly type: "address";
|
|
955
|
+
readonly indexed: true;
|
|
956
|
+
readonly internalType: "address";
|
|
957
|
+
}, {
|
|
958
|
+
readonly name: "newReferrals";
|
|
959
|
+
readonly type: "address";
|
|
960
|
+
readonly indexed: true;
|
|
961
|
+
readonly internalType: "address";
|
|
962
|
+
}];
|
|
963
|
+
readonly anonymous: false;
|
|
964
|
+
}, {
|
|
965
|
+
readonly type: "event";
|
|
966
|
+
readonly name: "SetReferrerRebate";
|
|
967
|
+
readonly inputs: readonly [{
|
|
968
|
+
readonly name: "previousRebate";
|
|
969
|
+
readonly type: "uint256";
|
|
970
|
+
readonly indexed: true;
|
|
971
|
+
readonly internalType: "uint256";
|
|
972
|
+
}, {
|
|
973
|
+
readonly name: "newRebate";
|
|
974
|
+
readonly type: "uint256";
|
|
975
|
+
readonly indexed: true;
|
|
976
|
+
readonly internalType: "uint256";
|
|
977
|
+
}];
|
|
978
|
+
readonly anonymous: false;
|
|
979
|
+
}, {
|
|
980
|
+
readonly type: "event";
|
|
981
|
+
readonly name: "SetStreamingFee";
|
|
982
|
+
readonly inputs: readonly [{
|
|
983
|
+
readonly name: "previousFee";
|
|
984
|
+
readonly type: "uint256";
|
|
985
|
+
readonly indexed: true;
|
|
986
|
+
readonly internalType: "uint256";
|
|
987
|
+
}, {
|
|
988
|
+
readonly name: "newFee";
|
|
989
|
+
readonly type: "uint256";
|
|
990
|
+
readonly indexed: true;
|
|
991
|
+
readonly internalType: "uint256";
|
|
992
|
+
}];
|
|
993
|
+
readonly anonymous: false;
|
|
994
|
+
}, {
|
|
995
|
+
readonly type: "event";
|
|
996
|
+
readonly name: "SetTreasury";
|
|
997
|
+
readonly inputs: readonly [{
|
|
998
|
+
readonly name: "previousTreasury";
|
|
999
|
+
readonly type: "address";
|
|
1000
|
+
readonly indexed: true;
|
|
1001
|
+
readonly internalType: "address";
|
|
1002
|
+
}, {
|
|
1003
|
+
readonly name: "newTreasury";
|
|
1004
|
+
readonly type: "address";
|
|
1005
|
+
readonly indexed: true;
|
|
1006
|
+
readonly internalType: "address";
|
|
1007
|
+
}];
|
|
1008
|
+
readonly anonymous: false;
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly type: "event";
|
|
1011
|
+
readonly name: "SetTreasuryFeeShare";
|
|
1012
|
+
readonly inputs: readonly [{
|
|
1013
|
+
readonly name: "previousFeeShare";
|
|
1014
|
+
readonly type: "uint256";
|
|
1015
|
+
readonly indexed: true;
|
|
1016
|
+
readonly internalType: "uint256";
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly name: "newFeeShare";
|
|
1019
|
+
readonly type: "uint256";
|
|
1020
|
+
readonly indexed: true;
|
|
1021
|
+
readonly internalType: "uint256";
|
|
1022
|
+
}];
|
|
1023
|
+
readonly anonymous: false;
|
|
1024
|
+
}, {
|
|
1025
|
+
readonly type: "event";
|
|
1026
|
+
readonly name: "SetVesting";
|
|
1027
|
+
readonly inputs: readonly [{
|
|
1028
|
+
readonly name: "previousVesting";
|
|
1029
|
+
readonly type: "address";
|
|
1030
|
+
readonly indexed: true;
|
|
1031
|
+
readonly internalType: "address";
|
|
1032
|
+
}, {
|
|
1033
|
+
readonly name: "newVesting";
|
|
1034
|
+
readonly type: "address";
|
|
1035
|
+
readonly indexed: true;
|
|
1036
|
+
readonly internalType: "address";
|
|
1037
|
+
}];
|
|
1038
|
+
readonly anonymous: false;
|
|
1039
|
+
}, {
|
|
1040
|
+
readonly type: "error";
|
|
1041
|
+
readonly name: "AlreadySet";
|
|
1042
|
+
readonly inputs: readonly [];
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly type: "error";
|
|
1045
|
+
readonly name: "InvalidAddress";
|
|
1046
|
+
readonly inputs: readonly [];
|
|
1047
|
+
}, {
|
|
1048
|
+
readonly type: "error";
|
|
1049
|
+
readonly name: "InvalidAmount";
|
|
1050
|
+
readonly inputs: readonly [];
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly type: "error";
|
|
1053
|
+
readonly name: "InvalidValue";
|
|
1054
|
+
readonly inputs: readonly [];
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly type: "error";
|
|
1057
|
+
readonly name: "OwnableInvalidOwner";
|
|
1058
|
+
readonly inputs: readonly [{
|
|
1059
|
+
readonly name: "owner";
|
|
1060
|
+
readonly type: "address";
|
|
1061
|
+
readonly internalType: "address";
|
|
1062
|
+
}];
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly type: "error";
|
|
1065
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
1066
|
+
readonly inputs: readonly [{
|
|
1067
|
+
readonly name: "account";
|
|
1068
|
+
readonly type: "address";
|
|
1069
|
+
readonly internalType: "address";
|
|
1070
|
+
}];
|
|
1071
|
+
}, {
|
|
1072
|
+
readonly type: "error";
|
|
1073
|
+
readonly name: "SameAsCurrent";
|
|
1074
|
+
readonly inputs: readonly [];
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly type: "error";
|
|
1077
|
+
readonly name: "TotalRebateExceeds100";
|
|
1078
|
+
readonly inputs: readonly [];
|
|
1079
|
+
}];
|
|
1080
|
+
export declare const GLOBAL_STORAGE_HELPER_ABI: readonly [{
|
|
1081
|
+
readonly type: "constructor";
|
|
1082
|
+
readonly inputs: readonly [{
|
|
1083
|
+
readonly name: "globalStorage_";
|
|
1084
|
+
readonly type: "address";
|
|
1085
|
+
readonly internalType: "address";
|
|
1086
|
+
}];
|
|
1087
|
+
readonly stateMutability: "nonpayable";
|
|
1088
|
+
}, {
|
|
1089
|
+
readonly type: "function";
|
|
1090
|
+
readonly name: "getGlobalStorageData";
|
|
1091
|
+
readonly inputs: readonly [];
|
|
1092
|
+
readonly outputs: readonly [{
|
|
1093
|
+
readonly name: "";
|
|
1094
|
+
readonly type: "tuple";
|
|
1095
|
+
readonly internalType: "struct IGlobalStorageHelper.GlobalStorageData";
|
|
1096
|
+
readonly components: readonly [{
|
|
1097
|
+
readonly name: "owner";
|
|
1098
|
+
readonly type: "address";
|
|
1099
|
+
readonly internalType: "address";
|
|
1100
|
+
}, {
|
|
1101
|
+
readonly name: "ltImplementation";
|
|
1102
|
+
readonly type: "address";
|
|
1103
|
+
readonly internalType: "address";
|
|
1104
|
+
}, {
|
|
1105
|
+
readonly name: "baseAsset";
|
|
1106
|
+
readonly type: "address";
|
|
1107
|
+
readonly internalType: "address";
|
|
1108
|
+
}, {
|
|
1109
|
+
readonly name: "treasury";
|
|
1110
|
+
readonly type: "address";
|
|
1111
|
+
readonly internalType: "address";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly name: "factory";
|
|
1114
|
+
readonly type: "address";
|
|
1115
|
+
readonly internalType: "address";
|
|
1116
|
+
}, {
|
|
1117
|
+
readonly name: "hyperliquidHandler";
|
|
1118
|
+
readonly type: "address";
|
|
1119
|
+
readonly internalType: "address";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly name: "feeHandler";
|
|
1122
|
+
readonly type: "address";
|
|
1123
|
+
readonly internalType: "address";
|
|
1124
|
+
}, {
|
|
1125
|
+
readonly name: "bounce";
|
|
1126
|
+
readonly type: "address";
|
|
1127
|
+
readonly internalType: "address";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly name: "allMintsPaused";
|
|
1130
|
+
readonly type: "bool";
|
|
1131
|
+
readonly internalType: "bool";
|
|
1132
|
+
}, {
|
|
1133
|
+
readonly name: "vesting";
|
|
1134
|
+
readonly type: "address";
|
|
1135
|
+
readonly internalType: "address";
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly name: "airdrop";
|
|
1138
|
+
readonly type: "address";
|
|
1139
|
+
readonly internalType: "address";
|
|
1140
|
+
}, {
|
|
1141
|
+
readonly name: "referrals";
|
|
1142
|
+
readonly type: "address";
|
|
1143
|
+
readonly internalType: "address";
|
|
1144
|
+
}, {
|
|
1145
|
+
readonly name: "minTransactionSize";
|
|
1146
|
+
readonly type: "uint256";
|
|
1147
|
+
readonly internalType: "uint256";
|
|
1148
|
+
}, {
|
|
1149
|
+
readonly name: "minLockAmount";
|
|
1150
|
+
readonly type: "uint256";
|
|
1151
|
+
readonly internalType: "uint256";
|
|
1152
|
+
}, {
|
|
1153
|
+
readonly name: "redemptionFee";
|
|
1154
|
+
readonly type: "uint256";
|
|
1155
|
+
readonly internalType: "uint256";
|
|
1156
|
+
}, {
|
|
1157
|
+
readonly name: "streamingFee";
|
|
1158
|
+
readonly type: "uint256";
|
|
1159
|
+
readonly internalType: "uint256";
|
|
1160
|
+
}, {
|
|
1161
|
+
readonly name: "executeRedemptionFee";
|
|
1162
|
+
readonly type: "uint256";
|
|
1163
|
+
readonly internalType: "uint256";
|
|
1164
|
+
}, {
|
|
1165
|
+
readonly name: "treasuryFeeShare";
|
|
1166
|
+
readonly type: "uint256";
|
|
1167
|
+
readonly internalType: "uint256";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly name: "referrerRebate";
|
|
1170
|
+
readonly type: "uint256";
|
|
1171
|
+
readonly internalType: "uint256";
|
|
1172
|
+
}, {
|
|
1173
|
+
readonly name: "refereeRebate";
|
|
1174
|
+
readonly type: "uint256";
|
|
1175
|
+
readonly internalType: "uint256";
|
|
1176
|
+
}];
|
|
1177
|
+
}];
|
|
1178
|
+
readonly stateMutability: "view";
|
|
1179
|
+
}];
|
|
1180
|
+
export declare const HYPERLIQUID_HANDLER_ABI: readonly [{
|
|
1181
|
+
readonly type: "function";
|
|
1182
|
+
readonly name: "coreUserExists";
|
|
1183
|
+
readonly inputs: readonly [{
|
|
1184
|
+
readonly name: "user_";
|
|
1185
|
+
readonly type: "address";
|
|
1186
|
+
readonly internalType: "address";
|
|
1187
|
+
}];
|
|
1188
|
+
readonly outputs: readonly [{
|
|
1189
|
+
readonly name: "";
|
|
1190
|
+
readonly type: "bool";
|
|
1191
|
+
readonly internalType: "bool";
|
|
1192
|
+
}];
|
|
1193
|
+
readonly stateMutability: "view";
|
|
1194
|
+
}, {
|
|
1195
|
+
readonly type: "function";
|
|
1196
|
+
readonly name: "hyperliquidUsdc";
|
|
1197
|
+
readonly inputs: readonly [{
|
|
1198
|
+
readonly name: "user_";
|
|
1199
|
+
readonly type: "address";
|
|
1200
|
+
readonly internalType: "address";
|
|
1201
|
+
}];
|
|
1202
|
+
readonly outputs: readonly [{
|
|
1203
|
+
readonly name: "";
|
|
1204
|
+
readonly type: "uint256";
|
|
1205
|
+
readonly internalType: "uint256";
|
|
1206
|
+
}];
|
|
1207
|
+
readonly stateMutability: "view";
|
|
1208
|
+
}, {
|
|
1209
|
+
readonly type: "function";
|
|
1210
|
+
readonly name: "marginUsedUsdc";
|
|
1211
|
+
readonly inputs: readonly [{
|
|
1212
|
+
readonly name: "user_";
|
|
1213
|
+
readonly type: "address";
|
|
1214
|
+
readonly internalType: "address";
|
|
1215
|
+
}];
|
|
1216
|
+
readonly outputs: readonly [{
|
|
1217
|
+
readonly name: "";
|
|
1218
|
+
readonly type: "uint256";
|
|
1219
|
+
readonly internalType: "uint256";
|
|
1220
|
+
}];
|
|
1221
|
+
readonly stateMutability: "view";
|
|
1222
|
+
}, {
|
|
1223
|
+
readonly type: "function";
|
|
1224
|
+
readonly name: "notionalUsdc";
|
|
1225
|
+
readonly inputs: readonly [{
|
|
1226
|
+
readonly name: "user_";
|
|
1227
|
+
readonly type: "address";
|
|
1228
|
+
readonly internalType: "address";
|
|
1229
|
+
}, {
|
|
1230
|
+
readonly name: "marketId_";
|
|
1231
|
+
readonly type: "uint32";
|
|
1232
|
+
readonly internalType: "uint32";
|
|
1233
|
+
}];
|
|
1234
|
+
readonly outputs: readonly [{
|
|
1235
|
+
readonly name: "";
|
|
1236
|
+
readonly type: "uint256";
|
|
1237
|
+
readonly internalType: "uint256";
|
|
1238
|
+
}];
|
|
1239
|
+
readonly stateMutability: "view";
|
|
1240
|
+
}, {
|
|
1241
|
+
readonly type: "function";
|
|
1242
|
+
readonly name: "perpUsdc";
|
|
1243
|
+
readonly inputs: readonly [{
|
|
1244
|
+
readonly name: "user_";
|
|
1245
|
+
readonly type: "address";
|
|
1246
|
+
readonly internalType: "address";
|
|
1247
|
+
}];
|
|
1248
|
+
readonly outputs: readonly [{
|
|
1249
|
+
readonly name: "";
|
|
1250
|
+
readonly type: "uint256";
|
|
1251
|
+
readonly internalType: "uint256";
|
|
1252
|
+
}];
|
|
1253
|
+
readonly stateMutability: "view";
|
|
1254
|
+
}, {
|
|
1255
|
+
readonly type: "function";
|
|
1256
|
+
readonly name: "spotUsdc";
|
|
1257
|
+
readonly inputs: readonly [{
|
|
1258
|
+
readonly name: "user_";
|
|
1259
|
+
readonly type: "address";
|
|
1260
|
+
readonly internalType: "address";
|
|
1261
|
+
}];
|
|
1262
|
+
readonly outputs: readonly [{
|
|
1263
|
+
readonly name: "";
|
|
1264
|
+
readonly type: "uint256";
|
|
1265
|
+
readonly internalType: "uint256";
|
|
1266
|
+
}];
|
|
1267
|
+
readonly stateMutability: "view";
|
|
1268
|
+
}, {
|
|
1269
|
+
readonly type: "error";
|
|
1270
|
+
readonly name: "PrecompileLib__AccountMarginSummaryPrecompileFailed";
|
|
1271
|
+
readonly inputs: readonly [];
|
|
1272
|
+
}, {
|
|
1273
|
+
readonly type: "error";
|
|
1274
|
+
readonly name: "PrecompileLib__CoreUserExistsPrecompileFailed";
|
|
1275
|
+
readonly inputs: readonly [];
|
|
1276
|
+
}, {
|
|
1277
|
+
readonly type: "error";
|
|
1278
|
+
readonly name: "PrecompileLib__MarkPxPrecompileFailed";
|
|
1279
|
+
readonly inputs: readonly [];
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly type: "error";
|
|
1282
|
+
readonly name: "PrecompileLib__PerpAssetInfoPrecompileFailed";
|
|
1283
|
+
readonly inputs: readonly [];
|
|
1284
|
+
}, {
|
|
1285
|
+
readonly type: "error";
|
|
1286
|
+
readonly name: "PrecompileLib__PositionPrecompileFailed";
|
|
1287
|
+
readonly inputs: readonly [];
|
|
1288
|
+
}, {
|
|
1289
|
+
readonly type: "error";
|
|
1290
|
+
readonly name: "PrecompileLib__SpotBalancePrecompileFailed";
|
|
1291
|
+
readonly inputs: readonly [];
|
|
1292
|
+
}];
|
|
1293
|
+
export declare const LEVERAGED_TOKEN_ABI: readonly [{
|
|
1294
|
+
readonly type: "constructor";
|
|
1295
|
+
readonly inputs: readonly [];
|
|
1296
|
+
readonly stateMutability: "nonpayable";
|
|
1297
|
+
}, {
|
|
1298
|
+
readonly type: "function";
|
|
1299
|
+
readonly name: "agentCreatedAt";
|
|
1300
|
+
readonly inputs: readonly [{
|
|
1301
|
+
readonly name: "agent_";
|
|
1302
|
+
readonly type: "address";
|
|
1303
|
+
readonly internalType: "address";
|
|
1304
|
+
}];
|
|
1305
|
+
readonly outputs: readonly [{
|
|
1306
|
+
readonly name: "";
|
|
1307
|
+
readonly type: "uint256";
|
|
1308
|
+
readonly internalType: "uint256";
|
|
1309
|
+
}];
|
|
1310
|
+
readonly stateMutability: "view";
|
|
1311
|
+
}, {
|
|
1312
|
+
readonly type: "function";
|
|
1313
|
+
readonly name: "agents";
|
|
1314
|
+
readonly inputs: readonly [];
|
|
1315
|
+
readonly outputs: readonly [{
|
|
1316
|
+
readonly name: "";
|
|
1317
|
+
readonly type: "address[3]";
|
|
1318
|
+
readonly internalType: "address[3]";
|
|
1319
|
+
}];
|
|
1320
|
+
readonly stateMutability: "view";
|
|
1321
|
+
}, {
|
|
1322
|
+
readonly type: "function";
|
|
1323
|
+
readonly name: "allowance";
|
|
1324
|
+
readonly inputs: readonly [{
|
|
1325
|
+
readonly name: "owner";
|
|
1326
|
+
readonly type: "address";
|
|
1327
|
+
readonly internalType: "address";
|
|
1328
|
+
}, {
|
|
1329
|
+
readonly name: "spender";
|
|
1330
|
+
readonly type: "address";
|
|
1331
|
+
readonly internalType: "address";
|
|
1332
|
+
}];
|
|
1333
|
+
readonly outputs: readonly [{
|
|
1334
|
+
readonly name: "";
|
|
1335
|
+
readonly type: "uint256";
|
|
1336
|
+
readonly internalType: "uint256";
|
|
1337
|
+
}];
|
|
1338
|
+
readonly stateMutability: "view";
|
|
1339
|
+
}, {
|
|
1340
|
+
readonly type: "function";
|
|
1341
|
+
readonly name: "approve";
|
|
1342
|
+
readonly inputs: readonly [{
|
|
1343
|
+
readonly name: "spender";
|
|
1344
|
+
readonly type: "address";
|
|
1345
|
+
readonly internalType: "address";
|
|
1346
|
+
}, {
|
|
1347
|
+
readonly name: "value";
|
|
1348
|
+
readonly type: "uint256";
|
|
1349
|
+
readonly internalType: "uint256";
|
|
1350
|
+
}];
|
|
1351
|
+
readonly outputs: readonly [{
|
|
1352
|
+
readonly name: "";
|
|
1353
|
+
readonly type: "bool";
|
|
1354
|
+
readonly internalType: "bool";
|
|
1355
|
+
}];
|
|
1356
|
+
readonly stateMutability: "nonpayable";
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly type: "function";
|
|
1359
|
+
readonly name: "balanceOf";
|
|
1360
|
+
readonly inputs: readonly [{
|
|
1361
|
+
readonly name: "account";
|
|
1362
|
+
readonly type: "address";
|
|
1363
|
+
readonly internalType: "address";
|
|
1364
|
+
}];
|
|
1365
|
+
readonly outputs: readonly [{
|
|
1366
|
+
readonly name: "";
|
|
1367
|
+
readonly type: "uint256";
|
|
1368
|
+
readonly internalType: "uint256";
|
|
1369
|
+
}];
|
|
1370
|
+
readonly stateMutability: "view";
|
|
1371
|
+
}, {
|
|
1372
|
+
readonly type: "function";
|
|
1373
|
+
readonly name: "baseAssetBalance";
|
|
1374
|
+
readonly inputs: readonly [];
|
|
1375
|
+
readonly outputs: readonly [{
|
|
1376
|
+
readonly name: "";
|
|
1377
|
+
readonly type: "uint256";
|
|
1378
|
+
readonly internalType: "uint256";
|
|
1379
|
+
}];
|
|
1380
|
+
readonly stateMutability: "view";
|
|
1381
|
+
}, {
|
|
1382
|
+
readonly type: "function";
|
|
1383
|
+
readonly name: "baseToLtAmount";
|
|
1384
|
+
readonly inputs: readonly [{
|
|
1385
|
+
readonly name: "baseAmount_";
|
|
1386
|
+
readonly type: "uint256";
|
|
1387
|
+
readonly internalType: "uint256";
|
|
1388
|
+
}];
|
|
1389
|
+
readonly outputs: readonly [{
|
|
1390
|
+
readonly name: "";
|
|
1391
|
+
readonly type: "uint256";
|
|
1392
|
+
readonly internalType: "uint256";
|
|
1393
|
+
}];
|
|
1394
|
+
readonly stateMutability: "view";
|
|
1395
|
+
}, {
|
|
1396
|
+
readonly type: "function";
|
|
1397
|
+
readonly name: "bridgeFromPerp";
|
|
1398
|
+
readonly inputs: readonly [{
|
|
1399
|
+
readonly name: "amount_";
|
|
1400
|
+
readonly type: "uint256";
|
|
1401
|
+
readonly internalType: "uint256";
|
|
1402
|
+
}];
|
|
1403
|
+
readonly outputs: readonly [];
|
|
1404
|
+
readonly stateMutability: "nonpayable";
|
|
1405
|
+
}, {
|
|
1406
|
+
readonly type: "function";
|
|
1407
|
+
readonly name: "bridgeFromSpot";
|
|
1408
|
+
readonly inputs: readonly [{
|
|
1409
|
+
readonly name: "amount_";
|
|
1410
|
+
readonly type: "uint256";
|
|
1411
|
+
readonly internalType: "uint256";
|
|
1412
|
+
}];
|
|
1413
|
+
readonly outputs: readonly [];
|
|
1414
|
+
readonly stateMutability: "nonpayable";
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly type: "function";
|
|
1417
|
+
readonly name: "bridgeToPerp";
|
|
1418
|
+
readonly inputs: readonly [{
|
|
1419
|
+
readonly name: "amount_";
|
|
1420
|
+
readonly type: "uint256";
|
|
1421
|
+
readonly internalType: "uint256";
|
|
1422
|
+
}];
|
|
1423
|
+
readonly outputs: readonly [];
|
|
1424
|
+
readonly stateMutability: "nonpayable";
|
|
1425
|
+
}, {
|
|
1426
|
+
readonly type: "function";
|
|
1427
|
+
readonly name: "bridgeToSpot";
|
|
1428
|
+
readonly inputs: readonly [{
|
|
1429
|
+
readonly name: "amount_";
|
|
1430
|
+
readonly type: "uint256";
|
|
1431
|
+
readonly internalType: "uint256";
|
|
1432
|
+
}];
|
|
1433
|
+
readonly outputs: readonly [];
|
|
1434
|
+
readonly stateMutability: "nonpayable";
|
|
1435
|
+
}, {
|
|
1436
|
+
readonly type: "function";
|
|
1437
|
+
readonly name: "cancelRedeem";
|
|
1438
|
+
readonly inputs: readonly [];
|
|
1439
|
+
readonly outputs: readonly [];
|
|
1440
|
+
readonly stateMutability: "nonpayable";
|
|
1441
|
+
}, {
|
|
1442
|
+
readonly type: "function";
|
|
1443
|
+
readonly name: "checkpoint";
|
|
1444
|
+
readonly inputs: readonly [];
|
|
1445
|
+
readonly outputs: readonly [];
|
|
1446
|
+
readonly stateMutability: "nonpayable";
|
|
1447
|
+
}, {
|
|
1448
|
+
readonly type: "function";
|
|
1449
|
+
readonly name: "checkpoint";
|
|
1450
|
+
readonly inputs: readonly [{
|
|
1451
|
+
readonly name: "to_";
|
|
1452
|
+
readonly type: "uint256";
|
|
1453
|
+
readonly internalType: "uint256";
|
|
1454
|
+
}];
|
|
1455
|
+
readonly outputs: readonly [];
|
|
1456
|
+
readonly stateMutability: "nonpayable";
|
|
1457
|
+
}, {
|
|
1458
|
+
readonly type: "function";
|
|
1459
|
+
readonly name: "credit";
|
|
1460
|
+
readonly inputs: readonly [];
|
|
1461
|
+
readonly outputs: readonly [{
|
|
1462
|
+
readonly name: "";
|
|
1463
|
+
readonly type: "uint256";
|
|
1464
|
+
readonly internalType: "uint256";
|
|
1465
|
+
}];
|
|
1466
|
+
readonly stateMutability: "view";
|
|
1467
|
+
}, {
|
|
1468
|
+
readonly type: "function";
|
|
1469
|
+
readonly name: "decimals";
|
|
1470
|
+
readonly inputs: readonly [];
|
|
1471
|
+
readonly outputs: readonly [{
|
|
1472
|
+
readonly name: "";
|
|
1473
|
+
readonly type: "uint8";
|
|
1474
|
+
readonly internalType: "uint8";
|
|
1475
|
+
}];
|
|
1476
|
+
readonly stateMutability: "view";
|
|
1477
|
+
}, {
|
|
1478
|
+
readonly type: "function";
|
|
1479
|
+
readonly name: "exchangeRate";
|
|
1480
|
+
readonly inputs: readonly [];
|
|
1481
|
+
readonly outputs: readonly [{
|
|
1482
|
+
readonly name: "";
|
|
1483
|
+
readonly type: "uint256";
|
|
1484
|
+
readonly internalType: "uint256";
|
|
1485
|
+
}];
|
|
1486
|
+
readonly stateMutability: "view";
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly type: "function";
|
|
1489
|
+
readonly name: "executeRedemptions";
|
|
1490
|
+
readonly inputs: readonly [{
|
|
1491
|
+
readonly name: "users_";
|
|
1492
|
+
readonly type: "address[]";
|
|
1493
|
+
readonly internalType: "address[]";
|
|
1494
|
+
}];
|
|
1495
|
+
readonly outputs: readonly [{
|
|
1496
|
+
readonly name: "executeRedemptionData_";
|
|
1497
|
+
readonly type: "tuple[]";
|
|
1498
|
+
readonly internalType: "struct ILeveragedToken.ExecuteRedemptionData[]";
|
|
1499
|
+
readonly components: readonly [{
|
|
1500
|
+
readonly name: "user";
|
|
1501
|
+
readonly type: "address";
|
|
1502
|
+
readonly internalType: "address";
|
|
1503
|
+
}, {
|
|
1504
|
+
readonly name: "wasExecuted";
|
|
1505
|
+
readonly type: "bool";
|
|
1506
|
+
readonly internalType: "bool";
|
|
1507
|
+
}];
|
|
1508
|
+
}];
|
|
1509
|
+
readonly stateMutability: "nonpayable";
|
|
1510
|
+
}, {
|
|
1511
|
+
readonly type: "function";
|
|
1512
|
+
readonly name: "getAgentSlot";
|
|
1513
|
+
readonly inputs: readonly [{
|
|
1514
|
+
readonly name: "agent_";
|
|
1515
|
+
readonly type: "address";
|
|
1516
|
+
readonly internalType: "address";
|
|
1517
|
+
}];
|
|
1518
|
+
readonly outputs: readonly [{
|
|
1519
|
+
readonly name: "";
|
|
1520
|
+
readonly type: "uint8";
|
|
1521
|
+
readonly internalType: "uint8";
|
|
1522
|
+
}];
|
|
1523
|
+
readonly stateMutability: "view";
|
|
1524
|
+
}, {
|
|
1525
|
+
readonly type: "function";
|
|
1526
|
+
readonly name: "initialize";
|
|
1527
|
+
readonly inputs: readonly [{
|
|
1528
|
+
readonly name: "globalStorage_";
|
|
1529
|
+
readonly type: "address";
|
|
1530
|
+
readonly internalType: "address";
|
|
1531
|
+
}, {
|
|
1532
|
+
readonly name: "marketId_";
|
|
1533
|
+
readonly type: "uint32";
|
|
1534
|
+
readonly internalType: "uint32";
|
|
1535
|
+
}, {
|
|
1536
|
+
readonly name: "targetAsset_";
|
|
1537
|
+
readonly type: "string";
|
|
1538
|
+
readonly internalType: "string";
|
|
1539
|
+
}, {
|
|
1540
|
+
readonly name: "targetLeverage_";
|
|
1541
|
+
readonly type: "uint256";
|
|
1542
|
+
readonly internalType: "uint256";
|
|
1543
|
+
}, {
|
|
1544
|
+
readonly name: "isLong_";
|
|
1545
|
+
readonly type: "bool";
|
|
1546
|
+
readonly internalType: "bool";
|
|
1547
|
+
}, {
|
|
1548
|
+
readonly name: "name_";
|
|
1549
|
+
readonly type: "string";
|
|
1550
|
+
readonly internalType: "string";
|
|
1551
|
+
}, {
|
|
1552
|
+
readonly name: "symbol_";
|
|
1553
|
+
readonly type: "string";
|
|
1554
|
+
readonly internalType: "string";
|
|
1555
|
+
}];
|
|
1556
|
+
readonly outputs: readonly [];
|
|
1557
|
+
readonly stateMutability: "nonpayable";
|
|
1558
|
+
}, {
|
|
1559
|
+
readonly type: "function";
|
|
1560
|
+
readonly name: "isAgent";
|
|
1561
|
+
readonly inputs: readonly [{
|
|
1562
|
+
readonly name: "agent_";
|
|
1563
|
+
readonly type: "address";
|
|
1564
|
+
readonly internalType: "address";
|
|
1565
|
+
}];
|
|
1566
|
+
readonly outputs: readonly [{
|
|
1567
|
+
readonly name: "";
|
|
1568
|
+
readonly type: "bool";
|
|
1569
|
+
readonly internalType: "bool";
|
|
1570
|
+
}];
|
|
1571
|
+
readonly stateMutability: "view";
|
|
1572
|
+
}, {
|
|
1573
|
+
readonly type: "function";
|
|
1574
|
+
readonly name: "isLong";
|
|
1575
|
+
readonly inputs: readonly [];
|
|
1576
|
+
readonly outputs: readonly [{
|
|
1577
|
+
readonly name: "";
|
|
1578
|
+
readonly type: "bool";
|
|
1579
|
+
readonly internalType: "bool";
|
|
1580
|
+
}];
|
|
1581
|
+
readonly stateMutability: "view";
|
|
1582
|
+
}, {
|
|
1583
|
+
readonly type: "function";
|
|
1584
|
+
readonly name: "lastCheckpoint";
|
|
1585
|
+
readonly inputs: readonly [];
|
|
1586
|
+
readonly outputs: readonly [{
|
|
1587
|
+
readonly name: "";
|
|
1588
|
+
readonly type: "uint256";
|
|
1589
|
+
readonly internalType: "uint256";
|
|
1590
|
+
}];
|
|
1591
|
+
readonly stateMutability: "view";
|
|
1592
|
+
}, {
|
|
1593
|
+
readonly type: "function";
|
|
1594
|
+
readonly name: "ltToBaseAmount";
|
|
1595
|
+
readonly inputs: readonly [{
|
|
1596
|
+
readonly name: "ltAmount_";
|
|
1597
|
+
readonly type: "uint256";
|
|
1598
|
+
readonly internalType: "uint256";
|
|
1599
|
+
}];
|
|
1600
|
+
readonly outputs: readonly [{
|
|
1601
|
+
readonly name: "";
|
|
1602
|
+
readonly type: "uint256";
|
|
1603
|
+
readonly internalType: "uint256";
|
|
1604
|
+
}];
|
|
1605
|
+
readonly stateMutability: "view";
|
|
1606
|
+
}, {
|
|
1607
|
+
readonly type: "function";
|
|
1608
|
+
readonly name: "marketId";
|
|
1609
|
+
readonly inputs: readonly [];
|
|
1610
|
+
readonly outputs: readonly [{
|
|
1611
|
+
readonly name: "";
|
|
1612
|
+
readonly type: "uint32";
|
|
1613
|
+
readonly internalType: "uint32";
|
|
1614
|
+
}];
|
|
1615
|
+
readonly stateMutability: "view";
|
|
1616
|
+
}, {
|
|
1617
|
+
readonly type: "function";
|
|
1618
|
+
readonly name: "mint";
|
|
1619
|
+
readonly inputs: readonly [{
|
|
1620
|
+
readonly name: "to_";
|
|
1621
|
+
readonly type: "address";
|
|
1622
|
+
readonly internalType: "address";
|
|
1623
|
+
}, {
|
|
1624
|
+
readonly name: "baseAmount_";
|
|
1625
|
+
readonly type: "uint256";
|
|
1626
|
+
readonly internalType: "uint256";
|
|
1627
|
+
}, {
|
|
1628
|
+
readonly name: "minOut_";
|
|
1629
|
+
readonly type: "uint256";
|
|
1630
|
+
readonly internalType: "uint256";
|
|
1631
|
+
}];
|
|
1632
|
+
readonly outputs: readonly [{
|
|
1633
|
+
readonly name: "";
|
|
1634
|
+
readonly type: "uint256";
|
|
1635
|
+
readonly internalType: "uint256";
|
|
1636
|
+
}];
|
|
1637
|
+
readonly stateMutability: "nonpayable";
|
|
1638
|
+
}, {
|
|
1639
|
+
readonly type: "function";
|
|
1640
|
+
readonly name: "mintPaused";
|
|
1641
|
+
readonly inputs: readonly [];
|
|
1642
|
+
readonly outputs: readonly [{
|
|
1643
|
+
readonly name: "";
|
|
1644
|
+
readonly type: "bool";
|
|
1645
|
+
readonly internalType: "bool";
|
|
1646
|
+
}];
|
|
1647
|
+
readonly stateMutability: "view";
|
|
1648
|
+
}, {
|
|
1649
|
+
readonly type: "function";
|
|
1650
|
+
readonly name: "name";
|
|
1651
|
+
readonly inputs: readonly [];
|
|
1652
|
+
readonly outputs: readonly [{
|
|
1653
|
+
readonly name: "";
|
|
1654
|
+
readonly type: "string";
|
|
1655
|
+
readonly internalType: "string";
|
|
1656
|
+
}];
|
|
1657
|
+
readonly stateMutability: "view";
|
|
1658
|
+
}, {
|
|
1659
|
+
readonly type: "function";
|
|
1660
|
+
readonly name: "pendingRedemptions";
|
|
1661
|
+
readonly inputs: readonly [];
|
|
1662
|
+
readonly outputs: readonly [{
|
|
1663
|
+
readonly name: "";
|
|
1664
|
+
readonly type: "address[]";
|
|
1665
|
+
readonly internalType: "address[]";
|
|
1666
|
+
}];
|
|
1667
|
+
readonly stateMutability: "view";
|
|
1668
|
+
}, {
|
|
1669
|
+
readonly type: "function";
|
|
1670
|
+
readonly name: "prepareRedeem";
|
|
1671
|
+
readonly inputs: readonly [{
|
|
1672
|
+
readonly name: "ltAmount_";
|
|
1673
|
+
readonly type: "uint256";
|
|
1674
|
+
readonly internalType: "uint256";
|
|
1675
|
+
}];
|
|
1676
|
+
readonly outputs: readonly [];
|
|
1677
|
+
readonly stateMutability: "nonpayable";
|
|
1678
|
+
}, {
|
|
1679
|
+
readonly type: "function";
|
|
1680
|
+
readonly name: "redeem";
|
|
1681
|
+
readonly inputs: readonly [{
|
|
1682
|
+
readonly name: "to_";
|
|
1683
|
+
readonly type: "address";
|
|
1684
|
+
readonly internalType: "address";
|
|
1685
|
+
}, {
|
|
1686
|
+
readonly name: "ltAmount_";
|
|
1687
|
+
readonly type: "uint256";
|
|
1688
|
+
readonly internalType: "uint256";
|
|
1689
|
+
}, {
|
|
1690
|
+
readonly name: "minBaseAmount_";
|
|
1691
|
+
readonly type: "uint256";
|
|
1692
|
+
readonly internalType: "uint256";
|
|
1693
|
+
}];
|
|
1694
|
+
readonly outputs: readonly [{
|
|
1695
|
+
readonly name: "";
|
|
1696
|
+
readonly type: "uint256";
|
|
1697
|
+
readonly internalType: "uint256";
|
|
1698
|
+
}];
|
|
1699
|
+
readonly stateMutability: "nonpayable";
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly type: "function";
|
|
1702
|
+
readonly name: "setAgent";
|
|
1703
|
+
readonly inputs: readonly [{
|
|
1704
|
+
readonly name: "slot_";
|
|
1705
|
+
readonly type: "uint8";
|
|
1706
|
+
readonly internalType: "uint8";
|
|
1707
|
+
}, {
|
|
1708
|
+
readonly name: "agent_";
|
|
1709
|
+
readonly type: "address";
|
|
1710
|
+
readonly internalType: "address";
|
|
1711
|
+
}];
|
|
1712
|
+
readonly outputs: readonly [];
|
|
1713
|
+
readonly stateMutability: "nonpayable";
|
|
1714
|
+
}, {
|
|
1715
|
+
readonly type: "function";
|
|
1716
|
+
readonly name: "setMintPaused";
|
|
1717
|
+
readonly inputs: readonly [{
|
|
1718
|
+
readonly name: "mintPaused_";
|
|
1719
|
+
readonly type: "bool";
|
|
1720
|
+
readonly internalType: "bool";
|
|
1721
|
+
}];
|
|
1722
|
+
readonly outputs: readonly [];
|
|
1723
|
+
readonly stateMutability: "nonpayable";
|
|
1724
|
+
}, {
|
|
1725
|
+
readonly type: "function";
|
|
1726
|
+
readonly name: "symbol";
|
|
1727
|
+
readonly inputs: readonly [];
|
|
1728
|
+
readonly outputs: readonly [{
|
|
1729
|
+
readonly name: "";
|
|
1730
|
+
readonly type: "string";
|
|
1731
|
+
readonly internalType: "string";
|
|
1732
|
+
}];
|
|
1733
|
+
readonly stateMutability: "view";
|
|
1734
|
+
}, {
|
|
1735
|
+
readonly type: "function";
|
|
1736
|
+
readonly name: "targetAsset";
|
|
1737
|
+
readonly inputs: readonly [];
|
|
1738
|
+
readonly outputs: readonly [{
|
|
1739
|
+
readonly name: "";
|
|
1740
|
+
readonly type: "string";
|
|
1741
|
+
readonly internalType: "string";
|
|
1742
|
+
}];
|
|
1743
|
+
readonly stateMutability: "view";
|
|
1744
|
+
}, {
|
|
1745
|
+
readonly type: "function";
|
|
1746
|
+
readonly name: "targetLeverage";
|
|
1747
|
+
readonly inputs: readonly [];
|
|
1748
|
+
readonly outputs: readonly [{
|
|
1749
|
+
readonly name: "";
|
|
1750
|
+
readonly type: "uint256";
|
|
1751
|
+
readonly internalType: "uint256";
|
|
1752
|
+
}];
|
|
1753
|
+
readonly stateMutability: "view";
|
|
1754
|
+
}, {
|
|
1755
|
+
readonly type: "function";
|
|
1756
|
+
readonly name: "totalAssets";
|
|
1757
|
+
readonly inputs: readonly [];
|
|
1758
|
+
readonly outputs: readonly [{
|
|
1759
|
+
readonly name: "";
|
|
1760
|
+
readonly type: "uint256";
|
|
1761
|
+
readonly internalType: "uint256";
|
|
1762
|
+
}];
|
|
1763
|
+
readonly stateMutability: "view";
|
|
1764
|
+
}, {
|
|
1765
|
+
readonly type: "function";
|
|
1766
|
+
readonly name: "totalSupply";
|
|
1767
|
+
readonly inputs: readonly [];
|
|
1768
|
+
readonly outputs: readonly [{
|
|
1769
|
+
readonly name: "";
|
|
1770
|
+
readonly type: "uint256";
|
|
1771
|
+
readonly internalType: "uint256";
|
|
1772
|
+
}];
|
|
1773
|
+
readonly stateMutability: "view";
|
|
1774
|
+
}, {
|
|
1775
|
+
readonly type: "function";
|
|
1776
|
+
readonly name: "transfer";
|
|
1777
|
+
readonly inputs: readonly [{
|
|
1778
|
+
readonly name: "to";
|
|
1779
|
+
readonly type: "address";
|
|
1780
|
+
readonly internalType: "address";
|
|
1781
|
+
}, {
|
|
1782
|
+
readonly name: "value";
|
|
1783
|
+
readonly type: "uint256";
|
|
1784
|
+
readonly internalType: "uint256";
|
|
1785
|
+
}];
|
|
1786
|
+
readonly outputs: readonly [{
|
|
1787
|
+
readonly name: "";
|
|
1788
|
+
readonly type: "bool";
|
|
1789
|
+
readonly internalType: "bool";
|
|
1790
|
+
}];
|
|
1791
|
+
readonly stateMutability: "nonpayable";
|
|
1792
|
+
}, {
|
|
1793
|
+
readonly type: "function";
|
|
1794
|
+
readonly name: "transferFrom";
|
|
1795
|
+
readonly inputs: readonly [{
|
|
1796
|
+
readonly name: "from";
|
|
1797
|
+
readonly type: "address";
|
|
1798
|
+
readonly internalType: "address";
|
|
1799
|
+
}, {
|
|
1800
|
+
readonly name: "to";
|
|
1801
|
+
readonly type: "address";
|
|
1802
|
+
readonly internalType: "address";
|
|
1803
|
+
}, {
|
|
1804
|
+
readonly name: "value";
|
|
1805
|
+
readonly type: "uint256";
|
|
1806
|
+
readonly internalType: "uint256";
|
|
1807
|
+
}];
|
|
1808
|
+
readonly outputs: readonly [{
|
|
1809
|
+
readonly name: "";
|
|
1810
|
+
readonly type: "bool";
|
|
1811
|
+
readonly internalType: "bool";
|
|
1812
|
+
}];
|
|
1813
|
+
readonly stateMutability: "nonpayable";
|
|
1814
|
+
}, {
|
|
1815
|
+
readonly type: "function";
|
|
1816
|
+
readonly name: "usdClassTransfer";
|
|
1817
|
+
readonly inputs: readonly [{
|
|
1818
|
+
readonly name: "amount_";
|
|
1819
|
+
readonly type: "uint64";
|
|
1820
|
+
readonly internalType: "uint64";
|
|
1821
|
+
}, {
|
|
1822
|
+
readonly name: "toPerp_";
|
|
1823
|
+
readonly type: "bool";
|
|
1824
|
+
readonly internalType: "bool";
|
|
1825
|
+
}];
|
|
1826
|
+
readonly outputs: readonly [];
|
|
1827
|
+
readonly stateMutability: "nonpayable";
|
|
1828
|
+
}, {
|
|
1829
|
+
readonly type: "function";
|
|
1830
|
+
readonly name: "userCredit";
|
|
1831
|
+
readonly inputs: readonly [{
|
|
1832
|
+
readonly name: "user_";
|
|
1833
|
+
readonly type: "address";
|
|
1834
|
+
readonly internalType: "address";
|
|
1835
|
+
}];
|
|
1836
|
+
readonly outputs: readonly [{
|
|
1837
|
+
readonly name: "";
|
|
1838
|
+
readonly type: "uint256";
|
|
1839
|
+
readonly internalType: "uint256";
|
|
1840
|
+
}];
|
|
1841
|
+
readonly stateMutability: "view";
|
|
1842
|
+
}, {
|
|
1843
|
+
readonly type: "function";
|
|
1844
|
+
readonly name: "version";
|
|
1845
|
+
readonly inputs: readonly [];
|
|
1846
|
+
readonly outputs: readonly [{
|
|
1847
|
+
readonly name: "";
|
|
1848
|
+
readonly type: "string";
|
|
1849
|
+
readonly internalType: "string";
|
|
1850
|
+
}];
|
|
1851
|
+
readonly stateMutability: "pure";
|
|
1852
|
+
}, {
|
|
1853
|
+
readonly type: "event";
|
|
1854
|
+
readonly name: "Approval";
|
|
1855
|
+
readonly inputs: readonly [{
|
|
1856
|
+
readonly name: "owner";
|
|
1857
|
+
readonly type: "address";
|
|
1858
|
+
readonly indexed: true;
|
|
1859
|
+
readonly internalType: "address";
|
|
1860
|
+
}, {
|
|
1861
|
+
readonly name: "spender";
|
|
1862
|
+
readonly type: "address";
|
|
1863
|
+
readonly indexed: true;
|
|
1864
|
+
readonly internalType: "address";
|
|
1865
|
+
}, {
|
|
1866
|
+
readonly name: "value";
|
|
1867
|
+
readonly type: "uint256";
|
|
1868
|
+
readonly indexed: false;
|
|
1869
|
+
readonly internalType: "uint256";
|
|
1870
|
+
}];
|
|
1871
|
+
readonly anonymous: false;
|
|
1872
|
+
}, {
|
|
1873
|
+
readonly type: "event";
|
|
1874
|
+
readonly name: "BridgeFromPerp";
|
|
1875
|
+
readonly inputs: readonly [{
|
|
1876
|
+
readonly name: "sender";
|
|
1877
|
+
readonly type: "address";
|
|
1878
|
+
readonly indexed: true;
|
|
1879
|
+
readonly internalType: "address";
|
|
1880
|
+
}, {
|
|
1881
|
+
readonly name: "amount";
|
|
1882
|
+
readonly type: "uint256";
|
|
1883
|
+
readonly indexed: false;
|
|
1884
|
+
readonly internalType: "uint256";
|
|
1885
|
+
}];
|
|
1886
|
+
readonly anonymous: false;
|
|
1887
|
+
}, {
|
|
1888
|
+
readonly type: "event";
|
|
1889
|
+
readonly name: "BridgeFromSpot";
|
|
1890
|
+
readonly inputs: readonly [{
|
|
1891
|
+
readonly name: "sender";
|
|
1892
|
+
readonly type: "address";
|
|
1893
|
+
readonly indexed: true;
|
|
1894
|
+
readonly internalType: "address";
|
|
1895
|
+
}, {
|
|
1896
|
+
readonly name: "amount";
|
|
1897
|
+
readonly type: "uint256";
|
|
1898
|
+
readonly indexed: false;
|
|
1899
|
+
readonly internalType: "uint256";
|
|
1900
|
+
}];
|
|
1901
|
+
readonly anonymous: false;
|
|
1902
|
+
}, {
|
|
1903
|
+
readonly type: "event";
|
|
1904
|
+
readonly name: "BridgeToPerp";
|
|
1905
|
+
readonly inputs: readonly [{
|
|
1906
|
+
readonly name: "sender";
|
|
1907
|
+
readonly type: "address";
|
|
1908
|
+
readonly indexed: true;
|
|
1909
|
+
readonly internalType: "address";
|
|
1910
|
+
}, {
|
|
1911
|
+
readonly name: "amount";
|
|
1912
|
+
readonly type: "uint256";
|
|
1913
|
+
readonly indexed: false;
|
|
1914
|
+
readonly internalType: "uint256";
|
|
1915
|
+
}];
|
|
1916
|
+
readonly anonymous: false;
|
|
1917
|
+
}, {
|
|
1918
|
+
readonly type: "event";
|
|
1919
|
+
readonly name: "BridgeToSpot";
|
|
1920
|
+
readonly inputs: readonly [{
|
|
1921
|
+
readonly name: "sender";
|
|
1922
|
+
readonly type: "address";
|
|
1923
|
+
readonly indexed: true;
|
|
1924
|
+
readonly internalType: "address";
|
|
1925
|
+
}, {
|
|
1926
|
+
readonly name: "amount";
|
|
1927
|
+
readonly type: "uint256";
|
|
1928
|
+
readonly indexed: false;
|
|
1929
|
+
readonly internalType: "uint256";
|
|
1930
|
+
}];
|
|
1931
|
+
readonly anonymous: false;
|
|
1932
|
+
}, {
|
|
1933
|
+
readonly type: "event";
|
|
1934
|
+
readonly name: "CancelRedeem";
|
|
1935
|
+
readonly inputs: readonly [{
|
|
1936
|
+
readonly name: "user";
|
|
1937
|
+
readonly type: "address";
|
|
1938
|
+
readonly indexed: true;
|
|
1939
|
+
readonly internalType: "address";
|
|
1940
|
+
}, {
|
|
1941
|
+
readonly name: "credit";
|
|
1942
|
+
readonly type: "uint256";
|
|
1943
|
+
readonly indexed: false;
|
|
1944
|
+
readonly internalType: "uint256";
|
|
1945
|
+
}];
|
|
1946
|
+
readonly anonymous: false;
|
|
1947
|
+
}, {
|
|
1948
|
+
readonly type: "event";
|
|
1949
|
+
readonly name: "ExecuteRedeem";
|
|
1950
|
+
readonly inputs: readonly [{
|
|
1951
|
+
readonly name: "user";
|
|
1952
|
+
readonly type: "address";
|
|
1953
|
+
readonly indexed: true;
|
|
1954
|
+
readonly internalType: "address";
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly name: "ltAmount";
|
|
1957
|
+
readonly type: "uint256";
|
|
1958
|
+
readonly indexed: false;
|
|
1959
|
+
readonly internalType: "uint256";
|
|
1960
|
+
}, {
|
|
1961
|
+
readonly name: "baseAmount";
|
|
1962
|
+
readonly type: "uint256";
|
|
1963
|
+
readonly indexed: false;
|
|
1964
|
+
readonly internalType: "uint256";
|
|
1965
|
+
}];
|
|
1966
|
+
readonly anonymous: false;
|
|
1967
|
+
}, {
|
|
1968
|
+
readonly type: "event";
|
|
1969
|
+
readonly name: "Initialized";
|
|
1970
|
+
readonly inputs: readonly [{
|
|
1971
|
+
readonly name: "version";
|
|
1972
|
+
readonly type: "uint64";
|
|
1973
|
+
readonly indexed: false;
|
|
1974
|
+
readonly internalType: "uint64";
|
|
1975
|
+
}];
|
|
1976
|
+
readonly anonymous: false;
|
|
1977
|
+
}, {
|
|
1978
|
+
readonly type: "event";
|
|
1979
|
+
readonly name: "Mint";
|
|
1980
|
+
readonly inputs: readonly [{
|
|
1981
|
+
readonly name: "minter";
|
|
1982
|
+
readonly type: "address";
|
|
1983
|
+
readonly indexed: true;
|
|
1984
|
+
readonly internalType: "address";
|
|
1985
|
+
}, {
|
|
1986
|
+
readonly name: "to";
|
|
1987
|
+
readonly type: "address";
|
|
1988
|
+
readonly indexed: true;
|
|
1989
|
+
readonly internalType: "address";
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly name: "baseAmount";
|
|
1992
|
+
readonly type: "uint256";
|
|
1993
|
+
readonly indexed: false;
|
|
1994
|
+
readonly internalType: "uint256";
|
|
1995
|
+
}, {
|
|
1996
|
+
readonly name: "ltAmount";
|
|
1997
|
+
readonly type: "uint256";
|
|
1998
|
+
readonly indexed: false;
|
|
1999
|
+
readonly internalType: "uint256";
|
|
2000
|
+
}];
|
|
2001
|
+
readonly anonymous: false;
|
|
2002
|
+
}, {
|
|
2003
|
+
readonly type: "event";
|
|
2004
|
+
readonly name: "PrepareRedeem";
|
|
2005
|
+
readonly inputs: readonly [{
|
|
2006
|
+
readonly name: "sender";
|
|
2007
|
+
readonly type: "address";
|
|
2008
|
+
readonly indexed: true;
|
|
2009
|
+
readonly internalType: "address";
|
|
2010
|
+
}, {
|
|
2011
|
+
readonly name: "ltAmount";
|
|
2012
|
+
readonly type: "uint256";
|
|
2013
|
+
readonly indexed: false;
|
|
2014
|
+
readonly internalType: "uint256";
|
|
2015
|
+
}];
|
|
2016
|
+
readonly anonymous: false;
|
|
2017
|
+
}, {
|
|
2018
|
+
readonly type: "event";
|
|
2019
|
+
readonly name: "Redeem";
|
|
2020
|
+
readonly inputs: readonly [{
|
|
2021
|
+
readonly name: "sender";
|
|
2022
|
+
readonly type: "address";
|
|
2023
|
+
readonly indexed: true;
|
|
2024
|
+
readonly internalType: "address";
|
|
2025
|
+
}, {
|
|
2026
|
+
readonly name: "to";
|
|
2027
|
+
readonly type: "address";
|
|
2028
|
+
readonly indexed: true;
|
|
2029
|
+
readonly internalType: "address";
|
|
2030
|
+
}, {
|
|
2031
|
+
readonly name: "ltAmount";
|
|
2032
|
+
readonly type: "uint256";
|
|
2033
|
+
readonly indexed: false;
|
|
2034
|
+
readonly internalType: "uint256";
|
|
2035
|
+
}, {
|
|
2036
|
+
readonly name: "baseAmount";
|
|
2037
|
+
readonly type: "uint256";
|
|
2038
|
+
readonly indexed: false;
|
|
2039
|
+
readonly internalType: "uint256";
|
|
2040
|
+
}];
|
|
2041
|
+
readonly anonymous: false;
|
|
2042
|
+
}, {
|
|
2043
|
+
readonly type: "event";
|
|
2044
|
+
readonly name: "RemoveAgent";
|
|
2045
|
+
readonly inputs: readonly [{
|
|
2046
|
+
readonly name: "agent";
|
|
2047
|
+
readonly type: "address";
|
|
2048
|
+
readonly indexed: true;
|
|
2049
|
+
readonly internalType: "address";
|
|
2050
|
+
}];
|
|
2051
|
+
readonly anonymous: false;
|
|
2052
|
+
}, {
|
|
2053
|
+
readonly type: "event";
|
|
2054
|
+
readonly name: "SendFeesToTreasury";
|
|
2055
|
+
readonly inputs: readonly [{
|
|
2056
|
+
readonly name: "amount";
|
|
2057
|
+
readonly type: "uint256";
|
|
2058
|
+
readonly indexed: false;
|
|
2059
|
+
readonly internalType: "uint256";
|
|
2060
|
+
}];
|
|
2061
|
+
readonly anonymous: false;
|
|
2062
|
+
}, {
|
|
2063
|
+
readonly type: "event";
|
|
2064
|
+
readonly name: "SetAgent";
|
|
2065
|
+
readonly inputs: readonly [{
|
|
2066
|
+
readonly name: "slot";
|
|
2067
|
+
readonly type: "uint8";
|
|
2068
|
+
readonly indexed: true;
|
|
2069
|
+
readonly internalType: "uint8";
|
|
2070
|
+
}, {
|
|
2071
|
+
readonly name: "agent";
|
|
2072
|
+
readonly type: "address";
|
|
2073
|
+
readonly indexed: true;
|
|
2074
|
+
readonly internalType: "address";
|
|
2075
|
+
}, {
|
|
2076
|
+
readonly name: "name";
|
|
2077
|
+
readonly type: "string";
|
|
2078
|
+
readonly indexed: false;
|
|
2079
|
+
readonly internalType: "string";
|
|
2080
|
+
}];
|
|
2081
|
+
readonly anonymous: false;
|
|
2082
|
+
}, {
|
|
2083
|
+
readonly type: "event";
|
|
2084
|
+
readonly name: "SetMintPaused";
|
|
2085
|
+
readonly inputs: readonly [{
|
|
2086
|
+
readonly name: "mintPaused";
|
|
2087
|
+
readonly type: "bool";
|
|
2088
|
+
readonly indexed: false;
|
|
2089
|
+
readonly internalType: "bool";
|
|
2090
|
+
}];
|
|
2091
|
+
readonly anonymous: false;
|
|
2092
|
+
}, {
|
|
2093
|
+
readonly type: "event";
|
|
2094
|
+
readonly name: "Transfer";
|
|
2095
|
+
readonly inputs: readonly [{
|
|
2096
|
+
readonly name: "from";
|
|
2097
|
+
readonly type: "address";
|
|
2098
|
+
readonly indexed: true;
|
|
2099
|
+
readonly internalType: "address";
|
|
2100
|
+
}, {
|
|
2101
|
+
readonly name: "to";
|
|
2102
|
+
readonly type: "address";
|
|
2103
|
+
readonly indexed: true;
|
|
2104
|
+
readonly internalType: "address";
|
|
2105
|
+
}, {
|
|
2106
|
+
readonly name: "value";
|
|
2107
|
+
readonly type: "uint256";
|
|
2108
|
+
readonly indexed: false;
|
|
2109
|
+
readonly internalType: "uint256";
|
|
2110
|
+
}];
|
|
2111
|
+
readonly anonymous: false;
|
|
2112
|
+
}, {
|
|
2113
|
+
readonly type: "event";
|
|
2114
|
+
readonly name: "UsdClassTransfer";
|
|
2115
|
+
readonly inputs: readonly [{
|
|
2116
|
+
readonly name: "sender";
|
|
2117
|
+
readonly type: "address";
|
|
2118
|
+
readonly indexed: true;
|
|
2119
|
+
readonly internalType: "address";
|
|
2120
|
+
}, {
|
|
2121
|
+
readonly name: "amount";
|
|
2122
|
+
readonly type: "uint256";
|
|
2123
|
+
readonly indexed: false;
|
|
2124
|
+
readonly internalType: "uint256";
|
|
2125
|
+
}, {
|
|
2126
|
+
readonly name: "toPerp";
|
|
2127
|
+
readonly type: "bool";
|
|
2128
|
+
readonly indexed: false;
|
|
2129
|
+
readonly internalType: "bool";
|
|
2130
|
+
}];
|
|
2131
|
+
readonly anonymous: false;
|
|
2132
|
+
}, {
|
|
2133
|
+
readonly type: "error";
|
|
2134
|
+
readonly name: "AlreadyCreated";
|
|
2135
|
+
readonly inputs: readonly [];
|
|
2136
|
+
}, {
|
|
2137
|
+
readonly type: "error";
|
|
2138
|
+
readonly name: "AlreadyRedeeming";
|
|
2139
|
+
readonly inputs: readonly [];
|
|
2140
|
+
}, {
|
|
2141
|
+
readonly type: "error";
|
|
2142
|
+
readonly name: "BelowMinTransactionSize";
|
|
2143
|
+
readonly inputs: readonly [];
|
|
2144
|
+
}, {
|
|
2145
|
+
readonly type: "error";
|
|
2146
|
+
readonly name: "CancelDelayNotElapsed";
|
|
2147
|
+
readonly inputs: readonly [];
|
|
2148
|
+
}, {
|
|
2149
|
+
readonly type: "error";
|
|
2150
|
+
readonly name: "CoreWriterLib__CannotSelfTransfer";
|
|
2151
|
+
readonly inputs: readonly [];
|
|
2152
|
+
}, {
|
|
2153
|
+
readonly type: "error";
|
|
2154
|
+
readonly name: "CoreWriterLib__CoreAmountTooLarge";
|
|
2155
|
+
readonly inputs: readonly [{
|
|
2156
|
+
readonly name: "amount";
|
|
2157
|
+
readonly type: "uint256";
|
|
2158
|
+
readonly internalType: "uint256";
|
|
2159
|
+
}];
|
|
2160
|
+
}, {
|
|
2161
|
+
readonly type: "error";
|
|
2162
|
+
readonly name: "CoreWriterLib__EvmAmountTooSmall";
|
|
2163
|
+
readonly inputs: readonly [{
|
|
2164
|
+
readonly name: "amount";
|
|
2165
|
+
readonly type: "uint256";
|
|
2166
|
+
readonly internalType: "uint256";
|
|
2167
|
+
}];
|
|
2168
|
+
}, {
|
|
2169
|
+
readonly type: "error";
|
|
2170
|
+
readonly name: "CoreWriterLib__HypeTransferFailed";
|
|
2171
|
+
readonly inputs: readonly [];
|
|
2172
|
+
}, {
|
|
2173
|
+
readonly type: "error";
|
|
2174
|
+
readonly name: "DivisionByZero";
|
|
2175
|
+
readonly inputs: readonly [];
|
|
2176
|
+
}, {
|
|
2177
|
+
readonly type: "error";
|
|
2178
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
2179
|
+
readonly inputs: readonly [{
|
|
2180
|
+
readonly name: "spender";
|
|
2181
|
+
readonly type: "address";
|
|
2182
|
+
readonly internalType: "address";
|
|
2183
|
+
}, {
|
|
2184
|
+
readonly name: "allowance";
|
|
2185
|
+
readonly type: "uint256";
|
|
2186
|
+
readonly internalType: "uint256";
|
|
2187
|
+
}, {
|
|
2188
|
+
readonly name: "needed";
|
|
2189
|
+
readonly type: "uint256";
|
|
2190
|
+
readonly internalType: "uint256";
|
|
2191
|
+
}];
|
|
2192
|
+
}, {
|
|
2193
|
+
readonly type: "error";
|
|
2194
|
+
readonly name: "ERC20InsufficientBalance";
|
|
2195
|
+
readonly inputs: readonly [{
|
|
2196
|
+
readonly name: "sender";
|
|
2197
|
+
readonly type: "address";
|
|
2198
|
+
readonly internalType: "address";
|
|
2199
|
+
}, {
|
|
2200
|
+
readonly name: "balance";
|
|
2201
|
+
readonly type: "uint256";
|
|
2202
|
+
readonly internalType: "uint256";
|
|
2203
|
+
}, {
|
|
2204
|
+
readonly name: "needed";
|
|
2205
|
+
readonly type: "uint256";
|
|
2206
|
+
readonly internalType: "uint256";
|
|
2207
|
+
}];
|
|
2208
|
+
}, {
|
|
2209
|
+
readonly type: "error";
|
|
2210
|
+
readonly name: "ERC20InvalidApprover";
|
|
2211
|
+
readonly inputs: readonly [{
|
|
2212
|
+
readonly name: "approver";
|
|
2213
|
+
readonly type: "address";
|
|
2214
|
+
readonly internalType: "address";
|
|
2215
|
+
}];
|
|
2216
|
+
}, {
|
|
2217
|
+
readonly type: "error";
|
|
2218
|
+
readonly name: "ERC20InvalidReceiver";
|
|
2219
|
+
readonly inputs: readonly [{
|
|
2220
|
+
readonly name: "receiver";
|
|
2221
|
+
readonly type: "address";
|
|
2222
|
+
readonly internalType: "address";
|
|
2223
|
+
}];
|
|
2224
|
+
}, {
|
|
2225
|
+
readonly type: "error";
|
|
2226
|
+
readonly name: "ERC20InvalidSender";
|
|
2227
|
+
readonly inputs: readonly [{
|
|
2228
|
+
readonly name: "sender";
|
|
2229
|
+
readonly type: "address";
|
|
2230
|
+
readonly internalType: "address";
|
|
2231
|
+
}];
|
|
2232
|
+
}, {
|
|
2233
|
+
readonly type: "error";
|
|
2234
|
+
readonly name: "ERC20InvalidSpender";
|
|
2235
|
+
readonly inputs: readonly [{
|
|
2236
|
+
readonly name: "spender";
|
|
2237
|
+
readonly type: "address";
|
|
2238
|
+
readonly internalType: "address";
|
|
2239
|
+
}];
|
|
2240
|
+
}, {
|
|
2241
|
+
readonly type: "error";
|
|
2242
|
+
readonly name: "HLConversions__InvalidToken";
|
|
2243
|
+
readonly inputs: readonly [{
|
|
2244
|
+
readonly name: "token";
|
|
2245
|
+
readonly type: "uint64";
|
|
2246
|
+
readonly internalType: "uint64";
|
|
2247
|
+
}];
|
|
2248
|
+
}, {
|
|
2249
|
+
readonly type: "error";
|
|
2250
|
+
readonly name: "InsufficientBalance";
|
|
2251
|
+
readonly inputs: readonly [];
|
|
2252
|
+
}, {
|
|
2253
|
+
readonly type: "error";
|
|
2254
|
+
readonly name: "InvalidAddress";
|
|
2255
|
+
readonly inputs: readonly [];
|
|
2256
|
+
}, {
|
|
2257
|
+
readonly type: "error";
|
|
2258
|
+
readonly name: "InvalidAgentSlot";
|
|
2259
|
+
readonly inputs: readonly [];
|
|
2260
|
+
}, {
|
|
2261
|
+
readonly type: "error";
|
|
2262
|
+
readonly name: "InvalidAmount";
|
|
2263
|
+
readonly inputs: readonly [];
|
|
2264
|
+
}, {
|
|
2265
|
+
readonly type: "error";
|
|
2266
|
+
readonly name: "InvalidInitialization";
|
|
2267
|
+
readonly inputs: readonly [];
|
|
2268
|
+
}, {
|
|
2269
|
+
readonly type: "error";
|
|
2270
|
+
readonly name: "LeveragedTokenNotActivated";
|
|
2271
|
+
readonly inputs: readonly [];
|
|
2272
|
+
}, {
|
|
2273
|
+
readonly type: "error";
|
|
2274
|
+
readonly name: "MintPaused";
|
|
2275
|
+
readonly inputs: readonly [];
|
|
2276
|
+
}, {
|
|
2277
|
+
readonly type: "error";
|
|
2278
|
+
readonly name: "NotAgent";
|
|
2279
|
+
readonly inputs: readonly [];
|
|
2280
|
+
}, {
|
|
2281
|
+
readonly type: "error";
|
|
2282
|
+
readonly name: "NotExecutor";
|
|
2283
|
+
readonly inputs: readonly [];
|
|
2284
|
+
}, {
|
|
2285
|
+
readonly type: "error";
|
|
2286
|
+
readonly name: "NotInitializing";
|
|
2287
|
+
readonly inputs: readonly [];
|
|
2288
|
+
}, {
|
|
2289
|
+
readonly type: "error";
|
|
2290
|
+
readonly name: "NotOwner";
|
|
2291
|
+
readonly inputs: readonly [];
|
|
2292
|
+
}, {
|
|
2293
|
+
readonly type: "error";
|
|
2294
|
+
readonly name: "NotRedeeming";
|
|
2295
|
+
readonly inputs: readonly [];
|
|
2296
|
+
}, {
|
|
2297
|
+
readonly type: "error";
|
|
2298
|
+
readonly name: "PrecompileLib__TokenInfoPrecompileFailed";
|
|
2299
|
+
readonly inputs: readonly [];
|
|
2300
|
+
}, {
|
|
2301
|
+
readonly type: "error";
|
|
2302
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
2303
|
+
readonly inputs: readonly [{
|
|
2304
|
+
readonly name: "bits";
|
|
2305
|
+
readonly type: "uint8";
|
|
2306
|
+
readonly internalType: "uint8";
|
|
2307
|
+
}, {
|
|
2308
|
+
readonly name: "value";
|
|
2309
|
+
readonly type: "uint256";
|
|
2310
|
+
readonly internalType: "uint256";
|
|
2311
|
+
}];
|
|
2312
|
+
}, {
|
|
2313
|
+
readonly type: "error";
|
|
2314
|
+
readonly name: "SafeERC20FailedOperation";
|
|
2315
|
+
readonly inputs: readonly [{
|
|
2316
|
+
readonly name: "token";
|
|
2317
|
+
readonly type: "address";
|
|
2318
|
+
readonly internalType: "address";
|
|
2319
|
+
}];
|
|
2320
|
+
}, {
|
|
2321
|
+
readonly type: "error";
|
|
2322
|
+
readonly name: "SameAsCurrent";
|
|
2323
|
+
readonly inputs: readonly [];
|
|
2324
|
+
}, {
|
|
2325
|
+
readonly type: "error";
|
|
2326
|
+
readonly name: "SlippageExceeded";
|
|
2327
|
+
readonly inputs: readonly [];
|
|
2328
|
+
}];
|
|
2329
|
+
export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
|
|
2330
|
+
readonly type: "constructor";
|
|
2331
|
+
readonly inputs: readonly [{
|
|
2332
|
+
readonly name: "globalStorage_";
|
|
2333
|
+
readonly type: "address";
|
|
2334
|
+
readonly internalType: "address";
|
|
2335
|
+
}];
|
|
2336
|
+
readonly stateMutability: "nonpayable";
|
|
2337
|
+
}, {
|
|
2338
|
+
readonly type: "function";
|
|
2339
|
+
readonly name: "getLeveragedTokenPositionData";
|
|
2340
|
+
readonly inputs: readonly [{
|
|
2341
|
+
readonly name: "leveragedTokenAddress_";
|
|
2342
|
+
readonly type: "address";
|
|
2343
|
+
readonly internalType: "address";
|
|
2344
|
+
}];
|
|
2345
|
+
readonly outputs: readonly [{
|
|
2346
|
+
readonly name: "";
|
|
2347
|
+
readonly type: "tuple";
|
|
2348
|
+
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenPositionData";
|
|
2349
|
+
readonly components: readonly [{
|
|
2350
|
+
readonly name: "leveragedToken";
|
|
2351
|
+
readonly type: "address";
|
|
2352
|
+
readonly internalType: "address";
|
|
2353
|
+
}, {
|
|
2354
|
+
readonly name: "baseAssetContractBalance";
|
|
2355
|
+
readonly type: "uint256";
|
|
2356
|
+
readonly internalType: "uint256";
|
|
2357
|
+
}, {
|
|
2358
|
+
readonly name: "baseAssetUserCredit";
|
|
2359
|
+
readonly type: "uint256";
|
|
2360
|
+
readonly internalType: "uint256";
|
|
2361
|
+
}, {
|
|
2362
|
+
readonly name: "usdcSpotBalance";
|
|
2363
|
+
readonly type: "uint256";
|
|
2364
|
+
readonly internalType: "uint256";
|
|
2365
|
+
}, {
|
|
2366
|
+
readonly name: "usdcPerpBalance";
|
|
2367
|
+
readonly type: "uint256";
|
|
2368
|
+
readonly internalType: "uint256";
|
|
2369
|
+
}, {
|
|
2370
|
+
readonly name: "usdcMargin";
|
|
2371
|
+
readonly type: "uint256";
|
|
2372
|
+
readonly internalType: "uint256";
|
|
2373
|
+
}, {
|
|
2374
|
+
readonly name: "notionalValue";
|
|
2375
|
+
readonly type: "uint256";
|
|
2376
|
+
readonly internalType: "uint256";
|
|
2377
|
+
}, {
|
|
2378
|
+
readonly name: "effectiveLeverage";
|
|
2379
|
+
readonly type: "uint256";
|
|
2380
|
+
readonly internalType: "uint256";
|
|
2381
|
+
}, {
|
|
2382
|
+
readonly name: "targetLeverage";
|
|
2383
|
+
readonly type: "uint256";
|
|
2384
|
+
readonly internalType: "uint256";
|
|
2385
|
+
}];
|
|
2386
|
+
}];
|
|
2387
|
+
readonly stateMutability: "view";
|
|
2388
|
+
}, {
|
|
2389
|
+
readonly type: "function";
|
|
2390
|
+
readonly name: "getLeveragedTokens";
|
|
2391
|
+
readonly inputs: readonly [];
|
|
2392
|
+
readonly outputs: readonly [{
|
|
2393
|
+
readonly name: "";
|
|
2394
|
+
readonly type: "tuple[]";
|
|
2395
|
+
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenData[]";
|
|
2396
|
+
readonly components: readonly [{
|
|
2397
|
+
readonly name: "leveragedToken";
|
|
2398
|
+
readonly type: "address";
|
|
2399
|
+
readonly internalType: "address";
|
|
2400
|
+
}, {
|
|
2401
|
+
readonly name: "marketId";
|
|
2402
|
+
readonly type: "uint32";
|
|
2403
|
+
readonly internalType: "uint32";
|
|
2404
|
+
}, {
|
|
2405
|
+
readonly name: "targetAsset";
|
|
2406
|
+
readonly type: "string";
|
|
2407
|
+
readonly internalType: "string";
|
|
2408
|
+
}, {
|
|
2409
|
+
readonly name: "targetLeverage";
|
|
2410
|
+
readonly type: "uint256";
|
|
2411
|
+
readonly internalType: "uint256";
|
|
2412
|
+
}, {
|
|
2413
|
+
readonly name: "isLong";
|
|
2414
|
+
readonly type: "bool";
|
|
2415
|
+
readonly internalType: "bool";
|
|
2416
|
+
}, {
|
|
2417
|
+
readonly name: "exchangeRate";
|
|
2418
|
+
readonly type: "uint256";
|
|
2419
|
+
readonly internalType: "uint256";
|
|
2420
|
+
}, {
|
|
2421
|
+
readonly name: "baseAssetBalance";
|
|
2422
|
+
readonly type: "uint256";
|
|
2423
|
+
readonly internalType: "uint256";
|
|
2424
|
+
}, {
|
|
2425
|
+
readonly name: "totalAssets";
|
|
2426
|
+
readonly type: "uint256";
|
|
2427
|
+
readonly internalType: "uint256";
|
|
2428
|
+
}, {
|
|
2429
|
+
readonly name: "userCredit";
|
|
2430
|
+
readonly type: "uint256";
|
|
2431
|
+
readonly internalType: "uint256";
|
|
2432
|
+
}, {
|
|
2433
|
+
readonly name: "credit";
|
|
2434
|
+
readonly type: "uint256";
|
|
2435
|
+
readonly internalType: "uint256";
|
|
2436
|
+
}, {
|
|
2437
|
+
readonly name: "agentData";
|
|
2438
|
+
readonly type: "tuple[3]";
|
|
2439
|
+
readonly internalType: "struct ILeveragedTokenHelper.AgentData[3]";
|
|
2440
|
+
readonly components: readonly [{
|
|
2441
|
+
readonly name: "slot";
|
|
2442
|
+
readonly type: "uint8";
|
|
2443
|
+
readonly internalType: "uint8";
|
|
2444
|
+
}, {
|
|
2445
|
+
readonly name: "agent";
|
|
2446
|
+
readonly type: "address";
|
|
2447
|
+
readonly internalType: "address";
|
|
2448
|
+
}, {
|
|
2449
|
+
readonly name: "createdAt";
|
|
2450
|
+
readonly type: "uint256";
|
|
2451
|
+
readonly internalType: "uint256";
|
|
2452
|
+
}];
|
|
2453
|
+
}, {
|
|
2454
|
+
readonly name: "balanceOf";
|
|
2455
|
+
readonly type: "uint256";
|
|
2456
|
+
readonly internalType: "uint256";
|
|
2457
|
+
}, {
|
|
2458
|
+
readonly name: "mintPaused";
|
|
2459
|
+
readonly type: "bool";
|
|
2460
|
+
readonly internalType: "bool";
|
|
2461
|
+
}];
|
|
2462
|
+
}];
|
|
2463
|
+
readonly stateMutability: "view";
|
|
2464
|
+
}, {
|
|
2465
|
+
readonly type: "function";
|
|
2466
|
+
readonly name: "getLeveragedTokens";
|
|
2467
|
+
readonly inputs: readonly [{
|
|
2468
|
+
readonly name: "user_";
|
|
2469
|
+
readonly type: "address";
|
|
2470
|
+
readonly internalType: "address";
|
|
2471
|
+
}, {
|
|
2472
|
+
readonly name: "onlyHeld_";
|
|
2473
|
+
readonly type: "bool";
|
|
2474
|
+
readonly internalType: "bool";
|
|
2475
|
+
}];
|
|
2476
|
+
readonly outputs: readonly [{
|
|
2477
|
+
readonly name: "";
|
|
2478
|
+
readonly type: "tuple[]";
|
|
2479
|
+
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenData[]";
|
|
2480
|
+
readonly components: readonly [{
|
|
2481
|
+
readonly name: "leveragedToken";
|
|
2482
|
+
readonly type: "address";
|
|
2483
|
+
readonly internalType: "address";
|
|
2484
|
+
}, {
|
|
2485
|
+
readonly name: "marketId";
|
|
2486
|
+
readonly type: "uint32";
|
|
2487
|
+
readonly internalType: "uint32";
|
|
2488
|
+
}, {
|
|
2489
|
+
readonly name: "targetAsset";
|
|
2490
|
+
readonly type: "string";
|
|
2491
|
+
readonly internalType: "string";
|
|
2492
|
+
}, {
|
|
2493
|
+
readonly name: "targetLeverage";
|
|
2494
|
+
readonly type: "uint256";
|
|
2495
|
+
readonly internalType: "uint256";
|
|
2496
|
+
}, {
|
|
2497
|
+
readonly name: "isLong";
|
|
2498
|
+
readonly type: "bool";
|
|
2499
|
+
readonly internalType: "bool";
|
|
2500
|
+
}, {
|
|
2501
|
+
readonly name: "exchangeRate";
|
|
2502
|
+
readonly type: "uint256";
|
|
2503
|
+
readonly internalType: "uint256";
|
|
2504
|
+
}, {
|
|
2505
|
+
readonly name: "baseAssetBalance";
|
|
2506
|
+
readonly type: "uint256";
|
|
2507
|
+
readonly internalType: "uint256";
|
|
2508
|
+
}, {
|
|
2509
|
+
readonly name: "totalAssets";
|
|
2510
|
+
readonly type: "uint256";
|
|
2511
|
+
readonly internalType: "uint256";
|
|
2512
|
+
}, {
|
|
2513
|
+
readonly name: "userCredit";
|
|
2514
|
+
readonly type: "uint256";
|
|
2515
|
+
readonly internalType: "uint256";
|
|
2516
|
+
}, {
|
|
2517
|
+
readonly name: "credit";
|
|
2518
|
+
readonly type: "uint256";
|
|
2519
|
+
readonly internalType: "uint256";
|
|
2520
|
+
}, {
|
|
2521
|
+
readonly name: "agentData";
|
|
2522
|
+
readonly type: "tuple[3]";
|
|
2523
|
+
readonly internalType: "struct ILeveragedTokenHelper.AgentData[3]";
|
|
2524
|
+
readonly components: readonly [{
|
|
2525
|
+
readonly name: "slot";
|
|
2526
|
+
readonly type: "uint8";
|
|
2527
|
+
readonly internalType: "uint8";
|
|
2528
|
+
}, {
|
|
2529
|
+
readonly name: "agent";
|
|
2530
|
+
readonly type: "address";
|
|
2531
|
+
readonly internalType: "address";
|
|
2532
|
+
}, {
|
|
2533
|
+
readonly name: "createdAt";
|
|
2534
|
+
readonly type: "uint256";
|
|
2535
|
+
readonly internalType: "uint256";
|
|
2536
|
+
}];
|
|
2537
|
+
}, {
|
|
2538
|
+
readonly name: "balanceOf";
|
|
2539
|
+
readonly type: "uint256";
|
|
2540
|
+
readonly internalType: "uint256";
|
|
2541
|
+
}, {
|
|
2542
|
+
readonly name: "mintPaused";
|
|
2543
|
+
readonly type: "bool";
|
|
2544
|
+
readonly internalType: "bool";
|
|
2545
|
+
}];
|
|
2546
|
+
}];
|
|
2547
|
+
readonly stateMutability: "view";
|
|
2548
|
+
}, {
|
|
2549
|
+
readonly type: "function";
|
|
2550
|
+
readonly name: "getLeveragedTokensCoreData";
|
|
2551
|
+
readonly inputs: readonly [];
|
|
2552
|
+
readonly outputs: readonly [{
|
|
2553
|
+
readonly name: "";
|
|
2554
|
+
readonly type: "tuple[]";
|
|
2555
|
+
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenCoreData[]";
|
|
2556
|
+
readonly components: readonly [{
|
|
2557
|
+
readonly name: "leveragedToken";
|
|
2558
|
+
readonly type: "address";
|
|
2559
|
+
readonly internalType: "address";
|
|
2560
|
+
}, {
|
|
2561
|
+
readonly name: "marketId";
|
|
2562
|
+
readonly type: "uint32";
|
|
2563
|
+
readonly internalType: "uint32";
|
|
2564
|
+
}, {
|
|
2565
|
+
readonly name: "targetAsset";
|
|
2566
|
+
readonly type: "string";
|
|
2567
|
+
readonly internalType: "string";
|
|
2568
|
+
}, {
|
|
2569
|
+
readonly name: "targetLeverage";
|
|
2570
|
+
readonly type: "uint256";
|
|
2571
|
+
readonly internalType: "uint256";
|
|
2572
|
+
}, {
|
|
2573
|
+
readonly name: "isLong";
|
|
2574
|
+
readonly type: "bool";
|
|
2575
|
+
readonly internalType: "bool";
|
|
2576
|
+
}, {
|
|
2577
|
+
readonly name: "baseAssetBalance";
|
|
2578
|
+
readonly type: "uint256";
|
|
2579
|
+
readonly internalType: "uint256";
|
|
2580
|
+
}, {
|
|
2581
|
+
readonly name: "credit";
|
|
2582
|
+
readonly type: "uint256";
|
|
2583
|
+
readonly internalType: "uint256";
|
|
2584
|
+
}, {
|
|
2585
|
+
readonly name: "agentData";
|
|
2586
|
+
readonly type: "tuple[3]";
|
|
2587
|
+
readonly internalType: "struct ILeveragedTokenHelper.AgentData[3]";
|
|
2588
|
+
readonly components: readonly [{
|
|
2589
|
+
readonly name: "slot";
|
|
2590
|
+
readonly type: "uint8";
|
|
2591
|
+
readonly internalType: "uint8";
|
|
2592
|
+
}, {
|
|
2593
|
+
readonly name: "agent";
|
|
2594
|
+
readonly type: "address";
|
|
2595
|
+
readonly internalType: "address";
|
|
2596
|
+
}, {
|
|
2597
|
+
readonly name: "createdAt";
|
|
2598
|
+
readonly type: "uint256";
|
|
2599
|
+
readonly internalType: "uint256";
|
|
2600
|
+
}];
|
|
2601
|
+
}, {
|
|
2602
|
+
readonly name: "mintPaused";
|
|
2603
|
+
readonly type: "bool";
|
|
2604
|
+
readonly internalType: "bool";
|
|
2605
|
+
}];
|
|
2606
|
+
}];
|
|
2607
|
+
readonly stateMutability: "view";
|
|
2608
|
+
}, {
|
|
2609
|
+
readonly type: "function";
|
|
2610
|
+
readonly name: "getLeveragedTokensSnapshot";
|
|
2611
|
+
readonly inputs: readonly [];
|
|
2612
|
+
readonly outputs: readonly [{
|
|
2613
|
+
readonly name: "";
|
|
2614
|
+
readonly type: "tuple";
|
|
2615
|
+
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokensSnapshot";
|
|
2616
|
+
readonly components: readonly [{
|
|
2617
|
+
readonly name: "blockNumber";
|
|
2618
|
+
readonly type: "uint256";
|
|
2619
|
+
readonly internalType: "uint256";
|
|
2620
|
+
}, {
|
|
2621
|
+
readonly name: "blockTimestamp";
|
|
2622
|
+
readonly type: "uint256";
|
|
2623
|
+
readonly internalType: "uint256";
|
|
2624
|
+
}, {
|
|
2625
|
+
readonly name: "tokens";
|
|
2626
|
+
readonly type: "tuple[]";
|
|
2627
|
+
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenSnapshotData[]";
|
|
2628
|
+
readonly components: readonly [{
|
|
2629
|
+
readonly name: "leveragedToken";
|
|
2630
|
+
readonly type: "address";
|
|
2631
|
+
readonly internalType: "address";
|
|
2632
|
+
}, {
|
|
2633
|
+
readonly name: "exchangeRate";
|
|
2634
|
+
readonly type: "uint256";
|
|
2635
|
+
readonly internalType: "uint256";
|
|
2636
|
+
}, {
|
|
2637
|
+
readonly name: "baseAssetContractBalance";
|
|
2638
|
+
readonly type: "uint256";
|
|
2639
|
+
readonly internalType: "uint256";
|
|
2640
|
+
}, {
|
|
2641
|
+
readonly name: "baseAssetUserCredit";
|
|
2642
|
+
readonly type: "uint256";
|
|
2643
|
+
readonly internalType: "uint256";
|
|
2644
|
+
}, {
|
|
2645
|
+
readonly name: "usdcSpotBalance";
|
|
2646
|
+
readonly type: "uint256";
|
|
2647
|
+
readonly internalType: "uint256";
|
|
2648
|
+
}, {
|
|
2649
|
+
readonly name: "usdcPerpBalance";
|
|
2650
|
+
readonly type: "uint256";
|
|
2651
|
+
readonly internalType: "uint256";
|
|
2652
|
+
}, {
|
|
2653
|
+
readonly name: "usdcMargin";
|
|
2654
|
+
readonly type: "uint256";
|
|
2655
|
+
readonly internalType: "uint256";
|
|
2656
|
+
}, {
|
|
2657
|
+
readonly name: "totalAssets";
|
|
2658
|
+
readonly type: "uint256";
|
|
2659
|
+
readonly internalType: "uint256";
|
|
2660
|
+
}, {
|
|
2661
|
+
readonly name: "notionalValue";
|
|
2662
|
+
readonly type: "uint256";
|
|
2663
|
+
readonly internalType: "uint256";
|
|
2664
|
+
}];
|
|
2665
|
+
}];
|
|
2666
|
+
}];
|
|
2667
|
+
readonly stateMutability: "view";
|
|
2668
|
+
}, {
|
|
2669
|
+
readonly type: "error";
|
|
2670
|
+
readonly name: "DivisionByZero";
|
|
2671
|
+
readonly inputs: readonly [];
|
|
2672
|
+
}];
|
|
2673
|
+
export declare const REFERRALS_ABI: readonly [{
|
|
2674
|
+
readonly type: "constructor";
|
|
2675
|
+
readonly inputs: readonly [{
|
|
2676
|
+
readonly name: "globalStorate_";
|
|
2677
|
+
readonly type: "address";
|
|
2678
|
+
readonly internalType: "address";
|
|
2679
|
+
}];
|
|
2680
|
+
readonly stateMutability: "nonpayable";
|
|
2681
|
+
}, {
|
|
2682
|
+
readonly type: "function";
|
|
2683
|
+
readonly name: "addReferrer";
|
|
2684
|
+
readonly inputs: readonly [{
|
|
2685
|
+
readonly name: "referralCode_";
|
|
2686
|
+
readonly type: "string";
|
|
2687
|
+
readonly internalType: "string";
|
|
2688
|
+
}, {
|
|
2689
|
+
readonly name: "referrer_";
|
|
2690
|
+
readonly type: "address";
|
|
2691
|
+
readonly internalType: "address";
|
|
2692
|
+
}];
|
|
2693
|
+
readonly outputs: readonly [];
|
|
2694
|
+
readonly stateMutability: "nonpayable";
|
|
2695
|
+
}, {
|
|
2696
|
+
readonly type: "function";
|
|
2697
|
+
readonly name: "claimRebates";
|
|
2698
|
+
readonly inputs: readonly [{
|
|
2699
|
+
readonly name: "user_";
|
|
2700
|
+
readonly type: "address";
|
|
2701
|
+
readonly internalType: "address";
|
|
2702
|
+
}];
|
|
2703
|
+
readonly outputs: readonly [];
|
|
2704
|
+
readonly stateMutability: "nonpayable";
|
|
2705
|
+
}, {
|
|
2706
|
+
readonly type: "function";
|
|
2707
|
+
readonly name: "donateRebates";
|
|
2708
|
+
readonly inputs: readonly [{
|
|
2709
|
+
readonly name: "user_";
|
|
2710
|
+
readonly type: "address";
|
|
2711
|
+
readonly internalType: "address";
|
|
2712
|
+
}, {
|
|
2713
|
+
readonly name: "feeAmount_";
|
|
2714
|
+
readonly type: "uint256";
|
|
2715
|
+
readonly internalType: "uint256";
|
|
2716
|
+
}];
|
|
2717
|
+
readonly outputs: readonly [{
|
|
2718
|
+
readonly name: "";
|
|
2719
|
+
readonly type: "uint256";
|
|
2720
|
+
readonly internalType: "uint256";
|
|
2721
|
+
}];
|
|
2722
|
+
readonly stateMutability: "nonpayable";
|
|
2723
|
+
}, {
|
|
2724
|
+
readonly type: "function";
|
|
2725
|
+
readonly name: "getCodeFromReferrer";
|
|
2726
|
+
readonly inputs: readonly [{
|
|
2727
|
+
readonly name: "referrer_";
|
|
2728
|
+
readonly type: "address";
|
|
2729
|
+
readonly internalType: "address";
|
|
2730
|
+
}];
|
|
2731
|
+
readonly outputs: readonly [{
|
|
2732
|
+
readonly name: "";
|
|
2733
|
+
readonly type: "string";
|
|
2734
|
+
readonly internalType: "string";
|
|
2735
|
+
}];
|
|
2736
|
+
readonly stateMutability: "view";
|
|
2737
|
+
}, {
|
|
2738
|
+
readonly type: "function";
|
|
2739
|
+
readonly name: "getCodeFromUser";
|
|
2740
|
+
readonly inputs: readonly [{
|
|
2741
|
+
readonly name: "user_";
|
|
2742
|
+
readonly type: "address";
|
|
2743
|
+
readonly internalType: "address";
|
|
2744
|
+
}];
|
|
2745
|
+
readonly outputs: readonly [{
|
|
2746
|
+
readonly name: "";
|
|
2747
|
+
readonly type: "string";
|
|
2748
|
+
readonly internalType: "string";
|
|
2749
|
+
}];
|
|
2750
|
+
readonly stateMutability: "view";
|
|
2751
|
+
}, {
|
|
2752
|
+
readonly type: "function";
|
|
2753
|
+
readonly name: "getRebate";
|
|
2754
|
+
readonly inputs: readonly [{
|
|
2755
|
+
readonly name: "user_";
|
|
2756
|
+
readonly type: "address";
|
|
2757
|
+
readonly internalType: "address";
|
|
2758
|
+
}];
|
|
2759
|
+
readonly outputs: readonly [{
|
|
2760
|
+
readonly name: "";
|
|
2761
|
+
readonly type: "uint256";
|
|
2762
|
+
readonly internalType: "uint256";
|
|
2763
|
+
}];
|
|
2764
|
+
readonly stateMutability: "view";
|
|
2765
|
+
}, {
|
|
2766
|
+
readonly type: "function";
|
|
2767
|
+
readonly name: "getReferrerFromCode";
|
|
2768
|
+
readonly inputs: readonly [{
|
|
2769
|
+
readonly name: "referralCode_";
|
|
2770
|
+
readonly type: "string";
|
|
2771
|
+
readonly internalType: "string";
|
|
2772
|
+
}];
|
|
2773
|
+
readonly outputs: readonly [{
|
|
2774
|
+
readonly name: "";
|
|
2775
|
+
readonly type: "address";
|
|
2776
|
+
readonly internalType: "address";
|
|
2777
|
+
}];
|
|
2778
|
+
readonly stateMutability: "view";
|
|
2779
|
+
}, {
|
|
2780
|
+
readonly type: "function";
|
|
2781
|
+
readonly name: "getReferrerFromUser";
|
|
2782
|
+
readonly inputs: readonly [{
|
|
2783
|
+
readonly name: "user_";
|
|
2784
|
+
readonly type: "address";
|
|
2785
|
+
readonly internalType: "address";
|
|
2786
|
+
}];
|
|
2787
|
+
readonly outputs: readonly [{
|
|
2788
|
+
readonly name: "";
|
|
2789
|
+
readonly type: "address";
|
|
2790
|
+
readonly internalType: "address";
|
|
2791
|
+
}];
|
|
2792
|
+
readonly stateMutability: "view";
|
|
2793
|
+
}, {
|
|
2794
|
+
readonly type: "function";
|
|
2795
|
+
readonly name: "isJoined";
|
|
2796
|
+
readonly inputs: readonly [{
|
|
2797
|
+
readonly name: "user_";
|
|
2798
|
+
readonly type: "address";
|
|
2799
|
+
readonly internalType: "address";
|
|
2800
|
+
}];
|
|
2801
|
+
readonly outputs: readonly [{
|
|
2802
|
+
readonly name: "";
|
|
2803
|
+
readonly type: "bool";
|
|
2804
|
+
readonly internalType: "bool";
|
|
2805
|
+
}];
|
|
2806
|
+
readonly stateMutability: "view";
|
|
2807
|
+
}, {
|
|
2808
|
+
readonly type: "function";
|
|
2809
|
+
readonly name: "isReferrer";
|
|
2810
|
+
readonly inputs: readonly [{
|
|
2811
|
+
readonly name: "referrer_";
|
|
2812
|
+
readonly type: "address";
|
|
2813
|
+
readonly internalType: "address";
|
|
2814
|
+
}];
|
|
2815
|
+
readonly outputs: readonly [{
|
|
2816
|
+
readonly name: "";
|
|
2817
|
+
readonly type: "bool";
|
|
2818
|
+
readonly internalType: "bool";
|
|
2819
|
+
}];
|
|
2820
|
+
readonly stateMutability: "view";
|
|
2821
|
+
}, {
|
|
2822
|
+
readonly type: "function";
|
|
2823
|
+
readonly name: "isValidCode";
|
|
2824
|
+
readonly inputs: readonly [{
|
|
2825
|
+
readonly name: "referralCode_";
|
|
2826
|
+
readonly type: "string";
|
|
2827
|
+
readonly internalType: "string";
|
|
2828
|
+
}];
|
|
2829
|
+
readonly outputs: readonly [{
|
|
2830
|
+
readonly name: "";
|
|
2831
|
+
readonly type: "bool";
|
|
2832
|
+
readonly internalType: "bool";
|
|
2833
|
+
}];
|
|
2834
|
+
readonly stateMutability: "view";
|
|
2835
|
+
}, {
|
|
2836
|
+
readonly type: "function";
|
|
2837
|
+
readonly name: "joinWithReferral";
|
|
2838
|
+
readonly inputs: readonly [{
|
|
2839
|
+
readonly name: "referralCode_";
|
|
2840
|
+
readonly type: "string";
|
|
2841
|
+
readonly internalType: "string";
|
|
2842
|
+
}];
|
|
2843
|
+
readonly outputs: readonly [];
|
|
2844
|
+
readonly stateMutability: "nonpayable";
|
|
2845
|
+
}, {
|
|
2846
|
+
readonly type: "function";
|
|
2847
|
+
readonly name: "removeReferrer";
|
|
2848
|
+
readonly inputs: readonly [{
|
|
2849
|
+
readonly name: "referralCode_";
|
|
2850
|
+
readonly type: "string";
|
|
2851
|
+
readonly internalType: "string";
|
|
2852
|
+
}];
|
|
2853
|
+
readonly outputs: readonly [];
|
|
2854
|
+
readonly stateMutability: "nonpayable";
|
|
2855
|
+
}, {
|
|
2856
|
+
readonly type: "event";
|
|
2857
|
+
readonly name: "AddReferrer";
|
|
2858
|
+
readonly inputs: readonly [{
|
|
2859
|
+
readonly name: "referrer";
|
|
2860
|
+
readonly type: "address";
|
|
2861
|
+
readonly indexed: true;
|
|
2862
|
+
readonly internalType: "address";
|
|
2863
|
+
}, {
|
|
2864
|
+
readonly name: "referralCode";
|
|
2865
|
+
readonly type: "string";
|
|
2866
|
+
readonly indexed: false;
|
|
2867
|
+
readonly internalType: "string";
|
|
2868
|
+
}];
|
|
2869
|
+
readonly anonymous: false;
|
|
2870
|
+
}, {
|
|
2871
|
+
readonly type: "event";
|
|
2872
|
+
readonly name: "ClaimRebate";
|
|
2873
|
+
readonly inputs: readonly [{
|
|
2874
|
+
readonly name: "sender";
|
|
2875
|
+
readonly type: "address";
|
|
2876
|
+
readonly indexed: true;
|
|
2877
|
+
readonly internalType: "address";
|
|
2878
|
+
}, {
|
|
2879
|
+
readonly name: "to";
|
|
2880
|
+
readonly type: "address";
|
|
2881
|
+
readonly indexed: true;
|
|
2882
|
+
readonly internalType: "address";
|
|
2883
|
+
}, {
|
|
2884
|
+
readonly name: "rebate";
|
|
2885
|
+
readonly type: "uint256";
|
|
2886
|
+
readonly indexed: false;
|
|
2887
|
+
readonly internalType: "uint256";
|
|
2888
|
+
}];
|
|
2889
|
+
readonly anonymous: false;
|
|
2890
|
+
}, {
|
|
2891
|
+
readonly type: "event";
|
|
2892
|
+
readonly name: "DonateRebate";
|
|
2893
|
+
readonly inputs: readonly [{
|
|
2894
|
+
readonly name: "sender";
|
|
2895
|
+
readonly type: "address";
|
|
2896
|
+
readonly indexed: true;
|
|
2897
|
+
readonly internalType: "address";
|
|
2898
|
+
}, {
|
|
2899
|
+
readonly name: "to";
|
|
2900
|
+
readonly type: "address";
|
|
2901
|
+
readonly indexed: true;
|
|
2902
|
+
readonly internalType: "address";
|
|
2903
|
+
}, {
|
|
2904
|
+
readonly name: "feeAmount";
|
|
2905
|
+
readonly type: "uint256";
|
|
2906
|
+
readonly indexed: false;
|
|
2907
|
+
readonly internalType: "uint256";
|
|
2908
|
+
}, {
|
|
2909
|
+
readonly name: "referrerRebate";
|
|
2910
|
+
readonly type: "uint256";
|
|
2911
|
+
readonly indexed: false;
|
|
2912
|
+
readonly internalType: "uint256";
|
|
2913
|
+
}, {
|
|
2914
|
+
readonly name: "refereeRebate";
|
|
2915
|
+
readonly type: "uint256";
|
|
2916
|
+
readonly indexed: false;
|
|
2917
|
+
readonly internalType: "uint256";
|
|
2918
|
+
}];
|
|
2919
|
+
readonly anonymous: false;
|
|
2920
|
+
}, {
|
|
2921
|
+
readonly type: "event";
|
|
2922
|
+
readonly name: "JoinWithReferral";
|
|
2923
|
+
readonly inputs: readonly [{
|
|
2924
|
+
readonly name: "referee";
|
|
2925
|
+
readonly type: "address";
|
|
2926
|
+
readonly indexed: true;
|
|
2927
|
+
readonly internalType: "address";
|
|
2928
|
+
}, {
|
|
2929
|
+
readonly name: "referrer";
|
|
2930
|
+
readonly type: "address";
|
|
2931
|
+
readonly indexed: true;
|
|
2932
|
+
readonly internalType: "address";
|
|
2933
|
+
}, {
|
|
2934
|
+
readonly name: "referralCode";
|
|
2935
|
+
readonly type: "string";
|
|
2936
|
+
readonly indexed: false;
|
|
2937
|
+
readonly internalType: "string";
|
|
2938
|
+
}];
|
|
2939
|
+
readonly anonymous: false;
|
|
2940
|
+
}, {
|
|
2941
|
+
readonly type: "event";
|
|
2942
|
+
readonly name: "RemoveReferrer";
|
|
2943
|
+
readonly inputs: readonly [{
|
|
2944
|
+
readonly name: "referrer";
|
|
2945
|
+
readonly type: "address";
|
|
2946
|
+
readonly indexed: true;
|
|
2947
|
+
readonly internalType: "address";
|
|
2948
|
+
}, {
|
|
2949
|
+
readonly name: "referralCode";
|
|
2950
|
+
readonly type: "string";
|
|
2951
|
+
readonly indexed: false;
|
|
2952
|
+
readonly internalType: "string";
|
|
2953
|
+
}];
|
|
2954
|
+
readonly anonymous: false;
|
|
2955
|
+
}, {
|
|
2956
|
+
readonly type: "error";
|
|
2957
|
+
readonly name: "CodeAlreadyExists";
|
|
2958
|
+
readonly inputs: readonly [];
|
|
2959
|
+
}, {
|
|
2960
|
+
readonly type: "error";
|
|
2961
|
+
readonly name: "CodeDoesNotExist";
|
|
2962
|
+
readonly inputs: readonly [];
|
|
2963
|
+
}, {
|
|
2964
|
+
readonly type: "error";
|
|
2965
|
+
readonly name: "InvalidReferralCode";
|
|
2966
|
+
readonly inputs: readonly [];
|
|
2967
|
+
}, {
|
|
2968
|
+
readonly type: "error";
|
|
2969
|
+
readonly name: "InvalidReferrer";
|
|
2970
|
+
readonly inputs: readonly [];
|
|
2971
|
+
}, {
|
|
2972
|
+
readonly type: "error";
|
|
2973
|
+
readonly name: "NoRebate";
|
|
2974
|
+
readonly inputs: readonly [];
|
|
2975
|
+
}, {
|
|
2976
|
+
readonly type: "error";
|
|
2977
|
+
readonly name: "NotOwner";
|
|
2978
|
+
readonly inputs: readonly [];
|
|
2979
|
+
}, {
|
|
2980
|
+
readonly type: "error";
|
|
2981
|
+
readonly name: "SafeERC20FailedOperation";
|
|
2982
|
+
readonly inputs: readonly [{
|
|
2983
|
+
readonly name: "token";
|
|
2984
|
+
readonly type: "address";
|
|
2985
|
+
readonly internalType: "address";
|
|
2986
|
+
}];
|
|
2987
|
+
}, {
|
|
2988
|
+
readonly type: "error";
|
|
2989
|
+
readonly name: "UserAlreadyJoined";
|
|
2990
|
+
readonly inputs: readonly [];
|
|
2991
|
+
}, {
|
|
2992
|
+
readonly type: "error";
|
|
2993
|
+
readonly name: "UserAlreadyReferrer";
|
|
2994
|
+
readonly inputs: readonly [];
|
|
2995
|
+
}];
|
|
2996
|
+
export declare const USDC_ABI: readonly [{
|
|
2997
|
+
readonly type: "function";
|
|
2998
|
+
readonly name: "allowance";
|
|
2999
|
+
readonly inputs: readonly [{
|
|
3000
|
+
readonly name: "owner";
|
|
3001
|
+
readonly type: "address";
|
|
3002
|
+
readonly internalType: "address";
|
|
3003
|
+
}, {
|
|
3004
|
+
readonly name: "spender";
|
|
3005
|
+
readonly type: "address";
|
|
3006
|
+
readonly internalType: "address";
|
|
3007
|
+
}];
|
|
3008
|
+
readonly outputs: readonly [{
|
|
3009
|
+
readonly name: "";
|
|
3010
|
+
readonly type: "uint256";
|
|
3011
|
+
readonly internalType: "uint256";
|
|
3012
|
+
}];
|
|
3013
|
+
readonly stateMutability: "view";
|
|
3014
|
+
}, {
|
|
3015
|
+
readonly type: "function";
|
|
3016
|
+
readonly name: "approve";
|
|
3017
|
+
readonly inputs: readonly [{
|
|
3018
|
+
readonly name: "spender";
|
|
3019
|
+
readonly type: "address";
|
|
3020
|
+
readonly internalType: "address";
|
|
3021
|
+
}, {
|
|
3022
|
+
readonly name: "value";
|
|
3023
|
+
readonly type: "uint256";
|
|
3024
|
+
readonly internalType: "uint256";
|
|
3025
|
+
}];
|
|
3026
|
+
readonly outputs: readonly [{
|
|
3027
|
+
readonly name: "";
|
|
3028
|
+
readonly type: "bool";
|
|
3029
|
+
readonly internalType: "bool";
|
|
3030
|
+
}];
|
|
3031
|
+
readonly stateMutability: "nonpayable";
|
|
3032
|
+
}, {
|
|
3033
|
+
readonly type: "function";
|
|
3034
|
+
readonly name: "balanceOf";
|
|
3035
|
+
readonly inputs: readonly [{
|
|
3036
|
+
readonly name: "account";
|
|
3037
|
+
readonly type: "address";
|
|
3038
|
+
readonly internalType: "address";
|
|
3039
|
+
}];
|
|
3040
|
+
readonly outputs: readonly [{
|
|
3041
|
+
readonly name: "";
|
|
3042
|
+
readonly type: "uint256";
|
|
3043
|
+
readonly internalType: "uint256";
|
|
3044
|
+
}];
|
|
3045
|
+
readonly stateMutability: "view";
|
|
3046
|
+
}, {
|
|
3047
|
+
readonly type: "function";
|
|
3048
|
+
readonly name: "decimals";
|
|
3049
|
+
readonly inputs: readonly [];
|
|
3050
|
+
readonly outputs: readonly [{
|
|
3051
|
+
readonly name: "";
|
|
3052
|
+
readonly type: "uint8";
|
|
3053
|
+
readonly internalType: "uint8";
|
|
3054
|
+
}];
|
|
3055
|
+
readonly stateMutability: "view";
|
|
3056
|
+
}, {
|
|
3057
|
+
readonly type: "function";
|
|
3058
|
+
readonly name: "name";
|
|
3059
|
+
readonly inputs: readonly [];
|
|
3060
|
+
readonly outputs: readonly [{
|
|
3061
|
+
readonly name: "";
|
|
3062
|
+
readonly type: "string";
|
|
3063
|
+
readonly internalType: "string";
|
|
3064
|
+
}];
|
|
3065
|
+
readonly stateMutability: "view";
|
|
3066
|
+
}, {
|
|
3067
|
+
readonly type: "function";
|
|
3068
|
+
readonly name: "symbol";
|
|
3069
|
+
readonly inputs: readonly [];
|
|
3070
|
+
readonly outputs: readonly [{
|
|
3071
|
+
readonly name: "";
|
|
3072
|
+
readonly type: "string";
|
|
3073
|
+
readonly internalType: "string";
|
|
3074
|
+
}];
|
|
3075
|
+
readonly stateMutability: "view";
|
|
3076
|
+
}, {
|
|
3077
|
+
readonly type: "function";
|
|
3078
|
+
readonly name: "totalSupply";
|
|
3079
|
+
readonly inputs: readonly [];
|
|
3080
|
+
readonly outputs: readonly [{
|
|
3081
|
+
readonly name: "";
|
|
3082
|
+
readonly type: "uint256";
|
|
3083
|
+
readonly internalType: "uint256";
|
|
3084
|
+
}];
|
|
3085
|
+
readonly stateMutability: "view";
|
|
3086
|
+
}, {
|
|
3087
|
+
readonly type: "function";
|
|
3088
|
+
readonly name: "transfer";
|
|
3089
|
+
readonly inputs: readonly [{
|
|
3090
|
+
readonly name: "to";
|
|
3091
|
+
readonly type: "address";
|
|
3092
|
+
readonly internalType: "address";
|
|
3093
|
+
}, {
|
|
3094
|
+
readonly name: "value";
|
|
3095
|
+
readonly type: "uint256";
|
|
3096
|
+
readonly internalType: "uint256";
|
|
3097
|
+
}];
|
|
3098
|
+
readonly outputs: readonly [{
|
|
3099
|
+
readonly name: "";
|
|
3100
|
+
readonly type: "bool";
|
|
3101
|
+
readonly internalType: "bool";
|
|
3102
|
+
}];
|
|
3103
|
+
readonly stateMutability: "nonpayable";
|
|
3104
|
+
}, {
|
|
3105
|
+
readonly type: "function";
|
|
3106
|
+
readonly name: "transferFrom";
|
|
3107
|
+
readonly inputs: readonly [{
|
|
3108
|
+
readonly name: "from";
|
|
3109
|
+
readonly type: "address";
|
|
3110
|
+
readonly internalType: "address";
|
|
3111
|
+
}, {
|
|
3112
|
+
readonly name: "to";
|
|
3113
|
+
readonly type: "address";
|
|
3114
|
+
readonly internalType: "address";
|
|
3115
|
+
}, {
|
|
3116
|
+
readonly name: "value";
|
|
3117
|
+
readonly type: "uint256";
|
|
3118
|
+
readonly internalType: "uint256";
|
|
3119
|
+
}];
|
|
3120
|
+
readonly outputs: readonly [{
|
|
3121
|
+
readonly name: "";
|
|
3122
|
+
readonly type: "bool";
|
|
3123
|
+
readonly internalType: "bool";
|
|
3124
|
+
}];
|
|
3125
|
+
readonly stateMutability: "nonpayable";
|
|
3126
|
+
}, {
|
|
3127
|
+
readonly type: "event";
|
|
3128
|
+
readonly name: "Approval";
|
|
3129
|
+
readonly inputs: readonly [{
|
|
3130
|
+
readonly name: "owner";
|
|
3131
|
+
readonly type: "address";
|
|
3132
|
+
readonly indexed: true;
|
|
3133
|
+
readonly internalType: "address";
|
|
3134
|
+
}, {
|
|
3135
|
+
readonly name: "spender";
|
|
3136
|
+
readonly type: "address";
|
|
3137
|
+
readonly indexed: true;
|
|
3138
|
+
readonly internalType: "address";
|
|
3139
|
+
}, {
|
|
3140
|
+
readonly name: "value";
|
|
3141
|
+
readonly type: "uint256";
|
|
3142
|
+
readonly indexed: false;
|
|
3143
|
+
readonly internalType: "uint256";
|
|
3144
|
+
}];
|
|
3145
|
+
readonly anonymous: false;
|
|
3146
|
+
}, {
|
|
3147
|
+
readonly type: "event";
|
|
3148
|
+
readonly name: "Transfer";
|
|
3149
|
+
readonly inputs: readonly [{
|
|
3150
|
+
readonly name: "from";
|
|
3151
|
+
readonly type: "address";
|
|
3152
|
+
readonly indexed: true;
|
|
3153
|
+
readonly internalType: "address";
|
|
3154
|
+
}, {
|
|
3155
|
+
readonly name: "to";
|
|
3156
|
+
readonly type: "address";
|
|
3157
|
+
readonly indexed: true;
|
|
3158
|
+
readonly internalType: "address";
|
|
3159
|
+
}, {
|
|
3160
|
+
readonly name: "value";
|
|
3161
|
+
readonly type: "uint256";
|
|
3162
|
+
readonly indexed: false;
|
|
3163
|
+
readonly internalType: "uint256";
|
|
3164
|
+
}];
|
|
3165
|
+
readonly anonymous: false;
|
|
3166
|
+
}];
|