@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.
- package/contracts/index.sol +5 -0
- package/lib/core/creditAccount.d.ts +1 -2
- package/lib/core/creditAccount.js +0 -7
- package/lib/core/creditManager.js +1 -1
- package/lib/core/trade.d.ts +9 -8
- package/lib/core/trade.js +25 -22
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +10 -8
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
- package/lib/parsers/convexBoosterAdapterParser.js +6 -6
- package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
- package/lib/parsers/curveAdapterParser.js +10 -10
- package/lib/parsers/curveAdapterParser.spec.js +6 -2
- package/lib/parsers/lidoAdapterParser.js +3 -2
- package/lib/parsers/lidoAdapterParser.spec.js +2 -2
- package/lib/parsers/uniV2AdapterParser.js +4 -3
- package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
- package/lib/parsers/uniV3AdapterParser.js +8 -6
- package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
- package/lib/parsers/wstETHAdapterParser.js +6 -4
- package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnV2AdapterParser.js +13 -3
- package/lib/pathfinder/core.d.ts +8 -9
- package/lib/pathfinder/pathfinder.d.ts +37 -10
- package/lib/pathfinder/pathfinder.js +45 -33
- package/lib/pathfinder/pathfinder.spec.js +4 -2
- package/lib/payload/creditAccount.d.ts +1 -2
- package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
- package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
- package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
- package/lib/types/IBalancerV2Vault.sol/index.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +27 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/index.js +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +2 -0
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +30 -30
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts +21 -17
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +45 -85
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +24 -26
- package/lib/types/ICreditFacadeV3Multicall.d.ts +32 -40
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +99 -71
- package/lib/types/ICurveV1Adapter.d.ts +41 -105
- package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
- package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
- package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
- package/lib/types/IDataCompressorV2_10.d.ts +1 -27
- package/lib/types/IDataCompressorV3_00.d.ts +1 -27
- package/lib/types/IERC4626Adapter.d.ts +238 -0
- package/lib/types/IERC4626Adapter.js +2 -0
- package/lib/types/ILidoV1Adapter.d.ts +9 -9
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +39 -14
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +5 -3
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
- package/lib/types/IYearnV2Adapter.d.ts +22 -22
- package/lib/types/IwstETHV1Adapter.d.ts +17 -17
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +158 -0
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +215 -0
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +111 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
- package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
- package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +24 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +30 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +10 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +18 -6
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +22 -6
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +10 -2
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +12 -2
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +13 -18
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +14 -20
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +13 -70
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +14 -86
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +22 -24
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +28 -31
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +153 -135
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +191 -168
- package/lib/types/factories/ICurveV1Adapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1Adapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +0 -42
- package/lib/types/factories/IDataCompressorV2_10__factory.js +0 -54
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +0 -84
- package/lib/types/factories/IDataCompressorV3_00__factory.js +0 -108
- package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
- package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
- package/lib/types/factories/ILidoV1Adapter__factory.d.ts +6 -2
- package/lib/types/factories/ILidoV1Adapter__factory.js +8 -2
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +5 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +6 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +45 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +59 -0
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +5 -1
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +6 -1
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +12 -4
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +14 -4
- package/lib/types/factories/IYearnV2Adapter__factory.d.ts +21 -13
- package/lib/types/factories/IYearnV2Adapter__factory.js +27 -15
- package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +12 -4
- package/lib/types/factories/IwstETHV1Adapter__factory.js +16 -4
- package/lib/types/factories/index.d.ts +7 -2
- package/lib/types/factories/index.js +12 -5
- package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +61 -6
- package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +77 -6
- package/lib/types/factories/interfaces/index.d.ts +1 -0
- package/lib/types/factories/interfaces/index.js +8 -0
- package/lib/types/index.d.ts +39 -17
- package/lib/types/index.js +39 -23
- package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +37 -34
- package/lib/types/interfaces/IRouter.js +2 -0
- package/lib/types/interfaces/index.d.ts +1 -0
- package/lib/types/interfaces/index.js +2 -0
- package/package.json +6 -6
- package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3.d.ts +0 -370
- package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.d.ts +0 -133
- package/lib/types/IWithdrawalManagerV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts +0 -143
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js +0 -188
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts +0 -366
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js +0 -479
- package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
- /package/lib/types/{IRouter.js → IAaveV2_LendingPoolAdapter.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/index.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
package/lib/types/index.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ import type * as iAddressProviderV3Sol from "./IAddressProviderV3.sol";
|
|
|
6
6
|
export type { iAddressProviderV3Sol };
|
|
7
7
|
import type * as iAirdropDistributorSol from "./IAirdropDistributor.sol";
|
|
8
8
|
export type { iAirdropDistributorSol };
|
|
9
|
+
import type * as iBalancerV2VaultSol from "./IBalancerV2Vault.sol";
|
|
10
|
+
export type { iBalancerV2VaultSol };
|
|
11
|
+
import type * as iBalancerV2VaultAdapterSol from "./IBalancerV2VaultAdapter.sol";
|
|
12
|
+
export type { iBalancerV2VaultAdapterSol };
|
|
13
|
+
import type * as iCompoundV2CTokenAdapterSol from "./ICompoundV2_CTokenAdapter.sol";
|
|
14
|
+
export type { iCompoundV2CTokenAdapterSol };
|
|
9
15
|
import type * as iContractsRegisterSol from "./IContractsRegister.sol";
|
|
10
16
|
export type { iContractsRegisterSol };
|
|
11
17
|
import type * as iConvexV1BoosterAdapterSol from "./IConvexV1BoosterAdapter.sol";
|
|
@@ -54,17 +60,19 @@ import type * as iUniswapV3Sol from "./IUniswapV3.sol";
|
|
|
54
60
|
export type { iUniswapV3Sol };
|
|
55
61
|
import type * as iUniswapV3AdapterSol from "./IUniswapV3Adapter.sol";
|
|
56
62
|
export type { iUniswapV3AdapterSol };
|
|
57
|
-
import type * as iWithdrawalManagerV3Sol from "./IWithdrawalManagerV3.sol";
|
|
58
|
-
export type { iWithdrawalManagerV3Sol };
|
|
59
63
|
import type * as istEthSol from "./IstETH.sol";
|
|
60
64
|
export type { istEthSol };
|
|
61
65
|
import type * as iwstEthSol from "./IwstETH.sol";
|
|
62
66
|
export type { iwstEthSol };
|
|
63
67
|
import type * as iwstEthGatewaySol from "./IwstETHGateway.sol";
|
|
64
68
|
export type { iwstEthGatewaySol };
|
|
69
|
+
import type * as interfaces from "./interfaces";
|
|
70
|
+
export type { interfaces };
|
|
65
71
|
export type { AddressProvider } from "./AddressProvider";
|
|
66
72
|
export type { Claimable } from "./Claimable";
|
|
67
73
|
export type { Errors } from "./Errors";
|
|
74
|
+
export type { IAaveV2_LendingPoolAdapter } from "./IAaveV2_LendingPoolAdapter";
|
|
75
|
+
export type { IAaveV2_WrappedATokenAdapter } from "./IAaveV2_WrappedATokenAdapter";
|
|
68
76
|
export type { IAdapter } from "./IAdapter";
|
|
69
77
|
export type { IBaseRewardPool } from "./IBaseRewardPool";
|
|
70
78
|
export type { IConvexToken } from "./IConvexToken";
|
|
@@ -84,6 +92,7 @@ export type { IERC20Metadata } from "./IERC20Metadata";
|
|
|
84
92
|
export type { IERC20Permit } from "./IERC20Permit";
|
|
85
93
|
export type { IERC20ZapperDeposits } from "./IERC20ZapperDeposits";
|
|
86
94
|
export type { IERC4626 } from "./IERC4626";
|
|
95
|
+
export type { IERC4626Adapter } from "./IERC4626Adapter";
|
|
87
96
|
export type { IERC721 } from "./IERC721";
|
|
88
97
|
export type { IERC721Metadata } from "./IERC721Metadata";
|
|
89
98
|
export type { IETHZapperDeposits } from "./IETHZapperDeposits";
|
|
@@ -93,7 +102,6 @@ export type { ILidoV1Adapter } from "./ILidoV1Adapter";
|
|
|
93
102
|
export type { IOffchainOracle } from "./IOffchainOracle";
|
|
94
103
|
export type { IPermit2 } from "./IPermit2";
|
|
95
104
|
export type { IPriceOracleBase } from "./IPriceOracleBase";
|
|
96
|
-
export type { IRouter } from "./IRouter";
|
|
97
105
|
export type { IVersion } from "./IVersion";
|
|
98
106
|
export type { IVotingContractV3 } from "./IVotingContractV3";
|
|
99
107
|
export type { IWETH } from "./IWETH";
|
|
@@ -110,6 +118,8 @@ export type { BalanceOps } from "./Balances.sol/BalanceOps";
|
|
|
110
118
|
export { BalanceOps__factory } from "./factories/Balances.sol/BalanceOps__factory";
|
|
111
119
|
export { Claimable__factory } from "./factories/Claimable__factory";
|
|
112
120
|
export { Errors__factory } from "./factories/Errors__factory";
|
|
121
|
+
export { IAaveV2_LendingPoolAdapter__factory } from "./factories/IAaveV2_LendingPoolAdapter__factory";
|
|
122
|
+
export { IAaveV2_WrappedATokenAdapter__factory } from "./factories/IAaveV2_WrappedATokenAdapter__factory";
|
|
113
123
|
export { IAdapter__factory } from "./factories/IAdapter__factory";
|
|
114
124
|
export type { IAddressProvider } from "./IAddressProvider.sol/IAddressProvider";
|
|
115
125
|
export { IAddressProvider__factory } from "./factories/IAddressProvider.sol/IAddressProvider__factory";
|
|
@@ -123,7 +133,21 @@ export type { IAirdropDistributor } from "./IAirdropDistributor.sol/IAirdropDist
|
|
|
123
133
|
export { IAirdropDistributor__factory } from "./factories/IAirdropDistributor.sol/IAirdropDistributor__factory";
|
|
124
134
|
export type { IAirdropDistributorEvents } from "./IAirdropDistributor.sol/IAirdropDistributorEvents";
|
|
125
135
|
export { IAirdropDistributorEvents__factory } from "./factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory";
|
|
136
|
+
export type { IBalancerV2Vault } from "./IBalancerV2Vault.sol/IBalancerV2Vault";
|
|
137
|
+
export { IBalancerV2Vault__factory } from "./factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory";
|
|
138
|
+
export type { IBalancerV2VaultGetters } from "./IBalancerV2Vault.sol/IBalancerV2VaultGetters";
|
|
139
|
+
export { IBalancerV2VaultGetters__factory } from "./factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory";
|
|
140
|
+
export type { IBalancerV2VaultAdapter } from "./IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter";
|
|
141
|
+
export { IBalancerV2VaultAdapter__factory } from "./factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory";
|
|
142
|
+
export type { IBalancerV2VaultAdapterEvents } from "./IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents";
|
|
143
|
+
export { IBalancerV2VaultAdapterEvents__factory } from "./factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory";
|
|
144
|
+
export type { IBalancerV2VaultAdapterExceptions } from "./IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions";
|
|
145
|
+
export { IBalancerV2VaultAdapterExceptions__factory } from "./factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory";
|
|
126
146
|
export { IBaseRewardPool__factory } from "./factories/IBaseRewardPool__factory";
|
|
147
|
+
export type { ICompoundV2_CTokenAdapter } from "./ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter";
|
|
148
|
+
export { ICompoundV2_CTokenAdapter__factory } from "./factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory";
|
|
149
|
+
export type { ICompoundV2_Exceptions } from "./ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions";
|
|
150
|
+
export { ICompoundV2_Exceptions__factory } from "./factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory";
|
|
127
151
|
export type { IContractsRegister } from "./IContractsRegister.sol/IContractsRegister";
|
|
128
152
|
export { IContractsRegister__factory } from "./factories/IContractsRegister.sol/IContractsRegister__factory";
|
|
129
153
|
export type { IContractsRegisterEvents } from "./IContractsRegister.sol/IContractsRegisterEvents";
|
|
@@ -169,17 +193,17 @@ export type { ICreditManagerV3 } from "./ICreditManagerV3.sol/ICreditManagerV3";
|
|
|
169
193
|
export { ICreditManagerV3__factory } from "./factories/ICreditManagerV3.sol/ICreditManagerV3__factory";
|
|
170
194
|
export type { ICreditManagerV3Events } from "./ICreditManagerV3.sol/ICreditManagerV3Events";
|
|
171
195
|
export { ICreditManagerV3Events__factory } from "./factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory";
|
|
172
|
-
export { ICurvePool__factory } from "./factories/ICurvePool__factory";
|
|
173
196
|
export type { ICurvePool2Assets } from "./ICurvePool_2.sol/ICurvePool2Assets";
|
|
174
197
|
export { ICurvePool2Assets__factory } from "./factories/ICurvePool_2.sol/ICurvePool2Assets__factory";
|
|
175
198
|
export type { ICurvePool3Assets } from "./ICurvePool_3.sol/ICurvePool3Assets";
|
|
176
199
|
export { ICurvePool3Assets__factory } from "./factories/ICurvePool_3.sol/ICurvePool3Assets__factory";
|
|
177
200
|
export type { ICurvePool4Assets } from "./ICurvePool_4.sol/ICurvePool4Assets";
|
|
178
201
|
export { ICurvePool4Assets__factory } from "./factories/ICurvePool_4.sol/ICurvePool4Assets__factory";
|
|
179
|
-
export {
|
|
202
|
+
export { ICurvePool__factory } from "./factories/ICurvePool__factory";
|
|
180
203
|
export { ICurveV1_2AssetsAdapter__factory } from "./factories/ICurveV1_2AssetsAdapter__factory";
|
|
181
204
|
export { ICurveV1_3AssetsAdapter__factory } from "./factories/ICurveV1_3AssetsAdapter__factory";
|
|
182
205
|
export { ICurveV1_4AssetsAdapter__factory } from "./factories/ICurveV1_4AssetsAdapter__factory";
|
|
206
|
+
export { ICurveV1Adapter__factory } from "./factories/ICurveV1Adapter__factory";
|
|
183
207
|
export { IDaiLikePermit__factory } from "./factories/IDaiLikePermit__factory";
|
|
184
208
|
export { IDataCompressorV2_10__factory } from "./factories/IDataCompressorV2_10__factory";
|
|
185
209
|
export { IDataCompressorV3_00__factory } from "./factories/IDataCompressorV3_00__factory";
|
|
@@ -199,6 +223,7 @@ export { IERC20Metadata__factory } from "./factories/IERC20Metadata__factory";
|
|
|
199
223
|
export { IERC20Permit__factory } from "./factories/IERC20Permit__factory";
|
|
200
224
|
export { IERC20ZapperDeposits__factory } from "./factories/IERC20ZapperDeposits__factory";
|
|
201
225
|
export { IERC4626__factory } from "./factories/IERC4626__factory";
|
|
226
|
+
export { IERC4626Adapter__factory } from "./factories/IERC4626Adapter__factory";
|
|
202
227
|
export { IERC721__factory } from "./factories/IERC721__factory";
|
|
203
228
|
export { IERC721Metadata__factory } from "./factories/IERC721Metadata__factory";
|
|
204
229
|
export { IETHZapperDeposits__factory } from "./factories/IETHZapperDeposits__factory";
|
|
@@ -213,6 +238,8 @@ export type { IGearStakingV3Events } from "./IGearStakingV3.sol/IGearStakingV3Ev
|
|
|
213
238
|
export { IGearStakingV3Events__factory } from "./factories/IGearStakingV3.sol/IGearStakingV3Events__factory";
|
|
214
239
|
export { IInterestRateModel__factory } from "./factories/IInterestRateModel__factory";
|
|
215
240
|
export { ILidoV1Adapter__factory } from "./factories/ILidoV1Adapter__factory";
|
|
241
|
+
export type { IRouter } from "./interfaces/IRouter";
|
|
242
|
+
export { IRouter__factory } from "./factories/interfaces/IRouter__factory";
|
|
216
243
|
export { IOffchainOracle__factory } from "./factories/IOffchainOracle__factory";
|
|
217
244
|
export { IPermit2__factory } from "./factories/IPermit2__factory";
|
|
218
245
|
export type { IPoolQuotaKeeperV3 } from "./IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3";
|
|
@@ -244,7 +271,10 @@ export type { IPriceOracleV3 } from "./IPriceOracleV3.sol/IPriceOracleV3";
|
|
|
244
271
|
export { IPriceOracleV3__factory } from "./factories/IPriceOracleV3.sol/IPriceOracleV3__factory";
|
|
245
272
|
export type { IPriceOracleV3Events } from "./IPriceOracleV3.sol/IPriceOracleV3Events";
|
|
246
273
|
export { IPriceOracleV3Events__factory } from "./factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory";
|
|
247
|
-
export {
|
|
274
|
+
export type { IstETH } from "./IstETH.sol/IstETH";
|
|
275
|
+
export { IstETH__factory } from "./factories/IstETH.sol/IstETH__factory";
|
|
276
|
+
export type { IstETHGetters } from "./IstETH.sol/IstETHGetters";
|
|
277
|
+
export { IstETHGetters__factory } from "./factories/IstETH.sol/IstETHGetters__factory";
|
|
248
278
|
export type { IUniswapV2Adapter } from "./IUniswapV2Adapter.sol/IUniswapV2Adapter";
|
|
249
279
|
export { IUniswapV2Adapter__factory } from "./factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory";
|
|
250
280
|
export type { IUniswapV2AdapterEvents } from "./IUniswapV2Adapter.sol/IUniswapV2AdapterEvents";
|
|
@@ -263,17 +293,6 @@ export { IVersion__factory } from "./factories/IVersion__factory";
|
|
|
263
293
|
export { IVotingContractV3__factory } from "./factories/IVotingContractV3__factory";
|
|
264
294
|
export { IWETH__factory } from "./factories/IWETH__factory";
|
|
265
295
|
export { IWETHGateway__factory } from "./factories/IWETHGateway__factory";
|
|
266
|
-
export type { IWithdrawalManagerV3 } from "./IWithdrawalManagerV3.sol/IWithdrawalManagerV3";
|
|
267
|
-
export { IWithdrawalManagerV3__factory } from "./factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory";
|
|
268
|
-
export type { IWithdrawalManagerV3Events } from "./IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events";
|
|
269
|
-
export { IWithdrawalManagerV3Events__factory } from "./factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory";
|
|
270
|
-
export { IYVault__factory } from "./factories/IYVault__factory";
|
|
271
|
-
export { IYearnV2Adapter__factory } from "./factories/IYearnV2Adapter__factory";
|
|
272
|
-
export { IZapper__factory } from "./factories/IZapper__factory";
|
|
273
|
-
export type { IstETH } from "./IstETH.sol/IstETH";
|
|
274
|
-
export { IstETH__factory } from "./factories/IstETH.sol/IstETH__factory";
|
|
275
|
-
export type { IstETHGetters } from "./IstETH.sol/IstETHGetters";
|
|
276
|
-
export { IstETHGetters__factory } from "./factories/IstETH.sol/IstETHGetters__factory";
|
|
277
296
|
export type { IwstETH } from "./IwstETH.sol/IwstETH";
|
|
278
297
|
export { IwstETH__factory } from "./factories/IwstETH.sol/IwstETH__factory";
|
|
279
298
|
export type { IwstETHGetters } from "./IwstETH.sol/IwstETHGetters";
|
|
@@ -281,5 +300,8 @@ export { IwstETHGetters__factory } from "./factories/IwstETH.sol/IwstETHGetters_
|
|
|
281
300
|
export type { IwstETHGateWay } from "./IwstETHGateway.sol/IwstETHGateWay";
|
|
282
301
|
export { IwstETHGateWay__factory } from "./factories/IwstETHGateway.sol/IwstETHGateWay__factory";
|
|
283
302
|
export { IwstETHV1Adapter__factory } from "./factories/IwstETHV1Adapter__factory";
|
|
303
|
+
export { IYearnV2Adapter__factory } from "./factories/IYearnV2Adapter__factory";
|
|
304
|
+
export { IYVault__factory } from "./factories/IYVault__factory";
|
|
305
|
+
export { IZapper__factory } from "./factories/IZapper__factory";
|
|
284
306
|
export { Ownable__factory } from "./factories/Ownable__factory";
|
|
285
307
|
export { SafeERC20__factory } from "./factories/SafeERC20__factory";
|
package/lib/types/index.js
CHANGED
|
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.SafeERC20__factory = exports.Ownable__factory = exports.IwstETHV1Adapter__factory = exports.IwstETHGateWay__factory = exports.IwstETHGetters__factory = exports.IwstETH__factory = exports.
|
|
26
|
+
exports.ICurvePool__factory = exports.ICurvePool4Assets__factory = exports.ICurvePool3Assets__factory = exports.ICurvePool2Assets__factory = exports.ICreditManagerV3Events__factory = exports.ICreditManagerV3__factory = exports.ICreditManagerV2Exceptions__factory = exports.ICreditManagerV2Events__factory = exports.ICreditManagerV2__factory = exports.ICreditFacadeV3Multicall__factory = exports.ICreditFacadeV3Events__factory = exports.ICreditFacadeV3__factory = exports.ICreditFacadeV2V2__factory = exports.ICreditFacadeV2Extended__factory = exports.ICreditFacadeV2Exceptions__factory = exports.ICreditFacadeV2Events__factory = exports.ICreditFacadeV2__factory = exports.ICreditConfiguratorV3Events__factory = exports.ICreditConfiguratorV3__factory = exports.ICreditConfiguratorV2Exceptions__factory = exports.ICreditConfiguratorV2Events__factory = exports.ICreditConfiguratorV2__factory = exports.IConvexV1BoosterAdapterEvents__factory = exports.IConvexV1BoosterAdapter__factory = exports.IConvexV1BaseRewardPoolAdapter__factory = exports.IConvexToken__factory = exports.IContractsRegisterEvents__factory = exports.IContractsRegister__factory = exports.ICompoundV2_Exceptions__factory = exports.ICompoundV2_CTokenAdapter__factory = exports.IBaseRewardPool__factory = exports.IBalancerV2VaultAdapterExceptions__factory = exports.IBalancerV2VaultAdapterEvents__factory = exports.IBalancerV2VaultAdapter__factory = exports.IBalancerV2VaultGetters__factory = exports.IBalancerV2Vault__factory = exports.IAirdropDistributorEvents__factory = exports.IAirdropDistributor__factory = exports.IAddressProviderV3Events__factory = exports.IAddressProviderV3__factory = exports.IAddressProviderEvents__factory = exports.IAddressProvider__factory = exports.IAdapter__factory = exports.IAaveV2_WrappedATokenAdapter__factory = exports.IAaveV2_LendingPoolAdapter__factory = exports.Errors__factory = exports.Claimable__factory = exports.BalanceOps__factory = exports.AddressProvider__factory = exports.factories = void 0;
|
|
27
|
+
exports.IUniswapV2Adapter__factory = exports.IstETHGetters__factory = exports.IstETH__factory = exports.IPriceOracleV3Events__factory = exports.IPriceOracleV3__factory = exports.IPriceOracleBase__factory = exports.IPriceOracleV2Ext__factory = exports.IPriceOracleV2Exceptions__factory = exports.IPriceOracleV2Events__factory = exports.IPriceOracleV2__factory = exports.IUpdatablePriceFeed__factory = exports.IPriceFeed__factory = exports.IPoolV3Events__factory = exports.IPoolV3__factory = exports.IPoolServiceEvents__factory = exports.IPoolService__factory = exports.IPoolQuotaKeeperV3Events__factory = exports.IPoolQuotaKeeperV3__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.IRouter__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGearStakingV3Events__factory = exports.IGearStakingV3__factory = exports.IGaugeV3Events__factory = exports.IGaugeV3__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.IDegenNFTV2Exceptions__factory = exports.IDegenNFTV2Events__factory = exports.IDegenNFTV2__factory = exports.IDegenDistributorEvents__factory = exports.IDegenDistributor__factory = exports.IDataCompressorV3_00__factory = exports.IDataCompressorV2_10__factory = exports.IDaiLikePermit__factory = exports.ICurveV1Adapter__factory = exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = void 0;
|
|
28
|
+
exports.SafeERC20__factory = exports.Ownable__factory = exports.IZapper__factory = exports.IYVault__factory = exports.IYearnV2Adapter__factory = exports.IwstETHV1Adapter__factory = exports.IwstETHGateWay__factory = exports.IwstETHGetters__factory = exports.IwstETH__factory = exports.IWETHGateway__factory = exports.IWETH__factory = exports.IVotingContractV3__factory = exports.IVersion__factory = exports.IUniswapV3AdapterExceptions__factory = exports.IUniswapV3AdapterEvents__factory = exports.IUniswapV3Adapter__factory = exports.ISwapRouter__factory = exports.IUniswapV2AdapterExceptions__factory = exports.IUniswapV2AdapterEvents__factory = void 0;
|
|
29
29
|
exports.factories = __importStar(require("./factories"));
|
|
30
30
|
var AddressProvider__factory_1 = require("./factories/AddressProvider__factory");
|
|
31
31
|
Object.defineProperty(exports, "AddressProvider__factory", { enumerable: true, get: function () { return AddressProvider__factory_1.AddressProvider__factory; } });
|
|
@@ -35,6 +35,10 @@ var Claimable__factory_1 = require("./factories/Claimable__factory");
|
|
|
35
35
|
Object.defineProperty(exports, "Claimable__factory", { enumerable: true, get: function () { return Claimable__factory_1.Claimable__factory; } });
|
|
36
36
|
var Errors__factory_1 = require("./factories/Errors__factory");
|
|
37
37
|
Object.defineProperty(exports, "Errors__factory", { enumerable: true, get: function () { return Errors__factory_1.Errors__factory; } });
|
|
38
|
+
var IAaveV2_LendingPoolAdapter__factory_1 = require("./factories/IAaveV2_LendingPoolAdapter__factory");
|
|
39
|
+
Object.defineProperty(exports, "IAaveV2_LendingPoolAdapter__factory", { enumerable: true, get: function () { return IAaveV2_LendingPoolAdapter__factory_1.IAaveV2_LendingPoolAdapter__factory; } });
|
|
40
|
+
var IAaveV2_WrappedATokenAdapter__factory_1 = require("./factories/IAaveV2_WrappedATokenAdapter__factory");
|
|
41
|
+
Object.defineProperty(exports, "IAaveV2_WrappedATokenAdapter__factory", { enumerable: true, get: function () { return IAaveV2_WrappedATokenAdapter__factory_1.IAaveV2_WrappedATokenAdapter__factory; } });
|
|
38
42
|
var IAdapter__factory_1 = require("./factories/IAdapter__factory");
|
|
39
43
|
Object.defineProperty(exports, "IAdapter__factory", { enumerable: true, get: function () { return IAdapter__factory_1.IAdapter__factory; } });
|
|
40
44
|
var IAddressProvider__factory_1 = require("./factories/IAddressProvider.sol/IAddressProvider__factory");
|
|
@@ -49,8 +53,22 @@ var IAirdropDistributor__factory_1 = require("./factories/IAirdropDistributor.so
|
|
|
49
53
|
Object.defineProperty(exports, "IAirdropDistributor__factory", { enumerable: true, get: function () { return IAirdropDistributor__factory_1.IAirdropDistributor__factory; } });
|
|
50
54
|
var IAirdropDistributorEvents__factory_1 = require("./factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory");
|
|
51
55
|
Object.defineProperty(exports, "IAirdropDistributorEvents__factory", { enumerable: true, get: function () { return IAirdropDistributorEvents__factory_1.IAirdropDistributorEvents__factory; } });
|
|
56
|
+
var IBalancerV2Vault__factory_1 = require("./factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory");
|
|
57
|
+
Object.defineProperty(exports, "IBalancerV2Vault__factory", { enumerable: true, get: function () { return IBalancerV2Vault__factory_1.IBalancerV2Vault__factory; } });
|
|
58
|
+
var IBalancerV2VaultGetters__factory_1 = require("./factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory");
|
|
59
|
+
Object.defineProperty(exports, "IBalancerV2VaultGetters__factory", { enumerable: true, get: function () { return IBalancerV2VaultGetters__factory_1.IBalancerV2VaultGetters__factory; } });
|
|
60
|
+
var IBalancerV2VaultAdapter__factory_1 = require("./factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory");
|
|
61
|
+
Object.defineProperty(exports, "IBalancerV2VaultAdapter__factory", { enumerable: true, get: function () { return IBalancerV2VaultAdapter__factory_1.IBalancerV2VaultAdapter__factory; } });
|
|
62
|
+
var IBalancerV2VaultAdapterEvents__factory_1 = require("./factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory");
|
|
63
|
+
Object.defineProperty(exports, "IBalancerV2VaultAdapterEvents__factory", { enumerable: true, get: function () { return IBalancerV2VaultAdapterEvents__factory_1.IBalancerV2VaultAdapterEvents__factory; } });
|
|
64
|
+
var IBalancerV2VaultAdapterExceptions__factory_1 = require("./factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory");
|
|
65
|
+
Object.defineProperty(exports, "IBalancerV2VaultAdapterExceptions__factory", { enumerable: true, get: function () { return IBalancerV2VaultAdapterExceptions__factory_1.IBalancerV2VaultAdapterExceptions__factory; } });
|
|
52
66
|
var IBaseRewardPool__factory_1 = require("./factories/IBaseRewardPool__factory");
|
|
53
67
|
Object.defineProperty(exports, "IBaseRewardPool__factory", { enumerable: true, get: function () { return IBaseRewardPool__factory_1.IBaseRewardPool__factory; } });
|
|
68
|
+
var ICompoundV2_CTokenAdapter__factory_1 = require("./factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory");
|
|
69
|
+
Object.defineProperty(exports, "ICompoundV2_CTokenAdapter__factory", { enumerable: true, get: function () { return ICompoundV2_CTokenAdapter__factory_1.ICompoundV2_CTokenAdapter__factory; } });
|
|
70
|
+
var ICompoundV2_Exceptions__factory_1 = require("./factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory");
|
|
71
|
+
Object.defineProperty(exports, "ICompoundV2_Exceptions__factory", { enumerable: true, get: function () { return ICompoundV2_Exceptions__factory_1.ICompoundV2_Exceptions__factory; } });
|
|
54
72
|
var IContractsRegister__factory_1 = require("./factories/IContractsRegister.sol/IContractsRegister__factory");
|
|
55
73
|
Object.defineProperty(exports, "IContractsRegister__factory", { enumerable: true, get: function () { return IContractsRegister__factory_1.IContractsRegister__factory; } });
|
|
56
74
|
var IContractsRegisterEvents__factory_1 = require("./factories/IContractsRegister.sol/IContractsRegisterEvents__factory");
|
|
@@ -99,22 +117,22 @@ var ICreditManagerV3__factory_1 = require("./factories/ICreditManagerV3.sol/ICre
|
|
|
99
117
|
Object.defineProperty(exports, "ICreditManagerV3__factory", { enumerable: true, get: function () { return ICreditManagerV3__factory_1.ICreditManagerV3__factory; } });
|
|
100
118
|
var ICreditManagerV3Events__factory_1 = require("./factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory");
|
|
101
119
|
Object.defineProperty(exports, "ICreditManagerV3Events__factory", { enumerable: true, get: function () { return ICreditManagerV3Events__factory_1.ICreditManagerV3Events__factory; } });
|
|
102
|
-
var ICurvePool__factory_1 = require("./factories/ICurvePool__factory");
|
|
103
|
-
Object.defineProperty(exports, "ICurvePool__factory", { enumerable: true, get: function () { return ICurvePool__factory_1.ICurvePool__factory; } });
|
|
104
120
|
var ICurvePool2Assets__factory_1 = require("./factories/ICurvePool_2.sol/ICurvePool2Assets__factory");
|
|
105
121
|
Object.defineProperty(exports, "ICurvePool2Assets__factory", { enumerable: true, get: function () { return ICurvePool2Assets__factory_1.ICurvePool2Assets__factory; } });
|
|
106
122
|
var ICurvePool3Assets__factory_1 = require("./factories/ICurvePool_3.sol/ICurvePool3Assets__factory");
|
|
107
123
|
Object.defineProperty(exports, "ICurvePool3Assets__factory", { enumerable: true, get: function () { return ICurvePool3Assets__factory_1.ICurvePool3Assets__factory; } });
|
|
108
124
|
var ICurvePool4Assets__factory_1 = require("./factories/ICurvePool_4.sol/ICurvePool4Assets__factory");
|
|
109
125
|
Object.defineProperty(exports, "ICurvePool4Assets__factory", { enumerable: true, get: function () { return ICurvePool4Assets__factory_1.ICurvePool4Assets__factory; } });
|
|
110
|
-
var
|
|
111
|
-
Object.defineProperty(exports, "
|
|
126
|
+
var ICurvePool__factory_1 = require("./factories/ICurvePool__factory");
|
|
127
|
+
Object.defineProperty(exports, "ICurvePool__factory", { enumerable: true, get: function () { return ICurvePool__factory_1.ICurvePool__factory; } });
|
|
112
128
|
var ICurveV1_2AssetsAdapter__factory_1 = require("./factories/ICurveV1_2AssetsAdapter__factory");
|
|
113
129
|
Object.defineProperty(exports, "ICurveV1_2AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_2AssetsAdapter__factory_1.ICurveV1_2AssetsAdapter__factory; } });
|
|
114
130
|
var ICurveV1_3AssetsAdapter__factory_1 = require("./factories/ICurveV1_3AssetsAdapter__factory");
|
|
115
131
|
Object.defineProperty(exports, "ICurveV1_3AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_3AssetsAdapter__factory_1.ICurveV1_3AssetsAdapter__factory; } });
|
|
116
132
|
var ICurveV1_4AssetsAdapter__factory_1 = require("./factories/ICurveV1_4AssetsAdapter__factory");
|
|
117
133
|
Object.defineProperty(exports, "ICurveV1_4AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_4AssetsAdapter__factory_1.ICurveV1_4AssetsAdapter__factory; } });
|
|
134
|
+
var ICurveV1Adapter__factory_1 = require("./factories/ICurveV1Adapter__factory");
|
|
135
|
+
Object.defineProperty(exports, "ICurveV1Adapter__factory", { enumerable: true, get: function () { return ICurveV1Adapter__factory_1.ICurveV1Adapter__factory; } });
|
|
118
136
|
var IDaiLikePermit__factory_1 = require("./factories/IDaiLikePermit__factory");
|
|
119
137
|
Object.defineProperty(exports, "IDaiLikePermit__factory", { enumerable: true, get: function () { return IDaiLikePermit__factory_1.IDaiLikePermit__factory; } });
|
|
120
138
|
var IDataCompressorV2_10__factory_1 = require("./factories/IDataCompressorV2_10__factory");
|
|
@@ -143,6 +161,8 @@ var IERC20ZapperDeposits__factory_1 = require("./factories/IERC20ZapperDeposits_
|
|
|
143
161
|
Object.defineProperty(exports, "IERC20ZapperDeposits__factory", { enumerable: true, get: function () { return IERC20ZapperDeposits__factory_1.IERC20ZapperDeposits__factory; } });
|
|
144
162
|
var IERC4626__factory_1 = require("./factories/IERC4626__factory");
|
|
145
163
|
Object.defineProperty(exports, "IERC4626__factory", { enumerable: true, get: function () { return IERC4626__factory_1.IERC4626__factory; } });
|
|
164
|
+
var IERC4626Adapter__factory_1 = require("./factories/IERC4626Adapter__factory");
|
|
165
|
+
Object.defineProperty(exports, "IERC4626Adapter__factory", { enumerable: true, get: function () { return IERC4626Adapter__factory_1.IERC4626Adapter__factory; } });
|
|
146
166
|
var IERC721__factory_1 = require("./factories/IERC721__factory");
|
|
147
167
|
Object.defineProperty(exports, "IERC721__factory", { enumerable: true, get: function () { return IERC721__factory_1.IERC721__factory; } });
|
|
148
168
|
var IERC721Metadata__factory_1 = require("./factories/IERC721Metadata__factory");
|
|
@@ -163,6 +183,8 @@ var IInterestRateModel__factory_1 = require("./factories/IInterestRateModel__fac
|
|
|
163
183
|
Object.defineProperty(exports, "IInterestRateModel__factory", { enumerable: true, get: function () { return IInterestRateModel__factory_1.IInterestRateModel__factory; } });
|
|
164
184
|
var ILidoV1Adapter__factory_1 = require("./factories/ILidoV1Adapter__factory");
|
|
165
185
|
Object.defineProperty(exports, "ILidoV1Adapter__factory", { enumerable: true, get: function () { return ILidoV1Adapter__factory_1.ILidoV1Adapter__factory; } });
|
|
186
|
+
var IRouter__factory_1 = require("./factories/interfaces/IRouter__factory");
|
|
187
|
+
Object.defineProperty(exports, "IRouter__factory", { enumerable: true, get: function () { return IRouter__factory_1.IRouter__factory; } });
|
|
166
188
|
var IOffchainOracle__factory_1 = require("./factories/IOffchainOracle__factory");
|
|
167
189
|
Object.defineProperty(exports, "IOffchainOracle__factory", { enumerable: true, get: function () { return IOffchainOracle__factory_1.IOffchainOracle__factory; } });
|
|
168
190
|
var IPermit2__factory_1 = require("./factories/IPermit2__factory");
|
|
@@ -197,8 +219,10 @@ var IPriceOracleV3__factory_1 = require("./factories/IPriceOracleV3.sol/IPriceOr
|
|
|
197
219
|
Object.defineProperty(exports, "IPriceOracleV3__factory", { enumerable: true, get: function () { return IPriceOracleV3__factory_1.IPriceOracleV3__factory; } });
|
|
198
220
|
var IPriceOracleV3Events__factory_1 = require("./factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory");
|
|
199
221
|
Object.defineProperty(exports, "IPriceOracleV3Events__factory", { enumerable: true, get: function () { return IPriceOracleV3Events__factory_1.IPriceOracleV3Events__factory; } });
|
|
200
|
-
var
|
|
201
|
-
Object.defineProperty(exports, "
|
|
222
|
+
var IstETH__factory_1 = require("./factories/IstETH.sol/IstETH__factory");
|
|
223
|
+
Object.defineProperty(exports, "IstETH__factory", { enumerable: true, get: function () { return IstETH__factory_1.IstETH__factory; } });
|
|
224
|
+
var IstETHGetters__factory_1 = require("./factories/IstETH.sol/IstETHGetters__factory");
|
|
225
|
+
Object.defineProperty(exports, "IstETHGetters__factory", { enumerable: true, get: function () { return IstETHGetters__factory_1.IstETHGetters__factory; } });
|
|
202
226
|
var IUniswapV2Adapter__factory_1 = require("./factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory");
|
|
203
227
|
Object.defineProperty(exports, "IUniswapV2Adapter__factory", { enumerable: true, get: function () { return IUniswapV2Adapter__factory_1.IUniswapV2Adapter__factory; } });
|
|
204
228
|
var IUniswapV2AdapterEvents__factory_1 = require("./factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory");
|
|
@@ -221,20 +245,6 @@ var IWETH__factory_1 = require("./factories/IWETH__factory");
|
|
|
221
245
|
Object.defineProperty(exports, "IWETH__factory", { enumerable: true, get: function () { return IWETH__factory_1.IWETH__factory; } });
|
|
222
246
|
var IWETHGateway__factory_1 = require("./factories/IWETHGateway__factory");
|
|
223
247
|
Object.defineProperty(exports, "IWETHGateway__factory", { enumerable: true, get: function () { return IWETHGateway__factory_1.IWETHGateway__factory; } });
|
|
224
|
-
var IWithdrawalManagerV3__factory_1 = require("./factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory");
|
|
225
|
-
Object.defineProperty(exports, "IWithdrawalManagerV3__factory", { enumerable: true, get: function () { return IWithdrawalManagerV3__factory_1.IWithdrawalManagerV3__factory; } });
|
|
226
|
-
var IWithdrawalManagerV3Events__factory_1 = require("./factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory");
|
|
227
|
-
Object.defineProperty(exports, "IWithdrawalManagerV3Events__factory", { enumerable: true, get: function () { return IWithdrawalManagerV3Events__factory_1.IWithdrawalManagerV3Events__factory; } });
|
|
228
|
-
var IYVault__factory_1 = require("./factories/IYVault__factory");
|
|
229
|
-
Object.defineProperty(exports, "IYVault__factory", { enumerable: true, get: function () { return IYVault__factory_1.IYVault__factory; } });
|
|
230
|
-
var IYearnV2Adapter__factory_1 = require("./factories/IYearnV2Adapter__factory");
|
|
231
|
-
Object.defineProperty(exports, "IYearnV2Adapter__factory", { enumerable: true, get: function () { return IYearnV2Adapter__factory_1.IYearnV2Adapter__factory; } });
|
|
232
|
-
var IZapper__factory_1 = require("./factories/IZapper__factory");
|
|
233
|
-
Object.defineProperty(exports, "IZapper__factory", { enumerable: true, get: function () { return IZapper__factory_1.IZapper__factory; } });
|
|
234
|
-
var IstETH__factory_1 = require("./factories/IstETH.sol/IstETH__factory");
|
|
235
|
-
Object.defineProperty(exports, "IstETH__factory", { enumerable: true, get: function () { return IstETH__factory_1.IstETH__factory; } });
|
|
236
|
-
var IstETHGetters__factory_1 = require("./factories/IstETH.sol/IstETHGetters__factory");
|
|
237
|
-
Object.defineProperty(exports, "IstETHGetters__factory", { enumerable: true, get: function () { return IstETHGetters__factory_1.IstETHGetters__factory; } });
|
|
238
248
|
var IwstETH__factory_1 = require("./factories/IwstETH.sol/IwstETH__factory");
|
|
239
249
|
Object.defineProperty(exports, "IwstETH__factory", { enumerable: true, get: function () { return IwstETH__factory_1.IwstETH__factory; } });
|
|
240
250
|
var IwstETHGetters__factory_1 = require("./factories/IwstETH.sol/IwstETHGetters__factory");
|
|
@@ -243,6 +253,12 @@ var IwstETHGateWay__factory_1 = require("./factories/IwstETHGateway.sol/IwstETHG
|
|
|
243
253
|
Object.defineProperty(exports, "IwstETHGateWay__factory", { enumerable: true, get: function () { return IwstETHGateWay__factory_1.IwstETHGateWay__factory; } });
|
|
244
254
|
var IwstETHV1Adapter__factory_1 = require("./factories/IwstETHV1Adapter__factory");
|
|
245
255
|
Object.defineProperty(exports, "IwstETHV1Adapter__factory", { enumerable: true, get: function () { return IwstETHV1Adapter__factory_1.IwstETHV1Adapter__factory; } });
|
|
256
|
+
var IYearnV2Adapter__factory_1 = require("./factories/IYearnV2Adapter__factory");
|
|
257
|
+
Object.defineProperty(exports, "IYearnV2Adapter__factory", { enumerable: true, get: function () { return IYearnV2Adapter__factory_1.IYearnV2Adapter__factory; } });
|
|
258
|
+
var IYVault__factory_1 = require("./factories/IYVault__factory");
|
|
259
|
+
Object.defineProperty(exports, "IYVault__factory", { enumerable: true, get: function () { return IYVault__factory_1.IYVault__factory; } });
|
|
260
|
+
var IZapper__factory_1 = require("./factories/IZapper__factory");
|
|
261
|
+
Object.defineProperty(exports, "IZapper__factory", { enumerable: true, get: function () { return IZapper__factory_1.IZapper__factory; } });
|
|
246
262
|
var Ownable__factory_1 = require("./factories/Ownable__factory");
|
|
247
263
|
Object.defineProperty(exports, "Ownable__factory", { enumerable: true, get: function () { return Ownable__factory_1.Ownable__factory; } });
|
|
248
264
|
var SafeERC20__factory_1 = require("./factories/SafeERC20__factory");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
2
|
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../common";
|
|
5
5
|
export type SwapTaskStruct = {
|
|
6
6
|
swapOperation: PromiseOrValue<BigNumberish>;
|
|
7
7
|
creditAccount: PromiseOrValue<string>;
|
|
@@ -9,8 +9,7 @@ export type SwapTaskStruct = {
|
|
|
9
9
|
tokenOut: PromiseOrValue<string>;
|
|
10
10
|
connectors: PromiseOrValue<string>[];
|
|
11
11
|
amount: PromiseOrValue<BigNumberish>;
|
|
12
|
-
|
|
13
|
-
externalSlippage: PromiseOrValue<boolean>;
|
|
12
|
+
leftoverAmount: PromiseOrValue<BigNumberish>;
|
|
14
13
|
};
|
|
15
14
|
export type SwapTaskStructOutput = [
|
|
16
15
|
number,
|
|
@@ -19,8 +18,7 @@ export type SwapTaskStructOutput = [
|
|
|
19
18
|
string,
|
|
20
19
|
string[],
|
|
21
20
|
BigNumber,
|
|
22
|
-
BigNumber
|
|
23
|
-
boolean
|
|
21
|
+
BigNumber
|
|
24
22
|
] & {
|
|
25
23
|
swapOperation: number;
|
|
26
24
|
creditAccount: string;
|
|
@@ -28,8 +26,7 @@ export type SwapTaskStructOutput = [
|
|
|
28
26
|
tokenOut: string;
|
|
29
27
|
connectors: string[];
|
|
30
28
|
amount: BigNumber;
|
|
31
|
-
|
|
32
|
-
externalSlippage: boolean;
|
|
29
|
+
leftoverAmount: BigNumber;
|
|
33
30
|
};
|
|
34
31
|
export type MultiCallStruct = {
|
|
35
32
|
target: PromiseOrValue<string>;
|
|
@@ -41,18 +38,29 @@ export type MultiCallStructOutput = [string, string] & {
|
|
|
41
38
|
};
|
|
42
39
|
export type RouterResultStruct = {
|
|
43
40
|
amount: PromiseOrValue<BigNumberish>;
|
|
41
|
+
minAmount: PromiseOrValue<BigNumberish>;
|
|
44
42
|
gasUsage: PromiseOrValue<BigNumberish>;
|
|
45
43
|
calls: MultiCallStruct[];
|
|
46
44
|
};
|
|
47
45
|
export type RouterResultStructOutput = [
|
|
46
|
+
BigNumber,
|
|
48
47
|
BigNumber,
|
|
49
48
|
BigNumber,
|
|
50
49
|
MultiCallStructOutput[]
|
|
51
50
|
] & {
|
|
52
51
|
amount: BigNumber;
|
|
52
|
+
minAmount: BigNumber;
|
|
53
53
|
gasUsage: BigNumber;
|
|
54
54
|
calls: MultiCallStructOutput[];
|
|
55
55
|
};
|
|
56
|
+
export type BalanceStruct = {
|
|
57
|
+
token: PromiseOrValue<string>;
|
|
58
|
+
balance: PromiseOrValue<BigNumberish>;
|
|
59
|
+
};
|
|
60
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
61
|
+
token: string;
|
|
62
|
+
balance: BigNumber;
|
|
63
|
+
};
|
|
56
64
|
export type PathOptionStruct = {
|
|
57
65
|
target: PromiseOrValue<string>;
|
|
58
66
|
option: PromiseOrValue<BigNumberish>;
|
|
@@ -63,21 +71,13 @@ export type PathOptionStructOutput = [string, number, number] & {
|
|
|
63
71
|
option: number;
|
|
64
72
|
totalOptions: number;
|
|
65
73
|
};
|
|
66
|
-
export type BalanceStruct = {
|
|
67
|
-
token: PromiseOrValue<string>;
|
|
68
|
-
balance: PromiseOrValue<BigNumberish>;
|
|
69
|
-
};
|
|
70
|
-
export type BalanceStructOutput = [string, BigNumber] & {
|
|
71
|
-
token: string;
|
|
72
|
-
balance: BigNumber;
|
|
73
|
-
};
|
|
74
74
|
export interface IRouterInterface extends utils.Interface {
|
|
75
75
|
functions: {
|
|
76
76
|
"componentAddressById(uint8)": FunctionFragment;
|
|
77
|
-
"findAllSwaps((uint8,address,address,address,address[],uint256,uint256,
|
|
78
|
-
"findBestClosePath(address,address[],uint256,(address,uint8,uint8)[],uint256,bool)": FunctionFragment;
|
|
77
|
+
"findAllSwaps((uint8,address,address,address,address[],uint256,uint256),uint256)": FunctionFragment;
|
|
78
|
+
"findBestClosePath(address,(address,uint256)[],(address,uint256)[],address[],uint256,(address,uint8,uint8)[],uint256,bool)": FunctionFragment;
|
|
79
79
|
"findOneTokenPath(address,uint256,address,address,address[],uint256)": FunctionFragment;
|
|
80
|
-
"findOpenStrategyPath(address,(address,uint256)[],address,address[],uint256)": FunctionFragment;
|
|
80
|
+
"findOpenStrategyPath(address,(address,uint256)[],(address,uint256)[],address,address[],uint256)": FunctionFragment;
|
|
81
81
|
"getGasPriceTokenOutRAY(address)": FunctionFragment;
|
|
82
82
|
"isRouterConfigurator(address)": FunctionFragment;
|
|
83
83
|
"tokenTypes(address)": FunctionFragment;
|
|
@@ -85,9 +85,11 @@ export interface IRouterInterface extends utils.Interface {
|
|
|
85
85
|
};
|
|
86
86
|
getFunction(nameOrSignatureOrTopic: "componentAddressById" | "findAllSwaps" | "findBestClosePath" | "findOneTokenPath" | "findOpenStrategyPath" | "getGasPriceTokenOutRAY" | "isRouterConfigurator" | "tokenTypes" | "version"): FunctionFragment;
|
|
87
87
|
encodeFunctionData(functionFragment: "componentAddressById", values: [PromiseOrValue<BigNumberish>]): string;
|
|
88
|
-
encodeFunctionData(functionFragment: "findAllSwaps", values: [SwapTaskStruct]): string;
|
|
88
|
+
encodeFunctionData(functionFragment: "findAllSwaps", values: [SwapTaskStruct, PromiseOrValue<BigNumberish>]): string;
|
|
89
89
|
encodeFunctionData(functionFragment: "findBestClosePath", values: [
|
|
90
90
|
PromiseOrValue<string>,
|
|
91
|
+
BalanceStruct[],
|
|
92
|
+
BalanceStruct[],
|
|
91
93
|
PromiseOrValue<string>[],
|
|
92
94
|
PromiseOrValue<BigNumberish>,
|
|
93
95
|
PathOptionStruct[],
|
|
@@ -105,6 +107,7 @@ export interface IRouterInterface extends utils.Interface {
|
|
|
105
107
|
encodeFunctionData(functionFragment: "findOpenStrategyPath", values: [
|
|
106
108
|
PromiseOrValue<string>,
|
|
107
109
|
BalanceStruct[],
|
|
110
|
+
BalanceStruct[],
|
|
108
111
|
PromiseOrValue<string>,
|
|
109
112
|
PromiseOrValue<string>[],
|
|
110
113
|
PromiseOrValue<BigNumberish>
|
|
@@ -176,16 +179,16 @@ export interface IRouter extends BaseContract {
|
|
|
176
179
|
removeListener: OnEvent<this>;
|
|
177
180
|
functions: {
|
|
178
181
|
componentAddressById(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string]>;
|
|
179
|
-
findAllSwaps(swapTask: SwapTaskStruct, overrides?: Overrides & {
|
|
182
|
+
findAllSwaps(swapTask: SwapTaskStruct, slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
180
183
|
from?: PromiseOrValue<string>;
|
|
181
184
|
}): Promise<ContractTransaction>;
|
|
182
|
-
findBestClosePath(creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
185
|
+
findBestClosePath(creditAccount: PromiseOrValue<string>, expectedBalances: BalanceStruct[], leftoverBalances: BalanceStruct[], connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
183
186
|
from?: PromiseOrValue<string>;
|
|
184
187
|
}): Promise<ContractTransaction>;
|
|
185
188
|
findOneTokenPath(tokenIn: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, tokenOut: PromiseOrValue<string>, creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
186
189
|
from?: PromiseOrValue<string>;
|
|
187
190
|
}): Promise<ContractTransaction>;
|
|
188
|
-
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
191
|
+
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], leftoverBalances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
189
192
|
from?: PromiseOrValue<string>;
|
|
190
193
|
}): Promise<ContractTransaction>;
|
|
191
194
|
getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber] & {
|
|
@@ -196,16 +199,16 @@ export interface IRouter extends BaseContract {
|
|
|
196
199
|
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
197
200
|
};
|
|
198
201
|
componentAddressById(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
199
|
-
findAllSwaps(swapTask: SwapTaskStruct, overrides?: Overrides & {
|
|
202
|
+
findAllSwaps(swapTask: SwapTaskStruct, slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
200
203
|
from?: PromiseOrValue<string>;
|
|
201
204
|
}): Promise<ContractTransaction>;
|
|
202
|
-
findBestClosePath(creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
205
|
+
findBestClosePath(creditAccount: PromiseOrValue<string>, expectedBalances: BalanceStruct[], leftoverBalances: BalanceStruct[], connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
203
206
|
from?: PromiseOrValue<string>;
|
|
204
207
|
}): Promise<ContractTransaction>;
|
|
205
208
|
findOneTokenPath(tokenIn: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, tokenOut: PromiseOrValue<string>, creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
206
209
|
from?: PromiseOrValue<string>;
|
|
207
210
|
}): Promise<ContractTransaction>;
|
|
208
|
-
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
211
|
+
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], leftoverBalances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
209
212
|
from?: PromiseOrValue<string>;
|
|
210
213
|
}): Promise<ContractTransaction>;
|
|
211
214
|
getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -214,8 +217,8 @@ export interface IRouter extends BaseContract {
|
|
|
214
217
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
215
218
|
callStatic: {
|
|
216
219
|
componentAddressById(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
217
|
-
findAllSwaps(swapTask: SwapTaskStruct, overrides?: CallOverrides): Promise<RouterResultStructOutput[]>;
|
|
218
|
-
findBestClosePath(creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<[
|
|
220
|
+
findAllSwaps(swapTask: SwapTaskStruct, slippage: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<RouterResultStructOutput[]>;
|
|
221
|
+
findBestClosePath(creditAccount: PromiseOrValue<string>, expectedBalances: BalanceStruct[], leftoverBalances: BalanceStruct[], connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<[
|
|
219
222
|
RouterResultStructOutput,
|
|
220
223
|
BigNumber
|
|
221
224
|
] & {
|
|
@@ -223,7 +226,7 @@ export interface IRouter extends BaseContract {
|
|
|
223
226
|
gasPriceTargetRAY: BigNumber;
|
|
224
227
|
}>;
|
|
225
228
|
findOneTokenPath(tokenIn: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, tokenOut: PromiseOrValue<string>, creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<RouterResultStructOutput>;
|
|
226
|
-
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BalanceStructOutput[], RouterResultStructOutput]>;
|
|
229
|
+
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], leftoverBalances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BalanceStructOutput[], RouterResultStructOutput]>;
|
|
227
230
|
getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
228
231
|
isRouterConfigurator(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
229
232
|
tokenTypes(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<number>;
|
|
@@ -239,16 +242,16 @@ export interface IRouter extends BaseContract {
|
|
|
239
242
|
};
|
|
240
243
|
estimateGas: {
|
|
241
244
|
componentAddressById(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
242
|
-
findAllSwaps(swapTask: SwapTaskStruct, overrides?: Overrides & {
|
|
245
|
+
findAllSwaps(swapTask: SwapTaskStruct, slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
243
246
|
from?: PromiseOrValue<string>;
|
|
244
247
|
}): Promise<BigNumber>;
|
|
245
|
-
findBestClosePath(creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
248
|
+
findBestClosePath(creditAccount: PromiseOrValue<string>, expectedBalances: BalanceStruct[], leftoverBalances: BalanceStruct[], connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
246
249
|
from?: PromiseOrValue<string>;
|
|
247
250
|
}): Promise<BigNumber>;
|
|
248
251
|
findOneTokenPath(tokenIn: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, tokenOut: PromiseOrValue<string>, creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
249
252
|
from?: PromiseOrValue<string>;
|
|
250
253
|
}): Promise<BigNumber>;
|
|
251
|
-
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
254
|
+
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], leftoverBalances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
252
255
|
from?: PromiseOrValue<string>;
|
|
253
256
|
}): Promise<BigNumber>;
|
|
254
257
|
getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -258,16 +261,16 @@ export interface IRouter extends BaseContract {
|
|
|
258
261
|
};
|
|
259
262
|
populateTransaction: {
|
|
260
263
|
componentAddressById(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
261
|
-
findAllSwaps(swapTask: SwapTaskStruct, overrides?: Overrides & {
|
|
264
|
+
findAllSwaps(swapTask: SwapTaskStruct, slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
262
265
|
from?: PromiseOrValue<string>;
|
|
263
266
|
}): Promise<PopulatedTransaction>;
|
|
264
|
-
findBestClosePath(creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
267
|
+
findBestClosePath(creditAccount: PromiseOrValue<string>, expectedBalances: BalanceStruct[], leftoverBalances: BalanceStruct[], connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, pathOptions: PathOptionStruct[], iterations: PromiseOrValue<BigNumberish>, force: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
265
268
|
from?: PromiseOrValue<string>;
|
|
266
269
|
}): Promise<PopulatedTransaction>;
|
|
267
270
|
findOneTokenPath(tokenIn: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, tokenOut: PromiseOrValue<string>, creditAccount: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
268
271
|
from?: PromiseOrValue<string>;
|
|
269
272
|
}): Promise<PopulatedTransaction>;
|
|
270
|
-
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
273
|
+
findOpenStrategyPath(creditManager: PromiseOrValue<string>, balances: BalanceStruct[], leftoverBalances: BalanceStruct[], target: PromiseOrValue<string>, connectors: PromiseOrValue<string>[], slippage: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
271
274
|
from?: PromiseOrValue<string>;
|
|
272
275
|
}): Promise<PopulatedTransaction>;
|
|
273
276
|
getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { IRouter } from "./IRouter";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.56",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@commitlint/cli": "^17.6.3",
|
|
42
42
|
"@commitlint/config-conventional": "^17.0.3",
|
|
43
43
|
"@gearbox-protocol/core-v2": "1.19.0-base.17",
|
|
44
|
-
"@gearbox-protocol/core-v3": "^1.
|
|
44
|
+
"@gearbox-protocol/core-v3": "^1.44.0",
|
|
45
45
|
"@gearbox-protocol/eslint-config": "^1.4.1",
|
|
46
|
-
"@gearbox-protocol/integrations-v3": "^1.
|
|
47
|
-
"@gearbox-protocol/oracles-v3": "^1.8.
|
|
48
|
-
"@gearbox-protocol/periphery-v3": "^1.3.
|
|
46
|
+
"@gearbox-protocol/integrations-v3": "^1.24.0",
|
|
47
|
+
"@gearbox-protocol/oracles-v3": "^1.8.1",
|
|
48
|
+
"@gearbox-protocol/periphery-v3": "^1.3.9",
|
|
49
49
|
"@gearbox-protocol/prettier-config": "^1.4.1",
|
|
50
|
-
"@gearbox-protocol/router-v3": "^1.
|
|
50
|
+
"@gearbox-protocol/router-v3": "^1.6.0",
|
|
51
51
|
"@openzeppelin/contracts": "^4.9.3",
|
|
52
52
|
"@typechain/ethers-v5": "^10.1.0",
|
|
53
53
|
"@types/chai": "^4.3.3",
|