@gearbox-protocol/sdk 3.0.0-next.102 → 3.0.0-next.104
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/lib/core/creditManager.d.ts +1 -0
- package/lib/core/creditManager.js +5 -0
- package/lib/core/strategy.d.ts +5 -7
- package/lib/core/strategy.js +4 -6
- package/lib/index.d.ts +1 -3
- package/lib/index.js +1 -3
- 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 +3 -0
- 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 +1 -1
- package/lib/parsers/convexBoosterAdapterParser.js +1 -1
- package/lib/parsers/convextRewardPoolParser.js +1 -1
- package/lib/parsers/creditFacadeParser.js +1 -1
- package/lib/parsers/creditManagerParser.js +1 -1
- package/lib/parsers/curveAdapterParser.js +1 -1
- package/lib/parsers/erc626AdapterParser.d.ts +7 -0
- package/lib/parsers/erc626AdapterParser.js +21 -0
- package/lib/parsers/lidoAdapterParser.js +1 -1
- 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 +36 -5
- package/lib/parsers/uniV2AdapterParser.js +1 -1
- package/lib/parsers/uniV3AdapterParser.js +1 -1
- package/lib/parsers/wstETHAdapterParser.js +1 -1
- package/lib/parsers/yearnV2AdapterParser.js +1 -1
- package/lib/pathfinder/index.d.ts +4 -0
- package/lib/pathfinder/index.js +20 -0
- package/lib/pathfinder/utils.d.ts +35 -0
- package/lib/pathfinder/utils.js +182 -0
- package/lib/types/contracts/index.d.ts +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 +111 -111
- package/lib/types/factories/AddressProvider__factory.js +119 -119
- package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +3 -3
- package/lib/types/factories/Balances.sol/BalanceOps__factory.js +3 -3
- package/lib/types/factories/CalldataExtractor__factory.d.ts +34 -34
- package/lib/types/factories/CalldataExtractor__factory.js +37 -37
- package/lib/types/factories/Claimable__factory.d.ts +28 -28
- package/lib/types/factories/Claimable__factory.js +32 -32
- package/lib/types/factories/ERC20__factory.d.ts +89 -89
- package/lib/types/factories/ERC20__factory.js +99 -99
- package/lib/types/factories/Errors__factory.d.ts +99 -99
- package/lib/types/factories/Errors__factory.js +99 -99
- package/lib/types/factories/FarmAccounting__factory.d.ts +6 -6
- package/lib/types/factories/FarmAccounting__factory.js +6 -6
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +42 -42
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +42 -42
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +70 -70
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +70 -70
- 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 +19 -19
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +19 -19
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +106 -106
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +106 -106
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +7 -7
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +7 -7
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +2 -2
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +2 -2
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +161 -161
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +166 -166
- 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 +38 -38
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +43 -43
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +152 -152
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +170 -170
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +60 -60
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +63 -63
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +3 -3
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +3 -3
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +10 -10
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +10 -10
- package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.d.ts +51 -51
- package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.js +57 -57
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +30 -30
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +30 -30
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +165 -165
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +182 -182
- package/lib/types/factories/IConvexToken__factory.d.ts +86 -86
- package/lib/types/factories/IConvexToken__factory.js +96 -96
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +80 -80
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +80 -80
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +7 -7
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +7 -7
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +62 -62
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +66 -66
- 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 -23
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +23 -23
- 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 +72 -72
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +80 -80
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +288 -288
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +397 -397
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +59 -59
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +59 -59
- 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 +294 -294
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +297 -297
- 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 +169 -169
- package/lib/types/factories/ICurveV1Adapter__factory.js +169 -169
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +187 -187
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +187 -187
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +187 -187
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +187 -187
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +187 -187
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +187 -187
- package/lib/types/factories/IDaiLikePermit__factory.d.ts +10 -10
- package/lib/types/factories/IDaiLikePermit__factory.js +10 -10
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +334 -334
- package/lib/types/factories/IDataCompressorV2_10__factory.js +334 -334
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +454 -454
- package/lib/types/factories/IDataCompressorV3_00__factory.js +454 -454
- 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 +15 -15
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +15 -15
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +8 -8
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +8 -8
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts +180 -180
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.js +208 -208
- package/lib/types/factories/IERC165__factory.d.ts +4 -4
- package/lib/types/factories/IERC165__factory.js +4 -4
- 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 +30 -30
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +30 -30
- 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 +60 -60
- package/lib/types/factories/IERC4626Adapter__factory.js +60 -60
- 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 +114 -114
- package/lib/types/factories/IERC721Metadata__factory.js +129 -129
- package/lib/types/factories/IERC721__factory.d.ts +104 -104
- package/lib/types/factories/IERC721__factory.js +119 -119
- package/lib/types/factories/IETHZapperDeposits__factory.d.ts +9 -9
- package/lib/types/factories/IETHZapperDeposits__factory.js +9 -9
- package/lib/types/factories/IFarmingPool__factory.d.ts +134 -134
- package/lib/types/factories/IFarmingPool__factory.js +152 -152
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +46 -46
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +50 -50
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +172 -172
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +200 -200
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +48 -48
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +49 -49
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +225 -225
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +253 -253
- 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 +11 -11
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +12 -12
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +10 -10
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +10 -10
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +107 -107
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +119 -119
- package/lib/types/factories/ILidoV1Adapter__factory.d.ts +40 -40
- package/lib/types/factories/ILidoV1Adapter__factory.js +40 -40
- package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +25 -25
- package/lib/types/factories/ILinearInterestRateModelV3__factory.js +25 -25
- package/lib/types/factories/IOffchainOracle__factory.d.ts +11 -11
- package/lib/types/factories/IOffchainOracle__factory.js +11 -11
- package/lib/types/factories/IPermit2__factory.d.ts +33 -33
- package/lib/types/factories/IPermit2__factory.js +33 -33
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +44 -44
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +45 -45
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +190 -190
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +216 -216
- 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 +696 -696
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +22 -22
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +22 -22
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +28 -28
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +28 -28
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +6 -6
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +7 -7
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +6 -6
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +6 -6
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +71 -71
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +78 -78
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.d.ts +68 -68
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.js +75 -75
- 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 +28 -28
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +31 -31
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +139 -139
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +156 -156
- package/lib/types/factories/IRouterV3__factory.d.ts +178 -178
- package/lib/types/factories/IRouterV3__factory.js +191 -191
- package/lib/types/factories/IRouter__factory.d.ts +159 -159
- package/lib/types/factories/IRouter__factory.js +172 -172
- 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 +78 -78
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +84 -84
- 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 +138 -138
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +145 -145
- 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 +10 -10
- package/lib/types/factories/IVotingContractV3__factory.js +10 -10
- 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 +102 -102
- package/lib/types/factories/IWETH__factory.js +120 -120
- 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 +63 -63
- package/lib/types/factories/IYearnV2Adapter__factory.js +63 -63
- package/lib/types/factories/IZapperRegister__factory.d.ts +20 -20
- package/lib/types/factories/IZapperRegister__factory.js +22 -22
- package/lib/types/factories/IZapper__factory.d.ts +34 -34
- package/lib/types/factories/IZapper__factory.js +34 -34
- 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 +44 -44
- package/lib/types/factories/IwstETHV1Adapter__factory.js +44 -44
- package/lib/types/factories/NumericArrayLib__factory.d.ts +2 -2
- package/lib/types/factories/NumericArrayLib__factory.js +2 -2
- package/lib/types/factories/Ownable__factory.d.ts +23 -23
- package/lib/types/factories/Ownable__factory.js +27 -27
- package/lib/types/factories/RedstoneConstants__factory.d.ts +19 -19
- package/lib/types/factories/RedstoneConstants__factory.js +19 -19
- package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +101 -101
- package/lib/types/factories/RedstoneConsumerBase__factory.js +123 -123
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +101 -101
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +123 -123
- package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +8 -8
- package/lib/types/factories/RedstoneDefaultsLib__factory.js +8 -8
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts +5 -5
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js +5 -5
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +10 -10
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +10 -10
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +193 -193
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +220 -220
- package/lib/types/factories/SafeERC20__factory.d.ts +14 -14
- package/lib/types/factories/SafeERC20__factory.js +14 -14
- 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/index.d.ts +1 -0
- package/lib/types/factories/contracts/interfaces/index.js +8 -0
- package/lib/types/factories/index.d.ts +2 -1
- package/lib/types/factories/index.js +4 -4
- package/lib/types/factories/{IGasPricer__factory.d.ts → interfaces/IGasPricer__factory.d.ts} +5 -5
- package/lib/types/factories/interfaces/IGasPricer__factory.js +38 -0
- 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 +18 -14
- package/lib/types/index.js +25 -25
- package/lib/types/{IGasPricer.d.ts → interfaces/IGasPricer.d.ts} +1 -1
- package/lib/types/interfaces/IGasPricer.js +2 -0
- package/lib/types/interfaces/index.d.ts +1 -0
- package/lib/types/interfaces/index.js +2 -0
- package/package.json +4 -4
- package/lib/types/{IGasPricer.js → contracts/index.js} +0 -0
- package/lib/types/factories/{IGasPricer__factory.js → contracts/interfaces/IGasPricer__factory.js} +4 -4
|
@@ -7,1326 +7,1326 @@ exports.ICreditManagerV3__factory = void 0;
|
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
9
|
{
|
|
10
|
-
|
|
11
|
-
inputs: [
|
|
12
|
-
{
|
|
13
|
-
indexed: true,
|
|
14
|
-
internalType: "address",
|
|
15
|
-
name: "newConfigurator",
|
|
16
|
-
type: "address",
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
name: "SetCreditConfigurator",
|
|
20
|
-
type: "event",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
inputs: [],
|
|
10
|
+
type: "function",
|
|
24
11
|
name: "accountFactory",
|
|
12
|
+
inputs: [],
|
|
25
13
|
outputs: [
|
|
26
14
|
{
|
|
27
|
-
internalType: "address",
|
|
28
15
|
name: "",
|
|
29
16
|
type: "address",
|
|
17
|
+
internalType: "address",
|
|
30
18
|
},
|
|
31
19
|
],
|
|
32
20
|
stateMutability: "view",
|
|
33
|
-
type: "function",
|
|
34
21
|
},
|
|
35
22
|
{
|
|
23
|
+
type: "function",
|
|
24
|
+
name: "adapterToContract",
|
|
36
25
|
inputs: [
|
|
37
26
|
{
|
|
38
|
-
internalType: "address",
|
|
39
27
|
name: "adapter",
|
|
40
28
|
type: "address",
|
|
29
|
+
internalType: "address",
|
|
41
30
|
},
|
|
42
31
|
],
|
|
43
|
-
name: "adapterToContract",
|
|
44
32
|
outputs: [
|
|
45
33
|
{
|
|
46
|
-
internalType: "address",
|
|
47
34
|
name: "targetContract",
|
|
48
35
|
type: "address",
|
|
36
|
+
internalType: "address",
|
|
49
37
|
},
|
|
50
38
|
],
|
|
51
39
|
stateMutability: "view",
|
|
52
|
-
type: "function",
|
|
53
40
|
},
|
|
54
41
|
{
|
|
42
|
+
type: "function",
|
|
43
|
+
name: "addCollateral",
|
|
55
44
|
inputs: [
|
|
56
45
|
{
|
|
57
|
-
internalType: "address",
|
|
58
46
|
name: "payer",
|
|
59
47
|
type: "address",
|
|
48
|
+
internalType: "address",
|
|
60
49
|
},
|
|
61
50
|
{
|
|
62
|
-
internalType: "address",
|
|
63
51
|
name: "creditAccount",
|
|
64
52
|
type: "address",
|
|
53
|
+
internalType: "address",
|
|
65
54
|
},
|
|
66
55
|
{
|
|
67
|
-
internalType: "address",
|
|
68
56
|
name: "token",
|
|
69
57
|
type: "address",
|
|
58
|
+
internalType: "address",
|
|
70
59
|
},
|
|
71
60
|
{
|
|
72
|
-
internalType: "uint256",
|
|
73
61
|
name: "amount",
|
|
74
62
|
type: "uint256",
|
|
63
|
+
internalType: "uint256",
|
|
75
64
|
},
|
|
76
65
|
],
|
|
77
|
-
name: "addCollateral",
|
|
78
66
|
outputs: [
|
|
79
67
|
{
|
|
80
|
-
internalType: "uint256",
|
|
81
68
|
name: "tokensToEnable",
|
|
82
69
|
type: "uint256",
|
|
70
|
+
internalType: "uint256",
|
|
83
71
|
},
|
|
84
72
|
],
|
|
85
73
|
stateMutability: "nonpayable",
|
|
86
|
-
type: "function",
|
|
87
74
|
},
|
|
88
75
|
{
|
|
76
|
+
type: "function",
|
|
77
|
+
name: "addToken",
|
|
89
78
|
inputs: [
|
|
90
79
|
{
|
|
91
|
-
internalType: "address",
|
|
92
80
|
name: "token",
|
|
93
81
|
type: "address",
|
|
82
|
+
internalType: "address",
|
|
94
83
|
},
|
|
95
84
|
],
|
|
96
|
-
name: "addToken",
|
|
97
85
|
outputs: [],
|
|
98
86
|
stateMutability: "nonpayable",
|
|
99
|
-
type: "function",
|
|
100
87
|
},
|
|
101
88
|
{
|
|
102
|
-
|
|
89
|
+
type: "function",
|
|
103
90
|
name: "addressProvider",
|
|
91
|
+
inputs: [],
|
|
104
92
|
outputs: [
|
|
105
93
|
{
|
|
106
|
-
internalType: "address",
|
|
107
94
|
name: "",
|
|
108
95
|
type: "address",
|
|
96
|
+
internalType: "address",
|
|
109
97
|
},
|
|
110
98
|
],
|
|
111
99
|
stateMutability: "view",
|
|
112
|
-
type: "function",
|
|
113
100
|
},
|
|
114
101
|
{
|
|
102
|
+
type: "function",
|
|
103
|
+
name: "approveCreditAccount",
|
|
115
104
|
inputs: [
|
|
116
105
|
{
|
|
117
|
-
internalType: "address",
|
|
118
106
|
name: "token",
|
|
119
107
|
type: "address",
|
|
108
|
+
internalType: "address",
|
|
120
109
|
},
|
|
121
110
|
{
|
|
122
|
-
internalType: "uint256",
|
|
123
111
|
name: "amount",
|
|
124
112
|
type: "uint256",
|
|
113
|
+
internalType: "uint256",
|
|
125
114
|
},
|
|
126
115
|
],
|
|
127
|
-
name: "approveCreditAccount",
|
|
128
116
|
outputs: [],
|
|
129
117
|
stateMutability: "nonpayable",
|
|
130
|
-
type: "function",
|
|
131
118
|
},
|
|
132
119
|
{
|
|
120
|
+
type: "function",
|
|
121
|
+
name: "approveToken",
|
|
133
122
|
inputs: [
|
|
134
123
|
{
|
|
135
|
-
internalType: "address",
|
|
136
124
|
name: "creditAccount",
|
|
137
125
|
type: "address",
|
|
126
|
+
internalType: "address",
|
|
138
127
|
},
|
|
139
128
|
{
|
|
140
|
-
internalType: "address",
|
|
141
129
|
name: "token",
|
|
142
130
|
type: "address",
|
|
131
|
+
internalType: "address",
|
|
143
132
|
},
|
|
144
133
|
{
|
|
145
|
-
internalType: "address",
|
|
146
134
|
name: "spender",
|
|
147
135
|
type: "address",
|
|
136
|
+
internalType: "address",
|
|
148
137
|
},
|
|
149
138
|
{
|
|
150
|
-
internalType: "uint256",
|
|
151
139
|
name: "amount",
|
|
152
140
|
type: "uint256",
|
|
141
|
+
internalType: "uint256",
|
|
153
142
|
},
|
|
154
143
|
],
|
|
155
|
-
name: "approveToken",
|
|
156
144
|
outputs: [],
|
|
157
145
|
stateMutability: "nonpayable",
|
|
158
|
-
type: "function",
|
|
159
146
|
},
|
|
160
147
|
{
|
|
148
|
+
type: "function",
|
|
149
|
+
name: "calcDebtAndCollateral",
|
|
161
150
|
inputs: [
|
|
162
151
|
{
|
|
163
|
-
internalType: "address",
|
|
164
152
|
name: "creditAccount",
|
|
165
153
|
type: "address",
|
|
154
|
+
internalType: "address",
|
|
166
155
|
},
|
|
167
156
|
{
|
|
168
|
-
internalType: "enum CollateralCalcTask",
|
|
169
157
|
name: "task",
|
|
170
158
|
type: "uint8",
|
|
159
|
+
internalType: "enum CollateralCalcTask",
|
|
171
160
|
},
|
|
172
161
|
],
|
|
173
|
-
name: "calcDebtAndCollateral",
|
|
174
162
|
outputs: [
|
|
175
163
|
{
|
|
164
|
+
name: "cdd",
|
|
165
|
+
type: "tuple",
|
|
166
|
+
internalType: "struct CollateralDebtData",
|
|
176
167
|
components: [
|
|
177
168
|
{
|
|
178
|
-
internalType: "uint256",
|
|
179
169
|
name: "debt",
|
|
180
170
|
type: "uint256",
|
|
171
|
+
internalType: "uint256",
|
|
181
172
|
},
|
|
182
173
|
{
|
|
183
|
-
internalType: "uint256",
|
|
184
174
|
name: "cumulativeIndexNow",
|
|
185
175
|
type: "uint256",
|
|
176
|
+
internalType: "uint256",
|
|
186
177
|
},
|
|
187
178
|
{
|
|
188
|
-
internalType: "uint256",
|
|
189
179
|
name: "cumulativeIndexLastUpdate",
|
|
190
180
|
type: "uint256",
|
|
181
|
+
internalType: "uint256",
|
|
191
182
|
},
|
|
192
183
|
{
|
|
193
|
-
internalType: "uint128",
|
|
194
184
|
name: "cumulativeQuotaInterest",
|
|
195
185
|
type: "uint128",
|
|
186
|
+
internalType: "uint128",
|
|
196
187
|
},
|
|
197
188
|
{
|
|
198
|
-
internalType: "uint256",
|
|
199
189
|
name: "accruedInterest",
|
|
200
190
|
type: "uint256",
|
|
191
|
+
internalType: "uint256",
|
|
201
192
|
},
|
|
202
193
|
{
|
|
203
|
-
internalType: "uint256",
|
|
204
194
|
name: "accruedFees",
|
|
205
195
|
type: "uint256",
|
|
196
|
+
internalType: "uint256",
|
|
206
197
|
},
|
|
207
198
|
{
|
|
208
|
-
internalType: "uint256",
|
|
209
199
|
name: "totalDebtUSD",
|
|
210
200
|
type: "uint256",
|
|
201
|
+
internalType: "uint256",
|
|
211
202
|
},
|
|
212
203
|
{
|
|
213
|
-
internalType: "uint256",
|
|
214
204
|
name: "totalValue",
|
|
215
205
|
type: "uint256",
|
|
206
|
+
internalType: "uint256",
|
|
216
207
|
},
|
|
217
208
|
{
|
|
218
|
-
internalType: "uint256",
|
|
219
209
|
name: "totalValueUSD",
|
|
220
210
|
type: "uint256",
|
|
211
|
+
internalType: "uint256",
|
|
221
212
|
},
|
|
222
213
|
{
|
|
223
|
-
internalType: "uint256",
|
|
224
214
|
name: "twvUSD",
|
|
225
215
|
type: "uint256",
|
|
216
|
+
internalType: "uint256",
|
|
226
217
|
},
|
|
227
218
|
{
|
|
228
|
-
internalType: "uint256",
|
|
229
219
|
name: "enabledTokensMask",
|
|
230
220
|
type: "uint256",
|
|
221
|
+
internalType: "uint256",
|
|
231
222
|
},
|
|
232
223
|
{
|
|
233
|
-
internalType: "uint256",
|
|
234
224
|
name: "quotedTokensMask",
|
|
235
225
|
type: "uint256",
|
|
226
|
+
internalType: "uint256",
|
|
236
227
|
},
|
|
237
228
|
{
|
|
238
|
-
internalType: "address[]",
|
|
239
229
|
name: "quotedTokens",
|
|
240
230
|
type: "address[]",
|
|
231
|
+
internalType: "address[]",
|
|
241
232
|
},
|
|
242
233
|
{
|
|
243
|
-
internalType: "address",
|
|
244
234
|
name: "_poolQuotaKeeper",
|
|
245
235
|
type: "address",
|
|
236
|
+
internalType: "address",
|
|
246
237
|
},
|
|
247
238
|
],
|
|
248
|
-
internalType: "struct CollateralDebtData",
|
|
249
|
-
name: "cdd",
|
|
250
|
-
type: "tuple",
|
|
251
239
|
},
|
|
252
240
|
],
|
|
253
241
|
stateMutability: "view",
|
|
254
|
-
type: "function",
|
|
255
242
|
},
|
|
256
243
|
{
|
|
244
|
+
type: "function",
|
|
245
|
+
name: "closeCreditAccount",
|
|
257
246
|
inputs: [
|
|
258
247
|
{
|
|
259
|
-
internalType: "address",
|
|
260
248
|
name: "creditAccount",
|
|
261
249
|
type: "address",
|
|
250
|
+
internalType: "address",
|
|
262
251
|
},
|
|
263
252
|
],
|
|
264
|
-
name: "closeCreditAccount",
|
|
265
253
|
outputs: [],
|
|
266
254
|
stateMutability: "nonpayable",
|
|
267
|
-
type: "function",
|
|
268
255
|
},
|
|
269
256
|
{
|
|
257
|
+
type: "function",
|
|
258
|
+
name: "collateralTokenByMask",
|
|
270
259
|
inputs: [
|
|
271
260
|
{
|
|
272
|
-
internalType: "uint256",
|
|
273
261
|
name: "tokenMask",
|
|
274
262
|
type: "uint256",
|
|
263
|
+
internalType: "uint256",
|
|
275
264
|
},
|
|
276
265
|
],
|
|
277
|
-
name: "collateralTokenByMask",
|
|
278
266
|
outputs: [
|
|
279
267
|
{
|
|
280
|
-
internalType: "address",
|
|
281
268
|
name: "token",
|
|
282
269
|
type: "address",
|
|
270
|
+
internalType: "address",
|
|
283
271
|
},
|
|
284
272
|
{
|
|
285
|
-
internalType: "uint16",
|
|
286
273
|
name: "liquidationThreshold",
|
|
287
274
|
type: "uint16",
|
|
275
|
+
internalType: "uint16",
|
|
288
276
|
},
|
|
289
277
|
],
|
|
290
278
|
stateMutability: "view",
|
|
291
|
-
type: "function",
|
|
292
279
|
},
|
|
293
280
|
{
|
|
294
|
-
|
|
281
|
+
type: "function",
|
|
295
282
|
name: "collateralTokensCount",
|
|
283
|
+
inputs: [],
|
|
296
284
|
outputs: [
|
|
297
285
|
{
|
|
298
|
-
internalType: "uint8",
|
|
299
286
|
name: "",
|
|
300
287
|
type: "uint8",
|
|
288
|
+
internalType: "uint8",
|
|
301
289
|
},
|
|
302
290
|
],
|
|
303
291
|
stateMutability: "view",
|
|
304
|
-
type: "function",
|
|
305
292
|
},
|
|
306
293
|
{
|
|
294
|
+
type: "function",
|
|
295
|
+
name: "contractToAdapter",
|
|
307
296
|
inputs: [
|
|
308
297
|
{
|
|
309
|
-
internalType: "address",
|
|
310
298
|
name: "targetContract",
|
|
311
299
|
type: "address",
|
|
300
|
+
internalType: "address",
|
|
312
301
|
},
|
|
313
302
|
],
|
|
314
|
-
name: "contractToAdapter",
|
|
315
303
|
outputs: [
|
|
316
304
|
{
|
|
317
|
-
internalType: "address",
|
|
318
305
|
name: "adapter",
|
|
319
306
|
type: "address",
|
|
307
|
+
internalType: "address",
|
|
320
308
|
},
|
|
321
309
|
],
|
|
322
310
|
stateMutability: "view",
|
|
323
|
-
type: "function",
|
|
324
311
|
},
|
|
325
312
|
{
|
|
313
|
+
type: "function",
|
|
314
|
+
name: "creditAccountInfo",
|
|
326
315
|
inputs: [
|
|
327
316
|
{
|
|
328
|
-
internalType: "address",
|
|
329
317
|
name: "creditAccount",
|
|
330
318
|
type: "address",
|
|
319
|
+
internalType: "address",
|
|
331
320
|
},
|
|
332
321
|
],
|
|
333
|
-
name: "creditAccountInfo",
|
|
334
322
|
outputs: [
|
|
335
323
|
{
|
|
336
|
-
internalType: "uint256",
|
|
337
324
|
name: "debt",
|
|
338
325
|
type: "uint256",
|
|
326
|
+
internalType: "uint256",
|
|
339
327
|
},
|
|
340
328
|
{
|
|
341
|
-
internalType: "uint256",
|
|
342
329
|
name: "cumulativeIndexLastUpdate",
|
|
343
330
|
type: "uint256",
|
|
331
|
+
internalType: "uint256",
|
|
344
332
|
},
|
|
345
333
|
{
|
|
346
|
-
internalType: "uint128",
|
|
347
334
|
name: "cumulativeQuotaInterest",
|
|
348
335
|
type: "uint128",
|
|
336
|
+
internalType: "uint128",
|
|
349
337
|
},
|
|
350
338
|
{
|
|
351
|
-
internalType: "uint128",
|
|
352
339
|
name: "quotaFees",
|
|
353
340
|
type: "uint128",
|
|
341
|
+
internalType: "uint128",
|
|
354
342
|
},
|
|
355
343
|
{
|
|
356
|
-
internalType: "uint256",
|
|
357
344
|
name: "enabledTokensMask",
|
|
358
345
|
type: "uint256",
|
|
346
|
+
internalType: "uint256",
|
|
359
347
|
},
|
|
360
348
|
{
|
|
361
|
-
internalType: "uint16",
|
|
362
349
|
name: "flags",
|
|
363
350
|
type: "uint16",
|
|
351
|
+
internalType: "uint16",
|
|
364
352
|
},
|
|
365
353
|
{
|
|
366
|
-
internalType: "uint64",
|
|
367
354
|
name: "lastDebtUpdate",
|
|
368
355
|
type: "uint64",
|
|
356
|
+
internalType: "uint64",
|
|
369
357
|
},
|
|
370
358
|
{
|
|
371
|
-
internalType: "address",
|
|
372
359
|
name: "borrower",
|
|
373
360
|
type: "address",
|
|
361
|
+
internalType: "address",
|
|
374
362
|
},
|
|
375
363
|
],
|
|
376
364
|
stateMutability: "view",
|
|
377
|
-
type: "function",
|
|
378
365
|
},
|
|
379
366
|
{
|
|
367
|
+
type: "function",
|
|
368
|
+
name: "creditAccounts",
|
|
380
369
|
inputs: [
|
|
381
370
|
{
|
|
382
|
-
internalType: "uint256",
|
|
383
371
|
name: "offset",
|
|
384
372
|
type: "uint256",
|
|
373
|
+
internalType: "uint256",
|
|
385
374
|
},
|
|
386
375
|
{
|
|
387
|
-
internalType: "uint256",
|
|
388
376
|
name: "limit",
|
|
389
377
|
type: "uint256",
|
|
378
|
+
internalType: "uint256",
|
|
390
379
|
},
|
|
391
380
|
],
|
|
392
|
-
name: "creditAccounts",
|
|
393
381
|
outputs: [
|
|
394
382
|
{
|
|
395
|
-
internalType: "address[]",
|
|
396
383
|
name: "",
|
|
397
384
|
type: "address[]",
|
|
385
|
+
internalType: "address[]",
|
|
398
386
|
},
|
|
399
387
|
],
|
|
400
388
|
stateMutability: "view",
|
|
401
|
-
type: "function",
|
|
402
389
|
},
|
|
403
390
|
{
|
|
404
|
-
|
|
391
|
+
type: "function",
|
|
405
392
|
name: "creditAccounts",
|
|
393
|
+
inputs: [],
|
|
406
394
|
outputs: [
|
|
407
395
|
{
|
|
408
|
-
internalType: "address[]",
|
|
409
396
|
name: "",
|
|
410
397
|
type: "address[]",
|
|
398
|
+
internalType: "address[]",
|
|
411
399
|
},
|
|
412
400
|
],
|
|
413
401
|
stateMutability: "view",
|
|
414
|
-
type: "function",
|
|
415
402
|
},
|
|
416
403
|
{
|
|
417
|
-
|
|
404
|
+
type: "function",
|
|
418
405
|
name: "creditAccountsLen",
|
|
406
|
+
inputs: [],
|
|
419
407
|
outputs: [
|
|
420
408
|
{
|
|
421
|
-
internalType: "uint256",
|
|
422
409
|
name: "",
|
|
423
410
|
type: "uint256",
|
|
411
|
+
internalType: "uint256",
|
|
424
412
|
},
|
|
425
413
|
],
|
|
426
414
|
stateMutability: "view",
|
|
427
|
-
type: "function",
|
|
428
415
|
},
|
|
429
416
|
{
|
|
430
|
-
|
|
417
|
+
type: "function",
|
|
431
418
|
name: "creditConfigurator",
|
|
419
|
+
inputs: [],
|
|
432
420
|
outputs: [
|
|
433
421
|
{
|
|
434
|
-
internalType: "address",
|
|
435
422
|
name: "",
|
|
436
423
|
type: "address",
|
|
424
|
+
internalType: "address",
|
|
437
425
|
},
|
|
438
426
|
],
|
|
439
427
|
stateMutability: "view",
|
|
440
|
-
type: "function",
|
|
441
428
|
},
|
|
442
429
|
{
|
|
443
|
-
|
|
430
|
+
type: "function",
|
|
444
431
|
name: "creditFacade",
|
|
432
|
+
inputs: [],
|
|
445
433
|
outputs: [
|
|
446
434
|
{
|
|
447
|
-
internalType: "address",
|
|
448
435
|
name: "",
|
|
449
436
|
type: "address",
|
|
437
|
+
internalType: "address",
|
|
450
438
|
},
|
|
451
439
|
],
|
|
452
440
|
stateMutability: "view",
|
|
453
|
-
type: "function",
|
|
454
441
|
},
|
|
455
442
|
{
|
|
443
|
+
type: "function",
|
|
444
|
+
name: "enabledTokensMaskOf",
|
|
456
445
|
inputs: [
|
|
457
446
|
{
|
|
458
|
-
internalType: "address",
|
|
459
447
|
name: "creditAccount",
|
|
460
448
|
type: "address",
|
|
449
|
+
internalType: "address",
|
|
461
450
|
},
|
|
462
451
|
],
|
|
463
|
-
name: "enabledTokensMaskOf",
|
|
464
452
|
outputs: [
|
|
465
453
|
{
|
|
466
|
-
internalType: "uint256",
|
|
467
454
|
name: "",
|
|
468
455
|
type: "uint256",
|
|
456
|
+
internalType: "uint256",
|
|
469
457
|
},
|
|
470
458
|
],
|
|
471
459
|
stateMutability: "view",
|
|
472
|
-
type: "function",
|
|
473
460
|
},
|
|
474
461
|
{
|
|
462
|
+
type: "function",
|
|
463
|
+
name: "execute",
|
|
475
464
|
inputs: [
|
|
476
465
|
{
|
|
477
|
-
internalType: "bytes",
|
|
478
466
|
name: "data",
|
|
479
467
|
type: "bytes",
|
|
468
|
+
internalType: "bytes",
|
|
480
469
|
},
|
|
481
470
|
],
|
|
482
|
-
name: "execute",
|
|
483
471
|
outputs: [
|
|
484
472
|
{
|
|
485
|
-
internalType: "bytes",
|
|
486
473
|
name: "result",
|
|
487
474
|
type: "bytes",
|
|
475
|
+
internalType: "bytes",
|
|
488
476
|
},
|
|
489
477
|
],
|
|
490
478
|
stateMutability: "nonpayable",
|
|
491
|
-
type: "function",
|
|
492
479
|
},
|
|
493
480
|
{
|
|
481
|
+
type: "function",
|
|
482
|
+
name: "externalCall",
|
|
494
483
|
inputs: [
|
|
495
484
|
{
|
|
496
|
-
internalType: "address",
|
|
497
485
|
name: "creditAccount",
|
|
498
486
|
type: "address",
|
|
487
|
+
internalType: "address",
|
|
499
488
|
},
|
|
500
489
|
{
|
|
501
|
-
internalType: "address",
|
|
502
490
|
name: "target",
|
|
503
491
|
type: "address",
|
|
492
|
+
internalType: "address",
|
|
504
493
|
},
|
|
505
494
|
{
|
|
506
|
-
internalType: "bytes",
|
|
507
495
|
name: "callData",
|
|
508
496
|
type: "bytes",
|
|
497
|
+
internalType: "bytes",
|
|
509
498
|
},
|
|
510
499
|
],
|
|
511
|
-
name: "externalCall",
|
|
512
500
|
outputs: [
|
|
513
501
|
{
|
|
514
|
-
internalType: "bytes",
|
|
515
502
|
name: "result",
|
|
516
503
|
type: "bytes",
|
|
504
|
+
internalType: "bytes",
|
|
517
505
|
},
|
|
518
506
|
],
|
|
519
507
|
stateMutability: "nonpayable",
|
|
520
|
-
type: "function",
|
|
521
508
|
},
|
|
522
509
|
{
|
|
523
|
-
|
|
510
|
+
type: "function",
|
|
524
511
|
name: "fees",
|
|
512
|
+
inputs: [],
|
|
525
513
|
outputs: [
|
|
526
514
|
{
|
|
527
|
-
internalType: "uint16",
|
|
528
515
|
name: "feeInterest",
|
|
529
516
|
type: "uint16",
|
|
517
|
+
internalType: "uint16",
|
|
530
518
|
},
|
|
531
519
|
{
|
|
532
|
-
internalType: "uint16",
|
|
533
520
|
name: "feeLiquidation",
|
|
534
521
|
type: "uint16",
|
|
522
|
+
internalType: "uint16",
|
|
535
523
|
},
|
|
536
524
|
{
|
|
537
|
-
internalType: "uint16",
|
|
538
525
|
name: "liquidationDiscount",
|
|
539
526
|
type: "uint16",
|
|
527
|
+
internalType: "uint16",
|
|
540
528
|
},
|
|
541
529
|
{
|
|
542
|
-
internalType: "uint16",
|
|
543
530
|
name: "feeLiquidationExpired",
|
|
544
531
|
type: "uint16",
|
|
532
|
+
internalType: "uint16",
|
|
545
533
|
},
|
|
546
534
|
{
|
|
547
|
-
internalType: "uint16",
|
|
548
535
|
name: "liquidationDiscountExpired",
|
|
549
536
|
type: "uint16",
|
|
537
|
+
internalType: "uint16",
|
|
550
538
|
},
|
|
551
539
|
],
|
|
552
540
|
stateMutability: "view",
|
|
553
|
-
type: "function",
|
|
554
541
|
},
|
|
555
542
|
{
|
|
543
|
+
type: "function",
|
|
544
|
+
name: "flagsOf",
|
|
556
545
|
inputs: [
|
|
557
546
|
{
|
|
558
|
-
internalType: "address",
|
|
559
547
|
name: "creditAccount",
|
|
560
548
|
type: "address",
|
|
549
|
+
internalType: "address",
|
|
561
550
|
},
|
|
562
551
|
],
|
|
563
|
-
name: "flagsOf",
|
|
564
552
|
outputs: [
|
|
565
553
|
{
|
|
566
|
-
internalType: "uint16",
|
|
567
554
|
name: "",
|
|
568
555
|
type: "uint16",
|
|
556
|
+
internalType: "uint16",
|
|
569
557
|
},
|
|
570
558
|
],
|
|
571
559
|
stateMutability: "view",
|
|
572
|
-
type: "function",
|
|
573
560
|
},
|
|
574
561
|
{
|
|
562
|
+
type: "function",
|
|
563
|
+
name: "fullCollateralCheck",
|
|
575
564
|
inputs: [
|
|
576
565
|
{
|
|
577
|
-
internalType: "address",
|
|
578
566
|
name: "creditAccount",
|
|
579
567
|
type: "address",
|
|
568
|
+
internalType: "address",
|
|
580
569
|
},
|
|
581
570
|
{
|
|
582
|
-
internalType: "uint256",
|
|
583
571
|
name: "enabledTokensMask",
|
|
584
572
|
type: "uint256",
|
|
573
|
+
internalType: "uint256",
|
|
585
574
|
},
|
|
586
575
|
{
|
|
587
|
-
internalType: "uint256[]",
|
|
588
576
|
name: "collateralHints",
|
|
589
577
|
type: "uint256[]",
|
|
578
|
+
internalType: "uint256[]",
|
|
590
579
|
},
|
|
591
580
|
{
|
|
592
|
-
internalType: "uint16",
|
|
593
581
|
name: "minHealthFactor",
|
|
594
582
|
type: "uint16",
|
|
583
|
+
internalType: "uint16",
|
|
595
584
|
},
|
|
596
585
|
{
|
|
597
|
-
internalType: "bool",
|
|
598
586
|
name: "useSafePrices",
|
|
599
587
|
type: "bool",
|
|
588
|
+
internalType: "bool",
|
|
600
589
|
},
|
|
601
590
|
],
|
|
602
|
-
name: "fullCollateralCheck",
|
|
603
591
|
outputs: [
|
|
604
592
|
{
|
|
605
|
-
internalType: "uint256",
|
|
606
593
|
name: "enabledTokensMaskAfter",
|
|
607
594
|
type: "uint256",
|
|
595
|
+
internalType: "uint256",
|
|
608
596
|
},
|
|
609
597
|
],
|
|
610
598
|
stateMutability: "nonpayable",
|
|
611
|
-
type: "function",
|
|
612
599
|
},
|
|
613
600
|
{
|
|
614
|
-
|
|
601
|
+
type: "function",
|
|
615
602
|
name: "getActiveCreditAccountOrRevert",
|
|
603
|
+
inputs: [],
|
|
616
604
|
outputs: [
|
|
617
605
|
{
|
|
618
|
-
internalType: "address",
|
|
619
606
|
name: "creditAccount",
|
|
620
607
|
type: "address",
|
|
608
|
+
internalType: "address",
|
|
621
609
|
},
|
|
622
610
|
],
|
|
623
611
|
stateMutability: "view",
|
|
624
|
-
type: "function",
|
|
625
612
|
},
|
|
626
613
|
{
|
|
614
|
+
type: "function",
|
|
615
|
+
name: "getBorrowerOrRevert",
|
|
627
616
|
inputs: [
|
|
628
617
|
{
|
|
629
|
-
internalType: "address",
|
|
630
618
|
name: "creditAccount",
|
|
631
619
|
type: "address",
|
|
620
|
+
internalType: "address",
|
|
632
621
|
},
|
|
633
622
|
],
|
|
634
|
-
name: "getBorrowerOrRevert",
|
|
635
623
|
outputs: [
|
|
636
624
|
{
|
|
637
|
-
internalType: "address",
|
|
638
625
|
name: "borrower",
|
|
639
626
|
type: "address",
|
|
627
|
+
internalType: "address",
|
|
640
628
|
},
|
|
641
629
|
],
|
|
642
630
|
stateMutability: "view",
|
|
643
|
-
type: "function",
|
|
644
631
|
},
|
|
645
632
|
{
|
|
633
|
+
type: "function",
|
|
634
|
+
name: "getTokenByMask",
|
|
646
635
|
inputs: [
|
|
647
636
|
{
|
|
648
|
-
internalType: "uint256",
|
|
649
637
|
name: "tokenMask",
|
|
650
638
|
type: "uint256",
|
|
639
|
+
internalType: "uint256",
|
|
651
640
|
},
|
|
652
641
|
],
|
|
653
|
-
name: "getTokenByMask",
|
|
654
642
|
outputs: [
|
|
655
643
|
{
|
|
656
|
-
internalType: "address",
|
|
657
644
|
name: "token",
|
|
658
645
|
type: "address",
|
|
646
|
+
internalType: "address",
|
|
659
647
|
},
|
|
660
648
|
],
|
|
661
649
|
stateMutability: "view",
|
|
662
|
-
type: "function",
|
|
663
650
|
},
|
|
664
651
|
{
|
|
652
|
+
type: "function",
|
|
653
|
+
name: "getTokenMaskOrRevert",
|
|
665
654
|
inputs: [
|
|
666
655
|
{
|
|
667
|
-
internalType: "address",
|
|
668
656
|
name: "token",
|
|
669
657
|
type: "address",
|
|
658
|
+
internalType: "address",
|
|
670
659
|
},
|
|
671
660
|
],
|
|
672
|
-
name: "getTokenMaskOrRevert",
|
|
673
661
|
outputs: [
|
|
674
662
|
{
|
|
675
|
-
internalType: "uint256",
|
|
676
663
|
name: "tokenMask",
|
|
677
664
|
type: "uint256",
|
|
665
|
+
internalType: "uint256",
|
|
678
666
|
},
|
|
679
667
|
],
|
|
680
668
|
stateMutability: "view",
|
|
681
|
-
type: "function",
|
|
682
669
|
},
|
|
683
670
|
{
|
|
671
|
+
type: "function",
|
|
672
|
+
name: "isLiquidatable",
|
|
684
673
|
inputs: [
|
|
685
674
|
{
|
|
686
|
-
internalType: "address",
|
|
687
675
|
name: "creditAccount",
|
|
688
676
|
type: "address",
|
|
677
|
+
internalType: "address",
|
|
689
678
|
},
|
|
690
679
|
{
|
|
691
|
-
internalType: "uint16",
|
|
692
680
|
name: "minHealthFactor",
|
|
693
681
|
type: "uint16",
|
|
682
|
+
internalType: "uint16",
|
|
694
683
|
},
|
|
695
684
|
],
|
|
696
|
-
name: "isLiquidatable",
|
|
697
685
|
outputs: [
|
|
698
686
|
{
|
|
699
|
-
internalType: "bool",
|
|
700
687
|
name: "",
|
|
701
688
|
type: "bool",
|
|
689
|
+
internalType: "bool",
|
|
702
690
|
},
|
|
703
691
|
],
|
|
704
692
|
stateMutability: "view",
|
|
705
|
-
type: "function",
|
|
706
693
|
},
|
|
707
694
|
{
|
|
695
|
+
type: "function",
|
|
696
|
+
name: "liquidateCreditAccount",
|
|
708
697
|
inputs: [
|
|
709
698
|
{
|
|
710
|
-
internalType: "address",
|
|
711
699
|
name: "creditAccount",
|
|
712
700
|
type: "address",
|
|
701
|
+
internalType: "address",
|
|
713
702
|
},
|
|
714
703
|
{
|
|
704
|
+
name: "collateralDebtData",
|
|
705
|
+
type: "tuple",
|
|
706
|
+
internalType: "struct CollateralDebtData",
|
|
715
707
|
components: [
|
|
716
708
|
{
|
|
717
|
-
internalType: "uint256",
|
|
718
709
|
name: "debt",
|
|
719
710
|
type: "uint256",
|
|
711
|
+
internalType: "uint256",
|
|
720
712
|
},
|
|
721
713
|
{
|
|
722
|
-
internalType: "uint256",
|
|
723
714
|
name: "cumulativeIndexNow",
|
|
724
715
|
type: "uint256",
|
|
716
|
+
internalType: "uint256",
|
|
725
717
|
},
|
|
726
718
|
{
|
|
727
|
-
internalType: "uint256",
|
|
728
719
|
name: "cumulativeIndexLastUpdate",
|
|
729
720
|
type: "uint256",
|
|
721
|
+
internalType: "uint256",
|
|
730
722
|
},
|
|
731
723
|
{
|
|
732
|
-
internalType: "uint128",
|
|
733
724
|
name: "cumulativeQuotaInterest",
|
|
734
725
|
type: "uint128",
|
|
726
|
+
internalType: "uint128",
|
|
735
727
|
},
|
|
736
728
|
{
|
|
737
|
-
internalType: "uint256",
|
|
738
729
|
name: "accruedInterest",
|
|
739
730
|
type: "uint256",
|
|
731
|
+
internalType: "uint256",
|
|
740
732
|
},
|
|
741
733
|
{
|
|
742
|
-
internalType: "uint256",
|
|
743
734
|
name: "accruedFees",
|
|
744
735
|
type: "uint256",
|
|
736
|
+
internalType: "uint256",
|
|
745
737
|
},
|
|
746
738
|
{
|
|
747
|
-
internalType: "uint256",
|
|
748
739
|
name: "totalDebtUSD",
|
|
749
740
|
type: "uint256",
|
|
741
|
+
internalType: "uint256",
|
|
750
742
|
},
|
|
751
743
|
{
|
|
752
|
-
internalType: "uint256",
|
|
753
744
|
name: "totalValue",
|
|
754
745
|
type: "uint256",
|
|
746
|
+
internalType: "uint256",
|
|
755
747
|
},
|
|
756
748
|
{
|
|
757
|
-
internalType: "uint256",
|
|
758
749
|
name: "totalValueUSD",
|
|
759
750
|
type: "uint256",
|
|
751
|
+
internalType: "uint256",
|
|
760
752
|
},
|
|
761
753
|
{
|
|
762
|
-
internalType: "uint256",
|
|
763
754
|
name: "twvUSD",
|
|
764
755
|
type: "uint256",
|
|
756
|
+
internalType: "uint256",
|
|
765
757
|
},
|
|
766
758
|
{
|
|
767
|
-
internalType: "uint256",
|
|
768
759
|
name: "enabledTokensMask",
|
|
769
760
|
type: "uint256",
|
|
761
|
+
internalType: "uint256",
|
|
770
762
|
},
|
|
771
763
|
{
|
|
772
|
-
internalType: "uint256",
|
|
773
764
|
name: "quotedTokensMask",
|
|
774
765
|
type: "uint256",
|
|
766
|
+
internalType: "uint256",
|
|
775
767
|
},
|
|
776
768
|
{
|
|
777
|
-
internalType: "address[]",
|
|
778
769
|
name: "quotedTokens",
|
|
779
770
|
type: "address[]",
|
|
771
|
+
internalType: "address[]",
|
|
780
772
|
},
|
|
781
773
|
{
|
|
782
|
-
internalType: "address",
|
|
783
774
|
name: "_poolQuotaKeeper",
|
|
784
775
|
type: "address",
|
|
776
|
+
internalType: "address",
|
|
785
777
|
},
|
|
786
778
|
],
|
|
787
|
-
internalType: "struct CollateralDebtData",
|
|
788
|
-
name: "collateralDebtData",
|
|
789
|
-
type: "tuple",
|
|
790
779
|
},
|
|
791
780
|
{
|
|
792
|
-
internalType: "address",
|
|
793
781
|
name: "to",
|
|
794
782
|
type: "address",
|
|
783
|
+
internalType: "address",
|
|
795
784
|
},
|
|
796
785
|
{
|
|
797
|
-
internalType: "bool",
|
|
798
786
|
name: "isExpired",
|
|
799
787
|
type: "bool",
|
|
788
|
+
internalType: "bool",
|
|
800
789
|
},
|
|
801
790
|
],
|
|
802
|
-
name: "liquidateCreditAccount",
|
|
803
791
|
outputs: [
|
|
804
792
|
{
|
|
805
|
-
internalType: "uint256",
|
|
806
793
|
name: "remainingFunds",
|
|
807
794
|
type: "uint256",
|
|
795
|
+
internalType: "uint256",
|
|
808
796
|
},
|
|
809
797
|
{
|
|
810
|
-
internalType: "uint256",
|
|
811
798
|
name: "loss",
|
|
812
799
|
type: "uint256",
|
|
800
|
+
internalType: "uint256",
|
|
813
801
|
},
|
|
814
802
|
],
|
|
815
803
|
stateMutability: "nonpayable",
|
|
816
|
-
type: "function",
|
|
817
804
|
},
|
|
818
805
|
{
|
|
806
|
+
type: "function",
|
|
807
|
+
name: "liquidationThresholds",
|
|
819
808
|
inputs: [
|
|
820
809
|
{
|
|
821
|
-
internalType: "address",
|
|
822
810
|
name: "token",
|
|
823
811
|
type: "address",
|
|
812
|
+
internalType: "address",
|
|
824
813
|
},
|
|
825
814
|
],
|
|
826
|
-
name: "liquidationThresholds",
|
|
827
815
|
outputs: [
|
|
828
816
|
{
|
|
829
|
-
internalType: "uint16",
|
|
830
817
|
name: "lt",
|
|
831
818
|
type: "uint16",
|
|
819
|
+
internalType: "uint16",
|
|
832
820
|
},
|
|
833
821
|
],
|
|
834
822
|
stateMutability: "view",
|
|
835
|
-
type: "function",
|
|
836
823
|
},
|
|
837
824
|
{
|
|
825
|
+
type: "function",
|
|
826
|
+
name: "ltParams",
|
|
838
827
|
inputs: [
|
|
839
828
|
{
|
|
840
|
-
internalType: "address",
|
|
841
829
|
name: "token",
|
|
842
830
|
type: "address",
|
|
831
|
+
internalType: "address",
|
|
843
832
|
},
|
|
844
833
|
],
|
|
845
|
-
name: "ltParams",
|
|
846
834
|
outputs: [
|
|
847
835
|
{
|
|
848
|
-
internalType: "uint16",
|
|
849
836
|
name: "ltInitial",
|
|
850
837
|
type: "uint16",
|
|
838
|
+
internalType: "uint16",
|
|
851
839
|
},
|
|
852
840
|
{
|
|
853
|
-
internalType: "uint16",
|
|
854
841
|
name: "ltFinal",
|
|
855
842
|
type: "uint16",
|
|
843
|
+
internalType: "uint16",
|
|
856
844
|
},
|
|
857
845
|
{
|
|
858
|
-
internalType: "uint40",
|
|
859
846
|
name: "timestampRampStart",
|
|
860
847
|
type: "uint40",
|
|
848
|
+
internalType: "uint40",
|
|
861
849
|
},
|
|
862
850
|
{
|
|
863
|
-
internalType: "uint24",
|
|
864
851
|
name: "rampDuration",
|
|
865
852
|
type: "uint24",
|
|
853
|
+
internalType: "uint24",
|
|
866
854
|
},
|
|
867
855
|
],
|
|
868
856
|
stateMutability: "view",
|
|
869
|
-
type: "function",
|
|
870
857
|
},
|
|
871
858
|
{
|
|
859
|
+
type: "function",
|
|
860
|
+
name: "manageDebt",
|
|
872
861
|
inputs: [
|
|
873
862
|
{
|
|
874
|
-
internalType: "address",
|
|
875
863
|
name: "creditAccount",
|
|
876
864
|
type: "address",
|
|
865
|
+
internalType: "address",
|
|
877
866
|
},
|
|
878
867
|
{
|
|
879
|
-
internalType: "uint256",
|
|
880
868
|
name: "amount",
|
|
881
869
|
type: "uint256",
|
|
870
|
+
internalType: "uint256",
|
|
882
871
|
},
|
|
883
872
|
{
|
|
884
|
-
internalType: "uint256",
|
|
885
873
|
name: "enabledTokensMask",
|
|
886
874
|
type: "uint256",
|
|
875
|
+
internalType: "uint256",
|
|
887
876
|
},
|
|
888
877
|
{
|
|
889
|
-
internalType: "enum ManageDebtAction",
|
|
890
878
|
name: "action",
|
|
891
879
|
type: "uint8",
|
|
880
|
+
internalType: "enum ManageDebtAction",
|
|
892
881
|
},
|
|
893
882
|
],
|
|
894
|
-
name: "manageDebt",
|
|
895
883
|
outputs: [
|
|
896
884
|
{
|
|
897
|
-
internalType: "uint256",
|
|
898
885
|
name: "newDebt",
|
|
899
886
|
type: "uint256",
|
|
887
|
+
internalType: "uint256",
|
|
900
888
|
},
|
|
901
889
|
{
|
|
902
|
-
internalType: "uint256",
|
|
903
890
|
name: "tokensToEnable",
|
|
904
891
|
type: "uint256",
|
|
892
|
+
internalType: "uint256",
|
|
905
893
|
},
|
|
906
894
|
{
|
|
907
|
-
internalType: "uint256",
|
|
908
895
|
name: "tokensToDisable",
|
|
909
896
|
type: "uint256",
|
|
897
|
+
internalType: "uint256",
|
|
910
898
|
},
|
|
911
899
|
],
|
|
912
900
|
stateMutability: "nonpayable",
|
|
913
|
-
type: "function",
|
|
914
901
|
},
|
|
915
902
|
{
|
|
916
|
-
|
|
903
|
+
type: "function",
|
|
917
904
|
name: "maxEnabledTokens",
|
|
905
|
+
inputs: [],
|
|
918
906
|
outputs: [
|
|
919
907
|
{
|
|
920
|
-
internalType: "uint8",
|
|
921
908
|
name: "",
|
|
922
909
|
type: "uint8",
|
|
910
|
+
internalType: "uint8",
|
|
923
911
|
},
|
|
924
912
|
],
|
|
925
913
|
stateMutability: "view",
|
|
926
|
-
type: "function",
|
|
927
914
|
},
|
|
928
915
|
{
|
|
929
|
-
|
|
916
|
+
type: "function",
|
|
930
917
|
name: "name",
|
|
918
|
+
inputs: [],
|
|
931
919
|
outputs: [
|
|
932
920
|
{
|
|
933
|
-
internalType: "string",
|
|
934
921
|
name: "",
|
|
935
922
|
type: "string",
|
|
923
|
+
internalType: "string",
|
|
936
924
|
},
|
|
937
925
|
],
|
|
938
926
|
stateMutability: "view",
|
|
939
|
-
type: "function",
|
|
940
927
|
},
|
|
941
928
|
{
|
|
929
|
+
type: "function",
|
|
930
|
+
name: "openCreditAccount",
|
|
942
931
|
inputs: [
|
|
943
932
|
{
|
|
944
|
-
internalType: "address",
|
|
945
933
|
name: "onBehalfOf",
|
|
946
934
|
type: "address",
|
|
935
|
+
internalType: "address",
|
|
947
936
|
},
|
|
948
937
|
],
|
|
949
|
-
name: "openCreditAccount",
|
|
950
938
|
outputs: [
|
|
951
939
|
{
|
|
952
|
-
internalType: "address",
|
|
953
940
|
name: "",
|
|
954
941
|
type: "address",
|
|
942
|
+
internalType: "address",
|
|
955
943
|
},
|
|
956
944
|
],
|
|
957
945
|
stateMutability: "nonpayable",
|
|
958
|
-
type: "function",
|
|
959
946
|
},
|
|
960
947
|
{
|
|
961
|
-
|
|
948
|
+
type: "function",
|
|
962
949
|
name: "pool",
|
|
950
|
+
inputs: [],
|
|
963
951
|
outputs: [
|
|
964
952
|
{
|
|
965
|
-
internalType: "address",
|
|
966
953
|
name: "",
|
|
967
954
|
type: "address",
|
|
955
|
+
internalType: "address",
|
|
968
956
|
},
|
|
969
957
|
],
|
|
970
958
|
stateMutability: "view",
|
|
971
|
-
type: "function",
|
|
972
959
|
},
|
|
973
960
|
{
|
|
974
|
-
|
|
961
|
+
type: "function",
|
|
975
962
|
name: "poolQuotaKeeper",
|
|
963
|
+
inputs: [],
|
|
976
964
|
outputs: [
|
|
977
965
|
{
|
|
978
|
-
internalType: "address",
|
|
979
966
|
name: "",
|
|
980
967
|
type: "address",
|
|
968
|
+
internalType: "address",
|
|
981
969
|
},
|
|
982
970
|
],
|
|
983
971
|
stateMutability: "view",
|
|
984
|
-
type: "function",
|
|
985
972
|
},
|
|
986
973
|
{
|
|
987
|
-
|
|
974
|
+
type: "function",
|
|
988
975
|
name: "priceOracle",
|
|
976
|
+
inputs: [],
|
|
989
977
|
outputs: [
|
|
990
978
|
{
|
|
991
|
-
internalType: "address",
|
|
992
979
|
name: "",
|
|
993
980
|
type: "address",
|
|
981
|
+
internalType: "address",
|
|
994
982
|
},
|
|
995
983
|
],
|
|
996
984
|
stateMutability: "view",
|
|
997
|
-
type: "function",
|
|
998
985
|
},
|
|
999
986
|
{
|
|
1000
|
-
|
|
987
|
+
type: "function",
|
|
1001
988
|
name: "quotedTokensMask",
|
|
989
|
+
inputs: [],
|
|
1002
990
|
outputs: [
|
|
1003
991
|
{
|
|
1004
|
-
internalType: "uint256",
|
|
1005
992
|
name: "",
|
|
1006
993
|
type: "uint256",
|
|
994
|
+
internalType: "uint256",
|
|
1007
995
|
},
|
|
1008
996
|
],
|
|
1009
997
|
stateMutability: "view",
|
|
1010
|
-
type: "function",
|
|
1011
998
|
},
|
|
1012
999
|
{
|
|
1000
|
+
type: "function",
|
|
1001
|
+
name: "revokeAdapterAllowances",
|
|
1013
1002
|
inputs: [
|
|
1014
1003
|
{
|
|
1015
|
-
internalType: "address",
|
|
1016
1004
|
name: "creditAccount",
|
|
1017
1005
|
type: "address",
|
|
1006
|
+
internalType: "address",
|
|
1018
1007
|
},
|
|
1019
1008
|
{
|
|
1009
|
+
name: "revocations",
|
|
1010
|
+
type: "tuple[]",
|
|
1011
|
+
internalType: "struct RevocationPair[]",
|
|
1020
1012
|
components: [
|
|
1021
1013
|
{
|
|
1022
|
-
internalType: "address",
|
|
1023
1014
|
name: "spender",
|
|
1024
1015
|
type: "address",
|
|
1016
|
+
internalType: "address",
|
|
1025
1017
|
},
|
|
1026
1018
|
{
|
|
1027
|
-
internalType: "address",
|
|
1028
1019
|
name: "token",
|
|
1029
1020
|
type: "address",
|
|
1021
|
+
internalType: "address",
|
|
1030
1022
|
},
|
|
1031
1023
|
],
|
|
1032
|
-
internalType: "struct RevocationPair[]",
|
|
1033
|
-
name: "revocations",
|
|
1034
|
-
type: "tuple[]",
|
|
1035
1024
|
},
|
|
1036
1025
|
],
|
|
1037
|
-
name: "revokeAdapterAllowances",
|
|
1038
1026
|
outputs: [],
|
|
1039
1027
|
stateMutability: "nonpayable",
|
|
1040
|
-
type: "function",
|
|
1041
1028
|
},
|
|
1042
1029
|
{
|
|
1030
|
+
type: "function",
|
|
1031
|
+
name: "setActiveCreditAccount",
|
|
1043
1032
|
inputs: [
|
|
1044
1033
|
{
|
|
1045
|
-
internalType: "address",
|
|
1046
1034
|
name: "creditAccount",
|
|
1047
1035
|
type: "address",
|
|
1036
|
+
internalType: "address",
|
|
1048
1037
|
},
|
|
1049
1038
|
],
|
|
1050
|
-
name: "setActiveCreditAccount",
|
|
1051
1039
|
outputs: [],
|
|
1052
1040
|
stateMutability: "nonpayable",
|
|
1053
|
-
type: "function",
|
|
1054
1041
|
},
|
|
1055
1042
|
{
|
|
1043
|
+
type: "function",
|
|
1044
|
+
name: "setCollateralTokenData",
|
|
1056
1045
|
inputs: [
|
|
1057
1046
|
{
|
|
1058
|
-
internalType: "address",
|
|
1059
1047
|
name: "token",
|
|
1060
1048
|
type: "address",
|
|
1049
|
+
internalType: "address",
|
|
1061
1050
|
},
|
|
1062
1051
|
{
|
|
1063
|
-
internalType: "uint16",
|
|
1064
1052
|
name: "ltInitial",
|
|
1065
1053
|
type: "uint16",
|
|
1054
|
+
internalType: "uint16",
|
|
1066
1055
|
},
|
|
1067
1056
|
{
|
|
1068
|
-
internalType: "uint16",
|
|
1069
1057
|
name: "ltFinal",
|
|
1070
1058
|
type: "uint16",
|
|
1059
|
+
internalType: "uint16",
|
|
1071
1060
|
},
|
|
1072
1061
|
{
|
|
1073
|
-
internalType: "uint40",
|
|
1074
1062
|
name: "timestampRampStart",
|
|
1075
1063
|
type: "uint40",
|
|
1064
|
+
internalType: "uint40",
|
|
1076
1065
|
},
|
|
1077
1066
|
{
|
|
1078
|
-
internalType: "uint24",
|
|
1079
1067
|
name: "rampDuration",
|
|
1080
1068
|
type: "uint24",
|
|
1069
|
+
internalType: "uint24",
|
|
1081
1070
|
},
|
|
1082
1071
|
],
|
|
1083
|
-
name: "setCollateralTokenData",
|
|
1084
1072
|
outputs: [],
|
|
1085
1073
|
stateMutability: "nonpayable",
|
|
1086
|
-
type: "function",
|
|
1087
1074
|
},
|
|
1088
1075
|
{
|
|
1076
|
+
type: "function",
|
|
1077
|
+
name: "setContractAllowance",
|
|
1089
1078
|
inputs: [
|
|
1090
1079
|
{
|
|
1091
|
-
internalType: "address",
|
|
1092
1080
|
name: "adapter",
|
|
1093
1081
|
type: "address",
|
|
1082
|
+
internalType: "address",
|
|
1094
1083
|
},
|
|
1095
1084
|
{
|
|
1096
|
-
internalType: "address",
|
|
1097
1085
|
name: "targetContract",
|
|
1098
1086
|
type: "address",
|
|
1087
|
+
internalType: "address",
|
|
1099
1088
|
},
|
|
1100
1089
|
],
|
|
1101
|
-
name: "setContractAllowance",
|
|
1102
1090
|
outputs: [],
|
|
1103
1091
|
stateMutability: "nonpayable",
|
|
1104
|
-
type: "function",
|
|
1105
1092
|
},
|
|
1106
1093
|
{
|
|
1094
|
+
type: "function",
|
|
1095
|
+
name: "setCreditConfigurator",
|
|
1107
1096
|
inputs: [
|
|
1108
1097
|
{
|
|
1109
|
-
internalType: "address",
|
|
1110
1098
|
name: "creditConfigurator",
|
|
1111
1099
|
type: "address",
|
|
1100
|
+
internalType: "address",
|
|
1112
1101
|
},
|
|
1113
1102
|
],
|
|
1114
|
-
name: "setCreditConfigurator",
|
|
1115
1103
|
outputs: [],
|
|
1116
1104
|
stateMutability: "nonpayable",
|
|
1117
|
-
type: "function",
|
|
1118
1105
|
},
|
|
1119
1106
|
{
|
|
1107
|
+
type: "function",
|
|
1108
|
+
name: "setCreditFacade",
|
|
1120
1109
|
inputs: [
|
|
1121
1110
|
{
|
|
1122
|
-
internalType: "address",
|
|
1123
1111
|
name: "creditFacade",
|
|
1124
1112
|
type: "address",
|
|
1113
|
+
internalType: "address",
|
|
1125
1114
|
},
|
|
1126
1115
|
],
|
|
1127
|
-
name: "setCreditFacade",
|
|
1128
1116
|
outputs: [],
|
|
1129
1117
|
stateMutability: "nonpayable",
|
|
1130
|
-
type: "function",
|
|
1131
1118
|
},
|
|
1132
1119
|
{
|
|
1120
|
+
type: "function",
|
|
1121
|
+
name: "setFees",
|
|
1133
1122
|
inputs: [
|
|
1134
1123
|
{
|
|
1135
|
-
internalType: "uint16",
|
|
1136
1124
|
name: "feeInterest",
|
|
1137
1125
|
type: "uint16",
|
|
1126
|
+
internalType: "uint16",
|
|
1138
1127
|
},
|
|
1139
1128
|
{
|
|
1140
|
-
internalType: "uint16",
|
|
1141
1129
|
name: "feeLiquidation",
|
|
1142
1130
|
type: "uint16",
|
|
1131
|
+
internalType: "uint16",
|
|
1143
1132
|
},
|
|
1144
1133
|
{
|
|
1145
|
-
internalType: "uint16",
|
|
1146
1134
|
name: "liquidationDiscount",
|
|
1147
1135
|
type: "uint16",
|
|
1136
|
+
internalType: "uint16",
|
|
1148
1137
|
},
|
|
1149
1138
|
{
|
|
1150
|
-
internalType: "uint16",
|
|
1151
1139
|
name: "feeLiquidationExpired",
|
|
1152
1140
|
type: "uint16",
|
|
1141
|
+
internalType: "uint16",
|
|
1153
1142
|
},
|
|
1154
1143
|
{
|
|
1155
|
-
internalType: "uint16",
|
|
1156
1144
|
name: "liquidationDiscountExpired",
|
|
1157
1145
|
type: "uint16",
|
|
1146
|
+
internalType: "uint16",
|
|
1158
1147
|
},
|
|
1159
1148
|
],
|
|
1160
|
-
name: "setFees",
|
|
1161
1149
|
outputs: [],
|
|
1162
1150
|
stateMutability: "nonpayable",
|
|
1163
|
-
type: "function",
|
|
1164
1151
|
},
|
|
1165
1152
|
{
|
|
1153
|
+
type: "function",
|
|
1154
|
+
name: "setFlagFor",
|
|
1166
1155
|
inputs: [
|
|
1167
1156
|
{
|
|
1168
|
-
internalType: "address",
|
|
1169
1157
|
name: "creditAccount",
|
|
1170
1158
|
type: "address",
|
|
1159
|
+
internalType: "address",
|
|
1171
1160
|
},
|
|
1172
1161
|
{
|
|
1173
|
-
internalType: "uint16",
|
|
1174
1162
|
name: "flag",
|
|
1175
1163
|
type: "uint16",
|
|
1164
|
+
internalType: "uint16",
|
|
1176
1165
|
},
|
|
1177
1166
|
{
|
|
1178
|
-
internalType: "bool",
|
|
1179
1167
|
name: "value",
|
|
1180
1168
|
type: "bool",
|
|
1169
|
+
internalType: "bool",
|
|
1181
1170
|
},
|
|
1182
1171
|
],
|
|
1183
|
-
name: "setFlagFor",
|
|
1184
1172
|
outputs: [],
|
|
1185
1173
|
stateMutability: "nonpayable",
|
|
1186
|
-
type: "function",
|
|
1187
1174
|
},
|
|
1188
1175
|
{
|
|
1176
|
+
type: "function",
|
|
1177
|
+
name: "setMaxEnabledTokens",
|
|
1189
1178
|
inputs: [
|
|
1190
1179
|
{
|
|
1191
|
-
internalType: "uint8",
|
|
1192
1180
|
name: "maxEnabledTokens",
|
|
1193
1181
|
type: "uint8",
|
|
1182
|
+
internalType: "uint8",
|
|
1194
1183
|
},
|
|
1195
1184
|
],
|
|
1196
|
-
name: "setMaxEnabledTokens",
|
|
1197
1185
|
outputs: [],
|
|
1198
1186
|
stateMutability: "nonpayable",
|
|
1199
|
-
type: "function",
|
|
1200
1187
|
},
|
|
1201
1188
|
{
|
|
1189
|
+
type: "function",
|
|
1190
|
+
name: "setPriceOracle",
|
|
1202
1191
|
inputs: [
|
|
1203
1192
|
{
|
|
1204
|
-
internalType: "address",
|
|
1205
1193
|
name: "priceOracle",
|
|
1206
1194
|
type: "address",
|
|
1195
|
+
internalType: "address",
|
|
1207
1196
|
},
|
|
1208
1197
|
],
|
|
1209
|
-
name: "setPriceOracle",
|
|
1210
1198
|
outputs: [],
|
|
1211
1199
|
stateMutability: "nonpayable",
|
|
1212
|
-
type: "function",
|
|
1213
1200
|
},
|
|
1214
1201
|
{
|
|
1202
|
+
type: "function",
|
|
1203
|
+
name: "setQuotedMask",
|
|
1215
1204
|
inputs: [
|
|
1216
1205
|
{
|
|
1217
|
-
internalType: "uint256",
|
|
1218
1206
|
name: "quotedTokensMask",
|
|
1219
1207
|
type: "uint256",
|
|
1208
|
+
internalType: "uint256",
|
|
1220
1209
|
},
|
|
1221
1210
|
],
|
|
1222
|
-
name: "setQuotedMask",
|
|
1223
1211
|
outputs: [],
|
|
1224
1212
|
stateMutability: "nonpayable",
|
|
1225
|
-
type: "function",
|
|
1226
1213
|
},
|
|
1227
1214
|
{
|
|
1228
|
-
|
|
1215
|
+
type: "function",
|
|
1229
1216
|
name: "underlying",
|
|
1217
|
+
inputs: [],
|
|
1230
1218
|
outputs: [
|
|
1231
1219
|
{
|
|
1232
|
-
internalType: "address",
|
|
1233
1220
|
name: "",
|
|
1234
1221
|
type: "address",
|
|
1222
|
+
internalType: "address",
|
|
1235
1223
|
},
|
|
1236
1224
|
],
|
|
1237
1225
|
stateMutability: "view",
|
|
1238
|
-
type: "function",
|
|
1239
1226
|
},
|
|
1240
1227
|
{
|
|
1228
|
+
type: "function",
|
|
1229
|
+
name: "updateQuota",
|
|
1241
1230
|
inputs: [
|
|
1242
1231
|
{
|
|
1243
|
-
internalType: "address",
|
|
1244
1232
|
name: "creditAccount",
|
|
1245
1233
|
type: "address",
|
|
1234
|
+
internalType: "address",
|
|
1246
1235
|
},
|
|
1247
1236
|
{
|
|
1248
|
-
internalType: "address",
|
|
1249
1237
|
name: "token",
|
|
1250
1238
|
type: "address",
|
|
1239
|
+
internalType: "address",
|
|
1251
1240
|
},
|
|
1252
1241
|
{
|
|
1253
|
-
internalType: "int96",
|
|
1254
1242
|
name: "quotaChange",
|
|
1255
1243
|
type: "int96",
|
|
1244
|
+
internalType: "int96",
|
|
1256
1245
|
},
|
|
1257
1246
|
{
|
|
1258
|
-
internalType: "uint96",
|
|
1259
1247
|
name: "minQuota",
|
|
1260
1248
|
type: "uint96",
|
|
1249
|
+
internalType: "uint96",
|
|
1261
1250
|
},
|
|
1262
1251
|
{
|
|
1263
|
-
internalType: "uint96",
|
|
1264
1252
|
name: "maxQuota",
|
|
1265
1253
|
type: "uint96",
|
|
1254
|
+
internalType: "uint96",
|
|
1266
1255
|
},
|
|
1267
1256
|
],
|
|
1268
|
-
name: "updateQuota",
|
|
1269
1257
|
outputs: [
|
|
1270
1258
|
{
|
|
1271
|
-
internalType: "uint256",
|
|
1272
1259
|
name: "tokensToEnable",
|
|
1273
1260
|
type: "uint256",
|
|
1261
|
+
internalType: "uint256",
|
|
1274
1262
|
},
|
|
1275
1263
|
{
|
|
1276
|
-
internalType: "uint256",
|
|
1277
1264
|
name: "tokensToDisable",
|
|
1278
1265
|
type: "uint256",
|
|
1266
|
+
internalType: "uint256",
|
|
1279
1267
|
},
|
|
1280
1268
|
],
|
|
1281
1269
|
stateMutability: "nonpayable",
|
|
1282
|
-
type: "function",
|
|
1283
1270
|
},
|
|
1284
1271
|
{
|
|
1285
|
-
|
|
1272
|
+
type: "function",
|
|
1286
1273
|
name: "version",
|
|
1274
|
+
inputs: [],
|
|
1287
1275
|
outputs: [
|
|
1288
1276
|
{
|
|
1289
|
-
internalType: "uint256",
|
|
1290
1277
|
name: "",
|
|
1291
1278
|
type: "uint256",
|
|
1279
|
+
internalType: "uint256",
|
|
1292
1280
|
},
|
|
1293
1281
|
],
|
|
1294
1282
|
stateMutability: "view",
|
|
1295
|
-
type: "function",
|
|
1296
1283
|
},
|
|
1297
1284
|
{
|
|
1285
|
+
type: "function",
|
|
1286
|
+
name: "withdrawCollateral",
|
|
1298
1287
|
inputs: [
|
|
1299
1288
|
{
|
|
1300
|
-
internalType: "address",
|
|
1301
1289
|
name: "creditAccount",
|
|
1302
1290
|
type: "address",
|
|
1291
|
+
internalType: "address",
|
|
1303
1292
|
},
|
|
1304
1293
|
{
|
|
1305
|
-
internalType: "address",
|
|
1306
1294
|
name: "token",
|
|
1307
1295
|
type: "address",
|
|
1296
|
+
internalType: "address",
|
|
1308
1297
|
},
|
|
1309
1298
|
{
|
|
1310
|
-
internalType: "uint256",
|
|
1311
1299
|
name: "amount",
|
|
1312
1300
|
type: "uint256",
|
|
1301
|
+
internalType: "uint256",
|
|
1313
1302
|
},
|
|
1314
1303
|
{
|
|
1315
|
-
internalType: "address",
|
|
1316
1304
|
name: "to",
|
|
1317
1305
|
type: "address",
|
|
1306
|
+
internalType: "address",
|
|
1318
1307
|
},
|
|
1319
1308
|
],
|
|
1320
|
-
name: "withdrawCollateral",
|
|
1321
1309
|
outputs: [
|
|
1322
1310
|
{
|
|
1323
|
-
internalType: "uint256",
|
|
1324
1311
|
name: "tokensToDisable",
|
|
1325
1312
|
type: "uint256",
|
|
1313
|
+
internalType: "uint256",
|
|
1326
1314
|
},
|
|
1327
1315
|
],
|
|
1328
1316
|
stateMutability: "nonpayable",
|
|
1329
|
-
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
type: "event",
|
|
1320
|
+
name: "SetCreditConfigurator",
|
|
1321
|
+
inputs: [
|
|
1322
|
+
{
|
|
1323
|
+
name: "newConfigurator",
|
|
1324
|
+
type: "address",
|
|
1325
|
+
indexed: true,
|
|
1326
|
+
internalType: "address",
|
|
1327
|
+
},
|
|
1328
|
+
],
|
|
1329
|
+
anonymous: false,
|
|
1330
1330
|
},
|
|
1331
1331
|
];
|
|
1332
1332
|
class ICreditManagerV3__factory {
|