@gearbox-protocol/sdk 8.17.1 → 8.18.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.
- package/dist/cjs/abi/index.js +2 -0
- package/dist/cjs/abi/mellow.js +2938 -0
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +27 -0
- package/dist/cjs/plugins/adapters/FluidDexAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/InfraredVaultAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/KodiakIslandGatewayAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/LidoV1AdapterContract.js +37 -0
- package/dist/cjs/plugins/adapters/MellowClaimerAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/MellowDVVAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/MellowWrapperAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/TraderJoeRouterAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/UpshiftVaultAdapterContract.js +38 -0
- package/dist/cjs/plugins/adapters/abi/adapters.js +1217 -2
- package/dist/cjs/plugins/adapters/index.js +18 -0
- package/dist/cjs/sdk/chain/chains.js +2 -3
- package/dist/esm/abi/index.js +1 -0
- package/dist/esm/abi/mellow.js +2910 -0
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +27 -0
- package/dist/esm/plugins/adapters/FluidDexAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/InfraredVaultAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/KodiakIslandGatewayAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/LidoV1AdapterContract.js +13 -0
- package/dist/esm/plugins/adapters/MellowClaimerAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/MellowDVVAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/MellowWrapperAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/TraderJoeRouterAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/UpshiftVaultAdapterContract.js +14 -0
- package/dist/esm/plugins/adapters/abi/adapters.js +1208 -1
- package/dist/esm/plugins/adapters/index.js +9 -0
- package/dist/esm/sdk/chain/chains.js +2 -3
- package/dist/types/abi/index.d.ts +1 -0
- package/dist/types/abi/mellow.d.ts +3886 -0
- package/dist/types/plugins/adapters/FluidDexAdapterContract.d.ts +127 -0
- package/dist/types/plugins/adapters/InfraredVaultAdapterContract.d.ts +195 -0
- package/dist/types/plugins/adapters/KodiakIslandGatewayAdapterContract.d.ts +390 -0
- package/dist/types/plugins/adapters/LidoV1AdapterContract.d.ts +8 -0
- package/dist/types/plugins/adapters/MellowClaimerAdapterContract.d.ts +255 -0
- package/dist/types/plugins/adapters/MellowDVVAdapterContract.d.ts +229 -0
- package/dist/types/plugins/adapters/MellowWrapperAdapterContract.d.ts +159 -0
- package/dist/types/plugins/adapters/TraderJoeRouterAdapterContract.d.ts +341 -0
- package/dist/types/plugins/adapters/UpshiftVaultAdapterContract.d.ts +265 -0
- package/dist/types/plugins/adapters/abi/adapters.d.ts +1897 -0
- package/dist/types/plugins/adapters/index.d.ts +9 -0
- package/dist/types/plugins/adapters/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import type { GearboxSDK } from "../../sdk/index.js";
|
|
2
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
3
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
+
declare const abi: readonly [{
|
|
5
|
+
readonly type: "function";
|
|
6
|
+
readonly name: "addLiquidityImbalanced";
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly name: "island";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "amount0";
|
|
13
|
+
readonly type: "uint256";
|
|
14
|
+
readonly internalType: "uint256";
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "amount1";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
readonly internalType: "uint256";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "minLPAmount";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
readonly internalType: "uint256";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "receiver";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
readonly internalType: "address";
|
|
27
|
+
}];
|
|
28
|
+
readonly outputs: readonly [{
|
|
29
|
+
readonly name: "";
|
|
30
|
+
readonly type: "bool";
|
|
31
|
+
readonly internalType: "bool";
|
|
32
|
+
}];
|
|
33
|
+
readonly stateMutability: "nonpayable";
|
|
34
|
+
}, {
|
|
35
|
+
readonly type: "function";
|
|
36
|
+
readonly name: "addLiquidityImbalancedAssisted";
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly name: "island";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
readonly internalType: "address";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "amount0";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
readonly internalType: "uint256";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "amount1";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
readonly internalType: "uint256";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "minLPAmount";
|
|
51
|
+
readonly type: "uint256";
|
|
52
|
+
readonly internalType: "uint256";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "receiver";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
readonly internalType: "address";
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "ratios";
|
|
59
|
+
readonly type: "tuple";
|
|
60
|
+
readonly internalType: "struct Ratios";
|
|
61
|
+
readonly components: readonly [{
|
|
62
|
+
readonly name: "priceRatio";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
readonly internalType: "uint256";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "balance0";
|
|
67
|
+
readonly type: "uint256";
|
|
68
|
+
readonly internalType: "uint256";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "balance1";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
readonly internalType: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "swapAll";
|
|
75
|
+
readonly type: "bool";
|
|
76
|
+
readonly internalType: "bool";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "is0to1";
|
|
79
|
+
readonly type: "bool";
|
|
80
|
+
readonly internalType: "bool";
|
|
81
|
+
}];
|
|
82
|
+
}];
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly type: "bool";
|
|
86
|
+
readonly internalType: "bool";
|
|
87
|
+
}];
|
|
88
|
+
readonly stateMutability: "nonpayable";
|
|
89
|
+
}, {
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
readonly name: "addLiquidityImbalancedDiff";
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly name: "island";
|
|
94
|
+
readonly type: "address";
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "leftoverAmount0";
|
|
98
|
+
readonly type: "uint256";
|
|
99
|
+
readonly internalType: "uint256";
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "leftoverAmount1";
|
|
102
|
+
readonly type: "uint256";
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "minRatesRAY";
|
|
106
|
+
readonly type: "uint256[2]";
|
|
107
|
+
readonly internalType: "uint256[2]";
|
|
108
|
+
}];
|
|
109
|
+
readonly outputs: readonly [{
|
|
110
|
+
readonly name: "";
|
|
111
|
+
readonly type: "bool";
|
|
112
|
+
readonly internalType: "bool";
|
|
113
|
+
}];
|
|
114
|
+
readonly stateMutability: "nonpayable";
|
|
115
|
+
}, {
|
|
116
|
+
readonly type: "function";
|
|
117
|
+
readonly name: "addLiquidityImbalancedDiffAssisted";
|
|
118
|
+
readonly inputs: readonly [{
|
|
119
|
+
readonly name: "island";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
readonly internalType: "address";
|
|
122
|
+
}, {
|
|
123
|
+
readonly name: "leftoverAmount0";
|
|
124
|
+
readonly type: "uint256";
|
|
125
|
+
readonly internalType: "uint256";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "leftoverAmount1";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "minRatesRAY";
|
|
132
|
+
readonly type: "uint256[2]";
|
|
133
|
+
readonly internalType: "uint256[2]";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "ratios";
|
|
136
|
+
readonly type: "tuple";
|
|
137
|
+
readonly internalType: "struct Ratios";
|
|
138
|
+
readonly components: readonly [{
|
|
139
|
+
readonly name: "priceRatio";
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "balance0";
|
|
144
|
+
readonly type: "uint256";
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
}, {
|
|
147
|
+
readonly name: "balance1";
|
|
148
|
+
readonly type: "uint256";
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "swapAll";
|
|
152
|
+
readonly type: "bool";
|
|
153
|
+
readonly internalType: "bool";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "is0to1";
|
|
156
|
+
readonly type: "bool";
|
|
157
|
+
readonly internalType: "bool";
|
|
158
|
+
}];
|
|
159
|
+
}];
|
|
160
|
+
readonly outputs: readonly [{
|
|
161
|
+
readonly name: "";
|
|
162
|
+
readonly type: "bool";
|
|
163
|
+
readonly internalType: "bool";
|
|
164
|
+
}];
|
|
165
|
+
readonly stateMutability: "nonpayable";
|
|
166
|
+
}, {
|
|
167
|
+
readonly type: "function";
|
|
168
|
+
readonly name: "allowedIslands";
|
|
169
|
+
readonly inputs: readonly [];
|
|
170
|
+
readonly outputs: readonly [{
|
|
171
|
+
readonly name: "";
|
|
172
|
+
readonly type: "tuple[]";
|
|
173
|
+
readonly internalType: "struct KodiakIslandStatus[]";
|
|
174
|
+
readonly components: readonly [{
|
|
175
|
+
readonly name: "island";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
readonly internalType: "address";
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "status";
|
|
180
|
+
readonly type: "uint8";
|
|
181
|
+
readonly internalType: "enum IslandStatus";
|
|
182
|
+
}];
|
|
183
|
+
}];
|
|
184
|
+
readonly stateMutability: "view";
|
|
185
|
+
}, {
|
|
186
|
+
readonly type: "function";
|
|
187
|
+
readonly name: "contractType";
|
|
188
|
+
readonly inputs: readonly [];
|
|
189
|
+
readonly outputs: readonly [{
|
|
190
|
+
readonly name: "";
|
|
191
|
+
readonly type: "bytes32";
|
|
192
|
+
readonly internalType: "bytes32";
|
|
193
|
+
}];
|
|
194
|
+
readonly stateMutability: "view";
|
|
195
|
+
}, {
|
|
196
|
+
readonly type: "function";
|
|
197
|
+
readonly name: "creditManager";
|
|
198
|
+
readonly inputs: readonly [];
|
|
199
|
+
readonly outputs: readonly [{
|
|
200
|
+
readonly name: "";
|
|
201
|
+
readonly type: "address";
|
|
202
|
+
readonly internalType: "address";
|
|
203
|
+
}];
|
|
204
|
+
readonly stateMutability: "view";
|
|
205
|
+
}, {
|
|
206
|
+
readonly type: "function";
|
|
207
|
+
readonly name: "removeLiquiditySingle";
|
|
208
|
+
readonly inputs: readonly [{
|
|
209
|
+
readonly name: "island";
|
|
210
|
+
readonly type: "address";
|
|
211
|
+
readonly internalType: "address";
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "lpAmount";
|
|
214
|
+
readonly type: "uint256";
|
|
215
|
+
readonly internalType: "uint256";
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "tokenOut";
|
|
218
|
+
readonly type: "address";
|
|
219
|
+
readonly internalType: "address";
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "minAmountOut";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
readonly internalType: "uint256";
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "receiver";
|
|
226
|
+
readonly type: "address";
|
|
227
|
+
readonly internalType: "address";
|
|
228
|
+
}];
|
|
229
|
+
readonly outputs: readonly [{
|
|
230
|
+
readonly name: "";
|
|
231
|
+
readonly type: "bool";
|
|
232
|
+
readonly internalType: "bool";
|
|
233
|
+
}];
|
|
234
|
+
readonly stateMutability: "nonpayable";
|
|
235
|
+
}, {
|
|
236
|
+
readonly type: "function";
|
|
237
|
+
readonly name: "removeLiquiditySingleDiff";
|
|
238
|
+
readonly inputs: readonly [{
|
|
239
|
+
readonly name: "island";
|
|
240
|
+
readonly type: "address";
|
|
241
|
+
readonly internalType: "address";
|
|
242
|
+
}, {
|
|
243
|
+
readonly name: "leftoverAmount";
|
|
244
|
+
readonly type: "uint256";
|
|
245
|
+
readonly internalType: "uint256";
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "tokenOut";
|
|
248
|
+
readonly type: "address";
|
|
249
|
+
readonly internalType: "address";
|
|
250
|
+
}, {
|
|
251
|
+
readonly name: "minRateRAY";
|
|
252
|
+
readonly type: "uint256";
|
|
253
|
+
readonly internalType: "uint256";
|
|
254
|
+
}];
|
|
255
|
+
readonly outputs: readonly [{
|
|
256
|
+
readonly name: "";
|
|
257
|
+
readonly type: "bool";
|
|
258
|
+
readonly internalType: "bool";
|
|
259
|
+
}];
|
|
260
|
+
readonly stateMutability: "nonpayable";
|
|
261
|
+
}, {
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
readonly name: "serialize";
|
|
264
|
+
readonly inputs: readonly [];
|
|
265
|
+
readonly outputs: readonly [{
|
|
266
|
+
readonly name: "serializedData";
|
|
267
|
+
readonly type: "bytes";
|
|
268
|
+
readonly internalType: "bytes";
|
|
269
|
+
}];
|
|
270
|
+
readonly stateMutability: "view";
|
|
271
|
+
}, {
|
|
272
|
+
readonly type: "function";
|
|
273
|
+
readonly name: "setIslandStatusBatch";
|
|
274
|
+
readonly inputs: readonly [{
|
|
275
|
+
readonly name: "islands";
|
|
276
|
+
readonly type: "tuple[]";
|
|
277
|
+
readonly internalType: "struct KodiakIslandStatus[]";
|
|
278
|
+
readonly components: readonly [{
|
|
279
|
+
readonly name: "island";
|
|
280
|
+
readonly type: "address";
|
|
281
|
+
readonly internalType: "address";
|
|
282
|
+
}, {
|
|
283
|
+
readonly name: "status";
|
|
284
|
+
readonly type: "uint8";
|
|
285
|
+
readonly internalType: "enum IslandStatus";
|
|
286
|
+
}];
|
|
287
|
+
}];
|
|
288
|
+
readonly outputs: readonly [];
|
|
289
|
+
readonly stateMutability: "nonpayable";
|
|
290
|
+
}, {
|
|
291
|
+
readonly type: "function";
|
|
292
|
+
readonly name: "swap";
|
|
293
|
+
readonly inputs: readonly [{
|
|
294
|
+
readonly name: "island";
|
|
295
|
+
readonly type: "address";
|
|
296
|
+
readonly internalType: "address";
|
|
297
|
+
}, {
|
|
298
|
+
readonly name: "tokenIn";
|
|
299
|
+
readonly type: "address";
|
|
300
|
+
readonly internalType: "address";
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "amountIn";
|
|
303
|
+
readonly type: "uint256";
|
|
304
|
+
readonly internalType: "uint256";
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "amountOutMin";
|
|
307
|
+
readonly type: "uint256";
|
|
308
|
+
readonly internalType: "uint256";
|
|
309
|
+
}];
|
|
310
|
+
readonly outputs: readonly [{
|
|
311
|
+
readonly name: "";
|
|
312
|
+
readonly type: "bool";
|
|
313
|
+
readonly internalType: "bool";
|
|
314
|
+
}];
|
|
315
|
+
readonly stateMutability: "nonpayable";
|
|
316
|
+
}, {
|
|
317
|
+
readonly type: "function";
|
|
318
|
+
readonly name: "swapDiff";
|
|
319
|
+
readonly inputs: readonly [{
|
|
320
|
+
readonly name: "island";
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
readonly internalType: "address";
|
|
323
|
+
}, {
|
|
324
|
+
readonly name: "tokenIn";
|
|
325
|
+
readonly type: "address";
|
|
326
|
+
readonly internalType: "address";
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "leftoverAmount";
|
|
329
|
+
readonly type: "uint256";
|
|
330
|
+
readonly internalType: "uint256";
|
|
331
|
+
}, {
|
|
332
|
+
readonly name: "minRateRAY";
|
|
333
|
+
readonly type: "uint256";
|
|
334
|
+
readonly internalType: "uint256";
|
|
335
|
+
}];
|
|
336
|
+
readonly outputs: readonly [{
|
|
337
|
+
readonly name: "";
|
|
338
|
+
readonly type: "bool";
|
|
339
|
+
readonly internalType: "bool";
|
|
340
|
+
}];
|
|
341
|
+
readonly stateMutability: "nonpayable";
|
|
342
|
+
}, {
|
|
343
|
+
readonly type: "function";
|
|
344
|
+
readonly name: "targetContract";
|
|
345
|
+
readonly inputs: readonly [];
|
|
346
|
+
readonly outputs: readonly [{
|
|
347
|
+
readonly name: "";
|
|
348
|
+
readonly type: "address";
|
|
349
|
+
readonly internalType: "address";
|
|
350
|
+
}];
|
|
351
|
+
readonly stateMutability: "view";
|
|
352
|
+
}, {
|
|
353
|
+
readonly type: "function";
|
|
354
|
+
readonly name: "version";
|
|
355
|
+
readonly inputs: readonly [];
|
|
356
|
+
readonly outputs: readonly [{
|
|
357
|
+
readonly name: "";
|
|
358
|
+
readonly type: "uint256";
|
|
359
|
+
readonly internalType: "uint256";
|
|
360
|
+
}];
|
|
361
|
+
readonly stateMutability: "view";
|
|
362
|
+
}, {
|
|
363
|
+
readonly type: "event";
|
|
364
|
+
readonly name: "SetIslandStatus";
|
|
365
|
+
readonly inputs: readonly [{
|
|
366
|
+
readonly name: "island";
|
|
367
|
+
readonly type: "address";
|
|
368
|
+
readonly indexed: true;
|
|
369
|
+
readonly internalType: "address";
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "status";
|
|
372
|
+
readonly type: "uint8";
|
|
373
|
+
readonly indexed: false;
|
|
374
|
+
readonly internalType: "enum IslandStatus";
|
|
375
|
+
}];
|
|
376
|
+
readonly anonymous: false;
|
|
377
|
+
}, {
|
|
378
|
+
readonly type: "error";
|
|
379
|
+
readonly name: "IslandNotAllowedException";
|
|
380
|
+
readonly inputs: readonly [{
|
|
381
|
+
readonly name: "island";
|
|
382
|
+
readonly type: "address";
|
|
383
|
+
readonly internalType: "address";
|
|
384
|
+
}];
|
|
385
|
+
}];
|
|
386
|
+
type abi = typeof abi;
|
|
387
|
+
export declare class KodiakIslandGatewayAdapterContract extends AbstractAdapterContract<abi> {
|
|
388
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
389
|
+
}
|
|
390
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GearboxSDK } from "../../sdk/index.js";
|
|
2
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
3
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
+
declare const abi: readonly [];
|
|
5
|
+
export declare class LidoV1AdapterContract extends AbstractAdapterContract<typeof abi> {
|
|
6
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<typeof abi>, "abi">);
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import type { GearboxSDK } from "../../sdk/index.js";
|
|
2
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
3
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
4
|
+
declare const abi: readonly [{
|
|
5
|
+
readonly type: "function";
|
|
6
|
+
readonly name: "allowedMultiVaults";
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly name: "";
|
|
10
|
+
readonly type: "address[]";
|
|
11
|
+
readonly internalType: "address[]";
|
|
12
|
+
}];
|
|
13
|
+
readonly stateMutability: "view";
|
|
14
|
+
}, {
|
|
15
|
+
readonly type: "function";
|
|
16
|
+
readonly name: "contractType";
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly outputs: readonly [{
|
|
19
|
+
readonly name: "";
|
|
20
|
+
readonly type: "bytes32";
|
|
21
|
+
readonly internalType: "bytes32";
|
|
22
|
+
}];
|
|
23
|
+
readonly stateMutability: "view";
|
|
24
|
+
}, {
|
|
25
|
+
readonly type: "function";
|
|
26
|
+
readonly name: "creditManager";
|
|
27
|
+
readonly inputs: readonly [];
|
|
28
|
+
readonly outputs: readonly [{
|
|
29
|
+
readonly name: "";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
}];
|
|
33
|
+
readonly stateMutability: "view";
|
|
34
|
+
}, {
|
|
35
|
+
readonly type: "function";
|
|
36
|
+
readonly name: "depositPhantomToken";
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly name: "token";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
readonly internalType: "address";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "amount";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
readonly internalType: "uint256";
|
|
45
|
+
}];
|
|
46
|
+
readonly outputs: readonly [{
|
|
47
|
+
readonly name: "";
|
|
48
|
+
readonly type: "bool";
|
|
49
|
+
readonly internalType: "bool";
|
|
50
|
+
}];
|
|
51
|
+
readonly stateMutability: "nonpayable";
|
|
52
|
+
}, {
|
|
53
|
+
readonly type: "function";
|
|
54
|
+
readonly name: "getMultiVaultSubvaultIndices";
|
|
55
|
+
readonly inputs: readonly [{
|
|
56
|
+
readonly name: "multiVault";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
readonly internalType: "address";
|
|
59
|
+
}];
|
|
60
|
+
readonly outputs: readonly [{
|
|
61
|
+
readonly name: "subvaultIndices";
|
|
62
|
+
readonly type: "uint256[]";
|
|
63
|
+
readonly internalType: "uint256[]";
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "withdrawalIndices";
|
|
66
|
+
readonly type: "uint256[][]";
|
|
67
|
+
readonly internalType: "uint256[][]";
|
|
68
|
+
}];
|
|
69
|
+
readonly stateMutability: "view";
|
|
70
|
+
}, {
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
readonly name: "getUserSubvaultIndices";
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly name: "multiVault";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
readonly internalType: "address";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "user";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
}];
|
|
82
|
+
readonly outputs: readonly [{
|
|
83
|
+
readonly name: "subvaultIndices";
|
|
84
|
+
readonly type: "uint256[]";
|
|
85
|
+
readonly internalType: "uint256[]";
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "withdrawalIndices";
|
|
88
|
+
readonly type: "uint256[][]";
|
|
89
|
+
readonly internalType: "uint256[][]";
|
|
90
|
+
}];
|
|
91
|
+
readonly stateMutability: "view";
|
|
92
|
+
}, {
|
|
93
|
+
readonly type: "function";
|
|
94
|
+
readonly name: "multiAccept";
|
|
95
|
+
readonly inputs: readonly [{
|
|
96
|
+
readonly name: "multiVault";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "subvaultIndices";
|
|
101
|
+
readonly type: "uint256[]";
|
|
102
|
+
readonly internalType: "uint256[]";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "indices";
|
|
105
|
+
readonly type: "uint256[][]";
|
|
106
|
+
readonly internalType: "uint256[][]";
|
|
107
|
+
}];
|
|
108
|
+
readonly outputs: readonly [{
|
|
109
|
+
readonly name: "";
|
|
110
|
+
readonly type: "bool";
|
|
111
|
+
readonly internalType: "bool";
|
|
112
|
+
}];
|
|
113
|
+
readonly stateMutability: "nonpayable";
|
|
114
|
+
}, {
|
|
115
|
+
readonly type: "function";
|
|
116
|
+
readonly name: "multiAcceptAndClaim";
|
|
117
|
+
readonly inputs: readonly [{
|
|
118
|
+
readonly name: "multiVault";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "subvaultIndices";
|
|
123
|
+
readonly type: "uint256[]";
|
|
124
|
+
readonly internalType: "uint256[]";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "indices";
|
|
127
|
+
readonly type: "uint256[][]";
|
|
128
|
+
readonly internalType: "uint256[][]";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
readonly internalType: "address";
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "maxAssets";
|
|
135
|
+
readonly type: "uint256";
|
|
136
|
+
readonly internalType: "uint256";
|
|
137
|
+
}];
|
|
138
|
+
readonly outputs: readonly [{
|
|
139
|
+
readonly name: "";
|
|
140
|
+
readonly type: "bool";
|
|
141
|
+
readonly internalType: "bool";
|
|
142
|
+
}];
|
|
143
|
+
readonly stateMutability: "nonpayable";
|
|
144
|
+
}, {
|
|
145
|
+
readonly type: "function";
|
|
146
|
+
readonly name: "serialize";
|
|
147
|
+
readonly inputs: readonly [];
|
|
148
|
+
readonly outputs: readonly [{
|
|
149
|
+
readonly name: "serializedData";
|
|
150
|
+
readonly type: "bytes";
|
|
151
|
+
readonly internalType: "bytes";
|
|
152
|
+
}];
|
|
153
|
+
readonly stateMutability: "view";
|
|
154
|
+
}, {
|
|
155
|
+
readonly type: "function";
|
|
156
|
+
readonly name: "setMultiVaultStatusBatch";
|
|
157
|
+
readonly inputs: readonly [{
|
|
158
|
+
readonly name: "multivaults";
|
|
159
|
+
readonly type: "tuple[]";
|
|
160
|
+
readonly internalType: "struct MellowMultiVaultStatus[]";
|
|
161
|
+
readonly components: readonly [{
|
|
162
|
+
readonly name: "multiVault";
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
readonly internalType: "address";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "stakedPhantomToken";
|
|
167
|
+
readonly type: "address";
|
|
168
|
+
readonly internalType: "address";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "allowed";
|
|
171
|
+
readonly type: "bool";
|
|
172
|
+
readonly internalType: "bool";
|
|
173
|
+
}];
|
|
174
|
+
}];
|
|
175
|
+
readonly outputs: readonly [];
|
|
176
|
+
readonly stateMutability: "nonpayable";
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "function";
|
|
179
|
+
readonly name: "targetContract";
|
|
180
|
+
readonly inputs: readonly [];
|
|
181
|
+
readonly outputs: readonly [{
|
|
182
|
+
readonly name: "";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
readonly internalType: "address";
|
|
185
|
+
}];
|
|
186
|
+
readonly stateMutability: "view";
|
|
187
|
+
}, {
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
readonly name: "version";
|
|
190
|
+
readonly inputs: readonly [];
|
|
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: "withdrawPhantomToken";
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly name: "token";
|
|
202
|
+
readonly type: "address";
|
|
203
|
+
readonly internalType: "address";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "amount";
|
|
206
|
+
readonly type: "uint256";
|
|
207
|
+
readonly internalType: "uint256";
|
|
208
|
+
}];
|
|
209
|
+
readonly outputs: readonly [{
|
|
210
|
+
readonly name: "useSafePrices";
|
|
211
|
+
readonly type: "bool";
|
|
212
|
+
readonly internalType: "bool";
|
|
213
|
+
}];
|
|
214
|
+
readonly stateMutability: "nonpayable";
|
|
215
|
+
}, {
|
|
216
|
+
readonly type: "event";
|
|
217
|
+
readonly name: "SetMultiVaultStatus";
|
|
218
|
+
readonly inputs: readonly [{
|
|
219
|
+
readonly name: "multiVault";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
readonly indexed: true;
|
|
222
|
+
readonly internalType: "address";
|
|
223
|
+
}, {
|
|
224
|
+
readonly name: "allowed";
|
|
225
|
+
readonly type: "bool";
|
|
226
|
+
readonly indexed: false;
|
|
227
|
+
readonly internalType: "bool";
|
|
228
|
+
}];
|
|
229
|
+
readonly anonymous: false;
|
|
230
|
+
}, {
|
|
231
|
+
readonly type: "error";
|
|
232
|
+
readonly name: "IncorrectStakedPhantomTokenException";
|
|
233
|
+
readonly inputs: readonly [];
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "error";
|
|
236
|
+
readonly name: "InsufficientClaimedException";
|
|
237
|
+
readonly inputs: readonly [];
|
|
238
|
+
}, {
|
|
239
|
+
readonly type: "error";
|
|
240
|
+
readonly name: "InvalidMultiVaultException";
|
|
241
|
+
readonly inputs: readonly [];
|
|
242
|
+
}, {
|
|
243
|
+
readonly type: "error";
|
|
244
|
+
readonly name: "InvalidStakedPhantomTokenException";
|
|
245
|
+
readonly inputs: readonly [];
|
|
246
|
+
}, {
|
|
247
|
+
readonly type: "error";
|
|
248
|
+
readonly name: "MultiVaultNotAllowedException";
|
|
249
|
+
readonly inputs: readonly [];
|
|
250
|
+
}];
|
|
251
|
+
type abi = typeof abi;
|
|
252
|
+
export declare class MellowClaimerAdapterContract extends AbstractAdapterContract<abi> {
|
|
253
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
254
|
+
}
|
|
255
|
+
export {};
|