@bouncetech/contracts 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,353 +8,93 @@ export declare const globalStorageHelperAbi: readonly [{
|
|
|
8
8
|
readonly stateMutability: "nonpayable";
|
|
9
9
|
}, {
|
|
10
10
|
readonly type: "function";
|
|
11
|
-
readonly name: "
|
|
12
|
-
readonly inputs: readonly [
|
|
13
|
-
readonly name: "leveragedTokenAddress_";
|
|
14
|
-
readonly type: "address";
|
|
15
|
-
readonly internalType: "address";
|
|
16
|
-
}];
|
|
11
|
+
readonly name: "getGlobalStorageData";
|
|
12
|
+
readonly inputs: readonly [];
|
|
17
13
|
readonly outputs: readonly [{
|
|
18
14
|
readonly name: "";
|
|
19
15
|
readonly type: "tuple";
|
|
20
|
-
readonly internalType: "struct
|
|
16
|
+
readonly internalType: "struct IGlobalStorageHelper.GlobalStorageData";
|
|
21
17
|
readonly components: readonly [{
|
|
22
|
-
readonly name: "
|
|
18
|
+
readonly name: "owner";
|
|
23
19
|
readonly type: "address";
|
|
24
20
|
readonly internalType: "address";
|
|
25
21
|
}, {
|
|
26
|
-
readonly name: "
|
|
27
|
-
readonly type: "uint256";
|
|
28
|
-
readonly internalType: "uint256";
|
|
29
|
-
}, {
|
|
30
|
-
readonly name: "baseAssetUserCredit";
|
|
31
|
-
readonly type: "uint256";
|
|
32
|
-
readonly internalType: "uint256";
|
|
33
|
-
}, {
|
|
34
|
-
readonly name: "usdcSpotBalance";
|
|
35
|
-
readonly type: "uint256";
|
|
36
|
-
readonly internalType: "uint256";
|
|
37
|
-
}, {
|
|
38
|
-
readonly name: "usdcPerpBalance";
|
|
39
|
-
readonly type: "uint256";
|
|
40
|
-
readonly internalType: "uint256";
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "usdcMargin";
|
|
43
|
-
readonly type: "uint256";
|
|
44
|
-
readonly internalType: "uint256";
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: "notionalValue";
|
|
47
|
-
readonly type: "uint256";
|
|
48
|
-
readonly internalType: "uint256";
|
|
49
|
-
}, {
|
|
50
|
-
readonly name: "effectiveLeverage";
|
|
51
|
-
readonly type: "uint256";
|
|
52
|
-
readonly internalType: "uint256";
|
|
53
|
-
}, {
|
|
54
|
-
readonly name: "targetLeverage";
|
|
55
|
-
readonly type: "uint256";
|
|
56
|
-
readonly internalType: "uint256";
|
|
57
|
-
}];
|
|
58
|
-
}];
|
|
59
|
-
readonly stateMutability: "view";
|
|
60
|
-
}, {
|
|
61
|
-
readonly type: "function";
|
|
62
|
-
readonly name: "getLeveragedTokens";
|
|
63
|
-
readonly inputs: readonly [];
|
|
64
|
-
readonly outputs: readonly [{
|
|
65
|
-
readonly name: "";
|
|
66
|
-
readonly type: "tuple[]";
|
|
67
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenData[]";
|
|
68
|
-
readonly components: readonly [{
|
|
69
|
-
readonly name: "leveragedToken";
|
|
22
|
+
readonly name: "ltImplementation";
|
|
70
23
|
readonly type: "address";
|
|
71
24
|
readonly internalType: "address";
|
|
72
25
|
}, {
|
|
73
|
-
readonly name: "
|
|
74
|
-
readonly type: "
|
|
75
|
-
readonly internalType: "
|
|
76
|
-
}, {
|
|
77
|
-
readonly name: "targetAsset";
|
|
78
|
-
readonly type: "string";
|
|
79
|
-
readonly internalType: "string";
|
|
80
|
-
}, {
|
|
81
|
-
readonly name: "targetLeverage";
|
|
82
|
-
readonly type: "uint256";
|
|
83
|
-
readonly internalType: "uint256";
|
|
84
|
-
}, {
|
|
85
|
-
readonly name: "isLong";
|
|
86
|
-
readonly type: "bool";
|
|
87
|
-
readonly internalType: "bool";
|
|
88
|
-
}, {
|
|
89
|
-
readonly name: "exchangeRate";
|
|
90
|
-
readonly type: "uint256";
|
|
91
|
-
readonly internalType: "uint256";
|
|
92
|
-
}, {
|
|
93
|
-
readonly name: "baseAssetBalance";
|
|
94
|
-
readonly type: "uint256";
|
|
95
|
-
readonly internalType: "uint256";
|
|
96
|
-
}, {
|
|
97
|
-
readonly name: "totalAssets";
|
|
98
|
-
readonly type: "uint256";
|
|
99
|
-
readonly internalType: "uint256";
|
|
100
|
-
}, {
|
|
101
|
-
readonly name: "userCredit";
|
|
102
|
-
readonly type: "uint256";
|
|
103
|
-
readonly internalType: "uint256";
|
|
104
|
-
}, {
|
|
105
|
-
readonly name: "credit";
|
|
106
|
-
readonly type: "uint256";
|
|
107
|
-
readonly internalType: "uint256";
|
|
108
|
-
}, {
|
|
109
|
-
readonly name: "agentData";
|
|
110
|
-
readonly type: "tuple[3]";
|
|
111
|
-
readonly internalType: "struct ILeveragedTokenHelper.AgentData[3]";
|
|
112
|
-
readonly components: readonly [{
|
|
113
|
-
readonly name: "slot";
|
|
114
|
-
readonly type: "uint8";
|
|
115
|
-
readonly internalType: "uint8";
|
|
116
|
-
}, {
|
|
117
|
-
readonly name: "agent";
|
|
118
|
-
readonly type: "address";
|
|
119
|
-
readonly internalType: "address";
|
|
120
|
-
}, {
|
|
121
|
-
readonly name: "createdAt";
|
|
122
|
-
readonly type: "uint256";
|
|
123
|
-
readonly internalType: "uint256";
|
|
124
|
-
}];
|
|
125
|
-
}, {
|
|
126
|
-
readonly name: "balanceOf";
|
|
127
|
-
readonly type: "uint256";
|
|
128
|
-
readonly internalType: "uint256";
|
|
26
|
+
readonly name: "baseAsset";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
readonly internalType: "address";
|
|
129
29
|
}, {
|
|
130
|
-
readonly name: "
|
|
131
|
-
readonly type: "
|
|
132
|
-
readonly internalType: "
|
|
30
|
+
readonly name: "treasury";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
readonly internalType: "address";
|
|
133
33
|
}, {
|
|
134
|
-
readonly name: "
|
|
135
|
-
readonly type: "bool";
|
|
136
|
-
readonly internalType: "bool";
|
|
137
|
-
}];
|
|
138
|
-
}];
|
|
139
|
-
readonly stateMutability: "view";
|
|
140
|
-
}, {
|
|
141
|
-
readonly type: "function";
|
|
142
|
-
readonly name: "getLeveragedTokens";
|
|
143
|
-
readonly inputs: readonly [{
|
|
144
|
-
readonly name: "user_";
|
|
145
|
-
readonly type: "address";
|
|
146
|
-
readonly internalType: "address";
|
|
147
|
-
}, {
|
|
148
|
-
readonly name: "onlyHeld_";
|
|
149
|
-
readonly type: "bool";
|
|
150
|
-
readonly internalType: "bool";
|
|
151
|
-
}];
|
|
152
|
-
readonly outputs: readonly [{
|
|
153
|
-
readonly name: "";
|
|
154
|
-
readonly type: "tuple[]";
|
|
155
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenData[]";
|
|
156
|
-
readonly components: readonly [{
|
|
157
|
-
readonly name: "leveragedToken";
|
|
34
|
+
readonly name: "factory";
|
|
158
35
|
readonly type: "address";
|
|
159
36
|
readonly internalType: "address";
|
|
160
37
|
}, {
|
|
161
|
-
readonly name: "
|
|
162
|
-
readonly type: "
|
|
163
|
-
readonly internalType: "
|
|
38
|
+
readonly name: "hyperliquidHandler";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
readonly internalType: "address";
|
|
164
41
|
}, {
|
|
165
|
-
readonly name: "
|
|
166
|
-
readonly type: "
|
|
167
|
-
readonly internalType: "
|
|
42
|
+
readonly name: "feeHandler";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
readonly internalType: "address";
|
|
168
45
|
}, {
|
|
169
|
-
readonly name: "
|
|
170
|
-
readonly type: "
|
|
171
|
-
readonly internalType: "
|
|
46
|
+
readonly name: "bounce";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
readonly internalType: "address";
|
|
172
49
|
}, {
|
|
173
|
-
readonly name: "
|
|
50
|
+
readonly name: "allMintsPaused";
|
|
174
51
|
readonly type: "bool";
|
|
175
52
|
readonly internalType: "bool";
|
|
176
53
|
}, {
|
|
177
|
-
readonly name: "
|
|
178
|
-
readonly type: "
|
|
179
|
-
readonly internalType: "
|
|
54
|
+
readonly name: "vesting";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
readonly internalType: "address";
|
|
180
57
|
}, {
|
|
181
|
-
readonly name: "
|
|
182
|
-
readonly type: "
|
|
183
|
-
readonly internalType: "
|
|
58
|
+
readonly name: "airdrop";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
readonly internalType: "address";
|
|
184
61
|
}, {
|
|
185
|
-
readonly name: "
|
|
186
|
-
readonly type: "
|
|
187
|
-
readonly internalType: "
|
|
62
|
+
readonly name: "referrals";
|
|
63
|
+
readonly type: "address";
|
|
64
|
+
readonly internalType: "address";
|
|
188
65
|
}, {
|
|
189
|
-
readonly name: "
|
|
66
|
+
readonly name: "minTransactionSize";
|
|
190
67
|
readonly type: "uint256";
|
|
191
68
|
readonly internalType: "uint256";
|
|
192
69
|
}, {
|
|
193
|
-
readonly name: "
|
|
70
|
+
readonly name: "minLockAmount";
|
|
194
71
|
readonly type: "uint256";
|
|
195
72
|
readonly internalType: "uint256";
|
|
196
73
|
}, {
|
|
197
|
-
readonly name: "
|
|
198
|
-
readonly type: "tuple[3]";
|
|
199
|
-
readonly internalType: "struct ILeveragedTokenHelper.AgentData[3]";
|
|
200
|
-
readonly components: readonly [{
|
|
201
|
-
readonly name: "slot";
|
|
202
|
-
readonly type: "uint8";
|
|
203
|
-
readonly internalType: "uint8";
|
|
204
|
-
}, {
|
|
205
|
-
readonly name: "agent";
|
|
206
|
-
readonly type: "address";
|
|
207
|
-
readonly internalType: "address";
|
|
208
|
-
}, {
|
|
209
|
-
readonly name: "createdAt";
|
|
210
|
-
readonly type: "uint256";
|
|
211
|
-
readonly internalType: "uint256";
|
|
212
|
-
}];
|
|
213
|
-
}, {
|
|
214
|
-
readonly name: "balanceOf";
|
|
74
|
+
readonly name: "redemptionFee";
|
|
215
75
|
readonly type: "uint256";
|
|
216
76
|
readonly internalType: "uint256";
|
|
217
77
|
}, {
|
|
218
|
-
readonly name: "
|
|
219
|
-
readonly type: "bool";
|
|
220
|
-
readonly internalType: "bool";
|
|
221
|
-
}, {
|
|
222
|
-
readonly name: "isStandbyMode";
|
|
223
|
-
readonly type: "bool";
|
|
224
|
-
readonly internalType: "bool";
|
|
225
|
-
}];
|
|
226
|
-
}];
|
|
227
|
-
readonly stateMutability: "view";
|
|
228
|
-
}, {
|
|
229
|
-
readonly type: "function";
|
|
230
|
-
readonly name: "getLeveragedTokensCoreData";
|
|
231
|
-
readonly inputs: readonly [];
|
|
232
|
-
readonly outputs: readonly [{
|
|
233
|
-
readonly name: "";
|
|
234
|
-
readonly type: "tuple[]";
|
|
235
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenCoreData[]";
|
|
236
|
-
readonly components: readonly [{
|
|
237
|
-
readonly name: "leveragedToken";
|
|
238
|
-
readonly type: "address";
|
|
239
|
-
readonly internalType: "address";
|
|
240
|
-
}, {
|
|
241
|
-
readonly name: "marketId";
|
|
242
|
-
readonly type: "uint32";
|
|
243
|
-
readonly internalType: "uint32";
|
|
244
|
-
}, {
|
|
245
|
-
readonly name: "targetAsset";
|
|
246
|
-
readonly type: "string";
|
|
247
|
-
readonly internalType: "string";
|
|
248
|
-
}, {
|
|
249
|
-
readonly name: "targetLeverage";
|
|
250
|
-
readonly type: "uint256";
|
|
251
|
-
readonly internalType: "uint256";
|
|
252
|
-
}, {
|
|
253
|
-
readonly name: "isLong";
|
|
254
|
-
readonly type: "bool";
|
|
255
|
-
readonly internalType: "bool";
|
|
256
|
-
}, {
|
|
257
|
-
readonly name: "baseAssetBalance";
|
|
78
|
+
readonly name: "streamingFee";
|
|
258
79
|
readonly type: "uint256";
|
|
259
80
|
readonly internalType: "uint256";
|
|
260
81
|
}, {
|
|
261
|
-
readonly name: "
|
|
82
|
+
readonly name: "executeRedemptionFee";
|
|
262
83
|
readonly type: "uint256";
|
|
263
84
|
readonly internalType: "uint256";
|
|
264
85
|
}, {
|
|
265
|
-
readonly name: "
|
|
266
|
-
readonly type: "tuple[3]";
|
|
267
|
-
readonly internalType: "struct ILeveragedTokenHelper.AgentData[3]";
|
|
268
|
-
readonly components: readonly [{
|
|
269
|
-
readonly name: "slot";
|
|
270
|
-
readonly type: "uint8";
|
|
271
|
-
readonly internalType: "uint8";
|
|
272
|
-
}, {
|
|
273
|
-
readonly name: "agent";
|
|
274
|
-
readonly type: "address";
|
|
275
|
-
readonly internalType: "address";
|
|
276
|
-
}, {
|
|
277
|
-
readonly name: "createdAt";
|
|
278
|
-
readonly type: "uint256";
|
|
279
|
-
readonly internalType: "uint256";
|
|
280
|
-
}];
|
|
281
|
-
}, {
|
|
282
|
-
readonly name: "mintPaused";
|
|
283
|
-
readonly type: "bool";
|
|
284
|
-
readonly internalType: "bool";
|
|
285
|
-
}];
|
|
286
|
-
}];
|
|
287
|
-
readonly stateMutability: "view";
|
|
288
|
-
}, {
|
|
289
|
-
readonly type: "function";
|
|
290
|
-
readonly name: "getLeveragedTokensSnapshot";
|
|
291
|
-
readonly inputs: readonly [];
|
|
292
|
-
readonly outputs: readonly [{
|
|
293
|
-
readonly name: "";
|
|
294
|
-
readonly type: "tuple";
|
|
295
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokensSnapshot";
|
|
296
|
-
readonly components: readonly [{
|
|
297
|
-
readonly name: "blockNumber";
|
|
86
|
+
readonly name: "treasuryFeeShare";
|
|
298
87
|
readonly type: "uint256";
|
|
299
88
|
readonly internalType: "uint256";
|
|
300
89
|
}, {
|
|
301
|
-
readonly name: "
|
|
90
|
+
readonly name: "referrerRebate";
|
|
302
91
|
readonly type: "uint256";
|
|
303
92
|
readonly internalType: "uint256";
|
|
304
93
|
}, {
|
|
305
|
-
readonly name: "
|
|
94
|
+
readonly name: "refereeRebate";
|
|
306
95
|
readonly type: "uint256";
|
|
307
96
|
readonly internalType: "uint256";
|
|
308
|
-
}, {
|
|
309
|
-
readonly name: "tokens";
|
|
310
|
-
readonly type: "tuple[]";
|
|
311
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenSnapshotData[]";
|
|
312
|
-
readonly components: readonly [{
|
|
313
|
-
readonly name: "leveragedToken";
|
|
314
|
-
readonly type: "address";
|
|
315
|
-
readonly internalType: "address";
|
|
316
|
-
}, {
|
|
317
|
-
readonly name: "exchangeRate";
|
|
318
|
-
readonly type: "uint256";
|
|
319
|
-
readonly internalType: "uint256";
|
|
320
|
-
}, {
|
|
321
|
-
readonly name: "baseAssetContractBalance";
|
|
322
|
-
readonly type: "uint256";
|
|
323
|
-
readonly internalType: "uint256";
|
|
324
|
-
}, {
|
|
325
|
-
readonly name: "baseAssetUserCredit";
|
|
326
|
-
readonly type: "uint256";
|
|
327
|
-
readonly internalType: "uint256";
|
|
328
|
-
}, {
|
|
329
|
-
readonly name: "usdcSpotBalance";
|
|
330
|
-
readonly type: "uint256";
|
|
331
|
-
readonly internalType: "uint256";
|
|
332
|
-
}, {
|
|
333
|
-
readonly name: "usdcPerpBalance";
|
|
334
|
-
readonly type: "uint256";
|
|
335
|
-
readonly internalType: "uint256";
|
|
336
|
-
}, {
|
|
337
|
-
readonly name: "usdcMargin";
|
|
338
|
-
readonly type: "uint256";
|
|
339
|
-
readonly internalType: "uint256";
|
|
340
|
-
}, {
|
|
341
|
-
readonly name: "totalAssets";
|
|
342
|
-
readonly type: "uint256";
|
|
343
|
-
readonly internalType: "uint256";
|
|
344
|
-
}, {
|
|
345
|
-
readonly name: "notionalValue";
|
|
346
|
-
readonly type: "uint256";
|
|
347
|
-
readonly internalType: "uint256";
|
|
348
|
-
}];
|
|
349
97
|
}];
|
|
350
98
|
}];
|
|
351
99
|
readonly stateMutability: "view";
|
|
352
|
-
}, {
|
|
353
|
-
readonly type: "error";
|
|
354
|
-
readonly name: "DivisionByZero";
|
|
355
|
-
readonly inputs: readonly [];
|
|
356
|
-
}, {
|
|
357
|
-
readonly type: "error";
|
|
358
|
-
readonly name: "PrecompileLib__L1BlockNumberPrecompileFailed";
|
|
359
|
-
readonly inputs: readonly [];
|
|
360
100
|
}];
|