@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,163 @@
1
+ const mellowFlexibleRedeemSubcompressorAbi = [
2
+ {
3
+ type: "function",
4
+ name: "contractType",
5
+ inputs: [],
6
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
7
+ stateMutability: "view"
8
+ },
9
+ {
10
+ type: "function",
11
+ name: "getCurrentWithdrawals",
12
+ inputs: [
13
+ { name: "creditAccount", type: "address", internalType: "address" },
14
+ { name: "token", type: "address", internalType: "address" }
15
+ ],
16
+ outputs: [
17
+ {
18
+ name: "",
19
+ type: "tuple[]",
20
+ internalType: "struct ClaimableWithdrawal[]",
21
+ components: [
22
+ { name: "token", type: "address", internalType: "address" },
23
+ {
24
+ name: "withdrawalPhantomToken",
25
+ type: "address",
26
+ internalType: "address"
27
+ },
28
+ {
29
+ name: "withdrawalTokenSpent",
30
+ type: "uint256",
31
+ internalType: "uint256"
32
+ },
33
+ {
34
+ name: "outputs",
35
+ type: "tuple[]",
36
+ internalType: "struct WithdrawalOutput[]",
37
+ components: [
38
+ { name: "token", type: "address", internalType: "address" },
39
+ { name: "isDelayed", type: "bool", internalType: "bool" },
40
+ { name: "amount", type: "uint256", internalType: "uint256" }
41
+ ]
42
+ },
43
+ {
44
+ name: "claimCalls",
45
+ type: "tuple[]",
46
+ internalType: "struct MultiCall[]",
47
+ components: [
48
+ { name: "target", type: "address", internalType: "address" },
49
+ { name: "callData", type: "bytes", internalType: "bytes" }
50
+ ]
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ name: "",
56
+ type: "tuple[]",
57
+ internalType: "struct PendingWithdrawal[]",
58
+ components: [
59
+ { name: "token", type: "address", internalType: "address" },
60
+ {
61
+ name: "withdrawalPhantomToken",
62
+ type: "address",
63
+ internalType: "address"
64
+ },
65
+ {
66
+ name: "expectedOutputs",
67
+ type: "tuple[]",
68
+ internalType: "struct WithdrawalOutput[]",
69
+ components: [
70
+ { name: "token", type: "address", internalType: "address" },
71
+ { name: "isDelayed", type: "bool", internalType: "bool" },
72
+ { name: "amount", type: "uint256", internalType: "uint256" }
73
+ ]
74
+ },
75
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
76
+ ]
77
+ }
78
+ ],
79
+ stateMutability: "view"
80
+ },
81
+ {
82
+ type: "function",
83
+ name: "getWithdrawableAssets",
84
+ inputs: [
85
+ { name: "", type: "address", internalType: "address" },
86
+ { name: "token", type: "address", internalType: "address" }
87
+ ],
88
+ outputs: [
89
+ {
90
+ name: "",
91
+ type: "tuple[]",
92
+ internalType: "struct WithdrawableAsset[]",
93
+ components: [
94
+ { name: "token", type: "address", internalType: "address" },
95
+ {
96
+ name: "withdrawalPhantomToken",
97
+ type: "address",
98
+ internalType: "address"
99
+ },
100
+ { name: "underlying", type: "address", internalType: "address" },
101
+ {
102
+ name: "withdrawalLength",
103
+ type: "uint256",
104
+ internalType: "uint256"
105
+ }
106
+ ]
107
+ }
108
+ ],
109
+ stateMutability: "view"
110
+ },
111
+ {
112
+ type: "function",
113
+ name: "getWithdrawalRequestResult",
114
+ inputs: [
115
+ { name: "creditAccount", type: "address", internalType: "address" },
116
+ { name: "token", type: "address", internalType: "address" },
117
+ { name: "withdrawalToken", type: "address", internalType: "address" },
118
+ { name: "amount", type: "uint256", internalType: "uint256" }
119
+ ],
120
+ outputs: [
121
+ {
122
+ name: "requestableWithdrawal",
123
+ type: "tuple",
124
+ internalType: "struct RequestableWithdrawal",
125
+ components: [
126
+ { name: "token", type: "address", internalType: "address" },
127
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
128
+ {
129
+ name: "outputs",
130
+ type: "tuple[]",
131
+ internalType: "struct WithdrawalOutput[]",
132
+ components: [
133
+ { name: "token", type: "address", internalType: "address" },
134
+ { name: "isDelayed", type: "bool", internalType: "bool" },
135
+ { name: "amount", type: "uint256", internalType: "uint256" }
136
+ ]
137
+ },
138
+ {
139
+ name: "requestCalls",
140
+ type: "tuple[]",
141
+ internalType: "struct MultiCall[]",
142
+ components: [
143
+ { name: "target", type: "address", internalType: "address" },
144
+ { name: "callData", type: "bytes", internalType: "bytes" }
145
+ ]
146
+ },
147
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
148
+ ]
149
+ }
150
+ ],
151
+ stateMutability: "view"
152
+ },
153
+ {
154
+ type: "function",
155
+ name: "version",
156
+ inputs: [],
157
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
158
+ stateMutability: "view"
159
+ }
160
+ ];
161
+ export {
162
+ mellowFlexibleRedeemSubcompressorAbi
163
+ };
@@ -169,6 +169,48 @@ const withdrawalCompressorAbi = [
169
169
  ],
170
170
  stateMutability: "view"
171
171
  },
172
+ {
173
+ type: "function",
174
+ name: "getWithdrawalRequestResult",
175
+ inputs: [
176
+ { name: "creditAccount", type: "address", internalType: "address" },
177
+ { name: "token", type: "address", internalType: "address" },
178
+ { name: "withdrawalToken", type: "address", internalType: "address" },
179
+ { name: "amount", type: "uint256", internalType: "uint256" }
180
+ ],
181
+ outputs: [
182
+ {
183
+ name: "withdrawal",
184
+ type: "tuple",
185
+ internalType: "struct RequestableWithdrawal",
186
+ components: [
187
+ { name: "token", type: "address", internalType: "address" },
188
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
189
+ {
190
+ name: "outputs",
191
+ type: "tuple[]",
192
+ internalType: "struct WithdrawalOutput[]",
193
+ components: [
194
+ { name: "token", type: "address", internalType: "address" },
195
+ { name: "isDelayed", type: "bool", internalType: "bool" },
196
+ { name: "amount", type: "uint256", internalType: "uint256" }
197
+ ]
198
+ },
199
+ {
200
+ name: "requestCalls",
201
+ type: "tuple[]",
202
+ internalType: "struct MultiCall[]",
203
+ components: [
204
+ { name: "target", type: "address", internalType: "address" },
205
+ { name: "callData", type: "bytes", internalType: "bytes" }
206
+ ]
207
+ },
208
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
209
+ ]
210
+ }
211
+ ],
212
+ stateMutability: "view"
213
+ },
172
214
  {
173
215
  type: "function",
174
216
  name: "owner",