@gearbox-protocol/sdk 3.0.0-next.7 → 3.0.0-next.70
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 +29 -4
- package/lib/apy/curveAPY.js +2 -1
- package/lib/apy/index.d.ts +2 -2
- package/lib/apy/yearnAPY.js +1 -1
- package/lib/core/assets.d.ts +4 -4
- package/lib/core/assets.js +28 -17
- package/lib/core/creditAccount.d.ts +32 -8
- package/lib/core/creditAccount.js +101 -44
- package/lib/core/creditAccount.spec.js +693 -10
- package/lib/core/creditManager.d.ts +12 -3
- package/lib/core/creditManager.js +43 -10
- package/lib/core/events.js +14 -14
- 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.d.ts +1 -0
- package/lib/core/gaugeMath.spec.js +388 -0
- package/lib/core/{pool/data.d.ts → pool.d.ts} +17 -10
- package/lib/core/{pool/data.js → pool.js} +66 -24
- package/lib/core/strategy.d.ts +4 -3
- package/lib/core/strategy.js +15 -14
- package/lib/core/strategy.spec.js +68 -3
- package/lib/core/trade.d.ts +12 -29
- package/lib/core/trade.js +33 -82
- package/lib/core/transactions.d.ts +65 -3
- package/lib/core/transactions.js +162 -105
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/parsers/abstractParser.js +1 -2
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +10 -8
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
- package/lib/parsers/convexBoosterAdapterParser.js +6 -6
- package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
- package/lib/parsers/creditFacadeParser.d.ts +2 -1
- package/lib/parsers/creditFacadeParser.js +40 -5
- package/lib/parsers/creditFacadeParser.spec.js +3 -4
- package/lib/parsers/curveAdapterParser.js +10 -11
- package/lib/parsers/curveAdapterParser.spec.js +6 -2
- package/lib/parsers/lidoAdapterParser.js +3 -2
- package/lib/parsers/lidoAdapterParser.spec.js +2 -2
- package/lib/parsers/txParser.d.ts +1 -1
- package/lib/parsers/txParser.js +9 -3
- package/lib/parsers/uniV2AdapterParser.js +5 -4
- package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
- package/lib/parsers/uniV3AdapterParser.js +9 -7
- package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
- package/lib/parsers/wstETHAdapterParser.js +6 -4
- package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnV2AdapterParser.js +13 -3
- package/lib/pathfinder/core.d.ts +8 -9
- package/lib/pathfinder/pathOptions.d.ts +2 -1
- package/lib/pathfinder/pathOptions.js +20 -1
- package/lib/pathfinder/pathOptions.spec.js +2 -2
- package/lib/pathfinder/pathfinder.d.ts +38 -10
- package/lib/pathfinder/pathfinder.js +53 -34
- package/lib/pathfinder/pathfinder.spec.js +7 -3
- package/lib/payload/creditAccount.d.ts +3 -4
- package/lib/payload/gauge.d.ts +12 -0
- package/lib/payload/pool.d.ts +6 -1
- package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
- package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
- package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts} +6 -18
- package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
- package/lib/types/IBotListV3.sol/IBotListV3.d.ts +286 -0
- package/lib/types/IBotListV3.sol/IBotListV3Events.d.ts +103 -0
- package/lib/types/IBotListV3.sol/index.d.ts +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
- package/lib/types/IContractsRegister.sol/IContractsRegister.d.ts +128 -0
- package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.d.ts +50 -0
- package/lib/types/IContractsRegister.sol/index.d.ts +2 -0
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.d.ts +504 -0
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.d.ts +82 -0
- package/lib/types/IControllerTimelockV3.sol/index.d.ts +2 -0
- package/lib/types/IConvexToken.d.ts +9 -1
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +46 -30
- package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +40 -21
- package/lib/types/IConvexV1BoosterAdapter.sol/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/ICreditConfiguratorV3.sol/ICreditConfiguratorV3.d.ts +716 -0
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3.js +2 -0
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.d.ts +275 -0
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.js +2 -0
- package/lib/types/ICreditConfiguratorV3.sol/index.d.ts +2 -0
- package/lib/types/ICreditConfiguratorV3.sol/index.js +2 -0
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +201 -94
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +31 -33
- package/lib/types/ICreditFacadeV3Multicall.d.ts +91 -60
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +360 -98
- package/lib/types/ICurveV1Adapter.d.ts +41 -105
- package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
- package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
- package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
- package/lib/types/IDataCompressorV2_10.d.ts +44 -36
- package/lib/types/IDataCompressorV3_00.d.ts +141 -37
- 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/{draft-IERC20Permit.sol/IERC20Permit.d.ts → IERC20Permit.d.ts} +1 -1
- package/lib/types/IERC20Permit.js +2 -0
- package/lib/types/IERC20ZapperDeposits.d.ts +117 -0
- package/lib/types/IERC20ZapperDeposits.js +2 -0
- package/lib/types/IERC4626Adapter.d.ts +238 -0
- package/lib/types/IERC4626Adapter.js +2 -0
- package/lib/types/IERC721.d.ts +220 -0
- package/lib/types/IERC721.js +2 -0
- package/lib/types/IERC721Metadata.d.ts +244 -0
- package/lib/types/IERC721Metadata.js +2 -0
- package/lib/types/IETHZapperDeposits.d.ts +66 -0
- package/lib/types/IETHZapperDeposits.js +2 -0
- package/lib/types/IGasPricer.d.ts +44 -0
- package/lib/types/IGasPricer.js +2 -0
- package/lib/types/IGaugeV3.sol/IGaugeV3.d.ts +366 -0
- package/lib/types/IGaugeV3.sol/IGaugeV3.js +2 -0
- package/lib/types/IGaugeV3.sol/IGaugeV3Events.d.ts +114 -0
- package/lib/types/IGaugeV3.sol/IGaugeV3Events.js +2 -0
- package/lib/types/IGaugeV3.sol/index.d.ts +2 -0
- package/lib/types/IGaugeV3.sol/index.js +2 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.js +2 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.js +2 -0
- package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/IGearStakingV3.sol/index.js +2 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.d.ts +285 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.js +2 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.d.ts +54 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.js +2 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.d.ts +27 -0
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.js +2 -0
- package/lib/types/ILPPriceFeed.sol/index.d.ts +3 -0
- package/lib/types/ILPPriceFeed.sol/index.js +2 -0
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +13 -48
- package/lib/types/ILidoV1Adapter.js +2 -0
- package/lib/types/ILinearInterestRateModelV3.d.ts +120 -0
- package/lib/types/ILinearInterestRateModelV3.js +2 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.d.ts +473 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.js +2 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.d.ts +113 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.js +2 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
- package/lib/types/IPoolQuotaKeeperV3.sol/index.js +2 -0
- package/lib/types/IPoolV3.sol/IPoolV3.d.ts +43 -11
- package/lib/types/IPoolV3.sol/index.d.ts +0 -1
- 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/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/IYearnV2Adapter.d.ts +22 -22
- package/lib/types/IZapper.d.ts +125 -0
- package/lib/types/IZapper.js +2 -0
- 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/factories/AddressProvider__factory.d.ts +1 -1
- package/lib/types/factories/AddressProvider__factory.js +1 -1
- package/lib/types/factories/Claimable__factory.d.ts +1 -1
- package/lib/types/factories/Claimable__factory.js +1 -1
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +158 -0
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +215 -0
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
- package/lib/types/factories/{ZapperBase__factory.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js} +54 -31
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
- package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
- package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js} +4 -4
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.d.ts +103 -0
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +138 -0
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +315 -0
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +416 -0
- package/lib/types/factories/IBotListV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IBotListV3.sol/index.js +10 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js} +6 -8
- 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 +10 -0
- package/lib/types/factories/IConvexToken__factory.js +13 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +38 -6
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +48 -6
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +38 -0
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +26 -3
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +31 -2
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +273 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +357 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +605 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +785 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.d.ts +2 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.js +10 -0
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +0 -4
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +0 -5
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +19 -24
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +21 -27
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +151 -72
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +189 -85
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +77 -43
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +96 -54
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +339 -147
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +427 -180
- package/lib/types/factories/ICurveV1Adapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1Adapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +110 -54
- package/lib/types/factories/IDataCompressorV2_10__factory.js +138 -68
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +379 -79
- package/lib/types/factories/IDataCompressorV3_00__factory.js +481 -100
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +38 -0
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +58 -0
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +24 -0
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +39 -0
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts → IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts} +190 -180
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js → IDegenNFTV2.sol/IDegenNFTV2__factory.js} +212 -195
- package/lib/types/factories/IDegenNFTV2.sol/index.d.ts +3 -0
- package/lib/types/factories/IDegenNFTV2.sol/index.js +12 -0
- package/lib/types/factories/IERC165__factory.d.ts +22 -0
- package/lib/types/factories/IERC165__factory.js +38 -0
- package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.d.ts → IERC20Permit__factory.d.ts} +1 -1
- package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
- package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
- package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
- package/lib/types/factories/IERC721Metadata__factory.d.ts +262 -0
- package/lib/types/factories/IERC721Metadata__factory.js +349 -0
- package/lib/types/factories/IERC721__factory.d.ts +228 -0
- package/lib/types/factories/IERC721__factory.js +304 -0
- package/lib/types/factories/IETHZapperDeposits__factory.d.ts +40 -0
- package/lib/types/factories/{AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.js → IETHZapperDeposits__factory.js} +18 -25
- package/lib/types/factories/IGasPricer__factory.d.ts +22 -0
- package/lib/types/factories/IGasPricer__factory.js +38 -0
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +118 -0
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +157 -0
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +342 -0
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +448 -0
- package/lib/types/factories/IGaugeV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IGaugeV3.sol/index.js +10 -0
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts → IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts} +33 -63
- package/lib/types/factories/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js → IGearStakingV3.sol/IGearStakingV3Events__factory.js} +34 -70
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +504 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +660 -0
- package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +33 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +51 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +24 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +39 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +257 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +339 -0
- package/lib/types/factories/ILPPriceFeed.sol/index.d.ts +3 -0
- package/lib/types/factories/ILPPriceFeed.sol/index.js +12 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +7 -37
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +8 -46
- package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +98 -0
- package/lib/types/factories/ILinearInterestRateModelV3__factory.js +136 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +103 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +140 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +441 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +580 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.js +10 -0
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +62 -14
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +79 -17
- package/lib/types/factories/IPoolV3.sol/index.d.ts +0 -1
- package/lib/types/factories/IPoolV3.sol/index.js +1 -3
- package/lib/types/factories/{IPoolV3.sol/IPoolBase__factory.d.ts → IPriceFeed.sol/IPriceFeed__factory.d.ts} +39 -35
- package/lib/types/factories/{IPoolV3.sol/IPoolBase__factory.js → IPriceFeed.sol/IPriceFeed__factory.js} +40 -35
- 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/{IAToken__factory.d.ts → IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts} +98 -99
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +267 -0
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.d.ts +183 -0
- package/lib/types/factories/{IAToken__factory.js → IPriceOracle.sol/IPriceOracleV2__factory.js} +94 -112
- package/lib/types/factories/IPriceOracle.sol/index.d.ts +4 -0
- package/lib/types/factories/IPriceOracle.sol/index.js +14 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +78 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +106 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +326 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +433 -0
- package/lib/types/factories/IPriceOracleV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IPriceOracleV3.sol/index.js +10 -0
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +5 -1
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +6 -1
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +12 -4
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +14 -4
- package/lib/types/factories/IVotingContractV3__factory.d.ts +44 -0
- package/lib/types/factories/IVotingContractV3__factory.js +65 -0
- package/lib/types/factories/IYearnV2Adapter__factory.d.ts +21 -13
- package/lib/types/factories/IYearnV2Adapter__factory.js +27 -15
- package/lib/types/factories/IZapperRegister__factory.d.ts +42 -0
- package/lib/types/factories/IZapperRegister__factory.js +64 -0
- package/lib/types/factories/{WERC20ZapperBase__factory.d.ts → IZapper__factory.d.ts} +52 -64
- package/lib/types/factories/{WERC20ZapperBase__factory.js → IZapper__factory.js} +58 -74
- package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +12 -4
- package/lib/types/factories/IwstETHV1Adapter__factory.js +16 -4
- package/lib/types/factories/SafeERC20__factory.d.ts +1 -1
- package/lib/types/factories/SafeERC20__factory.js +1 -1
- package/lib/types/factories/index.d.ts +32 -14
- package/lib/types/factories/index.js +49 -26
- package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +75 -6
- package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +96 -6
- package/lib/types/factories/interfaces/index.d.ts +1 -0
- package/lib/types/factories/interfaces/index.js +8 -0
- package/lib/types/index.d.ts +141 -46
- package/lib/types/index.js +109 -38
- package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +48 -35
- package/lib/types/interfaces/IRouter.js +2 -0
- package/lib/types/interfaces/index.d.ts +1 -0
- package/lib/types/interfaces/index.js +2 -0
- package/lib/utils/formatter.d.ts +0 -3
- package/lib/utils/formatter.js +1 -67
- package/lib/utils/math.d.ts +2 -0
- package/lib/utils/math.js +2 -0
- package/lib/utils/types.d.ts +1 -0
- package/lib/watchers/creditAccountWatcher.d.ts +3 -2
- package/lib/watchers/creditAccountWatcher.js +19 -13
- package/lib/watchers/creditAccountWatcher.spec.js +18 -18
- package/lib/watchers/creditManagerWatcher.d.ts +5 -3
- package/lib/watchers/creditManagerWatcher.js +32 -10
- package/lib/watchers/creditManagerWatcher.spec.js +12 -4
- package/package.json +10 -9
- package/contracts/IRouter.sol +0 -100
- package/lib/core/pool/index.d.ts +0 -1
- package/lib/core/pool/index.js +0 -17
- package/lib/types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.d.ts +0 -60
- package/lib/types/AaveV2_WrappedAToken.sol/WrappedAToken.d.ts +0 -332
- package/lib/types/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
- package/lib/types/ERC20.d.ts +0 -198
- package/lib/types/IAToken.d.ts +0 -182
- package/lib/types/ILendingPool.d.ts +0 -140
- package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/IPoolV3.sol/IPoolBase.d.ts +0 -102
- 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/WATokenZapper.d.ts +0 -134
- package/lib/types/WERC20ZapperBase.d.ts +0 -134
- package/lib/types/WETHZapper.d.ts +0 -122
- package/lib/types/WstETHZapper.d.ts +0 -134
- package/lib/types/ZapperBase.d.ts +0 -70
- package/lib/types/draft-IERC20Permit.sol/index.d.ts +0 -1
- package/lib/types/factories/AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.d.ts +0 -48
- package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.d.ts +0 -397
- package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.js +0 -535
- package/lib/types/factories/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
- package/lib/types/factories/AaveV2_WrappedAToken.sol/index.js +0 -10
- package/lib/types/factories/ERC20__factory.d.ts +0 -239
- package/lib/types/factories/ERC20__factory.js +0 -328
- package/lib/types/factories/ILendingPool__factory.d.ts +0 -134
- package/lib/types/factories/ILendingPool__factory.js +0 -183
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts +0 -18
- 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/types/factories/WATokenZapper__factory.d.ts +0 -161
- package/lib/types/factories/WATokenZapper__factory.js +0 -227
- package/lib/types/factories/WETHZapper__factory.d.ts +0 -138
- package/lib/types/factories/WETHZapper__factory.js +0 -198
- package/lib/types/factories/WstETHZapper__factory.d.ts +0 -161
- package/lib/types/factories/WstETHZapper__factory.js +0 -227
- package/lib/types/factories/ZapperBase__factory.d.ts +0 -60
- package/lib/types/factories/draft-IERC20Permit.sol/index.d.ts +0 -1
- package/lib/types/factories/draft-IERC20Permit.sol/index.js +0 -8
- /package/lib/{types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.js → payload/gauge.js} +0 -0
- /package/lib/types/{AaveV2_WrappedAToken.sol/WrappedAToken.js → IAaveV2_LendingPoolAdapter.js} +0 -0
- /package/lib/types/{AaveV2_WrappedAToken.sol/index.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
- /package/lib/types/{ERC20.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
- /package/lib/types/{IAToken.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol → IBalancerV2Vault.sol}/index.js +0 -0
- /package/lib/types/{IConvexV1BoosterAdapter.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js} +0 -0
- /package/lib/types/{ILendingPool.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol → IBalancerV2VaultAdapter.sol}/index.js +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → IBotListV3.sol/IBotListV3.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → IBotListV3.sol/IBotListV3Events.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol → IBotListV3.sol}/index.js +0 -0
- /package/lib/types/{IPoolV3.sol/IPoolBase.js → ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js} +0 -0
- /package/lib/types/{IRouter.js → ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → ICompoundV2_CTokenAdapter.sol/index.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IContractsRegister.sol/IContractsRegister.js} +0 -0
- /package/lib/types/{WATokenZapper.js → IContractsRegister.sol/IContractsRegisterEvents.js} +0 -0
- /package/lib/types/{WERC20ZapperBase.js → IContractsRegister.sol/index.js} +0 -0
- /package/lib/types/{WETHZapper.js → IControllerTimelockV3.sol/IControllerTimelockV3.js} +0 -0
- /package/lib/types/{WstETHZapper.js → IControllerTimelockV3.sol/IControllerTimelockV3Events.js} +0 -0
- /package/lib/types/{ZapperBase.js → IControllerTimelockV3.sol/index.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js} +0 -0
- /package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.js → IERC20Permit__factory.js} +0 -0
|
@@ -19,6 +19,19 @@ const _abi = [
|
|
|
19
19
|
name: "SetCreditConfigurator",
|
|
20
20
|
type: "event",
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [],
|
|
24
|
+
name: "accountFactory",
|
|
25
|
+
outputs: [
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "view",
|
|
33
|
+
type: "function",
|
|
34
|
+
},
|
|
22
35
|
{
|
|
23
36
|
inputs: [
|
|
24
37
|
{
|
|
@@ -31,7 +44,7 @@ const _abi = [
|
|
|
31
44
|
outputs: [
|
|
32
45
|
{
|
|
33
46
|
internalType: "address",
|
|
34
|
-
name: "",
|
|
47
|
+
name: "targetContract",
|
|
35
48
|
type: "address",
|
|
36
49
|
},
|
|
37
50
|
],
|
|
@@ -65,13 +78,26 @@ const _abi = [
|
|
|
65
78
|
outputs: [
|
|
66
79
|
{
|
|
67
80
|
internalType: "uint256",
|
|
68
|
-
name: "",
|
|
81
|
+
name: "tokensToEnable",
|
|
69
82
|
type: "uint256",
|
|
70
83
|
},
|
|
71
84
|
],
|
|
72
85
|
stateMutability: "nonpayable",
|
|
73
86
|
type: "function",
|
|
74
87
|
},
|
|
88
|
+
{
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
internalType: "address",
|
|
92
|
+
name: "token",
|
|
93
|
+
type: "address",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
name: "addToken",
|
|
97
|
+
outputs: [],
|
|
98
|
+
stateMutability: "nonpayable",
|
|
99
|
+
type: "function",
|
|
100
|
+
},
|
|
75
101
|
{
|
|
76
102
|
inputs: [],
|
|
77
103
|
name: "addressProvider",
|
|
@@ -110,121 +136,24 @@ const _abi = [
|
|
|
110
136
|
name: "creditAccount",
|
|
111
137
|
type: "address",
|
|
112
138
|
},
|
|
113
|
-
{
|
|
114
|
-
internalType: "enum CollateralCalcTask",
|
|
115
|
-
name: "task",
|
|
116
|
-
type: "uint8",
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
name: "calcDebtAndCollateral",
|
|
120
|
-
outputs: [
|
|
121
|
-
{
|
|
122
|
-
components: [
|
|
123
|
-
{
|
|
124
|
-
internalType: "uint256",
|
|
125
|
-
name: "debt",
|
|
126
|
-
type: "uint256",
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
internalType: "uint256",
|
|
130
|
-
name: "cumulativeIndexNow",
|
|
131
|
-
type: "uint256",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
internalType: "uint256",
|
|
135
|
-
name: "cumulativeIndexLastUpdate",
|
|
136
|
-
type: "uint256",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
internalType: "uint128",
|
|
140
|
-
name: "cumulativeQuotaInterest",
|
|
141
|
-
type: "uint128",
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
internalType: "uint256",
|
|
145
|
-
name: "accruedInterest",
|
|
146
|
-
type: "uint256",
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
internalType: "uint256",
|
|
150
|
-
name: "accruedFees",
|
|
151
|
-
type: "uint256",
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
internalType: "uint256",
|
|
155
|
-
name: "totalDebtUSD",
|
|
156
|
-
type: "uint256",
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
internalType: "uint256",
|
|
160
|
-
name: "totalValue",
|
|
161
|
-
type: "uint256",
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
internalType: "uint256",
|
|
165
|
-
name: "totalValueUSD",
|
|
166
|
-
type: "uint256",
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
internalType: "uint256",
|
|
170
|
-
name: "twvUSD",
|
|
171
|
-
type: "uint256",
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
internalType: "uint256",
|
|
175
|
-
name: "enabledTokensMask",
|
|
176
|
-
type: "uint256",
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
internalType: "uint256",
|
|
180
|
-
name: "quotedTokensMask",
|
|
181
|
-
type: "uint256",
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
internalType: "address[]",
|
|
185
|
-
name: "quotedTokens",
|
|
186
|
-
type: "address[]",
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
internalType: "address",
|
|
190
|
-
name: "_poolQuotaKeeper",
|
|
191
|
-
type: "address",
|
|
192
|
-
},
|
|
193
|
-
],
|
|
194
|
-
internalType: "struct CollateralDebtData",
|
|
195
|
-
name: "collateralDebtData",
|
|
196
|
-
type: "tuple",
|
|
197
|
-
},
|
|
198
|
-
],
|
|
199
|
-
stateMutability: "view",
|
|
200
|
-
type: "function",
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
inputs: [
|
|
204
139
|
{
|
|
205
140
|
internalType: "address",
|
|
206
|
-
name: "
|
|
141
|
+
name: "token",
|
|
207
142
|
type: "address",
|
|
208
143
|
},
|
|
209
144
|
{
|
|
210
145
|
internalType: "address",
|
|
211
|
-
name: "
|
|
146
|
+
name: "spender",
|
|
212
147
|
type: "address",
|
|
213
148
|
},
|
|
214
|
-
{
|
|
215
|
-
internalType: "enum ClaimAction",
|
|
216
|
-
name: "action",
|
|
217
|
-
type: "uint8",
|
|
218
|
-
},
|
|
219
|
-
],
|
|
220
|
-
name: "claimWithdrawals",
|
|
221
|
-
outputs: [
|
|
222
149
|
{
|
|
223
150
|
internalType: "uint256",
|
|
224
|
-
name: "
|
|
151
|
+
name: "amount",
|
|
225
152
|
type: "uint256",
|
|
226
153
|
},
|
|
227
154
|
],
|
|
155
|
+
name: "approveToken",
|
|
156
|
+
outputs: [],
|
|
228
157
|
stateMutability: "nonpayable",
|
|
229
158
|
type: "function",
|
|
230
159
|
},
|
|
@@ -236,10 +165,13 @@ const _abi = [
|
|
|
236
165
|
type: "address",
|
|
237
166
|
},
|
|
238
167
|
{
|
|
239
|
-
internalType: "enum
|
|
240
|
-
name: "
|
|
168
|
+
internalType: "enum CollateralCalcTask",
|
|
169
|
+
name: "task",
|
|
241
170
|
type: "uint8",
|
|
242
171
|
},
|
|
172
|
+
],
|
|
173
|
+
name: "calcDebtAndCollateral",
|
|
174
|
+
outputs: [
|
|
243
175
|
{
|
|
244
176
|
components: [
|
|
245
177
|
{
|
|
@@ -314,43 +246,23 @@ const _abi = [
|
|
|
314
246
|
},
|
|
315
247
|
],
|
|
316
248
|
internalType: "struct CollateralDebtData",
|
|
317
|
-
name: "
|
|
249
|
+
name: "cdd",
|
|
318
250
|
type: "tuple",
|
|
319
251
|
},
|
|
252
|
+
],
|
|
253
|
+
stateMutability: "view",
|
|
254
|
+
type: "function",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
inputs: [
|
|
320
258
|
{
|
|
321
259
|
internalType: "address",
|
|
322
|
-
name: "
|
|
323
|
-
type: "address",
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
internalType: "address",
|
|
327
|
-
name: "to",
|
|
260
|
+
name: "creditAccount",
|
|
328
261
|
type: "address",
|
|
329
262
|
},
|
|
330
|
-
{
|
|
331
|
-
internalType: "uint256",
|
|
332
|
-
name: "skipTokensMask",
|
|
333
|
-
type: "uint256",
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
internalType: "bool",
|
|
337
|
-
name: "convertToETH",
|
|
338
|
-
type: "bool",
|
|
339
|
-
},
|
|
340
263
|
],
|
|
341
264
|
name: "closeCreditAccount",
|
|
342
|
-
outputs: [
|
|
343
|
-
{
|
|
344
|
-
internalType: "uint256",
|
|
345
|
-
name: "remainingFunds",
|
|
346
|
-
type: "uint256",
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
internalType: "uint256",
|
|
350
|
-
name: "loss",
|
|
351
|
-
type: "uint256",
|
|
352
|
-
},
|
|
353
|
-
],
|
|
265
|
+
outputs: [],
|
|
354
266
|
stateMutability: "nonpayable",
|
|
355
267
|
type: "function",
|
|
356
268
|
},
|
|
@@ -403,7 +315,61 @@ const _abi = [
|
|
|
403
315
|
outputs: [
|
|
404
316
|
{
|
|
405
317
|
internalType: "address",
|
|
406
|
-
name: "",
|
|
318
|
+
name: "adapter",
|
|
319
|
+
type: "address",
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
stateMutability: "view",
|
|
323
|
+
type: "function",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
inputs: [
|
|
327
|
+
{
|
|
328
|
+
internalType: "address",
|
|
329
|
+
name: "creditAccount",
|
|
330
|
+
type: "address",
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
name: "creditAccountInfo",
|
|
334
|
+
outputs: [
|
|
335
|
+
{
|
|
336
|
+
internalType: "uint256",
|
|
337
|
+
name: "debt",
|
|
338
|
+
type: "uint256",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
internalType: "uint256",
|
|
342
|
+
name: "cumulativeIndexLastUpdate",
|
|
343
|
+
type: "uint256",
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
internalType: "uint128",
|
|
347
|
+
name: "cumulativeQuotaInterest",
|
|
348
|
+
type: "uint128",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
internalType: "uint128",
|
|
352
|
+
name: "quotaFees",
|
|
353
|
+
type: "uint128",
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
internalType: "uint256",
|
|
357
|
+
name: "enabledTokensMask",
|
|
358
|
+
type: "uint256",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
internalType: "uint16",
|
|
362
|
+
name: "flags",
|
|
363
|
+
type: "uint16",
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
internalType: "uint64",
|
|
367
|
+
name: "lastDebtUpdate",
|
|
368
|
+
type: "uint64",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
internalType: "address",
|
|
372
|
+
name: "borrower",
|
|
407
373
|
type: "address",
|
|
408
374
|
},
|
|
409
375
|
],
|
|
@@ -449,7 +415,7 @@ const _abi = [
|
|
|
449
415
|
},
|
|
450
416
|
{
|
|
451
417
|
inputs: [],
|
|
452
|
-
name: "
|
|
418
|
+
name: "creditAccountsLen",
|
|
453
419
|
outputs: [
|
|
454
420
|
{
|
|
455
421
|
internalType: "uint256",
|
|
@@ -509,7 +475,7 @@ const _abi = [
|
|
|
509
475
|
inputs: [
|
|
510
476
|
{
|
|
511
477
|
internalType: "bytes",
|
|
512
|
-
name: "
|
|
478
|
+
name: "data",
|
|
513
479
|
type: "bytes",
|
|
514
480
|
},
|
|
515
481
|
],
|
|
@@ -517,7 +483,36 @@ const _abi = [
|
|
|
517
483
|
outputs: [
|
|
518
484
|
{
|
|
519
485
|
internalType: "bytes",
|
|
520
|
-
name: "",
|
|
486
|
+
name: "result",
|
|
487
|
+
type: "bytes",
|
|
488
|
+
},
|
|
489
|
+
],
|
|
490
|
+
stateMutability: "nonpayable",
|
|
491
|
+
type: "function",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
inputs: [
|
|
495
|
+
{
|
|
496
|
+
internalType: "address",
|
|
497
|
+
name: "creditAccount",
|
|
498
|
+
type: "address",
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
internalType: "address",
|
|
502
|
+
name: "target",
|
|
503
|
+
type: "address",
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
internalType: "bytes",
|
|
507
|
+
name: "callData",
|
|
508
|
+
type: "bytes",
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
name: "externalCall",
|
|
512
|
+
outputs: [
|
|
513
|
+
{
|
|
514
|
+
internalType: "bytes",
|
|
515
|
+
name: "result",
|
|
521
516
|
type: "bytes",
|
|
522
517
|
},
|
|
523
518
|
],
|
|
@@ -585,7 +580,7 @@ const _abi = [
|
|
|
585
580
|
},
|
|
586
581
|
{
|
|
587
582
|
internalType: "uint256",
|
|
588
|
-
name: "
|
|
583
|
+
name: "enabledTokensMask",
|
|
589
584
|
type: "uint256",
|
|
590
585
|
},
|
|
591
586
|
{
|
|
@@ -598,12 +593,17 @@ const _abi = [
|
|
|
598
593
|
name: "minHealthFactor",
|
|
599
594
|
type: "uint16",
|
|
600
595
|
},
|
|
596
|
+
{
|
|
597
|
+
internalType: "bool",
|
|
598
|
+
name: "useSafePrices",
|
|
599
|
+
type: "bool",
|
|
600
|
+
},
|
|
601
601
|
],
|
|
602
602
|
name: "fullCollateralCheck",
|
|
603
603
|
outputs: [
|
|
604
604
|
{
|
|
605
605
|
internalType: "uint256",
|
|
606
|
-
name: "
|
|
606
|
+
name: "enabledTokensMaskAfter",
|
|
607
607
|
type: "uint256",
|
|
608
608
|
},
|
|
609
609
|
],
|
|
@@ -673,7 +673,7 @@ const _abi = [
|
|
|
673
673
|
outputs: [
|
|
674
674
|
{
|
|
675
675
|
internalType: "uint256",
|
|
676
|
-
name: "",
|
|
676
|
+
name: "tokenMask",
|
|
677
677
|
type: "uint256",
|
|
678
678
|
},
|
|
679
679
|
],
|
|
@@ -708,15 +708,126 @@ const _abi = [
|
|
|
708
708
|
inputs: [
|
|
709
709
|
{
|
|
710
710
|
internalType: "address",
|
|
711
|
-
name: "
|
|
711
|
+
name: "creditAccount",
|
|
712
712
|
type: "address",
|
|
713
713
|
},
|
|
714
|
-
],
|
|
715
|
-
name: "liquidationThresholds",
|
|
716
|
-
outputs: [
|
|
717
714
|
{
|
|
718
|
-
|
|
719
|
-
|
|
715
|
+
components: [
|
|
716
|
+
{
|
|
717
|
+
internalType: "uint256",
|
|
718
|
+
name: "debt",
|
|
719
|
+
type: "uint256",
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
internalType: "uint256",
|
|
723
|
+
name: "cumulativeIndexNow",
|
|
724
|
+
type: "uint256",
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
internalType: "uint256",
|
|
728
|
+
name: "cumulativeIndexLastUpdate",
|
|
729
|
+
type: "uint256",
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
internalType: "uint128",
|
|
733
|
+
name: "cumulativeQuotaInterest",
|
|
734
|
+
type: "uint128",
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
internalType: "uint256",
|
|
738
|
+
name: "accruedInterest",
|
|
739
|
+
type: "uint256",
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
internalType: "uint256",
|
|
743
|
+
name: "accruedFees",
|
|
744
|
+
type: "uint256",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
internalType: "uint256",
|
|
748
|
+
name: "totalDebtUSD",
|
|
749
|
+
type: "uint256",
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
internalType: "uint256",
|
|
753
|
+
name: "totalValue",
|
|
754
|
+
type: "uint256",
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
internalType: "uint256",
|
|
758
|
+
name: "totalValueUSD",
|
|
759
|
+
type: "uint256",
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
internalType: "uint256",
|
|
763
|
+
name: "twvUSD",
|
|
764
|
+
type: "uint256",
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
internalType: "uint256",
|
|
768
|
+
name: "enabledTokensMask",
|
|
769
|
+
type: "uint256",
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
internalType: "uint256",
|
|
773
|
+
name: "quotedTokensMask",
|
|
774
|
+
type: "uint256",
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
internalType: "address[]",
|
|
778
|
+
name: "quotedTokens",
|
|
779
|
+
type: "address[]",
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
internalType: "address",
|
|
783
|
+
name: "_poolQuotaKeeper",
|
|
784
|
+
type: "address",
|
|
785
|
+
},
|
|
786
|
+
],
|
|
787
|
+
internalType: "struct CollateralDebtData",
|
|
788
|
+
name: "collateralDebtData",
|
|
789
|
+
type: "tuple",
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
internalType: "address",
|
|
793
|
+
name: "to",
|
|
794
|
+
type: "address",
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
internalType: "bool",
|
|
798
|
+
name: "isExpired",
|
|
799
|
+
type: "bool",
|
|
800
|
+
},
|
|
801
|
+
],
|
|
802
|
+
name: "liquidateCreditAccount",
|
|
803
|
+
outputs: [
|
|
804
|
+
{
|
|
805
|
+
internalType: "uint256",
|
|
806
|
+
name: "remainingFunds",
|
|
807
|
+
type: "uint256",
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
internalType: "uint256",
|
|
811
|
+
name: "loss",
|
|
812
|
+
type: "uint256",
|
|
813
|
+
},
|
|
814
|
+
],
|
|
815
|
+
stateMutability: "nonpayable",
|
|
816
|
+
type: "function",
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
inputs: [
|
|
820
|
+
{
|
|
821
|
+
internalType: "address",
|
|
822
|
+
name: "token",
|
|
823
|
+
type: "address",
|
|
824
|
+
},
|
|
825
|
+
],
|
|
826
|
+
name: "liquidationThresholds",
|
|
827
|
+
outputs: [
|
|
828
|
+
{
|
|
829
|
+
internalType: "uint16",
|
|
830
|
+
name: "lt",
|
|
720
831
|
type: "uint16",
|
|
721
832
|
},
|
|
722
833
|
],
|
|
@@ -815,12 +926,20 @@ const _abi = [
|
|
|
815
926
|
type: "function",
|
|
816
927
|
},
|
|
817
928
|
{
|
|
818
|
-
inputs: [
|
|
929
|
+
inputs: [],
|
|
930
|
+
name: "name",
|
|
931
|
+
outputs: [
|
|
819
932
|
{
|
|
820
|
-
internalType: "
|
|
821
|
-
name: "
|
|
822
|
-
type: "
|
|
933
|
+
internalType: "string",
|
|
934
|
+
name: "",
|
|
935
|
+
type: "string",
|
|
823
936
|
},
|
|
937
|
+
],
|
|
938
|
+
stateMutability: "view",
|
|
939
|
+
type: "function",
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
inputs: [
|
|
824
943
|
{
|
|
825
944
|
internalType: "address",
|
|
826
945
|
name: "onBehalfOf",
|
|
@@ -864,19 +983,6 @@ const _abi = [
|
|
|
864
983
|
stateMutability: "view",
|
|
865
984
|
type: "function",
|
|
866
985
|
},
|
|
867
|
-
{
|
|
868
|
-
inputs: [],
|
|
869
|
-
name: "poolService",
|
|
870
|
-
outputs: [
|
|
871
|
-
{
|
|
872
|
-
internalType: "address",
|
|
873
|
-
name: "",
|
|
874
|
-
type: "address",
|
|
875
|
-
},
|
|
876
|
-
],
|
|
877
|
-
stateMutability: "view",
|
|
878
|
-
type: "function",
|
|
879
|
-
},
|
|
880
986
|
{
|
|
881
987
|
inputs: [],
|
|
882
988
|
name: "priceOracle",
|
|
@@ -940,25 +1046,60 @@ const _abi = [
|
|
|
940
1046
|
name: "creditAccount",
|
|
941
1047
|
type: "address",
|
|
942
1048
|
},
|
|
1049
|
+
],
|
|
1050
|
+
name: "setActiveCreditAccount",
|
|
1051
|
+
outputs: [],
|
|
1052
|
+
stateMutability: "nonpayable",
|
|
1053
|
+
type: "function",
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
inputs: [
|
|
943
1057
|
{
|
|
944
1058
|
internalType: "address",
|
|
945
1059
|
name: "token",
|
|
946
1060
|
type: "address",
|
|
947
1061
|
},
|
|
948
1062
|
{
|
|
949
|
-
internalType: "
|
|
950
|
-
name: "
|
|
951
|
-
type: "
|
|
1063
|
+
internalType: "uint16",
|
|
1064
|
+
name: "ltInitial",
|
|
1065
|
+
type: "uint16",
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
internalType: "uint16",
|
|
1069
|
+
name: "ltFinal",
|
|
1070
|
+
type: "uint16",
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
internalType: "uint40",
|
|
1074
|
+
name: "timestampRampStart",
|
|
1075
|
+
type: "uint40",
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
internalType: "uint24",
|
|
1079
|
+
name: "rampDuration",
|
|
1080
|
+
type: "uint24",
|
|
952
1081
|
},
|
|
953
1082
|
],
|
|
954
|
-
name: "
|
|
955
|
-
outputs: [
|
|
1083
|
+
name: "setCollateralTokenData",
|
|
1084
|
+
outputs: [],
|
|
1085
|
+
stateMutability: "nonpayable",
|
|
1086
|
+
type: "function",
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
inputs: [
|
|
956
1090
|
{
|
|
957
|
-
internalType: "
|
|
958
|
-
name: "
|
|
959
|
-
type: "
|
|
1091
|
+
internalType: "address",
|
|
1092
|
+
name: "adapter",
|
|
1093
|
+
type: "address",
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
internalType: "address",
|
|
1097
|
+
name: "targetContract",
|
|
1098
|
+
type: "address",
|
|
960
1099
|
},
|
|
961
1100
|
],
|
|
1101
|
+
name: "setContractAllowance",
|
|
1102
|
+
outputs: [],
|
|
962
1103
|
stateMutability: "nonpayable",
|
|
963
1104
|
type: "function",
|
|
964
1105
|
},
|
|
@@ -966,11 +1107,57 @@ const _abi = [
|
|
|
966
1107
|
inputs: [
|
|
967
1108
|
{
|
|
968
1109
|
internalType: "address",
|
|
969
|
-
name: "
|
|
1110
|
+
name: "creditConfigurator",
|
|
970
1111
|
type: "address",
|
|
971
1112
|
},
|
|
972
1113
|
],
|
|
973
|
-
name: "
|
|
1114
|
+
name: "setCreditConfigurator",
|
|
1115
|
+
outputs: [],
|
|
1116
|
+
stateMutability: "nonpayable",
|
|
1117
|
+
type: "function",
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
inputs: [
|
|
1121
|
+
{
|
|
1122
|
+
internalType: "address",
|
|
1123
|
+
name: "creditFacade",
|
|
1124
|
+
type: "address",
|
|
1125
|
+
},
|
|
1126
|
+
],
|
|
1127
|
+
name: "setCreditFacade",
|
|
1128
|
+
outputs: [],
|
|
1129
|
+
stateMutability: "nonpayable",
|
|
1130
|
+
type: "function",
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
inputs: [
|
|
1134
|
+
{
|
|
1135
|
+
internalType: "uint16",
|
|
1136
|
+
name: "feeInterest",
|
|
1137
|
+
type: "uint16",
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
internalType: "uint16",
|
|
1141
|
+
name: "feeLiquidation",
|
|
1142
|
+
type: "uint16",
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
internalType: "uint16",
|
|
1146
|
+
name: "liquidationDiscount",
|
|
1147
|
+
type: "uint16",
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
internalType: "uint16",
|
|
1151
|
+
name: "feeLiquidationExpired",
|
|
1152
|
+
type: "uint16",
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
internalType: "uint16",
|
|
1156
|
+
name: "liquidationDiscountExpired",
|
|
1157
|
+
type: "uint16",
|
|
1158
|
+
},
|
|
1159
|
+
],
|
|
1160
|
+
name: "setFees",
|
|
974
1161
|
outputs: [],
|
|
975
1162
|
stateMutability: "nonpayable",
|
|
976
1163
|
type: "function",
|
|
@@ -998,6 +1185,45 @@ const _abi = [
|
|
|
998
1185
|
stateMutability: "nonpayable",
|
|
999
1186
|
type: "function",
|
|
1000
1187
|
},
|
|
1188
|
+
{
|
|
1189
|
+
inputs: [
|
|
1190
|
+
{
|
|
1191
|
+
internalType: "uint8",
|
|
1192
|
+
name: "maxEnabledTokens",
|
|
1193
|
+
type: "uint8",
|
|
1194
|
+
},
|
|
1195
|
+
],
|
|
1196
|
+
name: "setMaxEnabledTokens",
|
|
1197
|
+
outputs: [],
|
|
1198
|
+
stateMutability: "nonpayable",
|
|
1199
|
+
type: "function",
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
inputs: [
|
|
1203
|
+
{
|
|
1204
|
+
internalType: "address",
|
|
1205
|
+
name: "priceOracle",
|
|
1206
|
+
type: "address",
|
|
1207
|
+
},
|
|
1208
|
+
],
|
|
1209
|
+
name: "setPriceOracle",
|
|
1210
|
+
outputs: [],
|
|
1211
|
+
stateMutability: "nonpayable",
|
|
1212
|
+
type: "function",
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
inputs: [
|
|
1216
|
+
{
|
|
1217
|
+
internalType: "uint256",
|
|
1218
|
+
name: "quotedTokensMask",
|
|
1219
|
+
type: "uint256",
|
|
1220
|
+
},
|
|
1221
|
+
],
|
|
1222
|
+
name: "setQuotedMask",
|
|
1223
|
+
outputs: [],
|
|
1224
|
+
stateMutability: "nonpayable",
|
|
1225
|
+
type: "function",
|
|
1226
|
+
},
|
|
1001
1227
|
{
|
|
1002
1228
|
inputs: [],
|
|
1003
1229
|
name: "underlying",
|
|
@@ -1082,16 +1308,37 @@ const _abi = [
|
|
|
1082
1308
|
type: "function",
|
|
1083
1309
|
},
|
|
1084
1310
|
{
|
|
1085
|
-
inputs: [
|
|
1086
|
-
name: "withdrawalManager",
|
|
1087
|
-
outputs: [
|
|
1311
|
+
inputs: [
|
|
1088
1312
|
{
|
|
1089
1313
|
internalType: "address",
|
|
1090
|
-
name: "",
|
|
1314
|
+
name: "creditAccount",
|
|
1315
|
+
type: "address",
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
internalType: "address",
|
|
1319
|
+
name: "token",
|
|
1320
|
+
type: "address",
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
internalType: "uint256",
|
|
1324
|
+
name: "amount",
|
|
1325
|
+
type: "uint256",
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
internalType: "address",
|
|
1329
|
+
name: "to",
|
|
1091
1330
|
type: "address",
|
|
1092
1331
|
},
|
|
1093
1332
|
],
|
|
1094
|
-
|
|
1333
|
+
name: "withdrawCollateral",
|
|
1334
|
+
outputs: [
|
|
1335
|
+
{
|
|
1336
|
+
internalType: "uint256",
|
|
1337
|
+
name: "tokensToDisable",
|
|
1338
|
+
type: "uint256",
|
|
1339
|
+
},
|
|
1340
|
+
],
|
|
1341
|
+
stateMutability: "nonpayable",
|
|
1095
1342
|
type: "function",
|
|
1096
1343
|
},
|
|
1097
1344
|
];
|