@gearbox-protocol/sdk 3.0.0-next.17 → 3.0.0-next.170
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 +37 -5
- package/lib/apy/auraAPY.d.ts +1 -0
- package/lib/apy/auraAPY.js +23 -0
- package/lib/apy/auraAbi.d.ts +17 -0
- package/lib/apy/auraAbi.js +26 -0
- package/lib/apy/convexAPY.d.ts +10 -7
- package/lib/apy/convexAPY.js +22 -14
- package/lib/apy/curveAPY.d.ts +54 -5
- package/lib/apy/curveAPY.js +118 -71
- package/lib/apy/defiLamaAPY.d.ts +3 -0
- package/lib/apy/defiLamaAPY.js +68 -0
- package/lib/apy/index.d.ts +4 -3
- package/lib/apy/index.js +13 -3
- package/lib/apy/lidoAPY.d.ts +4 -1
- package/lib/apy/lidoAPY.js +7 -10
- package/lib/apy/yearnAPY.d.ts +3 -3
- package/lib/apy/yearnAPY.js +15 -12
- package/lib/contracts/contractsRegister.d.ts +13 -6
- package/lib/contracts/contractsRegister.js +47 -2
- package/lib/core/assets.js +2 -2
- package/lib/core/bot.d.ts +11 -0
- package/lib/core/bot.js +23 -0
- package/lib/core/creditAccount.d.ts +60 -20
- package/lib/core/creditAccount.js +198 -89
- package/lib/core/creditAccount.spec.js +728 -81
- package/lib/core/creditManager.d.ts +18 -5
- package/lib/core/creditManager.js +70 -12
- package/lib/core/creditSession.d.ts +24 -3
- package/lib/core/creditSession.js +32 -7
- package/lib/core/endpoint.d.ts +11 -0
- package/lib/core/endpoint.js +37 -0
- package/lib/core/eventOrTx.d.ts +2 -3
- 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} +17 -9
- package/lib/core/{pool/data.js → pool.js} +54 -29
- package/lib/core/rewardClaimer.d.ts +4 -2
- package/lib/core/rewardConvex.d.ts +26 -9
- package/lib/core/rewardConvex.js +192 -56
- package/lib/core/rewardConvex.spec.js +32 -68
- package/lib/core/strategy.d.ts +18 -21
- package/lib/core/strategy.js +14 -34
- package/lib/core/trade.d.ts +11 -12
- package/lib/core/trade.js +36 -29
- package/lib/core/transactions.d.ts +118 -18
- package/lib/core/transactions.js +211 -122
- package/lib/gearboxRewards/abi.d.ts +2 -0
- package/lib/gearboxRewards/abi.js +54 -0
- package/lib/gearboxRewards/api.d.ts +83 -0
- package/lib/gearboxRewards/api.js +247 -0
- package/lib/gearboxRewards/apy.d.ts +37 -0
- package/lib/gearboxRewards/apy.js +65 -0
- package/lib/gearboxRewards/extraAPY.d.ts +34 -0
- package/lib/gearboxRewards/extraAPY.js +130 -0
- package/lib/gearboxRewards/index.d.ts +4 -0
- package/lib/{core/pool → gearboxRewards}/index.js +4 -1
- package/lib/index.d.ts +9 -2
- package/lib/index.js +9 -2
- package/lib/parsers/ERC20Parser.js +1 -1
- package/lib/parsers/aaveV2LendingPoolAdapterParser.d.ts +7 -0
- package/lib/parsers/aaveV2LendingPoolAdapterParser.js +21 -0
- package/lib/parsers/aaveV2WrappedATokenAdapterParser.d.ts +7 -0
- package/lib/parsers/aaveV2WrappedATokenAdapterParser.js +21 -0
- package/lib/parsers/abstractParser.d.ts +7 -5
- package/lib/parsers/abstractParser.js +4 -2
- package/lib/parsers/addressProviderParser.js +1 -1
- package/lib/parsers/balancerV2VaultParser.d.ts +7 -0
- package/lib/parsers/balancerV2VaultParser.js +34 -0
- package/lib/parsers/compoundV2CTokenAdapterParser.d.ts +7 -0
- package/lib/parsers/compoundV2CTokenAdapterParser.js +21 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +13 -9
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
- package/lib/parsers/convexBoosterAdapterParser.js +7 -7
- package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
- package/lib/parsers/convextRewardPoolParser.js +1 -1
- package/lib/parsers/creditFacadeParser.js +34 -7
- package/lib/parsers/creditFacadeParser.spec.js +2 -3
- package/lib/parsers/creditManagerParser.js +1 -1
- package/lib/parsers/curveAdapterParser.js +11 -12
- package/lib/parsers/curveAdapterParser.spec.js +6 -2
- package/lib/parsers/erc626AdapterParser.d.ts +7 -0
- package/lib/parsers/erc626AdapterParser.js +21 -0
- package/lib/parsers/lidoAdapterParser.js +4 -3
- package/lib/parsers/lidoAdapterParser.spec.js +2 -2
- package/lib/parsers/lidoSTETHParser.js +1 -1
- package/lib/parsers/poolParser.js +1 -1
- package/lib/parsers/priceOracleParser.js +1 -1
- package/lib/parsers/txParser.d.ts +17 -11
- package/lib/parsers/txParser.js +41 -4
- package/lib/parsers/uniV2AdapterParser.js +6 -5
- package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
- package/lib/parsers/uniV3AdapterParser.js +10 -8
- package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
- package/lib/parsers/wstETHAdapterParser.js +7 -5
- package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnV2AdapterParser.js +14 -4
- package/lib/pathfinder/balancerVault.d.ts +33 -0
- package/lib/pathfinder/balancerVault.js +59 -0
- package/lib/pathfinder/core.d.ts +8 -9
- package/lib/pathfinder/index.d.ts +4 -0
- package/lib/pathfinder/index.js +20 -0
- package/lib/pathfinder/pathOptions.d.ts +3 -3
- package/lib/pathfinder/pathOptions.js +34 -18
- package/lib/pathfinder/pathOptions.spec.js +3 -6
- package/lib/pathfinder/pathfinder.d.ts +47 -19
- package/lib/pathfinder/pathfinder.js +68 -56
- package/lib/pathfinder/pathfinder.spec.js +22 -9
- package/lib/pathfinder/utils.d.ts +36 -0
- package/lib/pathfinder/utils.js +181 -0
- 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/bot.d.ts +13 -0
- package/lib/payload/creditAccount.d.ts +3 -4
- package/lib/payload/creditManager.d.ts +6 -2
- package/lib/payload/creditSession.d.ts +15 -1
- package/lib/payload/gauge.d.ts +12 -0
- package/lib/payload/pool.d.ts +6 -2
- package/lib/payload/token.d.ts +3 -1
- package/lib/tokens/tokenData.d.ts +5 -4
- package/lib/tokens/tokenData.js +24 -5
- package/lib/types/CalldataExtractor.d.ts +44 -0
- package/lib/types/CompositePriceFeed.d.ts +162 -0
- package/lib/types/ContractsRegisterTrait.d.ts +42 -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/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/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 +62 -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/ICreditAccountV3.sol/ICreditAccountBase.d.ts +86 -0
- package/lib/types/ICreditAccountV3.sol/ICreditAccountBase.js +2 -0
- package/lib/types/ICreditAccountV3.sol/ICreditAccountV3.d.ts +110 -0
- package/lib/types/ICreditAccountV3.sol/ICreditAccountV3.js +2 -0
- package/lib/types/ICreditAccountV3.sol/index.d.ts +2 -0
- package/lib/types/ICreditAccountV3.sol/index.js +2 -0
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +52 -100
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +30 -32
- package/lib/types/ICreditFacadeV3Multicall.d.ts +68 -60
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +99 -79
- 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 → IDataCompressorV2_1.d.ts} +14 -43
- package/lib/types/IDataCompressorV2_1.js +2 -0
- package/lib/types/{IDataCompressorV3_00.d.ts → IDataCompressorV3.d.ts} +111 -44
- package/lib/types/IDataCompressorV3.js +2 -0
- 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/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/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/IPartialLiquidationBotV3.d.ts +163 -0
- package/lib/types/IPartialLiquidationBotV3.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 +2 -2
- 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 +315 -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 +42 -47
- 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/PartialLiquidationBotV3.d.ts +171 -0
- package/lib/types/PartialLiquidationBotV3.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/contracts/index.d.ts +2 -0
- package/lib/types/contracts/index.js +2 -0
- package/lib/types/contracts/interfaces/IGasPricer.d.ts +44 -0
- package/lib/types/contracts/interfaces/IGasPricer.js +2 -0
- package/lib/types/contracts/interfaces/index.d.ts +1 -0
- package/lib/types/contracts/interfaces/index.js +2 -0
- package/lib/types/factories/AddressProvider__factory.d.ts +112 -112
- package/lib/types/factories/AddressProvider__factory.js +120 -120
- package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +4 -4
- package/lib/types/factories/Balances.sol/BalanceOps__factory.js +4 -4
- 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 +29 -29
- package/lib/types/factories/Claimable__factory.js +33 -33
- package/lib/types/factories/CompositePriceFeed__factory.d.ts +202 -0
- package/lib/types/factories/CompositePriceFeed__factory.js +277 -0
- package/lib/types/factories/ContractsRegisterTrait__factory.d.ts +22 -0
- package/lib/types/factories/ContractsRegisterTrait__factory.js +37 -0
- 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 +100 -100
- package/lib/types/factories/Errors__factory.js +100 -100
- 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} +96 -114
- package/lib/types/factories/{IWETHZapper__factory.js → IAaveV2_LendingPoolAdapter__factory.js} +105 -120
- 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/IAdapter__factory.d.ts +15 -15
- package/lib/types/factories/IAdapter__factory.js +15 -15
- package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.d.ts +7 -7
- package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.js +7 -7
- package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.d.ts +48 -48
- package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.js +52 -52
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.d.ts +9 -9
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.js +9 -9
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.d.ts +37 -37
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.js +42 -42
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +25 -25
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +25 -25
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +71 -71
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +85 -85
- 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} +5 -5
- 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/IBaseRewardPool__factory.d.ts +114 -114
- package/lib/types/factories/IBaseRewardPool__factory.js +114 -114
- 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/IContractsRegister.sol/IContractsRegister__factory.d.ts +134 -0
- package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.js +186 -0
- 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 +89 -79
- package/lib/types/factories/IConvexToken__factory.js +99 -86
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +121 -69
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +137 -69
- 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} +67 -44
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +72 -43
- 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/ICreditAccountV3.sol/ICreditAccountBase__factory.d.ts +64 -0
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountBase__factory.js +92 -0
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.d.ts +88 -0
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.js +123 -0
- package/lib/types/factories/ICreditAccountV3.sol/index.d.ts +2 -0
- package/lib/types/factories/ICreditAccountV3.sol/index.js +10 -0
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.d.ts +121 -121
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.js +127 -127
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.d.ts +18 -18
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.js +18 -18
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.d.ts +376 -376
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.js +417 -417
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +118 -118
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +127 -127
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +395 -395
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +420 -420
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.d.ts +107 -107
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.js +118 -118
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.d.ts +65 -65
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.js +65 -65
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +23 -27
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +23 -28
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.d.ts +5 -5
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.js +5 -5
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.d.ts +601 -601
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.js +749 -749
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +78 -83
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +85 -91
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +281 -348
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +372 -457
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +85 -81
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +93 -89
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.d.ts +11 -11
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +12 -12
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.d.ts +26 -26
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +26 -26
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.d.ts +252 -252
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.js +272 -272
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.d.ts +5 -5
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.js +5 -5
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +398 -390
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +436 -426
- package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.d.ts +191 -191
- package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.js +191 -191
- package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.d.ts +191 -191
- package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.js +191 -191
- package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.d.ts +191 -191
- package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.js +191 -191
- package/lib/types/factories/ICurvePool__factory.d.ts +159 -159
- package/lib/types/factories/ICurvePool__factory.js +159 -159
- package/lib/types/factories/ICurveV1Adapter__factory.d.ts +171 -229
- package/lib/types/factories/ICurveV1Adapter__factory.js +171 -248
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +189 -247
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +189 -266
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +189 -247
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +189 -266
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +189 -247
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +189 -266
- 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 → IDataCompressorV2_1__factory.d.ts} +348 -398
- package/lib/types/factories/{IDataCompressorV2_10__factory.js → IDataCompressorV2_1__factory.js} +349 -413
- package/lib/types/factories/{IDataCompressorV3_00__factory.d.ts → IDataCompressorV3__factory.d.ts} +654 -472
- package/lib/types/factories/{IDataCompressorV3_00__factory.js → IDataCompressorV3__factory.js} +727 -495
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +14 -14
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +14 -14
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +43 -43
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +51 -51
- 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} +248 -238
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js → IDegenNFTV2.sol/IDegenNFTV2__factory.js} +270 -253
- 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/IERC20Metadata__factory.d.ts +76 -76
- package/lib/types/factories/IERC20Metadata__factory.js +86 -86
- package/lib/types/factories/IERC20Permit__factory.d.ts +16 -16
- package/lib/types/factories/IERC20Permit__factory.js +16 -16
- package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
- package/lib/types/factories/IERC20__factory.d.ts +67 -67
- package/lib/types/factories/IERC20__factory.js +77 -77
- package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
- package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
- package/lib/types/factories/IERC4626__factory.d.ts +198 -198
- package/lib/types/factories/IERC4626__factory.js +221 -221
- 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/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} +55 -85
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js → IGearStakingV3.sol/IGearStakingV3Events__factory.js} +58 -94
- 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/IInterestRateModel__factory.d.ts +8 -8
- package/lib/types/factories/IInterestRateModel__factory.js +8 -8
- 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} +44 -74
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +45 -83
- package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +98 -0
- package/lib/types/factories/ILinearInterestRateModelV3__factory.js +136 -0
- package/lib/types/factories/IOffchainOracle__factory.d.ts +11 -11
- package/lib/types/factories/IOffchainOracle__factory.js +11 -11
- package/lib/types/factories/IPartialLiquidationBotV3__factory.d.ts +217 -0
- package/lib/types/factories/IPartialLiquidationBotV3__factory.js +287 -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/IPoolService.sol/IPoolServiceEvents__factory.d.ts +66 -66
- package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.js +72 -72
- package/lib/types/factories/IPoolService.sol/IPoolService__factory.d.ts +235 -235
- package/lib/types/factories/IPoolService.sol/IPoolService__factory.js +286 -286
- package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.d.ts +65 -65
- package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.js +68 -68
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +574 -574
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +698 -698
- 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/{IWETHZapper__factory.d.ts → IPriceOracle.sol/IPriceOracleV2__factory.d.ts} +114 -99
- package/lib/types/factories/{IWERC20Zapper__factory.js → IPriceOracle.sol/IPriceOracleV2__factory.js} +119 -110
- 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/IPriceOracleBase__factory.d.ts +27 -27
- package/lib/types/factories/IPriceOracleBase__factory.js +27 -27
- 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 +512 -0
- package/lib/types/factories/IRouterV3__factory.js +676 -0
- package/lib/types/factories/IRouter__factory.d.ts +168 -154
- package/lib/types/factories/IRouter__factory.js +186 -167
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.d.ts +8 -8
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.js +9 -9
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +2 -2
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +2 -2
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +80 -76
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +87 -82
- package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.d.ts +50 -50
- package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.js +50 -50
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.d.ts +10 -10
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.js +11 -11
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.d.ts +2 -2
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +2 -2
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +142 -134
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +151 -141
- package/lib/types/factories/IVersion__factory.d.ts +3 -3
- package/lib/types/factories/IVersion__factory.js +3 -3
- package/lib/types/factories/IVotingContractV3__factory.d.ts +44 -0
- package/lib/types/factories/IVotingContractV3__factory.js +65 -0
- package/lib/types/factories/IWETHGateway__factory.d.ts +14 -14
- package/lib/types/factories/IWETHGateway__factory.js +14 -14
- package/lib/types/factories/IWETH__factory.d.ts +194 -0
- package/lib/types/factories/IWETH__factory.js +260 -0
- package/lib/types/factories/IYVault__factory.d.ts +112 -112
- package/lib/types/factories/IYVault__factory.js +122 -122
- package/lib/types/factories/IYearnV2Adapter__factory.d.ts +76 -68
- package/lib/types/factories/IYearnV2Adapter__factory.js +82 -70
- 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 +40 -48
- package/lib/types/factories/IZapper__factory.js +40 -50
- package/lib/types/factories/IstETH.sol/IstETHGetters__factory.d.ts +97 -97
- package/lib/types/factories/IstETH.sol/IstETHGetters__factory.js +107 -107
- package/lib/types/factories/IstETH.sol/IstETH__factory.d.ts +101 -101
- package/lib/types/factories/IstETH.sol/IstETH__factory.js +111 -111
- package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.d.ts +93 -93
- package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.js +103 -103
- package/lib/types/factories/IwstETH.sol/IwstETH__factory.d.ts +101 -101
- package/lib/types/factories/IwstETH.sol/IwstETH__factory.js +111 -111
- package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +14 -14
- package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +15 -15
- package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +52 -44
- package/lib/types/factories/IwstETHV1Adapter__factory.js +56 -44
- package/lib/types/factories/NumericArrayLib__factory.d.ts +25 -0
- package/lib/types/factories/NumericArrayLib__factory.js +47 -0
- package/lib/types/factories/Ownable__factory.d.ts +23 -23
- package/lib/types/factories/Ownable__factory.js +27 -27
- package/lib/types/factories/PartialLiquidationBotV3__factory.d.ts +284 -0
- package/lib/types/factories/PartialLiquidationBotV3__factory.js +379 -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} +9 -9
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js} +8 -8
- 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/contracts/index.d.ts +1 -0
- package/lib/types/factories/contracts/index.js +30 -0
- package/lib/types/factories/contracts/interfaces/IGasPricer__factory.d.ts +22 -0
- package/lib/types/factories/contracts/interfaces/IGasPricer__factory.js +38 -0
- package/lib/types/factories/contracts/interfaces/index.d.ts +1 -0
- package/lib/types/factories/contracts/interfaces/index.js +8 -0
- package/lib/types/factories/index.d.ts +50 -7
- package/lib/types/factories/index.js +84 -14
- package/lib/types/index.d.ts +182 -24
- package/lib/types/index.js +147 -20
- package/lib/utils/formatter.d.ts +1 -4
- package/lib/utils/formatter.js +3 -69
- package/lib/utils/math.d.ts +1 -0
- package/lib/utils/math.js +1 -0
- package/lib/utils/types.d.ts +1 -0
- package/lib/watchers/creditAccountWatcher.d.ts +3 -2
- package/lib/watchers/creditAccountWatcher.js +20 -14
- 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 -8
- package/contracts/IRouter.sol +0 -100
- package/lib/core/pool/index.d.ts +0 -1
- 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 -166
- package/lib/types/IWETHZapper.d.ts +0 -162
- 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/IDataCompressorV2_10.js → payload/bot.js} +0 -0
- /package/lib/{types/IDataCompressorV3_00.js → payload/gauge.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → CalldataExtractor.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → CompositePriceFeed.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → ContractsRegisterTrait.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/index.js → ERC20.js} +0 -0
- /package/lib/types/{IWERC20Zapper.js → FarmAccounting.js} +0 -0
- /package/lib/types/{IWETHZapper.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/factories/{IDataCompressorV3_00__factory.js → IDataCompressorV3__factory.js}
RENAMED
|
@@ -3,1780 +3,2012 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.IDataCompressorV3__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
9
|
{
|
|
10
|
+
type: "function",
|
|
11
|
+
name: "getCreditAccountData",
|
|
10
12
|
inputs: [
|
|
11
13
|
{
|
|
12
|
-
internalType: "address",
|
|
13
14
|
name: "creditAccount",
|
|
14
15
|
type: "address",
|
|
16
|
+
internalType: "address",
|
|
15
17
|
},
|
|
16
18
|
{
|
|
19
|
+
name: "priceUpdates",
|
|
20
|
+
type: "tuple[]",
|
|
21
|
+
internalType: "struct PriceOnDemand[]",
|
|
17
22
|
components: [
|
|
18
23
|
{
|
|
19
|
-
internalType: "address",
|
|
20
24
|
name: "token",
|
|
21
25
|
type: "address",
|
|
26
|
+
internalType: "address",
|
|
22
27
|
},
|
|
23
28
|
{
|
|
24
|
-
internalType: "bytes",
|
|
25
29
|
name: "callData",
|
|
26
30
|
type: "bytes",
|
|
31
|
+
internalType: "bytes",
|
|
27
32
|
},
|
|
28
33
|
],
|
|
29
|
-
internalType: "struct PriceOnDemand[]",
|
|
30
|
-
name: "priceUpdates",
|
|
31
|
-
type: "tuple[]",
|
|
32
34
|
},
|
|
33
35
|
],
|
|
34
|
-
name: "getCreditAccountData",
|
|
35
36
|
outputs: [
|
|
36
37
|
{
|
|
38
|
+
name: "",
|
|
39
|
+
type: "tuple",
|
|
40
|
+
internalType: "struct CreditAccountData",
|
|
37
41
|
components: [
|
|
38
42
|
{
|
|
39
|
-
internalType: "bool",
|
|
40
43
|
name: "isSuccessful",
|
|
41
44
|
type: "bool",
|
|
45
|
+
internalType: "bool",
|
|
42
46
|
},
|
|
43
47
|
{
|
|
44
|
-
internalType: "address[]",
|
|
45
48
|
name: "priceFeedsNeeded",
|
|
46
49
|
type: "address[]",
|
|
50
|
+
internalType: "address[]",
|
|
47
51
|
},
|
|
48
52
|
{
|
|
49
|
-
internalType: "address",
|
|
50
53
|
name: "addr",
|
|
51
54
|
type: "address",
|
|
55
|
+
internalType: "address",
|
|
52
56
|
},
|
|
53
57
|
{
|
|
54
|
-
internalType: "address",
|
|
55
58
|
name: "borrower",
|
|
56
59
|
type: "address",
|
|
60
|
+
internalType: "address",
|
|
57
61
|
},
|
|
58
62
|
{
|
|
59
|
-
internalType: "address",
|
|
60
63
|
name: "creditManager",
|
|
61
64
|
type: "address",
|
|
65
|
+
internalType: "address",
|
|
62
66
|
},
|
|
63
67
|
{
|
|
64
|
-
|
|
65
|
-
name: "cmDescription",
|
|
68
|
+
name: "cmName",
|
|
66
69
|
type: "string",
|
|
70
|
+
internalType: "string",
|
|
67
71
|
},
|
|
68
72
|
{
|
|
69
|
-
internalType: "address",
|
|
70
73
|
name: "creditFacade",
|
|
71
74
|
type: "address",
|
|
75
|
+
internalType: "address",
|
|
72
76
|
},
|
|
73
77
|
{
|
|
74
|
-
internalType: "address",
|
|
75
78
|
name: "underlying",
|
|
76
79
|
type: "address",
|
|
80
|
+
internalType: "address",
|
|
77
81
|
},
|
|
78
82
|
{
|
|
79
|
-
internalType: "uint256",
|
|
80
83
|
name: "debt",
|
|
81
84
|
type: "uint256",
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
85
|
internalType: "uint256",
|
|
85
|
-
name: "cumulativeIndexNow",
|
|
86
|
-
type: "uint256",
|
|
87
86
|
},
|
|
88
87
|
{
|
|
89
|
-
internalType: "uint256",
|
|
90
88
|
name: "cumulativeIndexLastUpdate",
|
|
91
89
|
type: "uint256",
|
|
90
|
+
internalType: "uint256",
|
|
92
91
|
},
|
|
93
92
|
{
|
|
94
|
-
internalType: "uint128",
|
|
95
93
|
name: "cumulativeQuotaInterest",
|
|
96
94
|
type: "uint128",
|
|
95
|
+
internalType: "uint128",
|
|
97
96
|
},
|
|
98
97
|
{
|
|
99
|
-
internalType: "uint256",
|
|
100
98
|
name: "accruedInterest",
|
|
101
99
|
type: "uint256",
|
|
100
|
+
internalType: "uint256",
|
|
102
101
|
},
|
|
103
102
|
{
|
|
104
|
-
internalType: "uint256",
|
|
105
103
|
name: "accruedFees",
|
|
106
104
|
type: "uint256",
|
|
105
|
+
internalType: "uint256",
|
|
107
106
|
},
|
|
108
107
|
{
|
|
109
|
-
internalType: "uint256",
|
|
110
108
|
name: "totalDebtUSD",
|
|
111
109
|
type: "uint256",
|
|
110
|
+
internalType: "uint256",
|
|
112
111
|
},
|
|
113
112
|
{
|
|
114
|
-
internalType: "uint256",
|
|
115
113
|
name: "totalValue",
|
|
116
114
|
type: "uint256",
|
|
115
|
+
internalType: "uint256",
|
|
117
116
|
},
|
|
118
117
|
{
|
|
119
|
-
internalType: "uint256",
|
|
120
118
|
name: "totalValueUSD",
|
|
121
119
|
type: "uint256",
|
|
120
|
+
internalType: "uint256",
|
|
122
121
|
},
|
|
123
122
|
{
|
|
124
|
-
internalType: "uint256",
|
|
125
123
|
name: "twvUSD",
|
|
126
124
|
type: "uint256",
|
|
125
|
+
internalType: "uint256",
|
|
127
126
|
},
|
|
128
127
|
{
|
|
129
|
-
internalType: "uint256",
|
|
130
128
|
name: "enabledTokensMask",
|
|
131
129
|
type: "uint256",
|
|
130
|
+
internalType: "uint256",
|
|
132
131
|
},
|
|
133
132
|
{
|
|
134
|
-
internalType: "uint256",
|
|
135
133
|
name: "healthFactor",
|
|
136
134
|
type: "uint256",
|
|
135
|
+
internalType: "uint256",
|
|
137
136
|
},
|
|
138
137
|
{
|
|
139
|
-
internalType: "uint256",
|
|
140
138
|
name: "baseBorrowRate",
|
|
141
139
|
type: "uint256",
|
|
140
|
+
internalType: "uint256",
|
|
142
141
|
},
|
|
143
142
|
{
|
|
144
|
-
internalType: "uint256",
|
|
145
143
|
name: "aggregatedBorrowRate",
|
|
146
144
|
type: "uint256",
|
|
145
|
+
internalType: "uint256",
|
|
147
146
|
},
|
|
148
147
|
{
|
|
148
|
+
name: "balances",
|
|
149
|
+
type: "tuple[]",
|
|
150
|
+
internalType: "struct TokenBalance[]",
|
|
149
151
|
components: [
|
|
150
152
|
{
|
|
151
|
-
internalType: "address",
|
|
152
153
|
name: "token",
|
|
153
154
|
type: "address",
|
|
155
|
+
internalType: "address",
|
|
154
156
|
},
|
|
155
157
|
{
|
|
156
|
-
internalType: "uint256",
|
|
157
158
|
name: "balance",
|
|
158
159
|
type: "uint256",
|
|
160
|
+
internalType: "uint256",
|
|
159
161
|
},
|
|
160
162
|
{
|
|
161
|
-
internalType: "bool",
|
|
162
163
|
name: "isForbidden",
|
|
163
164
|
type: "bool",
|
|
165
|
+
internalType: "bool",
|
|
164
166
|
},
|
|
165
167
|
{
|
|
166
|
-
internalType: "bool",
|
|
167
168
|
name: "isEnabled",
|
|
168
169
|
type: "bool",
|
|
170
|
+
internalType: "bool",
|
|
169
171
|
},
|
|
170
172
|
{
|
|
171
|
-
internalType: "bool",
|
|
172
173
|
name: "isQuoted",
|
|
173
174
|
type: "bool",
|
|
175
|
+
internalType: "bool",
|
|
174
176
|
},
|
|
175
177
|
{
|
|
176
|
-
internalType: "uint256",
|
|
177
178
|
name: "quota",
|
|
178
179
|
type: "uint256",
|
|
180
|
+
internalType: "uint256",
|
|
179
181
|
},
|
|
180
182
|
{
|
|
181
|
-
internalType: "uint16",
|
|
182
183
|
name: "quotaRate",
|
|
183
184
|
type: "uint16",
|
|
185
|
+
internalType: "uint16",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "quotaCumulativeIndexLU",
|
|
189
|
+
type: "uint256",
|
|
190
|
+
internalType: "uint256",
|
|
184
191
|
},
|
|
185
192
|
],
|
|
186
|
-
internalType: "struct TokenBalance[]",
|
|
187
|
-
name: "balances",
|
|
188
|
-
type: "tuple[]",
|
|
189
193
|
},
|
|
190
194
|
{
|
|
191
|
-
internalType: "uint64",
|
|
192
195
|
name: "since",
|
|
193
196
|
type: "uint64",
|
|
197
|
+
internalType: "uint64",
|
|
194
198
|
},
|
|
195
199
|
{
|
|
196
|
-
internalType: "uint256",
|
|
197
200
|
name: "cfVersion",
|
|
198
201
|
type: "uint256",
|
|
202
|
+
internalType: "uint256",
|
|
199
203
|
},
|
|
200
204
|
{
|
|
201
|
-
internalType: "uint40",
|
|
202
205
|
name: "expirationDate",
|
|
203
206
|
type: "uint40",
|
|
207
|
+
internalType: "uint40",
|
|
204
208
|
},
|
|
205
209
|
{
|
|
206
|
-
internalType: "address[]",
|
|
207
210
|
name: "activeBots",
|
|
208
211
|
type: "address[]",
|
|
209
|
-
|
|
210
|
-
{
|
|
211
|
-
internalType: "uint256",
|
|
212
|
-
name: "maxApprovedBots",
|
|
213
|
-
type: "uint256",
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
components: [
|
|
217
|
-
{
|
|
218
|
-
internalType: "uint8",
|
|
219
|
-
name: "tokenIndex",
|
|
220
|
-
type: "uint8",
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
internalType: "uint40",
|
|
224
|
-
name: "maturity",
|
|
225
|
-
type: "uint40",
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
internalType: "address",
|
|
229
|
-
name: "token",
|
|
230
|
-
type: "address",
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
internalType: "uint256",
|
|
234
|
-
name: "amount",
|
|
235
|
-
type: "uint256",
|
|
236
|
-
},
|
|
237
|
-
],
|
|
238
|
-
internalType: "struct ScheduledWithdrawal[2]",
|
|
239
|
-
name: "schedultedWithdrawals",
|
|
240
|
-
type: "tuple[2]",
|
|
212
|
+
internalType: "address[]",
|
|
241
213
|
},
|
|
242
214
|
],
|
|
243
|
-
internalType: "struct CreditAccountData",
|
|
244
|
-
name: "",
|
|
245
|
-
type: "tuple",
|
|
246
215
|
},
|
|
247
216
|
],
|
|
248
217
|
stateMutability: "nonpayable",
|
|
249
|
-
type: "function",
|
|
250
218
|
},
|
|
251
219
|
{
|
|
220
|
+
type: "function",
|
|
221
|
+
name: "getCreditAccountsByBorrower",
|
|
252
222
|
inputs: [
|
|
253
223
|
{
|
|
254
|
-
internalType: "address",
|
|
255
224
|
name: "borrower",
|
|
256
225
|
type: "address",
|
|
226
|
+
internalType: "address",
|
|
257
227
|
},
|
|
258
228
|
{
|
|
229
|
+
name: "priceUpdates",
|
|
230
|
+
type: "tuple[]",
|
|
231
|
+
internalType: "struct PriceOnDemand[]",
|
|
259
232
|
components: [
|
|
260
233
|
{
|
|
261
|
-
internalType: "address",
|
|
262
234
|
name: "token",
|
|
263
235
|
type: "address",
|
|
236
|
+
internalType: "address",
|
|
264
237
|
},
|
|
265
238
|
{
|
|
266
|
-
internalType: "bytes",
|
|
267
239
|
name: "callData",
|
|
268
240
|
type: "bytes",
|
|
241
|
+
internalType: "bytes",
|
|
269
242
|
},
|
|
270
243
|
],
|
|
271
|
-
internalType: "struct PriceOnDemand[]",
|
|
272
|
-
name: "priceUpdates",
|
|
273
|
-
type: "tuple[]",
|
|
274
244
|
},
|
|
275
245
|
],
|
|
276
|
-
name: "getCreditAccountsByBorrower",
|
|
277
246
|
outputs: [
|
|
278
247
|
{
|
|
248
|
+
name: "",
|
|
249
|
+
type: "tuple[]",
|
|
250
|
+
internalType: "struct CreditAccountData[]",
|
|
279
251
|
components: [
|
|
280
252
|
{
|
|
281
|
-
internalType: "bool",
|
|
282
253
|
name: "isSuccessful",
|
|
283
254
|
type: "bool",
|
|
255
|
+
internalType: "bool",
|
|
284
256
|
},
|
|
285
257
|
{
|
|
286
|
-
internalType: "address[]",
|
|
287
258
|
name: "priceFeedsNeeded",
|
|
288
259
|
type: "address[]",
|
|
260
|
+
internalType: "address[]",
|
|
289
261
|
},
|
|
290
262
|
{
|
|
291
|
-
internalType: "address",
|
|
292
263
|
name: "addr",
|
|
293
264
|
type: "address",
|
|
265
|
+
internalType: "address",
|
|
294
266
|
},
|
|
295
267
|
{
|
|
296
|
-
internalType: "address",
|
|
297
268
|
name: "borrower",
|
|
298
269
|
type: "address",
|
|
270
|
+
internalType: "address",
|
|
299
271
|
},
|
|
300
272
|
{
|
|
301
|
-
internalType: "address",
|
|
302
273
|
name: "creditManager",
|
|
303
274
|
type: "address",
|
|
275
|
+
internalType: "address",
|
|
304
276
|
},
|
|
305
277
|
{
|
|
306
|
-
|
|
307
|
-
name: "cmDescription",
|
|
278
|
+
name: "cmName",
|
|
308
279
|
type: "string",
|
|
280
|
+
internalType: "string",
|
|
309
281
|
},
|
|
310
282
|
{
|
|
311
|
-
internalType: "address",
|
|
312
283
|
name: "creditFacade",
|
|
313
284
|
type: "address",
|
|
285
|
+
internalType: "address",
|
|
314
286
|
},
|
|
315
287
|
{
|
|
316
|
-
internalType: "address",
|
|
317
288
|
name: "underlying",
|
|
318
289
|
type: "address",
|
|
290
|
+
internalType: "address",
|
|
319
291
|
},
|
|
320
292
|
{
|
|
321
|
-
internalType: "uint256",
|
|
322
293
|
name: "debt",
|
|
323
294
|
type: "uint256",
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
295
|
internalType: "uint256",
|
|
327
|
-
name: "cumulativeIndexNow",
|
|
328
|
-
type: "uint256",
|
|
329
296
|
},
|
|
330
297
|
{
|
|
331
|
-
internalType: "uint256",
|
|
332
298
|
name: "cumulativeIndexLastUpdate",
|
|
333
299
|
type: "uint256",
|
|
300
|
+
internalType: "uint256",
|
|
334
301
|
},
|
|
335
302
|
{
|
|
336
|
-
internalType: "uint128",
|
|
337
303
|
name: "cumulativeQuotaInterest",
|
|
338
304
|
type: "uint128",
|
|
305
|
+
internalType: "uint128",
|
|
339
306
|
},
|
|
340
307
|
{
|
|
341
|
-
internalType: "uint256",
|
|
342
308
|
name: "accruedInterest",
|
|
343
309
|
type: "uint256",
|
|
310
|
+
internalType: "uint256",
|
|
344
311
|
},
|
|
345
312
|
{
|
|
346
|
-
internalType: "uint256",
|
|
347
313
|
name: "accruedFees",
|
|
348
314
|
type: "uint256",
|
|
315
|
+
internalType: "uint256",
|
|
349
316
|
},
|
|
350
317
|
{
|
|
351
|
-
internalType: "uint256",
|
|
352
318
|
name: "totalDebtUSD",
|
|
353
319
|
type: "uint256",
|
|
320
|
+
internalType: "uint256",
|
|
354
321
|
},
|
|
355
322
|
{
|
|
356
|
-
internalType: "uint256",
|
|
357
323
|
name: "totalValue",
|
|
358
324
|
type: "uint256",
|
|
325
|
+
internalType: "uint256",
|
|
359
326
|
},
|
|
360
327
|
{
|
|
361
|
-
internalType: "uint256",
|
|
362
328
|
name: "totalValueUSD",
|
|
363
329
|
type: "uint256",
|
|
330
|
+
internalType: "uint256",
|
|
364
331
|
},
|
|
365
332
|
{
|
|
366
|
-
internalType: "uint256",
|
|
367
333
|
name: "twvUSD",
|
|
368
334
|
type: "uint256",
|
|
335
|
+
internalType: "uint256",
|
|
369
336
|
},
|
|
370
337
|
{
|
|
371
|
-
internalType: "uint256",
|
|
372
338
|
name: "enabledTokensMask",
|
|
373
339
|
type: "uint256",
|
|
340
|
+
internalType: "uint256",
|
|
374
341
|
},
|
|
375
342
|
{
|
|
376
|
-
internalType: "uint256",
|
|
377
343
|
name: "healthFactor",
|
|
378
344
|
type: "uint256",
|
|
345
|
+
internalType: "uint256",
|
|
379
346
|
},
|
|
380
347
|
{
|
|
381
|
-
internalType: "uint256",
|
|
382
348
|
name: "baseBorrowRate",
|
|
383
349
|
type: "uint256",
|
|
350
|
+
internalType: "uint256",
|
|
384
351
|
},
|
|
385
352
|
{
|
|
386
|
-
internalType: "uint256",
|
|
387
353
|
name: "aggregatedBorrowRate",
|
|
388
354
|
type: "uint256",
|
|
355
|
+
internalType: "uint256",
|
|
389
356
|
},
|
|
390
357
|
{
|
|
358
|
+
name: "balances",
|
|
359
|
+
type: "tuple[]",
|
|
360
|
+
internalType: "struct TokenBalance[]",
|
|
391
361
|
components: [
|
|
392
362
|
{
|
|
393
|
-
internalType: "address",
|
|
394
363
|
name: "token",
|
|
395
364
|
type: "address",
|
|
365
|
+
internalType: "address",
|
|
396
366
|
},
|
|
397
367
|
{
|
|
398
|
-
internalType: "uint256",
|
|
399
368
|
name: "balance",
|
|
400
369
|
type: "uint256",
|
|
370
|
+
internalType: "uint256",
|
|
401
371
|
},
|
|
402
372
|
{
|
|
403
|
-
internalType: "bool",
|
|
404
373
|
name: "isForbidden",
|
|
405
374
|
type: "bool",
|
|
375
|
+
internalType: "bool",
|
|
406
376
|
},
|
|
407
377
|
{
|
|
408
|
-
internalType: "bool",
|
|
409
378
|
name: "isEnabled",
|
|
410
379
|
type: "bool",
|
|
380
|
+
internalType: "bool",
|
|
411
381
|
},
|
|
412
382
|
{
|
|
413
|
-
internalType: "bool",
|
|
414
383
|
name: "isQuoted",
|
|
415
384
|
type: "bool",
|
|
385
|
+
internalType: "bool",
|
|
416
386
|
},
|
|
417
387
|
{
|
|
418
|
-
internalType: "uint256",
|
|
419
388
|
name: "quota",
|
|
420
389
|
type: "uint256",
|
|
390
|
+
internalType: "uint256",
|
|
421
391
|
},
|
|
422
392
|
{
|
|
423
|
-
internalType: "uint16",
|
|
424
393
|
name: "quotaRate",
|
|
425
394
|
type: "uint16",
|
|
395
|
+
internalType: "uint16",
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: "quotaCumulativeIndexLU",
|
|
399
|
+
type: "uint256",
|
|
400
|
+
internalType: "uint256",
|
|
426
401
|
},
|
|
427
402
|
],
|
|
428
|
-
internalType: "struct TokenBalance[]",
|
|
429
|
-
name: "balances",
|
|
430
|
-
type: "tuple[]",
|
|
431
403
|
},
|
|
432
404
|
{
|
|
433
|
-
internalType: "uint64",
|
|
434
405
|
name: "since",
|
|
435
406
|
type: "uint64",
|
|
407
|
+
internalType: "uint64",
|
|
436
408
|
},
|
|
437
409
|
{
|
|
438
|
-
internalType: "uint256",
|
|
439
410
|
name: "cfVersion",
|
|
440
411
|
type: "uint256",
|
|
412
|
+
internalType: "uint256",
|
|
441
413
|
},
|
|
442
414
|
{
|
|
443
|
-
internalType: "uint40",
|
|
444
415
|
name: "expirationDate",
|
|
445
416
|
type: "uint40",
|
|
417
|
+
internalType: "uint40",
|
|
446
418
|
},
|
|
447
419
|
{
|
|
448
|
-
internalType: "address[]",
|
|
449
420
|
name: "activeBots",
|
|
450
421
|
type: "address[]",
|
|
451
|
-
|
|
452
|
-
{
|
|
453
|
-
internalType: "uint256",
|
|
454
|
-
name: "maxApprovedBots",
|
|
455
|
-
type: "uint256",
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
components: [
|
|
459
|
-
{
|
|
460
|
-
internalType: "uint8",
|
|
461
|
-
name: "tokenIndex",
|
|
462
|
-
type: "uint8",
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
internalType: "uint40",
|
|
466
|
-
name: "maturity",
|
|
467
|
-
type: "uint40",
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
internalType: "address",
|
|
471
|
-
name: "token",
|
|
472
|
-
type: "address",
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
internalType: "uint256",
|
|
476
|
-
name: "amount",
|
|
477
|
-
type: "uint256",
|
|
478
|
-
},
|
|
479
|
-
],
|
|
480
|
-
internalType: "struct ScheduledWithdrawal[2]",
|
|
481
|
-
name: "schedultedWithdrawals",
|
|
482
|
-
type: "tuple[2]",
|
|
422
|
+
internalType: "address[]",
|
|
483
423
|
},
|
|
484
424
|
],
|
|
485
|
-
internalType: "struct CreditAccountData[]",
|
|
486
|
-
name: "",
|
|
487
|
-
type: "tuple[]",
|
|
488
425
|
},
|
|
489
426
|
],
|
|
490
427
|
stateMutability: "nonpayable",
|
|
491
|
-
type: "function",
|
|
492
428
|
},
|
|
493
429
|
{
|
|
430
|
+
type: "function",
|
|
431
|
+
name: "getCreditAccountsByCreditManager",
|
|
494
432
|
inputs: [
|
|
495
433
|
{
|
|
496
|
-
internalType: "address",
|
|
497
434
|
name: "creditManager",
|
|
498
435
|
type: "address",
|
|
436
|
+
internalType: "address",
|
|
499
437
|
},
|
|
500
438
|
{
|
|
439
|
+
name: "priceUpdates",
|
|
440
|
+
type: "tuple[]",
|
|
441
|
+
internalType: "struct PriceOnDemand[]",
|
|
501
442
|
components: [
|
|
502
443
|
{
|
|
503
|
-
internalType: "address",
|
|
504
444
|
name: "token",
|
|
505
445
|
type: "address",
|
|
446
|
+
internalType: "address",
|
|
506
447
|
},
|
|
507
448
|
{
|
|
508
|
-
internalType: "bytes",
|
|
509
449
|
name: "callData",
|
|
510
450
|
type: "bytes",
|
|
451
|
+
internalType: "bytes",
|
|
511
452
|
},
|
|
512
453
|
],
|
|
513
|
-
internalType: "struct PriceOnDemand[]",
|
|
514
|
-
name: "priceUpdates",
|
|
515
|
-
type: "tuple[]",
|
|
516
454
|
},
|
|
517
455
|
],
|
|
518
|
-
name: "getCreditAccountsByCreditManager",
|
|
519
456
|
outputs: [
|
|
520
457
|
{
|
|
458
|
+
name: "",
|
|
459
|
+
type: "tuple[]",
|
|
460
|
+
internalType: "struct CreditAccountData[]",
|
|
521
461
|
components: [
|
|
522
462
|
{
|
|
523
|
-
internalType: "bool",
|
|
524
463
|
name: "isSuccessful",
|
|
525
464
|
type: "bool",
|
|
465
|
+
internalType: "bool",
|
|
526
466
|
},
|
|
527
467
|
{
|
|
528
|
-
internalType: "address[]",
|
|
529
468
|
name: "priceFeedsNeeded",
|
|
530
469
|
type: "address[]",
|
|
470
|
+
internalType: "address[]",
|
|
531
471
|
},
|
|
532
472
|
{
|
|
533
|
-
internalType: "address",
|
|
534
473
|
name: "addr",
|
|
535
474
|
type: "address",
|
|
475
|
+
internalType: "address",
|
|
536
476
|
},
|
|
537
477
|
{
|
|
538
|
-
internalType: "address",
|
|
539
478
|
name: "borrower",
|
|
540
479
|
type: "address",
|
|
480
|
+
internalType: "address",
|
|
541
481
|
},
|
|
542
482
|
{
|
|
543
|
-
internalType: "address",
|
|
544
483
|
name: "creditManager",
|
|
545
484
|
type: "address",
|
|
485
|
+
internalType: "address",
|
|
546
486
|
},
|
|
547
487
|
{
|
|
548
|
-
|
|
549
|
-
name: "cmDescription",
|
|
488
|
+
name: "cmName",
|
|
550
489
|
type: "string",
|
|
490
|
+
internalType: "string",
|
|
551
491
|
},
|
|
552
492
|
{
|
|
553
|
-
internalType: "address",
|
|
554
493
|
name: "creditFacade",
|
|
555
494
|
type: "address",
|
|
495
|
+
internalType: "address",
|
|
556
496
|
},
|
|
557
497
|
{
|
|
558
|
-
internalType: "address",
|
|
559
498
|
name: "underlying",
|
|
560
499
|
type: "address",
|
|
500
|
+
internalType: "address",
|
|
561
501
|
},
|
|
562
502
|
{
|
|
563
|
-
internalType: "uint256",
|
|
564
503
|
name: "debt",
|
|
565
504
|
type: "uint256",
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
505
|
internalType: "uint256",
|
|
569
|
-
name: "cumulativeIndexNow",
|
|
570
|
-
type: "uint256",
|
|
571
506
|
},
|
|
572
507
|
{
|
|
573
|
-
internalType: "uint256",
|
|
574
508
|
name: "cumulativeIndexLastUpdate",
|
|
575
509
|
type: "uint256",
|
|
510
|
+
internalType: "uint256",
|
|
576
511
|
},
|
|
577
512
|
{
|
|
578
|
-
internalType: "uint128",
|
|
579
513
|
name: "cumulativeQuotaInterest",
|
|
580
514
|
type: "uint128",
|
|
515
|
+
internalType: "uint128",
|
|
581
516
|
},
|
|
582
517
|
{
|
|
583
|
-
internalType: "uint256",
|
|
584
518
|
name: "accruedInterest",
|
|
585
519
|
type: "uint256",
|
|
520
|
+
internalType: "uint256",
|
|
586
521
|
},
|
|
587
522
|
{
|
|
588
|
-
internalType: "uint256",
|
|
589
523
|
name: "accruedFees",
|
|
590
524
|
type: "uint256",
|
|
525
|
+
internalType: "uint256",
|
|
591
526
|
},
|
|
592
527
|
{
|
|
593
|
-
internalType: "uint256",
|
|
594
528
|
name: "totalDebtUSD",
|
|
595
529
|
type: "uint256",
|
|
530
|
+
internalType: "uint256",
|
|
596
531
|
},
|
|
597
532
|
{
|
|
598
|
-
internalType: "uint256",
|
|
599
533
|
name: "totalValue",
|
|
600
534
|
type: "uint256",
|
|
535
|
+
internalType: "uint256",
|
|
601
536
|
},
|
|
602
537
|
{
|
|
603
|
-
internalType: "uint256",
|
|
604
538
|
name: "totalValueUSD",
|
|
605
539
|
type: "uint256",
|
|
540
|
+
internalType: "uint256",
|
|
606
541
|
},
|
|
607
542
|
{
|
|
608
|
-
internalType: "uint256",
|
|
609
543
|
name: "twvUSD",
|
|
610
544
|
type: "uint256",
|
|
545
|
+
internalType: "uint256",
|
|
611
546
|
},
|
|
612
547
|
{
|
|
613
|
-
internalType: "uint256",
|
|
614
548
|
name: "enabledTokensMask",
|
|
615
549
|
type: "uint256",
|
|
550
|
+
internalType: "uint256",
|
|
616
551
|
},
|
|
617
552
|
{
|
|
618
|
-
internalType: "uint256",
|
|
619
553
|
name: "healthFactor",
|
|
620
554
|
type: "uint256",
|
|
555
|
+
internalType: "uint256",
|
|
621
556
|
},
|
|
622
557
|
{
|
|
623
|
-
internalType: "uint256",
|
|
624
558
|
name: "baseBorrowRate",
|
|
625
559
|
type: "uint256",
|
|
560
|
+
internalType: "uint256",
|
|
626
561
|
},
|
|
627
562
|
{
|
|
628
|
-
internalType: "uint256",
|
|
629
563
|
name: "aggregatedBorrowRate",
|
|
630
564
|
type: "uint256",
|
|
565
|
+
internalType: "uint256",
|
|
631
566
|
},
|
|
632
567
|
{
|
|
568
|
+
name: "balances",
|
|
569
|
+
type: "tuple[]",
|
|
570
|
+
internalType: "struct TokenBalance[]",
|
|
633
571
|
components: [
|
|
634
572
|
{
|
|
635
|
-
internalType: "address",
|
|
636
573
|
name: "token",
|
|
637
574
|
type: "address",
|
|
575
|
+
internalType: "address",
|
|
638
576
|
},
|
|
639
577
|
{
|
|
640
|
-
internalType: "uint256",
|
|
641
578
|
name: "balance",
|
|
642
579
|
type: "uint256",
|
|
580
|
+
internalType: "uint256",
|
|
643
581
|
},
|
|
644
582
|
{
|
|
645
|
-
internalType: "bool",
|
|
646
583
|
name: "isForbidden",
|
|
647
584
|
type: "bool",
|
|
585
|
+
internalType: "bool",
|
|
648
586
|
},
|
|
649
587
|
{
|
|
650
|
-
internalType: "bool",
|
|
651
588
|
name: "isEnabled",
|
|
652
589
|
type: "bool",
|
|
590
|
+
internalType: "bool",
|
|
653
591
|
},
|
|
654
592
|
{
|
|
655
|
-
internalType: "bool",
|
|
656
593
|
name: "isQuoted",
|
|
657
594
|
type: "bool",
|
|
595
|
+
internalType: "bool",
|
|
658
596
|
},
|
|
659
597
|
{
|
|
660
|
-
internalType: "uint256",
|
|
661
598
|
name: "quota",
|
|
662
599
|
type: "uint256",
|
|
600
|
+
internalType: "uint256",
|
|
663
601
|
},
|
|
664
602
|
{
|
|
665
|
-
internalType: "uint16",
|
|
666
603
|
name: "quotaRate",
|
|
667
604
|
type: "uint16",
|
|
605
|
+
internalType: "uint16",
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
name: "quotaCumulativeIndexLU",
|
|
609
|
+
type: "uint256",
|
|
610
|
+
internalType: "uint256",
|
|
668
611
|
},
|
|
669
612
|
],
|
|
670
|
-
internalType: "struct TokenBalance[]",
|
|
671
|
-
name: "balances",
|
|
672
|
-
type: "tuple[]",
|
|
673
613
|
},
|
|
674
614
|
{
|
|
675
|
-
internalType: "uint64",
|
|
676
615
|
name: "since",
|
|
677
616
|
type: "uint64",
|
|
617
|
+
internalType: "uint64",
|
|
678
618
|
},
|
|
679
619
|
{
|
|
680
|
-
internalType: "uint256",
|
|
681
620
|
name: "cfVersion",
|
|
682
621
|
type: "uint256",
|
|
622
|
+
internalType: "uint256",
|
|
683
623
|
},
|
|
684
624
|
{
|
|
685
|
-
internalType: "uint40",
|
|
686
625
|
name: "expirationDate",
|
|
687
626
|
type: "uint40",
|
|
627
|
+
internalType: "uint40",
|
|
688
628
|
},
|
|
689
629
|
{
|
|
690
|
-
internalType: "address[]",
|
|
691
630
|
name: "activeBots",
|
|
692
631
|
type: "address[]",
|
|
693
|
-
|
|
694
|
-
{
|
|
695
|
-
internalType: "uint256",
|
|
696
|
-
name: "maxApprovedBots",
|
|
697
|
-
type: "uint256",
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
components: [
|
|
701
|
-
{
|
|
702
|
-
internalType: "uint8",
|
|
703
|
-
name: "tokenIndex",
|
|
704
|
-
type: "uint8",
|
|
705
|
-
},
|
|
706
|
-
{
|
|
707
|
-
internalType: "uint40",
|
|
708
|
-
name: "maturity",
|
|
709
|
-
type: "uint40",
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
internalType: "address",
|
|
713
|
-
name: "token",
|
|
714
|
-
type: "address",
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
internalType: "uint256",
|
|
718
|
-
name: "amount",
|
|
719
|
-
type: "uint256",
|
|
720
|
-
},
|
|
721
|
-
],
|
|
722
|
-
internalType: "struct ScheduledWithdrawal[2]",
|
|
723
|
-
name: "schedultedWithdrawals",
|
|
724
|
-
type: "tuple[2]",
|
|
632
|
+
internalType: "address[]",
|
|
725
633
|
},
|
|
726
634
|
],
|
|
727
|
-
internalType: "struct CreditAccountData[]",
|
|
728
|
-
name: "",
|
|
729
|
-
type: "tuple[]",
|
|
730
635
|
},
|
|
731
636
|
],
|
|
732
637
|
stateMutability: "nonpayable",
|
|
733
|
-
type: "function",
|
|
734
638
|
},
|
|
735
639
|
{
|
|
640
|
+
type: "function",
|
|
641
|
+
name: "getCreditManagerData",
|
|
736
642
|
inputs: [
|
|
737
643
|
{
|
|
738
|
-
internalType: "address",
|
|
739
644
|
name: "creditManager",
|
|
740
645
|
type: "address",
|
|
646
|
+
internalType: "address",
|
|
741
647
|
},
|
|
742
648
|
],
|
|
743
|
-
name: "getCreditManagerData",
|
|
744
649
|
outputs: [
|
|
745
650
|
{
|
|
651
|
+
name: "",
|
|
652
|
+
type: "tuple",
|
|
653
|
+
internalType: "struct CreditManagerData",
|
|
746
654
|
components: [
|
|
747
655
|
{
|
|
748
|
-
internalType: "address",
|
|
749
656
|
name: "addr",
|
|
750
657
|
type: "address",
|
|
658
|
+
internalType: "address",
|
|
751
659
|
},
|
|
752
660
|
{
|
|
753
|
-
internalType: "string",
|
|
754
661
|
name: "name",
|
|
755
662
|
type: "string",
|
|
663
|
+
internalType: "string",
|
|
756
664
|
},
|
|
757
665
|
{
|
|
758
|
-
internalType: "uint256",
|
|
759
666
|
name: "cfVersion",
|
|
760
667
|
type: "uint256",
|
|
668
|
+
internalType: "uint256",
|
|
761
669
|
},
|
|
762
670
|
{
|
|
763
|
-
internalType: "address",
|
|
764
671
|
name: "creditFacade",
|
|
765
672
|
type: "address",
|
|
673
|
+
internalType: "address",
|
|
766
674
|
},
|
|
767
675
|
{
|
|
768
|
-
internalType: "address",
|
|
769
676
|
name: "creditConfigurator",
|
|
770
677
|
type: "address",
|
|
678
|
+
internalType: "address",
|
|
771
679
|
},
|
|
772
680
|
{
|
|
773
|
-
internalType: "address",
|
|
774
681
|
name: "underlying",
|
|
775
682
|
type: "address",
|
|
683
|
+
internalType: "address",
|
|
776
684
|
},
|
|
777
685
|
{
|
|
778
|
-
internalType: "address",
|
|
779
686
|
name: "pool",
|
|
780
687
|
type: "address",
|
|
688
|
+
internalType: "address",
|
|
781
689
|
},
|
|
782
690
|
{
|
|
783
|
-
internalType: "uint256",
|
|
784
691
|
name: "totalDebt",
|
|
785
692
|
type: "uint256",
|
|
693
|
+
internalType: "uint256",
|
|
786
694
|
},
|
|
787
695
|
{
|
|
788
|
-
internalType: "uint256",
|
|
789
696
|
name: "totalDebtLimit",
|
|
790
697
|
type: "uint256",
|
|
698
|
+
internalType: "uint256",
|
|
791
699
|
},
|
|
792
700
|
{
|
|
793
|
-
internalType: "uint256",
|
|
794
701
|
name: "baseBorrowRate",
|
|
795
702
|
type: "uint256",
|
|
703
|
+
internalType: "uint256",
|
|
796
704
|
},
|
|
797
705
|
{
|
|
798
|
-
internalType: "uint256",
|
|
799
706
|
name: "minDebt",
|
|
800
707
|
type: "uint256",
|
|
708
|
+
internalType: "uint256",
|
|
801
709
|
},
|
|
802
710
|
{
|
|
803
|
-
internalType: "uint256",
|
|
804
711
|
name: "maxDebt",
|
|
805
712
|
type: "uint256",
|
|
713
|
+
internalType: "uint256",
|
|
806
714
|
},
|
|
807
715
|
{
|
|
808
|
-
internalType: "uint256",
|
|
809
716
|
name: "availableToBorrow",
|
|
810
717
|
type: "uint256",
|
|
718
|
+
internalType: "uint256",
|
|
811
719
|
},
|
|
812
720
|
{
|
|
813
|
-
internalType: "address[]",
|
|
814
721
|
name: "collateralTokens",
|
|
815
722
|
type: "address[]",
|
|
723
|
+
internalType: "address[]",
|
|
816
724
|
},
|
|
817
725
|
{
|
|
726
|
+
name: "adapters",
|
|
727
|
+
type: "tuple[]",
|
|
728
|
+
internalType: "struct ContractAdapter[]",
|
|
818
729
|
components: [
|
|
819
730
|
{
|
|
820
|
-
internalType: "address",
|
|
821
731
|
name: "targetContract",
|
|
822
732
|
type: "address",
|
|
733
|
+
internalType: "address",
|
|
823
734
|
},
|
|
824
735
|
{
|
|
825
|
-
internalType: "address",
|
|
826
736
|
name: "adapter",
|
|
827
737
|
type: "address",
|
|
738
|
+
internalType: "address",
|
|
828
739
|
},
|
|
829
740
|
],
|
|
830
|
-
internalType: "struct ContractAdapter[]",
|
|
831
|
-
name: "adapters",
|
|
832
|
-
type: "tuple[]",
|
|
833
741
|
},
|
|
834
742
|
{
|
|
835
|
-
internalType: "uint256[]",
|
|
836
743
|
name: "liquidationThresholds",
|
|
837
744
|
type: "uint256[]",
|
|
745
|
+
internalType: "uint256[]",
|
|
838
746
|
},
|
|
839
747
|
{
|
|
840
|
-
internalType: "bool",
|
|
841
748
|
name: "isDegenMode",
|
|
842
749
|
type: "bool",
|
|
750
|
+
internalType: "bool",
|
|
843
751
|
},
|
|
844
752
|
{
|
|
845
|
-
internalType: "address",
|
|
846
753
|
name: "degenNFT",
|
|
847
754
|
type: "address",
|
|
755
|
+
internalType: "address",
|
|
848
756
|
},
|
|
849
757
|
{
|
|
850
|
-
internalType: "uint256",
|
|
851
758
|
name: "forbiddenTokenMask",
|
|
852
759
|
type: "uint256",
|
|
760
|
+
internalType: "uint256",
|
|
853
761
|
},
|
|
854
762
|
{
|
|
855
|
-
internalType: "uint8",
|
|
856
763
|
name: "maxEnabledTokensLength",
|
|
857
764
|
type: "uint8",
|
|
765
|
+
internalType: "uint8",
|
|
858
766
|
},
|
|
859
767
|
{
|
|
860
|
-
internalType: "uint16",
|
|
861
768
|
name: "feeInterest",
|
|
862
769
|
type: "uint16",
|
|
770
|
+
internalType: "uint16",
|
|
863
771
|
},
|
|
864
772
|
{
|
|
865
|
-
internalType: "uint16",
|
|
866
773
|
name: "feeLiquidation",
|
|
867
774
|
type: "uint16",
|
|
775
|
+
internalType: "uint16",
|
|
868
776
|
},
|
|
869
777
|
{
|
|
870
|
-
internalType: "uint16",
|
|
871
778
|
name: "liquidationDiscount",
|
|
872
779
|
type: "uint16",
|
|
780
|
+
internalType: "uint16",
|
|
873
781
|
},
|
|
874
782
|
{
|
|
875
|
-
internalType: "uint16",
|
|
876
783
|
name: "feeLiquidationExpired",
|
|
877
784
|
type: "uint16",
|
|
785
|
+
internalType: "uint16",
|
|
878
786
|
},
|
|
879
787
|
{
|
|
880
|
-
internalType: "uint16",
|
|
881
788
|
name: "liquidationDiscountExpired",
|
|
882
789
|
type: "uint16",
|
|
790
|
+
internalType: "uint16",
|
|
883
791
|
},
|
|
884
792
|
{
|
|
793
|
+
name: "quotas",
|
|
794
|
+
type: "tuple[]",
|
|
795
|
+
internalType: "struct QuotaInfo[]",
|
|
885
796
|
components: [
|
|
886
797
|
{
|
|
887
|
-
internalType: "address",
|
|
888
798
|
name: "token",
|
|
889
799
|
type: "address",
|
|
800
|
+
internalType: "address",
|
|
890
801
|
},
|
|
891
802
|
{
|
|
892
|
-
internalType: "uint16",
|
|
893
803
|
name: "rate",
|
|
894
804
|
type: "uint16",
|
|
805
|
+
internalType: "uint16",
|
|
895
806
|
},
|
|
896
807
|
{
|
|
897
|
-
internalType: "uint16",
|
|
898
808
|
name: "quotaIncreaseFee",
|
|
899
809
|
type: "uint16",
|
|
810
|
+
internalType: "uint16",
|
|
900
811
|
},
|
|
901
812
|
{
|
|
902
|
-
internalType: "uint96",
|
|
903
813
|
name: "totalQuoted",
|
|
904
814
|
type: "uint96",
|
|
815
|
+
internalType: "uint96",
|
|
905
816
|
},
|
|
906
817
|
{
|
|
907
|
-
internalType: "uint96",
|
|
908
818
|
name: "limit",
|
|
909
819
|
type: "uint96",
|
|
820
|
+
internalType: "uint96",
|
|
910
821
|
},
|
|
911
822
|
{
|
|
912
|
-
internalType: "bool",
|
|
913
823
|
name: "isActive",
|
|
914
824
|
type: "bool",
|
|
825
|
+
internalType: "bool",
|
|
915
826
|
},
|
|
916
827
|
],
|
|
917
|
-
internalType: "struct QuotaInfo[]",
|
|
918
|
-
name: "quotas",
|
|
919
|
-
type: "tuple[]",
|
|
920
828
|
},
|
|
921
829
|
{
|
|
830
|
+
name: "lirm",
|
|
831
|
+
type: "tuple",
|
|
832
|
+
internalType: "struct LinearModel",
|
|
922
833
|
components: [
|
|
923
834
|
{
|
|
924
|
-
internalType: "address",
|
|
925
835
|
name: "interestModel",
|
|
926
836
|
type: "address",
|
|
837
|
+
internalType: "address",
|
|
927
838
|
},
|
|
928
839
|
{
|
|
929
|
-
internalType: "uint256",
|
|
930
840
|
name: "version",
|
|
931
841
|
type: "uint256",
|
|
842
|
+
internalType: "uint256",
|
|
932
843
|
},
|
|
933
844
|
{
|
|
934
|
-
internalType: "uint16",
|
|
935
845
|
name: "U_1",
|
|
936
846
|
type: "uint16",
|
|
847
|
+
internalType: "uint16",
|
|
937
848
|
},
|
|
938
849
|
{
|
|
939
|
-
internalType: "uint16",
|
|
940
850
|
name: "U_2",
|
|
941
851
|
type: "uint16",
|
|
852
|
+
internalType: "uint16",
|
|
942
853
|
},
|
|
943
854
|
{
|
|
944
|
-
internalType: "uint16",
|
|
945
855
|
name: "R_base",
|
|
946
856
|
type: "uint16",
|
|
857
|
+
internalType: "uint16",
|
|
947
858
|
},
|
|
948
859
|
{
|
|
949
|
-
internalType: "uint16",
|
|
950
860
|
name: "R_slope1",
|
|
951
861
|
type: "uint16",
|
|
862
|
+
internalType: "uint16",
|
|
952
863
|
},
|
|
953
864
|
{
|
|
954
|
-
internalType: "uint16",
|
|
955
865
|
name: "R_slope2",
|
|
956
866
|
type: "uint16",
|
|
867
|
+
internalType: "uint16",
|
|
957
868
|
},
|
|
958
869
|
{
|
|
959
|
-
internalType: "uint16",
|
|
960
870
|
name: "R_slope3",
|
|
961
871
|
type: "uint16",
|
|
872
|
+
internalType: "uint16",
|
|
962
873
|
},
|
|
963
874
|
{
|
|
964
|
-
internalType: "bool",
|
|
965
875
|
name: "isBorrowingMoreU2Forbidden",
|
|
966
876
|
type: "bool",
|
|
877
|
+
internalType: "bool",
|
|
967
878
|
},
|
|
968
879
|
],
|
|
969
|
-
internalType: "struct LinearModel",
|
|
970
|
-
name: "lirm",
|
|
971
|
-
type: "tuple",
|
|
972
880
|
},
|
|
973
881
|
{
|
|
974
|
-
internalType: "bool",
|
|
975
882
|
name: "isPaused",
|
|
976
883
|
type: "bool",
|
|
884
|
+
internalType: "bool",
|
|
977
885
|
},
|
|
978
886
|
],
|
|
979
|
-
internalType: "struct CreditManagerData",
|
|
980
|
-
name: "",
|
|
981
|
-
type: "tuple",
|
|
982
887
|
},
|
|
983
888
|
],
|
|
984
889
|
stateMutability: "view",
|
|
985
|
-
type: "function",
|
|
986
890
|
},
|
|
987
891
|
{
|
|
988
|
-
|
|
892
|
+
type: "function",
|
|
989
893
|
name: "getCreditManagersV3List",
|
|
894
|
+
inputs: [],
|
|
990
895
|
outputs: [
|
|
991
896
|
{
|
|
897
|
+
name: "",
|
|
898
|
+
type: "tuple[]",
|
|
899
|
+
internalType: "struct CreditManagerData[]",
|
|
992
900
|
components: [
|
|
993
901
|
{
|
|
994
|
-
internalType: "address",
|
|
995
902
|
name: "addr",
|
|
996
903
|
type: "address",
|
|
904
|
+
internalType: "address",
|
|
997
905
|
},
|
|
998
906
|
{
|
|
999
|
-
internalType: "string",
|
|
1000
907
|
name: "name",
|
|
1001
908
|
type: "string",
|
|
909
|
+
internalType: "string",
|
|
1002
910
|
},
|
|
1003
911
|
{
|
|
1004
|
-
internalType: "uint256",
|
|
1005
912
|
name: "cfVersion",
|
|
1006
913
|
type: "uint256",
|
|
914
|
+
internalType: "uint256",
|
|
1007
915
|
},
|
|
1008
916
|
{
|
|
1009
|
-
internalType: "address",
|
|
1010
917
|
name: "creditFacade",
|
|
1011
918
|
type: "address",
|
|
919
|
+
internalType: "address",
|
|
1012
920
|
},
|
|
1013
921
|
{
|
|
1014
|
-
internalType: "address",
|
|
1015
922
|
name: "creditConfigurator",
|
|
1016
923
|
type: "address",
|
|
924
|
+
internalType: "address",
|
|
1017
925
|
},
|
|
1018
926
|
{
|
|
1019
|
-
internalType: "address",
|
|
1020
927
|
name: "underlying",
|
|
1021
928
|
type: "address",
|
|
929
|
+
internalType: "address",
|
|
1022
930
|
},
|
|
1023
931
|
{
|
|
1024
|
-
internalType: "address",
|
|
1025
932
|
name: "pool",
|
|
1026
933
|
type: "address",
|
|
934
|
+
internalType: "address",
|
|
1027
935
|
},
|
|
1028
936
|
{
|
|
1029
|
-
internalType: "uint256",
|
|
1030
937
|
name: "totalDebt",
|
|
1031
938
|
type: "uint256",
|
|
939
|
+
internalType: "uint256",
|
|
1032
940
|
},
|
|
1033
941
|
{
|
|
1034
|
-
internalType: "uint256",
|
|
1035
942
|
name: "totalDebtLimit",
|
|
1036
943
|
type: "uint256",
|
|
944
|
+
internalType: "uint256",
|
|
1037
945
|
},
|
|
1038
946
|
{
|
|
1039
|
-
internalType: "uint256",
|
|
1040
947
|
name: "baseBorrowRate",
|
|
1041
948
|
type: "uint256",
|
|
949
|
+
internalType: "uint256",
|
|
1042
950
|
},
|
|
1043
951
|
{
|
|
1044
|
-
internalType: "uint256",
|
|
1045
952
|
name: "minDebt",
|
|
1046
953
|
type: "uint256",
|
|
954
|
+
internalType: "uint256",
|
|
1047
955
|
},
|
|
1048
956
|
{
|
|
1049
|
-
internalType: "uint256",
|
|
1050
957
|
name: "maxDebt",
|
|
1051
958
|
type: "uint256",
|
|
959
|
+
internalType: "uint256",
|
|
1052
960
|
},
|
|
1053
961
|
{
|
|
1054
|
-
internalType: "uint256",
|
|
1055
962
|
name: "availableToBorrow",
|
|
1056
963
|
type: "uint256",
|
|
964
|
+
internalType: "uint256",
|
|
1057
965
|
},
|
|
1058
966
|
{
|
|
1059
|
-
internalType: "address[]",
|
|
1060
967
|
name: "collateralTokens",
|
|
1061
968
|
type: "address[]",
|
|
969
|
+
internalType: "address[]",
|
|
1062
970
|
},
|
|
1063
971
|
{
|
|
972
|
+
name: "adapters",
|
|
973
|
+
type: "tuple[]",
|
|
974
|
+
internalType: "struct ContractAdapter[]",
|
|
1064
975
|
components: [
|
|
1065
976
|
{
|
|
1066
|
-
internalType: "address",
|
|
1067
977
|
name: "targetContract",
|
|
1068
978
|
type: "address",
|
|
979
|
+
internalType: "address",
|
|
1069
980
|
},
|
|
1070
981
|
{
|
|
1071
|
-
internalType: "address",
|
|
1072
982
|
name: "adapter",
|
|
1073
983
|
type: "address",
|
|
984
|
+
internalType: "address",
|
|
1074
985
|
},
|
|
1075
986
|
],
|
|
1076
|
-
internalType: "struct ContractAdapter[]",
|
|
1077
|
-
name: "adapters",
|
|
1078
|
-
type: "tuple[]",
|
|
1079
987
|
},
|
|
1080
988
|
{
|
|
1081
|
-
internalType: "uint256[]",
|
|
1082
989
|
name: "liquidationThresholds",
|
|
1083
990
|
type: "uint256[]",
|
|
991
|
+
internalType: "uint256[]",
|
|
1084
992
|
},
|
|
1085
993
|
{
|
|
1086
|
-
internalType: "bool",
|
|
1087
994
|
name: "isDegenMode",
|
|
1088
995
|
type: "bool",
|
|
996
|
+
internalType: "bool",
|
|
1089
997
|
},
|
|
1090
998
|
{
|
|
1091
|
-
internalType: "address",
|
|
1092
999
|
name: "degenNFT",
|
|
1093
1000
|
type: "address",
|
|
1001
|
+
internalType: "address",
|
|
1094
1002
|
},
|
|
1095
1003
|
{
|
|
1096
|
-
internalType: "uint256",
|
|
1097
1004
|
name: "forbiddenTokenMask",
|
|
1098
1005
|
type: "uint256",
|
|
1006
|
+
internalType: "uint256",
|
|
1099
1007
|
},
|
|
1100
1008
|
{
|
|
1101
|
-
internalType: "uint8",
|
|
1102
1009
|
name: "maxEnabledTokensLength",
|
|
1103
1010
|
type: "uint8",
|
|
1011
|
+
internalType: "uint8",
|
|
1104
1012
|
},
|
|
1105
1013
|
{
|
|
1106
|
-
internalType: "uint16",
|
|
1107
1014
|
name: "feeInterest",
|
|
1108
1015
|
type: "uint16",
|
|
1016
|
+
internalType: "uint16",
|
|
1109
1017
|
},
|
|
1110
1018
|
{
|
|
1111
|
-
internalType: "uint16",
|
|
1112
1019
|
name: "feeLiquidation",
|
|
1113
1020
|
type: "uint16",
|
|
1021
|
+
internalType: "uint16",
|
|
1114
1022
|
},
|
|
1115
1023
|
{
|
|
1116
|
-
internalType: "uint16",
|
|
1117
1024
|
name: "liquidationDiscount",
|
|
1118
1025
|
type: "uint16",
|
|
1026
|
+
internalType: "uint16",
|
|
1119
1027
|
},
|
|
1120
1028
|
{
|
|
1121
|
-
internalType: "uint16",
|
|
1122
1029
|
name: "feeLiquidationExpired",
|
|
1123
1030
|
type: "uint16",
|
|
1031
|
+
internalType: "uint16",
|
|
1124
1032
|
},
|
|
1125
1033
|
{
|
|
1126
|
-
internalType: "uint16",
|
|
1127
1034
|
name: "liquidationDiscountExpired",
|
|
1128
1035
|
type: "uint16",
|
|
1036
|
+
internalType: "uint16",
|
|
1129
1037
|
},
|
|
1130
1038
|
{
|
|
1039
|
+
name: "quotas",
|
|
1040
|
+
type: "tuple[]",
|
|
1041
|
+
internalType: "struct QuotaInfo[]",
|
|
1131
1042
|
components: [
|
|
1132
1043
|
{
|
|
1133
|
-
internalType: "address",
|
|
1134
1044
|
name: "token",
|
|
1135
1045
|
type: "address",
|
|
1046
|
+
internalType: "address",
|
|
1136
1047
|
},
|
|
1137
1048
|
{
|
|
1138
|
-
internalType: "uint16",
|
|
1139
1049
|
name: "rate",
|
|
1140
1050
|
type: "uint16",
|
|
1051
|
+
internalType: "uint16",
|
|
1141
1052
|
},
|
|
1142
1053
|
{
|
|
1143
|
-
internalType: "uint16",
|
|
1144
1054
|
name: "quotaIncreaseFee",
|
|
1145
1055
|
type: "uint16",
|
|
1056
|
+
internalType: "uint16",
|
|
1146
1057
|
},
|
|
1147
1058
|
{
|
|
1148
|
-
internalType: "uint96",
|
|
1149
1059
|
name: "totalQuoted",
|
|
1150
1060
|
type: "uint96",
|
|
1061
|
+
internalType: "uint96",
|
|
1151
1062
|
},
|
|
1152
1063
|
{
|
|
1153
|
-
internalType: "uint96",
|
|
1154
1064
|
name: "limit",
|
|
1155
1065
|
type: "uint96",
|
|
1066
|
+
internalType: "uint96",
|
|
1156
1067
|
},
|
|
1157
1068
|
{
|
|
1158
|
-
internalType: "bool",
|
|
1159
1069
|
name: "isActive",
|
|
1160
1070
|
type: "bool",
|
|
1071
|
+
internalType: "bool",
|
|
1161
1072
|
},
|
|
1162
1073
|
],
|
|
1163
|
-
internalType: "struct QuotaInfo[]",
|
|
1164
|
-
name: "quotas",
|
|
1165
|
-
type: "tuple[]",
|
|
1166
1074
|
},
|
|
1167
1075
|
{
|
|
1076
|
+
name: "lirm",
|
|
1077
|
+
type: "tuple",
|
|
1078
|
+
internalType: "struct LinearModel",
|
|
1168
1079
|
components: [
|
|
1169
1080
|
{
|
|
1170
|
-
internalType: "address",
|
|
1171
1081
|
name: "interestModel",
|
|
1172
1082
|
type: "address",
|
|
1083
|
+
internalType: "address",
|
|
1173
1084
|
},
|
|
1174
1085
|
{
|
|
1175
|
-
internalType: "uint256",
|
|
1176
1086
|
name: "version",
|
|
1177
1087
|
type: "uint256",
|
|
1088
|
+
internalType: "uint256",
|
|
1178
1089
|
},
|
|
1179
1090
|
{
|
|
1180
|
-
internalType: "uint16",
|
|
1181
1091
|
name: "U_1",
|
|
1182
1092
|
type: "uint16",
|
|
1093
|
+
internalType: "uint16",
|
|
1183
1094
|
},
|
|
1184
1095
|
{
|
|
1185
|
-
internalType: "uint16",
|
|
1186
1096
|
name: "U_2",
|
|
1187
1097
|
type: "uint16",
|
|
1098
|
+
internalType: "uint16",
|
|
1188
1099
|
},
|
|
1189
1100
|
{
|
|
1190
|
-
internalType: "uint16",
|
|
1191
1101
|
name: "R_base",
|
|
1192
1102
|
type: "uint16",
|
|
1103
|
+
internalType: "uint16",
|
|
1193
1104
|
},
|
|
1194
1105
|
{
|
|
1195
|
-
internalType: "uint16",
|
|
1196
1106
|
name: "R_slope1",
|
|
1197
1107
|
type: "uint16",
|
|
1108
|
+
internalType: "uint16",
|
|
1198
1109
|
},
|
|
1199
1110
|
{
|
|
1200
|
-
internalType: "uint16",
|
|
1201
1111
|
name: "R_slope2",
|
|
1202
1112
|
type: "uint16",
|
|
1113
|
+
internalType: "uint16",
|
|
1203
1114
|
},
|
|
1204
1115
|
{
|
|
1205
|
-
internalType: "uint16",
|
|
1206
1116
|
name: "R_slope3",
|
|
1207
1117
|
type: "uint16",
|
|
1118
|
+
internalType: "uint16",
|
|
1208
1119
|
},
|
|
1209
1120
|
{
|
|
1210
|
-
internalType: "bool",
|
|
1211
1121
|
name: "isBorrowingMoreU2Forbidden",
|
|
1212
1122
|
type: "bool",
|
|
1123
|
+
internalType: "bool",
|
|
1213
1124
|
},
|
|
1214
1125
|
],
|
|
1215
|
-
internalType: "struct LinearModel",
|
|
1216
|
-
name: "lirm",
|
|
1217
|
-
type: "tuple",
|
|
1218
1126
|
},
|
|
1219
1127
|
{
|
|
1220
|
-
internalType: "bool",
|
|
1221
1128
|
name: "isPaused",
|
|
1222
1129
|
type: "bool",
|
|
1130
|
+
internalType: "bool",
|
|
1223
1131
|
},
|
|
1224
1132
|
],
|
|
1225
|
-
|
|
1226
|
-
|
|
1133
|
+
},
|
|
1134
|
+
],
|
|
1135
|
+
stateMutability: "view",
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
type: "function",
|
|
1139
|
+
name: "getGaugesV3Data",
|
|
1140
|
+
inputs: [
|
|
1141
|
+
{
|
|
1142
|
+
name: "staker",
|
|
1143
|
+
type: "address",
|
|
1144
|
+
internalType: "address",
|
|
1145
|
+
},
|
|
1146
|
+
],
|
|
1147
|
+
outputs: [
|
|
1148
|
+
{
|
|
1149
|
+
name: "result",
|
|
1227
1150
|
type: "tuple[]",
|
|
1151
|
+
internalType: "struct GaugeInfo[]",
|
|
1152
|
+
components: [
|
|
1153
|
+
{
|
|
1154
|
+
name: "addr",
|
|
1155
|
+
type: "address",
|
|
1156
|
+
internalType: "address",
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
name: "pool",
|
|
1160
|
+
type: "address",
|
|
1161
|
+
internalType: "address",
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
name: "symbol",
|
|
1165
|
+
type: "string",
|
|
1166
|
+
internalType: "string",
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
name: "name",
|
|
1170
|
+
type: "string",
|
|
1171
|
+
internalType: "string",
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
name: "underlying",
|
|
1175
|
+
type: "address",
|
|
1176
|
+
internalType: "address",
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
name: "currentEpoch",
|
|
1180
|
+
type: "uint16",
|
|
1181
|
+
internalType: "uint16",
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
name: "epochFrozen",
|
|
1185
|
+
type: "bool",
|
|
1186
|
+
internalType: "bool",
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
name: "quotaParams",
|
|
1190
|
+
type: "tuple[]",
|
|
1191
|
+
internalType: "struct GaugeQuotaParams[]",
|
|
1192
|
+
components: [
|
|
1193
|
+
{
|
|
1194
|
+
name: "token",
|
|
1195
|
+
type: "address",
|
|
1196
|
+
internalType: "address",
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
name: "minRate",
|
|
1200
|
+
type: "uint16",
|
|
1201
|
+
internalType: "uint16",
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
name: "maxRate",
|
|
1205
|
+
type: "uint16",
|
|
1206
|
+
internalType: "uint16",
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
name: "totalVotesLpSide",
|
|
1210
|
+
type: "uint96",
|
|
1211
|
+
internalType: "uint96",
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
name: "totalVotesCaSide",
|
|
1215
|
+
type: "uint96",
|
|
1216
|
+
internalType: "uint96",
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
name: "rate",
|
|
1220
|
+
type: "uint16",
|
|
1221
|
+
internalType: "uint16",
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
name: "quotaIncreaseFee",
|
|
1225
|
+
type: "uint16",
|
|
1226
|
+
internalType: "uint16",
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
name: "totalQuoted",
|
|
1230
|
+
type: "uint96",
|
|
1231
|
+
internalType: "uint96",
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
name: "limit",
|
|
1235
|
+
type: "uint96",
|
|
1236
|
+
internalType: "uint96",
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
name: "isActive",
|
|
1240
|
+
type: "bool",
|
|
1241
|
+
internalType: "bool",
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
name: "stakerVotesLpSide",
|
|
1245
|
+
type: "uint96",
|
|
1246
|
+
internalType: "uint96",
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
name: "stakerVotesCaSide",
|
|
1250
|
+
type: "uint96",
|
|
1251
|
+
internalType: "uint96",
|
|
1252
|
+
},
|
|
1253
|
+
],
|
|
1254
|
+
},
|
|
1255
|
+
],
|
|
1256
|
+
},
|
|
1257
|
+
],
|
|
1258
|
+
stateMutability: "view",
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
type: "function",
|
|
1262
|
+
name: "getLiquidatableCreditAccounts",
|
|
1263
|
+
inputs: [
|
|
1264
|
+
{
|
|
1265
|
+
name: "priceUpdates",
|
|
1266
|
+
type: "tuple[]",
|
|
1267
|
+
internalType: "struct PriceOnDemand[]",
|
|
1268
|
+
components: [
|
|
1269
|
+
{
|
|
1270
|
+
name: "token",
|
|
1271
|
+
type: "address",
|
|
1272
|
+
internalType: "address",
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
name: "callData",
|
|
1276
|
+
type: "bytes",
|
|
1277
|
+
internalType: "bytes",
|
|
1278
|
+
},
|
|
1279
|
+
],
|
|
1280
|
+
},
|
|
1281
|
+
],
|
|
1282
|
+
outputs: [
|
|
1283
|
+
{
|
|
1284
|
+
name: "result",
|
|
1285
|
+
type: "tuple[]",
|
|
1286
|
+
internalType: "struct CreditAccountData[]",
|
|
1287
|
+
components: [
|
|
1288
|
+
{
|
|
1289
|
+
name: "isSuccessful",
|
|
1290
|
+
type: "bool",
|
|
1291
|
+
internalType: "bool",
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
name: "priceFeedsNeeded",
|
|
1295
|
+
type: "address[]",
|
|
1296
|
+
internalType: "address[]",
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
name: "addr",
|
|
1300
|
+
type: "address",
|
|
1301
|
+
internalType: "address",
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
name: "borrower",
|
|
1305
|
+
type: "address",
|
|
1306
|
+
internalType: "address",
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
name: "creditManager",
|
|
1310
|
+
type: "address",
|
|
1311
|
+
internalType: "address",
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
name: "cmName",
|
|
1315
|
+
type: "string",
|
|
1316
|
+
internalType: "string",
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
name: "creditFacade",
|
|
1320
|
+
type: "address",
|
|
1321
|
+
internalType: "address",
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
name: "underlying",
|
|
1325
|
+
type: "address",
|
|
1326
|
+
internalType: "address",
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
name: "debt",
|
|
1330
|
+
type: "uint256",
|
|
1331
|
+
internalType: "uint256",
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
name: "cumulativeIndexLastUpdate",
|
|
1335
|
+
type: "uint256",
|
|
1336
|
+
internalType: "uint256",
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
name: "cumulativeQuotaInterest",
|
|
1340
|
+
type: "uint128",
|
|
1341
|
+
internalType: "uint128",
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
name: "accruedInterest",
|
|
1345
|
+
type: "uint256",
|
|
1346
|
+
internalType: "uint256",
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
name: "accruedFees",
|
|
1350
|
+
type: "uint256",
|
|
1351
|
+
internalType: "uint256",
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
name: "totalDebtUSD",
|
|
1355
|
+
type: "uint256",
|
|
1356
|
+
internalType: "uint256",
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
name: "totalValue",
|
|
1360
|
+
type: "uint256",
|
|
1361
|
+
internalType: "uint256",
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
name: "totalValueUSD",
|
|
1365
|
+
type: "uint256",
|
|
1366
|
+
internalType: "uint256",
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
name: "twvUSD",
|
|
1370
|
+
type: "uint256",
|
|
1371
|
+
internalType: "uint256",
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
name: "enabledTokensMask",
|
|
1375
|
+
type: "uint256",
|
|
1376
|
+
internalType: "uint256",
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
name: "healthFactor",
|
|
1380
|
+
type: "uint256",
|
|
1381
|
+
internalType: "uint256",
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
name: "baseBorrowRate",
|
|
1385
|
+
type: "uint256",
|
|
1386
|
+
internalType: "uint256",
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
name: "aggregatedBorrowRate",
|
|
1390
|
+
type: "uint256",
|
|
1391
|
+
internalType: "uint256",
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
name: "balances",
|
|
1395
|
+
type: "tuple[]",
|
|
1396
|
+
internalType: "struct TokenBalance[]",
|
|
1397
|
+
components: [
|
|
1398
|
+
{
|
|
1399
|
+
name: "token",
|
|
1400
|
+
type: "address",
|
|
1401
|
+
internalType: "address",
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
name: "balance",
|
|
1405
|
+
type: "uint256",
|
|
1406
|
+
internalType: "uint256",
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
name: "isForbidden",
|
|
1410
|
+
type: "bool",
|
|
1411
|
+
internalType: "bool",
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
name: "isEnabled",
|
|
1415
|
+
type: "bool",
|
|
1416
|
+
internalType: "bool",
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
name: "isQuoted",
|
|
1420
|
+
type: "bool",
|
|
1421
|
+
internalType: "bool",
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
name: "quota",
|
|
1425
|
+
type: "uint256",
|
|
1426
|
+
internalType: "uint256",
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
name: "quotaRate",
|
|
1430
|
+
type: "uint16",
|
|
1431
|
+
internalType: "uint16",
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
name: "quotaCumulativeIndexLU",
|
|
1435
|
+
type: "uint256",
|
|
1436
|
+
internalType: "uint256",
|
|
1437
|
+
},
|
|
1438
|
+
],
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
name: "since",
|
|
1442
|
+
type: "uint64",
|
|
1443
|
+
internalType: "uint64",
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
name: "cfVersion",
|
|
1447
|
+
type: "uint256",
|
|
1448
|
+
internalType: "uint256",
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
name: "expirationDate",
|
|
1452
|
+
type: "uint40",
|
|
1453
|
+
internalType: "uint40",
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
name: "activeBots",
|
|
1457
|
+
type: "address[]",
|
|
1458
|
+
internalType: "address[]",
|
|
1459
|
+
},
|
|
1460
|
+
],
|
|
1228
1461
|
},
|
|
1229
1462
|
],
|
|
1230
|
-
stateMutability: "
|
|
1231
|
-
type: "function",
|
|
1463
|
+
stateMutability: "nonpayable",
|
|
1232
1464
|
},
|
|
1233
1465
|
{
|
|
1466
|
+
type: "function",
|
|
1467
|
+
name: "getPoolData",
|
|
1234
1468
|
inputs: [
|
|
1235
1469
|
{
|
|
1236
|
-
internalType: "address",
|
|
1237
1470
|
name: "_pool",
|
|
1238
1471
|
type: "address",
|
|
1472
|
+
internalType: "address",
|
|
1239
1473
|
},
|
|
1240
1474
|
],
|
|
1241
|
-
name: "getPoolData",
|
|
1242
1475
|
outputs: [
|
|
1243
1476
|
{
|
|
1477
|
+
name: "",
|
|
1478
|
+
type: "tuple",
|
|
1479
|
+
internalType: "struct PoolData",
|
|
1244
1480
|
components: [
|
|
1245
1481
|
{
|
|
1246
|
-
internalType: "address",
|
|
1247
1482
|
name: "addr",
|
|
1248
1483
|
type: "address",
|
|
1484
|
+
internalType: "address",
|
|
1249
1485
|
},
|
|
1250
1486
|
{
|
|
1251
|
-
internalType: "address",
|
|
1252
1487
|
name: "underlying",
|
|
1253
1488
|
type: "address",
|
|
1489
|
+
internalType: "address",
|
|
1254
1490
|
},
|
|
1255
1491
|
{
|
|
1256
|
-
internalType: "address",
|
|
1257
1492
|
name: "dieselToken",
|
|
1258
1493
|
type: "address",
|
|
1494
|
+
internalType: "address",
|
|
1259
1495
|
},
|
|
1260
1496
|
{
|
|
1261
|
-
internalType: "string",
|
|
1262
1497
|
name: "symbol",
|
|
1263
1498
|
type: "string",
|
|
1499
|
+
internalType: "string",
|
|
1264
1500
|
},
|
|
1265
1501
|
{
|
|
1266
|
-
internalType: "string",
|
|
1267
1502
|
name: "name",
|
|
1268
1503
|
type: "string",
|
|
1504
|
+
internalType: "string",
|
|
1269
1505
|
},
|
|
1270
1506
|
{
|
|
1271
|
-
|
|
1272
|
-
name: "linearCumulativeIndex",
|
|
1507
|
+
name: "baseInterestIndex",
|
|
1273
1508
|
type: "uint256",
|
|
1509
|
+
internalType: "uint256",
|
|
1274
1510
|
},
|
|
1275
1511
|
{
|
|
1276
|
-
internalType: "uint256",
|
|
1277
1512
|
name: "availableLiquidity",
|
|
1278
1513
|
type: "uint256",
|
|
1514
|
+
internalType: "uint256",
|
|
1279
1515
|
},
|
|
1280
1516
|
{
|
|
1281
|
-
internalType: "uint256",
|
|
1282
1517
|
name: "expectedLiquidity",
|
|
1283
1518
|
type: "uint256",
|
|
1519
|
+
internalType: "uint256",
|
|
1284
1520
|
},
|
|
1285
1521
|
{
|
|
1286
|
-
internalType: "uint256",
|
|
1287
1522
|
name: "totalBorrowed",
|
|
1288
1523
|
type: "uint256",
|
|
1524
|
+
internalType: "uint256",
|
|
1289
1525
|
},
|
|
1290
1526
|
{
|
|
1291
|
-
internalType: "uint256",
|
|
1292
1527
|
name: "totalDebtLimit",
|
|
1293
1528
|
type: "uint256",
|
|
1529
|
+
internalType: "uint256",
|
|
1294
1530
|
},
|
|
1295
1531
|
{
|
|
1532
|
+
name: "creditManagerDebtParams",
|
|
1533
|
+
type: "tuple[]",
|
|
1534
|
+
internalType: "struct CreditManagerDebtParams[]",
|
|
1296
1535
|
components: [
|
|
1297
1536
|
{
|
|
1298
|
-
internalType: "address",
|
|
1299
1537
|
name: "creditManager",
|
|
1300
1538
|
type: "address",
|
|
1539
|
+
internalType: "address",
|
|
1301
1540
|
},
|
|
1302
1541
|
{
|
|
1303
|
-
internalType: "uint256",
|
|
1304
1542
|
name: "borrowed",
|
|
1305
1543
|
type: "uint256",
|
|
1544
|
+
internalType: "uint256",
|
|
1306
1545
|
},
|
|
1307
1546
|
{
|
|
1308
|
-
internalType: "uint256",
|
|
1309
1547
|
name: "limit",
|
|
1310
1548
|
type: "uint256",
|
|
1549
|
+
internalType: "uint256",
|
|
1311
1550
|
},
|
|
1312
1551
|
{
|
|
1313
|
-
internalType: "uint256",
|
|
1314
1552
|
name: "availableToBorrow",
|
|
1315
1553
|
type: "uint256",
|
|
1554
|
+
internalType: "uint256",
|
|
1316
1555
|
},
|
|
1317
1556
|
],
|
|
1318
|
-
internalType: "struct CreditManagerDebtParams[]",
|
|
1319
|
-
name: "creditManagerDebtParams",
|
|
1320
|
-
type: "tuple[]",
|
|
1321
1557
|
},
|
|
1322
1558
|
{
|
|
1323
|
-
internalType: "uint256",
|
|
1324
1559
|
name: "totalAssets",
|
|
1325
1560
|
type: "uint256",
|
|
1561
|
+
internalType: "uint256",
|
|
1326
1562
|
},
|
|
1327
1563
|
{
|
|
1328
|
-
internalType: "uint256",
|
|
1329
1564
|
name: "totalSupply",
|
|
1330
1565
|
type: "uint256",
|
|
1566
|
+
internalType: "uint256",
|
|
1331
1567
|
},
|
|
1332
1568
|
{
|
|
1333
|
-
internalType: "uint256",
|
|
1334
1569
|
name: "supplyRate",
|
|
1335
1570
|
type: "uint256",
|
|
1571
|
+
internalType: "uint256",
|
|
1336
1572
|
},
|
|
1337
1573
|
{
|
|
1338
|
-
internalType: "uint256",
|
|
1339
1574
|
name: "baseInterestRate",
|
|
1340
1575
|
type: "uint256",
|
|
1576
|
+
internalType: "uint256",
|
|
1341
1577
|
},
|
|
1342
1578
|
{
|
|
1343
|
-
internalType: "uint256",
|
|
1344
1579
|
name: "dieselRate_RAY",
|
|
1345
1580
|
type: "uint256",
|
|
1581
|
+
internalType: "uint256",
|
|
1346
1582
|
},
|
|
1347
1583
|
{
|
|
1348
|
-
internalType: "uint256",
|
|
1349
1584
|
name: "withdrawFee",
|
|
1350
1585
|
type: "uint256",
|
|
1586
|
+
internalType: "uint256",
|
|
1351
1587
|
},
|
|
1352
1588
|
{
|
|
1353
|
-
|
|
1354
|
-
name: "cumulativeIndex_RAY",
|
|
1589
|
+
name: "lastBaseInterestUpdate",
|
|
1355
1590
|
type: "uint256",
|
|
1591
|
+
internalType: "uint256",
|
|
1356
1592
|
},
|
|
1357
1593
|
{
|
|
1358
|
-
internalType: "uint256",
|
|
1359
1594
|
name: "baseInterestIndexLU",
|
|
1360
1595
|
type: "uint256",
|
|
1596
|
+
internalType: "uint256",
|
|
1361
1597
|
},
|
|
1362
1598
|
{
|
|
1363
|
-
internalType: "uint256",
|
|
1364
1599
|
name: "version",
|
|
1365
1600
|
type: "uint256",
|
|
1601
|
+
internalType: "uint256",
|
|
1366
1602
|
},
|
|
1367
1603
|
{
|
|
1368
|
-
internalType: "address",
|
|
1369
1604
|
name: "poolQuotaKeeper",
|
|
1370
1605
|
type: "address",
|
|
1606
|
+
internalType: "address",
|
|
1371
1607
|
},
|
|
1372
1608
|
{
|
|
1373
|
-
internalType: "address",
|
|
1374
1609
|
name: "gauge",
|
|
1375
1610
|
type: "address",
|
|
1611
|
+
internalType: "address",
|
|
1376
1612
|
},
|
|
1377
1613
|
{
|
|
1614
|
+
name: "quotas",
|
|
1615
|
+
type: "tuple[]",
|
|
1616
|
+
internalType: "struct QuotaInfo[]",
|
|
1378
1617
|
components: [
|
|
1379
1618
|
{
|
|
1380
|
-
internalType: "address",
|
|
1381
1619
|
name: "token",
|
|
1382
1620
|
type: "address",
|
|
1621
|
+
internalType: "address",
|
|
1383
1622
|
},
|
|
1384
1623
|
{
|
|
1385
|
-
internalType: "uint16",
|
|
1386
1624
|
name: "rate",
|
|
1387
1625
|
type: "uint16",
|
|
1626
|
+
internalType: "uint16",
|
|
1388
1627
|
},
|
|
1389
1628
|
{
|
|
1390
|
-
internalType: "uint16",
|
|
1391
1629
|
name: "quotaIncreaseFee",
|
|
1392
1630
|
type: "uint16",
|
|
1631
|
+
internalType: "uint16",
|
|
1393
1632
|
},
|
|
1394
1633
|
{
|
|
1395
|
-
internalType: "uint96",
|
|
1396
1634
|
name: "totalQuoted",
|
|
1397
1635
|
type: "uint96",
|
|
1636
|
+
internalType: "uint96",
|
|
1398
1637
|
},
|
|
1399
1638
|
{
|
|
1400
|
-
internalType: "uint96",
|
|
1401
1639
|
name: "limit",
|
|
1402
1640
|
type: "uint96",
|
|
1641
|
+
internalType: "uint96",
|
|
1403
1642
|
},
|
|
1404
1643
|
{
|
|
1405
|
-
internalType: "bool",
|
|
1406
1644
|
name: "isActive",
|
|
1407
1645
|
type: "bool",
|
|
1646
|
+
internalType: "bool",
|
|
1408
1647
|
},
|
|
1409
1648
|
],
|
|
1410
|
-
internalType: "struct QuotaInfo[]",
|
|
1411
|
-
name: "quotas",
|
|
1412
|
-
type: "tuple[]",
|
|
1413
1649
|
},
|
|
1414
1650
|
{
|
|
1651
|
+
name: "zappers",
|
|
1652
|
+
type: "tuple[]",
|
|
1653
|
+
internalType: "struct ZapperInfo[]",
|
|
1415
1654
|
components: [
|
|
1416
1655
|
{
|
|
1417
|
-
internalType: "address",
|
|
1418
1656
|
name: "zapper",
|
|
1419
1657
|
type: "address",
|
|
1658
|
+
internalType: "address",
|
|
1420
1659
|
},
|
|
1421
1660
|
{
|
|
1422
|
-
internalType: "address",
|
|
1423
1661
|
name: "tokenIn",
|
|
1424
1662
|
type: "address",
|
|
1663
|
+
internalType: "address",
|
|
1425
1664
|
},
|
|
1426
1665
|
{
|
|
1427
|
-
internalType: "address",
|
|
1428
1666
|
name: "tokenOut",
|
|
1429
1667
|
type: "address",
|
|
1668
|
+
internalType: "address",
|
|
1430
1669
|
},
|
|
1431
1670
|
],
|
|
1432
|
-
internalType: "struct ZapperInfo[]",
|
|
1433
|
-
name: "zappers",
|
|
1434
|
-
type: "tuple[]",
|
|
1435
1671
|
},
|
|
1436
1672
|
{
|
|
1673
|
+
name: "lirm",
|
|
1674
|
+
type: "tuple",
|
|
1675
|
+
internalType: "struct LinearModel",
|
|
1437
1676
|
components: [
|
|
1438
1677
|
{
|
|
1439
|
-
internalType: "address",
|
|
1440
1678
|
name: "interestModel",
|
|
1441
1679
|
type: "address",
|
|
1680
|
+
internalType: "address",
|
|
1442
1681
|
},
|
|
1443
1682
|
{
|
|
1444
|
-
internalType: "uint256",
|
|
1445
1683
|
name: "version",
|
|
1446
1684
|
type: "uint256",
|
|
1685
|
+
internalType: "uint256",
|
|
1447
1686
|
},
|
|
1448
1687
|
{
|
|
1449
|
-
internalType: "uint16",
|
|
1450
1688
|
name: "U_1",
|
|
1451
1689
|
type: "uint16",
|
|
1690
|
+
internalType: "uint16",
|
|
1452
1691
|
},
|
|
1453
1692
|
{
|
|
1454
|
-
internalType: "uint16",
|
|
1455
1693
|
name: "U_2",
|
|
1456
1694
|
type: "uint16",
|
|
1695
|
+
internalType: "uint16",
|
|
1457
1696
|
},
|
|
1458
1697
|
{
|
|
1459
|
-
internalType: "uint16",
|
|
1460
1698
|
name: "R_base",
|
|
1461
1699
|
type: "uint16",
|
|
1700
|
+
internalType: "uint16",
|
|
1462
1701
|
},
|
|
1463
1702
|
{
|
|
1464
|
-
internalType: "uint16",
|
|
1465
1703
|
name: "R_slope1",
|
|
1466
1704
|
type: "uint16",
|
|
1705
|
+
internalType: "uint16",
|
|
1467
1706
|
},
|
|
1468
1707
|
{
|
|
1469
|
-
internalType: "uint16",
|
|
1470
1708
|
name: "R_slope2",
|
|
1471
1709
|
type: "uint16",
|
|
1710
|
+
internalType: "uint16",
|
|
1472
1711
|
},
|
|
1473
1712
|
{
|
|
1474
|
-
internalType: "uint16",
|
|
1475
1713
|
name: "R_slope3",
|
|
1476
1714
|
type: "uint16",
|
|
1715
|
+
internalType: "uint16",
|
|
1477
1716
|
},
|
|
1478
1717
|
{
|
|
1479
|
-
internalType: "bool",
|
|
1480
1718
|
name: "isBorrowingMoreU2Forbidden",
|
|
1481
1719
|
type: "bool",
|
|
1720
|
+
internalType: "bool",
|
|
1482
1721
|
},
|
|
1483
1722
|
],
|
|
1484
|
-
internalType: "struct LinearModel",
|
|
1485
|
-
name: "lirm",
|
|
1486
|
-
type: "tuple",
|
|
1487
1723
|
},
|
|
1488
1724
|
{
|
|
1489
|
-
internalType: "bool",
|
|
1490
1725
|
name: "isPaused",
|
|
1491
1726
|
type: "bool",
|
|
1727
|
+
internalType: "bool",
|
|
1492
1728
|
},
|
|
1493
1729
|
],
|
|
1494
|
-
internalType: "struct PoolData",
|
|
1495
|
-
name: "",
|
|
1496
|
-
type: "tuple",
|
|
1497
1730
|
},
|
|
1498
1731
|
],
|
|
1499
1732
|
stateMutability: "view",
|
|
1500
|
-
type: "function",
|
|
1501
1733
|
},
|
|
1502
1734
|
{
|
|
1503
|
-
|
|
1735
|
+
type: "function",
|
|
1504
1736
|
name: "getPoolsV3List",
|
|
1737
|
+
inputs: [],
|
|
1505
1738
|
outputs: [
|
|
1506
1739
|
{
|
|
1740
|
+
name: "",
|
|
1741
|
+
type: "tuple[]",
|
|
1742
|
+
internalType: "struct PoolData[]",
|
|
1507
1743
|
components: [
|
|
1508
1744
|
{
|
|
1509
|
-
internalType: "address",
|
|
1510
1745
|
name: "addr",
|
|
1511
1746
|
type: "address",
|
|
1747
|
+
internalType: "address",
|
|
1512
1748
|
},
|
|
1513
1749
|
{
|
|
1514
|
-
internalType: "address",
|
|
1515
1750
|
name: "underlying",
|
|
1516
1751
|
type: "address",
|
|
1752
|
+
internalType: "address",
|
|
1517
1753
|
},
|
|
1518
1754
|
{
|
|
1519
|
-
internalType: "address",
|
|
1520
1755
|
name: "dieselToken",
|
|
1521
1756
|
type: "address",
|
|
1757
|
+
internalType: "address",
|
|
1522
1758
|
},
|
|
1523
1759
|
{
|
|
1524
|
-
internalType: "string",
|
|
1525
1760
|
name: "symbol",
|
|
1526
1761
|
type: "string",
|
|
1762
|
+
internalType: "string",
|
|
1527
1763
|
},
|
|
1528
1764
|
{
|
|
1529
|
-
internalType: "string",
|
|
1530
1765
|
name: "name",
|
|
1531
1766
|
type: "string",
|
|
1767
|
+
internalType: "string",
|
|
1532
1768
|
},
|
|
1533
1769
|
{
|
|
1534
|
-
|
|
1535
|
-
name: "linearCumulativeIndex",
|
|
1770
|
+
name: "baseInterestIndex",
|
|
1536
1771
|
type: "uint256",
|
|
1772
|
+
internalType: "uint256",
|
|
1537
1773
|
},
|
|
1538
1774
|
{
|
|
1539
|
-
internalType: "uint256",
|
|
1540
1775
|
name: "availableLiquidity",
|
|
1541
1776
|
type: "uint256",
|
|
1777
|
+
internalType: "uint256",
|
|
1542
1778
|
},
|
|
1543
1779
|
{
|
|
1544
|
-
internalType: "uint256",
|
|
1545
1780
|
name: "expectedLiquidity",
|
|
1546
1781
|
type: "uint256",
|
|
1782
|
+
internalType: "uint256",
|
|
1547
1783
|
},
|
|
1548
1784
|
{
|
|
1549
|
-
internalType: "uint256",
|
|
1550
1785
|
name: "totalBorrowed",
|
|
1551
1786
|
type: "uint256",
|
|
1787
|
+
internalType: "uint256",
|
|
1552
1788
|
},
|
|
1553
1789
|
{
|
|
1554
|
-
internalType: "uint256",
|
|
1555
1790
|
name: "totalDebtLimit",
|
|
1556
1791
|
type: "uint256",
|
|
1792
|
+
internalType: "uint256",
|
|
1557
1793
|
},
|
|
1558
1794
|
{
|
|
1795
|
+
name: "creditManagerDebtParams",
|
|
1796
|
+
type: "tuple[]",
|
|
1797
|
+
internalType: "struct CreditManagerDebtParams[]",
|
|
1559
1798
|
components: [
|
|
1560
1799
|
{
|
|
1561
|
-
internalType: "address",
|
|
1562
1800
|
name: "creditManager",
|
|
1563
1801
|
type: "address",
|
|
1802
|
+
internalType: "address",
|
|
1564
1803
|
},
|
|
1565
1804
|
{
|
|
1566
|
-
internalType: "uint256",
|
|
1567
1805
|
name: "borrowed",
|
|
1568
1806
|
type: "uint256",
|
|
1807
|
+
internalType: "uint256",
|
|
1569
1808
|
},
|
|
1570
1809
|
{
|
|
1571
|
-
internalType: "uint256",
|
|
1572
1810
|
name: "limit",
|
|
1573
1811
|
type: "uint256",
|
|
1812
|
+
internalType: "uint256",
|
|
1574
1813
|
},
|
|
1575
1814
|
{
|
|
1576
|
-
internalType: "uint256",
|
|
1577
1815
|
name: "availableToBorrow",
|
|
1578
1816
|
type: "uint256",
|
|
1817
|
+
internalType: "uint256",
|
|
1579
1818
|
},
|
|
1580
1819
|
],
|
|
1581
|
-
internalType: "struct CreditManagerDebtParams[]",
|
|
1582
|
-
name: "creditManagerDebtParams",
|
|
1583
|
-
type: "tuple[]",
|
|
1584
1820
|
},
|
|
1585
1821
|
{
|
|
1586
|
-
internalType: "uint256",
|
|
1587
1822
|
name: "totalAssets",
|
|
1588
1823
|
type: "uint256",
|
|
1824
|
+
internalType: "uint256",
|
|
1589
1825
|
},
|
|
1590
1826
|
{
|
|
1591
|
-
internalType: "uint256",
|
|
1592
1827
|
name: "totalSupply",
|
|
1593
1828
|
type: "uint256",
|
|
1829
|
+
internalType: "uint256",
|
|
1594
1830
|
},
|
|
1595
1831
|
{
|
|
1596
|
-
internalType: "uint256",
|
|
1597
1832
|
name: "supplyRate",
|
|
1598
1833
|
type: "uint256",
|
|
1834
|
+
internalType: "uint256",
|
|
1599
1835
|
},
|
|
1600
1836
|
{
|
|
1601
|
-
internalType: "uint256",
|
|
1602
1837
|
name: "baseInterestRate",
|
|
1603
1838
|
type: "uint256",
|
|
1839
|
+
internalType: "uint256",
|
|
1604
1840
|
},
|
|
1605
1841
|
{
|
|
1606
|
-
internalType: "uint256",
|
|
1607
1842
|
name: "dieselRate_RAY",
|
|
1608
1843
|
type: "uint256",
|
|
1844
|
+
internalType: "uint256",
|
|
1609
1845
|
},
|
|
1610
1846
|
{
|
|
1611
|
-
internalType: "uint256",
|
|
1612
1847
|
name: "withdrawFee",
|
|
1613
1848
|
type: "uint256",
|
|
1849
|
+
internalType: "uint256",
|
|
1614
1850
|
},
|
|
1615
1851
|
{
|
|
1616
|
-
|
|
1617
|
-
name: "cumulativeIndex_RAY",
|
|
1852
|
+
name: "lastBaseInterestUpdate",
|
|
1618
1853
|
type: "uint256",
|
|
1854
|
+
internalType: "uint256",
|
|
1619
1855
|
},
|
|
1620
1856
|
{
|
|
1621
|
-
internalType: "uint256",
|
|
1622
1857
|
name: "baseInterestIndexLU",
|
|
1623
1858
|
type: "uint256",
|
|
1859
|
+
internalType: "uint256",
|
|
1624
1860
|
},
|
|
1625
1861
|
{
|
|
1626
|
-
internalType: "uint256",
|
|
1627
1862
|
name: "version",
|
|
1628
1863
|
type: "uint256",
|
|
1864
|
+
internalType: "uint256",
|
|
1629
1865
|
},
|
|
1630
1866
|
{
|
|
1631
|
-
internalType: "address",
|
|
1632
1867
|
name: "poolQuotaKeeper",
|
|
1633
1868
|
type: "address",
|
|
1869
|
+
internalType: "address",
|
|
1634
1870
|
},
|
|
1635
1871
|
{
|
|
1636
|
-
internalType: "address",
|
|
1637
1872
|
name: "gauge",
|
|
1638
1873
|
type: "address",
|
|
1874
|
+
internalType: "address",
|
|
1639
1875
|
},
|
|
1640
1876
|
{
|
|
1877
|
+
name: "quotas",
|
|
1878
|
+
type: "tuple[]",
|
|
1879
|
+
internalType: "struct QuotaInfo[]",
|
|
1641
1880
|
components: [
|
|
1642
1881
|
{
|
|
1643
|
-
internalType: "address",
|
|
1644
1882
|
name: "token",
|
|
1645
1883
|
type: "address",
|
|
1884
|
+
internalType: "address",
|
|
1646
1885
|
},
|
|
1647
1886
|
{
|
|
1648
|
-
internalType: "uint16",
|
|
1649
1887
|
name: "rate",
|
|
1650
1888
|
type: "uint16",
|
|
1889
|
+
internalType: "uint16",
|
|
1651
1890
|
},
|
|
1652
1891
|
{
|
|
1653
|
-
internalType: "uint16",
|
|
1654
1892
|
name: "quotaIncreaseFee",
|
|
1655
1893
|
type: "uint16",
|
|
1894
|
+
internalType: "uint16",
|
|
1656
1895
|
},
|
|
1657
1896
|
{
|
|
1658
|
-
internalType: "uint96",
|
|
1659
1897
|
name: "totalQuoted",
|
|
1660
1898
|
type: "uint96",
|
|
1899
|
+
internalType: "uint96",
|
|
1661
1900
|
},
|
|
1662
1901
|
{
|
|
1663
|
-
internalType: "uint96",
|
|
1664
1902
|
name: "limit",
|
|
1665
1903
|
type: "uint96",
|
|
1904
|
+
internalType: "uint96",
|
|
1666
1905
|
},
|
|
1667
1906
|
{
|
|
1668
|
-
internalType: "bool",
|
|
1669
1907
|
name: "isActive",
|
|
1670
1908
|
type: "bool",
|
|
1909
|
+
internalType: "bool",
|
|
1671
1910
|
},
|
|
1672
1911
|
],
|
|
1673
|
-
internalType: "struct QuotaInfo[]",
|
|
1674
|
-
name: "quotas",
|
|
1675
|
-
type: "tuple[]",
|
|
1676
1912
|
},
|
|
1677
1913
|
{
|
|
1914
|
+
name: "zappers",
|
|
1915
|
+
type: "tuple[]",
|
|
1916
|
+
internalType: "struct ZapperInfo[]",
|
|
1678
1917
|
components: [
|
|
1679
1918
|
{
|
|
1680
|
-
internalType: "address",
|
|
1681
1919
|
name: "zapper",
|
|
1682
1920
|
type: "address",
|
|
1921
|
+
internalType: "address",
|
|
1683
1922
|
},
|
|
1684
1923
|
{
|
|
1685
|
-
internalType: "address",
|
|
1686
1924
|
name: "tokenIn",
|
|
1687
1925
|
type: "address",
|
|
1926
|
+
internalType: "address",
|
|
1688
1927
|
},
|
|
1689
1928
|
{
|
|
1690
|
-
internalType: "address",
|
|
1691
1929
|
name: "tokenOut",
|
|
1692
1930
|
type: "address",
|
|
1931
|
+
internalType: "address",
|
|
1693
1932
|
},
|
|
1694
1933
|
],
|
|
1695
|
-
internalType: "struct ZapperInfo[]",
|
|
1696
|
-
name: "zappers",
|
|
1697
|
-
type: "tuple[]",
|
|
1698
1934
|
},
|
|
1699
1935
|
{
|
|
1936
|
+
name: "lirm",
|
|
1937
|
+
type: "tuple",
|
|
1938
|
+
internalType: "struct LinearModel",
|
|
1700
1939
|
components: [
|
|
1701
1940
|
{
|
|
1702
|
-
internalType: "address",
|
|
1703
1941
|
name: "interestModel",
|
|
1704
1942
|
type: "address",
|
|
1943
|
+
internalType: "address",
|
|
1705
1944
|
},
|
|
1706
1945
|
{
|
|
1707
|
-
internalType: "uint256",
|
|
1708
1946
|
name: "version",
|
|
1709
1947
|
type: "uint256",
|
|
1948
|
+
internalType: "uint256",
|
|
1710
1949
|
},
|
|
1711
1950
|
{
|
|
1712
|
-
internalType: "uint16",
|
|
1713
1951
|
name: "U_1",
|
|
1714
1952
|
type: "uint16",
|
|
1953
|
+
internalType: "uint16",
|
|
1715
1954
|
},
|
|
1716
1955
|
{
|
|
1717
|
-
internalType: "uint16",
|
|
1718
1956
|
name: "U_2",
|
|
1719
1957
|
type: "uint16",
|
|
1958
|
+
internalType: "uint16",
|
|
1720
1959
|
},
|
|
1721
1960
|
{
|
|
1722
|
-
internalType: "uint16",
|
|
1723
1961
|
name: "R_base",
|
|
1724
1962
|
type: "uint16",
|
|
1963
|
+
internalType: "uint16",
|
|
1725
1964
|
},
|
|
1726
1965
|
{
|
|
1727
|
-
internalType: "uint16",
|
|
1728
1966
|
name: "R_slope1",
|
|
1729
1967
|
type: "uint16",
|
|
1968
|
+
internalType: "uint16",
|
|
1730
1969
|
},
|
|
1731
1970
|
{
|
|
1732
|
-
internalType: "uint16",
|
|
1733
1971
|
name: "R_slope2",
|
|
1734
1972
|
type: "uint16",
|
|
1973
|
+
internalType: "uint16",
|
|
1735
1974
|
},
|
|
1736
1975
|
{
|
|
1737
|
-
internalType: "uint16",
|
|
1738
1976
|
name: "R_slope3",
|
|
1739
1977
|
type: "uint16",
|
|
1978
|
+
internalType: "uint16",
|
|
1740
1979
|
},
|
|
1741
1980
|
{
|
|
1742
|
-
internalType: "bool",
|
|
1743
1981
|
name: "isBorrowingMoreU2Forbidden",
|
|
1744
1982
|
type: "bool",
|
|
1983
|
+
internalType: "bool",
|
|
1745
1984
|
},
|
|
1746
1985
|
],
|
|
1747
|
-
internalType: "struct LinearModel",
|
|
1748
|
-
name: "lirm",
|
|
1749
|
-
type: "tuple",
|
|
1750
1986
|
},
|
|
1751
1987
|
{
|
|
1752
|
-
internalType: "bool",
|
|
1753
1988
|
name: "isPaused",
|
|
1754
1989
|
type: "bool",
|
|
1990
|
+
internalType: "bool",
|
|
1755
1991
|
},
|
|
1756
1992
|
],
|
|
1757
|
-
internalType: "struct PoolData[]",
|
|
1758
|
-
name: "",
|
|
1759
|
-
type: "tuple[]",
|
|
1760
1993
|
},
|
|
1761
1994
|
],
|
|
1762
1995
|
stateMutability: "view",
|
|
1763
|
-
type: "function",
|
|
1764
1996
|
},
|
|
1765
1997
|
{
|
|
1766
|
-
|
|
1998
|
+
type: "function",
|
|
1767
1999
|
name: "version",
|
|
2000
|
+
inputs: [],
|
|
1768
2001
|
outputs: [
|
|
1769
2002
|
{
|
|
1770
|
-
internalType: "uint256",
|
|
1771
2003
|
name: "",
|
|
1772
2004
|
type: "uint256",
|
|
2005
|
+
internalType: "uint256",
|
|
1773
2006
|
},
|
|
1774
2007
|
],
|
|
1775
2008
|
stateMutability: "view",
|
|
1776
|
-
type: "function",
|
|
1777
2009
|
},
|
|
1778
2010
|
];
|
|
1779
|
-
class
|
|
2011
|
+
class IDataCompressorV3__factory {
|
|
1780
2012
|
static abi = _abi;
|
|
1781
2013
|
static createInterface() {
|
|
1782
2014
|
return new ethers_1.utils.Interface(_abi);
|
|
@@ -1785,4 +2017,4 @@ class IDataCompressorV3_00__factory {
|
|
|
1785
2017
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
1786
2018
|
}
|
|
1787
2019
|
}
|
|
1788
|
-
exports.
|
|
2020
|
+
exports.IDataCompressorV3__factory = IDataCompressorV3__factory;
|