@gearbox-protocol/sdk 3.0.0-next.10 → 3.0.0-next.101
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 +32 -3
- package/lib/apy/curveAPY.js +2 -1
- package/lib/apy/index.d.ts +2 -2
- package/lib/apy/yearnAPY.js +1 -1
- package/lib/contracts/contractsRegister.d.ts +5 -2
- package/lib/contracts/contractsRegister.js +12 -0
- package/lib/core/assets.d.ts +2 -2
- package/lib/core/assets.js +4 -4
- package/lib/core/creditAccount.d.ts +72 -15
- package/lib/core/creditAccount.js +153 -62
- package/lib/core/creditAccount.spec.js +907 -16
- package/lib/core/creditManager.d.ts +19 -6
- package/lib/core/creditManager.js +66 -14
- package/lib/core/creditSession.d.ts +11 -1
- package/lib/core/creditSession.js +20 -2
- package/lib/core/endpoint.d.ts +10 -0
- package/lib/core/endpoint.js +26 -0
- package/lib/core/events.js +16 -16
- package/lib/core/gauge.d.ts +26 -0
- package/lib/core/gauge.js +63 -0
- package/lib/core/gaugeMath.d.ts +40 -0
- package/lib/core/gaugeMath.js +108 -0
- package/lib/core/gaugeMath.spec.js +388 -0
- package/lib/core/{pool/data.d.ts → pool.d.ts} +16 -8
- package/lib/core/{pool/data.js → pool.js} +43 -20
- package/lib/core/strategy.d.ts +15 -15
- package/lib/core/strategy.js +10 -26
- package/lib/core/trade.d.ts +11 -9
- package/lib/core/trade.js +36 -27
- package/lib/core/transactions.d.ts +110 -14
- package/lib/core/transactions.js +191 -108
- package/lib/index.d.ts +5 -0
- package/lib/index.js +5 -0
- package/lib/parsers/abstractParser.js +1 -2
- 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/creditFacadeParser.d.ts +2 -1
- package/lib/parsers/creditFacadeParser.js +44 -5
- package/lib/parsers/creditFacadeParser.spec.js +3 -4
- package/lib/parsers/curveAdapterParser.js +10 -11
- 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/txParser.d.ts +1 -1
- package/lib/parsers/txParser.js +9 -3
- package/lib/parsers/uniV2AdapterParser.js +5 -4
- package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
- package/lib/parsers/uniV3AdapterParser.js +9 -7
- 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/pathOptions.d.ts +2 -1
- package/lib/pathfinder/pathOptions.js +20 -1
- package/lib/pathfinder/pathOptions.spec.js +2 -2
- package/lib/pathfinder/pathfinder.d.ts +44 -16
- package/lib/pathfinder/pathfinder.js +58 -39
- package/lib/pathfinder/pathfinder.spec.js +7 -3
- package/lib/pathfinder/v1/core.d.ts +16 -0
- package/lib/pathfinder/v1/pathfinderv1.d.ts +46 -0
- package/lib/pathfinder/v1/pathfinderv1.js +155 -0
- package/lib/pathfinder/v1/pathfinderv1.spec.d.ts +1 -0
- package/lib/pathfinder/v1/pathfinderv1.spec.js +39 -0
- package/lib/payload/creditAccount.d.ts +3 -4
- package/lib/payload/creditManager.d.ts +3 -0
- package/lib/payload/creditSession.d.ts +11 -0
- package/lib/payload/gauge.d.ts +12 -0
- package/lib/payload/pool.d.ts +4 -0
- package/lib/types/CalldataExtractor.d.ts +44 -0
- package/lib/types/ERC20.d.ts +198 -0
- package/lib/types/FarmAccounting.d.ts +27 -0
- 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/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/IBotListV3.sol/IBotListV3.d.ts +286 -0
- package/lib/types/IBotListV3.sol/IBotListV3.js +2 -0
- package/lib/types/IBotListV3.sol/IBotListV3Events.d.ts +103 -0
- package/lib/types/IBotListV3.sol/IBotListV3Events.js +2 -0
- package/lib/types/IBotListV3.sol/index.d.ts +2 -0
- package/lib/types/IBotListV3.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/IContractsRegister.sol/IContractsRegister.d.ts +128 -0
- package/lib/types/IContractsRegister.sol/IContractsRegister.js +2 -0
- package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.d.ts +50 -0
- package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.js +2 -0
- package/lib/types/IContractsRegister.sol/index.d.ts +2 -0
- package/lib/types/IContractsRegister.sol/index.js +2 -0
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.d.ts +504 -0
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.js +2 -0
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.d.ts +82 -0
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.js +2 -0
- package/lib/types/IControllerTimelockV3.sol/index.d.ts +2 -0
- package/lib/types/IControllerTimelockV3.sol/index.js +2 -0
- package/lib/types/IConvexToken.d.ts +9 -1
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +46 -30
- package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +40 -21
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js +2 -0
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +43 -0
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js +2 -0
- package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/IConvexV1BoosterAdapter.sol/index.js +2 -0
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +58 -109
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +31 -35
- package/lib/types/ICreditFacadeV3Multicall.d.ts +91 -60
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +117 -97
- 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/IDaiLikePermit.d.ts +59 -0
- package/lib/types/IDaiLikePermit.js +2 -0
- package/lib/types/IDataCompressorV2_10.d.ts +26 -41
- package/lib/types/IDataCompressorV3_00.d.ts +123 -42
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.d.ts +339 -0
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.js +2 -0
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.d.ts +61 -0
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.js +2 -0
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.d.ts +27 -0
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.js +2 -0
- package/lib/types/IDegenNFTV2.sol/index.d.ts +3 -0
- package/lib/types/IDegenNFTV2.sol/index.js +2 -0
- package/lib/types/IERC165.d.ts +42 -0
- package/lib/types/IERC165.js +2 -0
- package/lib/types/IERC20Permit.d.ts +74 -0
- package/lib/types/IERC20Permit.js +2 -0
- package/lib/types/IERC20ZapperDeposits.d.ts +117 -0
- package/lib/types/IERC20ZapperDeposits.js +2 -0
- package/lib/types/IERC4626Adapter.d.ts +238 -0
- package/lib/types/IERC4626Adapter.js +2 -0
- package/lib/types/IERC721.d.ts +220 -0
- package/lib/types/IERC721.js +2 -0
- package/lib/types/IERC721Metadata.d.ts +244 -0
- package/lib/types/IERC721Metadata.js +2 -0
- package/lib/types/IETHZapperDeposits.d.ts +66 -0
- package/lib/types/IETHZapperDeposits.js +2 -0
- package/lib/types/IFarmingPool.d.ts +318 -0
- package/lib/types/IFarmingPool.js +2 -0
- package/lib/types/IGasPricer.d.ts +44 -0
- package/lib/types/IGasPricer.js +2 -0
- package/lib/types/IGaugeV3.sol/IGaugeV3.d.ts +366 -0
- package/lib/types/IGaugeV3.sol/IGaugeV3.js +2 -0
- package/lib/types/IGaugeV3.sol/IGaugeV3Events.d.ts +114 -0
- package/lib/types/IGaugeV3.sol/IGaugeV3Events.js +2 -0
- package/lib/types/IGaugeV3.sol/index.d.ts +2 -0
- package/lib/types/IGaugeV3.sol/index.js +2 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.js +2 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.js +2 -0
- package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/IGearStakingV3.sol/index.js +2 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.d.ts +285 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.js +2 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.d.ts +54 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.js +2 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.d.ts +27 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.js +2 -0
- package/lib/types/ILPPriceFeed.sol/index.d.ts +3 -0
- package/lib/types/ILPPriceFeed.sol/index.js +2 -0
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +13 -48
- package/lib/types/ILidoV1Adapter.js +2 -0
- package/lib/types/ILinearInterestRateModelV3.d.ts +120 -0
- package/lib/types/ILinearInterestRateModelV3.js +2 -0
- package/lib/types/IPermit2.d.ts +130 -0
- package/lib/types/IPermit2.js +2 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.d.ts +473 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.js +2 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.d.ts +113 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.js +2 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/index.js +2 -0
- package/lib/types/IPoolV3.sol/IPoolV3.d.ts +43 -3
- package/lib/types/IPriceFeed.sol/IPriceFeed.d.ts +109 -0
- package/lib/types/IPriceFeed.sol/IPriceFeed.js +2 -0
- package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.d.ts +133 -0
- package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.js +2 -0
- package/lib/types/IPriceFeed.sol/index.d.ts +2 -0
- package/lib/types/IPriceFeed.sol/index.js +2 -0
- package/lib/types/IPriceOracle.sol/IPriceOracleV2.d.ts +166 -0
- package/lib/types/IPriceOracle.sol/IPriceOracleV2.js +2 -0
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.d.ts +43 -0
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.js +2 -0
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.d.ts → IPriceOracle.sol/IPriceOracleV2Exceptions.d.ts} +3 -3
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Exceptions.js +2 -0
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.d.ts +182 -0
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.js +2 -0
- package/lib/types/IPriceOracle.sol/index.d.ts +4 -0
- package/lib/types/IPriceOracle.sol/index.js +2 -0
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +272 -0
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.js +2 -0
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +79 -0
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.js +2 -0
- package/lib/types/IPriceOracleV3.sol/index.d.ts +2 -0
- package/lib/types/IPriceOracleV3.sol/index.js +2 -0
- package/lib/types/IRouter.d.ts +11 -1
- package/lib/types/IRouterV3.d.ts +281 -0
- package/lib/types/IRouterV3.js +2 -0
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
- package/lib/types/IVotingContractV3.d.ts +74 -0
- package/lib/types/IVotingContractV3.js +2 -0
- package/lib/types/IWETH.d.ts +197 -0
- package/lib/types/IWETH.js +2 -0
- package/lib/types/IYearnV2Adapter.d.ts +22 -22
- package/lib/types/IZapper.d.ts +56 -37
- package/lib/types/IZapperRegister.d.ts +62 -0
- package/lib/types/IZapperRegister.js +2 -0
- package/lib/types/IwstETHV1Adapter.d.ts +17 -17
- package/lib/types/NumericArrayLib.d.ts +27 -0
- package/lib/types/NumericArrayLib.js +2 -0
- package/lib/types/RedstoneConstants.d.ts +27 -0
- package/lib/types/RedstoneConstants.js +2 -0
- package/lib/types/RedstoneConsumerBase.d.ts +84 -0
- package/lib/types/RedstoneConsumerBase.js +2 -0
- package/lib/types/RedstoneConsumerNumericBase.d.ts +84 -0
- package/lib/types/RedstoneConsumerNumericBase.js +2 -0
- package/lib/types/RedstoneDefaultsLib.d.ts +27 -0
- package/lib/types/RedstoneDefaultsLib.js +2 -0
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts → RedstonePriceFeed.sol/IRedstonePriceFeedEvents.d.ts} +11 -11
- package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedEvents.js +2 -0
- package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.d.ts +27 -0
- package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.js +2 -0
- package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.d.ts +279 -0
- package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.js +2 -0
- package/lib/types/RedstonePriceFeed.sol/index.d.ts +3 -0
- package/lib/types/RedstonePriceFeed.sol/index.js +2 -0
- package/lib/types/SafeERC20.d.ts +27 -0
- package/lib/types/SafeERC20.js +2 -0
- package/lib/types/factories/AddressProvider__factory.d.ts +1 -1
- package/lib/types/factories/AddressProvider__factory.js +1 -1
- package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +1 -1
- package/lib/types/factories/Balances.sol/BalanceOps__factory.js +1 -1
- package/lib/types/factories/CalldataExtractor__factory.d.ts +87 -0
- package/lib/types/factories/CalldataExtractor__factory.js +127 -0
- package/lib/types/factories/Claimable__factory.d.ts +1 -1
- package/lib/types/factories/Claimable__factory.js +1 -1
- package/lib/types/factories/ERC20__factory.d.ts +239 -0
- package/lib/types/factories/ERC20__factory.js +328 -0
- package/lib/types/factories/Errors__factory.d.ts +1 -1
- package/lib/types/factories/Errors__factory.js +1 -1
- package/lib/types/factories/FarmAccounting__factory.d.ts +33 -0
- package/lib/types/factories/FarmAccounting__factory.js +57 -0
- package/lib/types/factories/{IWERC20Zapper__factory.d.ts → IAaveV2_LendingPoolAdapter__factory.d.ts} +89 -69
- package/lib/types/factories/{IWERC20Zapper__factory.js → IAaveV2_LendingPoolAdapter__factory.js} +99 -75
- 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/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js} +4 -4
- 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/IBotListV3.sol/IBotListV3Events__factory.d.ts +103 -0
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +138 -0
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +315 -0
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +416 -0
- package/lib/types/factories/IBotListV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IBotListV3.sol/index.js +10 -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/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +28 -0
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +45 -0
- package/lib/types/factories/{IWETHZapper__factory.d.ts → IContractsRegister.sol/IContractsRegister__factory.d.ts} +64 -60
- package/lib/types/factories/{IWETHZapper__factory.js → IContractsRegister.sol/IContractsRegister__factory.js} +70 -65
- package/lib/types/factories/IContractsRegister.sol/index.d.ts +2 -0
- package/lib/types/factories/IContractsRegister.sol/index.js +10 -0
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +73 -0
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +101 -0
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +427 -0
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +556 -0
- package/lib/types/factories/IControllerTimelockV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IControllerTimelockV3.sol/index.js +10 -0
- package/lib/types/factories/IConvexToken__factory.d.ts +10 -0
- package/lib/types/factories/IConvexToken__factory.js +13 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +38 -6
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +48 -6
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +38 -0
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +26 -3
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +31 -2
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +0 -4
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +0 -5
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +19 -29
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +21 -33
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +21 -97
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +23 -119
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +77 -43
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +96 -54
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +162 -158
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +200 -195
- 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/IDaiLikePermit__factory.d.ts +46 -0
- package/lib/types/factories/IDaiLikePermit__factory.js +67 -0
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +56 -66
- package/lib/types/factories/IDataCompressorV2_10__factory.js +68 -82
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +321 -95
- package/lib/types/factories/IDataCompressorV3_00__factory.js +406 -119
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +38 -0
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +58 -0
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +24 -0
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +39 -0
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts → IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts} +190 -180
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js → IDegenNFTV2.sol/IDegenNFTV2__factory.js} +212 -195
- package/lib/types/factories/IDegenNFTV2.sol/index.d.ts +3 -0
- package/lib/types/factories/IDegenNFTV2.sol/index.js +12 -0
- package/lib/types/factories/IERC165__factory.d.ts +22 -0
- package/lib/types/factories/IERC165__factory.js +38 -0
- package/lib/types/factories/IERC20Permit__factory.d.ts +66 -0
- package/lib/types/factories/IERC20Permit__factory.js +94 -0
- package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
- package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
- package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
- package/lib/types/factories/IERC721Metadata__factory.d.ts +262 -0
- package/lib/types/factories/IERC721Metadata__factory.js +349 -0
- package/lib/types/factories/IERC721__factory.d.ts +228 -0
- package/lib/types/factories/IERC721__factory.js +304 -0
- package/lib/types/factories/IETHZapperDeposits__factory.d.ts +40 -0
- package/lib/types/factories/IETHZapperDeposits__factory.js +62 -0
- package/lib/types/factories/IFarmingPool__factory.d.ts +299 -0
- package/lib/types/factories/IFarmingPool__factory.js +396 -0
- package/lib/types/factories/IGasPricer__factory.d.ts +22 -0
- package/lib/types/factories/IGasPricer__factory.js +38 -0
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +118 -0
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +157 -0
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +342 -0
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +448 -0
- package/lib/types/factories/IGaugeV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IGaugeV3.sol/index.js +10 -0
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts → IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts} +33 -63
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js → IGearStakingV3.sol/IGearStakingV3Events__factory.js} +34 -70
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +504 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +660 -0
- package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +33 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +51 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +28 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +44 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +261 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +344 -0
- package/lib/types/factories/ILPPriceFeed.sol/index.d.ts +3 -0
- package/lib/types/factories/ILPPriceFeed.sol/index.js +12 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +7 -37
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +8 -46
- package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +98 -0
- package/lib/types/factories/ILinearInterestRateModelV3__factory.js +136 -0
- package/lib/types/factories/IPermit2__factory.d.ts +113 -0
- package/lib/types/factories/IPermit2__factory.js +155 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +103 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +140 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +441 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +580 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.js +10 -0
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +62 -4
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +79 -4
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +84 -0
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +117 -0
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +104 -0
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +143 -0
- package/lib/types/factories/IPriceFeed.sol/index.d.ts +2 -0
- package/lib/types/factories/IPriceFeed.sol/index.js +10 -0
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +23 -0
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +38 -0
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +20 -0
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +34 -0
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +197 -0
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +267 -0
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.d.ts +183 -0
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.js +249 -0
- package/lib/types/factories/IPriceOracle.sol/index.d.ts +4 -0
- package/lib/types/factories/IPriceOracle.sol/index.js +14 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +78 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +106 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +326 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +433 -0
- package/lib/types/factories/IPriceOracleV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IPriceOracleV3.sol/index.js +10 -0
- package/lib/types/factories/IRouterV3__factory.d.ts +451 -0
- package/lib/types/factories/IRouterV3__factory.js +597 -0
- package/lib/types/factories/IRouter__factory.d.ts +14 -0
- package/lib/types/factories/IRouter__factory.js +19 -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/IVotingContractV3__factory.d.ts +44 -0
- package/lib/types/factories/IVotingContractV3__factory.js +65 -0
- package/lib/types/factories/IWETH__factory.d.ts +194 -0
- package/lib/types/factories/IWETH__factory.js +260 -0
- package/lib/types/factories/IYearnV2Adapter__factory.d.ts +21 -13
- package/lib/types/factories/IYearnV2Adapter__factory.js +27 -15
- package/lib/types/factories/IZapperRegister__factory.d.ts +42 -0
- package/lib/types/factories/IZapperRegister__factory.js +64 -0
- package/lib/types/factories/IZapper__factory.d.ts +41 -11
- package/lib/types/factories/IZapper__factory.js +50 -11
- package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +12 -4
- package/lib/types/factories/IwstETHV1Adapter__factory.js +16 -4
- package/lib/types/factories/NumericArrayLib__factory.d.ts +25 -0
- package/lib/types/factories/NumericArrayLib__factory.js +47 -0
- package/lib/types/factories/RedstoneConstants__factory.d.ts +65 -0
- package/lib/types/factories/RedstoneConstants__factory.js +99 -0
- package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +164 -0
- package/lib/types/factories/RedstoneConsumerBase__factory.js +223 -0
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +164 -0
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +223 -0
- package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +45 -0
- package/lib/types/factories/RedstoneDefaultsLib__factory.js +74 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts → RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts} +6 -6
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js} +5 -5
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +28 -0
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +44 -0
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +443 -0
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +589 -0
- package/lib/types/factories/RedstonePriceFeed.sol/index.d.ts +3 -0
- package/lib/types/factories/RedstonePriceFeed.sol/index.js +12 -0
- package/lib/types/factories/SafeERC20__factory.d.ts +49 -0
- package/lib/types/factories/SafeERC20__factory.js +77 -0
- package/lib/types/factories/index.d.ts +44 -5
- package/lib/types/factories/index.js +74 -10
- package/lib/types/index.d.ts +173 -29
- package/lib/types/index.js +147 -30
- package/lib/utils/formatter.d.ts +0 -3
- package/lib/utils/formatter.js +1 -67
- package/lib/utils/math.d.ts +2 -0
- package/lib/utils/math.js +2 -0
- package/lib/utils/types.d.ts +1 -0
- package/lib/watchers/creditAccountWatcher.d.ts +3 -2
- package/lib/watchers/creditAccountWatcher.js +19 -13
- package/lib/watchers/creditAccountWatcher.spec.js +18 -18
- package/lib/watchers/creditManagerWatcher.d.ts +5 -3
- package/lib/watchers/creditManagerWatcher.js +32 -10
- package/lib/watchers/creditManagerWatcher.spec.js +12 -4
- package/package.json +13 -9
- package/contracts/IRouter.sol +0 -100
- package/lib/core/pool/index.d.ts +0 -1
- package/lib/core/pool/index.js +0 -17
- package/lib/core/strategy.spec.js +0 -62
- package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/IWERC20Zapper.d.ts +0 -142
- package/lib/types/IWETHZapper.d.ts +0 -138
- 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/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.d.ts +0 -12
- package/lib/types/factories/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/factories/ILidoV1Adapter.sol/index.js +0 -12
- package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
- /package/lib/core/{strategy.spec.d.ts → gaugeMath.spec.d.ts} +0 -0
- /package/lib/{types/IConvexV1BoosterAdapter.js → pathfinder/v1/core.js} +0 -0
- /package/lib/{types/ILidoV1Adapter.sol/ILidoV1Adapter.js → payload/gauge.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → CalldataExtractor.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → ERC20.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/index.js → FarmAccounting.js} +0 -0
- /package/lib/types/{IWERC20Zapper.js → IAaveV2_LendingPoolAdapter.js} +0 -0
- /package/lib/types/{IWETHZapper.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol → IBalancerV2Vault.sol}/index.js +0 -0
|
@@ -78,7 +78,7 @@ const _abi = [
|
|
|
78
78
|
outputs: [
|
|
79
79
|
{
|
|
80
80
|
internalType: "uint256",
|
|
81
|
-
name: "
|
|
81
|
+
name: "tokensToEnable",
|
|
82
82
|
type: "uint256",
|
|
83
83
|
},
|
|
84
84
|
],
|
|
@@ -136,121 +136,24 @@ const _abi = [
|
|
|
136
136
|
name: "creditAccount",
|
|
137
137
|
type: "address",
|
|
138
138
|
},
|
|
139
|
-
{
|
|
140
|
-
internalType: "enum CollateralCalcTask",
|
|
141
|
-
name: "task",
|
|
142
|
-
type: "uint8",
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
name: "calcDebtAndCollateral",
|
|
146
|
-
outputs: [
|
|
147
|
-
{
|
|
148
|
-
components: [
|
|
149
|
-
{
|
|
150
|
-
internalType: "uint256",
|
|
151
|
-
name: "debt",
|
|
152
|
-
type: "uint256",
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
internalType: "uint256",
|
|
156
|
-
name: "cumulativeIndexNow",
|
|
157
|
-
type: "uint256",
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
internalType: "uint256",
|
|
161
|
-
name: "cumulativeIndexLastUpdate",
|
|
162
|
-
type: "uint256",
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
internalType: "uint128",
|
|
166
|
-
name: "cumulativeQuotaInterest",
|
|
167
|
-
type: "uint128",
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
internalType: "uint256",
|
|
171
|
-
name: "accruedInterest",
|
|
172
|
-
type: "uint256",
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
internalType: "uint256",
|
|
176
|
-
name: "accruedFees",
|
|
177
|
-
type: "uint256",
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
internalType: "uint256",
|
|
181
|
-
name: "totalDebtUSD",
|
|
182
|
-
type: "uint256",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
internalType: "uint256",
|
|
186
|
-
name: "totalValue",
|
|
187
|
-
type: "uint256",
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
internalType: "uint256",
|
|
191
|
-
name: "totalValueUSD",
|
|
192
|
-
type: "uint256",
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
internalType: "uint256",
|
|
196
|
-
name: "twvUSD",
|
|
197
|
-
type: "uint256",
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
internalType: "uint256",
|
|
201
|
-
name: "enabledTokensMask",
|
|
202
|
-
type: "uint256",
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
internalType: "uint256",
|
|
206
|
-
name: "quotedTokensMask",
|
|
207
|
-
type: "uint256",
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
internalType: "address[]",
|
|
211
|
-
name: "quotedTokens",
|
|
212
|
-
type: "address[]",
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
internalType: "address",
|
|
216
|
-
name: "_poolQuotaKeeper",
|
|
217
|
-
type: "address",
|
|
218
|
-
},
|
|
219
|
-
],
|
|
220
|
-
internalType: "struct CollateralDebtData",
|
|
221
|
-
name: "cdd",
|
|
222
|
-
type: "tuple",
|
|
223
|
-
},
|
|
224
|
-
],
|
|
225
|
-
stateMutability: "view",
|
|
226
|
-
type: "function",
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
inputs: [
|
|
230
139
|
{
|
|
231
140
|
internalType: "address",
|
|
232
|
-
name: "
|
|
141
|
+
name: "token",
|
|
233
142
|
type: "address",
|
|
234
143
|
},
|
|
235
144
|
{
|
|
236
145
|
internalType: "address",
|
|
237
|
-
name: "
|
|
146
|
+
name: "spender",
|
|
238
147
|
type: "address",
|
|
239
148
|
},
|
|
240
|
-
{
|
|
241
|
-
internalType: "enum ClaimAction",
|
|
242
|
-
name: "action",
|
|
243
|
-
type: "uint8",
|
|
244
|
-
},
|
|
245
|
-
],
|
|
246
|
-
name: "claimWithdrawals",
|
|
247
|
-
outputs: [
|
|
248
149
|
{
|
|
249
150
|
internalType: "uint256",
|
|
250
|
-
name: "
|
|
151
|
+
name: "amount",
|
|
251
152
|
type: "uint256",
|
|
252
153
|
},
|
|
253
154
|
],
|
|
155
|
+
name: "approveToken",
|
|
156
|
+
outputs: [],
|
|
254
157
|
stateMutability: "nonpayable",
|
|
255
158
|
type: "function",
|
|
256
159
|
},
|
|
@@ -262,10 +165,13 @@ const _abi = [
|
|
|
262
165
|
type: "address",
|
|
263
166
|
},
|
|
264
167
|
{
|
|
265
|
-
internalType: "enum
|
|
266
|
-
name: "
|
|
168
|
+
internalType: "enum CollateralCalcTask",
|
|
169
|
+
name: "task",
|
|
267
170
|
type: "uint8",
|
|
268
171
|
},
|
|
172
|
+
],
|
|
173
|
+
name: "calcDebtAndCollateral",
|
|
174
|
+
outputs: [
|
|
269
175
|
{
|
|
270
176
|
components: [
|
|
271
177
|
{
|
|
@@ -340,43 +246,23 @@ const _abi = [
|
|
|
340
246
|
},
|
|
341
247
|
],
|
|
342
248
|
internalType: "struct CollateralDebtData",
|
|
343
|
-
name: "
|
|
249
|
+
name: "cdd",
|
|
344
250
|
type: "tuple",
|
|
345
251
|
},
|
|
252
|
+
],
|
|
253
|
+
stateMutability: "view",
|
|
254
|
+
type: "function",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
inputs: [
|
|
346
258
|
{
|
|
347
259
|
internalType: "address",
|
|
348
|
-
name: "
|
|
349
|
-
type: "address",
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
internalType: "address",
|
|
353
|
-
name: "to",
|
|
260
|
+
name: "creditAccount",
|
|
354
261
|
type: "address",
|
|
355
262
|
},
|
|
356
|
-
{
|
|
357
|
-
internalType: "uint256",
|
|
358
|
-
name: "skipTokensMask",
|
|
359
|
-
type: "uint256",
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
internalType: "bool",
|
|
363
|
-
name: "convertToETH",
|
|
364
|
-
type: "bool",
|
|
365
|
-
},
|
|
366
263
|
],
|
|
367
264
|
name: "closeCreditAccount",
|
|
368
|
-
outputs: [
|
|
369
|
-
{
|
|
370
|
-
internalType: "uint256",
|
|
371
|
-
name: "remainingFunds",
|
|
372
|
-
type: "uint256",
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
internalType: "uint256",
|
|
376
|
-
name: "loss",
|
|
377
|
-
type: "uint256",
|
|
378
|
-
},
|
|
379
|
-
],
|
|
265
|
+
outputs: [],
|
|
380
266
|
stateMutability: "nonpayable",
|
|
381
267
|
type: "function",
|
|
382
268
|
},
|
|
@@ -478,7 +364,7 @@ const _abi = [
|
|
|
478
364
|
},
|
|
479
365
|
{
|
|
480
366
|
internalType: "uint64",
|
|
481
|
-
name: "
|
|
367
|
+
name: "lastDebtUpdate",
|
|
482
368
|
type: "uint64",
|
|
483
369
|
},
|
|
484
370
|
{
|
|
@@ -566,19 +452,6 @@ const _abi = [
|
|
|
566
452
|
stateMutability: "view",
|
|
567
453
|
type: "function",
|
|
568
454
|
},
|
|
569
|
-
{
|
|
570
|
-
inputs: [],
|
|
571
|
-
name: "description",
|
|
572
|
-
outputs: [
|
|
573
|
-
{
|
|
574
|
-
internalType: "string",
|
|
575
|
-
name: "",
|
|
576
|
-
type: "string",
|
|
577
|
-
},
|
|
578
|
-
],
|
|
579
|
-
stateMutability: "view",
|
|
580
|
-
type: "function",
|
|
581
|
-
},
|
|
582
455
|
{
|
|
583
456
|
inputs: [
|
|
584
457
|
{
|
|
@@ -617,6 +490,35 @@ const _abi = [
|
|
|
617
490
|
stateMutability: "nonpayable",
|
|
618
491
|
type: "function",
|
|
619
492
|
},
|
|
493
|
+
{
|
|
494
|
+
inputs: [
|
|
495
|
+
{
|
|
496
|
+
internalType: "address",
|
|
497
|
+
name: "creditAccount",
|
|
498
|
+
type: "address",
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
internalType: "address",
|
|
502
|
+
name: "target",
|
|
503
|
+
type: "address",
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
internalType: "bytes",
|
|
507
|
+
name: "callData",
|
|
508
|
+
type: "bytes",
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
name: "externalCall",
|
|
512
|
+
outputs: [
|
|
513
|
+
{
|
|
514
|
+
internalType: "bytes",
|
|
515
|
+
name: "result",
|
|
516
|
+
type: "bytes",
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
stateMutability: "nonpayable",
|
|
520
|
+
type: "function",
|
|
521
|
+
},
|
|
620
522
|
{
|
|
621
523
|
inputs: [],
|
|
622
524
|
name: "fees",
|
|
@@ -691,6 +593,11 @@ const _abi = [
|
|
|
691
593
|
name: "minHealthFactor",
|
|
692
594
|
type: "uint16",
|
|
693
595
|
},
|
|
596
|
+
{
|
|
597
|
+
internalType: "bool",
|
|
598
|
+
name: "useSafePrices",
|
|
599
|
+
type: "bool",
|
|
600
|
+
},
|
|
694
601
|
],
|
|
695
602
|
name: "fullCollateralCheck",
|
|
696
603
|
outputs: [
|
|
@@ -797,6 +704,117 @@ const _abi = [
|
|
|
797
704
|
stateMutability: "view",
|
|
798
705
|
type: "function",
|
|
799
706
|
},
|
|
707
|
+
{
|
|
708
|
+
inputs: [
|
|
709
|
+
{
|
|
710
|
+
internalType: "address",
|
|
711
|
+
name: "creditAccount",
|
|
712
|
+
type: "address",
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
components: [
|
|
716
|
+
{
|
|
717
|
+
internalType: "uint256",
|
|
718
|
+
name: "debt",
|
|
719
|
+
type: "uint256",
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
internalType: "uint256",
|
|
723
|
+
name: "cumulativeIndexNow",
|
|
724
|
+
type: "uint256",
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
internalType: "uint256",
|
|
728
|
+
name: "cumulativeIndexLastUpdate",
|
|
729
|
+
type: "uint256",
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
internalType: "uint128",
|
|
733
|
+
name: "cumulativeQuotaInterest",
|
|
734
|
+
type: "uint128",
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
internalType: "uint256",
|
|
738
|
+
name: "accruedInterest",
|
|
739
|
+
type: "uint256",
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
internalType: "uint256",
|
|
743
|
+
name: "accruedFees",
|
|
744
|
+
type: "uint256",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
internalType: "uint256",
|
|
748
|
+
name: "totalDebtUSD",
|
|
749
|
+
type: "uint256",
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
internalType: "uint256",
|
|
753
|
+
name: "totalValue",
|
|
754
|
+
type: "uint256",
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
internalType: "uint256",
|
|
758
|
+
name: "totalValueUSD",
|
|
759
|
+
type: "uint256",
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
internalType: "uint256",
|
|
763
|
+
name: "twvUSD",
|
|
764
|
+
type: "uint256",
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
internalType: "uint256",
|
|
768
|
+
name: "enabledTokensMask",
|
|
769
|
+
type: "uint256",
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
internalType: "uint256",
|
|
773
|
+
name: "quotedTokensMask",
|
|
774
|
+
type: "uint256",
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
internalType: "address[]",
|
|
778
|
+
name: "quotedTokens",
|
|
779
|
+
type: "address[]",
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
internalType: "address",
|
|
783
|
+
name: "_poolQuotaKeeper",
|
|
784
|
+
type: "address",
|
|
785
|
+
},
|
|
786
|
+
],
|
|
787
|
+
internalType: "struct CollateralDebtData",
|
|
788
|
+
name: "collateralDebtData",
|
|
789
|
+
type: "tuple",
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
internalType: "address",
|
|
793
|
+
name: "to",
|
|
794
|
+
type: "address",
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
internalType: "bool",
|
|
798
|
+
name: "isExpired",
|
|
799
|
+
type: "bool",
|
|
800
|
+
},
|
|
801
|
+
],
|
|
802
|
+
name: "liquidateCreditAccount",
|
|
803
|
+
outputs: [
|
|
804
|
+
{
|
|
805
|
+
internalType: "uint256",
|
|
806
|
+
name: "remainingFunds",
|
|
807
|
+
type: "uint256",
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
internalType: "uint256",
|
|
811
|
+
name: "loss",
|
|
812
|
+
type: "uint256",
|
|
813
|
+
},
|
|
814
|
+
],
|
|
815
|
+
stateMutability: "nonpayable",
|
|
816
|
+
type: "function",
|
|
817
|
+
},
|
|
800
818
|
{
|
|
801
819
|
inputs: [
|
|
802
820
|
{
|
|
@@ -908,12 +926,20 @@ const _abi = [
|
|
|
908
926
|
type: "function",
|
|
909
927
|
},
|
|
910
928
|
{
|
|
911
|
-
inputs: [
|
|
929
|
+
inputs: [],
|
|
930
|
+
name: "name",
|
|
931
|
+
outputs: [
|
|
912
932
|
{
|
|
913
|
-
internalType: "
|
|
914
|
-
name: "
|
|
915
|
-
type: "
|
|
933
|
+
internalType: "string",
|
|
934
|
+
name: "",
|
|
935
|
+
type: "string",
|
|
916
936
|
},
|
|
937
|
+
],
|
|
938
|
+
stateMutability: "view",
|
|
939
|
+
type: "function",
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
inputs: [
|
|
917
943
|
{
|
|
918
944
|
internalType: "address",
|
|
919
945
|
name: "onBehalfOf",
|
|
@@ -1013,35 +1039,6 @@ const _abi = [
|
|
|
1013
1039
|
stateMutability: "nonpayable",
|
|
1014
1040
|
type: "function",
|
|
1015
1041
|
},
|
|
1016
|
-
{
|
|
1017
|
-
inputs: [
|
|
1018
|
-
{
|
|
1019
|
-
internalType: "address",
|
|
1020
|
-
name: "creditAccount",
|
|
1021
|
-
type: "address",
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
internalType: "address",
|
|
1025
|
-
name: "token",
|
|
1026
|
-
type: "address",
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
internalType: "uint256",
|
|
1030
|
-
name: "amount",
|
|
1031
|
-
type: "uint256",
|
|
1032
|
-
},
|
|
1033
|
-
],
|
|
1034
|
-
name: "scheduleWithdrawal",
|
|
1035
|
-
outputs: [
|
|
1036
|
-
{
|
|
1037
|
-
internalType: "uint256",
|
|
1038
|
-
name: "tokensToDisable",
|
|
1039
|
-
type: "uint256",
|
|
1040
|
-
},
|
|
1041
|
-
],
|
|
1042
|
-
stateMutability: "nonpayable",
|
|
1043
|
-
type: "function",
|
|
1044
|
-
},
|
|
1045
1042
|
{
|
|
1046
1043
|
inputs: [
|
|
1047
1044
|
{
|
|
@@ -1298,29 +1295,37 @@ const _abi = [
|
|
|
1298
1295
|
type: "function",
|
|
1299
1296
|
},
|
|
1300
1297
|
{
|
|
1301
|
-
inputs: [
|
|
1302
|
-
name: "weth",
|
|
1303
|
-
outputs: [
|
|
1298
|
+
inputs: [
|
|
1304
1299
|
{
|
|
1305
1300
|
internalType: "address",
|
|
1306
|
-
name: "",
|
|
1301
|
+
name: "creditAccount",
|
|
1307
1302
|
type: "address",
|
|
1308
1303
|
},
|
|
1309
|
-
],
|
|
1310
|
-
stateMutability: "view",
|
|
1311
|
-
type: "function",
|
|
1312
|
-
},
|
|
1313
|
-
{
|
|
1314
|
-
inputs: [],
|
|
1315
|
-
name: "withdrawalManager",
|
|
1316
|
-
outputs: [
|
|
1317
1304
|
{
|
|
1318
1305
|
internalType: "address",
|
|
1319
|
-
name: "",
|
|
1306
|
+
name: "token",
|
|
1307
|
+
type: "address",
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
internalType: "uint256",
|
|
1311
|
+
name: "amount",
|
|
1312
|
+
type: "uint256",
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
internalType: "address",
|
|
1316
|
+
name: "to",
|
|
1320
1317
|
type: "address",
|
|
1321
1318
|
},
|
|
1322
1319
|
],
|
|
1323
|
-
|
|
1320
|
+
name: "withdrawCollateral",
|
|
1321
|
+
outputs: [
|
|
1322
|
+
{
|
|
1323
|
+
internalType: "uint256",
|
|
1324
|
+
name: "tokensToDisable",
|
|
1325
|
+
type: "uint256",
|
|
1326
|
+
},
|
|
1327
|
+
],
|
|
1328
|
+
stateMutability: "nonpayable",
|
|
1324
1329
|
type: "function",
|
|
1325
1330
|
},
|
|
1326
1331
|
];
|
|
@@ -24,6 +24,10 @@ export declare class ICurveV1Adapter__factory {
|
|
|
24
24
|
readonly type: "function";
|
|
25
25
|
}, {
|
|
26
26
|
readonly inputs: readonly [{
|
|
27
|
+
readonly internalType: "uint256";
|
|
28
|
+
readonly name: "leftoverAmount";
|
|
29
|
+
readonly type: "uint256";
|
|
30
|
+
}, {
|
|
27
31
|
readonly internalType: "uint256";
|
|
28
32
|
readonly name: "i";
|
|
29
33
|
readonly type: "uint256";
|
|
@@ -32,7 +36,7 @@ export declare class ICurveV1Adapter__factory {
|
|
|
32
36
|
readonly name: "rateMinRAY";
|
|
33
37
|
readonly type: "uint256";
|
|
34
38
|
}];
|
|
35
|
-
readonly name: "
|
|
39
|
+
readonly name: "add_diff_liquidity_one_coin";
|
|
36
40
|
readonly outputs: readonly [{
|
|
37
41
|
readonly internalType: "uint256";
|
|
38
42
|
readonly name: "tokensToEnable";
|
|
@@ -179,36 +183,14 @@ export declare class ICurveV1Adapter__factory {
|
|
|
179
183
|
readonly type: "uint256";
|
|
180
184
|
}, {
|
|
181
185
|
readonly internalType: "uint256";
|
|
182
|
-
readonly name: "
|
|
183
|
-
readonly type: "uint256";
|
|
184
|
-
}];
|
|
185
|
-
readonly name: "exchange_all";
|
|
186
|
-
readonly outputs: readonly [{
|
|
187
|
-
readonly internalType: "uint256";
|
|
188
|
-
readonly name: "tokensToEnable";
|
|
186
|
+
readonly name: "leftoverAmount";
|
|
189
187
|
readonly type: "uint256";
|
|
190
|
-
}, {
|
|
191
|
-
readonly internalType: "uint256";
|
|
192
|
-
readonly name: "tokensToDisable";
|
|
193
|
-
readonly type: "uint256";
|
|
194
|
-
}];
|
|
195
|
-
readonly stateMutability: "nonpayable";
|
|
196
|
-
readonly type: "function";
|
|
197
|
-
}, {
|
|
198
|
-
readonly inputs: readonly [{
|
|
199
|
-
readonly internalType: "int128";
|
|
200
|
-
readonly name: "i";
|
|
201
|
-
readonly type: "int128";
|
|
202
|
-
}, {
|
|
203
|
-
readonly internalType: "int128";
|
|
204
|
-
readonly name: "j";
|
|
205
|
-
readonly type: "int128";
|
|
206
188
|
}, {
|
|
207
189
|
readonly internalType: "uint256";
|
|
208
190
|
readonly name: "rateMinRAY";
|
|
209
191
|
readonly type: "uint256";
|
|
210
192
|
}];
|
|
211
|
-
readonly name: "
|
|
193
|
+
readonly name: "exchange_diff";
|
|
212
194
|
readonly outputs: readonly [{
|
|
213
195
|
readonly internalType: "uint256";
|
|
214
196
|
readonly name: "tokensToEnable";
|
|
@@ -222,45 +204,23 @@ export declare class ICurveV1Adapter__factory {
|
|
|
222
204
|
readonly type: "function";
|
|
223
205
|
}, {
|
|
224
206
|
readonly inputs: readonly [{
|
|
225
|
-
readonly internalType: "int128";
|
|
226
|
-
readonly name: "i";
|
|
227
|
-
readonly type: "int128";
|
|
228
|
-
}, {
|
|
229
|
-
readonly internalType: "int128";
|
|
230
|
-
readonly name: "j";
|
|
231
|
-
readonly type: "int128";
|
|
232
|
-
}, {
|
|
233
207
|
readonly internalType: "uint256";
|
|
234
|
-
readonly name: "
|
|
235
|
-
readonly type: "uint256";
|
|
236
|
-
}];
|
|
237
|
-
readonly name: "exchange_all_underlying";
|
|
238
|
-
readonly outputs: readonly [{
|
|
239
|
-
readonly internalType: "uint256";
|
|
240
|
-
readonly name: "tokensToEnable";
|
|
208
|
+
readonly name: "i";
|
|
241
209
|
readonly type: "uint256";
|
|
242
210
|
}, {
|
|
243
211
|
readonly internalType: "uint256";
|
|
244
|
-
readonly name: "
|
|
245
|
-
readonly type: "uint256";
|
|
246
|
-
}];
|
|
247
|
-
readonly stateMutability: "nonpayable";
|
|
248
|
-
readonly type: "function";
|
|
249
|
-
}, {
|
|
250
|
-
readonly inputs: readonly [{
|
|
251
|
-
readonly internalType: "uint256";
|
|
252
|
-
readonly name: "i";
|
|
212
|
+
readonly name: "j";
|
|
253
213
|
readonly type: "uint256";
|
|
254
214
|
}, {
|
|
255
215
|
readonly internalType: "uint256";
|
|
256
|
-
readonly name: "
|
|
216
|
+
readonly name: "leftoverAmount";
|
|
257
217
|
readonly type: "uint256";
|
|
258
218
|
}, {
|
|
259
219
|
readonly internalType: "uint256";
|
|
260
220
|
readonly name: "rateMinRAY";
|
|
261
221
|
readonly type: "uint256";
|
|
262
222
|
}];
|
|
263
|
-
readonly name: "
|
|
223
|
+
readonly name: "exchange_diff_underlying";
|
|
264
224
|
readonly outputs: readonly [{
|
|
265
225
|
readonly internalType: "uint256";
|
|
266
226
|
readonly name: "tokensToEnable";
|
|
@@ -374,28 +334,10 @@ export declare class ICurveV1Adapter__factory {
|
|
|
374
334
|
readonly type: "function";
|
|
375
335
|
}, {
|
|
376
336
|
readonly inputs: readonly [{
|
|
377
|
-
readonly internalType: "int128";
|
|
378
|
-
readonly name: "i";
|
|
379
|
-
readonly type: "int128";
|
|
380
|
-
}, {
|
|
381
337
|
readonly internalType: "uint256";
|
|
382
|
-
readonly name: "
|
|
383
|
-
readonly type: "uint256";
|
|
384
|
-
}];
|
|
385
|
-
readonly name: "remove_all_liquidity_one_coin";
|
|
386
|
-
readonly outputs: readonly [{
|
|
387
|
-
readonly internalType: "uint256";
|
|
388
|
-
readonly name: "tokensToEnable";
|
|
338
|
+
readonly name: "leftoverAmount";
|
|
389
339
|
readonly type: "uint256";
|
|
390
340
|
}, {
|
|
391
|
-
readonly internalType: "uint256";
|
|
392
|
-
readonly name: "tokensToDisable";
|
|
393
|
-
readonly type: "uint256";
|
|
394
|
-
}];
|
|
395
|
-
readonly stateMutability: "nonpayable";
|
|
396
|
-
readonly type: "function";
|
|
397
|
-
}, {
|
|
398
|
-
readonly inputs: readonly [{
|
|
399
341
|
readonly internalType: "uint256";
|
|
400
342
|
readonly name: "i";
|
|
401
343
|
readonly type: "uint256";
|
|
@@ -404,7 +346,7 @@ export declare class ICurveV1Adapter__factory {
|
|
|
404
346
|
readonly name: "rateMinRAY";
|
|
405
347
|
readonly type: "uint256";
|
|
406
348
|
}];
|
|
407
|
-
readonly name: "
|
|
349
|
+
readonly name: "remove_diff_liquidity_one_coin";
|
|
408
350
|
readonly outputs: readonly [{
|
|
409
351
|
readonly internalType: "uint256";
|
|
410
352
|
readonly name: "tokensToEnable";
|