@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,688 @@
|
|
|
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 CometConfiguration {
|
|
25
|
+
export type AssetConfigStruct =
|
|
26
|
+
| [
|
|
27
|
+
string,
|
|
28
|
+
string,
|
|
29
|
+
number | string | BN,
|
|
30
|
+
number | string | BN,
|
|
31
|
+
number | string | BN,
|
|
32
|
+
number | string | BN,
|
|
33
|
+
number | string | BN
|
|
34
|
+
]
|
|
35
|
+
| {
|
|
36
|
+
asset: string;
|
|
37
|
+
priceFeed: string;
|
|
38
|
+
decimals: number | string | BN;
|
|
39
|
+
borrowCollateralFactor: number | string | BN;
|
|
40
|
+
liquidateCollateralFactor: number | string | BN;
|
|
41
|
+
liquidationFactor: number | string | BN;
|
|
42
|
+
supplyCap: number | string | BN;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type AssetConfigStructOutputArray = [
|
|
46
|
+
string,
|
|
47
|
+
string,
|
|
48
|
+
string,
|
|
49
|
+
string,
|
|
50
|
+
string,
|
|
51
|
+
string,
|
|
52
|
+
string
|
|
53
|
+
];
|
|
54
|
+
export type AssetConfigStructOutputStruct = {
|
|
55
|
+
asset: string;
|
|
56
|
+
priceFeed: string;
|
|
57
|
+
decimals: string;
|
|
58
|
+
borrowCollateralFactor: string;
|
|
59
|
+
liquidateCollateralFactor: string;
|
|
60
|
+
liquidationFactor: string;
|
|
61
|
+
supplyCap: string;
|
|
62
|
+
};
|
|
63
|
+
export type AssetConfigStructOutput = AssetConfigStructOutputArray &
|
|
64
|
+
AssetConfigStructOutputStruct;
|
|
65
|
+
|
|
66
|
+
export type ConfigurationStruct =
|
|
67
|
+
| [
|
|
68
|
+
string,
|
|
69
|
+
string,
|
|
70
|
+
string,
|
|
71
|
+
string,
|
|
72
|
+
string,
|
|
73
|
+
number | string | BN,
|
|
74
|
+
number | string | BN,
|
|
75
|
+
number | string | BN,
|
|
76
|
+
number | string | BN,
|
|
77
|
+
number | string | BN,
|
|
78
|
+
number | string | BN,
|
|
79
|
+
number | string | BN,
|
|
80
|
+
number | string | BN,
|
|
81
|
+
number | string | BN,
|
|
82
|
+
number | string | BN,
|
|
83
|
+
number | string | BN,
|
|
84
|
+
number | string | BN,
|
|
85
|
+
number | string | BN,
|
|
86
|
+
number | string | BN,
|
|
87
|
+
number | string | BN,
|
|
88
|
+
CometConfiguration.AssetConfigStruct[]
|
|
89
|
+
]
|
|
90
|
+
| {
|
|
91
|
+
governor: string;
|
|
92
|
+
pauseGuardian: string;
|
|
93
|
+
baseToken: string;
|
|
94
|
+
baseTokenPriceFeed: string;
|
|
95
|
+
extensionDelegate: string;
|
|
96
|
+
supplyKink: number | string | BN;
|
|
97
|
+
supplyPerYearInterestRateSlopeLow: number | string | BN;
|
|
98
|
+
supplyPerYearInterestRateSlopeHigh: number | string | BN;
|
|
99
|
+
supplyPerYearInterestRateBase: number | string | BN;
|
|
100
|
+
borrowKink: number | string | BN;
|
|
101
|
+
borrowPerYearInterestRateSlopeLow: number | string | BN;
|
|
102
|
+
borrowPerYearInterestRateSlopeHigh: number | string | BN;
|
|
103
|
+
borrowPerYearInterestRateBase: number | string | BN;
|
|
104
|
+
storeFrontPriceFactor: number | string | BN;
|
|
105
|
+
trackingIndexScale: number | string | BN;
|
|
106
|
+
baseTrackingSupplySpeed: number | string | BN;
|
|
107
|
+
baseTrackingBorrowSpeed: number | string | BN;
|
|
108
|
+
baseMinForRewards: number | string | BN;
|
|
109
|
+
baseBorrowMin: number | string | BN;
|
|
110
|
+
targetReserves: number | string | BN;
|
|
111
|
+
assetConfigs: CometConfiguration.AssetConfigStruct[];
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type ConfigurationStructOutputArray = [
|
|
115
|
+
string,
|
|
116
|
+
string,
|
|
117
|
+
string,
|
|
118
|
+
string,
|
|
119
|
+
string,
|
|
120
|
+
string,
|
|
121
|
+
string,
|
|
122
|
+
string,
|
|
123
|
+
string,
|
|
124
|
+
string,
|
|
125
|
+
string,
|
|
126
|
+
string,
|
|
127
|
+
string,
|
|
128
|
+
string,
|
|
129
|
+
string,
|
|
130
|
+
string,
|
|
131
|
+
string,
|
|
132
|
+
string,
|
|
133
|
+
string,
|
|
134
|
+
string,
|
|
135
|
+
CometConfiguration.AssetConfigStructOutput[]
|
|
136
|
+
];
|
|
137
|
+
export type ConfigurationStructOutputStruct = {
|
|
138
|
+
governor: string;
|
|
139
|
+
pauseGuardian: string;
|
|
140
|
+
baseToken: string;
|
|
141
|
+
baseTokenPriceFeed: string;
|
|
142
|
+
extensionDelegate: string;
|
|
143
|
+
supplyKink: string;
|
|
144
|
+
supplyPerYearInterestRateSlopeLow: string;
|
|
145
|
+
supplyPerYearInterestRateSlopeHigh: string;
|
|
146
|
+
supplyPerYearInterestRateBase: string;
|
|
147
|
+
borrowKink: string;
|
|
148
|
+
borrowPerYearInterestRateSlopeLow: string;
|
|
149
|
+
borrowPerYearInterestRateSlopeHigh: string;
|
|
150
|
+
borrowPerYearInterestRateBase: string;
|
|
151
|
+
storeFrontPriceFactor: string;
|
|
152
|
+
trackingIndexScale: string;
|
|
153
|
+
baseTrackingSupplySpeed: string;
|
|
154
|
+
baseTrackingBorrowSpeed: string;
|
|
155
|
+
baseMinForRewards: string;
|
|
156
|
+
baseBorrowMin: string;
|
|
157
|
+
targetReserves: string;
|
|
158
|
+
assetConfigs: CometConfiguration.AssetConfigStructOutput[];
|
|
159
|
+
};
|
|
160
|
+
export type ConfigurationStructOutput = ConfigurationStructOutputArray &
|
|
161
|
+
ConfigurationStructOutputStruct;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export declare namespace CometCore {
|
|
165
|
+
export type AssetInfoStruct =
|
|
166
|
+
| [
|
|
167
|
+
number | string | BN,
|
|
168
|
+
string,
|
|
169
|
+
string,
|
|
170
|
+
number | string | BN,
|
|
171
|
+
number | string | BN,
|
|
172
|
+
number | string | BN,
|
|
173
|
+
number | string | BN,
|
|
174
|
+
number | string | BN
|
|
175
|
+
]
|
|
176
|
+
| {
|
|
177
|
+
offset: number | string | BN;
|
|
178
|
+
asset: string;
|
|
179
|
+
priceFeed: string;
|
|
180
|
+
scale: number | string | BN;
|
|
181
|
+
borrowCollateralFactor: number | string | BN;
|
|
182
|
+
liquidateCollateralFactor: number | string | BN;
|
|
183
|
+
liquidationFactor: number | string | BN;
|
|
184
|
+
supplyCap: number | string | BN;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
export type AssetInfoStructOutputArray = [
|
|
188
|
+
string,
|
|
189
|
+
string,
|
|
190
|
+
string,
|
|
191
|
+
string,
|
|
192
|
+
string,
|
|
193
|
+
string,
|
|
194
|
+
string,
|
|
195
|
+
string
|
|
196
|
+
];
|
|
197
|
+
export type AssetInfoStructOutputStruct = {
|
|
198
|
+
offset: string;
|
|
199
|
+
asset: string;
|
|
200
|
+
priceFeed: string;
|
|
201
|
+
scale: string;
|
|
202
|
+
borrowCollateralFactor: string;
|
|
203
|
+
liquidateCollateralFactor: string;
|
|
204
|
+
liquidationFactor: string;
|
|
205
|
+
supplyCap: string;
|
|
206
|
+
};
|
|
207
|
+
export type AssetInfoStructOutput = AssetInfoStructOutputArray &
|
|
208
|
+
AssetInfoStructOutputStruct;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export type AbsorbCollateral = ContractEventLog<{
|
|
212
|
+
absorber: string;
|
|
213
|
+
borrower: string;
|
|
214
|
+
asset: string;
|
|
215
|
+
collateralAbsorbed: string;
|
|
216
|
+
usdValue: string;
|
|
217
|
+
0: string;
|
|
218
|
+
1: string;
|
|
219
|
+
2: string;
|
|
220
|
+
3: string;
|
|
221
|
+
4: string;
|
|
222
|
+
}>;
|
|
223
|
+
export type AbsorbDebt = ContractEventLog<{
|
|
224
|
+
absorber: string;
|
|
225
|
+
borrower: string;
|
|
226
|
+
basePaidOut: string;
|
|
227
|
+
usdValue: string;
|
|
228
|
+
0: string;
|
|
229
|
+
1: string;
|
|
230
|
+
2: string;
|
|
231
|
+
3: string;
|
|
232
|
+
}>;
|
|
233
|
+
export type BuyCollateral = ContractEventLog<{
|
|
234
|
+
buyer: string;
|
|
235
|
+
asset: string;
|
|
236
|
+
baseAmount: string;
|
|
237
|
+
collateralAmount: string;
|
|
238
|
+
0: string;
|
|
239
|
+
1: string;
|
|
240
|
+
2: string;
|
|
241
|
+
3: string;
|
|
242
|
+
}>;
|
|
243
|
+
export type PauseAction = ContractEventLog<{
|
|
244
|
+
supplyPaused: boolean;
|
|
245
|
+
transferPaused: boolean;
|
|
246
|
+
withdrawPaused: boolean;
|
|
247
|
+
absorbPaused: boolean;
|
|
248
|
+
buyPaused: boolean;
|
|
249
|
+
0: boolean;
|
|
250
|
+
1: boolean;
|
|
251
|
+
2: boolean;
|
|
252
|
+
3: boolean;
|
|
253
|
+
4: boolean;
|
|
254
|
+
}>;
|
|
255
|
+
export type Supply = ContractEventLog<{
|
|
256
|
+
from: string;
|
|
257
|
+
dst: string;
|
|
258
|
+
amount: string;
|
|
259
|
+
0: string;
|
|
260
|
+
1: string;
|
|
261
|
+
2: string;
|
|
262
|
+
}>;
|
|
263
|
+
export type SupplyCollateral = ContractEventLog<{
|
|
264
|
+
from: string;
|
|
265
|
+
dst: string;
|
|
266
|
+
asset: string;
|
|
267
|
+
amount: string;
|
|
268
|
+
0: string;
|
|
269
|
+
1: string;
|
|
270
|
+
2: string;
|
|
271
|
+
3: string;
|
|
272
|
+
}>;
|
|
273
|
+
export type Transfer = ContractEventLog<{
|
|
274
|
+
from: string;
|
|
275
|
+
to: string;
|
|
276
|
+
amount: string;
|
|
277
|
+
0: string;
|
|
278
|
+
1: string;
|
|
279
|
+
2: string;
|
|
280
|
+
}>;
|
|
281
|
+
export type TransferCollateral = ContractEventLog<{
|
|
282
|
+
from: string;
|
|
283
|
+
to: string;
|
|
284
|
+
asset: string;
|
|
285
|
+
amount: string;
|
|
286
|
+
0: string;
|
|
287
|
+
1: string;
|
|
288
|
+
2: string;
|
|
289
|
+
3: string;
|
|
290
|
+
}>;
|
|
291
|
+
export type Withdraw = ContractEventLog<{
|
|
292
|
+
src: string;
|
|
293
|
+
to: string;
|
|
294
|
+
amount: string;
|
|
295
|
+
0: string;
|
|
296
|
+
1: string;
|
|
297
|
+
2: string;
|
|
298
|
+
}>;
|
|
299
|
+
export type WithdrawCollateral = ContractEventLog<{
|
|
300
|
+
src: string;
|
|
301
|
+
to: string;
|
|
302
|
+
asset: string;
|
|
303
|
+
amount: string;
|
|
304
|
+
0: string;
|
|
305
|
+
1: string;
|
|
306
|
+
2: string;
|
|
307
|
+
3: string;
|
|
308
|
+
}>;
|
|
309
|
+
export type WithdrawReserves = ContractEventLog<{
|
|
310
|
+
to: string;
|
|
311
|
+
amount: string;
|
|
312
|
+
0: string;
|
|
313
|
+
1: string;
|
|
314
|
+
}>;
|
|
315
|
+
|
|
316
|
+
export interface CUSDCv3 extends BaseContract {
|
|
317
|
+
constructor(
|
|
318
|
+
jsonInterface: any[],
|
|
319
|
+
address?: string,
|
|
320
|
+
options?: ContractOptions
|
|
321
|
+
): CUSDCv3;
|
|
322
|
+
clone(): CUSDCv3;
|
|
323
|
+
methods: {
|
|
324
|
+
allow(
|
|
325
|
+
manager: string,
|
|
326
|
+
isAllowed_: boolean
|
|
327
|
+
): NonPayableTransactionObject<void>;
|
|
328
|
+
|
|
329
|
+
absorb(
|
|
330
|
+
absorber: string,
|
|
331
|
+
accounts: string[]
|
|
332
|
+
): NonPayableTransactionObject<void>;
|
|
333
|
+
|
|
334
|
+
accrueAccount(account: string): NonPayableTransactionObject<void>;
|
|
335
|
+
|
|
336
|
+
approveThis(
|
|
337
|
+
manager: string,
|
|
338
|
+
asset: string,
|
|
339
|
+
amount: number | string | BN
|
|
340
|
+
): NonPayableTransactionObject<void>;
|
|
341
|
+
|
|
342
|
+
balanceOf(account: string): NonPayableTransactionObject<string>;
|
|
343
|
+
|
|
344
|
+
baseBorrowMin(): NonPayableTransactionObject<string>;
|
|
345
|
+
|
|
346
|
+
baseMinForRewards(): NonPayableTransactionObject<string>;
|
|
347
|
+
|
|
348
|
+
baseScale(): NonPayableTransactionObject<string>;
|
|
349
|
+
|
|
350
|
+
baseToken(): NonPayableTransactionObject<string>;
|
|
351
|
+
|
|
352
|
+
baseTokenPriceFeed(): NonPayableTransactionObject<string>;
|
|
353
|
+
|
|
354
|
+
baseTrackingBorrowSpeed(): NonPayableTransactionObject<string>;
|
|
355
|
+
|
|
356
|
+
baseTrackingSupplySpeed(): NonPayableTransactionObject<string>;
|
|
357
|
+
|
|
358
|
+
borrowBalanceOf(account: string): NonPayableTransactionObject<string>;
|
|
359
|
+
|
|
360
|
+
borrowKink(): NonPayableTransactionObject<string>;
|
|
361
|
+
|
|
362
|
+
borrowPerSecondInterestRateBase(): NonPayableTransactionObject<string>;
|
|
363
|
+
|
|
364
|
+
borrowPerSecondInterestRateSlopeHigh(): NonPayableTransactionObject<string>;
|
|
365
|
+
|
|
366
|
+
borrowPerSecondInterestRateSlopeLow(): NonPayableTransactionObject<string>;
|
|
367
|
+
|
|
368
|
+
buyCollateral(
|
|
369
|
+
asset: string,
|
|
370
|
+
minAmount: number | string | BN,
|
|
371
|
+
baseAmount: number | string | BN,
|
|
372
|
+
recipient: string
|
|
373
|
+
): NonPayableTransactionObject<void>;
|
|
374
|
+
|
|
375
|
+
decimals(): NonPayableTransactionObject<string>;
|
|
376
|
+
|
|
377
|
+
extensionDelegate(): NonPayableTransactionObject<string>;
|
|
378
|
+
|
|
379
|
+
getAssetInfo(
|
|
380
|
+
i: number | string | BN
|
|
381
|
+
): NonPayableTransactionObject<CometCore.AssetInfoStructOutput>;
|
|
382
|
+
|
|
383
|
+
getAssetInfoByAddress(
|
|
384
|
+
asset: string
|
|
385
|
+
): NonPayableTransactionObject<CometCore.AssetInfoStructOutput>;
|
|
386
|
+
|
|
387
|
+
getBorrowRate(
|
|
388
|
+
utilization: number | string | BN
|
|
389
|
+
): NonPayableTransactionObject<string>;
|
|
390
|
+
|
|
391
|
+
getPrice(priceFeed: string): NonPayableTransactionObject<string>;
|
|
392
|
+
|
|
393
|
+
getReserves(): NonPayableTransactionObject<string>;
|
|
394
|
+
|
|
395
|
+
getSupplyRate(
|
|
396
|
+
utilization: number | string | BN
|
|
397
|
+
): NonPayableTransactionObject<string>;
|
|
398
|
+
|
|
399
|
+
getUtilization(): NonPayableTransactionObject<string>;
|
|
400
|
+
|
|
401
|
+
governor(): NonPayableTransactionObject<string>;
|
|
402
|
+
|
|
403
|
+
hasPermission(
|
|
404
|
+
owner: string,
|
|
405
|
+
manager: string
|
|
406
|
+
): NonPayableTransactionObject<boolean>;
|
|
407
|
+
|
|
408
|
+
initializeStorage(): NonPayableTransactionObject<void>;
|
|
409
|
+
|
|
410
|
+
isAbsorbPaused(): NonPayableTransactionObject<boolean>;
|
|
411
|
+
|
|
412
|
+
isAllowed(arg0: string, arg1: string): NonPayableTransactionObject<boolean>;
|
|
413
|
+
|
|
414
|
+
isBorrowCollateralized(
|
|
415
|
+
account: string
|
|
416
|
+
): NonPayableTransactionObject<boolean>;
|
|
417
|
+
|
|
418
|
+
isBuyPaused(): NonPayableTransactionObject<boolean>;
|
|
419
|
+
|
|
420
|
+
isLiquidatable(account: string): NonPayableTransactionObject<boolean>;
|
|
421
|
+
|
|
422
|
+
isSupplyPaused(): NonPayableTransactionObject<boolean>;
|
|
423
|
+
|
|
424
|
+
isTransferPaused(): NonPayableTransactionObject<boolean>;
|
|
425
|
+
|
|
426
|
+
isWithdrawPaused(): NonPayableTransactionObject<boolean>;
|
|
427
|
+
|
|
428
|
+
liquidatorPoints(
|
|
429
|
+
arg0: string
|
|
430
|
+
): NonPayableTransactionObject<
|
|
431
|
+
[string, string, string, string] & {
|
|
432
|
+
numAbsorbs: string;
|
|
433
|
+
numAbsorbed: string;
|
|
434
|
+
approxSpend: string;
|
|
435
|
+
_reserved: string;
|
|
436
|
+
}
|
|
437
|
+
>;
|
|
438
|
+
|
|
439
|
+
numAssets(): NonPayableTransactionObject<string>;
|
|
440
|
+
|
|
441
|
+
pause(
|
|
442
|
+
supplyPaused: boolean,
|
|
443
|
+
transferPaused: boolean,
|
|
444
|
+
withdrawPaused: boolean,
|
|
445
|
+
absorbPaused: boolean,
|
|
446
|
+
buyPaused: boolean
|
|
447
|
+
): NonPayableTransactionObject<void>;
|
|
448
|
+
|
|
449
|
+
pauseGuardian(): NonPayableTransactionObject<string>;
|
|
450
|
+
|
|
451
|
+
quoteCollateral(
|
|
452
|
+
asset: string,
|
|
453
|
+
baseAmount: number | string | BN
|
|
454
|
+
): NonPayableTransactionObject<string>;
|
|
455
|
+
|
|
456
|
+
storeFrontPriceFactor(): NonPayableTransactionObject<string>;
|
|
457
|
+
|
|
458
|
+
supply(
|
|
459
|
+
asset: string,
|
|
460
|
+
amount: number | string | BN
|
|
461
|
+
): NonPayableTransactionObject<void>;
|
|
462
|
+
|
|
463
|
+
supplyFrom(
|
|
464
|
+
from: string,
|
|
465
|
+
dst: string,
|
|
466
|
+
asset: string,
|
|
467
|
+
amount: number | string | BN
|
|
468
|
+
): NonPayableTransactionObject<void>;
|
|
469
|
+
|
|
470
|
+
supplyKink(): NonPayableTransactionObject<string>;
|
|
471
|
+
|
|
472
|
+
supplyPerSecondInterestRateBase(): NonPayableTransactionObject<string>;
|
|
473
|
+
|
|
474
|
+
supplyPerSecondInterestRateSlopeHigh(): NonPayableTransactionObject<string>;
|
|
475
|
+
|
|
476
|
+
supplyPerSecondInterestRateSlopeLow(): NonPayableTransactionObject<string>;
|
|
477
|
+
|
|
478
|
+
supplyTo(
|
|
479
|
+
dst: string,
|
|
480
|
+
asset: string,
|
|
481
|
+
amount: number | string | BN
|
|
482
|
+
): NonPayableTransactionObject<void>;
|
|
483
|
+
|
|
484
|
+
targetReserves(): NonPayableTransactionObject<string>;
|
|
485
|
+
|
|
486
|
+
totalBorrow(): NonPayableTransactionObject<string>;
|
|
487
|
+
|
|
488
|
+
totalSupply(): NonPayableTransactionObject<string>;
|
|
489
|
+
|
|
490
|
+
totalsCollateral(
|
|
491
|
+
arg0: string
|
|
492
|
+
): NonPayableTransactionObject<
|
|
493
|
+
[string, string] & { totalSupplyAsset: string; _reserved: string }
|
|
494
|
+
>;
|
|
495
|
+
|
|
496
|
+
trackingIndexScale(): NonPayableTransactionObject<string>;
|
|
497
|
+
|
|
498
|
+
transfer(
|
|
499
|
+
dst: string,
|
|
500
|
+
amount: number | string | BN
|
|
501
|
+
): NonPayableTransactionObject<boolean>;
|
|
502
|
+
|
|
503
|
+
transferAsset(
|
|
504
|
+
dst: string,
|
|
505
|
+
asset: string,
|
|
506
|
+
amount: number | string | BN
|
|
507
|
+
): NonPayableTransactionObject<void>;
|
|
508
|
+
|
|
509
|
+
transferAssetFrom(
|
|
510
|
+
src: string,
|
|
511
|
+
dst: string,
|
|
512
|
+
asset: string,
|
|
513
|
+
amount: number | string | BN
|
|
514
|
+
): NonPayableTransactionObject<void>;
|
|
515
|
+
|
|
516
|
+
transferFrom(
|
|
517
|
+
src: string,
|
|
518
|
+
dst: string,
|
|
519
|
+
amount: number | string | BN
|
|
520
|
+
): NonPayableTransactionObject<boolean>;
|
|
521
|
+
|
|
522
|
+
userBasic(
|
|
523
|
+
arg0: string
|
|
524
|
+
): NonPayableTransactionObject<
|
|
525
|
+
[string, string, string, string, string] & {
|
|
526
|
+
principal: string;
|
|
527
|
+
baseTrackingIndex: string;
|
|
528
|
+
baseTrackingAccrued: string;
|
|
529
|
+
assetsIn: string;
|
|
530
|
+
_reserved: string;
|
|
531
|
+
}
|
|
532
|
+
>;
|
|
533
|
+
|
|
534
|
+
userCollateral(
|
|
535
|
+
arg0: string,
|
|
536
|
+
arg1: string
|
|
537
|
+
): NonPayableTransactionObject<
|
|
538
|
+
[string, string] & { balance: string; _reserved: string }
|
|
539
|
+
>;
|
|
540
|
+
|
|
541
|
+
userNonce(arg0: string): NonPayableTransactionObject<string>;
|
|
542
|
+
|
|
543
|
+
withdraw(
|
|
544
|
+
asset: string,
|
|
545
|
+
amount: number | string | BN
|
|
546
|
+
): NonPayableTransactionObject<void>;
|
|
547
|
+
|
|
548
|
+
withdrawFrom(
|
|
549
|
+
src: string,
|
|
550
|
+
to: string,
|
|
551
|
+
asset: string,
|
|
552
|
+
amount: number | string | BN
|
|
553
|
+
): NonPayableTransactionObject<void>;
|
|
554
|
+
|
|
555
|
+
withdrawReserves(
|
|
556
|
+
to: string,
|
|
557
|
+
amount: number | string | BN
|
|
558
|
+
): NonPayableTransactionObject<void>;
|
|
559
|
+
|
|
560
|
+
withdrawTo(
|
|
561
|
+
to: string,
|
|
562
|
+
asset: string,
|
|
563
|
+
amount: number | string | BN
|
|
564
|
+
): NonPayableTransactionObject<void>;
|
|
565
|
+
};
|
|
566
|
+
events: {
|
|
567
|
+
AbsorbCollateral(cb?: Callback<AbsorbCollateral>): EventEmitter;
|
|
568
|
+
AbsorbCollateral(
|
|
569
|
+
options?: EventOptions,
|
|
570
|
+
cb?: Callback<AbsorbCollateral>
|
|
571
|
+
): EventEmitter;
|
|
572
|
+
|
|
573
|
+
AbsorbDebt(cb?: Callback<AbsorbDebt>): EventEmitter;
|
|
574
|
+
AbsorbDebt(options?: EventOptions, cb?: Callback<AbsorbDebt>): EventEmitter;
|
|
575
|
+
|
|
576
|
+
BuyCollateral(cb?: Callback<BuyCollateral>): EventEmitter;
|
|
577
|
+
BuyCollateral(
|
|
578
|
+
options?: EventOptions,
|
|
579
|
+
cb?: Callback<BuyCollateral>
|
|
580
|
+
): EventEmitter;
|
|
581
|
+
|
|
582
|
+
PauseAction(cb?: Callback<PauseAction>): EventEmitter;
|
|
583
|
+
PauseAction(
|
|
584
|
+
options?: EventOptions,
|
|
585
|
+
cb?: Callback<PauseAction>
|
|
586
|
+
): EventEmitter;
|
|
587
|
+
|
|
588
|
+
Supply(cb?: Callback<Supply>): EventEmitter;
|
|
589
|
+
Supply(options?: EventOptions, cb?: Callback<Supply>): EventEmitter;
|
|
590
|
+
|
|
591
|
+
SupplyCollateral(cb?: Callback<SupplyCollateral>): EventEmitter;
|
|
592
|
+
SupplyCollateral(
|
|
593
|
+
options?: EventOptions,
|
|
594
|
+
cb?: Callback<SupplyCollateral>
|
|
595
|
+
): EventEmitter;
|
|
596
|
+
|
|
597
|
+
Transfer(cb?: Callback<Transfer>): EventEmitter;
|
|
598
|
+
Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;
|
|
599
|
+
|
|
600
|
+
TransferCollateral(cb?: Callback<TransferCollateral>): EventEmitter;
|
|
601
|
+
TransferCollateral(
|
|
602
|
+
options?: EventOptions,
|
|
603
|
+
cb?: Callback<TransferCollateral>
|
|
604
|
+
): EventEmitter;
|
|
605
|
+
|
|
606
|
+
Withdraw(cb?: Callback<Withdraw>): EventEmitter;
|
|
607
|
+
Withdraw(options?: EventOptions, cb?: Callback<Withdraw>): EventEmitter;
|
|
608
|
+
|
|
609
|
+
WithdrawCollateral(cb?: Callback<WithdrawCollateral>): EventEmitter;
|
|
610
|
+
WithdrawCollateral(
|
|
611
|
+
options?: EventOptions,
|
|
612
|
+
cb?: Callback<WithdrawCollateral>
|
|
613
|
+
): EventEmitter;
|
|
614
|
+
|
|
615
|
+
WithdrawReserves(cb?: Callback<WithdrawReserves>): EventEmitter;
|
|
616
|
+
WithdrawReserves(
|
|
617
|
+
options?: EventOptions,
|
|
618
|
+
cb?: Callback<WithdrawReserves>
|
|
619
|
+
): EventEmitter;
|
|
620
|
+
|
|
621
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
once(event: "AbsorbCollateral", cb: Callback<AbsorbCollateral>): void;
|
|
625
|
+
once(
|
|
626
|
+
event: "AbsorbCollateral",
|
|
627
|
+
options: EventOptions,
|
|
628
|
+
cb: Callback<AbsorbCollateral>
|
|
629
|
+
): void;
|
|
630
|
+
|
|
631
|
+
once(event: "AbsorbDebt", cb: Callback<AbsorbDebt>): void;
|
|
632
|
+
once(
|
|
633
|
+
event: "AbsorbDebt",
|
|
634
|
+
options: EventOptions,
|
|
635
|
+
cb: Callback<AbsorbDebt>
|
|
636
|
+
): void;
|
|
637
|
+
|
|
638
|
+
once(event: "BuyCollateral", cb: Callback<BuyCollateral>): void;
|
|
639
|
+
once(
|
|
640
|
+
event: "BuyCollateral",
|
|
641
|
+
options: EventOptions,
|
|
642
|
+
cb: Callback<BuyCollateral>
|
|
643
|
+
): void;
|
|
644
|
+
|
|
645
|
+
once(event: "PauseAction", cb: Callback<PauseAction>): void;
|
|
646
|
+
once(
|
|
647
|
+
event: "PauseAction",
|
|
648
|
+
options: EventOptions,
|
|
649
|
+
cb: Callback<PauseAction>
|
|
650
|
+
): void;
|
|
651
|
+
|
|
652
|
+
once(event: "Supply", cb: Callback<Supply>): void;
|
|
653
|
+
once(event: "Supply", options: EventOptions, cb: Callback<Supply>): void;
|
|
654
|
+
|
|
655
|
+
once(event: "SupplyCollateral", cb: Callback<SupplyCollateral>): void;
|
|
656
|
+
once(
|
|
657
|
+
event: "SupplyCollateral",
|
|
658
|
+
options: EventOptions,
|
|
659
|
+
cb: Callback<SupplyCollateral>
|
|
660
|
+
): void;
|
|
661
|
+
|
|
662
|
+
once(event: "Transfer", cb: Callback<Transfer>): void;
|
|
663
|
+
once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;
|
|
664
|
+
|
|
665
|
+
once(event: "TransferCollateral", cb: Callback<TransferCollateral>): void;
|
|
666
|
+
once(
|
|
667
|
+
event: "TransferCollateral",
|
|
668
|
+
options: EventOptions,
|
|
669
|
+
cb: Callback<TransferCollateral>
|
|
670
|
+
): void;
|
|
671
|
+
|
|
672
|
+
once(event: "Withdraw", cb: Callback<Withdraw>): void;
|
|
673
|
+
once(event: "Withdraw", options: EventOptions, cb: Callback<Withdraw>): void;
|
|
674
|
+
|
|
675
|
+
once(event: "WithdrawCollateral", cb: Callback<WithdrawCollateral>): void;
|
|
676
|
+
once(
|
|
677
|
+
event: "WithdrawCollateral",
|
|
678
|
+
options: EventOptions,
|
|
679
|
+
cb: Callback<WithdrawCollateral>
|
|
680
|
+
): void;
|
|
681
|
+
|
|
682
|
+
once(event: "WithdrawReserves", cb: Callback<WithdrawReserves>): void;
|
|
683
|
+
once(
|
|
684
|
+
event: "WithdrawReserves",
|
|
685
|
+
options: EventOptions,
|
|
686
|
+
cb: Callback<WithdrawReserves>
|
|
687
|
+
): void;
|
|
688
|
+
}
|