@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,475 @@
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.IBalancerV2Vault__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "enum SwapKind",
13
+ name: "kind",
14
+ type: "uint8",
15
+ },
16
+ {
17
+ components: [
18
+ {
19
+ internalType: "bytes32",
20
+ name: "poolId",
21
+ type: "bytes32",
22
+ },
23
+ {
24
+ internalType: "uint256",
25
+ name: "assetInIndex",
26
+ type: "uint256",
27
+ },
28
+ {
29
+ internalType: "uint256",
30
+ name: "assetOutIndex",
31
+ type: "uint256",
32
+ },
33
+ {
34
+ internalType: "uint256",
35
+ name: "amount",
36
+ type: "uint256",
37
+ },
38
+ {
39
+ internalType: "bytes",
40
+ name: "userData",
41
+ type: "bytes",
42
+ },
43
+ ],
44
+ internalType: "struct BatchSwapStep[]",
45
+ name: "swaps",
46
+ type: "tuple[]",
47
+ },
48
+ {
49
+ internalType: "contract IAsset[]",
50
+ name: "assets",
51
+ type: "address[]",
52
+ },
53
+ {
54
+ components: [
55
+ {
56
+ internalType: "address",
57
+ name: "sender",
58
+ type: "address",
59
+ },
60
+ {
61
+ internalType: "bool",
62
+ name: "fromInternalBalance",
63
+ type: "bool",
64
+ },
65
+ {
66
+ internalType: "address payable",
67
+ name: "recipient",
68
+ type: "address",
69
+ },
70
+ {
71
+ internalType: "bool",
72
+ name: "toInternalBalance",
73
+ type: "bool",
74
+ },
75
+ ],
76
+ internalType: "struct FundManagement",
77
+ name: "funds",
78
+ type: "tuple",
79
+ },
80
+ {
81
+ internalType: "int256[]",
82
+ name: "limits",
83
+ type: "int256[]",
84
+ },
85
+ {
86
+ internalType: "uint256",
87
+ name: "deadline",
88
+ type: "uint256",
89
+ },
90
+ ],
91
+ name: "batchSwap",
92
+ outputs: [
93
+ {
94
+ internalType: "int256[]",
95
+ name: "assetDeltas",
96
+ type: "int256[]",
97
+ },
98
+ ],
99
+ stateMutability: "nonpayable",
100
+ type: "function",
101
+ },
102
+ {
103
+ inputs: [
104
+ {
105
+ internalType: "bytes32",
106
+ name: "poolId",
107
+ type: "bytes32",
108
+ },
109
+ {
110
+ internalType: "address",
111
+ name: "sender",
112
+ type: "address",
113
+ },
114
+ {
115
+ internalType: "address payable",
116
+ name: "recipient",
117
+ type: "address",
118
+ },
119
+ {
120
+ components: [
121
+ {
122
+ internalType: "contract IAsset[]",
123
+ name: "assets",
124
+ type: "address[]",
125
+ },
126
+ {
127
+ internalType: "uint256[]",
128
+ name: "minAmountsOut",
129
+ type: "uint256[]",
130
+ },
131
+ {
132
+ internalType: "bytes",
133
+ name: "userData",
134
+ type: "bytes",
135
+ },
136
+ {
137
+ internalType: "bool",
138
+ name: "toInternalBalance",
139
+ type: "bool",
140
+ },
141
+ ],
142
+ internalType: "struct ExitPoolRequest",
143
+ name: "request",
144
+ type: "tuple",
145
+ },
146
+ ],
147
+ name: "exitPool",
148
+ outputs: [],
149
+ stateMutability: "nonpayable",
150
+ type: "function",
151
+ },
152
+ {
153
+ inputs: [
154
+ {
155
+ internalType: "bytes32",
156
+ name: "poolId",
157
+ type: "bytes32",
158
+ },
159
+ ],
160
+ name: "getPool",
161
+ outputs: [
162
+ {
163
+ internalType: "address",
164
+ name: "",
165
+ type: "address",
166
+ },
167
+ {
168
+ internalType: "enum PoolSpecialization",
169
+ name: "",
170
+ type: "uint8",
171
+ },
172
+ ],
173
+ stateMutability: "view",
174
+ type: "function",
175
+ },
176
+ {
177
+ inputs: [
178
+ {
179
+ internalType: "bytes32",
180
+ name: "poolId",
181
+ type: "bytes32",
182
+ },
183
+ {
184
+ internalType: "contract IERC20",
185
+ name: "token",
186
+ type: "address",
187
+ },
188
+ ],
189
+ name: "getPoolTokenInfo",
190
+ outputs: [
191
+ {
192
+ internalType: "uint256",
193
+ name: "cash",
194
+ type: "uint256",
195
+ },
196
+ {
197
+ internalType: "uint256",
198
+ name: "managed",
199
+ type: "uint256",
200
+ },
201
+ {
202
+ internalType: "uint256",
203
+ name: "lastChangeBlock",
204
+ type: "uint256",
205
+ },
206
+ {
207
+ internalType: "address",
208
+ name: "assetManager",
209
+ type: "address",
210
+ },
211
+ ],
212
+ stateMutability: "view",
213
+ type: "function",
214
+ },
215
+ {
216
+ inputs: [
217
+ {
218
+ internalType: "bytes32",
219
+ name: "poolId",
220
+ type: "bytes32",
221
+ },
222
+ ],
223
+ name: "getPoolTokens",
224
+ outputs: [
225
+ {
226
+ internalType: "contract IERC20[]",
227
+ name: "tokens",
228
+ type: "address[]",
229
+ },
230
+ {
231
+ internalType: "uint256[]",
232
+ name: "balances",
233
+ type: "uint256[]",
234
+ },
235
+ {
236
+ internalType: "uint256",
237
+ name: "lastChangeBlock",
238
+ type: "uint256",
239
+ },
240
+ ],
241
+ stateMutability: "view",
242
+ type: "function",
243
+ },
244
+ {
245
+ inputs: [
246
+ {
247
+ internalType: "bytes32",
248
+ name: "poolId",
249
+ type: "bytes32",
250
+ },
251
+ {
252
+ internalType: "address",
253
+ name: "sender",
254
+ type: "address",
255
+ },
256
+ {
257
+ internalType: "address",
258
+ name: "recipient",
259
+ type: "address",
260
+ },
261
+ {
262
+ components: [
263
+ {
264
+ internalType: "contract IAsset[]",
265
+ name: "assets",
266
+ type: "address[]",
267
+ },
268
+ {
269
+ internalType: "uint256[]",
270
+ name: "maxAmountsIn",
271
+ type: "uint256[]",
272
+ },
273
+ {
274
+ internalType: "bytes",
275
+ name: "userData",
276
+ type: "bytes",
277
+ },
278
+ {
279
+ internalType: "bool",
280
+ name: "fromInternalBalance",
281
+ type: "bool",
282
+ },
283
+ ],
284
+ internalType: "struct JoinPoolRequest",
285
+ name: "request",
286
+ type: "tuple",
287
+ },
288
+ ],
289
+ name: "joinPool",
290
+ outputs: [],
291
+ stateMutability: "nonpayable",
292
+ type: "function",
293
+ },
294
+ {
295
+ inputs: [
296
+ {
297
+ internalType: "enum SwapKind",
298
+ name: "kind",
299
+ type: "uint8",
300
+ },
301
+ {
302
+ components: [
303
+ {
304
+ internalType: "bytes32",
305
+ name: "poolId",
306
+ type: "bytes32",
307
+ },
308
+ {
309
+ internalType: "uint256",
310
+ name: "assetInIndex",
311
+ type: "uint256",
312
+ },
313
+ {
314
+ internalType: "uint256",
315
+ name: "assetOutIndex",
316
+ type: "uint256",
317
+ },
318
+ {
319
+ internalType: "uint256",
320
+ name: "amount",
321
+ type: "uint256",
322
+ },
323
+ {
324
+ internalType: "bytes",
325
+ name: "userData",
326
+ type: "bytes",
327
+ },
328
+ ],
329
+ internalType: "struct BatchSwapStep[]",
330
+ name: "swaps",
331
+ type: "tuple[]",
332
+ },
333
+ {
334
+ internalType: "contract IAsset[]",
335
+ name: "assets",
336
+ type: "address[]",
337
+ },
338
+ {
339
+ components: [
340
+ {
341
+ internalType: "address",
342
+ name: "sender",
343
+ type: "address",
344
+ },
345
+ {
346
+ internalType: "bool",
347
+ name: "fromInternalBalance",
348
+ type: "bool",
349
+ },
350
+ {
351
+ internalType: "address payable",
352
+ name: "recipient",
353
+ type: "address",
354
+ },
355
+ {
356
+ internalType: "bool",
357
+ name: "toInternalBalance",
358
+ type: "bool",
359
+ },
360
+ ],
361
+ internalType: "struct FundManagement",
362
+ name: "funds",
363
+ type: "tuple",
364
+ },
365
+ ],
366
+ name: "queryBatchSwap",
367
+ outputs: [
368
+ {
369
+ internalType: "int256[]",
370
+ name: "assetDeltas",
371
+ type: "int256[]",
372
+ },
373
+ ],
374
+ stateMutability: "nonpayable",
375
+ type: "function",
376
+ },
377
+ {
378
+ inputs: [
379
+ {
380
+ components: [
381
+ {
382
+ internalType: "bytes32",
383
+ name: "poolId",
384
+ type: "bytes32",
385
+ },
386
+ {
387
+ internalType: "enum SwapKind",
388
+ name: "kind",
389
+ type: "uint8",
390
+ },
391
+ {
392
+ internalType: "contract IAsset",
393
+ name: "assetIn",
394
+ type: "address",
395
+ },
396
+ {
397
+ internalType: "contract IAsset",
398
+ name: "assetOut",
399
+ type: "address",
400
+ },
401
+ {
402
+ internalType: "uint256",
403
+ name: "amount",
404
+ type: "uint256",
405
+ },
406
+ {
407
+ internalType: "bytes",
408
+ name: "userData",
409
+ type: "bytes",
410
+ },
411
+ ],
412
+ internalType: "struct SingleSwap",
413
+ name: "singleSwap",
414
+ type: "tuple",
415
+ },
416
+ {
417
+ components: [
418
+ {
419
+ internalType: "address",
420
+ name: "sender",
421
+ type: "address",
422
+ },
423
+ {
424
+ internalType: "bool",
425
+ name: "fromInternalBalance",
426
+ type: "bool",
427
+ },
428
+ {
429
+ internalType: "address payable",
430
+ name: "recipient",
431
+ type: "address",
432
+ },
433
+ {
434
+ internalType: "bool",
435
+ name: "toInternalBalance",
436
+ type: "bool",
437
+ },
438
+ ],
439
+ internalType: "struct FundManagement",
440
+ name: "funds",
441
+ type: "tuple",
442
+ },
443
+ {
444
+ internalType: "uint256",
445
+ name: "limit",
446
+ type: "uint256",
447
+ },
448
+ {
449
+ internalType: "uint256",
450
+ name: "deadline",
451
+ type: "uint256",
452
+ },
453
+ ],
454
+ name: "swap",
455
+ outputs: [
456
+ {
457
+ internalType: "uint256",
458
+ name: "amountCalculated",
459
+ type: "uint256",
460
+ },
461
+ ],
462
+ stateMutability: "nonpayable",
463
+ type: "function",
464
+ },
465
+ ];
466
+ class IBalancerV2Vault__factory {
467
+ static abi = _abi;
468
+ static createInterface() {
469
+ return new ethers_1.utils.Interface(_abi);
470
+ }
471
+ static connect(address, signerOrProvider) {
472
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
473
+ }
474
+ }
475
+ exports.IBalancerV2Vault__factory = IBalancerV2Vault__factory;
@@ -0,0 +1,2 @@
1
+ export { IBalancerV2Vault__factory } from "./IBalancerV2Vault__factory";
2
+ export { IBalancerV2VaultGetters__factory } from "./IBalancerV2VaultGetters__factory";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IBalancerV2VaultGetters__factory = exports.IBalancerV2Vault__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IBalancerV2Vault__factory_1 = require("./IBalancerV2Vault__factory");
8
+ Object.defineProperty(exports, "IBalancerV2Vault__factory", { enumerable: true, get: function () { return IBalancerV2Vault__factory_1.IBalancerV2Vault__factory; } });
9
+ var IBalancerV2VaultGetters__factory_1 = require("./IBalancerV2VaultGetters__factory");
10
+ Object.defineProperty(exports, "IBalancerV2VaultGetters__factory", { enumerable: true, get: function () { return IBalancerV2VaultGetters__factory_1.IBalancerV2VaultGetters__factory; } });
@@ -0,0 +1,23 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IBalancerV2VaultAdapterEvents, IBalancerV2VaultAdapterEventsInterface } from "../../IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents";
4
+ export declare class IBalancerV2VaultAdapterEvents__factory {
5
+ static readonly abi: readonly [{
6
+ readonly anonymous: false;
7
+ readonly inputs: readonly [{
8
+ readonly indexed: true;
9
+ readonly internalType: "bytes32";
10
+ readonly name: "poolId";
11
+ readonly type: "bytes32";
12
+ }, {
13
+ readonly indexed: false;
14
+ readonly internalType: "enum PoolStatus";
15
+ readonly name: "newStatus";
16
+ readonly type: "uint8";
17
+ }];
18
+ readonly name: "SetPoolStatus";
19
+ readonly type: "event";
20
+ }];
21
+ static createInterface(): IBalancerV2VaultAdapterEventsInterface;
22
+ static connect(address: string, signerOrProvider: Signer | Provider): IBalancerV2VaultAdapterEvents;
23
+ }
@@ -0,0 +1,38 @@
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.IBalancerV2VaultAdapterEvents__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "bytes32",
15
+ name: "poolId",
16
+ type: "bytes32",
17
+ },
18
+ {
19
+ indexed: false,
20
+ internalType: "enum PoolStatus",
21
+ name: "newStatus",
22
+ type: "uint8",
23
+ },
24
+ ],
25
+ name: "SetPoolStatus",
26
+ type: "event",
27
+ },
28
+ ];
29
+ class IBalancerV2VaultAdapterEvents__factory {
30
+ static abi = _abi;
31
+ static createInterface() {
32
+ return new ethers_1.utils.Interface(_abi);
33
+ }
34
+ static connect(address, signerOrProvider) {
35
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
36
+ }
37
+ }
38
+ exports.IBalancerV2VaultAdapterEvents__factory = IBalancerV2VaultAdapterEvents__factory;
@@ -0,0 +1,12 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IBalancerV2VaultAdapterExceptions, IBalancerV2VaultAdapterExceptionsInterface } from "../../IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions";
4
+ export declare class IBalancerV2VaultAdapterExceptions__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [];
7
+ readonly name: "PoolNotSupportedException";
8
+ readonly type: "error";
9
+ }];
10
+ static createInterface(): IBalancerV2VaultAdapterExceptionsInterface;
11
+ static connect(address: string, signerOrProvider: Signer | Provider): IBalancerV2VaultAdapterExceptions;
12
+ }
@@ -0,0 +1,24 @@
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.IBalancerV2VaultAdapterExceptions__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "PoolNotSupportedException",
12
+ type: "error",
13
+ },
14
+ ];
15
+ class IBalancerV2VaultAdapterExceptions__factory {
16
+ static abi = _abi;
17
+ static createInterface() {
18
+ return new ethers_1.utils.Interface(_abi);
19
+ }
20
+ static connect(address, signerOrProvider) {
21
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
22
+ }
23
+ }
24
+ exports.IBalancerV2VaultAdapterExceptions__factory = IBalancerV2VaultAdapterExceptions__factory;