@gearbox-protocol/sdk 3.0.0-next.178 → 3.0.0-next.179
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/apy/auraAbi.d.ts +1 -1
- package/lib/apy/auraAbi.js +2 -2
- package/lib/apy/convexAPY.js +2 -2
- package/lib/core/creditAccount.js +22 -26
- package/lib/core/creditAccount.spec.js +13 -13
- package/lib/core/creditManager.js +20 -20
- package/lib/core/gauge.d.ts +2 -2
- package/lib/core/gauge.js +13 -13
- package/lib/core/gaugeMath.d.ts +1 -1
- package/lib/core/gaugeMath.js +2 -5
- package/lib/core/gaugeMath.spec.js +13 -13
- package/lib/core/pool.d.ts +5 -5
- package/lib/core/pool.js +23 -23
- package/lib/core/rewardClaimer.d.ts +2 -2
- package/lib/core/rewardConvex.d.ts +5 -6
- package/lib/core/rewardConvex.js +6 -6
- package/lib/core/rewardConvex.spec.js +1 -2
- package/lib/gearboxRewards/abi.d.ts +1 -1
- package/lib/gearboxRewards/abi.js +2 -2
- package/lib/gearboxRewards/api.d.ts +8 -9
- package/lib/gearboxRewards/api.js +20 -14
- package/lib/gearboxRewards/apy.js +2 -2
- package/lib/gearboxRewards/extraAPY.js +2 -2
- package/lib/index.d.ts +1 -3
- package/lib/index.js +2 -4
- package/lib/parsers/abstractParser.d.ts +2 -3
- package/lib/parsers/abstractParser.js +4 -2
- package/lib/parsers/iParser.d.ts +1 -1
- package/lib/parsers/txParser.d.ts +2 -2
- package/lib/pathfinder/core.d.ts +1 -2
- package/lib/pathfinder/index.d.ts +0 -1
- package/lib/pathfinder/index.js +0 -1
- package/lib/pathfinder/pathOptions.js +2 -2
- package/lib/pathfinder/pathfinder.d.ts +2 -2
- package/lib/pathfinder/pathfinder.js +17 -18
- package/lib/pathfinder/pathfinder.spec.js +2 -2
- package/lib/pathfinder/utils.d.ts +2 -3
- package/lib/pathfinder/utils.js +4 -4
- package/lib/pathfinder/v1/pathfinderv1.d.ts +2 -2
- package/lib/pathfinder/v1/pathfinderv1.js +15 -16
- package/lib/pathfinder/v1/pathfinderv1.spec.js +1 -1
- package/lib/payload/creditAccount.d.ts +2 -2
- package/lib/payload/creditManager.d.ts +2 -3
- package/lib/payload/gauge.d.ts +1 -2
- package/lib/payload/pool.d.ts +4 -2
- package/lib/types/AddressProvider.d.ts +151 -332
- package/lib/types/Balances.sol/BalanceOps.d.ts +15 -22
- package/lib/types/CalldataExtractor.d.ts +21 -37
- package/lib/types/Claimable.d.ts +46 -97
- package/lib/types/CompositePriceFeed.d.ts +57 -129
- package/lib/types/ContractsRegisterTrait.d.ts +18 -35
- package/lib/types/ERC20.d.ts +146 -175
- package/lib/types/Errors.d.ts +106 -227
- package/lib/types/FarmAccounting.d.ts +15 -22
- package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +108 -152
- package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +172 -257
- package/lib/types/IAdapter.d.ts +26 -59
- package/lib/types/IAddressProvider.sol/IAddressProvider.d.ts +53 -108
- package/lib/types/IAddressProvider.sol/IAddressProviderEvents.d.ts +29 -35
- package/lib/types/IAddressProviderV3.sol/IAddressProviderV3.d.ts +79 -85
- package/lib/types/IAddressProviderV3.sol/IAddressProviderV3Events.d.ts +34 -37
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributor.d.ts +101 -109
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributorEvents.d.ts +76 -64
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +215 -236
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +67 -92
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +335 -386
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +29 -35
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +15 -22
- package/lib/types/IBaseRewardPool.d.ts +143 -320
- package/lib/types/IBotListV3.sol/IBotListV3.d.ts +266 -252
- package/lib/types/IBotListV3.sol/IBotListV3Events.d.ts +116 -92
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +119 -188
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +15 -22
- package/lib/types/IContractsRegister.sol/IContractsRegister.d.ts +65 -106
- package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.d.ts +42 -42
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.d.ts +354 -442
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.d.ts +87 -72
- package/lib/types/IConvexToken.d.ts +126 -163
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +172 -271
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts +130 -185
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +29 -35
- package/lib/types/ICreditAccountV3.sol/ICreditAccountBase.d.ts +48 -75
- package/lib/types/ICreditAccountV3.sol/ICreditAccountV3.d.ts +63 -96
- package/lib/types/ICreditConfiguratorV2.sol/ICreditConfiguratorV2.d.ts +526 -579
- package/lib/types/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events.d.ts +342 -264
- package/lib/types/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions.d.ts +15 -22
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3.d.ts +549 -648
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.d.ts +327 -248
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2.d.ts +587 -635
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Events.d.ts +294 -239
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions.d.ts +15 -22
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +59 -122
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2V2.d.ts +34 -53
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +421 -464
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +202 -150
- package/lib/types/ICreditFacadeV3Multicall.d.ts +162 -245
- package/lib/types/ICreditManagerV2.sol/ICreditManagerV2.d.ts +438 -567
- package/lib/types/ICreditManagerV2.sol/ICreditManagerV2Events.d.ts +43 -46
- package/lib/types/ICreditManagerV2.sol/ICreditManagerV2Exceptions.d.ts +15 -22
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +649 -858
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3Events.d.ts +28 -33
- package/lib/types/ICurvePool.d.ts +285 -376
- package/lib/types/ICurvePool_2.sol/ICurvePool2Assets.d.ts +365 -511
- package/lib/types/ICurvePool_3.sol/ICurvePool3Assets.d.ts +370 -607
- package/lib/types/ICurvePool_4.sol/ICurvePool4Assets.d.ts +387 -631
- package/lib/types/ICurveV1Adapter.d.ts +326 -479
- package/lib/types/ICurveV1_2AssetsAdapter.d.ts +383 -560
- package/lib/types/ICurveV1_3AssetsAdapter.d.ts +383 -623
- package/lib/types/ICurveV1_4AssetsAdapter.d.ts +395 -629
- package/lib/types/IDaiLikePermit.d.ts +48 -51
- package/lib/types/IDataCompressorV2_1.d.ts +376 -367
- package/lib/types/IDataCompressorV3.d.ts +439 -458
- package/lib/types/IDegenDistributor.sol/IDegenDistributor.d.ts +67 -84
- package/lib/types/IDegenDistributor.sol/IDegenDistributorEvents.d.ts +44 -45
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.d.ts +260 -302
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.d.ts +55 -52
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.d.ts +15 -22
- package/lib/types/IERC165.d.ts +23 -36
- package/lib/types/IERC20.d.ts +114 -127
- package/lib/types/IERC20Metadata.d.ts +120 -145
- package/lib/types/IERC20Permit.d.ts +50 -63
- package/lib/types/IERC20ZapperDeposits.d.ts +99 -104
- package/lib/types/IERC4626.d.ts +277 -353
- package/lib/types/IERC4626Adapter.d.ts +146 -211
- package/lib/types/IERC721.d.ts +180 -201
- package/lib/types/IERC721Metadata.d.ts +187 -220
- package/lib/types/IETHZapperDeposits.d.ts +32 -59
- package/lib/types/IFarmingPool.d.ts +209 -282
- package/lib/types/IGasPricer.d.ts +29 -0
- package/lib/types/IGaugeV3.sol/IGaugeV3.d.ts +273 -330
- package/lib/types/IGaugeV3.sol/IGaugeV3Events.d.ts +132 -102
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +303 -357
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +122 -104
- package/lib/types/IInterestRateModel.d.ts +31 -42
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.d.ts +116 -237
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.d.ts +43 -46
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.d.ts +15 -22
- package/lib/types/ILidoV1Adapter.d.ts +70 -131
- package/lib/types/ILinearInterestRateModelV3.d.ts +82 -105
- package/lib/types/IOffchainOracle.d.ts +44 -51
- package/lib/types/IPartialLiquidationBotV3.d.ts +119 -128
- package/lib/types/IPermit2.d.ts +91 -103
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.d.ts +323 -416
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.d.ts +120 -100
- package/lib/types/IPoolService.sol/IPoolService.d.ts +292 -338
- package/lib/types/IPoolService.sol/IPoolServiceEvents.d.ts +189 -146
- package/lib/types/IPoolV3.sol/IPoolV3.d.ts +662 -825
- package/lib/types/IPoolV3.sol/IPoolV3Events.d.ts +181 -142
- package/lib/types/IPriceFeed.sol/IPriceFeed.d.ts +50 -90
- package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.d.ts +55 -111
- package/lib/types/IPriceOracle.sol/IPriceOracleV2.d.ts +120 -140
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.d.ts +29 -35
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Exceptions.d.ts +15 -22
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.d.ts +133 -155
- package/lib/types/IPriceOracleBase.d.ts +65 -76
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +243 -234
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +85 -70
- package/lib/types/IRouter.d.ts +225 -217
- package/lib/types/IRouterV3.d.ts +267 -249
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +158 -175
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents.d.ts +34 -37
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions.d.ts +15 -22
- package/lib/types/IUniswapV3.sol/ISwapRouter.d.ts +124 -153
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +281 -328
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents.d.ts +41 -39
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions.d.ts +15 -22
- package/lib/types/IVersion.d.ts +18 -35
- package/lib/types/IVotingContractV3.d.ts +46 -67
- package/lib/types/IWETH.d.ts +147 -177
- package/lib/types/IWETHGateway.d.ts +59 -82
- package/lib/types/IYVault.d.ts +183 -264
- package/lib/types/IYearnV2Adapter.d.ts +159 -228
- package/lib/types/IZapper.d.ts +77 -106
- package/lib/types/IZapperRegister.d.ts +46 -53
- package/lib/types/IstETH.sol/IstETH.d.ts +146 -199
- package/lib/types/IstETH.sol/IstETHGetters.d.ts +143 -184
- package/lib/types/IwstETH.sol/IwstETH.d.ts +154 -207
- package/lib/types/IwstETH.sol/IwstETHGetters.d.ts +140 -177
- package/lib/types/IwstETHGateway.sol/IwstETHGateWay.d.ts +44 -63
- package/lib/types/IwstETHV1Adapter.d.ts +100 -161
- package/lib/types/NumericArrayLib.d.ts +15 -22
- package/lib/types/Ownable.d.ts +42 -77
- package/lib/types/PartialLiquidationBotV3.d.ts +121 -134
- package/lib/types/RedstoneConstants.d.ts +15 -22
- package/lib/types/RedstoneConsumerBase.d.ts +50 -70
- package/lib/types/RedstoneConsumerNumericBase.d.ts +50 -70
- package/lib/types/RedstoneDefaultsLib.d.ts +15 -22
- package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedEvents.d.ts +28 -31
- package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.d.ts +15 -22
- package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.d.ts +115 -220
- package/lib/types/SafeERC20.d.ts +15 -22
- package/lib/types/common.d.ts +40 -12
- package/lib/types/factories/AddressProvider__factory.d.ts +13 -12
- package/lib/types/factories/AddressProvider__factory.js +7 -10
- package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +13 -12
- package/lib/types/factories/Balances.sol/BalanceOps__factory.js +7 -10
- package/lib/types/factories/CalldataExtractor__factory.d.ts +13 -12
- package/lib/types/factories/CalldataExtractor__factory.js +7 -10
- package/lib/types/factories/Claimable__factory.d.ts +13 -12
- package/lib/types/factories/Claimable__factory.js +7 -10
- package/lib/types/factories/CompositePriceFeed__factory.d.ts +13 -12
- package/lib/types/factories/CompositePriceFeed__factory.js +7 -10
- package/lib/types/factories/ContractsRegisterTrait__factory.d.ts +2 -3
- package/lib/types/factories/ContractsRegisterTrait__factory.js +3 -3
- package/lib/types/factories/ERC20__factory.d.ts +13 -12
- package/lib/types/factories/ERC20__factory.js +7 -10
- package/lib/types/factories/Errors__factory.d.ts +13 -12
- package/lib/types/factories/Errors__factory.js +7 -10
- package/lib/types/factories/FarmAccounting__factory.d.ts +13 -12
- package/lib/types/factories/FarmAccounting__factory.js +7 -10
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +2 -3
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +3 -3
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +2 -3
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +3 -3
- package/lib/types/factories/IAdapter__factory.d.ts +2 -3
- package/lib/types/factories/IAdapter__factory.js +3 -3
- package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.d.ts +2 -3
- package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.js +3 -3
- package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.d.ts +2 -3
- package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.js +3 -3
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.d.ts +2 -3
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.js +3 -3
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.d.ts +2 -3
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.js +3 -3
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +2 -3
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +3 -3
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +2 -3
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +3 -3
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +2 -3
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +3 -3
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +2 -3
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +3 -3
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +2 -3
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +3 -3
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +2 -3
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +3 -3
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +2 -3
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +3 -3
- package/lib/types/factories/IBaseRewardPool__factory.d.ts +2 -3
- package/lib/types/factories/IBaseRewardPool__factory.js +3 -3
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.d.ts +2 -3
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +3 -3
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +2 -3
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +3 -3
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +2 -3
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +3 -3
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +2 -3
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +3 -3
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +2 -3
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +3 -3
- package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.d.ts +2 -3
- package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.js +3 -3
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +2 -3
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +3 -3
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +2 -3
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +3 -3
- package/lib/types/factories/IConvexToken__factory.d.ts +2 -3
- package/lib/types/factories/IConvexToken__factory.js +3 -3
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +2 -3
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +3 -3
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +2 -3
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +3 -3
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +2 -3
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +3 -3
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountBase__factory.d.ts +2 -3
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountBase__factory.js +3 -3
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.d.ts +2 -3
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.js +3 -3
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.d.ts +2 -3
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.js +3 -3
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.d.ts +2 -3
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.js +3 -3
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.d.ts +2 -3
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.js +3 -3
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +2 -3
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +3 -3
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +2 -3
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +3 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.d.ts +2 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.js +3 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.d.ts +2 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.js +3 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +2 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +3 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.d.ts +2 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.js +3 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.d.ts +2 -3
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.js +3 -3
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +2 -3
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +3 -3
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +2 -3
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +3 -3
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +2 -3
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +3 -3
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.d.ts +2 -3
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +3 -3
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.d.ts +2 -3
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +3 -3
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.d.ts +2 -3
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.js +3 -3
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.d.ts +2 -3
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.js +3 -3
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +2 -3
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +3 -3
- package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.d.ts +2 -3
- package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.js +3 -3
- package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.d.ts +2 -3
- package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.js +3 -3
- package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.d.ts +2 -3
- package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.js +3 -3
- package/lib/types/factories/ICurvePool__factory.d.ts +2 -3
- package/lib/types/factories/ICurvePool__factory.js +3 -3
- package/lib/types/factories/ICurveV1Adapter__factory.d.ts +2 -3
- package/lib/types/factories/ICurveV1Adapter__factory.js +3 -3
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +2 -3
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +3 -3
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +2 -3
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +3 -3
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +2 -3
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +3 -3
- package/lib/types/factories/IDaiLikePermit__factory.d.ts +2 -3
- package/lib/types/factories/IDaiLikePermit__factory.js +3 -3
- package/lib/types/factories/IDataCompressorV2_1__factory.d.ts +2 -3
- package/lib/types/factories/IDataCompressorV2_1__factory.js +3 -3
- package/lib/types/factories/IDataCompressorV3__factory.d.ts +2 -3
- package/lib/types/factories/IDataCompressorV3__factory.js +3 -3
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +2 -3
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +3 -3
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +2 -3
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +3 -3
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +2 -3
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +3 -3
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +2 -3
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +3 -3
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts +2 -3
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.js +3 -3
- package/lib/types/factories/IERC165__factory.d.ts +2 -3
- package/lib/types/factories/IERC165__factory.js +3 -3
- package/lib/types/factories/IERC20Metadata__factory.d.ts +2 -3
- package/lib/types/factories/IERC20Metadata__factory.js +3 -3
- package/lib/types/factories/IERC20Permit__factory.d.ts +2 -3
- package/lib/types/factories/IERC20Permit__factory.js +3 -3
- package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +2 -3
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +3 -3
- package/lib/types/factories/IERC20__factory.d.ts +2 -3
- package/lib/types/factories/IERC20__factory.js +3 -3
- package/lib/types/factories/IERC4626Adapter__factory.d.ts +2 -3
- package/lib/types/factories/IERC4626Adapter__factory.js +3 -3
- package/lib/types/factories/IERC4626__factory.d.ts +2 -3
- package/lib/types/factories/IERC4626__factory.js +3 -3
- package/lib/types/factories/IERC721Metadata__factory.d.ts +2 -3
- package/lib/types/factories/IERC721Metadata__factory.js +3 -3
- package/lib/types/factories/IERC721__factory.d.ts +2 -3
- package/lib/types/factories/IERC721__factory.js +3 -3
- package/lib/types/factories/IETHZapperDeposits__factory.d.ts +2 -3
- package/lib/types/factories/IETHZapperDeposits__factory.js +3 -3
- package/lib/types/factories/IFarmingPool__factory.d.ts +2 -3
- package/lib/types/factories/IFarmingPool__factory.js +3 -3
- package/lib/types/factories/{contracts/interfaces/IGasPricer__factory.d.ts → IGasPricer__factory.d.ts} +3 -4
- package/lib/types/factories/{contracts/interfaces/IGasPricer__factory.js → IGasPricer__factory.js} +3 -3
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +2 -3
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +3 -3
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +2 -3
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +3 -3
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +2 -3
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +3 -3
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +2 -3
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +3 -3
- package/lib/types/factories/IInterestRateModel__factory.d.ts +2 -3
- package/lib/types/factories/IInterestRateModel__factory.js +3 -3
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +2 -3
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +3 -3
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +2 -3
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +3 -3
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +2 -3
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +3 -3
- package/lib/types/factories/ILidoV1Adapter__factory.d.ts +2 -3
- package/lib/types/factories/ILidoV1Adapter__factory.js +3 -3
- package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +2 -3
- package/lib/types/factories/ILinearInterestRateModelV3__factory.js +3 -3
- package/lib/types/factories/IOffchainOracle__factory.d.ts +2 -3
- package/lib/types/factories/IOffchainOracle__factory.js +3 -3
- package/lib/types/factories/IPartialLiquidationBotV3__factory.d.ts +2 -3
- package/lib/types/factories/IPartialLiquidationBotV3__factory.js +3 -3
- package/lib/types/factories/IPermit2__factory.d.ts +2 -3
- package/lib/types/factories/IPermit2__factory.js +3 -3
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +2 -3
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +3 -3
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +2 -3
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +3 -3
- package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.d.ts +2 -3
- package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.js +3 -3
- package/lib/types/factories/IPoolService.sol/IPoolService__factory.d.ts +2 -3
- package/lib/types/factories/IPoolService.sol/IPoolService__factory.js +3 -3
- package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.d.ts +2 -3
- package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.js +3 -3
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +2 -3
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +3 -3
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +2 -3
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +3 -3
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +2 -3
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +3 -3
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +2 -3
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +3 -3
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +2 -3
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +3 -3
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +2 -3
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +3 -3
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.d.ts +2 -3
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.js +3 -3
- package/lib/types/factories/IPriceOracleBase__factory.d.ts +2 -3
- package/lib/types/factories/IPriceOracleBase__factory.js +3 -3
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +2 -3
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +3 -3
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +2 -3
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +3 -3
- package/lib/types/factories/IRouterV3__factory.d.ts +2 -3
- package/lib/types/factories/IRouterV3__factory.js +3 -3
- package/lib/types/factories/IRouter__factory.d.ts +2 -3
- package/lib/types/factories/IRouter__factory.js +3 -3
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.d.ts +2 -3
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.js +3 -3
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +2 -3
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +3 -3
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +2 -3
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +3 -3
- package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.d.ts +2 -3
- package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.js +3 -3
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.d.ts +2 -3
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.js +3 -3
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.d.ts +2 -3
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +3 -3
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +2 -3
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +3 -3
- package/lib/types/factories/IVersion__factory.d.ts +2 -3
- package/lib/types/factories/IVersion__factory.js +3 -3
- package/lib/types/factories/IVotingContractV3__factory.d.ts +2 -3
- package/lib/types/factories/IVotingContractV3__factory.js +3 -3
- package/lib/types/factories/IWETHGateway__factory.d.ts +2 -3
- package/lib/types/factories/IWETHGateway__factory.js +3 -3
- package/lib/types/factories/IWETH__factory.d.ts +2 -3
- package/lib/types/factories/IWETH__factory.js +3 -3
- package/lib/types/factories/IYVault__factory.d.ts +2 -3
- package/lib/types/factories/IYVault__factory.js +3 -3
- package/lib/types/factories/IYearnV2Adapter__factory.d.ts +2 -3
- package/lib/types/factories/IYearnV2Adapter__factory.js +3 -3
- package/lib/types/factories/IZapperRegister__factory.d.ts +2 -3
- package/lib/types/factories/IZapperRegister__factory.js +3 -3
- package/lib/types/factories/IZapper__factory.d.ts +2 -3
- package/lib/types/factories/IZapper__factory.js +3 -3
- package/lib/types/factories/IstETH.sol/IstETHGetters__factory.d.ts +2 -3
- package/lib/types/factories/IstETH.sol/IstETHGetters__factory.js +3 -3
- package/lib/types/factories/IstETH.sol/IstETH__factory.d.ts +2 -3
- package/lib/types/factories/IstETH.sol/IstETH__factory.js +3 -3
- package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.d.ts +2 -3
- package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.js +3 -3
- package/lib/types/factories/IwstETH.sol/IwstETH__factory.d.ts +2 -3
- package/lib/types/factories/IwstETH.sol/IwstETH__factory.js +3 -3
- package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +2 -3
- package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +3 -3
- package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +2 -3
- package/lib/types/factories/IwstETHV1Adapter__factory.js +3 -3
- package/lib/types/factories/NumericArrayLib__factory.d.ts +13 -12
- package/lib/types/factories/NumericArrayLib__factory.js +7 -10
- package/lib/types/factories/Ownable__factory.d.ts +2 -3
- package/lib/types/factories/Ownable__factory.js +3 -3
- package/lib/types/factories/PartialLiquidationBotV3__factory.d.ts +13 -12
- package/lib/types/factories/PartialLiquidationBotV3__factory.js +7 -10
- package/lib/types/factories/RedstoneConstants__factory.d.ts +13 -12
- package/lib/types/factories/RedstoneConstants__factory.js +7 -10
- package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +2 -3
- package/lib/types/factories/RedstoneConsumerBase__factory.js +3 -3
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +2 -3
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +3 -3
- package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +13 -12
- package/lib/types/factories/RedstoneDefaultsLib__factory.js +7 -10
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts +2 -3
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js +3 -3
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +2 -3
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +3 -3
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +13 -12
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +7 -10
- package/lib/types/factories/SafeERC20__factory.d.ts +13 -12
- package/lib/types/factories/SafeERC20__factory.js +7 -10
- package/lib/types/factories/index.d.ts +1 -1
- package/lib/types/factories/index.js +4 -3
- package/lib/types/index.d.ts +2 -4
- package/lib/types/index.js +4 -4
- package/lib/utils/calls.d.ts +7 -0
- package/lib/utils/{repeater.js → calls.js} +11 -1
- package/lib/utils/math.d.ts +0 -1
- package/lib/utils/math.js +0 -2
- package/lib/utils/types.d.ts +0 -4
- package/package.json +8 -8
- package/lib/types/contracts/index.d.ts +0 -2
- package/lib/types/contracts/index.js +0 -2
- package/lib/types/contracts/interfaces/IGasPricer.d.ts +0 -44
- package/lib/types/contracts/interfaces/index.d.ts +0 -1
- package/lib/types/contracts/interfaces/index.js +0 -2
- package/lib/types/factories/contracts/index.d.ts +0 -1
- package/lib/types/factories/contracts/index.js +0 -30
- package/lib/types/factories/contracts/interfaces/index.d.ts +0 -1
- package/lib/types/factories/contracts/interfaces/index.js +0 -8
- package/lib/utils/repeater.d.ts +0 -1
- package/lib/watchers/creditAccountWatcher.d.ts +0 -37
- package/lib/watchers/creditAccountWatcher.js +0 -244
- package/lib/watchers/creditAccountWatcher.spec.d.ts +0 -1
- package/lib/watchers/creditAccountWatcher.spec.js +0 -208
- package/lib/watchers/creditManagerWatcher.d.ts +0 -10
- package/lib/watchers/creditManagerWatcher.js +0 -59
- package/lib/watchers/creditManagerWatcher.spec.d.ts +0 -1
- package/lib/watchers/creditManagerWatcher.spec.js +0 -115
- /package/lib/types/{contracts/interfaces/IGasPricer.js → IGasPricer.js} +0 -0
|
@@ -1,116 +1,41 @@
|
|
|
1
|
-
import type { BaseContract,
|
|
2
|
-
import type {
|
|
3
|
-
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../common";
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../common";
|
|
5
3
|
export type MultiCallStruct = {
|
|
6
|
-
target:
|
|
7
|
-
callData:
|
|
4
|
+
target: AddressLike;
|
|
5
|
+
callData: BytesLike;
|
|
8
6
|
};
|
|
9
|
-
export type MultiCallStructOutput = [string, string] & {
|
|
7
|
+
export type MultiCallStructOutput = [target: string, callData: string] & {
|
|
10
8
|
target: string;
|
|
11
9
|
callData: string;
|
|
12
10
|
};
|
|
13
|
-
export interface ICreditFacadeV2Interface extends
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"calcCreditAccountHealthFactor(address)": FunctionFragment;
|
|
19
|
-
"calcTotalValue(address)": FunctionFragment;
|
|
20
|
-
"closeCreditAccount(address,uint256,(address,bytes)[])": FunctionFragment;
|
|
21
|
-
"closeCreditAccount(address,uint256,bool,(address,bytes)[])": FunctionFragment;
|
|
22
|
-
"creditManager()": FunctionFragment;
|
|
23
|
-
"degenNFT()": FunctionFragment;
|
|
24
|
-
"hasOpenedCreditAccount(address)": FunctionFragment;
|
|
25
|
-
"isBlacklistableUnderlying()": FunctionFragment;
|
|
26
|
-
"isTokenAllowed(address)": FunctionFragment;
|
|
27
|
-
"limits()": FunctionFragment;
|
|
28
|
-
"liquidateCreditAccount(address,address,uint256,(address,bytes)[])": FunctionFragment;
|
|
29
|
-
"liquidateCreditAccount(address,address,uint256,bool,(address,bytes)[])": FunctionFragment;
|
|
30
|
-
"liquidateExpiredCreditAccount(address,address,uint256,(address,bytes)[])": FunctionFragment;
|
|
31
|
-
"liquidateExpiredCreditAccount(address,address,uint256,bool,(address,bytes)[])": FunctionFragment;
|
|
32
|
-
"lossParams()": FunctionFragment;
|
|
33
|
-
"multicall((address,bytes)[])": FunctionFragment;
|
|
34
|
-
"openCreditAccount(uint256,address,uint16,uint16)": FunctionFragment;
|
|
35
|
-
"openCreditAccountMulticall(uint256,address,(address,bytes)[],uint16)": FunctionFragment;
|
|
36
|
-
"params()": FunctionFragment;
|
|
37
|
-
"totalDebt()": FunctionFragment;
|
|
38
|
-
"transferAccountOwnership(address)": FunctionFragment;
|
|
39
|
-
"transfersAllowed(address,address)": FunctionFragment;
|
|
40
|
-
"underlying()": FunctionFragment;
|
|
41
|
-
"version()": FunctionFragment;
|
|
42
|
-
};
|
|
43
|
-
getFunction(nameOrSignatureOrTopic: "addCollateral" | "approveAccountTransfer" | "blacklistHelper" | "calcCreditAccountHealthFactor" | "calcTotalValue" | "closeCreditAccount(address,uint256,(address,bytes)[])" | "closeCreditAccount(address,uint256,bool,(address,bytes)[])" | "creditManager" | "degenNFT" | "hasOpenedCreditAccount" | "isBlacklistableUnderlying" | "isTokenAllowed" | "limits" | "liquidateCreditAccount(address,address,uint256,(address,bytes)[])" | "liquidateCreditAccount(address,address,uint256,bool,(address,bytes)[])" | "liquidateExpiredCreditAccount(address,address,uint256,(address,bytes)[])" | "liquidateExpiredCreditAccount(address,address,uint256,bool,(address,bytes)[])" | "lossParams" | "multicall" | "openCreditAccount" | "openCreditAccountMulticall" | "params" | "totalDebt" | "transferAccountOwnership" | "transfersAllowed" | "underlying" | "version"): FunctionFragment;
|
|
44
|
-
encodeFunctionData(functionFragment: "addCollateral", values: [
|
|
45
|
-
PromiseOrValue<string>,
|
|
46
|
-
PromiseOrValue<string>,
|
|
47
|
-
PromiseOrValue<BigNumberish>
|
|
48
|
-
]): string;
|
|
49
|
-
encodeFunctionData(functionFragment: "approveAccountTransfer", values: [PromiseOrValue<string>, PromiseOrValue<boolean>]): string;
|
|
11
|
+
export interface ICreditFacadeV2Interface extends Interface {
|
|
12
|
+
getFunction(nameOrSignature: "addCollateral" | "approveAccountTransfer" | "blacklistHelper" | "calcCreditAccountHealthFactor" | "calcTotalValue" | "closeCreditAccount(address,uint256,(address,bytes)[])" | "closeCreditAccount(address,uint256,bool,(address,bytes)[])" | "creditManager" | "degenNFT" | "hasOpenedCreditAccount" | "isBlacklistableUnderlying" | "isTokenAllowed" | "limits" | "liquidateCreditAccount(address,address,uint256,(address,bytes)[])" | "liquidateCreditAccount(address,address,uint256,bool,(address,bytes)[])" | "liquidateExpiredCreditAccount(address,address,uint256,(address,bytes)[])" | "liquidateExpiredCreditAccount(address,address,uint256,bool,(address,bytes)[])" | "lossParams" | "multicall" | "openCreditAccount" | "openCreditAccountMulticall" | "params" | "totalDebt" | "transferAccountOwnership" | "transfersAllowed" | "underlying" | "version"): FunctionFragment;
|
|
13
|
+
getEvent(nameOrSignatureOrTopic: "AddCollateral" | "BlacklistHelperSet" | "CloseCreditAccount" | "DecreaseBorrowedAmount" | "IncreaseBorrowedAmount" | "IncurLossOnLiquidation" | "LiquidateCreditAccount" | "LiquidateExpiredCreditAccount" | "MultiCallFinished" | "MultiCallStarted" | "OpenCreditAccount" | "TokenDisabled" | "TokenEnabled" | "TransferAccount" | "TransferAccountAllowed" | "UnderlyingSentToBlacklistHelper"): EventFragment;
|
|
14
|
+
encodeFunctionData(functionFragment: "addCollateral", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "approveAccountTransfer", values: [AddressLike, boolean]): string;
|
|
50
16
|
encodeFunctionData(functionFragment: "blacklistHelper", values?: undefined): string;
|
|
51
|
-
encodeFunctionData(functionFragment: "calcCreditAccountHealthFactor", values: [
|
|
52
|
-
encodeFunctionData(functionFragment: "calcTotalValue", values: [
|
|
53
|
-
encodeFunctionData(functionFragment: "closeCreditAccount(address,uint256,(address,bytes)[])", values: [
|
|
54
|
-
|
|
55
|
-
PromiseOrValue<BigNumberish>,
|
|
56
|
-
MultiCallStruct[]
|
|
57
|
-
]): string;
|
|
58
|
-
encodeFunctionData(functionFragment: "closeCreditAccount(address,uint256,bool,(address,bytes)[])", values: [
|
|
59
|
-
PromiseOrValue<string>,
|
|
60
|
-
PromiseOrValue<BigNumberish>,
|
|
61
|
-
PromiseOrValue<boolean>,
|
|
62
|
-
MultiCallStruct[]
|
|
63
|
-
]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "calcCreditAccountHealthFactor", values: [AddressLike]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "calcTotalValue", values: [AddressLike]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "closeCreditAccount(address,uint256,(address,bytes)[])", values: [AddressLike, BigNumberish, MultiCallStruct[]]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "closeCreditAccount(address,uint256,bool,(address,bytes)[])", values: [AddressLike, BigNumberish, boolean, MultiCallStruct[]]): string;
|
|
64
21
|
encodeFunctionData(functionFragment: "creditManager", values?: undefined): string;
|
|
65
22
|
encodeFunctionData(functionFragment: "degenNFT", values?: undefined): string;
|
|
66
|
-
encodeFunctionData(functionFragment: "hasOpenedCreditAccount", values: [
|
|
23
|
+
encodeFunctionData(functionFragment: "hasOpenedCreditAccount", values: [AddressLike]): string;
|
|
67
24
|
encodeFunctionData(functionFragment: "isBlacklistableUnderlying", values?: undefined): string;
|
|
68
|
-
encodeFunctionData(functionFragment: "isTokenAllowed", values: [
|
|
25
|
+
encodeFunctionData(functionFragment: "isTokenAllowed", values: [AddressLike]): string;
|
|
69
26
|
encodeFunctionData(functionFragment: "limits", values?: undefined): string;
|
|
70
|
-
encodeFunctionData(functionFragment: "liquidateCreditAccount(address,address,uint256,(address,bytes)[])", values: [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
MultiCallStruct[]
|
|
75
|
-
]): string;
|
|
76
|
-
encodeFunctionData(functionFragment: "liquidateCreditAccount(address,address,uint256,bool,(address,bytes)[])", values: [
|
|
77
|
-
PromiseOrValue<string>,
|
|
78
|
-
PromiseOrValue<string>,
|
|
79
|
-
PromiseOrValue<BigNumberish>,
|
|
80
|
-
PromiseOrValue<boolean>,
|
|
81
|
-
MultiCallStruct[]
|
|
82
|
-
]): string;
|
|
83
|
-
encodeFunctionData(functionFragment: "liquidateExpiredCreditAccount(address,address,uint256,(address,bytes)[])", values: [
|
|
84
|
-
PromiseOrValue<string>,
|
|
85
|
-
PromiseOrValue<string>,
|
|
86
|
-
PromiseOrValue<BigNumberish>,
|
|
87
|
-
MultiCallStruct[]
|
|
88
|
-
]): string;
|
|
89
|
-
encodeFunctionData(functionFragment: "liquidateExpiredCreditAccount(address,address,uint256,bool,(address,bytes)[])", values: [
|
|
90
|
-
PromiseOrValue<string>,
|
|
91
|
-
PromiseOrValue<string>,
|
|
92
|
-
PromiseOrValue<BigNumberish>,
|
|
93
|
-
PromiseOrValue<boolean>,
|
|
94
|
-
MultiCallStruct[]
|
|
95
|
-
]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "liquidateCreditAccount(address,address,uint256,(address,bytes)[])", values: [AddressLike, AddressLike, BigNumberish, MultiCallStruct[]]): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "liquidateCreditAccount(address,address,uint256,bool,(address,bytes)[])", values: [AddressLike, AddressLike, BigNumberish, boolean, MultiCallStruct[]]): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "liquidateExpiredCreditAccount(address,address,uint256,(address,bytes)[])", values: [AddressLike, AddressLike, BigNumberish, MultiCallStruct[]]): string;
|
|
30
|
+
encodeFunctionData(functionFragment: "liquidateExpiredCreditAccount(address,address,uint256,bool,(address,bytes)[])", values: [AddressLike, AddressLike, BigNumberish, boolean, MultiCallStruct[]]): string;
|
|
96
31
|
encodeFunctionData(functionFragment: "lossParams", values?: undefined): string;
|
|
97
32
|
encodeFunctionData(functionFragment: "multicall", values: [MultiCallStruct[]]): string;
|
|
98
|
-
encodeFunctionData(functionFragment: "openCreditAccount", values: [
|
|
99
|
-
|
|
100
|
-
PromiseOrValue<string>,
|
|
101
|
-
PromiseOrValue<BigNumberish>,
|
|
102
|
-
PromiseOrValue<BigNumberish>
|
|
103
|
-
]): string;
|
|
104
|
-
encodeFunctionData(functionFragment: "openCreditAccountMulticall", values: [
|
|
105
|
-
PromiseOrValue<BigNumberish>,
|
|
106
|
-
PromiseOrValue<string>,
|
|
107
|
-
MultiCallStruct[],
|
|
108
|
-
PromiseOrValue<BigNumberish>
|
|
109
|
-
]): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "openCreditAccount", values: [BigNumberish, AddressLike, BigNumberish, BigNumberish]): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "openCreditAccountMulticall", values: [BigNumberish, AddressLike, MultiCallStruct[], BigNumberish]): string;
|
|
110
35
|
encodeFunctionData(functionFragment: "params", values?: undefined): string;
|
|
111
36
|
encodeFunctionData(functionFragment: "totalDebt", values?: undefined): string;
|
|
112
|
-
encodeFunctionData(functionFragment: "transferAccountOwnership", values: [
|
|
113
|
-
encodeFunctionData(functionFragment: "transfersAllowed", values: [
|
|
37
|
+
encodeFunctionData(functionFragment: "transferAccountOwnership", values: [AddressLike]): string;
|
|
38
|
+
encodeFunctionData(functionFragment: "transfersAllowed", values: [AddressLike, AddressLike]): string;
|
|
114
39
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
115
40
|
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
116
41
|
decodeFunctionResult(functionFragment: "addCollateral", data: BytesLike): Result;
|
|
@@ -140,571 +65,598 @@ export interface ICreditFacadeV2Interface extends utils.Interface {
|
|
|
140
65
|
decodeFunctionResult(functionFragment: "transfersAllowed", data: BytesLike): Result;
|
|
141
66
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
142
67
|
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
143
|
-
events: {
|
|
144
|
-
"AddCollateral(address,address,uint256)": EventFragment;
|
|
145
|
-
"BlacklistHelperSet(address)": EventFragment;
|
|
146
|
-
"CloseCreditAccount(address,address)": EventFragment;
|
|
147
|
-
"DecreaseBorrowedAmount(address,uint256)": EventFragment;
|
|
148
|
-
"IncreaseBorrowedAmount(address,uint256)": EventFragment;
|
|
149
|
-
"IncurLossOnLiquidation(uint256)": EventFragment;
|
|
150
|
-
"LiquidateCreditAccount(address,address,address,uint256)": EventFragment;
|
|
151
|
-
"LiquidateExpiredCreditAccount(address,address,address,uint256)": EventFragment;
|
|
152
|
-
"MultiCallFinished()": EventFragment;
|
|
153
|
-
"MultiCallStarted(address)": EventFragment;
|
|
154
|
-
"OpenCreditAccount(address,address,uint256,uint16)": EventFragment;
|
|
155
|
-
"TokenDisabled(address,address)": EventFragment;
|
|
156
|
-
"TokenEnabled(address,address)": EventFragment;
|
|
157
|
-
"TransferAccount(address,address)": EventFragment;
|
|
158
|
-
"TransferAccountAllowed(address,address,bool)": EventFragment;
|
|
159
|
-
"UnderlyingSentToBlacklistHelper(address,uint256)": EventFragment;
|
|
160
|
-
};
|
|
161
|
-
getEvent(nameOrSignatureOrTopic: "AddCollateral"): EventFragment;
|
|
162
|
-
getEvent(nameOrSignatureOrTopic: "BlacklistHelperSet"): EventFragment;
|
|
163
|
-
getEvent(nameOrSignatureOrTopic: "CloseCreditAccount"): EventFragment;
|
|
164
|
-
getEvent(nameOrSignatureOrTopic: "DecreaseBorrowedAmount"): EventFragment;
|
|
165
|
-
getEvent(nameOrSignatureOrTopic: "IncreaseBorrowedAmount"): EventFragment;
|
|
166
|
-
getEvent(nameOrSignatureOrTopic: "IncurLossOnLiquidation"): EventFragment;
|
|
167
|
-
getEvent(nameOrSignatureOrTopic: "LiquidateCreditAccount"): EventFragment;
|
|
168
|
-
getEvent(nameOrSignatureOrTopic: "LiquidateExpiredCreditAccount"): EventFragment;
|
|
169
|
-
getEvent(nameOrSignatureOrTopic: "MultiCallFinished"): EventFragment;
|
|
170
|
-
getEvent(nameOrSignatureOrTopic: "MultiCallStarted"): EventFragment;
|
|
171
|
-
getEvent(nameOrSignatureOrTopic: "OpenCreditAccount"): EventFragment;
|
|
172
|
-
getEvent(nameOrSignatureOrTopic: "TokenDisabled"): EventFragment;
|
|
173
|
-
getEvent(nameOrSignatureOrTopic: "TokenEnabled"): EventFragment;
|
|
174
|
-
getEvent(nameOrSignatureOrTopic: "TransferAccount"): EventFragment;
|
|
175
|
-
getEvent(nameOrSignatureOrTopic: "TransferAccountAllowed"): EventFragment;
|
|
176
|
-
getEvent(nameOrSignatureOrTopic: "UnderlyingSentToBlacklistHelper"): EventFragment;
|
|
177
68
|
}
|
|
178
|
-
export
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
69
|
+
export declare namespace AddCollateralEvent {
|
|
70
|
+
type InputTuple = [
|
|
71
|
+
onBehalfOf: AddressLike,
|
|
72
|
+
token: AddressLike,
|
|
73
|
+
value: BigNumberish
|
|
74
|
+
];
|
|
75
|
+
type OutputTuple = [onBehalfOf: string, token: string, value: bigint];
|
|
76
|
+
interface OutputObject {
|
|
77
|
+
onBehalfOf: string;
|
|
78
|
+
token: string;
|
|
79
|
+
value: bigint;
|
|
80
|
+
}
|
|
81
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
82
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
83
|
+
type Log = TypedEventLog<Event>;
|
|
84
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
182
85
|
}
|
|
183
|
-
export
|
|
184
|
-
|
|
185
|
-
string
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
86
|
+
export declare namespace BlacklistHelperSetEvent {
|
|
87
|
+
type InputTuple = [blacklistHelper: AddressLike];
|
|
88
|
+
type OutputTuple = [blacklistHelper: string];
|
|
89
|
+
interface OutputObject {
|
|
90
|
+
blacklistHelper: string;
|
|
91
|
+
}
|
|
92
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
93
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
94
|
+
type Log = TypedEventLog<Event>;
|
|
95
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
191
96
|
}
|
|
192
|
-
export
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
97
|
+
export declare namespace CloseCreditAccountEvent {
|
|
98
|
+
type InputTuple = [borrower: AddressLike, to: AddressLike];
|
|
99
|
+
type OutputTuple = [borrower: string, to: string];
|
|
100
|
+
interface OutputObject {
|
|
101
|
+
borrower: string;
|
|
102
|
+
to: string;
|
|
103
|
+
}
|
|
104
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
105
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
106
|
+
type Log = TypedEventLog<Event>;
|
|
107
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
199
108
|
}
|
|
200
|
-
export
|
|
201
|
-
|
|
202
|
-
string
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
109
|
+
export declare namespace DecreaseBorrowedAmountEvent {
|
|
110
|
+
type InputTuple = [borrower: AddressLike, amount: BigNumberish];
|
|
111
|
+
type OutputTuple = [borrower: string, amount: bigint];
|
|
112
|
+
interface OutputObject {
|
|
113
|
+
borrower: string;
|
|
114
|
+
amount: bigint;
|
|
115
|
+
}
|
|
116
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
117
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
118
|
+
type Log = TypedEventLog<Event>;
|
|
119
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
208
120
|
}
|
|
209
|
-
export
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
121
|
+
export declare namespace IncreaseBorrowedAmountEvent {
|
|
122
|
+
type InputTuple = [borrower: AddressLike, amount: BigNumberish];
|
|
123
|
+
type OutputTuple = [borrower: string, amount: bigint];
|
|
124
|
+
interface OutputObject {
|
|
125
|
+
borrower: string;
|
|
126
|
+
amount: bigint;
|
|
127
|
+
}
|
|
128
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
129
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
130
|
+
type Log = TypedEventLog<Event>;
|
|
131
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
217
132
|
}
|
|
218
|
-
export
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
133
|
+
export declare namespace IncurLossOnLiquidationEvent {
|
|
134
|
+
type InputTuple = [loss: BigNumberish];
|
|
135
|
+
type OutputTuple = [loss: bigint];
|
|
136
|
+
interface OutputObject {
|
|
137
|
+
loss: bigint;
|
|
138
|
+
}
|
|
139
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
140
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
141
|
+
type Log = TypedEventLog<Event>;
|
|
142
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
225
143
|
}
|
|
226
|
-
export
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
144
|
+
export declare namespace LiquidateCreditAccountEvent {
|
|
145
|
+
type InputTuple = [
|
|
146
|
+
borrower: AddressLike,
|
|
147
|
+
liquidator: AddressLike,
|
|
148
|
+
to: AddressLike,
|
|
149
|
+
remainingFunds: BigNumberish
|
|
150
|
+
];
|
|
151
|
+
type OutputTuple = [
|
|
152
|
+
borrower: string,
|
|
153
|
+
liquidator: string,
|
|
154
|
+
to: string,
|
|
155
|
+
remainingFunds: bigint
|
|
156
|
+
];
|
|
157
|
+
interface OutputObject {
|
|
158
|
+
borrower: string;
|
|
159
|
+
liquidator: string;
|
|
160
|
+
to: string;
|
|
161
|
+
remainingFunds: bigint;
|
|
162
|
+
}
|
|
163
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
164
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
165
|
+
type Log = TypedEventLog<Event>;
|
|
166
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
235
167
|
}
|
|
236
|
-
export
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
168
|
+
export declare namespace LiquidateExpiredCreditAccountEvent {
|
|
169
|
+
type InputTuple = [
|
|
170
|
+
borrower: AddressLike,
|
|
171
|
+
liquidator: AddressLike,
|
|
172
|
+
to: AddressLike,
|
|
173
|
+
remainingFunds: BigNumberish
|
|
174
|
+
];
|
|
175
|
+
type OutputTuple = [
|
|
176
|
+
borrower: string,
|
|
177
|
+
liquidator: string,
|
|
178
|
+
to: string,
|
|
179
|
+
remainingFunds: bigint
|
|
180
|
+
];
|
|
181
|
+
interface OutputObject {
|
|
182
|
+
borrower: string;
|
|
183
|
+
liquidator: string;
|
|
184
|
+
to: string;
|
|
185
|
+
remainingFunds: bigint;
|
|
186
|
+
}
|
|
187
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
188
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
189
|
+
type Log = TypedEventLog<Event>;
|
|
190
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
248
191
|
}
|
|
249
|
-
export
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
192
|
+
export declare namespace MultiCallFinishedEvent {
|
|
193
|
+
type InputTuple = [];
|
|
194
|
+
type OutputTuple = [];
|
|
195
|
+
interface OutputObject {
|
|
196
|
+
}
|
|
197
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
198
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
199
|
+
type Log = TypedEventLog<Event>;
|
|
200
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
257
201
|
}
|
|
258
|
-
export
|
|
259
|
-
]
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
202
|
+
export declare namespace MultiCallStartedEvent {
|
|
203
|
+
type InputTuple = [borrower: AddressLike];
|
|
204
|
+
type OutputTuple = [borrower: string];
|
|
205
|
+
interface OutputObject {
|
|
206
|
+
borrower: string;
|
|
207
|
+
}
|
|
208
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
209
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
210
|
+
type Log = TypedEventLog<Event>;
|
|
211
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
263
212
|
}
|
|
264
|
-
export
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
213
|
+
export declare namespace OpenCreditAccountEvent {
|
|
214
|
+
type InputTuple = [
|
|
215
|
+
onBehalfOf: AddressLike,
|
|
216
|
+
creditAccount: AddressLike,
|
|
217
|
+
borrowAmount: BigNumberish,
|
|
218
|
+
referralCode: BigNumberish
|
|
219
|
+
];
|
|
220
|
+
type OutputTuple = [
|
|
221
|
+
onBehalfOf: string,
|
|
222
|
+
creditAccount: string,
|
|
223
|
+
borrowAmount: bigint,
|
|
224
|
+
referralCode: bigint
|
|
225
|
+
];
|
|
226
|
+
interface OutputObject {
|
|
227
|
+
onBehalfOf: string;
|
|
228
|
+
creditAccount: string;
|
|
229
|
+
borrowAmount: bigint;
|
|
230
|
+
referralCode: bigint;
|
|
231
|
+
}
|
|
232
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
233
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
234
|
+
type Log = TypedEventLog<Event>;
|
|
235
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
273
236
|
}
|
|
274
|
-
export
|
|
275
|
-
|
|
276
|
-
string,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
237
|
+
export declare namespace TokenDisabledEvent {
|
|
238
|
+
type InputTuple = [borrower: AddressLike, token: AddressLike];
|
|
239
|
+
type OutputTuple = [borrower: string, token: string];
|
|
240
|
+
interface OutputObject {
|
|
241
|
+
borrower: string;
|
|
242
|
+
token: string;
|
|
243
|
+
}
|
|
244
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
245
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
246
|
+
type Log = TypedEventLog<Event>;
|
|
247
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
284
248
|
}
|
|
285
|
-
export
|
|
286
|
-
|
|
287
|
-
string
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
249
|
+
export declare namespace TokenEnabledEvent {
|
|
250
|
+
type InputTuple = [borrower: AddressLike, token: AddressLike];
|
|
251
|
+
type OutputTuple = [borrower: string, token: string];
|
|
252
|
+
interface OutputObject {
|
|
253
|
+
borrower: string;
|
|
254
|
+
token: string;
|
|
255
|
+
}
|
|
256
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
257
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
258
|
+
type Log = TypedEventLog<Event>;
|
|
259
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
293
260
|
}
|
|
294
|
-
export
|
|
295
|
-
|
|
296
|
-
string
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
261
|
+
export declare namespace TransferAccountEvent {
|
|
262
|
+
type InputTuple = [oldOwner: AddressLike, newOwner: AddressLike];
|
|
263
|
+
type OutputTuple = [oldOwner: string, newOwner: string];
|
|
264
|
+
interface OutputObject {
|
|
265
|
+
oldOwner: string;
|
|
266
|
+
newOwner: string;
|
|
267
|
+
}
|
|
268
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
269
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
270
|
+
type Log = TypedEventLog<Event>;
|
|
271
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
302
272
|
}
|
|
303
|
-
export
|
|
304
|
-
|
|
305
|
-
string
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
273
|
+
export declare namespace TransferAccountAllowedEvent {
|
|
274
|
+
type InputTuple = [from: AddressLike, to: AddressLike, state: boolean];
|
|
275
|
+
type OutputTuple = [from: string, to: string, state: boolean];
|
|
276
|
+
interface OutputObject {
|
|
277
|
+
from: string;
|
|
278
|
+
to: string;
|
|
279
|
+
state: boolean;
|
|
280
|
+
}
|
|
281
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
282
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
283
|
+
type Log = TypedEventLog<Event>;
|
|
284
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
312
285
|
}
|
|
313
|
-
export
|
|
314
|
-
|
|
315
|
-
string,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
286
|
+
export declare namespace UnderlyingSentToBlacklistHelperEvent {
|
|
287
|
+
type InputTuple = [borrower: AddressLike, amount: BigNumberish];
|
|
288
|
+
type OutputTuple = [borrower: string, amount: bigint];
|
|
289
|
+
interface OutputObject {
|
|
290
|
+
borrower: string;
|
|
291
|
+
amount: bigint;
|
|
292
|
+
}
|
|
293
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
294
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
295
|
+
type Log = TypedEventLog<Event>;
|
|
296
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
322
297
|
}
|
|
323
|
-
export type UnderlyingSentToBlacklistHelperEvent = TypedEvent<[
|
|
324
|
-
string,
|
|
325
|
-
BigNumber
|
|
326
|
-
], UnderlyingSentToBlacklistHelperEventObject>;
|
|
327
|
-
export type UnderlyingSentToBlacklistHelperEventFilter = TypedEventFilter<UnderlyingSentToBlacklistHelperEvent>;
|
|
328
298
|
export interface ICreditFacadeV2 extends BaseContract {
|
|
329
|
-
connect(
|
|
330
|
-
|
|
331
|
-
deployed(): Promise<this>;
|
|
299
|
+
connect(runner?: ContractRunner | null): ICreditFacadeV2;
|
|
300
|
+
waitForDeployment(): Promise<this>;
|
|
332
301
|
interface: ICreditFacadeV2Interface;
|
|
333
|
-
queryFilter<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
302
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
303
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
304
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
305
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
306
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
307
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
308
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
309
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
310
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
311
|
+
addCollateral: TypedContractMethod<[
|
|
312
|
+
onBehalfOf: AddressLike,
|
|
313
|
+
token: AddressLike,
|
|
314
|
+
amount: BigNumberish
|
|
315
|
+
], [
|
|
316
|
+
void
|
|
317
|
+
], "payable">;
|
|
318
|
+
approveAccountTransfer: TypedContractMethod<[
|
|
319
|
+
from: AddressLike,
|
|
320
|
+
state: boolean
|
|
321
|
+
], [
|
|
322
|
+
void
|
|
323
|
+
], "nonpayable">;
|
|
324
|
+
blacklistHelper: TypedContractMethod<[], [string], "view">;
|
|
325
|
+
calcCreditAccountHealthFactor: TypedContractMethod<[
|
|
326
|
+
creditAccount: AddressLike
|
|
327
|
+
], [
|
|
328
|
+
bigint
|
|
329
|
+
], "view">;
|
|
330
|
+
calcTotalValue: TypedContractMethod<[
|
|
331
|
+
creditAccount: AddressLike
|
|
332
|
+
], [
|
|
333
|
+
[bigint, bigint] & {
|
|
334
|
+
total: bigint;
|
|
335
|
+
twv: bigint;
|
|
336
|
+
}
|
|
337
|
+
], "view">;
|
|
338
|
+
"closeCreditAccount(address,uint256,(address,bytes)[])": TypedContractMethod<[
|
|
339
|
+
to: AddressLike,
|
|
340
|
+
skipTokenMask: BigNumberish,
|
|
341
|
+
calls: MultiCallStruct[]
|
|
342
|
+
], [
|
|
343
|
+
void
|
|
344
|
+
], "payable">;
|
|
345
|
+
"closeCreditAccount(address,uint256,bool,(address,bytes)[])": TypedContractMethod<[
|
|
346
|
+
to: AddressLike,
|
|
347
|
+
skipTokenMask: BigNumberish,
|
|
348
|
+
convertWETH: boolean,
|
|
349
|
+
calls: MultiCallStruct[]
|
|
350
|
+
], [
|
|
351
|
+
void
|
|
352
|
+
], "payable">;
|
|
353
|
+
creditManager: TypedContractMethod<[], [string], "view">;
|
|
354
|
+
degenNFT: TypedContractMethod<[], [string], "view">;
|
|
355
|
+
hasOpenedCreditAccount: TypedContractMethod<[
|
|
356
|
+
borrower: AddressLike
|
|
357
|
+
], [
|
|
358
|
+
boolean
|
|
359
|
+
], "view">;
|
|
360
|
+
isBlacklistableUnderlying: TypedContractMethod<[], [boolean], "view">;
|
|
361
|
+
isTokenAllowed: TypedContractMethod<[token: AddressLike], [boolean], "view">;
|
|
362
|
+
limits: TypedContractMethod<[
|
|
363
|
+
], [
|
|
364
|
+
[
|
|
365
|
+
bigint,
|
|
366
|
+
bigint
|
|
371
367
|
] & {
|
|
372
|
-
minBorrowedAmount:
|
|
373
|
-
maxBorrowedAmount:
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
368
|
+
minBorrowedAmount: bigint;
|
|
369
|
+
maxBorrowedAmount: bigint;
|
|
370
|
+
}
|
|
371
|
+
], "view">;
|
|
372
|
+
"liquidateCreditAccount(address,address,uint256,(address,bytes)[])": TypedContractMethod<[
|
|
373
|
+
borrower: AddressLike,
|
|
374
|
+
to: AddressLike,
|
|
375
|
+
skipTokenMask: BigNumberish,
|
|
376
|
+
calls: MultiCallStruct[]
|
|
377
|
+
], [
|
|
378
|
+
void
|
|
379
|
+
], "payable">;
|
|
380
|
+
"liquidateCreditAccount(address,address,uint256,bool,(address,bytes)[])": TypedContractMethod<[
|
|
381
|
+
borrower: AddressLike,
|
|
382
|
+
to: AddressLike,
|
|
383
|
+
skipTokenMask: BigNumberish,
|
|
384
|
+
convertWETH: boolean,
|
|
385
|
+
calls: MultiCallStruct[]
|
|
386
|
+
], [
|
|
387
|
+
void
|
|
388
|
+
], "payable">;
|
|
389
|
+
"liquidateExpiredCreditAccount(address,address,uint256,(address,bytes)[])": TypedContractMethod<[
|
|
390
|
+
borrower: AddressLike,
|
|
391
|
+
to: AddressLike,
|
|
392
|
+
skipTokenMask: BigNumberish,
|
|
393
|
+
calls: MultiCallStruct[]
|
|
394
|
+
], [
|
|
395
|
+
void
|
|
396
|
+
], "payable">;
|
|
397
|
+
"liquidateExpiredCreditAccount(address,address,uint256,bool,(address,bytes)[])": TypedContractMethod<[
|
|
398
|
+
borrower: AddressLike,
|
|
399
|
+
to: AddressLike,
|
|
400
|
+
skipTokenMask: BigNumberish,
|
|
401
|
+
convertWETH: boolean,
|
|
402
|
+
calls: MultiCallStruct[]
|
|
403
|
+
], [
|
|
404
|
+
void
|
|
405
|
+
], "payable">;
|
|
406
|
+
lossParams: TypedContractMethod<[
|
|
407
|
+
], [
|
|
408
|
+
[
|
|
409
|
+
bigint,
|
|
410
|
+
bigint
|
|
390
411
|
] & {
|
|
391
|
-
currentCumulativeLoss:
|
|
392
|
-
maxCumulativeLoss:
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
412
|
+
currentCumulativeLoss: bigint;
|
|
413
|
+
maxCumulativeLoss: bigint;
|
|
414
|
+
}
|
|
415
|
+
], "view">;
|
|
416
|
+
multicall: TypedContractMethod<[calls: MultiCallStruct[]], [void], "payable">;
|
|
417
|
+
openCreditAccount: TypedContractMethod<[
|
|
418
|
+
amount: BigNumberish,
|
|
419
|
+
onBehalfOf: AddressLike,
|
|
420
|
+
leverageFactor: BigNumberish,
|
|
421
|
+
referralCode: BigNumberish
|
|
422
|
+
], [
|
|
423
|
+
void
|
|
424
|
+
], "payable">;
|
|
425
|
+
openCreditAccountMulticall: TypedContractMethod<[
|
|
426
|
+
borrowedAmount: BigNumberish,
|
|
427
|
+
onBehalfOf: AddressLike,
|
|
428
|
+
calls: MultiCallStruct[],
|
|
429
|
+
referralCode: BigNumberish
|
|
430
|
+
], [
|
|
431
|
+
void
|
|
432
|
+
], "payable">;
|
|
433
|
+
params: TypedContractMethod<[
|
|
434
|
+
], [
|
|
435
|
+
[
|
|
436
|
+
bigint,
|
|
405
437
|
boolean,
|
|
406
|
-
|
|
407
|
-
|
|
438
|
+
bigint,
|
|
439
|
+
bigint
|
|
408
440
|
] & {
|
|
409
|
-
maxBorrowedAmountPerBlock:
|
|
441
|
+
maxBorrowedAmountPerBlock: bigint;
|
|
410
442
|
isIncreaseDebtForbidden: boolean;
|
|
411
|
-
expirationDate:
|
|
412
|
-
emergencyLiquidationDiscount:
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
] & {
|
|
418
|
-
currentTotalDebt:
|
|
419
|
-
totalDebtLimit:
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
from
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
]
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
from?: PromiseOrValue<string>;
|
|
485
|
-
}): Promise<ContractTransaction>;
|
|
486
|
-
params(overrides?: CallOverrides): Promise<[
|
|
487
|
-
BigNumber,
|
|
488
|
-
boolean,
|
|
489
|
-
number,
|
|
490
|
-
number
|
|
491
|
-
] & {
|
|
492
|
-
maxBorrowedAmountPerBlock: BigNumber;
|
|
493
|
-
isIncreaseDebtForbidden: boolean;
|
|
494
|
-
expirationDate: number;
|
|
495
|
-
emergencyLiquidationDiscount: number;
|
|
496
|
-
}>;
|
|
497
|
-
totalDebt(overrides?: CallOverrides): Promise<[
|
|
498
|
-
BigNumber,
|
|
499
|
-
BigNumber
|
|
500
|
-
] & {
|
|
501
|
-
currentTotalDebt: BigNumber;
|
|
502
|
-
totalDebtLimit: BigNumber;
|
|
503
|
-
}>;
|
|
504
|
-
transferAccountOwnership(to: PromiseOrValue<string>, overrides?: Overrides & {
|
|
505
|
-
from?: PromiseOrValue<string>;
|
|
506
|
-
}): Promise<ContractTransaction>;
|
|
507
|
-
transfersAllowed(from: PromiseOrValue<string>, to: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
508
|
-
underlying(overrides?: CallOverrides): Promise<string>;
|
|
509
|
-
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
510
|
-
callStatic: {
|
|
511
|
-
addCollateral(onBehalfOf: PromiseOrValue<string>, token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
512
|
-
approveAccountTransfer(from: PromiseOrValue<string>, state: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<void>;
|
|
513
|
-
blacklistHelper(overrides?: CallOverrides): Promise<string>;
|
|
514
|
-
calcCreditAccountHealthFactor(creditAccount: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
515
|
-
calcTotalValue(creditAccount: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & {
|
|
516
|
-
total: BigNumber;
|
|
517
|
-
twv: BigNumber;
|
|
518
|
-
}>;
|
|
519
|
-
"closeCreditAccount(address,uint256,(address,bytes)[])"(to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, calls: MultiCallStruct[], overrides?: CallOverrides): Promise<void>;
|
|
520
|
-
"closeCreditAccount(address,uint256,bool,(address,bytes)[])"(to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, convertWETH: PromiseOrValue<boolean>, calls: MultiCallStruct[], overrides?: CallOverrides): Promise<void>;
|
|
521
|
-
creditManager(overrides?: CallOverrides): Promise<string>;
|
|
522
|
-
degenNFT(overrides?: CallOverrides): Promise<string>;
|
|
523
|
-
hasOpenedCreditAccount(borrower: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
524
|
-
isBlacklistableUnderlying(overrides?: CallOverrides): Promise<boolean>;
|
|
525
|
-
isTokenAllowed(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
526
|
-
limits(overrides?: CallOverrides): Promise<[
|
|
527
|
-
BigNumber,
|
|
528
|
-
BigNumber
|
|
443
|
+
expirationDate: bigint;
|
|
444
|
+
emergencyLiquidationDiscount: bigint;
|
|
445
|
+
}
|
|
446
|
+
], "view">;
|
|
447
|
+
totalDebt: TypedContractMethod<[
|
|
448
|
+
], [
|
|
449
|
+
[bigint, bigint] & {
|
|
450
|
+
currentTotalDebt: bigint;
|
|
451
|
+
totalDebtLimit: bigint;
|
|
452
|
+
}
|
|
453
|
+
], "view">;
|
|
454
|
+
transferAccountOwnership: TypedContractMethod<[
|
|
455
|
+
to: AddressLike
|
|
456
|
+
], [
|
|
457
|
+
void
|
|
458
|
+
], "nonpayable">;
|
|
459
|
+
transfersAllowed: TypedContractMethod<[
|
|
460
|
+
from: AddressLike,
|
|
461
|
+
to: AddressLike
|
|
462
|
+
], [
|
|
463
|
+
boolean
|
|
464
|
+
], "view">;
|
|
465
|
+
underlying: TypedContractMethod<[], [string], "view">;
|
|
466
|
+
version: TypedContractMethod<[], [bigint], "view">;
|
|
467
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
468
|
+
getFunction(nameOrSignature: "addCollateral"): TypedContractMethod<[
|
|
469
|
+
onBehalfOf: AddressLike,
|
|
470
|
+
token: AddressLike,
|
|
471
|
+
amount: BigNumberish
|
|
472
|
+
], [
|
|
473
|
+
void
|
|
474
|
+
], "payable">;
|
|
475
|
+
getFunction(nameOrSignature: "approveAccountTransfer"): TypedContractMethod<[
|
|
476
|
+
from: AddressLike,
|
|
477
|
+
state: boolean
|
|
478
|
+
], [
|
|
479
|
+
void
|
|
480
|
+
], "nonpayable">;
|
|
481
|
+
getFunction(nameOrSignature: "blacklistHelper"): TypedContractMethod<[], [string], "view">;
|
|
482
|
+
getFunction(nameOrSignature: "calcCreditAccountHealthFactor"): TypedContractMethod<[creditAccount: AddressLike], [bigint], "view">;
|
|
483
|
+
getFunction(nameOrSignature: "calcTotalValue"): TypedContractMethod<[
|
|
484
|
+
creditAccount: AddressLike
|
|
485
|
+
], [
|
|
486
|
+
[bigint, bigint] & {
|
|
487
|
+
total: bigint;
|
|
488
|
+
twv: bigint;
|
|
489
|
+
}
|
|
490
|
+
], "view">;
|
|
491
|
+
getFunction(nameOrSignature: "closeCreditAccount(address,uint256,(address,bytes)[])"): TypedContractMethod<[
|
|
492
|
+
to: AddressLike,
|
|
493
|
+
skipTokenMask: BigNumberish,
|
|
494
|
+
calls: MultiCallStruct[]
|
|
495
|
+
], [
|
|
496
|
+
void
|
|
497
|
+
], "payable">;
|
|
498
|
+
getFunction(nameOrSignature: "closeCreditAccount(address,uint256,bool,(address,bytes)[])"): TypedContractMethod<[
|
|
499
|
+
to: AddressLike,
|
|
500
|
+
skipTokenMask: BigNumberish,
|
|
501
|
+
convertWETH: boolean,
|
|
502
|
+
calls: MultiCallStruct[]
|
|
503
|
+
], [
|
|
504
|
+
void
|
|
505
|
+
], "payable">;
|
|
506
|
+
getFunction(nameOrSignature: "creditManager"): TypedContractMethod<[], [string], "view">;
|
|
507
|
+
getFunction(nameOrSignature: "degenNFT"): TypedContractMethod<[], [string], "view">;
|
|
508
|
+
getFunction(nameOrSignature: "hasOpenedCreditAccount"): TypedContractMethod<[borrower: AddressLike], [boolean], "view">;
|
|
509
|
+
getFunction(nameOrSignature: "isBlacklistableUnderlying"): TypedContractMethod<[], [boolean], "view">;
|
|
510
|
+
getFunction(nameOrSignature: "isTokenAllowed"): TypedContractMethod<[token: AddressLike], [boolean], "view">;
|
|
511
|
+
getFunction(nameOrSignature: "limits"): TypedContractMethod<[
|
|
512
|
+
], [
|
|
513
|
+
[
|
|
514
|
+
bigint,
|
|
515
|
+
bigint
|
|
529
516
|
] & {
|
|
530
|
-
minBorrowedAmount:
|
|
531
|
-
maxBorrowedAmount:
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
517
|
+
minBorrowedAmount: bigint;
|
|
518
|
+
maxBorrowedAmount: bigint;
|
|
519
|
+
}
|
|
520
|
+
], "view">;
|
|
521
|
+
getFunction(nameOrSignature: "liquidateCreditAccount(address,address,uint256,(address,bytes)[])"): TypedContractMethod<[
|
|
522
|
+
borrower: AddressLike,
|
|
523
|
+
to: AddressLike,
|
|
524
|
+
skipTokenMask: BigNumberish,
|
|
525
|
+
calls: MultiCallStruct[]
|
|
526
|
+
], [
|
|
527
|
+
void
|
|
528
|
+
], "payable">;
|
|
529
|
+
getFunction(nameOrSignature: "liquidateCreditAccount(address,address,uint256,bool,(address,bytes)[])"): TypedContractMethod<[
|
|
530
|
+
borrower: AddressLike,
|
|
531
|
+
to: AddressLike,
|
|
532
|
+
skipTokenMask: BigNumberish,
|
|
533
|
+
convertWETH: boolean,
|
|
534
|
+
calls: MultiCallStruct[]
|
|
535
|
+
], [
|
|
536
|
+
void
|
|
537
|
+
], "payable">;
|
|
538
|
+
getFunction(nameOrSignature: "liquidateExpiredCreditAccount(address,address,uint256,(address,bytes)[])"): TypedContractMethod<[
|
|
539
|
+
borrower: AddressLike,
|
|
540
|
+
to: AddressLike,
|
|
541
|
+
skipTokenMask: BigNumberish,
|
|
542
|
+
calls: MultiCallStruct[]
|
|
543
|
+
], [
|
|
544
|
+
void
|
|
545
|
+
], "payable">;
|
|
546
|
+
getFunction(nameOrSignature: "liquidateExpiredCreditAccount(address,address,uint256,bool,(address,bytes)[])"): TypedContractMethod<[
|
|
547
|
+
borrower: AddressLike,
|
|
548
|
+
to: AddressLike,
|
|
549
|
+
skipTokenMask: BigNumberish,
|
|
550
|
+
convertWETH: boolean,
|
|
551
|
+
calls: MultiCallStruct[]
|
|
552
|
+
], [
|
|
553
|
+
void
|
|
554
|
+
], "payable">;
|
|
555
|
+
getFunction(nameOrSignature: "lossParams"): TypedContractMethod<[
|
|
556
|
+
], [
|
|
557
|
+
[
|
|
558
|
+
bigint,
|
|
559
|
+
bigint
|
|
540
560
|
] & {
|
|
541
|
-
currentCumulativeLoss:
|
|
542
|
-
maxCumulativeLoss:
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
561
|
+
currentCumulativeLoss: bigint;
|
|
562
|
+
maxCumulativeLoss: bigint;
|
|
563
|
+
}
|
|
564
|
+
], "view">;
|
|
565
|
+
getFunction(nameOrSignature: "multicall"): TypedContractMethod<[calls: MultiCallStruct[]], [void], "payable">;
|
|
566
|
+
getFunction(nameOrSignature: "openCreditAccount"): TypedContractMethod<[
|
|
567
|
+
amount: BigNumberish,
|
|
568
|
+
onBehalfOf: AddressLike,
|
|
569
|
+
leverageFactor: BigNumberish,
|
|
570
|
+
referralCode: BigNumberish
|
|
571
|
+
], [
|
|
572
|
+
void
|
|
573
|
+
], "payable">;
|
|
574
|
+
getFunction(nameOrSignature: "openCreditAccountMulticall"): TypedContractMethod<[
|
|
575
|
+
borrowedAmount: BigNumberish,
|
|
576
|
+
onBehalfOf: AddressLike,
|
|
577
|
+
calls: MultiCallStruct[],
|
|
578
|
+
referralCode: BigNumberish
|
|
579
|
+
], [
|
|
580
|
+
void
|
|
581
|
+
], "payable">;
|
|
582
|
+
getFunction(nameOrSignature: "params"): TypedContractMethod<[
|
|
583
|
+
], [
|
|
584
|
+
[
|
|
585
|
+
bigint,
|
|
549
586
|
boolean,
|
|
550
|
-
|
|
551
|
-
|
|
587
|
+
bigint,
|
|
588
|
+
bigint
|
|
552
589
|
] & {
|
|
553
|
-
maxBorrowedAmountPerBlock:
|
|
590
|
+
maxBorrowedAmountPerBlock: bigint;
|
|
554
591
|
isIncreaseDebtForbidden: boolean;
|
|
555
|
-
expirationDate:
|
|
556
|
-
emergencyLiquidationDiscount:
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
] & {
|
|
562
|
-
currentTotalDebt:
|
|
563
|
-
totalDebtLimit:
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
592
|
+
expirationDate: bigint;
|
|
593
|
+
emergencyLiquidationDiscount: bigint;
|
|
594
|
+
}
|
|
595
|
+
], "view">;
|
|
596
|
+
getFunction(nameOrSignature: "totalDebt"): TypedContractMethod<[
|
|
597
|
+
], [
|
|
598
|
+
[bigint, bigint] & {
|
|
599
|
+
currentTotalDebt: bigint;
|
|
600
|
+
totalDebtLimit: bigint;
|
|
601
|
+
}
|
|
602
|
+
], "view">;
|
|
603
|
+
getFunction(nameOrSignature: "transferAccountOwnership"): TypedContractMethod<[to: AddressLike], [void], "nonpayable">;
|
|
604
|
+
getFunction(nameOrSignature: "transfersAllowed"): TypedContractMethod<[
|
|
605
|
+
from: AddressLike,
|
|
606
|
+
to: AddressLike
|
|
607
|
+
], [
|
|
608
|
+
boolean
|
|
609
|
+
], "view">;
|
|
610
|
+
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
611
|
+
getFunction(nameOrSignature: "version"): TypedContractMethod<[], [bigint], "view">;
|
|
612
|
+
getEvent(key: "AddCollateral"): TypedContractEvent<AddCollateralEvent.InputTuple, AddCollateralEvent.OutputTuple, AddCollateralEvent.OutputObject>;
|
|
613
|
+
getEvent(key: "BlacklistHelperSet"): TypedContractEvent<BlacklistHelperSetEvent.InputTuple, BlacklistHelperSetEvent.OutputTuple, BlacklistHelperSetEvent.OutputObject>;
|
|
614
|
+
getEvent(key: "CloseCreditAccount"): TypedContractEvent<CloseCreditAccountEvent.InputTuple, CloseCreditAccountEvent.OutputTuple, CloseCreditAccountEvent.OutputObject>;
|
|
615
|
+
getEvent(key: "DecreaseBorrowedAmount"): TypedContractEvent<DecreaseBorrowedAmountEvent.InputTuple, DecreaseBorrowedAmountEvent.OutputTuple, DecreaseBorrowedAmountEvent.OutputObject>;
|
|
616
|
+
getEvent(key: "IncreaseBorrowedAmount"): TypedContractEvent<IncreaseBorrowedAmountEvent.InputTuple, IncreaseBorrowedAmountEvent.OutputTuple, IncreaseBorrowedAmountEvent.OutputObject>;
|
|
617
|
+
getEvent(key: "IncurLossOnLiquidation"): TypedContractEvent<IncurLossOnLiquidationEvent.InputTuple, IncurLossOnLiquidationEvent.OutputTuple, IncurLossOnLiquidationEvent.OutputObject>;
|
|
618
|
+
getEvent(key: "LiquidateCreditAccount"): TypedContractEvent<LiquidateCreditAccountEvent.InputTuple, LiquidateCreditAccountEvent.OutputTuple, LiquidateCreditAccountEvent.OutputObject>;
|
|
619
|
+
getEvent(key: "LiquidateExpiredCreditAccount"): TypedContractEvent<LiquidateExpiredCreditAccountEvent.InputTuple, LiquidateExpiredCreditAccountEvent.OutputTuple, LiquidateExpiredCreditAccountEvent.OutputObject>;
|
|
620
|
+
getEvent(key: "MultiCallFinished"): TypedContractEvent<MultiCallFinishedEvent.InputTuple, MultiCallFinishedEvent.OutputTuple, MultiCallFinishedEvent.OutputObject>;
|
|
621
|
+
getEvent(key: "MultiCallStarted"): TypedContractEvent<MultiCallStartedEvent.InputTuple, MultiCallStartedEvent.OutputTuple, MultiCallStartedEvent.OutputObject>;
|
|
622
|
+
getEvent(key: "OpenCreditAccount"): TypedContractEvent<OpenCreditAccountEvent.InputTuple, OpenCreditAccountEvent.OutputTuple, OpenCreditAccountEvent.OutputObject>;
|
|
623
|
+
getEvent(key: "TokenDisabled"): TypedContractEvent<TokenDisabledEvent.InputTuple, TokenDisabledEvent.OutputTuple, TokenDisabledEvent.OutputObject>;
|
|
624
|
+
getEvent(key: "TokenEnabled"): TypedContractEvent<TokenEnabledEvent.InputTuple, TokenEnabledEvent.OutputTuple, TokenEnabledEvent.OutputObject>;
|
|
625
|
+
getEvent(key: "TransferAccount"): TypedContractEvent<TransferAccountEvent.InputTuple, TransferAccountEvent.OutputTuple, TransferAccountEvent.OutputObject>;
|
|
626
|
+
getEvent(key: "TransferAccountAllowed"): TypedContractEvent<TransferAccountAllowedEvent.InputTuple, TransferAccountAllowedEvent.OutputTuple, TransferAccountAllowedEvent.OutputObject>;
|
|
627
|
+
getEvent(key: "UnderlyingSentToBlacklistHelper"): TypedContractEvent<UnderlyingSentToBlacklistHelperEvent.InputTuple, UnderlyingSentToBlacklistHelperEvent.OutputTuple, UnderlyingSentToBlacklistHelperEvent.OutputObject>;
|
|
570
628
|
filters: {
|
|
571
|
-
"AddCollateral(address,address,uint256)"
|
|
572
|
-
AddCollateral
|
|
573
|
-
"BlacklistHelperSet(address)"
|
|
574
|
-
BlacklistHelperSet
|
|
575
|
-
"CloseCreditAccount(address,address)"
|
|
576
|
-
CloseCreditAccount
|
|
577
|
-
"DecreaseBorrowedAmount(address,uint256)"
|
|
578
|
-
DecreaseBorrowedAmount
|
|
579
|
-
"IncreaseBorrowedAmount(address,uint256)"
|
|
580
|
-
IncreaseBorrowedAmount
|
|
581
|
-
"IncurLossOnLiquidation(uint256)"
|
|
582
|
-
IncurLossOnLiquidation
|
|
583
|
-
"LiquidateCreditAccount(address,address,address,uint256)"
|
|
584
|
-
LiquidateCreditAccount
|
|
585
|
-
"LiquidateExpiredCreditAccount(address,address,address,uint256)"
|
|
586
|
-
LiquidateExpiredCreditAccount
|
|
587
|
-
"MultiCallFinished()"
|
|
588
|
-
MultiCallFinished
|
|
589
|
-
"MultiCallStarted(address)"
|
|
590
|
-
MultiCallStarted
|
|
591
|
-
"OpenCreditAccount(address,address,uint256,uint16)"
|
|
592
|
-
OpenCreditAccount
|
|
593
|
-
"TokenDisabled(address,address)"
|
|
594
|
-
TokenDisabled
|
|
595
|
-
"TokenEnabled(address,address)"
|
|
596
|
-
TokenEnabled
|
|
597
|
-
"TransferAccount(address,address)"
|
|
598
|
-
TransferAccount
|
|
599
|
-
"TransferAccountAllowed(address,address,bool)"
|
|
600
|
-
TransferAccountAllowed
|
|
601
|
-
"UnderlyingSentToBlacklistHelper(address,uint256)"
|
|
602
|
-
UnderlyingSentToBlacklistHelper
|
|
603
|
-
};
|
|
604
|
-
estimateGas: {
|
|
605
|
-
addCollateral(onBehalfOf: PromiseOrValue<string>, token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
606
|
-
from?: PromiseOrValue<string>;
|
|
607
|
-
}): Promise<BigNumber>;
|
|
608
|
-
approveAccountTransfer(from: PromiseOrValue<string>, state: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
609
|
-
from?: PromiseOrValue<string>;
|
|
610
|
-
}): Promise<BigNumber>;
|
|
611
|
-
blacklistHelper(overrides?: CallOverrides): Promise<BigNumber>;
|
|
612
|
-
calcCreditAccountHealthFactor(creditAccount: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
613
|
-
calcTotalValue(creditAccount: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
614
|
-
"closeCreditAccount(address,uint256,(address,bytes)[])"(to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
615
|
-
from?: PromiseOrValue<string>;
|
|
616
|
-
}): Promise<BigNumber>;
|
|
617
|
-
"closeCreditAccount(address,uint256,bool,(address,bytes)[])"(to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, convertWETH: PromiseOrValue<boolean>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
618
|
-
from?: PromiseOrValue<string>;
|
|
619
|
-
}): Promise<BigNumber>;
|
|
620
|
-
creditManager(overrides?: CallOverrides): Promise<BigNumber>;
|
|
621
|
-
degenNFT(overrides?: CallOverrides): Promise<BigNumber>;
|
|
622
|
-
hasOpenedCreditAccount(borrower: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
623
|
-
isBlacklistableUnderlying(overrides?: CallOverrides): Promise<BigNumber>;
|
|
624
|
-
isTokenAllowed(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
625
|
-
limits(overrides?: CallOverrides): Promise<BigNumber>;
|
|
626
|
-
"liquidateCreditAccount(address,address,uint256,(address,bytes)[])"(borrower: PromiseOrValue<string>, to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
627
|
-
from?: PromiseOrValue<string>;
|
|
628
|
-
}): Promise<BigNumber>;
|
|
629
|
-
"liquidateCreditAccount(address,address,uint256,bool,(address,bytes)[])"(borrower: PromiseOrValue<string>, to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, convertWETH: PromiseOrValue<boolean>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
630
|
-
from?: PromiseOrValue<string>;
|
|
631
|
-
}): Promise<BigNumber>;
|
|
632
|
-
"liquidateExpiredCreditAccount(address,address,uint256,(address,bytes)[])"(borrower: PromiseOrValue<string>, to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
633
|
-
from?: PromiseOrValue<string>;
|
|
634
|
-
}): Promise<BigNumber>;
|
|
635
|
-
"liquidateExpiredCreditAccount(address,address,uint256,bool,(address,bytes)[])"(borrower: PromiseOrValue<string>, to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, convertWETH: PromiseOrValue<boolean>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
636
|
-
from?: PromiseOrValue<string>;
|
|
637
|
-
}): Promise<BigNumber>;
|
|
638
|
-
lossParams(overrides?: CallOverrides): Promise<BigNumber>;
|
|
639
|
-
multicall(calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
640
|
-
from?: PromiseOrValue<string>;
|
|
641
|
-
}): Promise<BigNumber>;
|
|
642
|
-
openCreditAccount(amount: PromiseOrValue<BigNumberish>, onBehalfOf: PromiseOrValue<string>, leverageFactor: PromiseOrValue<BigNumberish>, referralCode: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
643
|
-
from?: PromiseOrValue<string>;
|
|
644
|
-
}): Promise<BigNumber>;
|
|
645
|
-
openCreditAccountMulticall(borrowedAmount: PromiseOrValue<BigNumberish>, onBehalfOf: PromiseOrValue<string>, calls: MultiCallStruct[], referralCode: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
646
|
-
from?: PromiseOrValue<string>;
|
|
647
|
-
}): Promise<BigNumber>;
|
|
648
|
-
params(overrides?: CallOverrides): Promise<BigNumber>;
|
|
649
|
-
totalDebt(overrides?: CallOverrides): Promise<BigNumber>;
|
|
650
|
-
transferAccountOwnership(to: PromiseOrValue<string>, overrides?: Overrides & {
|
|
651
|
-
from?: PromiseOrValue<string>;
|
|
652
|
-
}): Promise<BigNumber>;
|
|
653
|
-
transfersAllowed(from: PromiseOrValue<string>, to: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
654
|
-
underlying(overrides?: CallOverrides): Promise<BigNumber>;
|
|
655
|
-
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
656
|
-
};
|
|
657
|
-
populateTransaction: {
|
|
658
|
-
addCollateral(onBehalfOf: PromiseOrValue<string>, token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
659
|
-
from?: PromiseOrValue<string>;
|
|
660
|
-
}): Promise<PopulatedTransaction>;
|
|
661
|
-
approveAccountTransfer(from: PromiseOrValue<string>, state: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
662
|
-
from?: PromiseOrValue<string>;
|
|
663
|
-
}): Promise<PopulatedTransaction>;
|
|
664
|
-
blacklistHelper(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
665
|
-
calcCreditAccountHealthFactor(creditAccount: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
666
|
-
calcTotalValue(creditAccount: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
667
|
-
"closeCreditAccount(address,uint256,(address,bytes)[])"(to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
668
|
-
from?: PromiseOrValue<string>;
|
|
669
|
-
}): Promise<PopulatedTransaction>;
|
|
670
|
-
"closeCreditAccount(address,uint256,bool,(address,bytes)[])"(to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, convertWETH: PromiseOrValue<boolean>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
671
|
-
from?: PromiseOrValue<string>;
|
|
672
|
-
}): Promise<PopulatedTransaction>;
|
|
673
|
-
creditManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
674
|
-
degenNFT(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
675
|
-
hasOpenedCreditAccount(borrower: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
676
|
-
isBlacklistableUnderlying(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
677
|
-
isTokenAllowed(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
678
|
-
limits(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
679
|
-
"liquidateCreditAccount(address,address,uint256,(address,bytes)[])"(borrower: PromiseOrValue<string>, to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
680
|
-
from?: PromiseOrValue<string>;
|
|
681
|
-
}): Promise<PopulatedTransaction>;
|
|
682
|
-
"liquidateCreditAccount(address,address,uint256,bool,(address,bytes)[])"(borrower: PromiseOrValue<string>, to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, convertWETH: PromiseOrValue<boolean>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
683
|
-
from?: PromiseOrValue<string>;
|
|
684
|
-
}): Promise<PopulatedTransaction>;
|
|
685
|
-
"liquidateExpiredCreditAccount(address,address,uint256,(address,bytes)[])"(borrower: PromiseOrValue<string>, to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
686
|
-
from?: PromiseOrValue<string>;
|
|
687
|
-
}): Promise<PopulatedTransaction>;
|
|
688
|
-
"liquidateExpiredCreditAccount(address,address,uint256,bool,(address,bytes)[])"(borrower: PromiseOrValue<string>, to: PromiseOrValue<string>, skipTokenMask: PromiseOrValue<BigNumberish>, convertWETH: PromiseOrValue<boolean>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
689
|
-
from?: PromiseOrValue<string>;
|
|
690
|
-
}): Promise<PopulatedTransaction>;
|
|
691
|
-
lossParams(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
692
|
-
multicall(calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
693
|
-
from?: PromiseOrValue<string>;
|
|
694
|
-
}): Promise<PopulatedTransaction>;
|
|
695
|
-
openCreditAccount(amount: PromiseOrValue<BigNumberish>, onBehalfOf: PromiseOrValue<string>, leverageFactor: PromiseOrValue<BigNumberish>, referralCode: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
696
|
-
from?: PromiseOrValue<string>;
|
|
697
|
-
}): Promise<PopulatedTransaction>;
|
|
698
|
-
openCreditAccountMulticall(borrowedAmount: PromiseOrValue<BigNumberish>, onBehalfOf: PromiseOrValue<string>, calls: MultiCallStruct[], referralCode: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
699
|
-
from?: PromiseOrValue<string>;
|
|
700
|
-
}): Promise<PopulatedTransaction>;
|
|
701
|
-
params(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
702
|
-
totalDebt(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
703
|
-
transferAccountOwnership(to: PromiseOrValue<string>, overrides?: Overrides & {
|
|
704
|
-
from?: PromiseOrValue<string>;
|
|
705
|
-
}): Promise<PopulatedTransaction>;
|
|
706
|
-
transfersAllowed(from: PromiseOrValue<string>, to: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
707
|
-
underlying(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
708
|
-
version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
629
|
+
"AddCollateral(address,address,uint256)": TypedContractEvent<AddCollateralEvent.InputTuple, AddCollateralEvent.OutputTuple, AddCollateralEvent.OutputObject>;
|
|
630
|
+
AddCollateral: TypedContractEvent<AddCollateralEvent.InputTuple, AddCollateralEvent.OutputTuple, AddCollateralEvent.OutputObject>;
|
|
631
|
+
"BlacklistHelperSet(address)": TypedContractEvent<BlacklistHelperSetEvent.InputTuple, BlacklistHelperSetEvent.OutputTuple, BlacklistHelperSetEvent.OutputObject>;
|
|
632
|
+
BlacklistHelperSet: TypedContractEvent<BlacklistHelperSetEvent.InputTuple, BlacklistHelperSetEvent.OutputTuple, BlacklistHelperSetEvent.OutputObject>;
|
|
633
|
+
"CloseCreditAccount(address,address)": TypedContractEvent<CloseCreditAccountEvent.InputTuple, CloseCreditAccountEvent.OutputTuple, CloseCreditAccountEvent.OutputObject>;
|
|
634
|
+
CloseCreditAccount: TypedContractEvent<CloseCreditAccountEvent.InputTuple, CloseCreditAccountEvent.OutputTuple, CloseCreditAccountEvent.OutputObject>;
|
|
635
|
+
"DecreaseBorrowedAmount(address,uint256)": TypedContractEvent<DecreaseBorrowedAmountEvent.InputTuple, DecreaseBorrowedAmountEvent.OutputTuple, DecreaseBorrowedAmountEvent.OutputObject>;
|
|
636
|
+
DecreaseBorrowedAmount: TypedContractEvent<DecreaseBorrowedAmountEvent.InputTuple, DecreaseBorrowedAmountEvent.OutputTuple, DecreaseBorrowedAmountEvent.OutputObject>;
|
|
637
|
+
"IncreaseBorrowedAmount(address,uint256)": TypedContractEvent<IncreaseBorrowedAmountEvent.InputTuple, IncreaseBorrowedAmountEvent.OutputTuple, IncreaseBorrowedAmountEvent.OutputObject>;
|
|
638
|
+
IncreaseBorrowedAmount: TypedContractEvent<IncreaseBorrowedAmountEvent.InputTuple, IncreaseBorrowedAmountEvent.OutputTuple, IncreaseBorrowedAmountEvent.OutputObject>;
|
|
639
|
+
"IncurLossOnLiquidation(uint256)": TypedContractEvent<IncurLossOnLiquidationEvent.InputTuple, IncurLossOnLiquidationEvent.OutputTuple, IncurLossOnLiquidationEvent.OutputObject>;
|
|
640
|
+
IncurLossOnLiquidation: TypedContractEvent<IncurLossOnLiquidationEvent.InputTuple, IncurLossOnLiquidationEvent.OutputTuple, IncurLossOnLiquidationEvent.OutputObject>;
|
|
641
|
+
"LiquidateCreditAccount(address,address,address,uint256)": TypedContractEvent<LiquidateCreditAccountEvent.InputTuple, LiquidateCreditAccountEvent.OutputTuple, LiquidateCreditAccountEvent.OutputObject>;
|
|
642
|
+
LiquidateCreditAccount: TypedContractEvent<LiquidateCreditAccountEvent.InputTuple, LiquidateCreditAccountEvent.OutputTuple, LiquidateCreditAccountEvent.OutputObject>;
|
|
643
|
+
"LiquidateExpiredCreditAccount(address,address,address,uint256)": TypedContractEvent<LiquidateExpiredCreditAccountEvent.InputTuple, LiquidateExpiredCreditAccountEvent.OutputTuple, LiquidateExpiredCreditAccountEvent.OutputObject>;
|
|
644
|
+
LiquidateExpiredCreditAccount: TypedContractEvent<LiquidateExpiredCreditAccountEvent.InputTuple, LiquidateExpiredCreditAccountEvent.OutputTuple, LiquidateExpiredCreditAccountEvent.OutputObject>;
|
|
645
|
+
"MultiCallFinished()": TypedContractEvent<MultiCallFinishedEvent.InputTuple, MultiCallFinishedEvent.OutputTuple, MultiCallFinishedEvent.OutputObject>;
|
|
646
|
+
MultiCallFinished: TypedContractEvent<MultiCallFinishedEvent.InputTuple, MultiCallFinishedEvent.OutputTuple, MultiCallFinishedEvent.OutputObject>;
|
|
647
|
+
"MultiCallStarted(address)": TypedContractEvent<MultiCallStartedEvent.InputTuple, MultiCallStartedEvent.OutputTuple, MultiCallStartedEvent.OutputObject>;
|
|
648
|
+
MultiCallStarted: TypedContractEvent<MultiCallStartedEvent.InputTuple, MultiCallStartedEvent.OutputTuple, MultiCallStartedEvent.OutputObject>;
|
|
649
|
+
"OpenCreditAccount(address,address,uint256,uint16)": TypedContractEvent<OpenCreditAccountEvent.InputTuple, OpenCreditAccountEvent.OutputTuple, OpenCreditAccountEvent.OutputObject>;
|
|
650
|
+
OpenCreditAccount: TypedContractEvent<OpenCreditAccountEvent.InputTuple, OpenCreditAccountEvent.OutputTuple, OpenCreditAccountEvent.OutputObject>;
|
|
651
|
+
"TokenDisabled(address,address)": TypedContractEvent<TokenDisabledEvent.InputTuple, TokenDisabledEvent.OutputTuple, TokenDisabledEvent.OutputObject>;
|
|
652
|
+
TokenDisabled: TypedContractEvent<TokenDisabledEvent.InputTuple, TokenDisabledEvent.OutputTuple, TokenDisabledEvent.OutputObject>;
|
|
653
|
+
"TokenEnabled(address,address)": TypedContractEvent<TokenEnabledEvent.InputTuple, TokenEnabledEvent.OutputTuple, TokenEnabledEvent.OutputObject>;
|
|
654
|
+
TokenEnabled: TypedContractEvent<TokenEnabledEvent.InputTuple, TokenEnabledEvent.OutputTuple, TokenEnabledEvent.OutputObject>;
|
|
655
|
+
"TransferAccount(address,address)": TypedContractEvent<TransferAccountEvent.InputTuple, TransferAccountEvent.OutputTuple, TransferAccountEvent.OutputObject>;
|
|
656
|
+
TransferAccount: TypedContractEvent<TransferAccountEvent.InputTuple, TransferAccountEvent.OutputTuple, TransferAccountEvent.OutputObject>;
|
|
657
|
+
"TransferAccountAllowed(address,address,bool)": TypedContractEvent<TransferAccountAllowedEvent.InputTuple, TransferAccountAllowedEvent.OutputTuple, TransferAccountAllowedEvent.OutputObject>;
|
|
658
|
+
TransferAccountAllowed: TypedContractEvent<TransferAccountAllowedEvent.InputTuple, TransferAccountAllowedEvent.OutputTuple, TransferAccountAllowedEvent.OutputObject>;
|
|
659
|
+
"UnderlyingSentToBlacklistHelper(address,uint256)": TypedContractEvent<UnderlyingSentToBlacklistHelperEvent.InputTuple, UnderlyingSentToBlacklistHelperEvent.OutputTuple, UnderlyingSentToBlacklistHelperEvent.OutputObject>;
|
|
660
|
+
UnderlyingSentToBlacklistHelper: TypedContractEvent<UnderlyingSentToBlacklistHelperEvent.InputTuple, UnderlyingSentToBlacklistHelperEvent.OutputTuple, UnderlyingSentToBlacklistHelperEvent.OutputObject>;
|
|
709
661
|
};
|
|
710
662
|
}
|