@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
@@ -0,0 +1,220 @@
1
+ export declare const mellowFlexibleRedeemSubcompressorAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "contractType";
4
+ readonly inputs: readonly [];
5
+ readonly outputs: readonly [{
6
+ readonly name: "";
7
+ readonly type: "bytes32";
8
+ readonly internalType: "bytes32";
9
+ }];
10
+ readonly stateMutability: "view";
11
+ }, {
12
+ readonly type: "function";
13
+ readonly name: "getCurrentWithdrawals";
14
+ readonly inputs: readonly [{
15
+ readonly name: "creditAccount";
16
+ readonly type: "address";
17
+ readonly internalType: "address";
18
+ }, {
19
+ readonly name: "token";
20
+ readonly type: "address";
21
+ readonly internalType: "address";
22
+ }];
23
+ readonly outputs: readonly [{
24
+ readonly name: "";
25
+ readonly type: "tuple[]";
26
+ readonly internalType: "struct ClaimableWithdrawal[]";
27
+ readonly components: readonly [{
28
+ readonly name: "token";
29
+ readonly type: "address";
30
+ readonly internalType: "address";
31
+ }, {
32
+ readonly name: "withdrawalPhantomToken";
33
+ readonly type: "address";
34
+ readonly internalType: "address";
35
+ }, {
36
+ readonly name: "withdrawalTokenSpent";
37
+ readonly type: "uint256";
38
+ readonly internalType: "uint256";
39
+ }, {
40
+ readonly name: "outputs";
41
+ readonly type: "tuple[]";
42
+ readonly internalType: "struct WithdrawalOutput[]";
43
+ readonly components: readonly [{
44
+ readonly name: "token";
45
+ readonly type: "address";
46
+ readonly internalType: "address";
47
+ }, {
48
+ readonly name: "isDelayed";
49
+ readonly type: "bool";
50
+ readonly internalType: "bool";
51
+ }, {
52
+ readonly name: "amount";
53
+ readonly type: "uint256";
54
+ readonly internalType: "uint256";
55
+ }];
56
+ }, {
57
+ readonly name: "claimCalls";
58
+ readonly type: "tuple[]";
59
+ readonly internalType: "struct MultiCall[]";
60
+ readonly components: readonly [{
61
+ readonly name: "target";
62
+ readonly type: "address";
63
+ readonly internalType: "address";
64
+ }, {
65
+ readonly name: "callData";
66
+ readonly type: "bytes";
67
+ readonly internalType: "bytes";
68
+ }];
69
+ }];
70
+ }, {
71
+ readonly name: "";
72
+ readonly type: "tuple[]";
73
+ readonly internalType: "struct PendingWithdrawal[]";
74
+ readonly components: readonly [{
75
+ readonly name: "token";
76
+ readonly type: "address";
77
+ readonly internalType: "address";
78
+ }, {
79
+ readonly name: "withdrawalPhantomToken";
80
+ readonly type: "address";
81
+ readonly internalType: "address";
82
+ }, {
83
+ readonly name: "expectedOutputs";
84
+ readonly type: "tuple[]";
85
+ readonly internalType: "struct WithdrawalOutput[]";
86
+ readonly components: readonly [{
87
+ readonly name: "token";
88
+ readonly type: "address";
89
+ readonly internalType: "address";
90
+ }, {
91
+ readonly name: "isDelayed";
92
+ readonly type: "bool";
93
+ readonly internalType: "bool";
94
+ }, {
95
+ readonly name: "amount";
96
+ readonly type: "uint256";
97
+ readonly internalType: "uint256";
98
+ }];
99
+ }, {
100
+ readonly name: "claimableAt";
101
+ readonly type: "uint256";
102
+ readonly internalType: "uint256";
103
+ }];
104
+ }];
105
+ readonly stateMutability: "view";
106
+ }, {
107
+ readonly type: "function";
108
+ readonly name: "getWithdrawableAssets";
109
+ readonly inputs: readonly [{
110
+ readonly name: "";
111
+ readonly type: "address";
112
+ readonly internalType: "address";
113
+ }, {
114
+ readonly name: "token";
115
+ readonly type: "address";
116
+ readonly internalType: "address";
117
+ }];
118
+ readonly outputs: readonly [{
119
+ readonly name: "";
120
+ readonly type: "tuple[]";
121
+ readonly internalType: "struct WithdrawableAsset[]";
122
+ readonly components: readonly [{
123
+ readonly name: "token";
124
+ readonly type: "address";
125
+ readonly internalType: "address";
126
+ }, {
127
+ readonly name: "withdrawalPhantomToken";
128
+ readonly type: "address";
129
+ readonly internalType: "address";
130
+ }, {
131
+ readonly name: "underlying";
132
+ readonly type: "address";
133
+ readonly internalType: "address";
134
+ }, {
135
+ readonly name: "withdrawalLength";
136
+ readonly type: "uint256";
137
+ readonly internalType: "uint256";
138
+ }];
139
+ }];
140
+ readonly stateMutability: "view";
141
+ }, {
142
+ readonly type: "function";
143
+ readonly name: "getWithdrawalRequestResult";
144
+ readonly inputs: readonly [{
145
+ readonly name: "creditAccount";
146
+ readonly type: "address";
147
+ readonly internalType: "address";
148
+ }, {
149
+ readonly name: "token";
150
+ readonly type: "address";
151
+ readonly internalType: "address";
152
+ }, {
153
+ readonly name: "withdrawalToken";
154
+ readonly type: "address";
155
+ readonly internalType: "address";
156
+ }, {
157
+ readonly name: "amount";
158
+ readonly type: "uint256";
159
+ readonly internalType: "uint256";
160
+ }];
161
+ readonly outputs: readonly [{
162
+ readonly name: "requestableWithdrawal";
163
+ readonly type: "tuple";
164
+ readonly internalType: "struct RequestableWithdrawal";
165
+ readonly components: readonly [{
166
+ readonly name: "token";
167
+ readonly type: "address";
168
+ readonly internalType: "address";
169
+ }, {
170
+ readonly name: "amountIn";
171
+ readonly type: "uint256";
172
+ readonly internalType: "uint256";
173
+ }, {
174
+ readonly name: "outputs";
175
+ readonly type: "tuple[]";
176
+ readonly internalType: "struct WithdrawalOutput[]";
177
+ readonly components: readonly [{
178
+ readonly name: "token";
179
+ readonly type: "address";
180
+ readonly internalType: "address";
181
+ }, {
182
+ readonly name: "isDelayed";
183
+ readonly type: "bool";
184
+ readonly internalType: "bool";
185
+ }, {
186
+ readonly name: "amount";
187
+ readonly type: "uint256";
188
+ readonly internalType: "uint256";
189
+ }];
190
+ }, {
191
+ readonly name: "requestCalls";
192
+ readonly type: "tuple[]";
193
+ readonly internalType: "struct MultiCall[]";
194
+ readonly components: readonly [{
195
+ readonly name: "target";
196
+ readonly type: "address";
197
+ readonly internalType: "address";
198
+ }, {
199
+ readonly name: "callData";
200
+ readonly type: "bytes";
201
+ readonly internalType: "bytes";
202
+ }];
203
+ }, {
204
+ readonly name: "claimableAt";
205
+ readonly type: "uint256";
206
+ readonly internalType: "uint256";
207
+ }];
208
+ }];
209
+ readonly stateMutability: "view";
210
+ }, {
211
+ readonly type: "function";
212
+ readonly name: "version";
213
+ readonly inputs: readonly [];
214
+ readonly outputs: readonly [{
215
+ readonly name: "";
216
+ readonly type: "uint256";
217
+ readonly internalType: "uint256";
218
+ }];
219
+ readonly stateMutability: "view";
220
+ }];
@@ -231,6 +231,75 @@ export declare const withdrawalCompressorAbi: readonly [{
231
231
  }];
232
232
  }];
233
233
  readonly stateMutability: "view";
234
+ }, {
235
+ readonly type: "function";
236
+ readonly name: "getWithdrawalRequestResult";
237
+ readonly inputs: readonly [{
238
+ readonly name: "creditAccount";
239
+ readonly type: "address";
240
+ readonly internalType: "address";
241
+ }, {
242
+ readonly name: "token";
243
+ readonly type: "address";
244
+ readonly internalType: "address";
245
+ }, {
246
+ readonly name: "withdrawalToken";
247
+ readonly type: "address";
248
+ readonly internalType: "address";
249
+ }, {
250
+ readonly name: "amount";
251
+ readonly type: "uint256";
252
+ readonly internalType: "uint256";
253
+ }];
254
+ readonly outputs: readonly [{
255
+ readonly name: "withdrawal";
256
+ readonly type: "tuple";
257
+ readonly internalType: "struct RequestableWithdrawal";
258
+ readonly components: readonly [{
259
+ readonly name: "token";
260
+ readonly type: "address";
261
+ readonly internalType: "address";
262
+ }, {
263
+ readonly name: "amountIn";
264
+ readonly type: "uint256";
265
+ readonly internalType: "uint256";
266
+ }, {
267
+ readonly name: "outputs";
268
+ readonly type: "tuple[]";
269
+ readonly internalType: "struct WithdrawalOutput[]";
270
+ readonly components: readonly [{
271
+ readonly name: "token";
272
+ readonly type: "address";
273
+ readonly internalType: "address";
274
+ }, {
275
+ readonly name: "isDelayed";
276
+ readonly type: "bool";
277
+ readonly internalType: "bool";
278
+ }, {
279
+ readonly name: "amount";
280
+ readonly type: "uint256";
281
+ readonly internalType: "uint256";
282
+ }];
283
+ }, {
284
+ readonly name: "requestCalls";
285
+ readonly type: "tuple[]";
286
+ readonly internalType: "struct MultiCall[]";
287
+ readonly components: readonly [{
288
+ readonly name: "target";
289
+ readonly type: "address";
290
+ readonly internalType: "address";
291
+ }, {
292
+ readonly name: "callData";
293
+ readonly type: "bytes";
294
+ readonly internalType: "bytes";
295
+ }];
296
+ }, {
297
+ readonly name: "claimableAt";
298
+ readonly type: "uint256";
299
+ readonly internalType: "uint256";
300
+ }];
301
+ }];
302
+ readonly stateMutability: "view";
234
303
  }, {
235
304
  readonly type: "function";
236
305
  readonly name: "owner";