@gearbox-protocol/sdk 3.0.0-next.55 → 3.0.0-next.56

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 (158) hide show
  1. package/contracts/index.sol +5 -0
  2. package/lib/core/creditAccount.d.ts +1 -2
  3. package/lib/core/creditAccount.js +0 -7
  4. package/lib/core/creditManager.js +1 -1
  5. package/lib/core/trade.d.ts +9 -8
  6. package/lib/core/trade.js +25 -22
  7. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +10 -8
  8. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
  9. package/lib/parsers/convexBoosterAdapterParser.js +6 -6
  10. package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
  11. package/lib/parsers/curveAdapterParser.js +10 -10
  12. package/lib/parsers/curveAdapterParser.spec.js +6 -2
  13. package/lib/parsers/lidoAdapterParser.js +3 -2
  14. package/lib/parsers/lidoAdapterParser.spec.js +2 -2
  15. package/lib/parsers/uniV2AdapterParser.js +4 -3
  16. package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
  17. package/lib/parsers/uniV3AdapterParser.js +8 -6
  18. package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
  19. package/lib/parsers/wstETHAdapterParser.js +6 -4
  20. package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
  21. package/lib/parsers/yearnAdapterParser.spec.js +4 -4
  22. package/lib/parsers/yearnV2AdapterParser.js +13 -3
  23. package/lib/pathfinder/core.d.ts +8 -9
  24. package/lib/pathfinder/pathfinder.d.ts +37 -10
  25. package/lib/pathfinder/pathfinder.js +45 -33
  26. package/lib/pathfinder/pathfinder.spec.js +4 -2
  27. package/lib/payload/creditAccount.d.ts +1 -2
  28. package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
  29. package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
  30. package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
  31. package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
  32. package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
  33. package/lib/types/IBalancerV2Vault.sol/index.js +2 -0
  34. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
  35. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js +2 -0
  36. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
  37. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js +2 -0
  38. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +27 -0
  39. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +2 -0
  40. package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  41. package/lib/types/IBalancerV2VaultAdapter.sol/index.js +2 -0
  42. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
  43. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +2 -0
  44. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
  45. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +2 -0
  46. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  47. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +2 -0
  48. package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +30 -30
  49. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts +21 -17
  50. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +45 -85
  51. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +24 -26
  52. package/lib/types/ICreditFacadeV3Multicall.d.ts +32 -40
  53. package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +99 -71
  54. package/lib/types/ICurveV1Adapter.d.ts +41 -105
  55. package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
  56. package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
  57. package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
  58. package/lib/types/IDataCompressorV2_10.d.ts +1 -27
  59. package/lib/types/IDataCompressorV3_00.d.ts +1 -27
  60. package/lib/types/IERC4626Adapter.d.ts +238 -0
  61. package/lib/types/IERC4626Adapter.js +2 -0
  62. package/lib/types/ILidoV1Adapter.d.ts +9 -9
  63. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +39 -14
  64. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +5 -3
  65. package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
  66. package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
  67. package/lib/types/IYearnV2Adapter.d.ts +22 -22
  68. package/lib/types/IwstETHV1Adapter.d.ts +17 -17
  69. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +158 -0
  70. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +215 -0
  71. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
  72. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
  73. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
  74. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +111 -0
  75. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
  76. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
  77. package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
  78. package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
  79. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
  80. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
  81. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
  82. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +24 -0
  83. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
  84. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
  85. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  86. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
  87. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
  88. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
  89. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
  90. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +30 -0
  91. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  92. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +10 -0
  93. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +18 -6
  94. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +22 -6
  95. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +10 -2
  96. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +12 -2
  97. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +13 -18
  98. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +14 -20
  99. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +13 -70
  100. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +14 -86
  101. package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +22 -24
  102. package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +28 -31
  103. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +153 -135
  104. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +191 -168
  105. package/lib/types/factories/ICurveV1Adapter__factory.d.ts +13 -71
  106. package/lib/types/factories/ICurveV1Adapter__factory.js +14 -91
  107. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +13 -71
  108. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +14 -91
  109. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +13 -71
  110. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +14 -91
  111. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +13 -71
  112. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +14 -91
  113. package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +0 -42
  114. package/lib/types/factories/IDataCompressorV2_10__factory.js +0 -54
  115. package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +0 -84
  116. package/lib/types/factories/IDataCompressorV3_00__factory.js +0 -108
  117. package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
  118. package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
  119. package/lib/types/factories/ILidoV1Adapter__factory.d.ts +6 -2
  120. package/lib/types/factories/ILidoV1Adapter__factory.js +8 -2
  121. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +5 -0
  122. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +6 -0
  123. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +45 -0
  124. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +59 -0
  125. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +5 -1
  126. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +6 -1
  127. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +12 -4
  128. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +14 -4
  129. package/lib/types/factories/IYearnV2Adapter__factory.d.ts +21 -13
  130. package/lib/types/factories/IYearnV2Adapter__factory.js +27 -15
  131. package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +12 -4
  132. package/lib/types/factories/IwstETHV1Adapter__factory.js +16 -4
  133. package/lib/types/factories/index.d.ts +7 -2
  134. package/lib/types/factories/index.js +12 -5
  135. package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +61 -6
  136. package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +77 -6
  137. package/lib/types/factories/interfaces/index.d.ts +1 -0
  138. package/lib/types/factories/interfaces/index.js +8 -0
  139. package/lib/types/index.d.ts +39 -17
  140. package/lib/types/index.js +39 -23
  141. package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +37 -34
  142. package/lib/types/interfaces/IRouter.js +2 -0
  143. package/lib/types/interfaces/index.d.ts +1 -0
  144. package/lib/types/interfaces/index.js +2 -0
  145. package/package.json +6 -6
  146. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3.d.ts +0 -370
  147. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.d.ts +0 -133
  148. package/lib/types/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  149. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts +0 -143
  150. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js +0 -188
  151. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts +0 -366
  152. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js +0 -479
  153. package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  154. package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
  155. /package/lib/types/{IRouter.js → IAaveV2_LendingPoolAdapter.js} +0 -0
  156. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
  157. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
  158. /package/lib/types/{IWithdrawalManagerV3.sol/index.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
@@ -0,0 +1,675 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IBalancerV2VaultAdapter__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "PoolNotSupportedException",
12
+ type: "error",
13
+ },
14
+ {
15
+ anonymous: false,
16
+ inputs: [
17
+ {
18
+ indexed: true,
19
+ internalType: "bytes32",
20
+ name: "poolId",
21
+ type: "bytes32",
22
+ },
23
+ {
24
+ indexed: false,
25
+ internalType: "enum PoolStatus",
26
+ name: "newStatus",
27
+ type: "uint8",
28
+ },
29
+ ],
30
+ name: "SetPoolStatus",
31
+ type: "event",
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: "_gearboxAdapterType",
36
+ outputs: [
37
+ {
38
+ internalType: "enum AdapterType",
39
+ name: "",
40
+ type: "uint8",
41
+ },
42
+ ],
43
+ stateMutability: "view",
44
+ type: "function",
45
+ },
46
+ {
47
+ inputs: [],
48
+ name: "_gearboxAdapterVersion",
49
+ outputs: [
50
+ {
51
+ internalType: "uint16",
52
+ name: "",
53
+ type: "uint16",
54
+ },
55
+ ],
56
+ stateMutability: "view",
57
+ type: "function",
58
+ },
59
+ {
60
+ inputs: [],
61
+ name: "addressProvider",
62
+ outputs: [
63
+ {
64
+ internalType: "address",
65
+ name: "",
66
+ type: "address",
67
+ },
68
+ ],
69
+ stateMutability: "view",
70
+ type: "function",
71
+ },
72
+ {
73
+ inputs: [
74
+ {
75
+ internalType: "enum SwapKind",
76
+ name: "kind",
77
+ type: "uint8",
78
+ },
79
+ {
80
+ components: [
81
+ {
82
+ internalType: "bytes32",
83
+ name: "poolId",
84
+ type: "bytes32",
85
+ },
86
+ {
87
+ internalType: "uint256",
88
+ name: "assetInIndex",
89
+ type: "uint256",
90
+ },
91
+ {
92
+ internalType: "uint256",
93
+ name: "assetOutIndex",
94
+ type: "uint256",
95
+ },
96
+ {
97
+ internalType: "uint256",
98
+ name: "amount",
99
+ type: "uint256",
100
+ },
101
+ {
102
+ internalType: "bytes",
103
+ name: "userData",
104
+ type: "bytes",
105
+ },
106
+ ],
107
+ internalType: "struct BatchSwapStep[]",
108
+ name: "swaps",
109
+ type: "tuple[]",
110
+ },
111
+ {
112
+ internalType: "contract IAsset[]",
113
+ name: "assets",
114
+ type: "address[]",
115
+ },
116
+ {
117
+ components: [
118
+ {
119
+ internalType: "address",
120
+ name: "sender",
121
+ type: "address",
122
+ },
123
+ {
124
+ internalType: "bool",
125
+ name: "fromInternalBalance",
126
+ type: "bool",
127
+ },
128
+ {
129
+ internalType: "address payable",
130
+ name: "recipient",
131
+ type: "address",
132
+ },
133
+ {
134
+ internalType: "bool",
135
+ name: "toInternalBalance",
136
+ type: "bool",
137
+ },
138
+ ],
139
+ internalType: "struct FundManagement",
140
+ name: "",
141
+ type: "tuple",
142
+ },
143
+ {
144
+ internalType: "int256[]",
145
+ name: "limits",
146
+ type: "int256[]",
147
+ },
148
+ {
149
+ internalType: "uint256",
150
+ name: "deadline",
151
+ type: "uint256",
152
+ },
153
+ ],
154
+ name: "batchSwap",
155
+ outputs: [
156
+ {
157
+ internalType: "uint256",
158
+ name: "tokensToEnable",
159
+ type: "uint256",
160
+ },
161
+ {
162
+ internalType: "uint256",
163
+ name: "tokensToDisable",
164
+ type: "uint256",
165
+ },
166
+ ],
167
+ stateMutability: "nonpayable",
168
+ type: "function",
169
+ },
170
+ {
171
+ inputs: [],
172
+ name: "creditManager",
173
+ outputs: [
174
+ {
175
+ internalType: "address",
176
+ name: "",
177
+ type: "address",
178
+ },
179
+ ],
180
+ stateMutability: "view",
181
+ type: "function",
182
+ },
183
+ {
184
+ inputs: [
185
+ {
186
+ internalType: "bytes32",
187
+ name: "poolId",
188
+ type: "bytes32",
189
+ },
190
+ {
191
+ internalType: "address",
192
+ name: "",
193
+ type: "address",
194
+ },
195
+ {
196
+ internalType: "address payable",
197
+ name: "",
198
+ type: "address",
199
+ },
200
+ {
201
+ components: [
202
+ {
203
+ internalType: "contract IAsset[]",
204
+ name: "assets",
205
+ type: "address[]",
206
+ },
207
+ {
208
+ internalType: "uint256[]",
209
+ name: "minAmountsOut",
210
+ type: "uint256[]",
211
+ },
212
+ {
213
+ internalType: "bytes",
214
+ name: "userData",
215
+ type: "bytes",
216
+ },
217
+ {
218
+ internalType: "bool",
219
+ name: "toInternalBalance",
220
+ type: "bool",
221
+ },
222
+ ],
223
+ internalType: "struct ExitPoolRequest",
224
+ name: "request",
225
+ type: "tuple",
226
+ },
227
+ ],
228
+ name: "exitPool",
229
+ outputs: [
230
+ {
231
+ internalType: "uint256",
232
+ name: "tokensToEnable",
233
+ type: "uint256",
234
+ },
235
+ {
236
+ internalType: "uint256",
237
+ name: "tokensToDisable",
238
+ type: "uint256",
239
+ },
240
+ ],
241
+ stateMutability: "nonpayable",
242
+ type: "function",
243
+ },
244
+ {
245
+ inputs: [
246
+ {
247
+ internalType: "bytes32",
248
+ name: "poolId",
249
+ type: "bytes32",
250
+ },
251
+ {
252
+ internalType: "contract IAsset",
253
+ name: "assetOut",
254
+ type: "address",
255
+ },
256
+ {
257
+ internalType: "uint256",
258
+ name: "amountIn",
259
+ type: "uint256",
260
+ },
261
+ {
262
+ internalType: "uint256",
263
+ name: "minAmountOut",
264
+ type: "uint256",
265
+ },
266
+ ],
267
+ name: "exitPoolSingleAsset",
268
+ outputs: [
269
+ {
270
+ internalType: "uint256",
271
+ name: "tokensToEnable",
272
+ type: "uint256",
273
+ },
274
+ {
275
+ internalType: "uint256",
276
+ name: "tokensToDisable",
277
+ type: "uint256",
278
+ },
279
+ ],
280
+ stateMutability: "nonpayable",
281
+ type: "function",
282
+ },
283
+ {
284
+ inputs: [
285
+ {
286
+ internalType: "bytes32",
287
+ name: "poolId",
288
+ type: "bytes32",
289
+ },
290
+ {
291
+ internalType: "contract IAsset",
292
+ name: "assetOut",
293
+ type: "address",
294
+ },
295
+ {
296
+ internalType: "uint256",
297
+ name: "leftoverAmount",
298
+ type: "uint256",
299
+ },
300
+ {
301
+ internalType: "uint256",
302
+ name: "minRateRAY",
303
+ type: "uint256",
304
+ },
305
+ ],
306
+ name: "exitPoolSingleAssetDiff",
307
+ outputs: [
308
+ {
309
+ internalType: "uint256",
310
+ name: "tokensToEnable",
311
+ type: "uint256",
312
+ },
313
+ {
314
+ internalType: "uint256",
315
+ name: "tokensToDisable",
316
+ type: "uint256",
317
+ },
318
+ ],
319
+ stateMutability: "nonpayable",
320
+ type: "function",
321
+ },
322
+ {
323
+ inputs: [
324
+ {
325
+ internalType: "bytes32",
326
+ name: "poolId",
327
+ type: "bytes32",
328
+ },
329
+ {
330
+ internalType: "address",
331
+ name: "",
332
+ type: "address",
333
+ },
334
+ {
335
+ internalType: "address",
336
+ name: "",
337
+ type: "address",
338
+ },
339
+ {
340
+ components: [
341
+ {
342
+ internalType: "contract IAsset[]",
343
+ name: "assets",
344
+ type: "address[]",
345
+ },
346
+ {
347
+ internalType: "uint256[]",
348
+ name: "maxAmountsIn",
349
+ type: "uint256[]",
350
+ },
351
+ {
352
+ internalType: "bytes",
353
+ name: "userData",
354
+ type: "bytes",
355
+ },
356
+ {
357
+ internalType: "bool",
358
+ name: "fromInternalBalance",
359
+ type: "bool",
360
+ },
361
+ ],
362
+ internalType: "struct JoinPoolRequest",
363
+ name: "request",
364
+ type: "tuple",
365
+ },
366
+ ],
367
+ name: "joinPool",
368
+ outputs: [
369
+ {
370
+ internalType: "uint256",
371
+ name: "tokensToEnable",
372
+ type: "uint256",
373
+ },
374
+ {
375
+ internalType: "uint256",
376
+ name: "tokensToDisable",
377
+ type: "uint256",
378
+ },
379
+ ],
380
+ stateMutability: "nonpayable",
381
+ type: "function",
382
+ },
383
+ {
384
+ inputs: [
385
+ {
386
+ internalType: "bytes32",
387
+ name: "poolId",
388
+ type: "bytes32",
389
+ },
390
+ {
391
+ internalType: "contract IAsset",
392
+ name: "assetIn",
393
+ type: "address",
394
+ },
395
+ {
396
+ internalType: "uint256",
397
+ name: "amountIn",
398
+ type: "uint256",
399
+ },
400
+ {
401
+ internalType: "uint256",
402
+ name: "minAmountOut",
403
+ type: "uint256",
404
+ },
405
+ ],
406
+ name: "joinPoolSingleAsset",
407
+ outputs: [
408
+ {
409
+ internalType: "uint256",
410
+ name: "tokensToEnable",
411
+ type: "uint256",
412
+ },
413
+ {
414
+ internalType: "uint256",
415
+ name: "tokensToDisable",
416
+ type: "uint256",
417
+ },
418
+ ],
419
+ stateMutability: "nonpayable",
420
+ type: "function",
421
+ },
422
+ {
423
+ inputs: [
424
+ {
425
+ internalType: "bytes32",
426
+ name: "poolId",
427
+ type: "bytes32",
428
+ },
429
+ {
430
+ internalType: "contract IAsset",
431
+ name: "assetIn",
432
+ type: "address",
433
+ },
434
+ {
435
+ internalType: "uint256",
436
+ name: "leftoverAmount",
437
+ type: "uint256",
438
+ },
439
+ {
440
+ internalType: "uint256",
441
+ name: "minRateRAY",
442
+ type: "uint256",
443
+ },
444
+ ],
445
+ name: "joinPoolSingleAssetDiff",
446
+ outputs: [
447
+ {
448
+ internalType: "uint256",
449
+ name: "tokensToEnable",
450
+ type: "uint256",
451
+ },
452
+ {
453
+ internalType: "uint256",
454
+ name: "tokensToDisable",
455
+ type: "uint256",
456
+ },
457
+ ],
458
+ stateMutability: "nonpayable",
459
+ type: "function",
460
+ },
461
+ {
462
+ inputs: [
463
+ {
464
+ internalType: "bytes32",
465
+ name: "poolId",
466
+ type: "bytes32",
467
+ },
468
+ ],
469
+ name: "poolStatus",
470
+ outputs: [
471
+ {
472
+ internalType: "enum PoolStatus",
473
+ name: "",
474
+ type: "uint8",
475
+ },
476
+ ],
477
+ stateMutability: "view",
478
+ type: "function",
479
+ },
480
+ {
481
+ inputs: [
482
+ {
483
+ internalType: "bytes32",
484
+ name: "poolId",
485
+ type: "bytes32",
486
+ },
487
+ {
488
+ internalType: "enum PoolStatus",
489
+ name: "newStatus",
490
+ type: "uint8",
491
+ },
492
+ ],
493
+ name: "setPoolStatus",
494
+ outputs: [],
495
+ stateMutability: "nonpayable",
496
+ type: "function",
497
+ },
498
+ {
499
+ inputs: [
500
+ {
501
+ components: [
502
+ {
503
+ internalType: "bytes32",
504
+ name: "poolId",
505
+ type: "bytes32",
506
+ },
507
+ {
508
+ internalType: "enum SwapKind",
509
+ name: "kind",
510
+ type: "uint8",
511
+ },
512
+ {
513
+ internalType: "contract IAsset",
514
+ name: "assetIn",
515
+ type: "address",
516
+ },
517
+ {
518
+ internalType: "contract IAsset",
519
+ name: "assetOut",
520
+ type: "address",
521
+ },
522
+ {
523
+ internalType: "uint256",
524
+ name: "amount",
525
+ type: "uint256",
526
+ },
527
+ {
528
+ internalType: "bytes",
529
+ name: "userData",
530
+ type: "bytes",
531
+ },
532
+ ],
533
+ internalType: "struct SingleSwap",
534
+ name: "singleSwap",
535
+ type: "tuple",
536
+ },
537
+ {
538
+ components: [
539
+ {
540
+ internalType: "address",
541
+ name: "sender",
542
+ type: "address",
543
+ },
544
+ {
545
+ internalType: "bool",
546
+ name: "fromInternalBalance",
547
+ type: "bool",
548
+ },
549
+ {
550
+ internalType: "address payable",
551
+ name: "recipient",
552
+ type: "address",
553
+ },
554
+ {
555
+ internalType: "bool",
556
+ name: "toInternalBalance",
557
+ type: "bool",
558
+ },
559
+ ],
560
+ internalType: "struct FundManagement",
561
+ name: "",
562
+ type: "tuple",
563
+ },
564
+ {
565
+ internalType: "uint256",
566
+ name: "limit",
567
+ type: "uint256",
568
+ },
569
+ {
570
+ internalType: "uint256",
571
+ name: "deadline",
572
+ type: "uint256",
573
+ },
574
+ ],
575
+ name: "swap",
576
+ outputs: [
577
+ {
578
+ internalType: "uint256",
579
+ name: "tokensToEnable",
580
+ type: "uint256",
581
+ },
582
+ {
583
+ internalType: "uint256",
584
+ name: "tokensToDisable",
585
+ type: "uint256",
586
+ },
587
+ ],
588
+ stateMutability: "nonpayable",
589
+ type: "function",
590
+ },
591
+ {
592
+ inputs: [
593
+ {
594
+ components: [
595
+ {
596
+ internalType: "bytes32",
597
+ name: "poolId",
598
+ type: "bytes32",
599
+ },
600
+ {
601
+ internalType: "uint256",
602
+ name: "leftoverAmount",
603
+ type: "uint256",
604
+ },
605
+ {
606
+ internalType: "contract IAsset",
607
+ name: "assetIn",
608
+ type: "address",
609
+ },
610
+ {
611
+ internalType: "contract IAsset",
612
+ name: "assetOut",
613
+ type: "address",
614
+ },
615
+ {
616
+ internalType: "bytes",
617
+ name: "userData",
618
+ type: "bytes",
619
+ },
620
+ ],
621
+ internalType: "struct SingleSwapDiff",
622
+ name: "singleSwapDiff",
623
+ type: "tuple",
624
+ },
625
+ {
626
+ internalType: "uint256",
627
+ name: "limitRateRAY",
628
+ type: "uint256",
629
+ },
630
+ {
631
+ internalType: "uint256",
632
+ name: "deadline",
633
+ type: "uint256",
634
+ },
635
+ ],
636
+ name: "swapDiff",
637
+ outputs: [
638
+ {
639
+ internalType: "uint256",
640
+ name: "tokensToEnable",
641
+ type: "uint256",
642
+ },
643
+ {
644
+ internalType: "uint256",
645
+ name: "tokensToDisable",
646
+ type: "uint256",
647
+ },
648
+ ],
649
+ stateMutability: "nonpayable",
650
+ type: "function",
651
+ },
652
+ {
653
+ inputs: [],
654
+ name: "targetContract",
655
+ outputs: [
656
+ {
657
+ internalType: "address",
658
+ name: "",
659
+ type: "address",
660
+ },
661
+ ],
662
+ stateMutability: "view",
663
+ type: "function",
664
+ },
665
+ ];
666
+ class IBalancerV2VaultAdapter__factory {
667
+ static abi = _abi;
668
+ static createInterface() {
669
+ return new ethers_1.utils.Interface(_abi);
670
+ }
671
+ static connect(address, signerOrProvider) {
672
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
673
+ }
674
+ }
675
+ exports.IBalancerV2VaultAdapter__factory = IBalancerV2VaultAdapter__factory;
@@ -0,0 +1,3 @@
1
+ export { IBalancerV2VaultAdapter__factory } from "./IBalancerV2VaultAdapter__factory";
2
+ export { IBalancerV2VaultAdapterEvents__factory } from "./IBalancerV2VaultAdapterEvents__factory";
3
+ export { IBalancerV2VaultAdapterExceptions__factory } from "./IBalancerV2VaultAdapterExceptions__factory";
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IBalancerV2VaultAdapterExceptions__factory = exports.IBalancerV2VaultAdapterEvents__factory = exports.IBalancerV2VaultAdapter__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IBalancerV2VaultAdapter__factory_1 = require("./IBalancerV2VaultAdapter__factory");
8
+ Object.defineProperty(exports, "IBalancerV2VaultAdapter__factory", { enumerable: true, get: function () { return IBalancerV2VaultAdapter__factory_1.IBalancerV2VaultAdapter__factory; } });
9
+ var IBalancerV2VaultAdapterEvents__factory_1 = require("./IBalancerV2VaultAdapterEvents__factory");
10
+ Object.defineProperty(exports, "IBalancerV2VaultAdapterEvents__factory", { enumerable: true, get: function () { return IBalancerV2VaultAdapterEvents__factory_1.IBalancerV2VaultAdapterEvents__factory; } });
11
+ var IBalancerV2VaultAdapterExceptions__factory_1 = require("./IBalancerV2VaultAdapterExceptions__factory");
12
+ Object.defineProperty(exports, "IBalancerV2VaultAdapterExceptions__factory", { enumerable: true, get: function () { return IBalancerV2VaultAdapterExceptions__factory_1.IBalancerV2VaultAdapterExceptions__factory; } });