@gearbox-protocol/sdk 11.2.1 → 11.3.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.
Files changed (52) hide show
  1. package/dist/cjs/abi/compressors/subcompressors/kelpLRTWithdrawalSubcompressor.js +187 -0
  2. package/dist/cjs/abi/compressors/subcompressors/mellowFlexibleDepositSubcompressor.js +187 -0
  3. package/dist/cjs/abi/compressors/subcompressors/mellowFlexibleRedeemSubcompressor.js +187 -0
  4. package/dist/cjs/abi/compressors/withdrawalCompressor.js +42 -0
  5. package/dist/cjs/abi/router/infinifiWorker.js +541 -0
  6. package/dist/cjs/abi/router/uniswapV4Worker.js +574 -0
  7. package/dist/cjs/plugins/adapters/AdaptersPlugin.js +9 -0
  8. package/dist/cjs/plugins/adapters/abi/actionAbi.js +9 -0
  9. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +17 -8
  10. package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +4 -4
  11. package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +2 -1
  12. package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +58 -0
  13. package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +49 -0
  14. package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -1
  15. package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -1
  16. package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +62 -0
  17. package/dist/cjs/plugins/adapters/types.js +3 -0
  18. package/dist/esm/abi/compressors/subcompressors/kelpLRTWithdrawalSubcompressor.js +163 -0
  19. package/dist/esm/abi/compressors/subcompressors/mellowFlexibleDepositSubcompressor.js +163 -0
  20. package/dist/esm/abi/compressors/subcompressors/mellowFlexibleRedeemSubcompressor.js +163 -0
  21. package/dist/esm/abi/compressors/withdrawalCompressor.js +42 -0
  22. package/dist/esm/abi/router/infinifiWorker.js +517 -0
  23. package/dist/esm/abi/router/uniswapV4Worker.js +550 -0
  24. package/dist/esm/plugins/adapters/AdaptersPlugin.js +9 -0
  25. package/dist/esm/plugins/adapters/abi/actionAbi.js +9 -0
  26. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +18 -9
  27. package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +3 -3
  28. package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +2 -1
  29. package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +34 -0
  30. package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +25 -0
  31. package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -1
  32. package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -1
  33. package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +38 -0
  34. package/dist/esm/plugins/adapters/types.js +3 -0
  35. package/dist/types/abi/compressors/subcompressors/kelpLRTWithdrawalSubcompressor.d.ts +220 -0
  36. package/dist/types/abi/compressors/subcompressors/mellowFlexibleDepositSubcompressor.d.ts +220 -0
  37. package/dist/types/abi/compressors/subcompressors/mellowFlexibleRedeemSubcompressor.d.ts +220 -0
  38. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +69 -0
  39. package/dist/types/abi/router/infinifiWorker.d.ts +726 -0
  40. package/dist/types/abi/router/uniswapV4Worker.d.ts +774 -0
  41. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +69 -0
  42. package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +2 -2
  43. package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +139 -13
  44. package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +117 -1
  45. package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +351 -0
  46. package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +208 -0
  47. package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +180 -1
  48. package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +276 -1
  49. package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +559 -0
  50. package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +320 -0
  51. package/dist/types/plugins/adapters/types.d.ts +4 -1
  52. package/package.json +2 -2
@@ -234,6 +234,75 @@ declare const abi: readonly [{
234
234
  }];
235
235
  }];
236
236
  readonly stateMutability: "view";
237
+ }, {
238
+ readonly type: "function";
239
+ readonly name: "getWithdrawalRequestResult";
240
+ readonly inputs: readonly [{
241
+ readonly name: "creditAccount";
242
+ readonly type: "address";
243
+ readonly internalType: "address";
244
+ }, {
245
+ readonly name: "token";
246
+ readonly type: "address";
247
+ readonly internalType: "address";
248
+ }, {
249
+ readonly name: "withdrawalToken";
250
+ readonly type: "address";
251
+ readonly internalType: "address";
252
+ }, {
253
+ readonly name: "amount";
254
+ readonly type: "uint256";
255
+ readonly internalType: "uint256";
256
+ }];
257
+ readonly outputs: readonly [{
258
+ readonly name: "withdrawal";
259
+ readonly type: "tuple";
260
+ readonly internalType: "struct RequestableWithdrawal";
261
+ readonly components: readonly [{
262
+ readonly name: "token";
263
+ readonly type: "address";
264
+ readonly internalType: "address";
265
+ }, {
266
+ readonly name: "amountIn";
267
+ readonly type: "uint256";
268
+ readonly internalType: "uint256";
269
+ }, {
270
+ readonly name: "outputs";
271
+ readonly type: "tuple[]";
272
+ readonly internalType: "struct WithdrawalOutput[]";
273
+ readonly components: readonly [{
274
+ readonly name: "token";
275
+ readonly type: "address";
276
+ readonly internalType: "address";
277
+ }, {
278
+ readonly name: "isDelayed";
279
+ readonly type: "bool";
280
+ readonly internalType: "bool";
281
+ }, {
282
+ readonly name: "amount";
283
+ readonly type: "uint256";
284
+ readonly internalType: "uint256";
285
+ }];
286
+ }, {
287
+ readonly name: "requestCalls";
288
+ readonly type: "tuple[]";
289
+ readonly internalType: "struct MultiCall[]";
290
+ readonly components: readonly [{
291
+ readonly name: "target";
292
+ readonly type: "address";
293
+ readonly internalType: "address";
294
+ }, {
295
+ readonly name: "callData";
296
+ readonly type: "bytes";
297
+ readonly internalType: "bytes";
298
+ }];
299
+ }, {
300
+ readonly name: "claimableAt";
301
+ readonly type: "uint256";
302
+ readonly internalType: "uint256";
303
+ }];
304
+ }];
305
+ readonly stateMutability: "view";
237
306
  }, {
238
307
  readonly type: "function";
239
308
  readonly name: "owner";
@@ -5,7 +5,7 @@ export declare const BASIC_ADAPTER_ABI: readonly [{
5
5
  readonly type: "address";
6
6
  readonly name: "target";
7
7
  }];
8
- export declare const STAKED_TOKEN_ADAPTER_ABI: readonly [{
8
+ export declare const PHANTOM_TOKEN_ADAPTER_ABI: readonly [{
9
9
  readonly type: "address";
10
10
  readonly name: "creditManager";
11
11
  }, {
@@ -13,7 +13,7 @@ export declare const STAKED_TOKEN_ADAPTER_ABI: readonly [{
13
13
  readonly name: "target";
14
14
  }, {
15
15
  readonly type: "address";
16
- readonly name: "stakedToken";
16
+ readonly name: "phantomToken";
17
17
  }];
18
18
  export declare const LP_ADAPTER_ABI: readonly [{
19
19
  readonly type: "address";
@@ -4,6 +4,58 @@ import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
4
4
  import { AbstractAdapterContract } from "./AbstractAdapter.js";
5
5
  import type { BalancerV3PoolStatus } from "./types.js";
6
6
  declare const abi: readonly [{
7
+ readonly type: "function";
8
+ readonly inputs: readonly [{
9
+ readonly name: "pool";
10
+ readonly internalType: "address";
11
+ readonly type: "address";
12
+ }, {
13
+ readonly name: "exactAmountsIn";
14
+ readonly internalType: "uint256[]";
15
+ readonly type: "uint256[]";
16
+ }, {
17
+ readonly name: "minBptAmountOut";
18
+ readonly internalType: "uint256";
19
+ readonly type: "uint256";
20
+ }, {
21
+ readonly name: "";
22
+ readonly internalType: "bool";
23
+ readonly type: "bool";
24
+ }, {
25
+ readonly name: "";
26
+ readonly internalType: "bytes";
27
+ readonly type: "bytes";
28
+ }];
29
+ readonly name: "addLiquidityUnbalanced";
30
+ readonly outputs: readonly [{
31
+ readonly name: "";
32
+ readonly internalType: "bool";
33
+ readonly type: "bool";
34
+ }];
35
+ readonly stateMutability: "nonpayable";
36
+ }, {
37
+ readonly type: "function";
38
+ readonly inputs: readonly [{
39
+ readonly name: "pool";
40
+ readonly internalType: "address";
41
+ readonly type: "address";
42
+ }, {
43
+ readonly name: "leftoverAmounts";
44
+ readonly internalType: "uint256[]";
45
+ readonly type: "uint256[]";
46
+ }, {
47
+ readonly name: "minRatesRAY";
48
+ readonly internalType: "uint256[]";
49
+ readonly type: "uint256[]";
50
+ }];
51
+ readonly name: "addLiquidityUnbalancedDiff";
52
+ readonly outputs: readonly [{
53
+ readonly name: "";
54
+ readonly internalType: "bool";
55
+ readonly type: "bool";
56
+ }];
57
+ readonly stateMutability: "nonpayable";
58
+ }, {
7
59
  readonly type: "function";
8
60
  readonly inputs: readonly [];
9
61
  readonly name: "contractType";
@@ -29,8 +81,31 @@ declare const abi: readonly [{
29
81
  readonly name: "getAllowedPools";
30
82
  readonly outputs: readonly [{
31
83
  readonly name: "pools";
32
- readonly internalType: "address[]";
33
- readonly type: "address[]";
84
+ readonly internalType: "struct BalancerV3PoolStatus[]";
85
+ readonly type: "tuple[]";
86
+ readonly components: readonly [{
87
+ readonly name: "pool";
88
+ readonly internalType: "address";
89
+ readonly type: "address";
90
+ }, {
91
+ readonly name: "status";
92
+ readonly internalType: "enum PoolStatus";
93
+ readonly type: "uint8";
94
+ }];
95
+ }];
96
+ readonly stateMutability: "view";
97
+ }, {
98
+ readonly type: "function";
99
+ readonly inputs: readonly [{
100
+ readonly name: "pool";
101
+ readonly internalType: "address";
102
+ readonly type: "address";
103
+ }];
104
+ readonly name: "poolStatus";
105
+ readonly outputs: readonly [{
106
+ readonly name: "";
107
+ readonly internalType: "enum PoolStatus";
108
+ readonly type: "uint8";
34
109
  }];
35
110
  readonly stateMutability: "view";
36
111
  }, {
@@ -39,14 +114,60 @@ declare const abi: readonly [{
39
114
  readonly name: "pool";
40
115
  readonly internalType: "address";
41
116
  readonly type: "address";
117
+ }, {
118
+ readonly name: "leftoverAmount";
119
+ readonly internalType: "uint256";
120
+ readonly type: "uint256";
121
+ }, {
122
+ readonly name: "tokenOut";
123
+ readonly internalType: "contract IERC20";
124
+ readonly type: "address";
125
+ }, {
126
+ readonly name: "minRateRAY";
127
+ readonly internalType: "uint256";
128
+ readonly type: "uint256";
42
129
  }];
43
- readonly name: "isPoolAllowed";
130
+ readonly name: "removeLiquiditySingleTokenDiff";
44
131
  readonly outputs: readonly [{
45
132
  readonly name: "";
46
133
  readonly internalType: "bool";
47
134
  readonly type: "bool";
48
135
  }];
49
- readonly stateMutability: "view";
136
+ readonly stateMutability: "nonpayable";
137
+ }, {
138
+ readonly type: "function";
139
+ readonly inputs: readonly [{
140
+ readonly name: "pool";
141
+ readonly internalType: "address";
142
+ readonly type: "address";
143
+ }, {
144
+ readonly name: "exactBptAmountIn";
145
+ readonly internalType: "uint256";
146
+ readonly type: "uint256";
147
+ }, {
148
+ readonly name: "tokenOut";
149
+ readonly internalType: "contract IERC20";
150
+ readonly type: "address";
151
+ }, {
152
+ readonly name: "minAmountOut";
153
+ readonly internalType: "uint256";
154
+ readonly type: "uint256";
155
+ }, {
156
+ readonly name: "";
157
+ readonly internalType: "bool";
158
+ readonly type: "bool";
159
+ }, {
160
+ readonly name: "";
161
+ readonly internalType: "bytes";
162
+ readonly type: "bytes";
163
+ }];
164
+ readonly name: "removeLiquiditySingleTokenExactIn";
165
+ readonly outputs: readonly [{
166
+ readonly name: "";
167
+ readonly internalType: "bool";
168
+ readonly type: "bool";
169
+ }];
170
+ readonly stateMutability: "nonpayable";
50
171
  }, {
51
172
  readonly type: "function";
52
173
  readonly inputs: readonly [];
@@ -60,13 +181,18 @@ declare const abi: readonly [{
60
181
  }, {
61
182
  readonly type: "function";
62
183
  readonly inputs: readonly [{
63
- readonly name: "pools";
64
- readonly internalType: "address[]";
65
- readonly type: "address[]";
66
- }, {
67
184
  readonly name: "statuses";
68
- readonly internalType: "bool[]";
69
- readonly type: "bool[]";
185
+ readonly internalType: "struct BalancerV3PoolStatus[]";
186
+ readonly type: "tuple[]";
187
+ readonly components: readonly [{
188
+ readonly name: "pool";
189
+ readonly internalType: "address";
190
+ readonly type: "address";
191
+ }, {
192
+ readonly name: "status";
193
+ readonly internalType: "enum PoolStatus";
194
+ readonly type: "uint8";
195
+ }];
70
196
  }];
71
197
  readonly name: "setPoolStatusBatch";
72
198
  readonly outputs: readonly [];
@@ -176,9 +302,9 @@ declare const abi: readonly [{
176
302
  readonly type: "address";
177
303
  readonly indexed: true;
178
304
  }, {
179
- readonly name: "allowed";
180
- readonly internalType: "bool";
181
- readonly type: "bool";
305
+ readonly name: "status";
306
+ readonly internalType: "enum PoolStatus";
307
+ readonly type: "uint8";
182
308
  readonly indexed: false;
183
309
  }];
184
310
  readonly name: "SetPoolStatus";
@@ -2,7 +2,123 @@ import { type Address } from "viem";
2
2
  import type { GearboxSDK } from "../../../sdk/index.js";
3
3
  import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
4
4
  import { AbstractAdapterContract } from "./AbstractAdapter.js";
5
- declare const abi: readonly [];
5
+ declare const abi: readonly [{
6
+ readonly type: "function";
7
+ readonly inputs: readonly [];
8
+ readonly name: "balancerPoolToken";
9
+ readonly outputs: readonly [{
10
+ readonly name: "";
11
+ readonly internalType: "address";
12
+ readonly type: "address";
13
+ }];
14
+ readonly stateMutability: "view";
15
+ }, {
16
+ readonly type: "function";
17
+ readonly inputs: readonly [{
18
+ readonly name: "amount";
19
+ readonly internalType: "uint256";
20
+ readonly type: "uint256";
21
+ }];
22
+ readonly name: "burn";
23
+ readonly outputs: readonly [{
24
+ readonly name: "useSafePrices";
25
+ readonly internalType: "bool";
26
+ readonly type: "bool";
27
+ }];
28
+ readonly stateMutability: "nonpayable";
29
+ }, {
30
+ readonly type: "function";
31
+ readonly inputs: readonly [{
32
+ readonly name: "leftoverAmount";
33
+ readonly internalType: "uint256";
34
+ readonly type: "uint256";
35
+ }];
36
+ readonly name: "burnDiff";
37
+ readonly outputs: readonly [{
38
+ readonly name: "useSafePrices";
39
+ readonly internalType: "bool";
40
+ readonly type: "bool";
41
+ }];
42
+ readonly stateMutability: "nonpayable";
43
+ }, {
44
+ readonly type: "function";
45
+ readonly inputs: readonly [];
46
+ readonly name: "contractType";
47
+ readonly outputs: readonly [{
48
+ readonly name: "";
49
+ readonly internalType: "bytes32";
50
+ readonly type: "bytes32";
51
+ }];
52
+ readonly stateMutability: "view";
53
+ }, {
54
+ readonly type: "function";
55
+ readonly inputs: readonly [];
56
+ readonly name: "creditManager";
57
+ readonly outputs: readonly [{
58
+ readonly name: "";
59
+ readonly internalType: "address";
60
+ readonly type: "address";
61
+ }];
62
+ readonly stateMutability: "view";
63
+ }, {
64
+ readonly type: "function";
65
+ readonly inputs: readonly [{
66
+ readonly name: "amount";
67
+ readonly internalType: "uint256";
68
+ readonly type: "uint256";
69
+ }];
70
+ readonly name: "mint";
71
+ readonly outputs: readonly [{
72
+ readonly name: "useSafePrices";
73
+ readonly internalType: "bool";
74
+ readonly type: "bool";
75
+ }];
76
+ readonly stateMutability: "nonpayable";
77
+ }, {
78
+ readonly type: "function";
79
+ readonly inputs: readonly [{
80
+ readonly name: "leftoverAmount";
81
+ readonly internalType: "uint256";
82
+ readonly type: "uint256";
83
+ }];
84
+ readonly name: "mintDiff";
85
+ readonly outputs: readonly [{
86
+ readonly name: "useSafePrices";
87
+ readonly internalType: "bool";
88
+ readonly type: "bool";
89
+ }];
90
+ readonly stateMutability: "nonpayable";
91
+ }, {
92
+ readonly type: "function";
93
+ readonly inputs: readonly [];
94
+ readonly name: "serialize";
95
+ readonly outputs: readonly [{
96
+ readonly name: "serializedData";
97
+ readonly internalType: "bytes";
98
+ readonly type: "bytes";
99
+ }];
100
+ readonly stateMutability: "view";
101
+ }, {
102
+ readonly type: "function";
103
+ readonly inputs: readonly [];
104
+ readonly name: "targetContract";
105
+ readonly outputs: readonly [{
106
+ readonly name: "";
107
+ readonly internalType: "address";
108
+ readonly type: "address";
109
+ }];
110
+ readonly stateMutability: "view";
111
+ }, {
112
+ readonly type: "function";
113
+ readonly inputs: readonly [];
114
+ readonly name: "version";
115
+ readonly outputs: readonly [{
116
+ readonly name: "";
117
+ readonly internalType: "uint256";
118
+ readonly type: "uint256";
119
+ }];
120
+ readonly stateMutability: "view";
121
+ }];
6
122
  type abi = typeof abi;
7
123
  export declare class BalancerV3WrapperAdapterContract extends AbstractAdapterContract<abi> {
8
124
  readonly balancerPoolToken: Address;