@defisaver/positions-sdk 0.0.1
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/cjs/aaveV2/index.d.ts +9 -0
- package/cjs/aaveV2/index.js +184 -0
- package/cjs/aaveV3/index.d.ts +33 -0
- package/cjs/aaveV3/index.js +395 -0
- package/cjs/assets/index.d.ts +4 -0
- package/cjs/assets/index.js +54 -0
- package/cjs/chickenBonds/index.d.ts +3 -0
- package/cjs/chickenBonds/index.js +24 -0
- package/cjs/compoundV2/index.d.ts +21 -0
- package/cjs/compoundV2/index.js +168 -0
- package/cjs/compoundV3/index.d.ts +37 -0
- package/cjs/compoundV3/index.js +208 -0
- package/cjs/config/contracts.d.ts +3028 -0
- package/cjs/config/contracts.js +596 -0
- package/cjs/constants/index.d.ts +4 -0
- package/cjs/constants/index.js +7 -0
- package/cjs/contracts.d.ts +40 -0
- package/cjs/contracts.js +65 -0
- package/cjs/curveUsd/index.d.ts +7 -0
- package/cjs/curveUsd/index.js +199 -0
- package/cjs/exchange/index.d.ts +3 -0
- package/cjs/exchange/index.js +23 -0
- package/cjs/helpers/aaveHelpers/index.d.ts +37 -0
- package/cjs/helpers/aaveHelpers/index.js +118 -0
- package/cjs/helpers/compoundHelpers/index.d.ts +20 -0
- package/cjs/helpers/compoundHelpers/index.js +141 -0
- package/cjs/helpers/curveUsdHelpers/index.d.ts +8 -0
- package/cjs/helpers/curveUsdHelpers/index.js +42 -0
- package/cjs/helpers/index.d.ts +5 -0
- package/cjs/helpers/index.js +31 -0
- package/cjs/helpers/makerHelpers/index.d.ts +5 -0
- package/cjs/helpers/makerHelpers/index.js +100 -0
- package/cjs/helpers/sparkHelpers/index.d.ts +21 -0
- package/cjs/helpers/sparkHelpers/index.js +96 -0
- package/cjs/index.d.ts +19 -0
- package/cjs/index.js +64 -0
- package/cjs/liquity/index.d.ts +7 -0
- package/cjs/liquity/index.js +103 -0
- package/cjs/maker/index.d.ts +5 -0
- package/cjs/maker/index.js +103 -0
- package/cjs/markets/aave/index.d.ts +12 -0
- package/cjs/markets/aave/index.js +76 -0
- package/cjs/markets/aave/marketAssets.d.ts +9 -0
- package/cjs/markets/aave/marketAssets.js +31 -0
- package/cjs/markets/compound/index.d.ts +12 -0
- package/cjs/markets/compound/index.js +85 -0
- package/cjs/markets/compound/marketsAssets.d.ts +19 -0
- package/cjs/markets/compound/marketsAssets.js +35 -0
- package/cjs/markets/curveUsd/index.d.ts +10 -0
- package/cjs/markets/curveUsd/index.js +47 -0
- package/cjs/markets/index.d.ts +4 -0
- package/cjs/markets/index.js +11 -0
- package/cjs/markets/spark/index.d.ts +9 -0
- package/cjs/markets/spark/index.js +31 -0
- package/cjs/markets/spark/marketAssets.d.ts +6 -0
- package/cjs/markets/spark/marketAssets.js +12 -0
- package/cjs/moneymarket/index.d.ts +1 -0
- package/cjs/moneymarket/index.js +17 -0
- package/cjs/moneymarket/moneymarketCommonService.d.ts +12 -0
- package/cjs/moneymarket/moneymarketCommonService.js +83 -0
- package/cjs/morphoAaveV2/index.d.ts +7 -0
- package/cjs/morphoAaveV2/index.js +209 -0
- package/cjs/morphoAaveV3/index.d.ts +7 -0
- package/cjs/morphoAaveV3/index.js +442 -0
- package/cjs/multicall/index.d.ts +3 -0
- package/cjs/multicall/index.js +31 -0
- package/cjs/services/dsrService.d.ts +3 -0
- package/cjs/services/dsrService.js +28 -0
- package/cjs/services/utils.d.ts +16 -0
- package/cjs/services/utils.js +41 -0
- package/cjs/spark/index.d.ts +34 -0
- package/cjs/spark/index.js +337 -0
- package/cjs/staking/index.d.ts +1 -0
- package/cjs/staking/index.js +17 -0
- package/cjs/staking/staking.d.ts +15 -0
- package/cjs/staking/staking.js +162 -0
- package/cjs/types/aave.d.ts +229 -0
- package/cjs/types/aave.js +10 -0
- package/cjs/types/common.d.ts +77 -0
- package/cjs/types/common.js +10 -0
- package/cjs/types/compound.d.ts +109 -0
- package/cjs/types/compound.js +10 -0
- package/cjs/types/contracts/generated/AaveLendingPoolV2.d.ts +312 -0
- package/cjs/types/contracts/generated/AaveLendingPoolV2.js +5 -0
- package/cjs/types/contracts/generated/AaveLoanInfoV2.d.ts +137 -0
- package/cjs/types/contracts/generated/AaveLoanInfoV2.js +5 -0
- package/cjs/types/contracts/generated/AaveProtocolDataProvider.d.ts +110 -0
- package/cjs/types/contracts/generated/AaveProtocolDataProvider.js +5 -0
- package/cjs/types/contracts/generated/AaveUiIncentiveDataProviderV3.d.ts +196 -0
- package/cjs/types/contracts/generated/AaveUiIncentiveDataProviderV3.js +5 -0
- package/cjs/types/contracts/generated/AaveV3LendingPool.d.ts +429 -0
- package/cjs/types/contracts/generated/AaveV3LendingPool.js +5 -0
- package/cjs/types/contracts/generated/AaveV3PoolAddressesProvider.d.ts +169 -0
- package/cjs/types/contracts/generated/AaveV3PoolAddressesProvider.js +5 -0
- package/cjs/types/contracts/generated/AaveV3ProtocolDataProvider.d.ts +131 -0
- package/cjs/types/contracts/generated/AaveV3ProtocolDataProvider.js +5 -0
- package/cjs/types/contracts/generated/AaveV3View.d.ts +301 -0
- package/cjs/types/contracts/generated/AaveV3View.js +5 -0
- package/cjs/types/contracts/generated/BalanceScanner.d.ts +37 -0
- package/cjs/types/contracts/generated/BalanceScanner.js +5 -0
- package/cjs/types/contracts/generated/CETHv3.d.ts +441 -0
- package/cjs/types/contracts/generated/CETHv3.js +5 -0
- package/cjs/types/contracts/generated/CUSDCv3.d.ts +441 -0
- package/cjs/types/contracts/generated/CUSDCv3.js +5 -0
- package/cjs/types/contracts/generated/CUSDbCv3.d.ts +441 -0
- package/cjs/types/contracts/generated/CUSDbCv3.js +5 -0
- package/cjs/types/contracts/generated/CbEth.d.ts +20 -0
- package/cjs/types/contracts/generated/CbEth.js +5 -0
- package/cjs/types/contracts/generated/ChickenBondsView.d.ts +67 -0
- package/cjs/types/contracts/generated/ChickenBondsView.js +5 -0
- package/cjs/types/contracts/generated/CollSurplusPool.d.ts +85 -0
- package/cjs/types/contracts/generated/CollSurplusPool.js +5 -0
- package/cjs/types/contracts/generated/CompV3ETHBulker.d.ts +45 -0
- package/cjs/types/contracts/generated/CompV3ETHBulker.js +5 -0
- package/cjs/types/contracts/generated/CompV3USDCBulker.d.ts +31 -0
- package/cjs/types/contracts/generated/CompV3USDCBulker.js +5 -0
- package/cjs/types/contracts/generated/CompV3USDbCBulker.d.ts +41 -0
- package/cjs/types/contracts/generated/CompV3USDbCBulker.js +5 -0
- package/cjs/types/contracts/generated/CompV3View.d.ts +249 -0
- package/cjs/types/contracts/generated/CompV3View.js +5 -0
- package/cjs/types/contracts/generated/CompoundLoanInfo.d.ts +128 -0
- package/cjs/types/contracts/generated/CompoundLoanInfo.js +5 -0
- package/cjs/types/contracts/generated/Comptroller.d.ts +317 -0
- package/cjs/types/contracts/generated/Comptroller.js +5 -0
- package/cjs/types/contracts/generated/CrvUSDETHAmm.d.ts +139 -0
- package/cjs/types/contracts/generated/CrvUSDETHAmm.js +5 -0
- package/cjs/types/contracts/generated/CrvUSDETHController.d.ts +204 -0
- package/cjs/types/contracts/generated/CrvUSDETHController.js +5 -0
- package/cjs/types/contracts/generated/CrvUSDFactory.d.ts +117 -0
- package/cjs/types/contracts/generated/CrvUSDFactory.js +5 -0
- package/cjs/types/contracts/generated/CrvUSDView.d.ts +209 -0
- package/cjs/types/contracts/generated/CrvUSDView.js +5 -0
- package/cjs/types/contracts/generated/CrvUSDWBTCAmm.d.ts +139 -0
- package/cjs/types/contracts/generated/CrvUSDWBTCAmm.js +5 -0
- package/cjs/types/contracts/generated/CrvUSDWBTCController.d.ts +204 -0
- package/cjs/types/contracts/generated/CrvUSDWBTCController.js +5 -0
- package/cjs/types/contracts/generated/CrvUSDwstETHAmm.d.ts +139 -0
- package/cjs/types/contracts/generated/CrvUSDwstETHAmm.js +5 -0
- package/cjs/types/contracts/generated/CrvUSDwstETHController.d.ts +204 -0
- package/cjs/types/contracts/generated/CrvUSDwstETHController.js +5 -0
- package/cjs/types/contracts/generated/Erc20.d.ts +119 -0
- package/cjs/types/contracts/generated/Erc20.js +5 -0
- package/cjs/types/contracts/generated/GHO.d.ts +136 -0
- package/cjs/types/contracts/generated/GHO.js +5 -0
- package/cjs/types/contracts/generated/GhoDiscountRateStrategy.d.ts +25 -0
- package/cjs/types/contracts/generated/GhoDiscountRateStrategy.js +5 -0
- package/cjs/types/contracts/generated/IAToken.d.ts +21 -0
- package/cjs/types/contracts/generated/IAToken.js +5 -0
- package/cjs/types/contracts/generated/IVariableDebtToken.d.ts +21 -0
- package/cjs/types/contracts/generated/IVariableDebtToken.js +5 -0
- package/cjs/types/contracts/generated/LendingPoolAddressesProvider.d.ts +135 -0
- package/cjs/types/contracts/generated/LendingPoolAddressesProvider.js +5 -0
- package/cjs/types/contracts/generated/Lido.d.ts +38 -0
- package/cjs/types/contracts/generated/Lido.js +5 -0
- package/cjs/types/contracts/generated/LiquityActivePool.d.ts +21 -0
- package/cjs/types/contracts/generated/LiquityActivePool.js +5 -0
- package/cjs/types/contracts/generated/LiquityView.d.ts +51 -0
- package/cjs/types/contracts/generated/LiquityView.js +5 -0
- package/cjs/types/contracts/generated/McdDog.d.ts +134 -0
- package/cjs/types/contracts/generated/McdDog.js +5 -0
- package/cjs/types/contracts/generated/McdJug.d.ts +50 -0
- package/cjs/types/contracts/generated/McdJug.js +5 -0
- package/cjs/types/contracts/generated/McdSpotter.d.ts +27 -0
- package/cjs/types/contracts/generated/McdSpotter.js +5 -0
- package/cjs/types/contracts/generated/McdVat.d.ts +78 -0
- package/cjs/types/contracts/generated/McdVat.js +5 -0
- package/cjs/types/contracts/generated/McdView.d.ts +61 -0
- package/cjs/types/contracts/generated/McdView.js +5 -0
- package/cjs/types/contracts/generated/MorphoAaveV2Proxy.d.ts +418 -0
- package/cjs/types/contracts/generated/MorphoAaveV2Proxy.js +5 -0
- package/cjs/types/contracts/generated/MorphoAaveV2View.d.ts +274 -0
- package/cjs/types/contracts/generated/MorphoAaveV2View.js +5 -0
- package/cjs/types/contracts/generated/MorphoAaveV3ProxyEthMarket.d.ts +202 -0
- package/cjs/types/contracts/generated/MorphoAaveV3ProxyEthMarket.js +5 -0
- package/cjs/types/contracts/generated/Pot.d.ts +49 -0
- package/cjs/types/contracts/generated/Pot.js +5 -0
- package/cjs/types/contracts/generated/PriceFeed.d.ts +61 -0
- package/cjs/types/contracts/generated/PriceFeed.js +5 -0
- package/cjs/types/contracts/generated/REth.d.ts +20 -0
- package/cjs/types/contracts/generated/REth.js +5 -0
- package/cjs/types/contracts/generated/SparkIncentiveDataProvider.d.ts +200 -0
- package/cjs/types/contracts/generated/SparkIncentiveDataProvider.js +5 -0
- package/cjs/types/contracts/generated/SparkLendingPool.d.ts +420 -0
- package/cjs/types/contracts/generated/SparkLendingPool.js +5 -0
- package/cjs/types/contracts/generated/SparkPoolAddressesProvider.d.ts +169 -0
- package/cjs/types/contracts/generated/SparkPoolAddressesProvider.js +5 -0
- package/cjs/types/contracts/generated/SparkProtocolDataProvider.d.ts +132 -0
- package/cjs/types/contracts/generated/SparkProtocolDataProvider.js +5 -0
- package/cjs/types/contracts/generated/SparkView.d.ts +300 -0
- package/cjs/types/contracts/generated/SparkView.js +5 -0
- package/cjs/types/contracts/generated/TroveManager.d.ts +346 -0
- package/cjs/types/contracts/generated/TroveManager.js +5 -0
- package/cjs/types/contracts/generated/UniMulticall.d.ts +55 -0
- package/cjs/types/contracts/generated/UniMulticall.js +5 -0
- package/cjs/types/contracts/generated/WstETH.d.ts +65 -0
- package/cjs/types/contracts/generated/WstETH.js +5 -0
- package/cjs/types/contracts/generated/index.d.ts +57 -0
- package/cjs/types/contracts/generated/index.js +2 -0
- package/cjs/types/contracts/generated/types.d.ts +54 -0
- package/cjs/types/contracts/generated/types.js +2 -0
- package/cjs/types/curveUsd.d.ts +101 -0
- package/cjs/types/curveUsd.js +17 -0
- package/cjs/types/index.d.ts +6 -0
- package/cjs/types/index.js +22 -0
- package/cjs/types/liquity.d.ts +28 -0
- package/cjs/types/liquity.js +18 -0
- package/cjs/types/maker.d.ts +49 -0
- package/cjs/types/maker.js +2 -0
- package/cjs/types/spark.d.ts +100 -0
- package/cjs/types/spark.js +7 -0
- package/esm/aaveV2/index.d.ts +9 -0
- package/esm/aaveV2/index.js +174 -0
- package/esm/aaveV3/index.d.ts +33 -0
- package/esm/aaveV3/index.js +382 -0
- package/esm/assets/index.d.ts +4 -0
- package/esm/assets/index.js +49 -0
- package/esm/chickenBonds/index.d.ts +3 -0
- package/esm/chickenBonds/index.js +20 -0
- package/esm/compoundV2/index.d.ts +21 -0
- package/esm/compoundV2/index.js +157 -0
- package/esm/compoundV3/index.d.ts +37 -0
- package/esm/compoundV3/index.js +198 -0
- package/esm/config/contracts.d.ts +3028 -0
- package/esm/config/contracts.js +595 -0
- package/esm/constants/index.d.ts +4 -0
- package/esm/constants/index.js +4 -0
- package/esm/contracts.d.ts +40 -0
- package/esm/contracts.js +55 -0
- package/esm/curveUsd/index.d.ts +7 -0
- package/esm/curveUsd/index.js +189 -0
- package/esm/exchange/index.d.ts +3 -0
- package/esm/exchange/index.js +19 -0
- package/esm/helpers/aaveHelpers/index.d.ts +37 -0
- package/esm/helpers/aaveHelpers/index.js +101 -0
- package/esm/helpers/compoundHelpers/index.d.ts +20 -0
- package/esm/helpers/compoundHelpers/index.js +130 -0
- package/esm/helpers/curveUsdHelpers/index.d.ts +8 -0
- package/esm/helpers/curveUsdHelpers/index.js +35 -0
- package/esm/helpers/index.d.ts +5 -0
- package/esm/helpers/index.js +5 -0
- package/esm/helpers/makerHelpers/index.d.ts +5 -0
- package/esm/helpers/makerHelpers/index.js +92 -0
- package/esm/helpers/sparkHelpers/index.d.ts +21 -0
- package/esm/helpers/sparkHelpers/index.js +84 -0
- package/esm/index.d.ts +19 -0
- package/esm/index.js +19 -0
- package/esm/liquity/index.d.ts +7 -0
- package/esm/liquity/index.js +95 -0
- package/esm/maker/index.d.ts +5 -0
- package/esm/maker/index.js +95 -0
- package/esm/markets/aave/index.d.ts +12 -0
- package/esm/markets/aave/index.js +70 -0
- package/esm/markets/aave/marketAssets.d.ts +9 -0
- package/esm/markets/aave/marketAssets.js +28 -0
- package/esm/markets/compound/index.d.ts +12 -0
- package/esm/markets/compound/index.js +78 -0
- package/esm/markets/compound/marketsAssets.d.ts +19 -0
- package/esm/markets/compound/marketsAssets.js +32 -0
- package/esm/markets/curveUsd/index.d.ts +10 -0
- package/esm/markets/curveUsd/index.js +40 -0
- package/esm/markets/index.d.ts +4 -0
- package/esm/markets/index.js +4 -0
- package/esm/markets/spark/index.d.ts +9 -0
- package/esm/markets/spark/index.js +26 -0
- package/esm/markets/spark/marketAssets.d.ts +6 -0
- package/esm/markets/spark/marketAssets.js +9 -0
- package/esm/moneymarket/index.d.ts +1 -0
- package/esm/moneymarket/index.js +1 -0
- package/esm/moneymarket/moneymarketCommonService.d.ts +12 -0
- package/esm/moneymarket/moneymarketCommonService.js +70 -0
- package/esm/morphoAaveV2/index.d.ts +7 -0
- package/esm/morphoAaveV2/index.js +199 -0
- package/esm/morphoAaveV3/index.d.ts +7 -0
- package/esm/morphoAaveV3/index.js +432 -0
- package/esm/multicall/index.d.ts +3 -0
- package/esm/multicall/index.js +27 -0
- package/esm/services/dsrService.d.ts +3 -0
- package/esm/services/dsrService.js +21 -0
- package/esm/services/utils.d.ts +16 -0
- package/esm/services/utils.js +21 -0
- package/esm/spark/index.d.ts +34 -0
- package/esm/spark/index.js +326 -0
- package/esm/staking/index.d.ts +1 -0
- package/esm/staking/index.js +1 -0
- package/esm/staking/staking.d.ts +15 -0
- package/esm/staking/staking.js +147 -0
- package/esm/types/aave.d.ts +229 -0
- package/esm/types/aave.js +7 -0
- package/esm/types/common.d.ts +77 -0
- package/esm/types/common.js +7 -0
- package/esm/types/compound.d.ts +109 -0
- package/esm/types/compound.js +7 -0
- package/esm/types/contracts/generated/AaveLendingPoolV2.d.ts +312 -0
- package/esm/types/contracts/generated/AaveLendingPoolV2.js +4 -0
- package/esm/types/contracts/generated/AaveLoanInfoV2.d.ts +137 -0
- package/esm/types/contracts/generated/AaveLoanInfoV2.js +4 -0
- package/esm/types/contracts/generated/AaveProtocolDataProvider.d.ts +110 -0
- package/esm/types/contracts/generated/AaveProtocolDataProvider.js +4 -0
- package/esm/types/contracts/generated/AaveUiIncentiveDataProviderV3.d.ts +196 -0
- package/esm/types/contracts/generated/AaveUiIncentiveDataProviderV3.js +4 -0
- package/esm/types/contracts/generated/AaveV3LendingPool.d.ts +429 -0
- package/esm/types/contracts/generated/AaveV3LendingPool.js +4 -0
- package/esm/types/contracts/generated/AaveV3PoolAddressesProvider.d.ts +169 -0
- package/esm/types/contracts/generated/AaveV3PoolAddressesProvider.js +4 -0
- package/esm/types/contracts/generated/AaveV3ProtocolDataProvider.d.ts +131 -0
- package/esm/types/contracts/generated/AaveV3ProtocolDataProvider.js +4 -0
- package/esm/types/contracts/generated/AaveV3View.d.ts +301 -0
- package/esm/types/contracts/generated/AaveV3View.js +4 -0
- package/esm/types/contracts/generated/BalanceScanner.d.ts +37 -0
- package/esm/types/contracts/generated/BalanceScanner.js +4 -0
- package/esm/types/contracts/generated/CETHv3.d.ts +441 -0
- package/esm/types/contracts/generated/CETHv3.js +4 -0
- package/esm/types/contracts/generated/CUSDCv3.d.ts +441 -0
- package/esm/types/contracts/generated/CUSDCv3.js +4 -0
- package/esm/types/contracts/generated/CUSDbCv3.d.ts +441 -0
- package/esm/types/contracts/generated/CUSDbCv3.js +4 -0
- package/esm/types/contracts/generated/CbEth.d.ts +20 -0
- package/esm/types/contracts/generated/CbEth.js +4 -0
- package/esm/types/contracts/generated/ChickenBondsView.d.ts +67 -0
- package/esm/types/contracts/generated/ChickenBondsView.js +4 -0
- package/esm/types/contracts/generated/CollSurplusPool.d.ts +85 -0
- package/esm/types/contracts/generated/CollSurplusPool.js +4 -0
- package/esm/types/contracts/generated/CompV3ETHBulker.d.ts +45 -0
- package/esm/types/contracts/generated/CompV3ETHBulker.js +4 -0
- package/esm/types/contracts/generated/CompV3USDCBulker.d.ts +31 -0
- package/esm/types/contracts/generated/CompV3USDCBulker.js +4 -0
- package/esm/types/contracts/generated/CompV3USDbCBulker.d.ts +41 -0
- package/esm/types/contracts/generated/CompV3USDbCBulker.js +4 -0
- package/esm/types/contracts/generated/CompV3View.d.ts +249 -0
- package/esm/types/contracts/generated/CompV3View.js +4 -0
- package/esm/types/contracts/generated/CompoundLoanInfo.d.ts +128 -0
- package/esm/types/contracts/generated/CompoundLoanInfo.js +4 -0
- package/esm/types/contracts/generated/Comptroller.d.ts +317 -0
- package/esm/types/contracts/generated/Comptroller.js +4 -0
- package/esm/types/contracts/generated/CrvUSDETHAmm.d.ts +139 -0
- package/esm/types/contracts/generated/CrvUSDETHAmm.js +4 -0
- package/esm/types/contracts/generated/CrvUSDETHController.d.ts +204 -0
- package/esm/types/contracts/generated/CrvUSDETHController.js +4 -0
- package/esm/types/contracts/generated/CrvUSDFactory.d.ts +117 -0
- package/esm/types/contracts/generated/CrvUSDFactory.js +4 -0
- package/esm/types/contracts/generated/CrvUSDView.d.ts +209 -0
- package/esm/types/contracts/generated/CrvUSDView.js +4 -0
- package/esm/types/contracts/generated/CrvUSDWBTCAmm.d.ts +139 -0
- package/esm/types/contracts/generated/CrvUSDWBTCAmm.js +4 -0
- package/esm/types/contracts/generated/CrvUSDWBTCController.d.ts +204 -0
- package/esm/types/contracts/generated/CrvUSDWBTCController.js +4 -0
- package/esm/types/contracts/generated/CrvUSDwstETHAmm.d.ts +139 -0
- package/esm/types/contracts/generated/CrvUSDwstETHAmm.js +4 -0
- package/esm/types/contracts/generated/CrvUSDwstETHController.d.ts +204 -0
- package/esm/types/contracts/generated/CrvUSDwstETHController.js +4 -0
- package/esm/types/contracts/generated/Erc20.d.ts +119 -0
- package/esm/types/contracts/generated/Erc20.js +4 -0
- package/esm/types/contracts/generated/GHO.d.ts +136 -0
- package/esm/types/contracts/generated/GHO.js +4 -0
- package/esm/types/contracts/generated/GhoDiscountRateStrategy.d.ts +25 -0
- package/esm/types/contracts/generated/GhoDiscountRateStrategy.js +4 -0
- package/esm/types/contracts/generated/IAToken.d.ts +21 -0
- package/esm/types/contracts/generated/IAToken.js +4 -0
- package/esm/types/contracts/generated/IVariableDebtToken.d.ts +21 -0
- package/esm/types/contracts/generated/IVariableDebtToken.js +4 -0
- package/esm/types/contracts/generated/LendingPoolAddressesProvider.d.ts +135 -0
- package/esm/types/contracts/generated/LendingPoolAddressesProvider.js +4 -0
- package/esm/types/contracts/generated/Lido.d.ts +38 -0
- package/esm/types/contracts/generated/Lido.js +4 -0
- package/esm/types/contracts/generated/LiquityActivePool.d.ts +21 -0
- package/esm/types/contracts/generated/LiquityActivePool.js +4 -0
- package/esm/types/contracts/generated/LiquityView.d.ts +51 -0
- package/esm/types/contracts/generated/LiquityView.js +4 -0
- package/esm/types/contracts/generated/McdDog.d.ts +134 -0
- package/esm/types/contracts/generated/McdDog.js +4 -0
- package/esm/types/contracts/generated/McdJug.d.ts +50 -0
- package/esm/types/contracts/generated/McdJug.js +4 -0
- package/esm/types/contracts/generated/McdSpotter.d.ts +27 -0
- package/esm/types/contracts/generated/McdSpotter.js +4 -0
- package/esm/types/contracts/generated/McdVat.d.ts +78 -0
- package/esm/types/contracts/generated/McdVat.js +4 -0
- package/esm/types/contracts/generated/McdView.d.ts +61 -0
- package/esm/types/contracts/generated/McdView.js +4 -0
- package/esm/types/contracts/generated/MorphoAaveV2Proxy.d.ts +418 -0
- package/esm/types/contracts/generated/MorphoAaveV2Proxy.js +4 -0
- package/esm/types/contracts/generated/MorphoAaveV2View.d.ts +274 -0
- package/esm/types/contracts/generated/MorphoAaveV2View.js +4 -0
- package/esm/types/contracts/generated/MorphoAaveV3ProxyEthMarket.d.ts +202 -0
- package/esm/types/contracts/generated/MorphoAaveV3ProxyEthMarket.js +4 -0
- package/esm/types/contracts/generated/Pot.d.ts +49 -0
- package/esm/types/contracts/generated/Pot.js +4 -0
- package/esm/types/contracts/generated/PriceFeed.d.ts +61 -0
- package/esm/types/contracts/generated/PriceFeed.js +4 -0
- package/esm/types/contracts/generated/REth.d.ts +20 -0
- package/esm/types/contracts/generated/REth.js +4 -0
- package/esm/types/contracts/generated/SparkIncentiveDataProvider.d.ts +200 -0
- package/esm/types/contracts/generated/SparkIncentiveDataProvider.js +4 -0
- package/esm/types/contracts/generated/SparkLendingPool.d.ts +420 -0
- package/esm/types/contracts/generated/SparkLendingPool.js +4 -0
- package/esm/types/contracts/generated/SparkPoolAddressesProvider.d.ts +169 -0
- package/esm/types/contracts/generated/SparkPoolAddressesProvider.js +4 -0
- package/esm/types/contracts/generated/SparkProtocolDataProvider.d.ts +132 -0
- package/esm/types/contracts/generated/SparkProtocolDataProvider.js +4 -0
- package/esm/types/contracts/generated/SparkView.d.ts +300 -0
- package/esm/types/contracts/generated/SparkView.js +4 -0
- package/esm/types/contracts/generated/TroveManager.d.ts +346 -0
- package/esm/types/contracts/generated/TroveManager.js +4 -0
- package/esm/types/contracts/generated/UniMulticall.d.ts +55 -0
- package/esm/types/contracts/generated/UniMulticall.js +4 -0
- package/esm/types/contracts/generated/WstETH.d.ts +65 -0
- package/esm/types/contracts/generated/WstETH.js +4 -0
- package/esm/types/contracts/generated/index.d.ts +57 -0
- package/esm/types/contracts/generated/index.js +1 -0
- package/esm/types/contracts/generated/types.d.ts +54 -0
- package/esm/types/contracts/generated/types.js +1 -0
- package/esm/types/curveUsd.d.ts +101 -0
- package/esm/types/curveUsd.js +14 -0
- package/esm/types/index.d.ts +6 -0
- package/esm/types/index.js +6 -0
- package/esm/types/liquity.d.ts +28 -0
- package/esm/types/liquity.js +15 -0
- package/esm/types/maker.d.ts +49 -0
- package/esm/types/maker.js +1 -0
- package/esm/types/spark.d.ts +100 -0
- package/esm/types/spark.js +4 -0
- package/package.json +40 -0
- package/src/aaveV2/index.ts +219 -0
- package/src/aaveV3/index.ts +538 -0
- package/src/assets/index.ts +61 -0
- package/src/chickenBonds/index.ts +20 -0
- package/src/compoundV2/index.ts +207 -0
- package/src/compoundV3/index.ts +259 -0
- package/src/config/contracts.js +595 -0
- package/src/constants/index.ts +4 -0
- package/src/contracts.ts +95 -0
- package/src/curveUsd/index.ts +229 -0
- package/src/exchange/index.ts +17 -0
- package/src/helpers/aaveHelpers/index.ts +138 -0
- package/src/helpers/compoundHelpers/index.ts +178 -0
- package/src/helpers/curveUsdHelpers/index.ts +33 -0
- package/src/helpers/index.ts +5 -0
- package/src/helpers/makerHelpers/index.ts +95 -0
- package/src/helpers/sparkHelpers/index.ts +119 -0
- package/src/index.ts +40 -0
- package/src/liquity/index.ts +104 -0
- package/src/maker/index.ts +102 -0
- package/src/markets/aave/index.ts +80 -0
- package/src/markets/aave/marketAssets.ts +33 -0
- package/src/markets/compound/index.ts +86 -0
- package/src/markets/compound/marketsAssets.ts +36 -0
- package/src/markets/curveUsd/index.ts +43 -0
- package/src/markets/index.ts +4 -0
- package/src/markets/spark/index.ts +30 -0
- package/src/markets/spark/marketAssets.ts +10 -0
- package/src/moneymarket/index.ts +1 -0
- package/src/moneymarket/moneymarketCommonService.ts +76 -0
- package/src/morpho/markets.ts +39 -0
- package/src/morphoAaveV2/index.ts +253 -0
- package/src/morphoAaveV3/index.ts +615 -0
- package/src/multicall/index.ts +23 -0
- package/src/services/dsrService.ts +16 -0
- package/src/services/utils.ts +35 -0
- package/src/spark/index.ts +414 -0
- package/src/staking/index.ts +1 -0
- package/src/staking/staking.ts +157 -0
- package/src/types/aave.ts +256 -0
- package/src/types/common.ts +84 -0
- package/src/types/compound.ts +122 -0
- package/src/types/contracts/generated/AaveLendingPoolV2.ts +510 -0
- package/src/types/contracts/generated/AaveLoanInfoV2.ts +175 -0
- package/src/types/contracts/generated/AaveProtocolDataProvider.ts +152 -0
- package/src/types/contracts/generated/AaveUiIncentiveDataProviderV3.ts +254 -0
- package/src/types/contracts/generated/AaveV3LendingPool.ts +805 -0
- package/src/types/contracts/generated/AaveV3PoolAddressesProvider.ts +340 -0
- package/src/types/contracts/generated/AaveV3ProtocolDataProvider.ts +186 -0
- package/src/types/contracts/generated/AaveV3View.ts +402 -0
- package/src/types/contracts/generated/BalanceScanner.ts +71 -0
- package/src/types/contracts/generated/CETHv3.ts +685 -0
- package/src/types/contracts/generated/CUSDCv3.ts +688 -0
- package/src/types/contracts/generated/CUSDbCv3.ts +685 -0
- package/src/types/contracts/generated/CbEth.ts +37 -0
- package/src/types/contracts/generated/ChickenBondsView.ts +90 -0
- package/src/types/contracts/generated/CollSurplusPool.ts +185 -0
- package/src/types/contracts/generated/CompV3ETHBulker.ts +93 -0
- package/src/types/contracts/generated/CompV3USDCBulker.ts +63 -0
- package/src/types/contracts/generated/CompV3USDbCBulker.ts +85 -0
- package/src/types/contracts/generated/CompV3View.ts +325 -0
- package/src/types/contracts/generated/CompoundLoanInfo.ts +160 -0
- package/src/types/contracts/generated/Comptroller.ts +727 -0
- package/src/types/contracts/generated/CrvUSDETHAmm.ts +286 -0
- package/src/types/contracts/generated/CrvUSDETHController.ts +397 -0
- package/src/types/contracts/generated/CrvUSDFactory.ts +242 -0
- package/src/types/contracts/generated/CrvUSDView.ts +277 -0
- package/src/types/contracts/generated/CrvUSDWBTCAmm.ts +286 -0
- package/src/types/contracts/generated/CrvUSDWBTCController.ts +397 -0
- package/src/types/contracts/generated/CrvUSDwstETHAmm.ts +286 -0
- package/src/types/contracts/generated/CrvUSDwstETHController.ts +397 -0
- package/src/types/contracts/generated/Erc20.ts +216 -0
- package/src/types/contracts/generated/GHO.ts +274 -0
- package/src/types/contracts/generated/GhoDiscountRateStrategy.ts +48 -0
- package/src/types/contracts/generated/IAToken.ts +39 -0
- package/src/types/contracts/generated/IVariableDebtToken.ts +39 -0
- package/src/types/contracts/generated/LendingPoolAddressesProvider.ts +308 -0
- package/src/types/contracts/generated/Lido.ts +65 -0
- package/src/types/contracts/generated/LiquityActivePool.ts +39 -0
- package/src/types/contracts/generated/LiquityView.ts +66 -0
- package/src/types/contracts/generated/McdDog.ts +217 -0
- package/src/types/contracts/generated/McdJug.ts +86 -0
- package/src/types/contracts/generated/McdSpotter.ts +43 -0
- package/src/types/contracts/generated/McdVat.ts +170 -0
- package/src/types/contracts/generated/McdView.ts +100 -0
- package/src/types/contracts/generated/MorphoAaveV2Proxy.ts +870 -0
- package/src/types/contracts/generated/MorphoAaveV2View.ts +330 -0
- package/src/types/contracts/generated/MorphoAaveV3ProxyEthMarket.ts +338 -0
- package/src/types/contracts/generated/Pot.ts +88 -0
- package/src/types/contracts/generated/PriceFeed.ts +127 -0
- package/src/types/contracts/generated/REth.ts +37 -0
- package/src/types/contracts/generated/SparkIncentiveDataProvider.ts +264 -0
- package/src/types/contracts/generated/SparkLendingPool.ts +760 -0
- package/src/types/contracts/generated/SparkPoolAddressesProvider.ts +340 -0
- package/src/types/contracts/generated/SparkProtocolDataProvider.ts +188 -0
- package/src/types/contracts/generated/SparkView.ts +400 -0
- package/src/types/contracts/generated/TroveManager.ts +760 -0
- package/src/types/contracts/generated/UniMulticall.ts +83 -0
- package/src/types/contracts/generated/WstETH.ts +141 -0
- package/src/types/contracts/generated/index.ts +60 -0
- package/src/types/contracts/generated/types.ts +73 -0
- package/src/types/curveUsd.ts +111 -0
- package/src/types/index.ts +6 -0
- package/src/types/liquity.ts +30 -0
- package/src/types/maker.ts +51 -0
- package/src/types/spark.ts +107 -0
|
@@ -0,0 +1,727 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type BN from "bn.js";
|
|
6
|
+
import type { ContractOptions } from "web3-eth-contract";
|
|
7
|
+
import type { EventLog } from "web3-core";
|
|
8
|
+
import type { EventEmitter } from "events";
|
|
9
|
+
import type {
|
|
10
|
+
Callback,
|
|
11
|
+
PayableTransactionObject,
|
|
12
|
+
NonPayableTransactionObject,
|
|
13
|
+
BlockType,
|
|
14
|
+
ContractEventLog,
|
|
15
|
+
BaseContract,
|
|
16
|
+
} from "./types";
|
|
17
|
+
|
|
18
|
+
export interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ActionPaused_string_bool = ContractEventLog<{
|
|
25
|
+
action: string;
|
|
26
|
+
pauseState: boolean;
|
|
27
|
+
0: string;
|
|
28
|
+
1: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
export type ActionPaused_address_string_bool = ContractEventLog<{
|
|
31
|
+
cToken: string;
|
|
32
|
+
action: string;
|
|
33
|
+
pauseState: boolean;
|
|
34
|
+
0: string;
|
|
35
|
+
1: string;
|
|
36
|
+
2: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
export type CompBorrowSpeedUpdated = ContractEventLog<{
|
|
39
|
+
cToken: string;
|
|
40
|
+
newSpeed: string;
|
|
41
|
+
0: string;
|
|
42
|
+
1: string;
|
|
43
|
+
}>;
|
|
44
|
+
export type CompGranted = ContractEventLog<{
|
|
45
|
+
recipient: string;
|
|
46
|
+
amount: string;
|
|
47
|
+
0: string;
|
|
48
|
+
1: string;
|
|
49
|
+
}>;
|
|
50
|
+
export type CompSupplySpeedUpdated = ContractEventLog<{
|
|
51
|
+
cToken: string;
|
|
52
|
+
newSpeed: string;
|
|
53
|
+
0: string;
|
|
54
|
+
1: string;
|
|
55
|
+
}>;
|
|
56
|
+
export type ContributorCompSpeedUpdated = ContractEventLog<{
|
|
57
|
+
contributor: string;
|
|
58
|
+
newSpeed: string;
|
|
59
|
+
0: string;
|
|
60
|
+
1: string;
|
|
61
|
+
}>;
|
|
62
|
+
export type DistributedBorrowerComp = ContractEventLog<{
|
|
63
|
+
cToken: string;
|
|
64
|
+
borrower: string;
|
|
65
|
+
compDelta: string;
|
|
66
|
+
compBorrowIndex: string;
|
|
67
|
+
0: string;
|
|
68
|
+
1: string;
|
|
69
|
+
2: string;
|
|
70
|
+
3: string;
|
|
71
|
+
}>;
|
|
72
|
+
export type DistributedSupplierComp = ContractEventLog<{
|
|
73
|
+
cToken: string;
|
|
74
|
+
supplier: string;
|
|
75
|
+
compDelta: string;
|
|
76
|
+
compSupplyIndex: string;
|
|
77
|
+
0: string;
|
|
78
|
+
1: string;
|
|
79
|
+
2: string;
|
|
80
|
+
3: string;
|
|
81
|
+
}>;
|
|
82
|
+
export type Failure = ContractEventLog<{
|
|
83
|
+
error: string;
|
|
84
|
+
info: string;
|
|
85
|
+
detail: string;
|
|
86
|
+
0: string;
|
|
87
|
+
1: string;
|
|
88
|
+
2: string;
|
|
89
|
+
}>;
|
|
90
|
+
export type MarketEntered = ContractEventLog<{
|
|
91
|
+
cToken: string;
|
|
92
|
+
account: string;
|
|
93
|
+
0: string;
|
|
94
|
+
1: string;
|
|
95
|
+
}>;
|
|
96
|
+
export type MarketExited = ContractEventLog<{
|
|
97
|
+
cToken: string;
|
|
98
|
+
account: string;
|
|
99
|
+
0: string;
|
|
100
|
+
1: string;
|
|
101
|
+
}>;
|
|
102
|
+
export type MarketListed = ContractEventLog<{
|
|
103
|
+
cToken: string;
|
|
104
|
+
0: string;
|
|
105
|
+
}>;
|
|
106
|
+
export type NewBorrowCap = ContractEventLog<{
|
|
107
|
+
cToken: string;
|
|
108
|
+
newBorrowCap: string;
|
|
109
|
+
0: string;
|
|
110
|
+
1: string;
|
|
111
|
+
}>;
|
|
112
|
+
export type NewBorrowCapGuardian = ContractEventLog<{
|
|
113
|
+
oldBorrowCapGuardian: string;
|
|
114
|
+
newBorrowCapGuardian: string;
|
|
115
|
+
0: string;
|
|
116
|
+
1: string;
|
|
117
|
+
}>;
|
|
118
|
+
export type NewCloseFactor = ContractEventLog<{
|
|
119
|
+
oldCloseFactorMantissa: string;
|
|
120
|
+
newCloseFactorMantissa: string;
|
|
121
|
+
0: string;
|
|
122
|
+
1: string;
|
|
123
|
+
}>;
|
|
124
|
+
export type NewCollateralFactor = ContractEventLog<{
|
|
125
|
+
cToken: string;
|
|
126
|
+
oldCollateralFactorMantissa: string;
|
|
127
|
+
newCollateralFactorMantissa: string;
|
|
128
|
+
0: string;
|
|
129
|
+
1: string;
|
|
130
|
+
2: string;
|
|
131
|
+
}>;
|
|
132
|
+
export type NewLiquidationIncentive = ContractEventLog<{
|
|
133
|
+
oldLiquidationIncentiveMantissa: string;
|
|
134
|
+
newLiquidationIncentiveMantissa: string;
|
|
135
|
+
0: string;
|
|
136
|
+
1: string;
|
|
137
|
+
}>;
|
|
138
|
+
export type NewPauseGuardian = ContractEventLog<{
|
|
139
|
+
oldPauseGuardian: string;
|
|
140
|
+
newPauseGuardian: string;
|
|
141
|
+
0: string;
|
|
142
|
+
1: string;
|
|
143
|
+
}>;
|
|
144
|
+
export type NewPriceOracle = ContractEventLog<{
|
|
145
|
+
oldPriceOracle: string;
|
|
146
|
+
newPriceOracle: string;
|
|
147
|
+
0: string;
|
|
148
|
+
1: string;
|
|
149
|
+
}>;
|
|
150
|
+
|
|
151
|
+
export interface Comptroller extends BaseContract {
|
|
152
|
+
constructor(
|
|
153
|
+
jsonInterface: any[],
|
|
154
|
+
address?: string,
|
|
155
|
+
options?: ContractOptions
|
|
156
|
+
): Comptroller;
|
|
157
|
+
clone(): Comptroller;
|
|
158
|
+
methods: {
|
|
159
|
+
_become(unitroller: string): NonPayableTransactionObject<void>;
|
|
160
|
+
|
|
161
|
+
_borrowGuardianPaused(): NonPayableTransactionObject<boolean>;
|
|
162
|
+
|
|
163
|
+
_grantComp(
|
|
164
|
+
recipient: string,
|
|
165
|
+
amount: number | string | BN
|
|
166
|
+
): NonPayableTransactionObject<void>;
|
|
167
|
+
|
|
168
|
+
_mintGuardianPaused(): NonPayableTransactionObject<boolean>;
|
|
169
|
+
|
|
170
|
+
_setBorrowCapGuardian(
|
|
171
|
+
newBorrowCapGuardian: string
|
|
172
|
+
): NonPayableTransactionObject<void>;
|
|
173
|
+
|
|
174
|
+
_setBorrowPaused(
|
|
175
|
+
cToken: string,
|
|
176
|
+
state: boolean
|
|
177
|
+
): NonPayableTransactionObject<boolean>;
|
|
178
|
+
|
|
179
|
+
_setCloseFactor(
|
|
180
|
+
newCloseFactorMantissa: number | string | BN
|
|
181
|
+
): NonPayableTransactionObject<string>;
|
|
182
|
+
|
|
183
|
+
_setCollateralFactor(
|
|
184
|
+
cToken: string,
|
|
185
|
+
newCollateralFactorMantissa: number | string | BN
|
|
186
|
+
): NonPayableTransactionObject<string>;
|
|
187
|
+
|
|
188
|
+
_setCompSpeeds(
|
|
189
|
+
cTokens: string[],
|
|
190
|
+
supplySpeeds: number | string | BN[],
|
|
191
|
+
borrowSpeeds: number | string | BN[]
|
|
192
|
+
): NonPayableTransactionObject<void>;
|
|
193
|
+
|
|
194
|
+
_setContributorCompSpeed(
|
|
195
|
+
contributor: string,
|
|
196
|
+
compSpeed: number | string | BN
|
|
197
|
+
): NonPayableTransactionObject<void>;
|
|
198
|
+
|
|
199
|
+
_setLiquidationIncentive(
|
|
200
|
+
newLiquidationIncentiveMantissa: number | string | BN
|
|
201
|
+
): NonPayableTransactionObject<string>;
|
|
202
|
+
|
|
203
|
+
_setMarketBorrowCaps(
|
|
204
|
+
cTokens: string[],
|
|
205
|
+
newBorrowCaps: number | string | BN[]
|
|
206
|
+
): NonPayableTransactionObject<void>;
|
|
207
|
+
|
|
208
|
+
_setMintPaused(
|
|
209
|
+
cToken: string,
|
|
210
|
+
state: boolean
|
|
211
|
+
): NonPayableTransactionObject<boolean>;
|
|
212
|
+
|
|
213
|
+
_setPauseGuardian(
|
|
214
|
+
newPauseGuardian: string
|
|
215
|
+
): NonPayableTransactionObject<string>;
|
|
216
|
+
|
|
217
|
+
_setPriceOracle(newOracle: string): NonPayableTransactionObject<string>;
|
|
218
|
+
|
|
219
|
+
_setSeizePaused(state: boolean): NonPayableTransactionObject<boolean>;
|
|
220
|
+
|
|
221
|
+
_setTransferPaused(state: boolean): NonPayableTransactionObject<boolean>;
|
|
222
|
+
|
|
223
|
+
_supportMarket(cToken: string): NonPayableTransactionObject<string>;
|
|
224
|
+
|
|
225
|
+
_upgradeSplitCompRewards(): NonPayableTransactionObject<void>;
|
|
226
|
+
|
|
227
|
+
accountAssets(
|
|
228
|
+
arg0: string,
|
|
229
|
+
arg1: number | string | BN
|
|
230
|
+
): NonPayableTransactionObject<string>;
|
|
231
|
+
|
|
232
|
+
admin(): NonPayableTransactionObject<string>;
|
|
233
|
+
|
|
234
|
+
allMarkets(arg0: number | string | BN): NonPayableTransactionObject<string>;
|
|
235
|
+
|
|
236
|
+
borrowAllowed(
|
|
237
|
+
cToken: string,
|
|
238
|
+
borrower: string,
|
|
239
|
+
borrowAmount: number | string | BN
|
|
240
|
+
): NonPayableTransactionObject<string>;
|
|
241
|
+
|
|
242
|
+
borrowCapGuardian(): NonPayableTransactionObject<string>;
|
|
243
|
+
|
|
244
|
+
borrowCaps(arg0: string): NonPayableTransactionObject<string>;
|
|
245
|
+
|
|
246
|
+
borrowGuardianPaused(arg0: string): NonPayableTransactionObject<boolean>;
|
|
247
|
+
|
|
248
|
+
borrowVerify(
|
|
249
|
+
cToken: string,
|
|
250
|
+
borrower: string,
|
|
251
|
+
borrowAmount: number | string | BN
|
|
252
|
+
): NonPayableTransactionObject<void>;
|
|
253
|
+
|
|
254
|
+
checkMembership(
|
|
255
|
+
account: string,
|
|
256
|
+
cToken: string
|
|
257
|
+
): NonPayableTransactionObject<boolean>;
|
|
258
|
+
|
|
259
|
+
"claimComp(address,address[])"(
|
|
260
|
+
holder: string,
|
|
261
|
+
cTokens: string[]
|
|
262
|
+
): NonPayableTransactionObject<void>;
|
|
263
|
+
|
|
264
|
+
"claimComp(address[],address[],bool,bool)"(
|
|
265
|
+
holders: string[],
|
|
266
|
+
cTokens: string[],
|
|
267
|
+
borrowers: boolean,
|
|
268
|
+
suppliers: boolean
|
|
269
|
+
): NonPayableTransactionObject<void>;
|
|
270
|
+
|
|
271
|
+
"claimComp(address)"(holder: string): NonPayableTransactionObject<void>;
|
|
272
|
+
|
|
273
|
+
closeFactorMantissa(): NonPayableTransactionObject<string>;
|
|
274
|
+
|
|
275
|
+
compAccrued(arg0: string): NonPayableTransactionObject<string>;
|
|
276
|
+
|
|
277
|
+
compBorrowSpeeds(arg0: string): NonPayableTransactionObject<string>;
|
|
278
|
+
|
|
279
|
+
compBorrowState(
|
|
280
|
+
arg0: string
|
|
281
|
+
): NonPayableTransactionObject<
|
|
282
|
+
[string, string] & { index: string; block: string }
|
|
283
|
+
>;
|
|
284
|
+
|
|
285
|
+
compBorrowerIndex(
|
|
286
|
+
arg0: string,
|
|
287
|
+
arg1: string
|
|
288
|
+
): NonPayableTransactionObject<string>;
|
|
289
|
+
|
|
290
|
+
compContributorSpeeds(arg0: string): NonPayableTransactionObject<string>;
|
|
291
|
+
|
|
292
|
+
compInitialIndex(): NonPayableTransactionObject<string>;
|
|
293
|
+
|
|
294
|
+
compRate(): NonPayableTransactionObject<string>;
|
|
295
|
+
|
|
296
|
+
compSpeeds(arg0: string): NonPayableTransactionObject<string>;
|
|
297
|
+
|
|
298
|
+
compSupplierIndex(
|
|
299
|
+
arg0: string,
|
|
300
|
+
arg1: string
|
|
301
|
+
): NonPayableTransactionObject<string>;
|
|
302
|
+
|
|
303
|
+
compSupplySpeeds(arg0: string): NonPayableTransactionObject<string>;
|
|
304
|
+
|
|
305
|
+
compSupplyState(
|
|
306
|
+
arg0: string
|
|
307
|
+
): NonPayableTransactionObject<
|
|
308
|
+
[string, string] & { index: string; block: string }
|
|
309
|
+
>;
|
|
310
|
+
|
|
311
|
+
comptrollerImplementation(): NonPayableTransactionObject<string>;
|
|
312
|
+
|
|
313
|
+
enterMarkets(cTokens: string[]): NonPayableTransactionObject<string[]>;
|
|
314
|
+
|
|
315
|
+
exitMarket(cTokenAddress: string): NonPayableTransactionObject<string>;
|
|
316
|
+
|
|
317
|
+
getAccountLiquidity(
|
|
318
|
+
account: string
|
|
319
|
+
): NonPayableTransactionObject<[string, string, string]>;
|
|
320
|
+
|
|
321
|
+
getAllMarkets(): NonPayableTransactionObject<string[]>;
|
|
322
|
+
|
|
323
|
+
getAssetsIn(account: string): NonPayableTransactionObject<string[]>;
|
|
324
|
+
|
|
325
|
+
getBlockNumber(): NonPayableTransactionObject<string>;
|
|
326
|
+
|
|
327
|
+
getCompAddress(): NonPayableTransactionObject<string>;
|
|
328
|
+
|
|
329
|
+
getHypotheticalAccountLiquidity(
|
|
330
|
+
account: string,
|
|
331
|
+
cTokenModify: string,
|
|
332
|
+
redeemTokens: number | string | BN,
|
|
333
|
+
borrowAmount: number | string | BN
|
|
334
|
+
): NonPayableTransactionObject<[string, string, string]>;
|
|
335
|
+
|
|
336
|
+
isComptroller(): NonPayableTransactionObject<boolean>;
|
|
337
|
+
|
|
338
|
+
isDeprecated(cToken: string): NonPayableTransactionObject<boolean>;
|
|
339
|
+
|
|
340
|
+
lastContributorBlock(arg0: string): NonPayableTransactionObject<string>;
|
|
341
|
+
|
|
342
|
+
liquidateBorrowAllowed(
|
|
343
|
+
cTokenBorrowed: string,
|
|
344
|
+
cTokenCollateral: string,
|
|
345
|
+
liquidator: string,
|
|
346
|
+
borrower: string,
|
|
347
|
+
repayAmount: number | string | BN
|
|
348
|
+
): NonPayableTransactionObject<string>;
|
|
349
|
+
|
|
350
|
+
liquidateBorrowVerify(
|
|
351
|
+
cTokenBorrowed: string,
|
|
352
|
+
cTokenCollateral: string,
|
|
353
|
+
liquidator: string,
|
|
354
|
+
borrower: string,
|
|
355
|
+
actualRepayAmount: number | string | BN,
|
|
356
|
+
seizeTokens: number | string | BN
|
|
357
|
+
): NonPayableTransactionObject<void>;
|
|
358
|
+
|
|
359
|
+
liquidateCalculateSeizeTokens(
|
|
360
|
+
cTokenBorrowed: string,
|
|
361
|
+
cTokenCollateral: string,
|
|
362
|
+
actualRepayAmount: number | string | BN
|
|
363
|
+
): NonPayableTransactionObject<[string, string]>;
|
|
364
|
+
|
|
365
|
+
liquidationIncentiveMantissa(): NonPayableTransactionObject<string>;
|
|
366
|
+
|
|
367
|
+
markets(
|
|
368
|
+
arg0: string
|
|
369
|
+
): NonPayableTransactionObject<
|
|
370
|
+
[boolean, string, boolean] & {
|
|
371
|
+
isListed: boolean;
|
|
372
|
+
collateralFactorMantissa: string;
|
|
373
|
+
isComped: boolean;
|
|
374
|
+
}
|
|
375
|
+
>;
|
|
376
|
+
|
|
377
|
+
maxAssets(): NonPayableTransactionObject<string>;
|
|
378
|
+
|
|
379
|
+
mintAllowed(
|
|
380
|
+
cToken: string,
|
|
381
|
+
minter: string,
|
|
382
|
+
mintAmount: number | string | BN
|
|
383
|
+
): NonPayableTransactionObject<string>;
|
|
384
|
+
|
|
385
|
+
mintGuardianPaused(arg0: string): NonPayableTransactionObject<boolean>;
|
|
386
|
+
|
|
387
|
+
mintVerify(
|
|
388
|
+
cToken: string,
|
|
389
|
+
minter: string,
|
|
390
|
+
actualMintAmount: number | string | BN,
|
|
391
|
+
mintTokens: number | string | BN
|
|
392
|
+
): NonPayableTransactionObject<void>;
|
|
393
|
+
|
|
394
|
+
oracle(): NonPayableTransactionObject<string>;
|
|
395
|
+
|
|
396
|
+
pauseGuardian(): NonPayableTransactionObject<string>;
|
|
397
|
+
|
|
398
|
+
pendingAdmin(): NonPayableTransactionObject<string>;
|
|
399
|
+
|
|
400
|
+
pendingComptrollerImplementation(): NonPayableTransactionObject<string>;
|
|
401
|
+
|
|
402
|
+
redeemAllowed(
|
|
403
|
+
cToken: string,
|
|
404
|
+
redeemer: string,
|
|
405
|
+
redeemTokens: number | string | BN
|
|
406
|
+
): NonPayableTransactionObject<string>;
|
|
407
|
+
|
|
408
|
+
redeemVerify(
|
|
409
|
+
cToken: string,
|
|
410
|
+
redeemer: string,
|
|
411
|
+
redeemAmount: number | string | BN,
|
|
412
|
+
redeemTokens: number | string | BN
|
|
413
|
+
): NonPayableTransactionObject<void>;
|
|
414
|
+
|
|
415
|
+
repayBorrowAllowed(
|
|
416
|
+
cToken: string,
|
|
417
|
+
payer: string,
|
|
418
|
+
borrower: string,
|
|
419
|
+
repayAmount: number | string | BN
|
|
420
|
+
): NonPayableTransactionObject<string>;
|
|
421
|
+
|
|
422
|
+
repayBorrowVerify(
|
|
423
|
+
cToken: string,
|
|
424
|
+
payer: string,
|
|
425
|
+
borrower: string,
|
|
426
|
+
actualRepayAmount: number | string | BN,
|
|
427
|
+
borrowerIndex: number | string | BN
|
|
428
|
+
): NonPayableTransactionObject<void>;
|
|
429
|
+
|
|
430
|
+
seizeAllowed(
|
|
431
|
+
cTokenCollateral: string,
|
|
432
|
+
cTokenBorrowed: string,
|
|
433
|
+
liquidator: string,
|
|
434
|
+
borrower: string,
|
|
435
|
+
seizeTokens: number | string | BN
|
|
436
|
+
): NonPayableTransactionObject<string>;
|
|
437
|
+
|
|
438
|
+
seizeGuardianPaused(): NonPayableTransactionObject<boolean>;
|
|
439
|
+
|
|
440
|
+
seizeVerify(
|
|
441
|
+
cTokenCollateral: string,
|
|
442
|
+
cTokenBorrowed: string,
|
|
443
|
+
liquidator: string,
|
|
444
|
+
borrower: string,
|
|
445
|
+
seizeTokens: number | string | BN
|
|
446
|
+
): NonPayableTransactionObject<void>;
|
|
447
|
+
|
|
448
|
+
transferAllowed(
|
|
449
|
+
cToken: string,
|
|
450
|
+
src: string,
|
|
451
|
+
dst: string,
|
|
452
|
+
transferTokens: number | string | BN
|
|
453
|
+
): NonPayableTransactionObject<string>;
|
|
454
|
+
|
|
455
|
+
transferGuardianPaused(): NonPayableTransactionObject<boolean>;
|
|
456
|
+
|
|
457
|
+
transferVerify(
|
|
458
|
+
cToken: string,
|
|
459
|
+
src: string,
|
|
460
|
+
dst: string,
|
|
461
|
+
transferTokens: number | string | BN
|
|
462
|
+
): NonPayableTransactionObject<void>;
|
|
463
|
+
|
|
464
|
+
updateContributorRewards(
|
|
465
|
+
contributor: string
|
|
466
|
+
): NonPayableTransactionObject<void>;
|
|
467
|
+
};
|
|
468
|
+
events: {
|
|
469
|
+
"ActionPaused(string,bool)"(
|
|
470
|
+
cb?: Callback<ActionPaused_string_bool>
|
|
471
|
+
): EventEmitter;
|
|
472
|
+
"ActionPaused(string,bool)"(
|
|
473
|
+
options?: EventOptions,
|
|
474
|
+
cb?: Callback<ActionPaused_string_bool>
|
|
475
|
+
): EventEmitter;
|
|
476
|
+
|
|
477
|
+
"ActionPaused(address,string,bool)"(
|
|
478
|
+
cb?: Callback<ActionPaused_address_string_bool>
|
|
479
|
+
): EventEmitter;
|
|
480
|
+
"ActionPaused(address,string,bool)"(
|
|
481
|
+
options?: EventOptions,
|
|
482
|
+
cb?: Callback<ActionPaused_address_string_bool>
|
|
483
|
+
): EventEmitter;
|
|
484
|
+
|
|
485
|
+
CompBorrowSpeedUpdated(cb?: Callback<CompBorrowSpeedUpdated>): EventEmitter;
|
|
486
|
+
CompBorrowSpeedUpdated(
|
|
487
|
+
options?: EventOptions,
|
|
488
|
+
cb?: Callback<CompBorrowSpeedUpdated>
|
|
489
|
+
): EventEmitter;
|
|
490
|
+
|
|
491
|
+
CompGranted(cb?: Callback<CompGranted>): EventEmitter;
|
|
492
|
+
CompGranted(
|
|
493
|
+
options?: EventOptions,
|
|
494
|
+
cb?: Callback<CompGranted>
|
|
495
|
+
): EventEmitter;
|
|
496
|
+
|
|
497
|
+
CompSupplySpeedUpdated(cb?: Callback<CompSupplySpeedUpdated>): EventEmitter;
|
|
498
|
+
CompSupplySpeedUpdated(
|
|
499
|
+
options?: EventOptions,
|
|
500
|
+
cb?: Callback<CompSupplySpeedUpdated>
|
|
501
|
+
): EventEmitter;
|
|
502
|
+
|
|
503
|
+
ContributorCompSpeedUpdated(
|
|
504
|
+
cb?: Callback<ContributorCompSpeedUpdated>
|
|
505
|
+
): EventEmitter;
|
|
506
|
+
ContributorCompSpeedUpdated(
|
|
507
|
+
options?: EventOptions,
|
|
508
|
+
cb?: Callback<ContributorCompSpeedUpdated>
|
|
509
|
+
): EventEmitter;
|
|
510
|
+
|
|
511
|
+
DistributedBorrowerComp(
|
|
512
|
+
cb?: Callback<DistributedBorrowerComp>
|
|
513
|
+
): EventEmitter;
|
|
514
|
+
DistributedBorrowerComp(
|
|
515
|
+
options?: EventOptions,
|
|
516
|
+
cb?: Callback<DistributedBorrowerComp>
|
|
517
|
+
): EventEmitter;
|
|
518
|
+
|
|
519
|
+
DistributedSupplierComp(
|
|
520
|
+
cb?: Callback<DistributedSupplierComp>
|
|
521
|
+
): EventEmitter;
|
|
522
|
+
DistributedSupplierComp(
|
|
523
|
+
options?: EventOptions,
|
|
524
|
+
cb?: Callback<DistributedSupplierComp>
|
|
525
|
+
): EventEmitter;
|
|
526
|
+
|
|
527
|
+
Failure(cb?: Callback<Failure>): EventEmitter;
|
|
528
|
+
Failure(options?: EventOptions, cb?: Callback<Failure>): EventEmitter;
|
|
529
|
+
|
|
530
|
+
MarketEntered(cb?: Callback<MarketEntered>): EventEmitter;
|
|
531
|
+
MarketEntered(
|
|
532
|
+
options?: EventOptions,
|
|
533
|
+
cb?: Callback<MarketEntered>
|
|
534
|
+
): EventEmitter;
|
|
535
|
+
|
|
536
|
+
MarketExited(cb?: Callback<MarketExited>): EventEmitter;
|
|
537
|
+
MarketExited(
|
|
538
|
+
options?: EventOptions,
|
|
539
|
+
cb?: Callback<MarketExited>
|
|
540
|
+
): EventEmitter;
|
|
541
|
+
|
|
542
|
+
MarketListed(cb?: Callback<MarketListed>): EventEmitter;
|
|
543
|
+
MarketListed(
|
|
544
|
+
options?: EventOptions,
|
|
545
|
+
cb?: Callback<MarketListed>
|
|
546
|
+
): EventEmitter;
|
|
547
|
+
|
|
548
|
+
NewBorrowCap(cb?: Callback<NewBorrowCap>): EventEmitter;
|
|
549
|
+
NewBorrowCap(
|
|
550
|
+
options?: EventOptions,
|
|
551
|
+
cb?: Callback<NewBorrowCap>
|
|
552
|
+
): EventEmitter;
|
|
553
|
+
|
|
554
|
+
NewBorrowCapGuardian(cb?: Callback<NewBorrowCapGuardian>): EventEmitter;
|
|
555
|
+
NewBorrowCapGuardian(
|
|
556
|
+
options?: EventOptions,
|
|
557
|
+
cb?: Callback<NewBorrowCapGuardian>
|
|
558
|
+
): EventEmitter;
|
|
559
|
+
|
|
560
|
+
NewCloseFactor(cb?: Callback<NewCloseFactor>): EventEmitter;
|
|
561
|
+
NewCloseFactor(
|
|
562
|
+
options?: EventOptions,
|
|
563
|
+
cb?: Callback<NewCloseFactor>
|
|
564
|
+
): EventEmitter;
|
|
565
|
+
|
|
566
|
+
NewCollateralFactor(cb?: Callback<NewCollateralFactor>): EventEmitter;
|
|
567
|
+
NewCollateralFactor(
|
|
568
|
+
options?: EventOptions,
|
|
569
|
+
cb?: Callback<NewCollateralFactor>
|
|
570
|
+
): EventEmitter;
|
|
571
|
+
|
|
572
|
+
NewLiquidationIncentive(
|
|
573
|
+
cb?: Callback<NewLiquidationIncentive>
|
|
574
|
+
): EventEmitter;
|
|
575
|
+
NewLiquidationIncentive(
|
|
576
|
+
options?: EventOptions,
|
|
577
|
+
cb?: Callback<NewLiquidationIncentive>
|
|
578
|
+
): EventEmitter;
|
|
579
|
+
|
|
580
|
+
NewPauseGuardian(cb?: Callback<NewPauseGuardian>): EventEmitter;
|
|
581
|
+
NewPauseGuardian(
|
|
582
|
+
options?: EventOptions,
|
|
583
|
+
cb?: Callback<NewPauseGuardian>
|
|
584
|
+
): EventEmitter;
|
|
585
|
+
|
|
586
|
+
NewPriceOracle(cb?: Callback<NewPriceOracle>): EventEmitter;
|
|
587
|
+
NewPriceOracle(
|
|
588
|
+
options?: EventOptions,
|
|
589
|
+
cb?: Callback<NewPriceOracle>
|
|
590
|
+
): EventEmitter;
|
|
591
|
+
|
|
592
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
once(
|
|
596
|
+
event: "CompBorrowSpeedUpdated",
|
|
597
|
+
cb: Callback<CompBorrowSpeedUpdated>
|
|
598
|
+
): void;
|
|
599
|
+
once(
|
|
600
|
+
event: "CompBorrowSpeedUpdated",
|
|
601
|
+
options: EventOptions,
|
|
602
|
+
cb: Callback<CompBorrowSpeedUpdated>
|
|
603
|
+
): void;
|
|
604
|
+
|
|
605
|
+
once(event: "CompGranted", cb: Callback<CompGranted>): void;
|
|
606
|
+
once(
|
|
607
|
+
event: "CompGranted",
|
|
608
|
+
options: EventOptions,
|
|
609
|
+
cb: Callback<CompGranted>
|
|
610
|
+
): void;
|
|
611
|
+
|
|
612
|
+
once(
|
|
613
|
+
event: "CompSupplySpeedUpdated",
|
|
614
|
+
cb: Callback<CompSupplySpeedUpdated>
|
|
615
|
+
): void;
|
|
616
|
+
once(
|
|
617
|
+
event: "CompSupplySpeedUpdated",
|
|
618
|
+
options: EventOptions,
|
|
619
|
+
cb: Callback<CompSupplySpeedUpdated>
|
|
620
|
+
): void;
|
|
621
|
+
|
|
622
|
+
once(
|
|
623
|
+
event: "ContributorCompSpeedUpdated",
|
|
624
|
+
cb: Callback<ContributorCompSpeedUpdated>
|
|
625
|
+
): void;
|
|
626
|
+
once(
|
|
627
|
+
event: "ContributorCompSpeedUpdated",
|
|
628
|
+
options: EventOptions,
|
|
629
|
+
cb: Callback<ContributorCompSpeedUpdated>
|
|
630
|
+
): void;
|
|
631
|
+
|
|
632
|
+
once(
|
|
633
|
+
event: "DistributedBorrowerComp",
|
|
634
|
+
cb: Callback<DistributedBorrowerComp>
|
|
635
|
+
): void;
|
|
636
|
+
once(
|
|
637
|
+
event: "DistributedBorrowerComp",
|
|
638
|
+
options: EventOptions,
|
|
639
|
+
cb: Callback<DistributedBorrowerComp>
|
|
640
|
+
): void;
|
|
641
|
+
|
|
642
|
+
once(
|
|
643
|
+
event: "DistributedSupplierComp",
|
|
644
|
+
cb: Callback<DistributedSupplierComp>
|
|
645
|
+
): void;
|
|
646
|
+
once(
|
|
647
|
+
event: "DistributedSupplierComp",
|
|
648
|
+
options: EventOptions,
|
|
649
|
+
cb: Callback<DistributedSupplierComp>
|
|
650
|
+
): void;
|
|
651
|
+
|
|
652
|
+
once(event: "Failure", cb: Callback<Failure>): void;
|
|
653
|
+
once(event: "Failure", options: EventOptions, cb: Callback<Failure>): void;
|
|
654
|
+
|
|
655
|
+
once(event: "MarketEntered", cb: Callback<MarketEntered>): void;
|
|
656
|
+
once(
|
|
657
|
+
event: "MarketEntered",
|
|
658
|
+
options: EventOptions,
|
|
659
|
+
cb: Callback<MarketEntered>
|
|
660
|
+
): void;
|
|
661
|
+
|
|
662
|
+
once(event: "MarketExited", cb: Callback<MarketExited>): void;
|
|
663
|
+
once(
|
|
664
|
+
event: "MarketExited",
|
|
665
|
+
options: EventOptions,
|
|
666
|
+
cb: Callback<MarketExited>
|
|
667
|
+
): void;
|
|
668
|
+
|
|
669
|
+
once(event: "MarketListed", cb: Callback<MarketListed>): void;
|
|
670
|
+
once(
|
|
671
|
+
event: "MarketListed",
|
|
672
|
+
options: EventOptions,
|
|
673
|
+
cb: Callback<MarketListed>
|
|
674
|
+
): void;
|
|
675
|
+
|
|
676
|
+
once(event: "NewBorrowCap", cb: Callback<NewBorrowCap>): void;
|
|
677
|
+
once(
|
|
678
|
+
event: "NewBorrowCap",
|
|
679
|
+
options: EventOptions,
|
|
680
|
+
cb: Callback<NewBorrowCap>
|
|
681
|
+
): void;
|
|
682
|
+
|
|
683
|
+
once(event: "NewBorrowCapGuardian", cb: Callback<NewBorrowCapGuardian>): void;
|
|
684
|
+
once(
|
|
685
|
+
event: "NewBorrowCapGuardian",
|
|
686
|
+
options: EventOptions,
|
|
687
|
+
cb: Callback<NewBorrowCapGuardian>
|
|
688
|
+
): void;
|
|
689
|
+
|
|
690
|
+
once(event: "NewCloseFactor", cb: Callback<NewCloseFactor>): void;
|
|
691
|
+
once(
|
|
692
|
+
event: "NewCloseFactor",
|
|
693
|
+
options: EventOptions,
|
|
694
|
+
cb: Callback<NewCloseFactor>
|
|
695
|
+
): void;
|
|
696
|
+
|
|
697
|
+
once(event: "NewCollateralFactor", cb: Callback<NewCollateralFactor>): void;
|
|
698
|
+
once(
|
|
699
|
+
event: "NewCollateralFactor",
|
|
700
|
+
options: EventOptions,
|
|
701
|
+
cb: Callback<NewCollateralFactor>
|
|
702
|
+
): void;
|
|
703
|
+
|
|
704
|
+
once(
|
|
705
|
+
event: "NewLiquidationIncentive",
|
|
706
|
+
cb: Callback<NewLiquidationIncentive>
|
|
707
|
+
): void;
|
|
708
|
+
once(
|
|
709
|
+
event: "NewLiquidationIncentive",
|
|
710
|
+
options: EventOptions,
|
|
711
|
+
cb: Callback<NewLiquidationIncentive>
|
|
712
|
+
): void;
|
|
713
|
+
|
|
714
|
+
once(event: "NewPauseGuardian", cb: Callback<NewPauseGuardian>): void;
|
|
715
|
+
once(
|
|
716
|
+
event: "NewPauseGuardian",
|
|
717
|
+
options: EventOptions,
|
|
718
|
+
cb: Callback<NewPauseGuardian>
|
|
719
|
+
): void;
|
|
720
|
+
|
|
721
|
+
once(event: "NewPriceOracle", cb: Callback<NewPriceOracle>): void;
|
|
722
|
+
once(
|
|
723
|
+
event: "NewPriceOracle",
|
|
724
|
+
options: EventOptions,
|
|
725
|
+
cb: Callback<NewPriceOracle>
|
|
726
|
+
): void;
|
|
727
|
+
}
|