@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
@@ -83,8 +83,12 @@ export declare class IYearnV2Adapter__factory {
83
83
  readonly stateMutability: "nonpayable";
84
84
  readonly type: "function";
85
85
  }, {
86
- readonly inputs: readonly [];
87
- readonly name: "deposit";
86
+ readonly inputs: readonly [{
87
+ readonly internalType: "uint256";
88
+ readonly name: "leftoverAmount";
89
+ readonly type: "uint256";
90
+ }];
91
+ readonly name: "depositDiff";
88
92
  readonly outputs: readonly [{
89
93
  readonly internalType: "uint256";
90
94
  readonly name: "tokensToEnable";
@@ -167,7 +171,19 @@ export declare class IYearnV2Adapter__factory {
167
171
  readonly stateMutability: "nonpayable";
168
172
  readonly type: "function";
169
173
  }, {
170
- readonly inputs: readonly [];
174
+ readonly inputs: readonly [{
175
+ readonly internalType: "uint256";
176
+ readonly name: "maxShares";
177
+ readonly type: "uint256";
178
+ }, {
179
+ readonly internalType: "address";
180
+ readonly name: "";
181
+ readonly type: "address";
182
+ }, {
183
+ readonly internalType: "uint256";
184
+ readonly name: "maxLoss";
185
+ readonly type: "uint256";
186
+ }];
171
187
  readonly name: "withdraw";
172
188
  readonly outputs: readonly [{
173
189
  readonly internalType: "uint256";
@@ -183,18 +199,10 @@ export declare class IYearnV2Adapter__factory {
183
199
  }, {
184
200
  readonly inputs: readonly [{
185
201
  readonly internalType: "uint256";
186
- readonly name: "maxShares";
187
- readonly type: "uint256";
188
- }, {
189
- readonly internalType: "address";
190
- readonly name: "";
191
- readonly type: "address";
192
- }, {
193
- readonly internalType: "uint256";
194
- readonly name: "maxLoss";
202
+ readonly name: "leftoverAmount";
195
203
  readonly type: "uint256";
196
204
  }];
197
- readonly name: "withdraw";
205
+ readonly name: "withdrawDiff";
198
206
  readonly outputs: readonly [{
199
207
  readonly internalType: "uint256";
200
208
  readonly name: "tokensToEnable";
@@ -112,8 +112,14 @@ const _abi = [
112
112
  type: "function",
113
113
  },
114
114
  {
115
- inputs: [],
116
- name: "deposit",
115
+ inputs: [
116
+ {
117
+ internalType: "uint256",
118
+ name: "leftoverAmount",
119
+ type: "uint256",
120
+ },
121
+ ],
122
+ name: "depositDiff",
117
123
  outputs: [
118
124
  {
119
125
  internalType: "uint256",
@@ -222,7 +228,23 @@ const _abi = [
222
228
  type: "function",
223
229
  },
224
230
  {
225
- inputs: [],
231
+ inputs: [
232
+ {
233
+ internalType: "uint256",
234
+ name: "maxShares",
235
+ type: "uint256",
236
+ },
237
+ {
238
+ internalType: "address",
239
+ name: "",
240
+ type: "address",
241
+ },
242
+ {
243
+ internalType: "uint256",
244
+ name: "maxLoss",
245
+ type: "uint256",
246
+ },
247
+ ],
226
248
  name: "withdraw",
227
249
  outputs: [
228
250
  {
@@ -243,21 +265,11 @@ const _abi = [
243
265
  inputs: [
244
266
  {
245
267
  internalType: "uint256",
246
- name: "maxShares",
247
- type: "uint256",
248
- },
249
- {
250
- internalType: "address",
251
- name: "",
252
- type: "address",
253
- },
254
- {
255
- internalType: "uint256",
256
- name: "maxLoss",
268
+ name: "leftoverAmount",
257
269
  type: "uint256",
258
270
  },
259
271
  ],
260
- name: "withdraw",
272
+ name: "withdrawDiff",
261
273
  outputs: [
262
274
  {
263
275
  internalType: "uint256",
@@ -91,8 +91,12 @@ export declare class IwstETHV1Adapter__factory {
91
91
  readonly stateMutability: "nonpayable";
92
92
  readonly type: "function";
93
93
  }, {
94
- readonly inputs: readonly [];
95
- readonly name: "unwrapAll";
94
+ readonly inputs: readonly [{
95
+ readonly internalType: "uint256";
96
+ readonly name: "leftoverAmount";
97
+ readonly type: "uint256";
98
+ }];
99
+ readonly name: "unwrapDiff";
96
100
  readonly outputs: readonly [{
97
101
  readonly internalType: "uint256";
98
102
  readonly name: "tokensToEnable";
@@ -123,8 +127,12 @@ export declare class IwstETHV1Adapter__factory {
123
127
  readonly stateMutability: "nonpayable";
124
128
  readonly type: "function";
125
129
  }, {
126
- readonly inputs: readonly [];
127
- readonly name: "wrapAll";
130
+ readonly inputs: readonly [{
131
+ readonly internalType: "uint256";
132
+ readonly name: "leftoverAmount";
133
+ readonly type: "uint256";
134
+ }];
135
+ readonly name: "wrapDiff";
128
136
  readonly outputs: readonly [{
129
137
  readonly internalType: "uint256";
130
138
  readonly name: "tokensToEnable";
@@ -122,8 +122,14 @@ const _abi = [
122
122
  type: "function",
123
123
  },
124
124
  {
125
- inputs: [],
126
- name: "unwrapAll",
125
+ inputs: [
126
+ {
127
+ internalType: "uint256",
128
+ name: "leftoverAmount",
129
+ type: "uint256",
130
+ },
131
+ ],
132
+ name: "unwrapDiff",
127
133
  outputs: [
128
134
  {
129
135
  internalType: "uint256",
@@ -164,8 +170,14 @@ const _abi = [
164
170
  type: "function",
165
171
  },
166
172
  {
167
- inputs: [],
168
- name: "wrapAll",
173
+ inputs: [
174
+ {
175
+ internalType: "uint256",
176
+ name: "leftoverAmount",
177
+ type: "uint256",
178
+ },
179
+ ],
180
+ name: "wrapDiff",
169
181
  outputs: [
170
182
  {
171
183
  internalType: "uint256",
@@ -2,6 +2,9 @@ export * as balancesSol from "./Balances.sol";
2
2
  export * as iAddressProviderSol from "./IAddressProvider.sol";
3
3
  export * as iAddressProviderV3Sol from "./IAddressProviderV3.sol";
4
4
  export * as iAirdropDistributorSol from "./IAirdropDistributor.sol";
5
+ export * as iBalancerV2VaultSol from "./IBalancerV2Vault.sol";
6
+ export * as iBalancerV2VaultAdapterSol from "./IBalancerV2VaultAdapter.sol";
7
+ export * as iCompoundV2CTokenAdapterSol from "./ICompoundV2_CTokenAdapter.sol";
5
8
  export * as iContractsRegisterSol from "./IContractsRegister.sol";
6
9
  export * as iConvexV1BoosterAdapterSol from "./IConvexV1BoosterAdapter.sol";
7
10
  export * as iCreditConfiguratorV2Sol from "./ICreditConfiguratorV2.sol";
@@ -26,13 +29,15 @@ export * as iPriceOracleV3Sol from "./IPriceOracleV3.sol";
26
29
  export * as iUniswapV2AdapterSol from "./IUniswapV2Adapter.sol";
27
30
  export * as iUniswapV3Sol from "./IUniswapV3.sol";
28
31
  export * as iUniswapV3AdapterSol from "./IUniswapV3Adapter.sol";
29
- export * as iWithdrawalManagerV3Sol from "./IWithdrawalManagerV3.sol";
30
32
  export * as istEthSol from "./IstETH.sol";
31
33
  export * as iwstEthSol from "./IwstETH.sol";
32
34
  export * as iwstEthGatewaySol from "./IwstETHGateway.sol";
35
+ export * as interfaces from "./interfaces";
33
36
  export { AddressProvider__factory } from "./AddressProvider__factory";
34
37
  export { Claimable__factory } from "./Claimable__factory";
35
38
  export { Errors__factory } from "./Errors__factory";
39
+ export { IAaveV2_LendingPoolAdapter__factory } from "./IAaveV2_LendingPoolAdapter__factory";
40
+ export { IAaveV2_WrappedATokenAdapter__factory } from "./IAaveV2_WrappedATokenAdapter__factory";
36
41
  export { IAdapter__factory } from "./IAdapter__factory";
37
42
  export { IBaseRewardPool__factory } from "./IBaseRewardPool__factory";
38
43
  export { IConvexToken__factory } from "./IConvexToken__factory";
@@ -52,6 +57,7 @@ export { IERC20Metadata__factory } from "./IERC20Metadata__factory";
52
57
  export { IERC20Permit__factory } from "./IERC20Permit__factory";
53
58
  export { IERC20ZapperDeposits__factory } from "./IERC20ZapperDeposits__factory";
54
59
  export { IERC4626__factory } from "./IERC4626__factory";
60
+ export { IERC4626Adapter__factory } from "./IERC4626Adapter__factory";
55
61
  export { IERC721__factory } from "./IERC721__factory";
56
62
  export { IERC721Metadata__factory } from "./IERC721Metadata__factory";
57
63
  export { IETHZapperDeposits__factory } from "./IETHZapperDeposits__factory";
@@ -61,7 +67,6 @@ export { ILidoV1Adapter__factory } from "./ILidoV1Adapter__factory";
61
67
  export { IOffchainOracle__factory } from "./IOffchainOracle__factory";
62
68
  export { IPermit2__factory } from "./IPermit2__factory";
63
69
  export { IPriceOracleBase__factory } from "./IPriceOracleBase__factory";
64
- export { IRouter__factory } from "./IRouter__factory";
65
70
  export { IVersion__factory } from "./IVersion__factory";
66
71
  export { IVotingContractV3__factory } from "./IVotingContractV3__factory";
67
72
  export { IWETH__factory } from "./IWETH__factory";
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.IERC20__factory = exports.IERC165__factory = exports.IDataCompressorV3_00__factory = exports.IDataCompressorV2_10__factory = exports.IDaiLikePermit__factory = exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.ICurveV1Adapter__factory = exports.ICurvePool__factory = exports.ICreditFacadeV3Multicall__factory = exports.IConvexV1BaseRewardPoolAdapter__factory = exports.IConvexToken__factory = exports.IBaseRewardPool__factory = exports.IAdapter__factory = exports.Errors__factory = exports.Claimable__factory = exports.AddressProvider__factory = exports.iwstEthGatewaySol = exports.iwstEthSol = exports.istEthSol = exports.iWithdrawalManagerV3Sol = exports.iUniswapV3AdapterSol = exports.iUniswapV3Sol = exports.iUniswapV2AdapterSol = exports.iPriceOracleV3Sol = exports.iPriceOracleSol = exports.iPriceFeedSol = exports.iPoolV3Sol = exports.iPoolServiceSol = exports.iPoolQuotaKeeperV3Sol = exports.iGearStakingV3Sol = exports.iGaugeV3Sol = exports.iDegenNftv2Sol = exports.iDegenDistributorSol = exports.iCurvePool4Sol = exports.iCurvePool3Sol = exports.iCurvePool2Sol = exports.iCreditManagerV3Sol = exports.iCreditManagerV2Sol = exports.iCreditFacadeV3Sol = exports.iCreditFacadeV2Sol = exports.iCreditConfiguratorV3Sol = exports.iCreditConfiguratorV2Sol = exports.iConvexV1BoosterAdapterSol = exports.iContractsRegisterSol = exports.iAirdropDistributorSol = exports.iAddressProviderV3Sol = exports.iAddressProviderSol = exports.balancesSol = void 0;
27
- exports.SafeERC20__factory = exports.Ownable__factory = exports.IwstETHV1Adapter__factory = exports.IZapper__factory = exports.IYearnV2Adapter__factory = exports.IYVault__factory = exports.IWETHGateway__factory = exports.IWETH__factory = exports.IVotingContractV3__factory = exports.IVersion__factory = exports.IRouter__factory = exports.IPriceOracleBase__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGasPricer__factory = exports.IETHZapperDeposits__factory = exports.IERC721Metadata__factory = exports.IERC721__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = void 0;
26
+ exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.ICurveV1Adapter__factory = exports.ICurvePool__factory = exports.ICreditFacadeV3Multicall__factory = exports.IConvexV1BaseRewardPoolAdapter__factory = exports.IConvexToken__factory = exports.IBaseRewardPool__factory = exports.IAdapter__factory = exports.IAaveV2_WrappedATokenAdapter__factory = exports.IAaveV2_LendingPoolAdapter__factory = exports.Errors__factory = exports.Claimable__factory = exports.AddressProvider__factory = exports.interfaces = exports.iwstEthGatewaySol = exports.iwstEthSol = exports.istEthSol = exports.iUniswapV3AdapterSol = exports.iUniswapV3Sol = exports.iUniswapV2AdapterSol = exports.iPriceOracleV3Sol = exports.iPriceOracleSol = exports.iPriceFeedSol = exports.iPoolV3Sol = exports.iPoolServiceSol = exports.iPoolQuotaKeeperV3Sol = exports.iGearStakingV3Sol = exports.iGaugeV3Sol = exports.iDegenNftv2Sol = exports.iDegenDistributorSol = exports.iCurvePool4Sol = exports.iCurvePool3Sol = exports.iCurvePool2Sol = exports.iCreditManagerV3Sol = exports.iCreditManagerV2Sol = exports.iCreditFacadeV3Sol = exports.iCreditFacadeV2Sol = exports.iCreditConfiguratorV3Sol = exports.iCreditConfiguratorV2Sol = exports.iConvexV1BoosterAdapterSol = exports.iContractsRegisterSol = exports.iCompoundV2CTokenAdapterSol = exports.iBalancerV2VaultAdapterSol = exports.iBalancerV2VaultSol = exports.iAirdropDistributorSol = exports.iAddressProviderV3Sol = exports.iAddressProviderSol = exports.balancesSol = void 0;
27
+ exports.SafeERC20__factory = exports.Ownable__factory = exports.IwstETHV1Adapter__factory = exports.IZapper__factory = exports.IYearnV2Adapter__factory = exports.IYVault__factory = exports.IWETHGateway__factory = exports.IWETH__factory = exports.IVotingContractV3__factory = exports.IVersion__factory = exports.IPriceOracleBase__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGasPricer__factory = exports.IETHZapperDeposits__factory = exports.IERC721Metadata__factory = exports.IERC721__factory = exports.IERC4626Adapter__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.IERC165__factory = exports.IDataCompressorV3_00__factory = exports.IDataCompressorV2_10__factory = exports.IDaiLikePermit__factory = void 0;
28
28
  /* Autogenerated file. Do not edit manually. */
29
29
  /* tslint:disable */
30
30
  /* eslint-disable */
@@ -32,6 +32,9 @@ exports.balancesSol = __importStar(require("./Balances.sol"));
32
32
  exports.iAddressProviderSol = __importStar(require("./IAddressProvider.sol"));
33
33
  exports.iAddressProviderV3Sol = __importStar(require("./IAddressProviderV3.sol"));
34
34
  exports.iAirdropDistributorSol = __importStar(require("./IAirdropDistributor.sol"));
35
+ exports.iBalancerV2VaultSol = __importStar(require("./IBalancerV2Vault.sol"));
36
+ exports.iBalancerV2VaultAdapterSol = __importStar(require("./IBalancerV2VaultAdapter.sol"));
37
+ exports.iCompoundV2CTokenAdapterSol = __importStar(require("./ICompoundV2_CTokenAdapter.sol"));
35
38
  exports.iContractsRegisterSol = __importStar(require("./IContractsRegister.sol"));
36
39
  exports.iConvexV1BoosterAdapterSol = __importStar(require("./IConvexV1BoosterAdapter.sol"));
37
40
  exports.iCreditConfiguratorV2Sol = __importStar(require("./ICreditConfiguratorV2.sol"));
@@ -56,16 +59,20 @@ exports.iPriceOracleV3Sol = __importStar(require("./IPriceOracleV3.sol"));
56
59
  exports.iUniswapV2AdapterSol = __importStar(require("./IUniswapV2Adapter.sol"));
57
60
  exports.iUniswapV3Sol = __importStar(require("./IUniswapV3.sol"));
58
61
  exports.iUniswapV3AdapterSol = __importStar(require("./IUniswapV3Adapter.sol"));
59
- exports.iWithdrawalManagerV3Sol = __importStar(require("./IWithdrawalManagerV3.sol"));
60
62
  exports.istEthSol = __importStar(require("./IstETH.sol"));
61
63
  exports.iwstEthSol = __importStar(require("./IwstETH.sol"));
62
64
  exports.iwstEthGatewaySol = __importStar(require("./IwstETHGateway.sol"));
65
+ exports.interfaces = __importStar(require("./interfaces"));
63
66
  var AddressProvider__factory_1 = require("./AddressProvider__factory");
64
67
  Object.defineProperty(exports, "AddressProvider__factory", { enumerable: true, get: function () { return AddressProvider__factory_1.AddressProvider__factory; } });
65
68
  var Claimable__factory_1 = require("./Claimable__factory");
66
69
  Object.defineProperty(exports, "Claimable__factory", { enumerable: true, get: function () { return Claimable__factory_1.Claimable__factory; } });
67
70
  var Errors__factory_1 = require("./Errors__factory");
68
71
  Object.defineProperty(exports, "Errors__factory", { enumerable: true, get: function () { return Errors__factory_1.Errors__factory; } });
72
+ var IAaveV2_LendingPoolAdapter__factory_1 = require("./IAaveV2_LendingPoolAdapter__factory");
73
+ Object.defineProperty(exports, "IAaveV2_LendingPoolAdapter__factory", { enumerable: true, get: function () { return IAaveV2_LendingPoolAdapter__factory_1.IAaveV2_LendingPoolAdapter__factory; } });
74
+ var IAaveV2_WrappedATokenAdapter__factory_1 = require("./IAaveV2_WrappedATokenAdapter__factory");
75
+ Object.defineProperty(exports, "IAaveV2_WrappedATokenAdapter__factory", { enumerable: true, get: function () { return IAaveV2_WrappedATokenAdapter__factory_1.IAaveV2_WrappedATokenAdapter__factory; } });
69
76
  var IAdapter__factory_1 = require("./IAdapter__factory");
70
77
  Object.defineProperty(exports, "IAdapter__factory", { enumerable: true, get: function () { return IAdapter__factory_1.IAdapter__factory; } });
71
78
  var IBaseRewardPool__factory_1 = require("./IBaseRewardPool__factory");
@@ -104,6 +111,8 @@ var IERC20ZapperDeposits__factory_1 = require("./IERC20ZapperDeposits__factory")
104
111
  Object.defineProperty(exports, "IERC20ZapperDeposits__factory", { enumerable: true, get: function () { return IERC20ZapperDeposits__factory_1.IERC20ZapperDeposits__factory; } });
105
112
  var IERC4626__factory_1 = require("./IERC4626__factory");
106
113
  Object.defineProperty(exports, "IERC4626__factory", { enumerable: true, get: function () { return IERC4626__factory_1.IERC4626__factory; } });
114
+ var IERC4626Adapter__factory_1 = require("./IERC4626Adapter__factory");
115
+ Object.defineProperty(exports, "IERC4626Adapter__factory", { enumerable: true, get: function () { return IERC4626Adapter__factory_1.IERC4626Adapter__factory; } });
107
116
  var IERC721__factory_1 = require("./IERC721__factory");
108
117
  Object.defineProperty(exports, "IERC721__factory", { enumerable: true, get: function () { return IERC721__factory_1.IERC721__factory; } });
109
118
  var IERC721Metadata__factory_1 = require("./IERC721Metadata__factory");
@@ -122,8 +131,6 @@ var IPermit2__factory_1 = require("./IPermit2__factory");
122
131
  Object.defineProperty(exports, "IPermit2__factory", { enumerable: true, get: function () { return IPermit2__factory_1.IPermit2__factory; } });
123
132
  var IPriceOracleBase__factory_1 = require("./IPriceOracleBase__factory");
124
133
  Object.defineProperty(exports, "IPriceOracleBase__factory", { enumerable: true, get: function () { return IPriceOracleBase__factory_1.IPriceOracleBase__factory; } });
125
- var IRouter__factory_1 = require("./IRouter__factory");
126
- Object.defineProperty(exports, "IRouter__factory", { enumerable: true, get: function () { return IRouter__factory_1.IRouter__factory; } });
127
134
  var IVersion__factory_1 = require("./IVersion__factory");
128
135
  Object.defineProperty(exports, "IVersion__factory", { enumerable: true, get: function () { return IVersion__factory_1.IVersion__factory; } });
129
136
  var IVotingContractV3__factory_1 = require("./IVotingContractV3__factory");
@@ -1,6 +1,6 @@
1
1
  import { Signer } from "ethers";
2
2
  import type { Provider } from "@ethersproject/providers";
3
- import type { IRouter, IRouterInterface } from "../IRouter";
3
+ import type { IRouter, IRouterInterface } from "../../interfaces/IRouter";
4
4
  export declare class IRouter__factory {
5
5
  static readonly abi: readonly [{
6
6
  readonly anonymous: false;
@@ -94,16 +94,16 @@ export declare class IRouter__factory {
94
94
  readonly type: "uint256";
95
95
  }, {
96
96
  readonly internalType: "uint256";
97
- readonly name: "slippage";
97
+ readonly name: "leftoverAmount";
98
98
  readonly type: "uint256";
99
- }, {
100
- readonly internalType: "bool";
101
- readonly name: "externalSlippage";
102
- readonly type: "bool";
103
99
  }];
104
100
  readonly internalType: "struct SwapTask";
105
101
  readonly name: "swapTask";
106
102
  readonly type: "tuple";
103
+ }, {
104
+ readonly internalType: "uint256";
105
+ readonly name: "slippage";
106
+ readonly type: "uint256";
107
107
  }];
108
108
  readonly name: "findAllSwaps";
109
109
  readonly outputs: readonly [{
@@ -111,6 +111,10 @@ export declare class IRouter__factory {
111
111
  readonly internalType: "uint256";
112
112
  readonly name: "amount";
113
113
  readonly type: "uint256";
114
+ }, {
115
+ readonly internalType: "uint256";
116
+ readonly name: "minAmount";
117
+ readonly type: "uint256";
114
118
  }, {
115
119
  readonly internalType: "uint256";
116
120
  readonly name: "gasUsage";
@@ -140,6 +144,32 @@ export declare class IRouter__factory {
140
144
  readonly internalType: "address";
141
145
  readonly name: "creditAccount";
142
146
  readonly type: "address";
147
+ }, {
148
+ readonly components: readonly [{
149
+ readonly internalType: "address";
150
+ readonly name: "token";
151
+ readonly type: "address";
152
+ }, {
153
+ readonly internalType: "uint256";
154
+ readonly name: "balance";
155
+ readonly type: "uint256";
156
+ }];
157
+ readonly internalType: "struct Balance[]";
158
+ readonly name: "expectedBalances";
159
+ readonly type: "tuple[]";
160
+ }, {
161
+ readonly components: readonly [{
162
+ readonly internalType: "address";
163
+ readonly name: "token";
164
+ readonly type: "address";
165
+ }, {
166
+ readonly internalType: "uint256";
167
+ readonly name: "balance";
168
+ readonly type: "uint256";
169
+ }];
170
+ readonly internalType: "struct Balance[]";
171
+ readonly name: "leftoverBalances";
172
+ readonly type: "tuple[]";
143
173
  }, {
144
174
  readonly internalType: "address[]";
145
175
  readonly name: "connectors";
@@ -180,6 +210,10 @@ export declare class IRouter__factory {
180
210
  readonly internalType: "uint256";
181
211
  readonly name: "amount";
182
212
  readonly type: "uint256";
213
+ }, {
214
+ readonly internalType: "uint256";
215
+ readonly name: "minAmount";
216
+ readonly type: "uint256";
183
217
  }, {
184
218
  readonly internalType: "uint256";
185
219
  readonly name: "gasUsage";
@@ -240,6 +274,10 @@ export declare class IRouter__factory {
240
274
  readonly internalType: "uint256";
241
275
  readonly name: "amount";
242
276
  readonly type: "uint256";
277
+ }, {
278
+ readonly internalType: "uint256";
279
+ readonly name: "minAmount";
280
+ readonly type: "uint256";
243
281
  }, {
244
282
  readonly internalType: "uint256";
245
283
  readonly name: "gasUsage";
@@ -282,6 +320,19 @@ export declare class IRouter__factory {
282
320
  readonly internalType: "struct Balance[]";
283
321
  readonly name: "balances";
284
322
  readonly type: "tuple[]";
323
+ }, {
324
+ readonly components: readonly [{
325
+ readonly internalType: "address";
326
+ readonly name: "token";
327
+ readonly type: "address";
328
+ }, {
329
+ readonly internalType: "uint256";
330
+ readonly name: "balance";
331
+ readonly type: "uint256";
332
+ }];
333
+ readonly internalType: "struct Balance[]";
334
+ readonly name: "leftoverBalances";
335
+ readonly type: "tuple[]";
285
336
  }, {
286
337
  readonly internalType: "address";
287
338
  readonly name: "target";
@@ -314,6 +365,10 @@ export declare class IRouter__factory {
314
365
  readonly internalType: "uint256";
315
366
  readonly name: "amount";
316
367
  readonly type: "uint256";
368
+ }, {
369
+ readonly internalType: "uint256";
370
+ readonly name: "minAmount";
371
+ readonly type: "uint256";
317
372
  }, {
318
373
  readonly internalType: "uint256";
319
374
  readonly name: "gasUsage";
@@ -124,19 +124,19 @@ const _abi = [
124
124
  },
125
125
  {
126
126
  internalType: "uint256",
127
- name: "slippage",
127
+ name: "leftoverAmount",
128
128
  type: "uint256",
129
129
  },
130
- {
131
- internalType: "bool",
132
- name: "externalSlippage",
133
- type: "bool",
134
- },
135
130
  ],
136
131
  internalType: "struct SwapTask",
137
132
  name: "swapTask",
138
133
  type: "tuple",
139
134
  },
135
+ {
136
+ internalType: "uint256",
137
+ name: "slippage",
138
+ type: "uint256",
139
+ },
140
140
  ],
141
141
  name: "findAllSwaps",
142
142
  outputs: [
@@ -147,6 +147,11 @@ const _abi = [
147
147
  name: "amount",
148
148
  type: "uint256",
149
149
  },
150
+ {
151
+ internalType: "uint256",
152
+ name: "minAmount",
153
+ type: "uint256",
154
+ },
150
155
  {
151
156
  internalType: "uint256",
152
157
  name: "gasUsage",
@@ -185,6 +190,40 @@ const _abi = [
185
190
  name: "creditAccount",
186
191
  type: "address",
187
192
  },
193
+ {
194
+ components: [
195
+ {
196
+ internalType: "address",
197
+ name: "token",
198
+ type: "address",
199
+ },
200
+ {
201
+ internalType: "uint256",
202
+ name: "balance",
203
+ type: "uint256",
204
+ },
205
+ ],
206
+ internalType: "struct Balance[]",
207
+ name: "expectedBalances",
208
+ type: "tuple[]",
209
+ },
210
+ {
211
+ components: [
212
+ {
213
+ internalType: "address",
214
+ name: "token",
215
+ type: "address",
216
+ },
217
+ {
218
+ internalType: "uint256",
219
+ name: "balance",
220
+ type: "uint256",
221
+ },
222
+ ],
223
+ internalType: "struct Balance[]",
224
+ name: "leftoverBalances",
225
+ type: "tuple[]",
226
+ },
188
227
  {
189
228
  internalType: "address[]",
190
229
  name: "connectors",
@@ -237,6 +276,11 @@ const _abi = [
237
276
  name: "amount",
238
277
  type: "uint256",
239
278
  },
279
+ {
280
+ internalType: "uint256",
281
+ name: "minAmount",
282
+ type: "uint256",
283
+ },
240
284
  {
241
285
  internalType: "uint256",
242
286
  name: "gasUsage",
@@ -315,6 +359,11 @@ const _abi = [
315
359
  name: "amount",
316
360
  type: "uint256",
317
361
  },
362
+ {
363
+ internalType: "uint256",
364
+ name: "minAmount",
365
+ type: "uint256",
366
+ },
318
367
  {
319
368
  internalType: "uint256",
320
369
  name: "gasUsage",
@@ -370,6 +419,23 @@ const _abi = [
370
419
  name: "balances",
371
420
  type: "tuple[]",
372
421
  },
422
+ {
423
+ components: [
424
+ {
425
+ internalType: "address",
426
+ name: "token",
427
+ type: "address",
428
+ },
429
+ {
430
+ internalType: "uint256",
431
+ name: "balance",
432
+ type: "uint256",
433
+ },
434
+ ],
435
+ internalType: "struct Balance[]",
436
+ name: "leftoverBalances",
437
+ type: "tuple[]",
438
+ },
373
439
  {
374
440
  internalType: "address",
375
441
  name: "target",
@@ -412,6 +478,11 @@ const _abi = [
412
478
  name: "amount",
413
479
  type: "uint256",
414
480
  },
481
+ {
482
+ internalType: "uint256",
483
+ name: "minAmount",
484
+ type: "uint256",
485
+ },
415
486
  {
416
487
  internalType: "uint256",
417
488
  name: "gasUsage",
@@ -0,0 +1 @@
1
+ export { IRouter__factory } from "./IRouter__factory";
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IRouter__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IRouter__factory_1 = require("./IRouter__factory");
8
+ Object.defineProperty(exports, "IRouter__factory", { enumerable: true, get: function () { return IRouter__factory_1.IRouter__factory; } });