@1delta/margin-fetcher 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/dist/abis/aave/AToken.d.ts +526 -0
- package/dist/abis/aave/AToken.d.ts.map +1 -0
- package/dist/abis/aave/AToken.js +686 -0
- package/dist/abis/aave/AaveOracle.d.ts +40 -0
- package/dist/abis/aave/AaveOracle.d.ts.map +1 -0
- package/dist/abis/aave/AaveOracle.js +53 -0
- package/dist/abis/aave/AavePoolAndDataProvider.d.ts +1618 -0
- package/dist/abis/aave/AavePoolAndDataProvider.d.ts.map +1 -0
- package/dist/abis/aave/AavePoolAndDataProvider.js +2080 -0
- package/dist/abis/aave/AavePoolV3.d.ts +819 -0
- package/dist/abis/aave/AavePoolV3.d.ts.map +1 -0
- package/dist/abis/aave/AavePoolV3.js +1060 -0
- package/dist/abis/aave/AavePoolV3Upgraded.d.ts +1134 -0
- package/dist/abis/aave/AavePoolV3Upgraded.d.ts.map +1 -0
- package/dist/abis/aave/AavePoolV3Upgraded.js +1474 -0
- package/dist/abis/aave/AaveV3ProtocolDataProvider.d.ts +420 -0
- package/dist/abis/aave/AaveV3ProtocolDataProvider.d.ts.map +1 -0
- package/dist/abis/aave/AaveV3ProtocolDataProvider.js +553 -0
- package/dist/abis/aave/VariableDebtToken.d.ts +635 -0
- package/dist/abis/aave/VariableDebtToken.d.ts.map +1 -0
- package/dist/abis/aave/VariableDebtToken.js +820 -0
- package/dist/abis/aave-v2/ProtocolDataProvider.d.ts +238 -0
- package/dist/abis/aave-v2/ProtocolDataProvider.d.ts.map +1 -0
- package/dist/abis/aave-v2/ProtocolDataProvider.js +312 -0
- package/dist/abis/aave-v2/YLDR.d.ts +209 -0
- package/dist/abis/aave-v2/YLDR.d.ts.map +1 -0
- package/dist/abis/aave-v2/YLDR.js +199 -0
- package/dist/abis/aave-v3/AavePoolDataProviderLegacy.d.ts +406 -0
- package/dist/abis/aave-v3/AavePoolDataProviderLegacy.d.ts.map +1 -0
- package/dist/abis/aave-v3/AavePoolDataProviderLegacy.js +460 -0
- package/dist/abis/aave-v3/AavePoolLegacy.d.ts +819 -0
- package/dist/abis/aave-v3/AavePoolLegacy.d.ts.map +1 -0
- package/dist/abis/aave-v3/AavePoolLegacy.js +1060 -0
- package/dist/abis/aurelius/Rewarder.d.ts +90 -0
- package/dist/abis/aurelius/Rewarder.d.ts.map +1 -0
- package/dist/abis/aurelius/Rewarder.js +118 -0
- package/dist/abis/compound-v2/CompoundLens.d.ts +656 -0
- package/dist/abis/compound-v2/CompoundLens.d.ts.map +1 -0
- package/dist/abis/compound-v2/CompoundLens.js +851 -0
- package/dist/abis/compound-v2/Comptroller.d.ts +1615 -0
- package/dist/abis/compound-v2/Comptroller.d.ts.map +1 -0
- package/dist/abis/compound-v2/Comptroller.js +2104 -0
- package/dist/abis/compound-v3/Comet.d.ts +1402 -0
- package/dist/abis/compound-v3/Comet.d.ts.map +1 -0
- package/dist/abis/compound-v3/Comet.js +1829 -0
- package/dist/abis/compound-v3/CometExt.d.ts +411 -0
- package/dist/abis/compound-v3/CometExt.d.ts.map +1 -0
- package/dist/abis/compound-v3/CometExt.js +536 -0
- package/dist/abis/compound-v3/CometLens.d.ts +152 -0
- package/dist/abis/compound-v3/CometLens.d.ts.map +1 -0
- package/dist/abis/compound-v3/CometLens.js +194 -0
- package/dist/abis/compound-v3/CometRewards.d.ts +253 -0
- package/dist/abis/compound-v3/CometRewards.d.ts.map +1 -0
- package/dist/abis/compound-v3/CometRewards.js +330 -0
- package/dist/abis/compound-v3/IrGetter.d.ts +24 -0
- package/dist/abis/compound-v3/IrGetter.d.ts.map +1 -0
- package/dist/abis/compound-v3/IrGetter.js +31 -0
- package/dist/abis/flashloan-united/flashAbi.d.ts +54 -0
- package/dist/abis/flashloan-united/flashAbi.d.ts.map +1 -0
- package/dist/abis/flashloan-united/flashAbi.js +72 -0
- package/dist/abis/init/Core.d.ts +523 -0
- package/dist/abis/init/Core.d.ts.map +1 -0
- package/dist/abis/init/Core.js +681 -0
- package/dist/abis/init/InitFlashAggregator.d.ts +624 -0
- package/dist/abis/init/InitFlashAggregator.d.ts.map +1 -0
- package/dist/abis/init/InitFlashAggregator.js +795 -0
- package/dist/abis/init/InitLens.d.ts +158 -0
- package/dist/abis/init/InitLens.d.ts.map +1 -0
- package/dist/abis/init/InitLens.js +203 -0
- package/dist/abis/init/PosManager.d.ts +802 -0
- package/dist/abis/init/PosManager.d.ts.map +1 -0
- package/dist/abis/init/PosManager.js +1055 -0
- package/dist/abis/lendle/IncentivesController.d.ts +404 -0
- package/dist/abis/lendle/IncentivesController.d.ts.map +1 -0
- package/dist/abis/lendle/IncentivesController.js +525 -0
- package/dist/abis/lendle/MultiFeeDistribution.d.ts +624 -0
- package/dist/abis/lendle/MultiFeeDistribution.d.ts.map +1 -0
- package/dist/abis/lendle/MultiFeeDistribution.js +820 -0
- package/dist/abis/meridian/PullRewardsIncentivesController.d.ts +74 -0
- package/dist/abis/meridian/PullRewardsIncentivesController.d.ts.map +1 -0
- package/dist/abis/meridian/PullRewardsIncentivesController.js +98 -0
- package/dist/abis/multicall/Multicall.d.ts +80 -0
- package/dist/abis/multicall/Multicall.d.ts.map +1 -0
- package/dist/abis/multicall/Multicall.js +101 -0
- package/dist/abis/oracle/AaveOracle.d.ts +40 -0
- package/dist/abis/oracle/AaveOracle.d.ts.map +1 -0
- package/dist/abis/oracle/AaveOracle.js +53 -0
- package/dist/abis/oracle/Api3Oracle.d.ts +48 -0
- package/dist/abis/oracle/Api3Oracle.d.ts.map +1 -0
- package/dist/abis/oracle/Api3Oracle.js +62 -0
- package/dist/abis/oracle/ChainLinkAggregator.d.ts +372 -0
- package/dist/abis/oracle/ChainLinkAggregator.d.ts.map +1 -0
- package/dist/abis/oracle/ChainLinkAggregator.js +480 -0
- package/dist/abis/oracle/RWADynamicOracle.d.ts +12 -0
- package/dist/abis/oracle/RWADynamicOracle.d.ts.map +1 -0
- package/dist/abis/oracle/RWADynamicOracle.js +15 -0
- package/dist/abis/oracle/UniswapV2Pair.d.ts +513 -0
- package/dist/abis/oracle/UniswapV2Pair.d.ts.map +1 -0
- package/dist/abis/oracle/UniswapV2Pair.js +659 -0
- package/dist/abis/uniswap/FeeOnTransferDetector.d.ts +102 -0
- package/dist/abis/uniswap/FeeOnTransferDetector.d.ts.map +1 -0
- package/dist/abis/uniswap/FeeOnTransferDetector.js +133 -0
- package/dist/abis/uniswap/UniswapV2Pair.d.ts +513 -0
- package/dist/abis/uniswap/UniswapV2Pair.d.ts.map +1 -0
- package/dist/abis/uniswap/UniswapV2Pair.js +659 -0
- package/dist/assets/index.d.ts +20 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/assets/index.js +54 -0
- package/dist/flash-liquidity/assets.d.ts +21 -0
- package/dist/flash-liquidity/assets.d.ts.map +1 -0
- package/dist/flash-liquidity/assets.js +45 -0
- package/dist/flash-liquidity/fetchLiquidity.d.ts +4 -0
- package/dist/flash-liquidity/fetchLiquidity.d.ts.map +1 -0
- package/dist/flash-liquidity/fetchLiquidity.js +235 -0
- package/dist/flash-liquidity/index.d.ts +2 -0
- package/dist/flash-liquidity/index.d.ts.map +1 -0
- package/dist/flash-liquidity/index.js +1 -0
- package/dist/flash-liquidity/types.d.ts +23 -0
- package/dist/flash-liquidity/types.d.ts.map +1 -0
- package/dist/flash-liquidity/types.js +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/lending/aave-v2-type/misc.d.ts +14 -0
- package/dist/lending/aave-v2-type/misc.d.ts.map +1 -0
- package/dist/lending/aave-v2-type/misc.js +8 -0
- package/dist/lending/aave-v2-type/publicCallBuild.d.ts +7 -0
- package/dist/lending/aave-v2-type/publicCallBuild.d.ts.map +1 -0
- package/dist/lending/aave-v2-type/publicCallBuild.js +102 -0
- package/dist/lending/aave-v2-type/publicCallParse.d.ts +7 -0
- package/dist/lending/aave-v2-type/publicCallParse.d.ts.map +1 -0
- package/dist/lending/aave-v2-type/publicCallParse.js +254 -0
- package/dist/lending/aave-v2-type/types.d.ts +78 -0
- package/dist/lending/aave-v2-type/types.d.ts.map +1 -0
- package/dist/lending/aave-v2-type/types.js +46 -0
- package/dist/lending/aave-v3-type/publicCallBuild.d.ts +4 -0
- package/dist/lending/aave-v3-type/publicCallBuild.d.ts.map +1 -0
- package/dist/lending/aave-v3-type/publicCallBuild.js +123 -0
- package/dist/lending/aave-v3-type/publicCallParse.d.ts +8 -0
- package/dist/lending/aave-v3-type/publicCallParse.d.ts.map +1 -0
- package/dist/lending/aave-v3-type/publicCallParse.js +304 -0
- package/dist/lending/aave-v3-type/types.d.ts +149 -0
- package/dist/lending/aave-v3-type/types.d.ts.map +1 -0
- package/dist/lending/aave-v3-type/types.js +90 -0
- package/dist/lending/addresses/aave.d.ts +10 -0
- package/dist/lending/addresses/aave.d.ts.map +1 -0
- package/dist/lending/addresses/aave.js +10 -0
- package/dist/lending/addresses/aaveV2.d.ts +6 -0
- package/dist/lending/addresses/aaveV2.d.ts.map +1 -0
- package/dist/lending/addresses/aaveV2.js +6 -0
- package/dist/lending/addresses/aurelius.d.ts +12 -0
- package/dist/lending/addresses/aurelius.d.ts.map +1 -0
- package/dist/lending/addresses/aurelius.js +12 -0
- package/dist/lending/addresses/compoundV3.d.ts +10 -0
- package/dist/lending/addresses/compoundV3.d.ts.map +1 -0
- package/dist/lending/addresses/compoundV3.js +35 -0
- package/dist/lending/addresses/contracts.d.ts +5 -0
- package/dist/lending/addresses/contracts.d.ts.map +1 -0
- package/dist/lending/addresses/contracts.js +49 -0
- package/dist/lending/addresses/hana.d.ts +6 -0
- package/dist/lending/addresses/hana.d.ts.map +1 -0
- package/dist/lending/addresses/hana.js +6 -0
- package/dist/lending/addresses/index.d.ts +2 -0
- package/dist/lending/addresses/index.d.ts.map +1 -0
- package/dist/lending/addresses/index.js +1 -0
- package/dist/lending/addresses/init.d.ts +4 -0
- package/dist/lending/addresses/init.d.ts.map +1 -0
- package/dist/lending/addresses/init.js +33 -0
- package/dist/lending/addresses/lendle.d.ts +12 -0
- package/dist/lending/addresses/lendle.d.ts.map +1 -0
- package/dist/lending/addresses/lendle.js +12 -0
- package/dist/lending/addresses/meridian.d.ts +12 -0
- package/dist/lending/addresses/meridian.d.ts.map +1 -0
- package/dist/lending/addresses/meridian.js +12 -0
- package/dist/lending/addresses/takotako.d.ts +12 -0
- package/dist/lending/addresses/takotako.d.ts.map +1 -0
- package/dist/lending/addresses/takotako.js +12 -0
- package/dist/lending/compound-v3/publicCallBuild.d.ts +3 -0
- package/dist/lending/compound-v3/publicCallBuild.d.ts.map +1 -0
- package/dist/lending/compound-v3/publicCallBuild.js +63 -0
- package/dist/lending/compound-v3/publicCallParse.d.ts +7 -0
- package/dist/lending/compound-v3/publicCallParse.d.ts.map +1 -0
- package/dist/lending/compound-v3/publicCallParse.js +119 -0
- package/dist/lending/compound-v3/types.d.ts +30 -0
- package/dist/lending/compound-v3/types.d.ts.map +1 -0
- package/dist/lending/compound-v3/types.js +6 -0
- package/dist/lending/fetchLender.d.ts +8 -0
- package/dist/lending/fetchLender.d.ts.map +1 -0
- package/dist/lending/fetchLender.js +104 -0
- package/dist/lending/index.d.ts +3 -0
- package/dist/lending/index.d.ts.map +1 -0
- package/dist/lending/index.js +2 -0
- package/dist/lending/init/publicCallBuild.d.ts +7 -0
- package/dist/lending/init/publicCallBuild.d.ts.map +1 -0
- package/dist/lending/init/publicCallBuild.js +21 -0
- package/dist/lending/init/publicCallParse.d.ts +10 -0
- package/dist/lending/init/publicCallParse.d.ts.map +1 -0
- package/dist/lending/init/publicCallParse.js +75 -0
- package/dist/lending/init/types.d.ts +38 -0
- package/dist/lending/init/types.d.ts.map +1 -0
- package/dist/lending/init/types.js +6 -0
- package/dist/lending/user-data/aave-v2-type/userCallBuild.d.ts +4 -0
- package/dist/lending/user-data/aave-v2-type/userCallBuild.d.ts.map +1 -0
- package/dist/lending/user-data/aave-v2-type/userCallBuild.js +106 -0
- package/dist/lending/user-data/aave-v2-type/userCallParse.d.ts +8 -0
- package/dist/lending/user-data/aave-v2-type/userCallParse.d.ts.map +1 -0
- package/dist/lending/user-data/aave-v2-type/userCallParse.js +225 -0
- package/dist/lending/user-data/aave-v3-type/userCallBuild.d.ts +4 -0
- package/dist/lending/user-data/aave-v3-type/userCallBuild.d.ts.map +1 -0
- package/dist/lending/user-data/aave-v3-type/userCallBuild.js +41 -0
- package/dist/lending/user-data/aave-v3-type/userCallParse.d.ts +8 -0
- package/dist/lending/user-data/aave-v3-type/userCallParse.d.ts.map +1 -0
- package/dist/lending/user-data/aave-v3-type/userCallParse.js +76 -0
- package/dist/lending/user-data/abis.d.ts +8422 -0
- package/dist/lending/user-data/abis.d.ts.map +1 -0
- package/dist/lending/user-data/abis.js +46 -0
- package/dist/lending/user-data/compound-v3/addresses.d.ts +10 -0
- package/dist/lending/user-data/compound-v3/addresses.d.ts.map +1 -0
- package/dist/lending/user-data/compound-v3/addresses.js +32 -0
- package/dist/lending/user-data/compound-v3/index.d.ts +4 -0
- package/dist/lending/user-data/compound-v3/index.d.ts.map +1 -0
- package/dist/lending/user-data/compound-v3/index.js +3 -0
- package/dist/lending/user-data/compound-v3/userCallBuild.d.ts +4 -0
- package/dist/lending/user-data/compound-v3/userCallBuild.d.ts.map +1 -0
- package/dist/lending/user-data/compound-v3/userCallBuild.js +44 -0
- package/dist/lending/user-data/compound-v3/userCallParse.d.ts +8 -0
- package/dist/lending/user-data/compound-v3/userCallParse.d.ts.map +1 -0
- package/dist/lending/user-data/compound-v3/userCallParse.js +98 -0
- package/dist/lending/user-data/fetchUserData.d.ts +24 -0
- package/dist/lending/user-data/fetchUserData.d.ts.map +1 -0
- package/dist/lending/user-data/fetchUserData.js +76 -0
- package/dist/lending/user-data/index.d.ts +3 -0
- package/dist/lending/user-data/index.d.ts.map +1 -0
- package/dist/lending/user-data/index.js +2 -0
- package/dist/lending/user-data/init/userCallBuild.d.ts +8 -0
- package/dist/lending/user-data/init/userCallBuild.d.ts.map +1 -0
- package/dist/lending/user-data/init/userCallBuild.js +20 -0
- package/dist/lending/user-data/init/userCallParse.d.ts +8 -0
- package/dist/lending/user-data/init/userCallParse.d.ts.map +1 -0
- package/dist/lending/user-data/init/userCallParse.js +87 -0
- package/dist/lending/user-data/types.d.ts +218 -0
- package/dist/lending/user-data/types.d.ts.map +1 -0
- package/dist/lending/user-data/types.js +26 -0
- package/dist/lending/user-data/utils/createGeneralUserState.d.ts +45 -0
- package/dist/lending/user-data/utils/createGeneralUserState.d.ts.map +1 -0
- package/dist/lending/user-data/utils/createGeneralUserState.js +98 -0
- package/dist/lending/user-data/utils/createMultiAccountStyleUserState.d.ts +16 -0
- package/dist/lending/user-data/utils/createMultiAccountStyleUserState.d.ts.map +1 -0
- package/dist/lending/user-data/utils/createMultiAccountStyleUserState.js +96 -0
- package/dist/lending/user-data/utils/formatting/generalFormatters.d.ts +55 -0
- package/dist/lending/user-data/utils/formatting/generalFormatters.d.ts.map +1 -0
- package/dist/lending/user-data/utils/formatting/generalFormatters.js +109 -0
- package/dist/lending/user-data/utils/formatting/index.d.ts +2 -0
- package/dist/lending/user-data/utils/formatting/index.d.ts.map +1 -0
- package/dist/lending/user-data/utils/formatting/index.js +1 -0
- package/dist/lending/user-data/utils/index.d.ts +8 -0
- package/dist/lending/user-data/utils/index.d.ts.map +1 -0
- package/dist/lending/user-data/utils/index.js +17 -0
- package/dist/lending-pairs/computeLendingPairs.d.ts +30 -0
- package/dist/lending-pairs/computeLendingPairs.d.ts.map +1 -0
- package/dist/lending-pairs/computeLendingPairs.js +153 -0
- package/dist/lending-pairs/index.d.ts +2 -0
- package/dist/lending-pairs/index.d.ts.map +1 -0
- package/dist/lending-pairs/index.js +1 -0
- package/dist/prices/defillama/index.d.ts +3 -0
- package/dist/prices/defillama/index.d.ts.map +1 -0
- package/dist/prices/defillama/index.js +269 -0
- package/dist/prices/index.d.ts +3 -0
- package/dist/prices/index.d.ts.map +1 -0
- package/dist/prices/index.js +2 -0
- package/dist/prices/main-prices/addresses/aaveOracles.d.ts +279 -0
- package/dist/prices/main-prices/addresses/aaveOracles.d.ts.map +1 -0
- package/dist/prices/main-prices/addresses/aaveOracles.js +278 -0
- package/dist/prices/main-prices/addresses/api3.d.ts +6 -0
- package/dist/prices/main-prices/addresses/api3.d.ts.map +1 -0
- package/dist/prices/main-prices/addresses/api3.js +9 -0
- package/dist/prices/main-prices/addresses/chainlink.d.ts +740 -0
- package/dist/prices/main-prices/addresses/chainlink.d.ts.map +1 -0
- package/dist/prices/main-prices/addresses/chainlink.js +744 -0
- package/dist/prices/main-prices/fetchOracleData.d.ts +12 -0
- package/dist/prices/main-prices/fetchOracleData.d.ts.map +1 -0
- package/dist/prices/main-prices/fetchOracleData.js +308 -0
- package/dist/prices/main-prices/index.d.ts +2 -0
- package/dist/prices/main-prices/index.d.ts.map +1 -0
- package/dist/prices/main-prices/index.js +1 -0
- package/dist/types/apiReturnType.d.ts +74 -0
- package/dist/types/apiReturnType.d.ts.map +1 -0
- package/dist/types/apiReturnType.js +1 -0
- package/dist/types/index.d.ts +42 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +10 -0
- package/dist/types/providers.d.ts +12 -0
- package/dist/types/providers.d.ts.map +1 -0
- package/dist/types/providers.js +1 -0
- package/dist/utils/constants.d.ts +30 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +97 -0
- package/dist/utils/index.d.ts +19 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +71 -0
- package/dist/utils/multicall.d.ts +5 -0
- package/dist/utils/multicall.d.ts.map +1 -0
- package/dist/utils/multicall.js +30 -0
- package/dist/utils/parsing.d.ts +14 -0
- package/dist/utils/parsing.d.ts.map +1 -0
- package/dist/utils/parsing.js +61 -0
- package/dist/yields/index.d.ts +21 -0
- package/dist/yields/index.d.ts.map +1 -0
- package/dist/yields/index.js +157 -0
- package/package.json +26 -0
- package/src/abis/aave/AToken.ts +686 -0
- package/src/abis/aave/AaveOracle.ts +53 -0
- package/src/abis/aave/AavePoolAndDataProvider.ts +2080 -0
- package/src/abis/aave/AavePoolV3.ts +1060 -0
- package/src/abis/aave/AavePoolV3Upgraded.ts +1474 -0
- package/src/abis/aave/AaveV3ProtocolDataProvider.ts +553 -0
- package/src/abis/aave/VariableDebtToken.ts +820 -0
- package/src/abis/aave-v2/ProtocolDataProvider.ts +312 -0
- package/src/abis/aave-v2/YLDR.ts +199 -0
- package/src/abis/aave-v3/AavePoolDataProviderLegacy.ts +459 -0
- package/src/abis/aave-v3/AavePoolLegacy.ts +1060 -0
- package/src/abis/aurelius/Rewarder.ts +118 -0
- package/src/abis/compound-v2/CompoundLens.ts +851 -0
- package/src/abis/compound-v2/Comptroller.ts +2104 -0
- package/src/abis/compound-v3/Comet.ts +1829 -0
- package/src/abis/compound-v3/CometExt.ts +536 -0
- package/src/abis/compound-v3/CometLens.ts +194 -0
- package/src/abis/compound-v3/CometRewards.ts +330 -0
- package/src/abis/compound-v3/IrGetter.ts +31 -0
- package/src/abis/flashloan-united/flashAbi.ts +72 -0
- package/src/abis/init/Core.ts +681 -0
- package/src/abis/init/InitFlashAggregator.ts +795 -0
- package/src/abis/init/InitLens.ts +203 -0
- package/src/abis/init/PosManager.ts +1055 -0
- package/src/abis/lendle/IncentivesController.ts +525 -0
- package/src/abis/lendle/MultiFeeDistribution.ts +820 -0
- package/src/abis/meridian/PullRewardsIncentivesController.ts +98 -0
- package/src/abis/multicall/Multicall.ts +101 -0
- package/src/abis/oracle/AaveOracle.ts +53 -0
- package/src/abis/oracle/Api3Oracle.ts +62 -0
- package/src/abis/oracle/ChainLinkAggregator.ts +480 -0
- package/src/abis/oracle/RWADynamicOracle.ts +15 -0
- package/src/abis/oracle/UniswapV2Pair.ts +659 -0
- package/src/abis/uniswap/FeeOnTransferDetector.ts +133 -0
- package/src/abis/uniswap/UniswapV2Pair.ts +659 -0
- package/src/assets/index.ts +82 -0
- package/src/flash-liquidity/assets.ts +61 -0
- package/src/flash-liquidity/fetchLiquidity.ts +300 -0
- package/src/flash-liquidity/index.ts +1 -0
- package/src/flash-liquidity/types.ts +20 -0
- package/src/index.ts +7 -0
- package/src/lending/aave-v2-type/misc.ts +9 -0
- package/src/lending/aave-v2-type/publicCallBuild.ts +105 -0
- package/src/lending/aave-v2-type/publicCallParse.ts +300 -0
- package/src/lending/aave-v2-type/types.ts +98 -0
- package/src/lending/aave-v3-type/publicCallBuild.ts +148 -0
- package/src/lending/aave-v3-type/publicCallParse.ts +373 -0
- package/src/lending/aave-v3-type/types.ts +181 -0
- package/src/lending/addresses/aave.ts +12 -0
- package/src/lending/addresses/aaveV2.ts +8 -0
- package/src/lending/addresses/aurelius.ts +13 -0
- package/src/lending/addresses/compoundV3.ts +42 -0
- package/src/lending/addresses/contracts.ts +54 -0
- package/src/lending/addresses/hana.ts +7 -0
- package/src/lending/addresses/index.ts +1 -0
- package/src/lending/addresses/init.ts +37 -0
- package/src/lending/addresses/lendle.ts +13 -0
- package/src/lending/addresses/meridian.ts +13 -0
- package/src/lending/addresses/takotako.ts +14 -0
- package/src/lending/compound-v3/publicCallBuild.ts +74 -0
- package/src/lending/compound-v3/publicCallParse.ts +143 -0
- package/src/lending/compound-v3/types.ts +43 -0
- package/src/lending/fetchLender.ts +138 -0
- package/src/lending/index.ts +2 -0
- package/src/lending/init/publicCallBuild.ts +29 -0
- package/src/lending/init/publicCallParse.ts +90 -0
- package/src/lending/init/types.ts +50 -0
- package/src/lending/user-data/aave-v2-type/userCallBuild.ts +142 -0
- package/src/lending/user-data/aave-v2-type/userCallParse.ts +328 -0
- package/src/lending/user-data/aave-v3-type/userCallBuild.ts +58 -0
- package/src/lending/user-data/aave-v3-type/userCallParse.ts +115 -0
- package/src/lending/user-data/abis.ts +45 -0
- package/src/lending/user-data/compound-v3/addresses.ts +40 -0
- package/src/lending/user-data/compound-v3/index.ts +3 -0
- package/src/lending/user-data/compound-v3/userCallBuild.ts +53 -0
- package/src/lending/user-data/compound-v3/userCallParse.ts +123 -0
- package/src/lending/user-data/fetchUserData.ts +121 -0
- package/src/lending/user-data/index.ts +2 -0
- package/src/lending/user-data/init/userCallBuild.ts +26 -0
- package/src/lending/user-data/init/userCallParse.ts +115 -0
- package/src/lending/user-data/types.ts +280 -0
- package/src/lending/user-data/utils/createGeneralUserState.ts +118 -0
- package/src/lending/user-data/utils/createMultiAccountStyleUserState.ts +113 -0
- package/src/lending/user-data/utils/formatting/generalFormatters.ts +121 -0
- package/src/lending/user-data/utils/formatting/index.ts +1 -0
- package/src/lending/user-data/utils/index.ts +19 -0
- package/src/lending-pairs/computeLendingPairs.ts +213 -0
- package/src/lending-pairs/index.ts +1 -0
- package/src/prices/defillama/index.ts +306 -0
- package/src/prices/index.ts +2 -0
- package/src/prices/main-prices/addresses/aaveOracles.ts +279 -0
- package/src/prices/main-prices/addresses/api3.ts +10 -0
- package/src/prices/main-prices/addresses/chainlink.ts +750 -0
- package/src/prices/main-prices/fetchOracleData.ts +406 -0
- package/src/prices/main-prices/index.ts +1 -0
- package/src/types/apiReturnType.ts +80 -0
- package/src/types/index.ts +38 -0
- package/src/types/providers.ts +26 -0
- package/src/utils/constants.ts +100 -0
- package/src/utils/index.ts +87 -0
- package/src/utils/multicall.ts +53 -0
- package/src/utils/parsing.ts +75 -0
- package/src/yields/index.ts +198 -0
- package/test/index.test.ts +104 -0
- package/test/lenderData.test.ts +13718 -0
- package/test/mainPrices.test.ts +35 -0
- package/test/userdata.test.ts +200 -0
- package/tsconfig.json +28 -0
|
@@ -0,0 +1,819 @@
|
|
|
1
|
+
export declare const AavePoolV3Abi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "BRIDGE_PROTOCOL_FEE";
|
|
4
|
+
readonly outputs: readonly [{
|
|
5
|
+
readonly internalType: "uint256";
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "uint256";
|
|
8
|
+
}];
|
|
9
|
+
readonly stateMutability: "view";
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
}, {
|
|
12
|
+
readonly inputs: readonly [];
|
|
13
|
+
readonly name: "FLASHLOAN_PREMIUM_TOTAL";
|
|
14
|
+
readonly outputs: readonly [{
|
|
15
|
+
readonly internalType: "uint128";
|
|
16
|
+
readonly name: "";
|
|
17
|
+
readonly type: "uint128";
|
|
18
|
+
}];
|
|
19
|
+
readonly stateMutability: "view";
|
|
20
|
+
readonly type: "function";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [];
|
|
23
|
+
readonly name: "FLASHLOAN_PREMIUM_TO_PROTOCOL";
|
|
24
|
+
readonly outputs: readonly [{
|
|
25
|
+
readonly internalType: "uint128";
|
|
26
|
+
readonly name: "";
|
|
27
|
+
readonly type: "uint128";
|
|
28
|
+
}];
|
|
29
|
+
readonly stateMutability: "view";
|
|
30
|
+
readonly type: "function";
|
|
31
|
+
}, {
|
|
32
|
+
readonly inputs: readonly [];
|
|
33
|
+
readonly name: "MAX_NUMBER_RESERVES";
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly internalType: "uint16";
|
|
36
|
+
readonly name: "";
|
|
37
|
+
readonly type: "uint16";
|
|
38
|
+
}];
|
|
39
|
+
readonly stateMutability: "view";
|
|
40
|
+
readonly type: "function";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "MAX_STABLE_RATE_BORROW_SIZE_PERCENT";
|
|
44
|
+
readonly outputs: readonly [{
|
|
45
|
+
readonly internalType: "uint256";
|
|
46
|
+
readonly name: "";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}];
|
|
49
|
+
readonly stateMutability: "view";
|
|
50
|
+
readonly type: "function";
|
|
51
|
+
}, {
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly name: "asset";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly internalType: "uint256";
|
|
58
|
+
readonly name: "amount";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "fee";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
readonly name: "backUnbacked";
|
|
66
|
+
readonly outputs: readonly [];
|
|
67
|
+
readonly stateMutability: "nonpayable";
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
}, {
|
|
70
|
+
readonly inputs: readonly [{
|
|
71
|
+
readonly internalType: "address";
|
|
72
|
+
readonly name: "asset";
|
|
73
|
+
readonly type: "address";
|
|
74
|
+
}, {
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
readonly name: "amount";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}, {
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
readonly name: "interestRateMode";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}, {
|
|
83
|
+
readonly internalType: "uint16";
|
|
84
|
+
readonly name: "referralCode";
|
|
85
|
+
readonly type: "uint16";
|
|
86
|
+
}, {
|
|
87
|
+
readonly internalType: "address";
|
|
88
|
+
readonly name: "onBehalfOf";
|
|
89
|
+
readonly type: "address";
|
|
90
|
+
}];
|
|
91
|
+
readonly name: "borrow";
|
|
92
|
+
readonly outputs: readonly [];
|
|
93
|
+
readonly stateMutability: "nonpayable";
|
|
94
|
+
readonly type: "function";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [{
|
|
97
|
+
readonly internalType: "uint8";
|
|
98
|
+
readonly name: "id";
|
|
99
|
+
readonly type: "uint8";
|
|
100
|
+
}, {
|
|
101
|
+
readonly components: readonly [{
|
|
102
|
+
readonly internalType: "uint16";
|
|
103
|
+
readonly name: "ltv";
|
|
104
|
+
readonly type: "uint16";
|
|
105
|
+
}, {
|
|
106
|
+
readonly internalType: "uint16";
|
|
107
|
+
readonly name: "liquidationThreshold";
|
|
108
|
+
readonly type: "uint16";
|
|
109
|
+
}, {
|
|
110
|
+
readonly internalType: "uint16";
|
|
111
|
+
readonly name: "liquidationBonus";
|
|
112
|
+
readonly type: "uint16";
|
|
113
|
+
}, {
|
|
114
|
+
readonly internalType: "address";
|
|
115
|
+
readonly name: "priceSource";
|
|
116
|
+
readonly type: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly internalType: "string";
|
|
119
|
+
readonly name: "label";
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
}];
|
|
122
|
+
readonly internalType: "struct DataTypes.EModeCategory";
|
|
123
|
+
readonly name: "config";
|
|
124
|
+
readonly type: "tuple";
|
|
125
|
+
}];
|
|
126
|
+
readonly name: "configureEModeCategory";
|
|
127
|
+
readonly outputs: readonly [];
|
|
128
|
+
readonly stateMutability: "nonpayable";
|
|
129
|
+
readonly type: "function";
|
|
130
|
+
}, {
|
|
131
|
+
readonly type: "function";
|
|
132
|
+
readonly stateMutability: "nonpayable";
|
|
133
|
+
readonly outputs: readonly [];
|
|
134
|
+
readonly name: "deposit";
|
|
135
|
+
readonly inputs: readonly [{
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
readonly name: "asset";
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
}, {
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
readonly name: "amount";
|
|
142
|
+
readonly internalType: "uint256";
|
|
143
|
+
}, {
|
|
144
|
+
readonly type: "address";
|
|
145
|
+
readonly name: "onBehalfOf";
|
|
146
|
+
readonly internalType: "address";
|
|
147
|
+
}, {
|
|
148
|
+
readonly type: "uint16";
|
|
149
|
+
readonly name: "referralCode";
|
|
150
|
+
readonly internalType: "uint16";
|
|
151
|
+
}];
|
|
152
|
+
}, {
|
|
153
|
+
readonly inputs: readonly [{
|
|
154
|
+
readonly internalType: "address";
|
|
155
|
+
readonly name: "asset";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
}];
|
|
158
|
+
readonly name: "dropReserve";
|
|
159
|
+
readonly outputs: readonly [];
|
|
160
|
+
readonly stateMutability: "nonpayable";
|
|
161
|
+
readonly type: "function";
|
|
162
|
+
}, {
|
|
163
|
+
readonly inputs: readonly [{
|
|
164
|
+
readonly internalType: "address";
|
|
165
|
+
readonly name: "asset";
|
|
166
|
+
readonly type: "address";
|
|
167
|
+
}, {
|
|
168
|
+
readonly internalType: "address";
|
|
169
|
+
readonly name: "from";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
}, {
|
|
172
|
+
readonly internalType: "address";
|
|
173
|
+
readonly name: "to";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
}, {
|
|
176
|
+
readonly internalType: "uint256";
|
|
177
|
+
readonly name: "amount";
|
|
178
|
+
readonly type: "uint256";
|
|
179
|
+
}, {
|
|
180
|
+
readonly internalType: "uint256";
|
|
181
|
+
readonly name: "balanceFromBefore";
|
|
182
|
+
readonly type: "uint256";
|
|
183
|
+
}, {
|
|
184
|
+
readonly internalType: "uint256";
|
|
185
|
+
readonly name: "balanceToBefore";
|
|
186
|
+
readonly type: "uint256";
|
|
187
|
+
}];
|
|
188
|
+
readonly name: "finalizeTransfer";
|
|
189
|
+
readonly outputs: readonly [];
|
|
190
|
+
readonly stateMutability: "nonpayable";
|
|
191
|
+
readonly type: "function";
|
|
192
|
+
}, {
|
|
193
|
+
readonly inputs: readonly [{
|
|
194
|
+
readonly internalType: "address";
|
|
195
|
+
readonly name: "receiverAddress";
|
|
196
|
+
readonly type: "address";
|
|
197
|
+
}, {
|
|
198
|
+
readonly internalType: "address[]";
|
|
199
|
+
readonly name: "assets";
|
|
200
|
+
readonly type: "address[]";
|
|
201
|
+
}, {
|
|
202
|
+
readonly internalType: "uint256[]";
|
|
203
|
+
readonly name: "amounts";
|
|
204
|
+
readonly type: "uint256[]";
|
|
205
|
+
}, {
|
|
206
|
+
readonly internalType: "uint256[]";
|
|
207
|
+
readonly name: "interestRateModes";
|
|
208
|
+
readonly type: "uint256[]";
|
|
209
|
+
}, {
|
|
210
|
+
readonly internalType: "address";
|
|
211
|
+
readonly name: "onBehalfOf";
|
|
212
|
+
readonly type: "address";
|
|
213
|
+
}, {
|
|
214
|
+
readonly internalType: "bytes";
|
|
215
|
+
readonly name: "params";
|
|
216
|
+
readonly type: "bytes";
|
|
217
|
+
}, {
|
|
218
|
+
readonly internalType: "uint16";
|
|
219
|
+
readonly name: "referralCode";
|
|
220
|
+
readonly type: "uint16";
|
|
221
|
+
}];
|
|
222
|
+
readonly name: "flashLoan";
|
|
223
|
+
readonly outputs: readonly [];
|
|
224
|
+
readonly stateMutability: "nonpayable";
|
|
225
|
+
readonly type: "function";
|
|
226
|
+
}, {
|
|
227
|
+
readonly inputs: readonly [{
|
|
228
|
+
readonly internalType: "address";
|
|
229
|
+
readonly name: "receiverAddress";
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
}, {
|
|
232
|
+
readonly internalType: "address";
|
|
233
|
+
readonly name: "asset";
|
|
234
|
+
readonly type: "address";
|
|
235
|
+
}, {
|
|
236
|
+
readonly internalType: "uint256";
|
|
237
|
+
readonly name: "amount";
|
|
238
|
+
readonly type: "uint256";
|
|
239
|
+
}, {
|
|
240
|
+
readonly internalType: "bytes";
|
|
241
|
+
readonly name: "params";
|
|
242
|
+
readonly type: "bytes";
|
|
243
|
+
}, {
|
|
244
|
+
readonly internalType: "uint16";
|
|
245
|
+
readonly name: "referralCode";
|
|
246
|
+
readonly type: "uint16";
|
|
247
|
+
}];
|
|
248
|
+
readonly name: "flashLoanSimple";
|
|
249
|
+
readonly outputs: readonly [];
|
|
250
|
+
readonly stateMutability: "nonpayable";
|
|
251
|
+
readonly type: "function";
|
|
252
|
+
}, {
|
|
253
|
+
readonly inputs: readonly [{
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
readonly name: "asset";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
}];
|
|
258
|
+
readonly name: "getConfiguration";
|
|
259
|
+
readonly outputs: readonly [{
|
|
260
|
+
readonly components: readonly [{
|
|
261
|
+
readonly internalType: "uint256";
|
|
262
|
+
readonly name: "data";
|
|
263
|
+
readonly type: "uint256";
|
|
264
|
+
}];
|
|
265
|
+
readonly internalType: "struct DataTypes.ReserveConfigurationMap";
|
|
266
|
+
readonly name: "";
|
|
267
|
+
readonly type: "tuple";
|
|
268
|
+
}];
|
|
269
|
+
readonly stateMutability: "view";
|
|
270
|
+
readonly type: "function";
|
|
271
|
+
}, {
|
|
272
|
+
readonly inputs: readonly [{
|
|
273
|
+
readonly internalType: "uint8";
|
|
274
|
+
readonly name: "id";
|
|
275
|
+
readonly type: "uint8";
|
|
276
|
+
}];
|
|
277
|
+
readonly name: "getEModeCategoryData";
|
|
278
|
+
readonly outputs: readonly [{
|
|
279
|
+
readonly components: readonly [{
|
|
280
|
+
readonly internalType: "uint16";
|
|
281
|
+
readonly name: "ltv";
|
|
282
|
+
readonly type: "uint16";
|
|
283
|
+
}, {
|
|
284
|
+
readonly internalType: "uint16";
|
|
285
|
+
readonly name: "liquidationThreshold";
|
|
286
|
+
readonly type: "uint16";
|
|
287
|
+
}, {
|
|
288
|
+
readonly internalType: "uint16";
|
|
289
|
+
readonly name: "liquidationBonus";
|
|
290
|
+
readonly type: "uint16";
|
|
291
|
+
}, {
|
|
292
|
+
readonly internalType: "address";
|
|
293
|
+
readonly name: "priceSource";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
}, {
|
|
296
|
+
readonly internalType: "string";
|
|
297
|
+
readonly name: "label";
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
}];
|
|
300
|
+
readonly internalType: "struct DataTypes.EModeCategory";
|
|
301
|
+
readonly name: "";
|
|
302
|
+
readonly type: "tuple";
|
|
303
|
+
}];
|
|
304
|
+
readonly stateMutability: "view";
|
|
305
|
+
readonly type: "function";
|
|
306
|
+
}, {
|
|
307
|
+
readonly inputs: readonly [{
|
|
308
|
+
readonly internalType: "uint16";
|
|
309
|
+
readonly name: "id";
|
|
310
|
+
readonly type: "uint16";
|
|
311
|
+
}];
|
|
312
|
+
readonly name: "getReserveAddressById";
|
|
313
|
+
readonly outputs: readonly [{
|
|
314
|
+
readonly internalType: "address";
|
|
315
|
+
readonly name: "";
|
|
316
|
+
readonly type: "address";
|
|
317
|
+
}];
|
|
318
|
+
readonly stateMutability: "view";
|
|
319
|
+
readonly type: "function";
|
|
320
|
+
}, {
|
|
321
|
+
readonly inputs: readonly [{
|
|
322
|
+
readonly internalType: "address";
|
|
323
|
+
readonly name: "asset";
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
}];
|
|
326
|
+
readonly name: "getReserveNormalizedIncome";
|
|
327
|
+
readonly outputs: readonly [{
|
|
328
|
+
readonly internalType: "uint256";
|
|
329
|
+
readonly name: "";
|
|
330
|
+
readonly type: "uint256";
|
|
331
|
+
}];
|
|
332
|
+
readonly stateMutability: "view";
|
|
333
|
+
readonly type: "function";
|
|
334
|
+
}, {
|
|
335
|
+
readonly inputs: readonly [{
|
|
336
|
+
readonly internalType: "address";
|
|
337
|
+
readonly name: "asset";
|
|
338
|
+
readonly type: "address";
|
|
339
|
+
}];
|
|
340
|
+
readonly name: "getReserveNormalizedVariableDebt";
|
|
341
|
+
readonly outputs: readonly [{
|
|
342
|
+
readonly internalType: "uint256";
|
|
343
|
+
readonly name: "";
|
|
344
|
+
readonly type: "uint256";
|
|
345
|
+
}];
|
|
346
|
+
readonly stateMutability: "view";
|
|
347
|
+
readonly type: "function";
|
|
348
|
+
}, {
|
|
349
|
+
readonly inputs: readonly [];
|
|
350
|
+
readonly name: "getReservesList";
|
|
351
|
+
readonly outputs: readonly [{
|
|
352
|
+
readonly internalType: "address[]";
|
|
353
|
+
readonly name: "";
|
|
354
|
+
readonly type: "address[]";
|
|
355
|
+
}];
|
|
356
|
+
readonly stateMutability: "view";
|
|
357
|
+
readonly type: "function";
|
|
358
|
+
}, {
|
|
359
|
+
readonly inputs: readonly [{
|
|
360
|
+
readonly internalType: "address";
|
|
361
|
+
readonly name: "user";
|
|
362
|
+
readonly type: "address";
|
|
363
|
+
}];
|
|
364
|
+
readonly name: "getUserAccountData";
|
|
365
|
+
readonly outputs: readonly [{
|
|
366
|
+
readonly internalType: "uint256";
|
|
367
|
+
readonly name: "totalCollateralBase";
|
|
368
|
+
readonly type: "uint256";
|
|
369
|
+
}, {
|
|
370
|
+
readonly internalType: "uint256";
|
|
371
|
+
readonly name: "totalDebtBase";
|
|
372
|
+
readonly type: "uint256";
|
|
373
|
+
}, {
|
|
374
|
+
readonly internalType: "uint256";
|
|
375
|
+
readonly name: "availableBorrowsBase";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
}, {
|
|
378
|
+
readonly internalType: "uint256";
|
|
379
|
+
readonly name: "currentLiquidationThreshold";
|
|
380
|
+
readonly type: "uint256";
|
|
381
|
+
}, {
|
|
382
|
+
readonly internalType: "uint256";
|
|
383
|
+
readonly name: "ltv";
|
|
384
|
+
readonly type: "uint256";
|
|
385
|
+
}, {
|
|
386
|
+
readonly internalType: "uint256";
|
|
387
|
+
readonly name: "healthFactor";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
}];
|
|
390
|
+
readonly stateMutability: "view";
|
|
391
|
+
readonly type: "function";
|
|
392
|
+
}, {
|
|
393
|
+
readonly inputs: readonly [{
|
|
394
|
+
readonly internalType: "address";
|
|
395
|
+
readonly name: "user";
|
|
396
|
+
readonly type: "address";
|
|
397
|
+
}];
|
|
398
|
+
readonly name: "getUserConfiguration";
|
|
399
|
+
readonly outputs: readonly [{
|
|
400
|
+
readonly components: readonly [{
|
|
401
|
+
readonly internalType: "uint256";
|
|
402
|
+
readonly name: "data";
|
|
403
|
+
readonly type: "uint256";
|
|
404
|
+
}];
|
|
405
|
+
readonly internalType: "struct DataTypes.UserConfigurationMap";
|
|
406
|
+
readonly name: "";
|
|
407
|
+
readonly type: "tuple";
|
|
408
|
+
}];
|
|
409
|
+
readonly stateMutability: "view";
|
|
410
|
+
readonly type: "function";
|
|
411
|
+
}, {
|
|
412
|
+
readonly inputs: readonly [{
|
|
413
|
+
readonly internalType: "address";
|
|
414
|
+
readonly name: "user";
|
|
415
|
+
readonly type: "address";
|
|
416
|
+
}];
|
|
417
|
+
readonly name: "getUserEMode";
|
|
418
|
+
readonly outputs: readonly [{
|
|
419
|
+
readonly internalType: "uint256";
|
|
420
|
+
readonly name: "";
|
|
421
|
+
readonly type: "uint256";
|
|
422
|
+
}];
|
|
423
|
+
readonly stateMutability: "view";
|
|
424
|
+
readonly type: "function";
|
|
425
|
+
}, {
|
|
426
|
+
readonly inputs: readonly [{
|
|
427
|
+
readonly internalType: "address";
|
|
428
|
+
readonly name: "asset";
|
|
429
|
+
readonly type: "address";
|
|
430
|
+
}, {
|
|
431
|
+
readonly internalType: "address";
|
|
432
|
+
readonly name: "aTokenAddress";
|
|
433
|
+
readonly type: "address";
|
|
434
|
+
}, {
|
|
435
|
+
readonly internalType: "address";
|
|
436
|
+
readonly name: "stableDebtAddress";
|
|
437
|
+
readonly type: "address";
|
|
438
|
+
}, {
|
|
439
|
+
readonly internalType: "address";
|
|
440
|
+
readonly name: "variableDebtAddress";
|
|
441
|
+
readonly type: "address";
|
|
442
|
+
}, {
|
|
443
|
+
readonly internalType: "address";
|
|
444
|
+
readonly name: "interestRateStrategyAddress";
|
|
445
|
+
readonly type: "address";
|
|
446
|
+
}];
|
|
447
|
+
readonly name: "initReserve";
|
|
448
|
+
readonly outputs: readonly [];
|
|
449
|
+
readonly stateMutability: "nonpayable";
|
|
450
|
+
readonly type: "function";
|
|
451
|
+
}, {
|
|
452
|
+
readonly inputs: readonly [{
|
|
453
|
+
readonly internalType: "address";
|
|
454
|
+
readonly name: "collateralAsset";
|
|
455
|
+
readonly type: "address";
|
|
456
|
+
}, {
|
|
457
|
+
readonly internalType: "address";
|
|
458
|
+
readonly name: "debtAsset";
|
|
459
|
+
readonly type: "address";
|
|
460
|
+
}, {
|
|
461
|
+
readonly internalType: "address";
|
|
462
|
+
readonly name: "user";
|
|
463
|
+
readonly type: "address";
|
|
464
|
+
}, {
|
|
465
|
+
readonly internalType: "uint256";
|
|
466
|
+
readonly name: "debtToCover";
|
|
467
|
+
readonly type: "uint256";
|
|
468
|
+
}, {
|
|
469
|
+
readonly internalType: "bool";
|
|
470
|
+
readonly name: "receiveAToken";
|
|
471
|
+
readonly type: "bool";
|
|
472
|
+
}];
|
|
473
|
+
readonly name: "liquidationCall";
|
|
474
|
+
readonly outputs: readonly [];
|
|
475
|
+
readonly stateMutability: "nonpayable";
|
|
476
|
+
readonly type: "function";
|
|
477
|
+
}, {
|
|
478
|
+
readonly inputs: readonly [{
|
|
479
|
+
readonly internalType: "address[]";
|
|
480
|
+
readonly name: "assets";
|
|
481
|
+
readonly type: "address[]";
|
|
482
|
+
}];
|
|
483
|
+
readonly name: "mintToTreasury";
|
|
484
|
+
readonly outputs: readonly [];
|
|
485
|
+
readonly stateMutability: "nonpayable";
|
|
486
|
+
readonly type: "function";
|
|
487
|
+
}, {
|
|
488
|
+
readonly inputs: readonly [{
|
|
489
|
+
readonly internalType: "address";
|
|
490
|
+
readonly name: "asset";
|
|
491
|
+
readonly type: "address";
|
|
492
|
+
}, {
|
|
493
|
+
readonly internalType: "uint256";
|
|
494
|
+
readonly name: "amount";
|
|
495
|
+
readonly type: "uint256";
|
|
496
|
+
}, {
|
|
497
|
+
readonly internalType: "address";
|
|
498
|
+
readonly name: "onBehalfOf";
|
|
499
|
+
readonly type: "address";
|
|
500
|
+
}, {
|
|
501
|
+
readonly internalType: "uint16";
|
|
502
|
+
readonly name: "referralCode";
|
|
503
|
+
readonly type: "uint16";
|
|
504
|
+
}];
|
|
505
|
+
readonly name: "mintUnbacked";
|
|
506
|
+
readonly outputs: readonly [];
|
|
507
|
+
readonly stateMutability: "nonpayable";
|
|
508
|
+
readonly type: "function";
|
|
509
|
+
}, {
|
|
510
|
+
readonly inputs: readonly [{
|
|
511
|
+
readonly internalType: "address";
|
|
512
|
+
readonly name: "asset";
|
|
513
|
+
readonly type: "address";
|
|
514
|
+
}, {
|
|
515
|
+
readonly internalType: "address";
|
|
516
|
+
readonly name: "user";
|
|
517
|
+
readonly type: "address";
|
|
518
|
+
}];
|
|
519
|
+
readonly name: "rebalanceStableBorrowRate";
|
|
520
|
+
readonly outputs: readonly [];
|
|
521
|
+
readonly stateMutability: "nonpayable";
|
|
522
|
+
readonly type: "function";
|
|
523
|
+
}, {
|
|
524
|
+
readonly inputs: readonly [{
|
|
525
|
+
readonly internalType: "address";
|
|
526
|
+
readonly name: "asset";
|
|
527
|
+
readonly type: "address";
|
|
528
|
+
}, {
|
|
529
|
+
readonly internalType: "uint256";
|
|
530
|
+
readonly name: "amount";
|
|
531
|
+
readonly type: "uint256";
|
|
532
|
+
}, {
|
|
533
|
+
readonly internalType: "uint256";
|
|
534
|
+
readonly name: "interestRateMode";
|
|
535
|
+
readonly type: "uint256";
|
|
536
|
+
}, {
|
|
537
|
+
readonly internalType: "address";
|
|
538
|
+
readonly name: "onBehalfOf";
|
|
539
|
+
readonly type: "address";
|
|
540
|
+
}];
|
|
541
|
+
readonly name: "repay";
|
|
542
|
+
readonly outputs: readonly [{
|
|
543
|
+
readonly internalType: "uint256";
|
|
544
|
+
readonly name: "";
|
|
545
|
+
readonly type: "uint256";
|
|
546
|
+
}];
|
|
547
|
+
readonly stateMutability: "nonpayable";
|
|
548
|
+
readonly type: "function";
|
|
549
|
+
}, {
|
|
550
|
+
readonly inputs: readonly [{
|
|
551
|
+
readonly internalType: "address";
|
|
552
|
+
readonly name: "asset";
|
|
553
|
+
readonly type: "address";
|
|
554
|
+
}, {
|
|
555
|
+
readonly internalType: "uint256";
|
|
556
|
+
readonly name: "amount";
|
|
557
|
+
readonly type: "uint256";
|
|
558
|
+
}, {
|
|
559
|
+
readonly internalType: "uint256";
|
|
560
|
+
readonly name: "interestRateMode";
|
|
561
|
+
readonly type: "uint256";
|
|
562
|
+
}];
|
|
563
|
+
readonly name: "repayWithATokens";
|
|
564
|
+
readonly outputs: readonly [{
|
|
565
|
+
readonly internalType: "uint256";
|
|
566
|
+
readonly name: "";
|
|
567
|
+
readonly type: "uint256";
|
|
568
|
+
}];
|
|
569
|
+
readonly stateMutability: "nonpayable";
|
|
570
|
+
readonly type: "function";
|
|
571
|
+
}, {
|
|
572
|
+
readonly inputs: readonly [{
|
|
573
|
+
readonly internalType: "address";
|
|
574
|
+
readonly name: "asset";
|
|
575
|
+
readonly type: "address";
|
|
576
|
+
}, {
|
|
577
|
+
readonly internalType: "uint256";
|
|
578
|
+
readonly name: "amount";
|
|
579
|
+
readonly type: "uint256";
|
|
580
|
+
}, {
|
|
581
|
+
readonly internalType: "uint256";
|
|
582
|
+
readonly name: "interestRateMode";
|
|
583
|
+
readonly type: "uint256";
|
|
584
|
+
}, {
|
|
585
|
+
readonly internalType: "address";
|
|
586
|
+
readonly name: "onBehalfOf";
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
}, {
|
|
589
|
+
readonly internalType: "uint256";
|
|
590
|
+
readonly name: "deadline";
|
|
591
|
+
readonly type: "uint256";
|
|
592
|
+
}, {
|
|
593
|
+
readonly internalType: "uint8";
|
|
594
|
+
readonly name: "permitV";
|
|
595
|
+
readonly type: "uint8";
|
|
596
|
+
}, {
|
|
597
|
+
readonly internalType: "bytes32";
|
|
598
|
+
readonly name: "permitR";
|
|
599
|
+
readonly type: "bytes32";
|
|
600
|
+
}, {
|
|
601
|
+
readonly internalType: "bytes32";
|
|
602
|
+
readonly name: "permitS";
|
|
603
|
+
readonly type: "bytes32";
|
|
604
|
+
}];
|
|
605
|
+
readonly name: "repayWithPermit";
|
|
606
|
+
readonly outputs: readonly [{
|
|
607
|
+
readonly internalType: "uint256";
|
|
608
|
+
readonly name: "";
|
|
609
|
+
readonly type: "uint256";
|
|
610
|
+
}];
|
|
611
|
+
readonly stateMutability: "nonpayable";
|
|
612
|
+
readonly type: "function";
|
|
613
|
+
}, {
|
|
614
|
+
readonly inputs: readonly [{
|
|
615
|
+
readonly internalType: "address";
|
|
616
|
+
readonly name: "token";
|
|
617
|
+
readonly type: "address";
|
|
618
|
+
}, {
|
|
619
|
+
readonly internalType: "address";
|
|
620
|
+
readonly name: "to";
|
|
621
|
+
readonly type: "address";
|
|
622
|
+
}, {
|
|
623
|
+
readonly internalType: "uint256";
|
|
624
|
+
readonly name: "amount";
|
|
625
|
+
readonly type: "uint256";
|
|
626
|
+
}];
|
|
627
|
+
readonly name: "rescueTokens";
|
|
628
|
+
readonly outputs: readonly [];
|
|
629
|
+
readonly stateMutability: "nonpayable";
|
|
630
|
+
readonly type: "function";
|
|
631
|
+
}, {
|
|
632
|
+
readonly inputs: readonly [{
|
|
633
|
+
readonly internalType: "address";
|
|
634
|
+
readonly name: "asset";
|
|
635
|
+
readonly type: "address";
|
|
636
|
+
}];
|
|
637
|
+
readonly name: "resetIsolationModeTotalDebt";
|
|
638
|
+
readonly outputs: readonly [];
|
|
639
|
+
readonly stateMutability: "nonpayable";
|
|
640
|
+
readonly type: "function";
|
|
641
|
+
}, {
|
|
642
|
+
readonly inputs: readonly [{
|
|
643
|
+
readonly internalType: "address";
|
|
644
|
+
readonly name: "asset";
|
|
645
|
+
readonly type: "address";
|
|
646
|
+
}, {
|
|
647
|
+
readonly components: readonly [{
|
|
648
|
+
readonly internalType: "uint256";
|
|
649
|
+
readonly name: "data";
|
|
650
|
+
readonly type: "uint256";
|
|
651
|
+
}];
|
|
652
|
+
readonly internalType: "struct DataTypes.ReserveConfigurationMap";
|
|
653
|
+
readonly name: "configuration";
|
|
654
|
+
readonly type: "tuple";
|
|
655
|
+
}];
|
|
656
|
+
readonly name: "setConfiguration";
|
|
657
|
+
readonly outputs: readonly [];
|
|
658
|
+
readonly stateMutability: "nonpayable";
|
|
659
|
+
readonly type: "function";
|
|
660
|
+
}, {
|
|
661
|
+
readonly inputs: readonly [{
|
|
662
|
+
readonly internalType: "address";
|
|
663
|
+
readonly name: "asset";
|
|
664
|
+
readonly type: "address";
|
|
665
|
+
}, {
|
|
666
|
+
readonly internalType: "address";
|
|
667
|
+
readonly name: "rateStrategyAddress";
|
|
668
|
+
readonly type: "address";
|
|
669
|
+
}];
|
|
670
|
+
readonly name: "setReserveInterestRateStrategyAddress";
|
|
671
|
+
readonly outputs: readonly [];
|
|
672
|
+
readonly stateMutability: "nonpayable";
|
|
673
|
+
readonly type: "function";
|
|
674
|
+
}, {
|
|
675
|
+
readonly inputs: readonly [{
|
|
676
|
+
readonly internalType: "uint8";
|
|
677
|
+
readonly name: "categoryId";
|
|
678
|
+
readonly type: "uint8";
|
|
679
|
+
}];
|
|
680
|
+
readonly name: "setUserEMode";
|
|
681
|
+
readonly outputs: readonly [];
|
|
682
|
+
readonly stateMutability: "nonpayable";
|
|
683
|
+
readonly type: "function";
|
|
684
|
+
}, {
|
|
685
|
+
readonly inputs: readonly [{
|
|
686
|
+
readonly internalType: "address";
|
|
687
|
+
readonly name: "asset";
|
|
688
|
+
readonly type: "address";
|
|
689
|
+
}, {
|
|
690
|
+
readonly internalType: "bool";
|
|
691
|
+
readonly name: "useAsCollateral";
|
|
692
|
+
readonly type: "bool";
|
|
693
|
+
}];
|
|
694
|
+
readonly name: "setUserUseReserveAsCollateral";
|
|
695
|
+
readonly outputs: readonly [];
|
|
696
|
+
readonly stateMutability: "nonpayable";
|
|
697
|
+
readonly type: "function";
|
|
698
|
+
}, {
|
|
699
|
+
readonly inputs: readonly [{
|
|
700
|
+
readonly internalType: "address";
|
|
701
|
+
readonly name: "asset";
|
|
702
|
+
readonly type: "address";
|
|
703
|
+
}, {
|
|
704
|
+
readonly internalType: "uint256";
|
|
705
|
+
readonly name: "amount";
|
|
706
|
+
readonly type: "uint256";
|
|
707
|
+
}, {
|
|
708
|
+
readonly internalType: "address";
|
|
709
|
+
readonly name: "onBehalfOf";
|
|
710
|
+
readonly type: "address";
|
|
711
|
+
}, {
|
|
712
|
+
readonly internalType: "uint16";
|
|
713
|
+
readonly name: "referralCode";
|
|
714
|
+
readonly type: "uint16";
|
|
715
|
+
}];
|
|
716
|
+
readonly name: "supply";
|
|
717
|
+
readonly outputs: readonly [];
|
|
718
|
+
readonly stateMutability: "nonpayable";
|
|
719
|
+
readonly type: "function";
|
|
720
|
+
}, {
|
|
721
|
+
readonly inputs: readonly [{
|
|
722
|
+
readonly internalType: "address";
|
|
723
|
+
readonly name: "asset";
|
|
724
|
+
readonly type: "address";
|
|
725
|
+
}, {
|
|
726
|
+
readonly internalType: "uint256";
|
|
727
|
+
readonly name: "amount";
|
|
728
|
+
readonly type: "uint256";
|
|
729
|
+
}, {
|
|
730
|
+
readonly internalType: "address";
|
|
731
|
+
readonly name: "onBehalfOf";
|
|
732
|
+
readonly type: "address";
|
|
733
|
+
}, {
|
|
734
|
+
readonly internalType: "uint16";
|
|
735
|
+
readonly name: "referralCode";
|
|
736
|
+
readonly type: "uint16";
|
|
737
|
+
}, {
|
|
738
|
+
readonly internalType: "uint256";
|
|
739
|
+
readonly name: "deadline";
|
|
740
|
+
readonly type: "uint256";
|
|
741
|
+
}, {
|
|
742
|
+
readonly internalType: "uint8";
|
|
743
|
+
readonly name: "permitV";
|
|
744
|
+
readonly type: "uint8";
|
|
745
|
+
}, {
|
|
746
|
+
readonly internalType: "bytes32";
|
|
747
|
+
readonly name: "permitR";
|
|
748
|
+
readonly type: "bytes32";
|
|
749
|
+
}, {
|
|
750
|
+
readonly internalType: "bytes32";
|
|
751
|
+
readonly name: "permitS";
|
|
752
|
+
readonly type: "bytes32";
|
|
753
|
+
}];
|
|
754
|
+
readonly name: "supplyWithPermit";
|
|
755
|
+
readonly outputs: readonly [];
|
|
756
|
+
readonly stateMutability: "nonpayable";
|
|
757
|
+
readonly type: "function";
|
|
758
|
+
}, {
|
|
759
|
+
readonly inputs: readonly [{
|
|
760
|
+
readonly internalType: "address";
|
|
761
|
+
readonly name: "asset";
|
|
762
|
+
readonly type: "address";
|
|
763
|
+
}, {
|
|
764
|
+
readonly internalType: "uint256";
|
|
765
|
+
readonly name: "interestRateMode";
|
|
766
|
+
readonly type: "uint256";
|
|
767
|
+
}];
|
|
768
|
+
readonly name: "swapBorrowRateMode";
|
|
769
|
+
readonly outputs: readonly [];
|
|
770
|
+
readonly stateMutability: "nonpayable";
|
|
771
|
+
readonly type: "function";
|
|
772
|
+
}, {
|
|
773
|
+
readonly inputs: readonly [{
|
|
774
|
+
readonly internalType: "uint256";
|
|
775
|
+
readonly name: "bridgeProtocolFee";
|
|
776
|
+
readonly type: "uint256";
|
|
777
|
+
}];
|
|
778
|
+
readonly name: "updateBridgeProtocolFee";
|
|
779
|
+
readonly outputs: readonly [];
|
|
780
|
+
readonly stateMutability: "nonpayable";
|
|
781
|
+
readonly type: "function";
|
|
782
|
+
}, {
|
|
783
|
+
readonly inputs: readonly [{
|
|
784
|
+
readonly internalType: "uint128";
|
|
785
|
+
readonly name: "flashLoanPremiumTotal";
|
|
786
|
+
readonly type: "uint128";
|
|
787
|
+
}, {
|
|
788
|
+
readonly internalType: "uint128";
|
|
789
|
+
readonly name: "flashLoanPremiumToProtocol";
|
|
790
|
+
readonly type: "uint128";
|
|
791
|
+
}];
|
|
792
|
+
readonly name: "updateFlashloanPremiums";
|
|
793
|
+
readonly outputs: readonly [];
|
|
794
|
+
readonly stateMutability: "nonpayable";
|
|
795
|
+
readonly type: "function";
|
|
796
|
+
}, {
|
|
797
|
+
readonly inputs: readonly [{
|
|
798
|
+
readonly internalType: "address";
|
|
799
|
+
readonly name: "asset";
|
|
800
|
+
readonly type: "address";
|
|
801
|
+
}, {
|
|
802
|
+
readonly internalType: "uint256";
|
|
803
|
+
readonly name: "amount";
|
|
804
|
+
readonly type: "uint256";
|
|
805
|
+
}, {
|
|
806
|
+
readonly internalType: "address";
|
|
807
|
+
readonly name: "to";
|
|
808
|
+
readonly type: "address";
|
|
809
|
+
}];
|
|
810
|
+
readonly name: "withdraw";
|
|
811
|
+
readonly outputs: readonly [{
|
|
812
|
+
readonly internalType: "uint256";
|
|
813
|
+
readonly name: "";
|
|
814
|
+
readonly type: "uint256";
|
|
815
|
+
}];
|
|
816
|
+
readonly stateMutability: "nonpayable";
|
|
817
|
+
readonly type: "function";
|
|
818
|
+
}];
|
|
819
|
+
//# sourceMappingURL=AavePoolV3.d.ts.map
|