@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,341 @@
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.IAaveV2_WrappedATokenAdapter__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "_gearboxAdapterType",
12
+ outputs: [
13
+ {
14
+ internalType: "enum AdapterType",
15
+ name: "",
16
+ type: "uint8",
17
+ },
18
+ ],
19
+ stateMutability: "view",
20
+ type: "function",
21
+ },
22
+ {
23
+ inputs: [],
24
+ name: "_gearboxAdapterVersion",
25
+ outputs: [
26
+ {
27
+ internalType: "uint16",
28
+ name: "",
29
+ type: "uint16",
30
+ },
31
+ ],
32
+ stateMutability: "view",
33
+ type: "function",
34
+ },
35
+ {
36
+ inputs: [],
37
+ name: "aToken",
38
+ outputs: [
39
+ {
40
+ internalType: "address",
41
+ name: "",
42
+ type: "address",
43
+ },
44
+ ],
45
+ stateMutability: "view",
46
+ type: "function",
47
+ },
48
+ {
49
+ inputs: [],
50
+ name: "aTokenMask",
51
+ outputs: [
52
+ {
53
+ internalType: "uint256",
54
+ name: "",
55
+ type: "uint256",
56
+ },
57
+ ],
58
+ stateMutability: "view",
59
+ type: "function",
60
+ },
61
+ {
62
+ inputs: [],
63
+ name: "addressProvider",
64
+ outputs: [
65
+ {
66
+ internalType: "address",
67
+ name: "",
68
+ type: "address",
69
+ },
70
+ ],
71
+ stateMutability: "view",
72
+ type: "function",
73
+ },
74
+ {
75
+ inputs: [],
76
+ name: "creditManager",
77
+ outputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "",
81
+ type: "address",
82
+ },
83
+ ],
84
+ stateMutability: "view",
85
+ type: "function",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "uint256",
91
+ name: "assets",
92
+ type: "uint256",
93
+ },
94
+ ],
95
+ name: "deposit",
96
+ outputs: [
97
+ {
98
+ internalType: "uint256",
99
+ name: "tokensToEnable",
100
+ type: "uint256",
101
+ },
102
+ {
103
+ internalType: "uint256",
104
+ name: "tokensToDisable",
105
+ type: "uint256",
106
+ },
107
+ ],
108
+ stateMutability: "nonpayable",
109
+ type: "function",
110
+ },
111
+ {
112
+ inputs: [
113
+ {
114
+ internalType: "uint256",
115
+ name: "leftoverAssets",
116
+ type: "uint256",
117
+ },
118
+ ],
119
+ name: "depositDiff",
120
+ outputs: [
121
+ {
122
+ internalType: "uint256",
123
+ name: "tokensToEnable",
124
+ type: "uint256",
125
+ },
126
+ {
127
+ internalType: "uint256",
128
+ name: "tokensToDisable",
129
+ type: "uint256",
130
+ },
131
+ ],
132
+ stateMutability: "nonpayable",
133
+ type: "function",
134
+ },
135
+ {
136
+ inputs: [
137
+ {
138
+ internalType: "uint256",
139
+ name: "leftoverAssets",
140
+ type: "uint256",
141
+ },
142
+ ],
143
+ name: "depositDiffUnderlying",
144
+ outputs: [
145
+ {
146
+ internalType: "uint256",
147
+ name: "tokensToEnable",
148
+ type: "uint256",
149
+ },
150
+ {
151
+ internalType: "uint256",
152
+ name: "tokensToDisable",
153
+ type: "uint256",
154
+ },
155
+ ],
156
+ stateMutability: "nonpayable",
157
+ type: "function",
158
+ },
159
+ {
160
+ inputs: [
161
+ {
162
+ internalType: "uint256",
163
+ name: "assets",
164
+ type: "uint256",
165
+ },
166
+ ],
167
+ name: "depositUnderlying",
168
+ outputs: [
169
+ {
170
+ internalType: "uint256",
171
+ name: "tokensToEnable",
172
+ type: "uint256",
173
+ },
174
+ {
175
+ internalType: "uint256",
176
+ name: "tokensToDisable",
177
+ type: "uint256",
178
+ },
179
+ ],
180
+ stateMutability: "nonpayable",
181
+ type: "function",
182
+ },
183
+ {
184
+ inputs: [],
185
+ name: "targetContract",
186
+ outputs: [
187
+ {
188
+ internalType: "address",
189
+ name: "",
190
+ type: "address",
191
+ },
192
+ ],
193
+ stateMutability: "view",
194
+ type: "function",
195
+ },
196
+ {
197
+ inputs: [],
198
+ name: "tokenMask",
199
+ outputs: [
200
+ {
201
+ internalType: "uint256",
202
+ name: "",
203
+ type: "uint256",
204
+ },
205
+ ],
206
+ stateMutability: "view",
207
+ type: "function",
208
+ },
209
+ {
210
+ inputs: [],
211
+ name: "underlying",
212
+ outputs: [
213
+ {
214
+ internalType: "address",
215
+ name: "",
216
+ type: "address",
217
+ },
218
+ ],
219
+ stateMutability: "view",
220
+ type: "function",
221
+ },
222
+ {
223
+ inputs: [],
224
+ name: "waTokenMask",
225
+ outputs: [
226
+ {
227
+ internalType: "uint256",
228
+ name: "",
229
+ type: "uint256",
230
+ },
231
+ ],
232
+ stateMutability: "view",
233
+ type: "function",
234
+ },
235
+ {
236
+ inputs: [
237
+ {
238
+ internalType: "uint256",
239
+ name: "shares",
240
+ type: "uint256",
241
+ },
242
+ ],
243
+ name: "withdraw",
244
+ outputs: [
245
+ {
246
+ internalType: "uint256",
247
+ name: "tokensToEnable",
248
+ type: "uint256",
249
+ },
250
+ {
251
+ internalType: "uint256",
252
+ name: "tokensToDisable",
253
+ type: "uint256",
254
+ },
255
+ ],
256
+ stateMutability: "nonpayable",
257
+ type: "function",
258
+ },
259
+ {
260
+ inputs: [
261
+ {
262
+ internalType: "uint256",
263
+ name: "leftoverShares",
264
+ type: "uint256",
265
+ },
266
+ ],
267
+ name: "withdrawDiff",
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: "uint256",
287
+ name: "leftoverShares",
288
+ type: "uint256",
289
+ },
290
+ ],
291
+ name: "withdrawDiffUnderlying",
292
+ outputs: [
293
+ {
294
+ internalType: "uint256",
295
+ name: "tokensToEnable",
296
+ type: "uint256",
297
+ },
298
+ {
299
+ internalType: "uint256",
300
+ name: "tokensToDisable",
301
+ type: "uint256",
302
+ },
303
+ ],
304
+ stateMutability: "nonpayable",
305
+ type: "function",
306
+ },
307
+ {
308
+ inputs: [
309
+ {
310
+ internalType: "uint256",
311
+ name: "shares",
312
+ type: "uint256",
313
+ },
314
+ ],
315
+ name: "withdrawUnderlying",
316
+ outputs: [
317
+ {
318
+ internalType: "uint256",
319
+ name: "tokensToEnable",
320
+ type: "uint256",
321
+ },
322
+ {
323
+ internalType: "uint256",
324
+ name: "tokensToDisable",
325
+ type: "uint256",
326
+ },
327
+ ],
328
+ stateMutability: "nonpayable",
329
+ type: "function",
330
+ },
331
+ ];
332
+ class IAaveV2_WrappedATokenAdapter__factory {
333
+ static abi = _abi;
334
+ static createInterface() {
335
+ return new ethers_1.utils.Interface(_abi);
336
+ }
337
+ static connect(address, signerOrProvider) {
338
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
339
+ }
340
+ }
341
+ exports.IAaveV2_WrappedATokenAdapter__factory = IAaveV2_WrappedATokenAdapter__factory;
@@ -0,0 +1,78 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IBalancerV2VaultGetters, IBalancerV2VaultGettersInterface } from "../../IBalancerV2Vault.sol/IBalancerV2VaultGetters";
4
+ export declare class IBalancerV2VaultGetters__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [{
7
+ readonly internalType: "bytes32";
8
+ readonly name: "poolId";
9
+ readonly type: "bytes32";
10
+ }];
11
+ readonly name: "getPool";
12
+ readonly outputs: readonly [{
13
+ readonly internalType: "address";
14
+ readonly name: "";
15
+ readonly type: "address";
16
+ }, {
17
+ readonly internalType: "enum PoolSpecialization";
18
+ readonly name: "";
19
+ readonly type: "uint8";
20
+ }];
21
+ readonly stateMutability: "view";
22
+ readonly type: "function";
23
+ }, {
24
+ readonly inputs: readonly [{
25
+ readonly internalType: "bytes32";
26
+ readonly name: "poolId";
27
+ readonly type: "bytes32";
28
+ }, {
29
+ readonly internalType: "contract IERC20";
30
+ readonly name: "token";
31
+ readonly type: "address";
32
+ }];
33
+ readonly name: "getPoolTokenInfo";
34
+ readonly outputs: readonly [{
35
+ readonly internalType: "uint256";
36
+ readonly name: "cash";
37
+ readonly type: "uint256";
38
+ }, {
39
+ readonly internalType: "uint256";
40
+ readonly name: "managed";
41
+ readonly type: "uint256";
42
+ }, {
43
+ readonly internalType: "uint256";
44
+ readonly name: "lastChangeBlock";
45
+ readonly type: "uint256";
46
+ }, {
47
+ readonly internalType: "address";
48
+ readonly name: "assetManager";
49
+ readonly type: "address";
50
+ }];
51
+ readonly stateMutability: "view";
52
+ readonly type: "function";
53
+ }, {
54
+ readonly inputs: readonly [{
55
+ readonly internalType: "bytes32";
56
+ readonly name: "poolId";
57
+ readonly type: "bytes32";
58
+ }];
59
+ readonly name: "getPoolTokens";
60
+ readonly outputs: readonly [{
61
+ readonly internalType: "contract IERC20[]";
62
+ readonly name: "tokens";
63
+ readonly type: "address[]";
64
+ }, {
65
+ readonly internalType: "uint256[]";
66
+ readonly name: "balances";
67
+ readonly type: "uint256[]";
68
+ }, {
69
+ readonly internalType: "uint256";
70
+ readonly name: "lastChangeBlock";
71
+ readonly type: "uint256";
72
+ }];
73
+ readonly stateMutability: "view";
74
+ readonly type: "function";
75
+ }];
76
+ static createInterface(): IBalancerV2VaultGettersInterface;
77
+ static connect(address: string, signerOrProvider: Signer | Provider): IBalancerV2VaultGetters;
78
+ }
@@ -0,0 +1,111 @@
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.IBalancerV2VaultGetters__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "bytes32",
13
+ name: "poolId",
14
+ type: "bytes32",
15
+ },
16
+ ],
17
+ name: "getPool",
18
+ outputs: [
19
+ {
20
+ internalType: "address",
21
+ name: "",
22
+ type: "address",
23
+ },
24
+ {
25
+ internalType: "enum PoolSpecialization",
26
+ name: "",
27
+ type: "uint8",
28
+ },
29
+ ],
30
+ stateMutability: "view",
31
+ type: "function",
32
+ },
33
+ {
34
+ inputs: [
35
+ {
36
+ internalType: "bytes32",
37
+ name: "poolId",
38
+ type: "bytes32",
39
+ },
40
+ {
41
+ internalType: "contract IERC20",
42
+ name: "token",
43
+ type: "address",
44
+ },
45
+ ],
46
+ name: "getPoolTokenInfo",
47
+ outputs: [
48
+ {
49
+ internalType: "uint256",
50
+ name: "cash",
51
+ type: "uint256",
52
+ },
53
+ {
54
+ internalType: "uint256",
55
+ name: "managed",
56
+ type: "uint256",
57
+ },
58
+ {
59
+ internalType: "uint256",
60
+ name: "lastChangeBlock",
61
+ type: "uint256",
62
+ },
63
+ {
64
+ internalType: "address",
65
+ name: "assetManager",
66
+ type: "address",
67
+ },
68
+ ],
69
+ stateMutability: "view",
70
+ type: "function",
71
+ },
72
+ {
73
+ inputs: [
74
+ {
75
+ internalType: "bytes32",
76
+ name: "poolId",
77
+ type: "bytes32",
78
+ },
79
+ ],
80
+ name: "getPoolTokens",
81
+ outputs: [
82
+ {
83
+ internalType: "contract IERC20[]",
84
+ name: "tokens",
85
+ type: "address[]",
86
+ },
87
+ {
88
+ internalType: "uint256[]",
89
+ name: "balances",
90
+ type: "uint256[]",
91
+ },
92
+ {
93
+ internalType: "uint256",
94
+ name: "lastChangeBlock",
95
+ type: "uint256",
96
+ },
97
+ ],
98
+ stateMutability: "view",
99
+ type: "function",
100
+ },
101
+ ];
102
+ class IBalancerV2VaultGetters__factory {
103
+ static abi = _abi;
104
+ static createInterface() {
105
+ return new ethers_1.utils.Interface(_abi);
106
+ }
107
+ static connect(address, signerOrProvider) {
108
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
109
+ }
110
+ }
111
+ exports.IBalancerV2VaultGetters__factory = IBalancerV2VaultGetters__factory;