@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,83 @@
|
|
|
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 declare namespace UniswapInterfaceMulticall {
|
|
25
|
+
export type CallStruct =
|
|
26
|
+
| [string, number | string | BN, string | number[]]
|
|
27
|
+
| {
|
|
28
|
+
target: string;
|
|
29
|
+
gasLimit: number | string | BN;
|
|
30
|
+
callData: string | number[];
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type CallStructOutputArray = [string, string, string];
|
|
34
|
+
export type CallStructOutputStruct = {
|
|
35
|
+
target: string;
|
|
36
|
+
gasLimit: string;
|
|
37
|
+
callData: string;
|
|
38
|
+
};
|
|
39
|
+
export type CallStructOutput = CallStructOutputArray & CallStructOutputStruct;
|
|
40
|
+
|
|
41
|
+
export type ResultStruct =
|
|
42
|
+
| [boolean, number | string | BN, string | number[]]
|
|
43
|
+
| {
|
|
44
|
+
success: boolean;
|
|
45
|
+
gasUsed: number | string | BN;
|
|
46
|
+
returnData: string | number[];
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type ResultStructOutputArray = [boolean, string, string];
|
|
50
|
+
export type ResultStructOutputStruct = {
|
|
51
|
+
success: boolean;
|
|
52
|
+
gasUsed: string;
|
|
53
|
+
returnData: string;
|
|
54
|
+
};
|
|
55
|
+
export type ResultStructOutput = ResultStructOutputArray &
|
|
56
|
+
ResultStructOutputStruct;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface UniMulticall extends BaseContract {
|
|
60
|
+
constructor(
|
|
61
|
+
jsonInterface: any[],
|
|
62
|
+
address?: string,
|
|
63
|
+
options?: ContractOptions
|
|
64
|
+
): UniMulticall;
|
|
65
|
+
clone(): UniMulticall;
|
|
66
|
+
methods: {
|
|
67
|
+
getCurrentBlockTimestamp(): NonPayableTransactionObject<string>;
|
|
68
|
+
|
|
69
|
+
getEthBalance(addr: string): NonPayableTransactionObject<string>;
|
|
70
|
+
|
|
71
|
+
multicall(
|
|
72
|
+
calls: UniswapInterfaceMulticall.CallStruct[]
|
|
73
|
+
): NonPayableTransactionObject<
|
|
74
|
+
[string, UniswapInterfaceMulticall.ResultStructOutput[]] & {
|
|
75
|
+
blockNumber: string;
|
|
76
|
+
returnData: UniswapInterfaceMulticall.ResultStructOutput[];
|
|
77
|
+
}
|
|
78
|
+
>;
|
|
79
|
+
};
|
|
80
|
+
events: {
|
|
81
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
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 Approval = ContractEventLog<{
|
|
25
|
+
owner: string;
|
|
26
|
+
spender: string;
|
|
27
|
+
value: string;
|
|
28
|
+
0: string;
|
|
29
|
+
1: string;
|
|
30
|
+
2: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type Transfer = ContractEventLog<{
|
|
33
|
+
from: string;
|
|
34
|
+
to: string;
|
|
35
|
+
value: string;
|
|
36
|
+
0: string;
|
|
37
|
+
1: string;
|
|
38
|
+
2: string;
|
|
39
|
+
}>;
|
|
40
|
+
|
|
41
|
+
export interface WstETH extends BaseContract {
|
|
42
|
+
constructor(
|
|
43
|
+
jsonInterface: any[],
|
|
44
|
+
address?: string,
|
|
45
|
+
options?: ContractOptions
|
|
46
|
+
): WstETH;
|
|
47
|
+
clone(): WstETH;
|
|
48
|
+
methods: {
|
|
49
|
+
DOMAIN_SEPARATOR(): NonPayableTransactionObject<string>;
|
|
50
|
+
|
|
51
|
+
allowance(
|
|
52
|
+
owner: string,
|
|
53
|
+
spender: string
|
|
54
|
+
): NonPayableTransactionObject<string>;
|
|
55
|
+
|
|
56
|
+
approve(
|
|
57
|
+
spender: string,
|
|
58
|
+
amount: number | string | BN
|
|
59
|
+
): NonPayableTransactionObject<boolean>;
|
|
60
|
+
|
|
61
|
+
balanceOf(account: string): NonPayableTransactionObject<string>;
|
|
62
|
+
|
|
63
|
+
decimals(): NonPayableTransactionObject<string>;
|
|
64
|
+
|
|
65
|
+
decreaseAllowance(
|
|
66
|
+
spender: string,
|
|
67
|
+
subtractedValue: number | string | BN
|
|
68
|
+
): NonPayableTransactionObject<boolean>;
|
|
69
|
+
|
|
70
|
+
getStETHByWstETH(
|
|
71
|
+
_wstETHAmount: number | string | BN
|
|
72
|
+
): NonPayableTransactionObject<string>;
|
|
73
|
+
|
|
74
|
+
getWstETHByStETH(
|
|
75
|
+
_stETHAmount: number | string | BN
|
|
76
|
+
): NonPayableTransactionObject<string>;
|
|
77
|
+
|
|
78
|
+
increaseAllowance(
|
|
79
|
+
spender: string,
|
|
80
|
+
addedValue: number | string | BN
|
|
81
|
+
): NonPayableTransactionObject<boolean>;
|
|
82
|
+
|
|
83
|
+
name(): NonPayableTransactionObject<string>;
|
|
84
|
+
|
|
85
|
+
nonces(owner: string): NonPayableTransactionObject<string>;
|
|
86
|
+
|
|
87
|
+
permit(
|
|
88
|
+
owner: string,
|
|
89
|
+
spender: string,
|
|
90
|
+
value: number | string | BN,
|
|
91
|
+
deadline: number | string | BN,
|
|
92
|
+
v: number | string | BN,
|
|
93
|
+
r: string | number[],
|
|
94
|
+
s: string | number[]
|
|
95
|
+
): NonPayableTransactionObject<void>;
|
|
96
|
+
|
|
97
|
+
stETH(): NonPayableTransactionObject<string>;
|
|
98
|
+
|
|
99
|
+
stEthPerToken(): NonPayableTransactionObject<string>;
|
|
100
|
+
|
|
101
|
+
symbol(): NonPayableTransactionObject<string>;
|
|
102
|
+
|
|
103
|
+
tokensPerStEth(): NonPayableTransactionObject<string>;
|
|
104
|
+
|
|
105
|
+
totalSupply(): NonPayableTransactionObject<string>;
|
|
106
|
+
|
|
107
|
+
transfer(
|
|
108
|
+
recipient: string,
|
|
109
|
+
amount: number | string | BN
|
|
110
|
+
): NonPayableTransactionObject<boolean>;
|
|
111
|
+
|
|
112
|
+
transferFrom(
|
|
113
|
+
sender: string,
|
|
114
|
+
recipient: string,
|
|
115
|
+
amount: number | string | BN
|
|
116
|
+
): NonPayableTransactionObject<boolean>;
|
|
117
|
+
|
|
118
|
+
unwrap(
|
|
119
|
+
_wstETHAmount: number | string | BN
|
|
120
|
+
): NonPayableTransactionObject<string>;
|
|
121
|
+
|
|
122
|
+
wrap(
|
|
123
|
+
_stETHAmount: number | string | BN
|
|
124
|
+
): NonPayableTransactionObject<string>;
|
|
125
|
+
};
|
|
126
|
+
events: {
|
|
127
|
+
Approval(cb?: Callback<Approval>): EventEmitter;
|
|
128
|
+
Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter;
|
|
129
|
+
|
|
130
|
+
Transfer(cb?: Callback<Transfer>): EventEmitter;
|
|
131
|
+
Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;
|
|
132
|
+
|
|
133
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
once(event: "Approval", cb: Callback<Approval>): void;
|
|
137
|
+
once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void;
|
|
138
|
+
|
|
139
|
+
once(event: "Transfer", cb: Callback<Transfer>): void;
|
|
140
|
+
once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;
|
|
141
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export type { AaveLendingPoolV2 } from "./AaveLendingPoolV2";
|
|
5
|
+
export type { AaveLoanInfoV2 } from "./AaveLoanInfoV2";
|
|
6
|
+
export type { AaveProtocolDataProvider } from "./AaveProtocolDataProvider";
|
|
7
|
+
export type { AaveUiIncentiveDataProviderV3 } from "./AaveUiIncentiveDataProviderV3";
|
|
8
|
+
export type { AaveV3LendingPool } from "./AaveV3LendingPool";
|
|
9
|
+
export type { AaveV3PoolAddressesProvider } from "./AaveV3PoolAddressesProvider";
|
|
10
|
+
export type { AaveV3ProtocolDataProvider } from "./AaveV3ProtocolDataProvider";
|
|
11
|
+
export type { AaveV3View } from "./AaveV3View";
|
|
12
|
+
export type { BalanceScanner } from "./BalanceScanner";
|
|
13
|
+
export type { CbEth } from "./CbEth";
|
|
14
|
+
export type { ChickenBondsView } from "./ChickenBondsView";
|
|
15
|
+
export type { CollSurplusPool } from "./CollSurplusPool";
|
|
16
|
+
export type { CompV3ETHBulker } from "./CompV3ETHBulker";
|
|
17
|
+
export type { CompV3USDCBulker } from "./CompV3USDCBulker";
|
|
18
|
+
export type { CompV3USDbCBulker } from "./CompV3USDbCBulker";
|
|
19
|
+
export type { CompV3View } from "./CompV3View";
|
|
20
|
+
export type { CompoundLoanInfo } from "./CompoundLoanInfo";
|
|
21
|
+
export type { Comptroller } from "./Comptroller";
|
|
22
|
+
export type { Erc20 } from "./Erc20";
|
|
23
|
+
export type { GHO } from "./GHO";
|
|
24
|
+
export type { GhoDiscountRateStrategy } from "./GhoDiscountRateStrategy";
|
|
25
|
+
export type { IAToken } from "./IAToken";
|
|
26
|
+
export type { IVariableDebtToken } from "./IVariableDebtToken";
|
|
27
|
+
export type { LendingPoolAddressesProvider } from "./LendingPoolAddressesProvider";
|
|
28
|
+
export type { Lido } from "./Lido";
|
|
29
|
+
export type { LiquityActivePool } from "./LiquityActivePool";
|
|
30
|
+
export type { LiquityView } from "./LiquityView";
|
|
31
|
+
export type { McdDog } from "./McdDog";
|
|
32
|
+
export type { McdJug } from "./McdJug";
|
|
33
|
+
export type { McdSpotter } from "./McdSpotter";
|
|
34
|
+
export type { McdVat } from "./McdVat";
|
|
35
|
+
export type { McdView } from "./McdView";
|
|
36
|
+
export type { MorphoAaveV2Proxy } from "./MorphoAaveV2Proxy";
|
|
37
|
+
export type { MorphoAaveV2View } from "./MorphoAaveV2View";
|
|
38
|
+
export type { MorphoAaveV3ProxyEthMarket } from "./MorphoAaveV3ProxyEthMarket";
|
|
39
|
+
export type { Pot } from "./Pot";
|
|
40
|
+
export type { PriceFeed } from "./PriceFeed";
|
|
41
|
+
export type { REth } from "./REth";
|
|
42
|
+
export type { SparkIncentiveDataProvider } from "./SparkIncentiveDataProvider";
|
|
43
|
+
export type { SparkLendingPool } from "./SparkLendingPool";
|
|
44
|
+
export type { SparkPoolAddressesProvider } from "./SparkPoolAddressesProvider";
|
|
45
|
+
export type { SparkProtocolDataProvider } from "./SparkProtocolDataProvider";
|
|
46
|
+
export type { SparkView } from "./SparkView";
|
|
47
|
+
export type { TroveManager } from "./TroveManager";
|
|
48
|
+
export type { UniMulticall } from "./UniMulticall";
|
|
49
|
+
export type { CETHv3 } from "./CETHv3";
|
|
50
|
+
export type { CUSDCv3 } from "./CUSDCv3";
|
|
51
|
+
export type { CUSDbCv3 } from "./CUSDbCv3";
|
|
52
|
+
export type { CrvUSDETHAmm } from "./CrvUSDETHAmm";
|
|
53
|
+
export type { CrvUSDETHController } from "./CrvUSDETHController";
|
|
54
|
+
export type { CrvUSDFactory } from "./CrvUSDFactory";
|
|
55
|
+
export type { CrvUSDView } from "./CrvUSDView";
|
|
56
|
+
export type { CrvUSDWBTCAmm } from "./CrvUSDWBTCAmm";
|
|
57
|
+
export type { CrvUSDWBTCController } from "./CrvUSDWBTCController";
|
|
58
|
+
export type { CrvUSDwstETHAmm } from "./CrvUSDwstETHAmm";
|
|
59
|
+
export type { CrvUSDwstETHController } from "./CrvUSDwstETHController";
|
|
60
|
+
export type { WstETH } from "./WstETH";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type BN from "bn.js";
|
|
5
|
+
import type { EventEmitter } from "events";
|
|
6
|
+
import type { EventLog, PromiEvent, TransactionReceipt } from "web3-core/types";
|
|
7
|
+
import type { Contract } from "web3-eth-contract";
|
|
8
|
+
|
|
9
|
+
export interface EstimateGasOptions {
|
|
10
|
+
from?: string;
|
|
11
|
+
gas?: number;
|
|
12
|
+
value?: number | string | BN;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface EventOptions {
|
|
16
|
+
filter?: object;
|
|
17
|
+
fromBlock?: BlockType;
|
|
18
|
+
topics?: string[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type Callback<T> = (error: Error, result: T) => void;
|
|
22
|
+
export interface ContractEventLog<T> extends EventLog {
|
|
23
|
+
returnValues: T;
|
|
24
|
+
}
|
|
25
|
+
export interface ContractEventEmitter<T> extends EventEmitter {
|
|
26
|
+
on(event: "connected", listener: (subscriptionId: string) => void): this;
|
|
27
|
+
on(
|
|
28
|
+
event: "data" | "changed",
|
|
29
|
+
listener: (event: ContractEventLog<T>) => void
|
|
30
|
+
): this;
|
|
31
|
+
on(event: "error", listener: (error: Error) => void): this;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface NonPayableTx {
|
|
35
|
+
nonce?: string | number | BN;
|
|
36
|
+
chainId?: string | number | BN;
|
|
37
|
+
from?: string;
|
|
38
|
+
to?: string;
|
|
39
|
+
data?: string;
|
|
40
|
+
gas?: string | number | BN;
|
|
41
|
+
maxPriorityFeePerGas?: string | number | BN;
|
|
42
|
+
maxFeePerGas?: string | number | BN;
|
|
43
|
+
gasPrice?: string | number | BN;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface PayableTx extends NonPayableTx {
|
|
47
|
+
value?: string | number | BN;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface NonPayableTransactionObject<T> {
|
|
51
|
+
arguments: any[];
|
|
52
|
+
call(tx?: NonPayableTx, block?: BlockType): Promise<T>;
|
|
53
|
+
send(tx?: NonPayableTx): PromiEvent<TransactionReceipt>;
|
|
54
|
+
estimateGas(tx?: NonPayableTx): Promise<number>;
|
|
55
|
+
encodeABI(): string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface PayableTransactionObject<T> {
|
|
59
|
+
arguments: any[];
|
|
60
|
+
call(tx?: PayableTx, block?: BlockType): Promise<T>;
|
|
61
|
+
send(tx?: PayableTx): PromiEvent<TransactionReceipt>;
|
|
62
|
+
estimateGas(tx?: PayableTx): Promise<number>;
|
|
63
|
+
encodeABI(): string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type BlockType =
|
|
67
|
+
| "latest"
|
|
68
|
+
| "pending"
|
|
69
|
+
| "genesis"
|
|
70
|
+
| "earliest"
|
|
71
|
+
| number
|
|
72
|
+
| BN;
|
|
73
|
+
export type BaseContract = Omit<Contract, "clone" | "once">;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { NetworkNumber } from './common';
|
|
2
|
+
|
|
3
|
+
export enum CrvUSDVersions {
|
|
4
|
+
'wstETH' = 'wstETH',
|
|
5
|
+
'WBTC' = 'WBTC',
|
|
6
|
+
'ETH' = 'ETH',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum CrvUSDStatus {
|
|
10
|
+
Nonexistant = 'Nonexistant',
|
|
11
|
+
Safe = 'Safe',
|
|
12
|
+
Risk = 'Risk',
|
|
13
|
+
SoftLiquidating = 'SoftLiquidating',
|
|
14
|
+
SoftLiquidated = 'SoftLiquidated',
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface CrvUSDMarketData {
|
|
18
|
+
chainIds: NetworkNumber[],
|
|
19
|
+
label: string,
|
|
20
|
+
shortLabel: string,
|
|
21
|
+
value: CrvUSDVersions,
|
|
22
|
+
collAsset: string,
|
|
23
|
+
baseAsset: string,
|
|
24
|
+
controllerAddress: string,
|
|
25
|
+
ammAddress: string,
|
|
26
|
+
createCollAssets: string[],
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface BandData {
|
|
30
|
+
id: string,
|
|
31
|
+
collAmount: string,
|
|
32
|
+
debtAmount: string,
|
|
33
|
+
lowPrice: string,
|
|
34
|
+
highPrice: string,
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface UserBandData {
|
|
38
|
+
id: string,
|
|
39
|
+
collAmount: string,
|
|
40
|
+
debtAmount: string,
|
|
41
|
+
lowPrice: string,
|
|
42
|
+
highPrice: string,
|
|
43
|
+
userDebtAmount: string,
|
|
44
|
+
userCollAmount: string,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface CrvUSDGlobalMarketData {
|
|
48
|
+
collateral: string,
|
|
49
|
+
decimals: string,
|
|
50
|
+
activeBand: string,
|
|
51
|
+
totalDebt: string,
|
|
52
|
+
ammPrice: string,
|
|
53
|
+
basePrice: string,
|
|
54
|
+
oraclePrice: string,
|
|
55
|
+
minted: string,
|
|
56
|
+
redeemed: string,
|
|
57
|
+
monetaryPolicyRate: string,
|
|
58
|
+
ammRate: string,
|
|
59
|
+
minBand: string,
|
|
60
|
+
maxBand: string,
|
|
61
|
+
debtCeiling: string,
|
|
62
|
+
borrowRate: string,
|
|
63
|
+
futureBorrowRate: string,
|
|
64
|
+
leftToBorrow: string,
|
|
65
|
+
bands: BandData[],
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface CrvUSDAggregatedPositionData {
|
|
69
|
+
ratio: string,
|
|
70
|
+
supplied: string,
|
|
71
|
+
suppliedUsd: string,
|
|
72
|
+
borrowedUsd: string,
|
|
73
|
+
borrowed: string,
|
|
74
|
+
safetyRatio: string,
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface CrvUSDUsedAsset {
|
|
78
|
+
isSupplied: boolean,
|
|
79
|
+
supplied: string,
|
|
80
|
+
suppliedUsd: string,
|
|
81
|
+
borrowed: string,
|
|
82
|
+
borrowedUsd: string,
|
|
83
|
+
isBorrowed: boolean,
|
|
84
|
+
symbol: string,
|
|
85
|
+
collateral: boolean,
|
|
86
|
+
price: string,
|
|
87
|
+
interestRate?: string,
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface CrvUSDUsedAssets {
|
|
91
|
+
[key: string]: CrvUSDUsedAsset,
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface CrvUSDUserData {
|
|
95
|
+
debtAmount: string,
|
|
96
|
+
health: string,
|
|
97
|
+
healthPercent: string,
|
|
98
|
+
priceHigh: string,
|
|
99
|
+
priceLow: string,
|
|
100
|
+
liquidationDiscount: string,
|
|
101
|
+
numOfBands: string,
|
|
102
|
+
usedAssets: CrvUSDUsedAssets,
|
|
103
|
+
status: CrvUSDStatus,
|
|
104
|
+
ratio: string,
|
|
105
|
+
supplied: string,
|
|
106
|
+
suppliedUsd: string,
|
|
107
|
+
borrowedUsd: string,
|
|
108
|
+
borrowed: string,
|
|
109
|
+
safetyRatio: string,
|
|
110
|
+
userBands: UserBandData[],
|
|
111
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export enum LIQUITY_TROVE_STATUS_ENUM {
|
|
2
|
+
nonExistent,
|
|
3
|
+
active,
|
|
4
|
+
closedByOwner,
|
|
5
|
+
closedByLiquidation,
|
|
6
|
+
closedByRedemption,
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const LIQUITY_STATUS_MAPPING = {
|
|
10
|
+
nonExistent: 'Non existent',
|
|
11
|
+
active: 'Active',
|
|
12
|
+
closedByOwner: 'Closed',
|
|
13
|
+
closedByLiquidation: 'Liquidated',
|
|
14
|
+
closedByRedemption: 'Redeemed',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export interface LiquityTroveInfo {
|
|
18
|
+
troveStatus: string,
|
|
19
|
+
collateral: string,
|
|
20
|
+
debtInAsset: string,
|
|
21
|
+
TCRatio: string,
|
|
22
|
+
recoveryMode: boolean,
|
|
23
|
+
claimableCollateral: string,
|
|
24
|
+
borrowingRateWithDecay: string,
|
|
25
|
+
assetPrice: string,
|
|
26
|
+
totalETH: string,
|
|
27
|
+
totalLUSD: string,
|
|
28
|
+
minCollateralRatio: number,
|
|
29
|
+
priceForRecovery: string,
|
|
30
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EthAddress } from './common';
|
|
2
|
+
|
|
3
|
+
export interface IlkInfo {
|
|
4
|
+
ilkLabel: string;
|
|
5
|
+
currentRate: string;
|
|
6
|
+
futureRate: string;
|
|
7
|
+
minDebt: string;
|
|
8
|
+
globalDebtCeiling: string;
|
|
9
|
+
globalDebtCurrent: string;
|
|
10
|
+
assetPrice: string;
|
|
11
|
+
liqRatio: string;
|
|
12
|
+
liqPercent: number;
|
|
13
|
+
stabilityFee: number;
|
|
14
|
+
liquidationFee: string;
|
|
15
|
+
creatableDebt: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface CdpData {
|
|
19
|
+
owner: EthAddress,
|
|
20
|
+
userAddress: EthAddress,
|
|
21
|
+
id: string,
|
|
22
|
+
urn: EthAddress,
|
|
23
|
+
type: string,
|
|
24
|
+
ilk: string,
|
|
25
|
+
ilkLabel: string,
|
|
26
|
+
asset: string,
|
|
27
|
+
collateral: string,
|
|
28
|
+
collateralUsd: string,
|
|
29
|
+
futureDebt: string,
|
|
30
|
+
debtDai: string,
|
|
31
|
+
debtUsd: string,
|
|
32
|
+
debtInAsset: string,
|
|
33
|
+
debtAssetPrice: string,
|
|
34
|
+
debtAssetMarketPrice: string,
|
|
35
|
+
liquidationPrice: string,
|
|
36
|
+
ratio: string,
|
|
37
|
+
liqRatio: string,
|
|
38
|
+
liqPercent: number,
|
|
39
|
+
assetPrice: string,
|
|
40
|
+
daiLabel: string,
|
|
41
|
+
debtAsset: string,
|
|
42
|
+
unclaimedCollateral: string,
|
|
43
|
+
debtTooLow: boolean,
|
|
44
|
+
minDebt: string,
|
|
45
|
+
stabilityFee: number,
|
|
46
|
+
creatableDebt: string,
|
|
47
|
+
globalDebtCeiling: string,
|
|
48
|
+
globalDebtCurrent: string,
|
|
49
|
+
liquidationFee: string,
|
|
50
|
+
lastUpdated: number,
|
|
51
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { EModeCategoryData, EModeCategoryDataMapping } from './aave';
|
|
2
|
+
import {
|
|
3
|
+
MMAssetData, MMPositionData, MMUsedAsset, NetworkNumber,
|
|
4
|
+
} from './common';
|
|
5
|
+
|
|
6
|
+
export enum SparkVersions {
|
|
7
|
+
SparkV1 = 'v1default',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface SparkMarketData {
|
|
11
|
+
chainIds: NetworkNumber[],
|
|
12
|
+
label: string,
|
|
13
|
+
shortLabel: string,
|
|
14
|
+
url: string,
|
|
15
|
+
value: SparkVersions,
|
|
16
|
+
assets: readonly string[],
|
|
17
|
+
provider: '' | 'SparkPoolAddressesProvider',
|
|
18
|
+
providerAddress: string,
|
|
19
|
+
lendingPool: 'SparkLendingPool',
|
|
20
|
+
lendingPoolAddress: string,
|
|
21
|
+
protocolData: '' | 'SparkProtocolDataProvider',
|
|
22
|
+
protocolDataAddress: string
|
|
23
|
+
subVersionLabel?: string
|
|
24
|
+
// icon: Function,
|
|
25
|
+
protocolName: string,
|
|
26
|
+
disabled?: boolean,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface SparkAssetData extends MMAssetData {
|
|
30
|
+
totalBorrowVar: string,
|
|
31
|
+
sortIndex?: number,
|
|
32
|
+
usageAsCollateralEnabled: boolean,
|
|
33
|
+
isIsolated: boolean,
|
|
34
|
+
eModeCategory: number,
|
|
35
|
+
eModeCategoryData: EModeCategoryData,
|
|
36
|
+
liquidationRatio: string,
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface SparkAssetsData {
|
|
40
|
+
[token: string]: SparkAssetData,
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type SparkMarketsData = { assetsData: SparkAssetsData };
|
|
44
|
+
|
|
45
|
+
export interface SparkUsedAsset extends MMUsedAsset {
|
|
46
|
+
stableBorrowRate: string,
|
|
47
|
+
borrowedStable: string,
|
|
48
|
+
borrowedVariable: string,
|
|
49
|
+
borrowedUsdStable: string,
|
|
50
|
+
borrowedUsdVariable: string,
|
|
51
|
+
stableLimit: string,
|
|
52
|
+
variableLimit: string,
|
|
53
|
+
limit: string,
|
|
54
|
+
eModeCategory: number,
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface SparkUsedAssets {
|
|
58
|
+
[token: string]: SparkUsedAsset,
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface SparkHelperCommon {
|
|
62
|
+
usedAssets: SparkUsedAssets,
|
|
63
|
+
eModeCategory: number,
|
|
64
|
+
eModeCategories?: { [key: number]: EModeCategoryDataMapping },
|
|
65
|
+
assetsData: SparkAssetsData,
|
|
66
|
+
selectedMarket?: SparkMarketData,
|
|
67
|
+
network?: NetworkNumber,
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface SparkAggregatedPositionData {
|
|
71
|
+
suppliedUsd: string,
|
|
72
|
+
suppliedCollateralUsd: string,
|
|
73
|
+
borrowedUsd: string,
|
|
74
|
+
borrowLimitUsd: string,
|
|
75
|
+
liquidationLimitUsd: string,
|
|
76
|
+
leftToBorrowUsd: string,
|
|
77
|
+
ratio: string,
|
|
78
|
+
collRatio: string,
|
|
79
|
+
netApy: string,
|
|
80
|
+
incentiveUsd: string,
|
|
81
|
+
totalInterestUsd: string,
|
|
82
|
+
liqRatio: string,
|
|
83
|
+
liqPercent: string,
|
|
84
|
+
leveragedType: string,
|
|
85
|
+
leveragedAsset?: string,
|
|
86
|
+
leveragedLsdAssetRatio?: string,
|
|
87
|
+
liquidationPrice?: string,
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface SparkPositionData extends MMPositionData {
|
|
91
|
+
ratio: string,
|
|
92
|
+
minRatio: string,
|
|
93
|
+
collRatio: string,
|
|
94
|
+
borrowedUsd: string,
|
|
95
|
+
borrowLimitUsd: string,
|
|
96
|
+
suppliedCollateralUsd: string,
|
|
97
|
+
incentiveUsd: string,
|
|
98
|
+
totalInterestUsd: string,
|
|
99
|
+
isSubscribedToAutomation?: boolean,
|
|
100
|
+
automationResubscribeRequired?: boolean,
|
|
101
|
+
totalSupplied: string,
|
|
102
|
+
usedAssets: SparkUsedAssets,
|
|
103
|
+
eModeCategory: number,
|
|
104
|
+
isInIsolationMode: boolean,
|
|
105
|
+
isInSiloedMode: boolean,
|
|
106
|
+
eModeCategories: { [key: number]: EModeCategoryDataMapping },
|
|
107
|
+
}
|