@1delta/margin-fetcher 0.0.14 → 0.0.15-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/_esm-2UAQOYNJ.js +3898 -0
- package/dist/_esm-2UAQOYNJ.js.map +1 -0
- package/dist/abis/aave-v2/YLDR.d.ts.map +1 -1
- package/dist/abis/aave-v3/AavePoolDataProviderLegacy.d.ts.map +1 -1
- package/dist/abis/compound-v2/CollateralToken.d.ts +58 -0
- package/dist/abis/compound-v2/CollateralToken.d.ts.map +1 -0
- package/dist/abis/compound-v2/Comptroller.d.ts +1 -1600
- package/dist/abis/compound-v2/Comptroller.d.ts.map +1 -1
- package/dist/abis/compound-v2/VenusLens.d.ts +1007 -0
- package/dist/abis/{aave/AavePoolV3.d.ts.map → compound-v2/VenusLens.d.ts.map} +1 -1
- package/dist/abis/compound-v2/VenusLensLegacy.d.ts +109 -0
- package/dist/abis/compound-v2/VenusLensLegacy.d.ts.map +1 -0
- package/dist/abis/compound-v3/Comet.d.ts +0 -20
- package/dist/abis/compound-v3/Comet.d.ts.map +1 -1
- package/dist/abis/morpho/lens.d.ts +127 -15
- package/dist/abis/morpho/lens.d.ts.map +1 -1
- package/dist/abis/multicall/Multicall.d.ts.map +1 -1
- package/dist/abis/oracle/ChainLinkAggregator.d.ts +5 -223
- package/dist/abis/oracle/ChainLinkAggregator.d.ts.map +1 -1
- package/dist/abis/oracle/ProxyOracle.d.ts +26 -0
- package/dist/abis/oracle/ProxyOracle.d.ts.map +1 -0
- package/dist/abis/oracle/UniV3.d.ts +12 -0
- package/dist/abis/oracle/UniV3.d.ts.map +1 -0
- package/dist/assets/index.d.ts +3 -8
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/liquidityThresholds.d.ts +10 -0
- package/dist/assets/liquidityThresholds.d.ts.map +1 -1
- package/dist/ccip-NAPFCFLK.js +5 -0
- package/dist/ccip-NAPFCFLK.js.map +1 -0
- package/dist/chunk-BYTNVMX7.js +369 -0
- package/dist/chunk-BYTNVMX7.js.map +1 -0
- package/dist/chunk-JJRW5HVN.js +4133 -0
- package/dist/chunk-JJRW5HVN.js.map +1 -0
- package/dist/chunk-PR4QN5HX.js +39 -0
- package/dist/chunk-PR4QN5HX.js.map +1 -0
- package/dist/flash-liquidity/assets.d.ts +2 -2
- package/dist/flash-liquidity/assets.d.ts.map +1 -1
- package/dist/flash-liquidity/fetchLiquidity.d.ts +3 -3
- package/dist/flash-liquidity/fetchLiquidity.d.ts.map +1 -1
- package/dist/flash-liquidity/index.d.ts +2 -2
- package/dist/flash-liquidity/types.d.ts +1 -0
- package/dist/flash-liquidity/types.d.ts.map +1 -1
- package/dist/flash-liquidity/utils.d.ts +3 -2
- package/dist/flash-liquidity/utils.d.ts.map +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23868 -6
- package/dist/index.js.map +1 -0
- package/dist/lending/aave-v2-type/misc.d.ts +3 -9
- package/dist/lending/aave-v2-type/misc.d.ts.map +1 -1
- package/dist/lending/aave-v2-type/publicCallBuild.d.ts +3 -4
- package/dist/lending/aave-v2-type/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/aave-v2-type/publicCallParse.d.ts +4 -5
- package/dist/lending/aave-v2-type/publicCallParse.d.ts.map +1 -1
- package/dist/lending/aave-v3-type/publicCallBuild.d.ts +3 -3
- package/dist/lending/aave-v3-type/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/aave-v3-type/publicCallParse.d.ts +5 -6
- package/dist/lending/aave-v3-type/publicCallParse.d.ts.map +1 -1
- package/dist/lending/addresses/aave.d.ts.map +1 -1
- package/dist/lending/addresses/aaveV2.d.ts.map +1 -1
- package/dist/lending/addresses/compoundV2.d.ts +13 -0
- package/dist/lending/addresses/compoundV2.d.ts.map +1 -0
- package/dist/lending/addresses/compoundV3.d.ts +2 -4
- package/dist/lending/addresses/compoundV3.d.ts.map +1 -1
- package/dist/lending/addresses/meridian.d.ts +3 -0
- package/dist/lending/addresses/meridian.d.ts.map +1 -1
- package/dist/lending/addresses/takotako.d.ts.map +1 -1
- package/dist/lending/compound-v2/getters/moonwell.d.ts +32 -0
- package/dist/lending/compound-v2/getters/moonwell.d.ts.map +1 -0
- package/dist/lending/compound-v2/getters/types.d.ts +12 -0
- package/dist/lending/compound-v2/getters/types.d.ts.map +1 -0
- package/dist/lending/compound-v2/getters/venus.d.ts +86 -0
- package/dist/lending/compound-v2/getters/venus.d.ts.map +1 -0
- package/dist/lending/compound-v2/publicCallBuild.d.ts +2 -0
- package/dist/lending/compound-v2/publicCallBuild.d.ts.map +1 -0
- package/dist/lending/compound-v2/publicCallParse.d.ts +6 -0
- package/dist/lending/compound-v2/publicCallParse.d.ts.map +1 -0
- package/dist/lending/compound-v3/publicCallBuild.d.ts +1 -2
- package/dist/lending/compound-v3/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/compound-v3/publicCallParse.d.ts +3 -4
- package/dist/lending/compound-v3/publicCallParse.d.ts.map +1 -1
- package/dist/lending/fetchLender.d.ts +5 -3
- package/dist/lending/fetchLender.d.ts.map +1 -1
- package/dist/lending/fetchLenderAll.d.ts +2 -2
- package/dist/lending/fetchLenderAll.d.ts.map +1 -1
- package/dist/lending/fetchLenderExt.d.ts +2 -2
- package/dist/lending/fetchLenderExt.d.ts.map +1 -1
- package/dist/lending/index.d.ts +6 -5
- package/dist/lending/index.d.ts.map +1 -1
- package/dist/lending/init/publicCallBuild.d.ts +1 -1
- package/dist/lending/init/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/init/publicCallParse.d.ts +4 -4
- package/dist/lending/init/publicCallParse.d.ts.map +1 -1
- package/dist/lending/lista/getMarketsFromChain.d.ts +4 -0
- package/dist/lending/lista/getMarketsFromChain.d.ts.map +1 -0
- package/dist/lending/lista/getMarketsOnChain.d.ts +6 -0
- package/dist/lending/lista/getMarketsOnChain.d.ts.map +1 -0
- package/dist/lending/lista/publicCallBuild.d.ts +10 -0
- package/dist/lending/lista/publicCallBuild.d.ts.map +1 -0
- package/dist/lending/meta/index.d.ts +20 -0
- package/dist/lending/meta/index.d.ts.map +1 -0
- package/dist/lending/morpho/convertPublic.d.ts +2 -2
- package/dist/lending/morpho/convertPublic.d.ts.map +1 -1
- package/dist/lending/morpho/fetchPublic.d.ts.map +1 -1
- package/dist/lending/morpho/getMarketsFromChain.d.ts +4 -0
- package/dist/lending/morpho/getMarketsFromChain.d.ts.map +1 -0
- package/dist/lending/morpho/index.d.ts +3 -0
- package/dist/lending/morpho/index.d.ts.map +1 -0
- package/dist/lending/morpho/publicCallBuild.d.ts +12 -2
- package/dist/lending/morpho/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/morpho/utils/evmParser.d.ts +48 -0
- package/dist/lending/morpho/utils/evmParser.d.ts.map +1 -0
- package/dist/lending/morpho/utils/mathLib.d.ts +125 -0
- package/dist/lending/morpho/utils/mathLib.d.ts.map +1 -0
- package/dist/lending/morpho/utils/parsers.d.ts +10 -0
- package/dist/lending/morpho/utils/parsers.d.ts.map +1 -0
- package/dist/lending/user-data/aave-v2-type/userCallBuild.d.ts +3 -3
- package/dist/lending/user-data/aave-v2-type/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/aave-v2-type/userCallParse.d.ts +2 -2
- package/dist/lending/user-data/aave-v2-type/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/aave-v3-type/userCallBuild.d.ts +3 -3
- package/dist/lending/user-data/aave-v3-type/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/aave-v3-type/userCallParse.d.ts +2 -2
- package/dist/lending/user-data/aave-v3-type/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/aave-v3-type/userCallParseYldr.d.ts +2 -2
- package/dist/lending/user-data/aave-v3-type/userCallParseYldr.d.ts.map +1 -1
- package/dist/lending/user-data/abis.d.ts +179 -34
- package/dist/lending/user-data/abis.d.ts.map +1 -1
- package/dist/lending/user-data/compound-v2/index.d.ts +3 -0
- package/dist/lending/user-data/compound-v2/index.d.ts.map +1 -0
- package/dist/lending/user-data/compound-v2/userCallBuild.d.ts +4 -0
- package/dist/lending/user-data/compound-v2/userCallBuild.d.ts.map +1 -0
- package/dist/lending/user-data/compound-v2/userCallParse.d.ts +8 -0
- package/dist/lending/user-data/compound-v2/userCallParse.d.ts.map +1 -0
- package/dist/lending/user-data/compound-v3/index.d.ts +2 -3
- package/dist/lending/user-data/compound-v3/index.d.ts.map +1 -1
- package/dist/lending/user-data/compound-v3/userCallBuild.d.ts +3 -3
- package/dist/lending/user-data/compound-v3/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/compound-v3/userCallParse.d.ts +2 -2
- package/dist/lending/user-data/compound-v3/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/fetchUserData.d.ts +114 -5
- package/dist/lending/user-data/fetchUserData.d.ts.map +1 -1
- package/dist/lending/user-data/index.d.ts +2 -2
- package/dist/lending/user-data/index.d.ts.map +1 -1
- package/dist/lending/user-data/init/userCallBuild.d.ts +2 -2
- package/dist/lending/user-data/init/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/init/userCallParse.d.ts +2 -2
- package/dist/lending/user-data/init/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/morpho/decoder.d.ts +20 -1
- package/dist/lending/user-data/morpho/decoder.d.ts.map +1 -1
- package/dist/lending/user-data/morpho/index.d.ts +4 -0
- package/dist/lending/user-data/morpho/index.d.ts.map +1 -0
- package/dist/lending/user-data/morpho/morphoLib.d.ts.map +1 -1
- package/dist/lending/user-data/morpho/types.d.ts.map +1 -1
- package/dist/lending/user-data/morpho/userCallBuild.d.ts +6 -3
- package/dist/lending/user-data/morpho/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/morpho/userCallParse.d.ts +16 -2
- package/dist/lending/user-data/morpho/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/utils/createGeneralUserState.d.ts +4 -1
- package/dist/lending/user-data/utils/createGeneralUserState.d.ts.map +1 -1
- package/dist/lending/user-data/utils/createMultiAccountStyleUserState.d.ts +1 -1
- package/dist/lending/user-data/utils/createMultiAccountStyleUserState.d.ts.map +1 -1
- package/dist/lending/user-data/utils/formatting/generalFormatters.d.ts +1 -1
- package/dist/lending/user-data/utils/formatting/generalFormatters.d.ts.map +1 -1
- package/dist/lending/user-data/utils/formatting/index.d.ts +1 -1
- package/dist/lending/user-data/utils/index.d.ts +4 -4
- package/dist/lending/user-data/utils/index.d.ts.map +1 -1
- package/dist/lending-pairs/computeLendingPairs.d.ts +10 -1
- package/dist/lending-pairs/computeLendingPairs.d.ts.map +1 -1
- package/dist/lending-pairs/index.d.ts +1 -1
- package/dist/lending-pairs/index.d.ts.map +1 -1
- package/dist/lending-pools/computeLenderDataFromPools.d.ts +10 -0
- package/dist/lending-pools/computeLenderDataFromPools.d.ts.map +1 -0
- package/dist/lending-pools/computeLendingPools.d.ts +23 -0
- package/dist/lending-pools/computeLendingPools.d.ts.map +1 -0
- package/dist/lending-pools/index.d.ts +3 -0
- package/dist/lending-pools/index.d.ts.map +1 -0
- package/dist/prices/defillama/index.d.ts.map +1 -1
- package/dist/prices/index.d.ts +3 -2
- package/dist/prices/index.d.ts.map +1 -1
- package/dist/prices/main-prices/addresses/api3.d.ts.map +1 -1
- package/dist/prices/main-prices/addresses/chainlink.d.ts +0 -7
- package/dist/prices/main-prices/addresses/chainlink.d.ts.map +1 -1
- package/dist/prices/main-prices/fetchOracleData.d.ts +9 -3
- package/dist/prices/main-prices/fetchOracleData.d.ts.map +1 -1
- package/dist/prices/main-prices/index.d.ts +1 -1
- package/dist/prices/main-prices/index.d.ts.map +1 -1
- package/dist/prices/pendle/fetchPendlePrices.d.ts +47 -0
- package/dist/prices/pendle/fetchPendlePrices.d.ts.map +1 -0
- package/dist/prices/pendle/index.d.ts +2 -0
- package/dist/prices/pendle/index.d.ts.map +1 -0
- package/dist/secp256k1-XP7IUONI.js +2208 -0
- package/dist/secp256k1-XP7IUONI.js.map +1 -0
- package/dist/types/apiReturnType.d.ts +4 -4
- package/dist/types/apiReturnType.d.ts.map +1 -1
- package/dist/{lending/types/index.d.ts → types/general.d.ts} +1 -1
- package/dist/types/general.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -41
- package/dist/types/index.d.ts.map +1 -1
- package/dist/{lending/aave-v2-type/types.d.ts → types/lender/aave-v2-types.d.ts} +5 -9
- package/dist/types/lender/aave-v2-types.d.ts.map +1 -0
- package/dist/{lending/aave-v3-type/types.d.ts → types/lender/aave-v3-types.d.ts} +5 -9
- package/dist/types/lender/aave-v3-types.d.ts.map +1 -0
- package/dist/types/lender/compound-v2-types.d.ts +41 -0
- package/dist/types/lender/compound-v2-types.d.ts.map +1 -0
- package/dist/{lending/compound-v3/types.d.ts → types/lender/compound-v3-types.d.ts} +5 -9
- package/dist/types/lender/compound-v3-types.d.ts.map +1 -0
- package/dist/{lending/init/types.d.ts → types/lender/init-types.d.ts} +5 -9
- package/dist/types/lender/init-types.d.ts.map +1 -0
- package/dist/{lending/morpho/types.d.ts → types/lender/morpho-types.d.ts} +12 -2
- package/dist/types/lender/morpho-types.d.ts.map +1 -0
- package/dist/{lending/user-data/types.d.ts → types/lenderTypes.d.ts} +30 -20
- package/dist/types/lenderTypes.d.ts.map +1 -0
- package/dist/types/misc.d.ts +47 -0
- package/dist/types/misc.d.ts.map +1 -0
- package/dist/types/providers.d.ts +1 -9
- package/dist/types/providers.d.ts.map +1 -1
- package/dist/utils/constants.d.ts +0 -23
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/index.d.ts +6 -7
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/multicall.d.ts +2 -1
- package/dist/utils/multicall.d.ts.map +1 -1
- package/dist/utils/parsing.d.ts +6 -3
- package/dist/utils/parsing.d.ts.map +1 -1
- package/dist/yields/index.d.ts.map +1 -1
- package/dist/yields/yieldTypes.d.ts +76 -0
- package/dist/yields/yieldTypes.d.ts.map +1 -0
- package/package.json +16 -8
- package/dist/abis/aave/AToken.d.ts +0 -526
- package/dist/abis/aave/AToken.d.ts.map +0 -1
- package/dist/abis/aave/AToken.js +0 -686
- package/dist/abis/aave/AaveOracle.js +0 -66
- package/dist/abis/aave/AavePoolAndDataProvider.js +0 -2080
- package/dist/abis/aave/AavePoolV3.d.ts +0 -819
- package/dist/abis/aave/AavePoolV3.js +0 -1060
- package/dist/abis/aave/AavePoolV3Upgraded.js +0 -1474
- package/dist/abis/aave/AaveV3ProtocolDataProvider.js +0 -553
- package/dist/abis/aave/VariableDebtToken.js +0 -820
- package/dist/abis/aave-v2/ProtocolDataProvider.js +0 -312
- package/dist/abis/aave-v2/YLDR.js +0 -199
- package/dist/abis/aave-v3/AavePoolDataProviderLegacy.js +0 -460
- package/dist/abis/aave-v3/AavePoolLegacy.js +0 -1060
- package/dist/abis/aave-v3/YLDR.js +0 -46
- package/dist/abis/aurelius/Rewarder.js +0 -118
- package/dist/abis/compound-v2/CompoundLens.js +0 -851
- package/dist/abis/compound-v2/Comptroller.js +0 -2104
- package/dist/abis/compound-v3/Comet.js +0 -1829
- package/dist/abis/compound-v3/CometExt.js +0 -536
- package/dist/abis/compound-v3/CometLens.js +0 -194
- package/dist/abis/compound-v3/CometRewards.js +0 -330
- package/dist/abis/compound-v3/IrGetter.js +0 -31
- package/dist/abis/flashloan-united/flashAbi.js +0 -72
- package/dist/abis/init/Core.d.ts +0 -523
- package/dist/abis/init/Core.d.ts.map +0 -1
- package/dist/abis/init/Core.js +0 -681
- package/dist/abis/init/InitFlashAggregator.d.ts +0 -624
- package/dist/abis/init/InitFlashAggregator.d.ts.map +0 -1
- package/dist/abis/init/InitFlashAggregator.js +0 -795
- package/dist/abis/init/InitLens.js +0 -203
- package/dist/abis/init/PosManager.d.ts +0 -802
- package/dist/abis/init/PosManager.d.ts.map +0 -1
- package/dist/abis/init/PosManager.js +0 -1055
- package/dist/abis/lendle/IncentivesController.js +0 -525
- package/dist/abis/lendle/MultiFeeDistribution.js +0 -820
- package/dist/abis/meridian/PullRewardsIncentivesController.js +0 -98
- package/dist/abis/morpho/blue.js +0 -99
- package/dist/abis/morpho/lens.js +0 -31
- package/dist/abis/multicall/Multicall.js +0 -101
- package/dist/abis/oracle/AaveOracle.js +0 -66
- package/dist/abis/oracle/Api3Oracle.js +0 -62
- package/dist/abis/oracle/ChainLinkAggregator.js +0 -480
- package/dist/abis/oracle/RWADynamicOracle.js +0 -15
- package/dist/abis/oracle/UniswapV2Pair.js +0 -659
- package/dist/abis/uniswap/FeeOnTransferDetector.d.ts +0 -102
- package/dist/abis/uniswap/FeeOnTransferDetector.d.ts.map +0 -1
- package/dist/abis/uniswap/FeeOnTransferDetector.js +0 -133
- package/dist/abis/uniswap/UniswapV2Pair.d.ts +0 -513
- package/dist/abis/uniswap/UniswapV2Pair.d.ts.map +0 -1
- package/dist/abis/uniswap/UniswapV2Pair.js +0 -659
- package/dist/assets/index.js +0 -54
- package/dist/assets/liquidityThresholds.js +0 -51
- package/dist/flash-liquidity/assets.js +0 -45
- package/dist/flash-liquidity/fetchLiquidity.js +0 -235
- package/dist/flash-liquidity/index.js +0 -2
- package/dist/flash-liquidity/types.js +0 -8
- package/dist/flash-liquidity/utils.js +0 -17
- package/dist/lending/aave-v2-type/misc.js +0 -8
- package/dist/lending/aave-v2-type/publicCallBuild.js +0 -102
- package/dist/lending/aave-v2-type/publicCallParse.js +0 -257
- package/dist/lending/aave-v2-type/types.d.ts.map +0 -1
- package/dist/lending/aave-v2-type/types.js +0 -46
- package/dist/lending/aave-v3-type/publicCallBuild.js +0 -123
- package/dist/lending/aave-v3-type/publicCallParse.js +0 -307
- package/dist/lending/aave-v3-type/types.d.ts.map +0 -1
- package/dist/lending/aave-v3-type/types.js +0 -98
- package/dist/lending/addresses/aave.js +0 -10
- package/dist/lending/addresses/aaveV2.js +0 -6
- package/dist/lending/addresses/aurelius.js +0 -12
- package/dist/lending/addresses/compoundV3.js +0 -36
- package/dist/lending/addresses/contracts.d.ts +0 -5
- package/dist/lending/addresses/contracts.d.ts.map +0 -1
- package/dist/lending/addresses/contracts.js +0 -49
- package/dist/lending/addresses/hana.js +0 -6
- package/dist/lending/addresses/index.d.ts +0 -2
- package/dist/lending/addresses/index.d.ts.map +0 -1
- package/dist/lending/addresses/index.js +0 -1
- package/dist/lending/addresses/init.js +0 -33
- package/dist/lending/addresses/lendle.js +0 -12
- package/dist/lending/addresses/meridian.js +0 -12
- package/dist/lending/addresses/takotako.js +0 -12
- package/dist/lending/compound-v3/publicCallBuild.js +0 -63
- package/dist/lending/compound-v3/publicCallParse.js +0 -135
- package/dist/lending/compound-v3/types.d.ts.map +0 -1
- package/dist/lending/compound-v3/types.js +0 -6
- package/dist/lending/fetchLender.js +0 -104
- package/dist/lending/fetchLenderAll.js +0 -12
- package/dist/lending/fetchLenderExt.js +0 -42
- package/dist/lending/index.js +0 -5
- package/dist/lending/init/publicCallBuild.js +0 -21
- package/dist/lending/init/publicCallParse.js +0 -76
- package/dist/lending/init/types.d.ts.map +0 -1
- package/dist/lending/init/types.js +0 -6
- package/dist/lending/morpho/convertPublic.js +0 -119
- package/dist/lending/morpho/fetchPublic.js +0 -72
- package/dist/lending/morpho/publicCallBuild.js +0 -6
- package/dist/lending/morpho/types.d.ts.map +0 -1
- package/dist/lending/morpho/types.js +0 -1
- package/dist/lending/types/index.d.ts.map +0 -1
- package/dist/lending/types/index.js +0 -1
- package/dist/lending/user-data/aave-v2-type/userCallBuild.js +0 -87
- package/dist/lending/user-data/aave-v2-type/userCallParse.js +0 -239
- package/dist/lending/user-data/aave-v3-type/userCallBuild.js +0 -26
- package/dist/lending/user-data/aave-v3-type/userCallParse.js +0 -84
- package/dist/lending/user-data/aave-v3-type/userCallParseYldr.js +0 -81
- package/dist/lending/user-data/abis.js +0 -56
- package/dist/lending/user-data/compound-v3/addresses.d.ts +0 -10
- package/dist/lending/user-data/compound-v3/addresses.d.ts.map +0 -1
- package/dist/lending/user-data/compound-v3/addresses.js +0 -33
- package/dist/lending/user-data/compound-v3/index.js +0 -3
- package/dist/lending/user-data/compound-v3/userCallBuild.js +0 -44
- package/dist/lending/user-data/compound-v3/userCallParse.js +0 -103
- package/dist/lending/user-data/fetchUserData.js +0 -100
- package/dist/lending/user-data/index.js +0 -2
- package/dist/lending/user-data/init/userCallBuild.js +0 -20
- package/dist/lending/user-data/init/userCallParse.js +0 -88
- package/dist/lending/user-data/morpho/decoder.js +0 -52
- package/dist/lending/user-data/morpho/morphoLib.js +0 -21
- package/dist/lending/user-data/morpho/types.js +0 -13
- package/dist/lending/user-data/morpho/userCallBuild.js +0 -42
- package/dist/lending/user-data/morpho/userCallParse.js +0 -102
- package/dist/lending/user-data/morpho/userCallParseNoDeploy.d.ts +0 -11
- package/dist/lending/user-data/morpho/userCallParseNoDeploy.d.ts.map +0 -1
- package/dist/lending/user-data/morpho/userCallParseNoDeploy.js +0 -112
- package/dist/lending/user-data/types.d.ts.map +0 -1
- package/dist/lending/user-data/types.js +0 -38
- package/dist/lending/user-data/utils/createGeneralUserState.js +0 -105
- package/dist/lending/user-data/utils/createMultiAccountStyleUserState.js +0 -96
- package/dist/lending/user-data/utils/formatting/generalFormatters.js +0 -109
- package/dist/lending/user-data/utils/formatting/index.js +0 -1
- package/dist/lending/user-data/utils/index.js +0 -17
- package/dist/lending-pairs/computeLendingPairs.js +0 -259
- package/dist/lending-pairs/index.js +0 -1
- package/dist/prices/defillama/index.js +0 -269
- package/dist/prices/index.js +0 -2
- package/dist/prices/main-prices/addresses/aaveOracles.d.ts +0 -278
- package/dist/prices/main-prices/addresses/aaveOracles.d.ts.map +0 -1
- package/dist/prices/main-prices/addresses/aaveOracles.js +0 -277
- package/dist/prices/main-prices/addresses/api3.js +0 -9
- package/dist/prices/main-prices/addresses/chainlink.js +0 -744
- package/dist/prices/main-prices/fetchOracleData.js +0 -348
- package/dist/prices/main-prices/index.js +0 -1
- package/dist/types/apiReturnType.js +0 -1
- package/dist/types/index.js +0 -10
- package/dist/types/providers.js +0 -1
- package/dist/utils/constants.js +0 -97
- package/dist/utils/index.js +0 -106
- package/dist/utils/multicall.js +0 -30
- package/dist/utils/parsing.js +0 -66
- package/dist/yields/index.js +0 -164
- package/src/abis/aave/AToken.ts +0 -686
- package/src/abis/aave/AaveOracle.ts +0 -66
- package/src/abis/aave/AavePoolAndDataProvider.ts +0 -2080
- package/src/abis/aave/AavePoolV3.ts +0 -1060
- package/src/abis/aave/AavePoolV3Upgraded.ts +0 -1474
- package/src/abis/aave/AaveV3ProtocolDataProvider.ts +0 -553
- package/src/abis/aave/VariableDebtToken.ts +0 -820
- package/src/abis/aave-v2/ProtocolDataProvider.ts +0 -312
- package/src/abis/aave-v2/YLDR.ts +0 -199
- package/src/abis/aave-v3/AavePoolDataProviderLegacy.ts +0 -459
- package/src/abis/aave-v3/AavePoolLegacy.ts +0 -1060
- package/src/abis/aave-v3/YLDR.ts +0 -46
- package/src/abis/aurelius/Rewarder.ts +0 -118
- package/src/abis/compound-v2/CompoundLens.ts +0 -851
- package/src/abis/compound-v2/Comptroller.ts +0 -2104
- package/src/abis/compound-v3/Comet.ts +0 -1829
- package/src/abis/compound-v3/CometExt.ts +0 -536
- package/src/abis/compound-v3/CometLens.ts +0 -194
- package/src/abis/compound-v3/CometRewards.ts +0 -330
- package/src/abis/compound-v3/IrGetter.ts +0 -31
- package/src/abis/flashloan-united/flashAbi.ts +0 -72
- package/src/abis/init/Core.ts +0 -681
- package/src/abis/init/InitFlashAggregator.ts +0 -795
- package/src/abis/init/InitLens.ts +0 -203
- package/src/abis/init/PosManager.ts +0 -1055
- package/src/abis/lendle/IncentivesController.ts +0 -525
- package/src/abis/lendle/MultiFeeDistribution.ts +0 -820
- package/src/abis/meridian/PullRewardsIncentivesController.ts +0 -98
- package/src/abis/morpho/blue.ts +0 -99
- package/src/abis/morpho/lens.ts +0 -31
- package/src/abis/multicall/Multicall.ts +0 -101
- package/src/abis/oracle/AaveOracle.ts +0 -66
- package/src/abis/oracle/Api3Oracle.ts +0 -62
- package/src/abis/oracle/ChainLinkAggregator.ts +0 -480
- package/src/abis/oracle/RWADynamicOracle.ts +0 -15
- package/src/abis/oracle/UniswapV2Pair.ts +0 -659
- package/src/abis/uniswap/FeeOnTransferDetector.ts +0 -133
- package/src/abis/uniswap/UniswapV2Pair.ts +0 -659
- package/src/assets/index.ts +0 -101
- package/src/assets/liquidityThresholds.ts +0 -83
- package/src/flash-liquidity/assets.ts +0 -61
- package/src/flash-liquidity/fetchLiquidity.ts +0 -300
- package/src/flash-liquidity/index.ts +0 -2
- package/src/flash-liquidity/types.ts +0 -20
- package/src/flash-liquidity/utils.ts +0 -22
- package/src/index.ts +0 -7
- package/src/lending/aave-v2-type/misc.ts +0 -9
- package/src/lending/aave-v2-type/publicCallBuild.ts +0 -105
- package/src/lending/aave-v2-type/publicCallParse.ts +0 -305
- package/src/lending/aave-v2-type/types.ts +0 -100
- package/src/lending/aave-v3-type/publicCallBuild.ts +0 -148
- package/src/lending/aave-v3-type/publicCallParse.ts +0 -378
- package/src/lending/aave-v3-type/types.ts +0 -191
- package/src/lending/addresses/aave.ts +0 -12
- package/src/lending/addresses/aaveV2.ts +0 -8
- package/src/lending/addresses/aurelius.ts +0 -13
- package/src/lending/addresses/compoundV3.ts +0 -56
- package/src/lending/addresses/contracts.ts +0 -54
- package/src/lending/addresses/hana.ts +0 -7
- package/src/lending/addresses/index.ts +0 -1
- package/src/lending/addresses/init.ts +0 -37
- package/src/lending/addresses/lendle.ts +0 -13
- package/src/lending/addresses/meridian.ts +0 -13
- package/src/lending/addresses/takotako.ts +0 -14
- package/src/lending/compound-v3/publicCallBuild.ts +0 -74
- package/src/lending/compound-v3/publicCallParse.ts +0 -202
- package/src/lending/compound-v3/types.ts +0 -45
- package/src/lending/fetchLender.ts +0 -181
- package/src/lending/fetchLenderAll.ts +0 -30
- package/src/lending/fetchLenderExt.ts +0 -82
- package/src/lending/index.ts +0 -5
- package/src/lending/init/publicCallBuild.ts +0 -29
- package/src/lending/init/publicCallParse.ts +0 -93
- package/src/lending/init/types.ts +0 -53
- package/src/lending/morpho/convertPublic.ts +0 -153
- package/src/lending/morpho/fetchPublic.ts +0 -80
- package/src/lending/morpho/publicCallBuild.ts +0 -11
- package/src/lending/morpho/types.ts +0 -129
- package/src/lending/types/index.ts +0 -16
- package/src/lending/user-data/aave-v2-type/userCallBuild.ts +0 -118
- package/src/lending/user-data/aave-v2-type/userCallParse.ts +0 -343
- package/src/lending/user-data/aave-v3-type/userCallBuild.ts +0 -42
- package/src/lending/user-data/aave-v3-type/userCallParse.ts +0 -126
- package/src/lending/user-data/aave-v3-type/userCallParseYldr.ts +0 -124
- package/src/lending/user-data/abis.ts +0 -53
- package/src/lending/user-data/compound-v3/addresses.ts +0 -59
- package/src/lending/user-data/compound-v3/index.ts +0 -3
- package/src/lending/user-data/compound-v3/userCallBuild.ts +0 -53
- package/src/lending/user-data/compound-v3/userCallParse.ts +0 -126
- package/src/lending/user-data/fetchUserData.ts +0 -205
- package/src/lending/user-data/index.ts +0 -2
- package/src/lending/user-data/init/userCallBuild.ts +0 -26
- package/src/lending/user-data/init/userCallParse.ts +0 -115
- package/src/lending/user-data/morpho/decoder.ts +0 -71
- package/src/lending/user-data/morpho/morphoLib.ts +0 -61
- package/src/lending/user-data/morpho/types.ts +0 -12
- package/src/lending/user-data/morpho/userCallBuild.ts +0 -63
- package/src/lending/user-data/morpho/userCallParse.ts +0 -150
- package/src/lending/user-data/morpho/userCallParseNoDeploy.ts +0 -168
- package/src/lending/user-data/types.ts +0 -300
- package/src/lending/user-data/utils/createGeneralUserState.ts +0 -142
- package/src/lending/user-data/utils/createMultiAccountStyleUserState.ts +0 -113
- package/src/lending/user-data/utils/formatting/generalFormatters.ts +0 -121
- package/src/lending/user-data/utils/formatting/index.ts +0 -1
- package/src/lending/user-data/utils/index.ts +0 -19
- package/src/lending-pairs/computeLendingPairs.ts +0 -445
- package/src/lending-pairs/index.ts +0 -1
- package/src/prices/defillama/index.ts +0 -306
- package/src/prices/index.ts +0 -2
- package/src/prices/main-prices/addresses/aaveOracles.ts +0 -278
- package/src/prices/main-prices/addresses/api3.ts +0 -10
- package/src/prices/main-prices/addresses/chainlink.ts +0 -750
- package/src/prices/main-prices/fetchOracleData.ts +0 -496
- package/src/prices/main-prices/index.ts +0 -1
- package/src/types/apiReturnType.ts +0 -80
- package/src/types/index.ts +0 -38
- package/src/types/providers.ts +0 -26
- package/src/utils/constants.ts +0 -100
- package/src/utils/index.ts +0 -139
- package/src/utils/multicall.ts +0 -53
- package/src/utils/parsing.ts +0 -80
- package/src/yields/index.ts +0 -207
- package/test/index.test.ts +0 -112
- package/test/lenderData.test.ts +0 -13320
- package/test/mainPrices.test.ts +0 -23
- package/test/morpho.test.ts +0 -20
- package/test/userDataMorpho.test.ts +0 -79
- package/test/userdata.test.ts +0 -284
- package/test/utils.ts +0 -13
- package/tsconfig.json +0 -28
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"VenusLens.d.ts","sourceRoot":"","sources":["../../../src/abis/compound-v2/VenusLens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0yBf,CAAA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const VenusLensLegacyAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "contract VToken";
|
|
4
|
+
readonly name: "vToken";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly name: "vTokenMetadata";
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly components: readonly [{
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "vToken";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}, {
|
|
14
|
+
readonly internalType: "uint256";
|
|
15
|
+
readonly name: "exchangeRateCurrent";
|
|
16
|
+
readonly type: "uint256";
|
|
17
|
+
}, {
|
|
18
|
+
readonly internalType: "uint256";
|
|
19
|
+
readonly name: "supplyRatePerBlock";
|
|
20
|
+
readonly type: "uint256";
|
|
21
|
+
}, {
|
|
22
|
+
readonly internalType: "uint256";
|
|
23
|
+
readonly name: "borrowRatePerBlock";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
}, {
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
readonly name: "reserveFactorMantissa";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}, {
|
|
30
|
+
readonly internalType: "uint256";
|
|
31
|
+
readonly name: "totalBorrows";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
}, {
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly name: "totalReserves";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}, {
|
|
38
|
+
readonly internalType: "uint256";
|
|
39
|
+
readonly name: "totalSupply";
|
|
40
|
+
readonly type: "uint256";
|
|
41
|
+
}, {
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly name: "totalCash";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}, {
|
|
46
|
+
readonly internalType: "bool";
|
|
47
|
+
readonly name: "isListed";
|
|
48
|
+
readonly type: "bool";
|
|
49
|
+
}, {
|
|
50
|
+
readonly internalType: "uint256";
|
|
51
|
+
readonly name: "collateralFactorMantissa";
|
|
52
|
+
readonly type: "uint256";
|
|
53
|
+
}, {
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
readonly name: "underlyingAssetAddress";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
}, {
|
|
58
|
+
readonly internalType: "uint256";
|
|
59
|
+
readonly name: "vTokenDecimals";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly internalType: "uint256";
|
|
63
|
+
readonly name: "underlyingDecimals";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}, {
|
|
66
|
+
readonly internalType: "uint256";
|
|
67
|
+
readonly name: "venusSupplySpeed";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}, {
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
readonly name: "venusBorrowSpeed";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly internalType: "uint256";
|
|
75
|
+
readonly name: "dailySupplyXvs";
|
|
76
|
+
readonly type: "uint256";
|
|
77
|
+
}, {
|
|
78
|
+
readonly internalType: "uint256";
|
|
79
|
+
readonly name: "dailyBorrowXvs";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}, {
|
|
82
|
+
readonly internalType: "uint256";
|
|
83
|
+
readonly name: "pausedActions";
|
|
84
|
+
readonly type: "uint256";
|
|
85
|
+
}, {
|
|
86
|
+
readonly internalType: "uint256";
|
|
87
|
+
readonly name: "liquidationThresholdMantissa";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}, {
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
readonly name: "liquidationIncentiveMantissa";
|
|
92
|
+
readonly type: "uint256";
|
|
93
|
+
}, {
|
|
94
|
+
readonly internalType: "bool";
|
|
95
|
+
readonly name: "isBorrowAllowed";
|
|
96
|
+
readonly type: "bool";
|
|
97
|
+
}, {
|
|
98
|
+
readonly internalType: "uint96";
|
|
99
|
+
readonly name: "poolId";
|
|
100
|
+
readonly type: "uint96";
|
|
101
|
+
}];
|
|
102
|
+
readonly internalType: "struct VenusLens.VTokenMetadata";
|
|
103
|
+
readonly name: "";
|
|
104
|
+
readonly type: "tuple";
|
|
105
|
+
}];
|
|
106
|
+
readonly stateMutability: "nonpayable";
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
}];
|
|
109
|
+
//# sourceMappingURL=VenusLensLegacy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VenusLensLegacy.d.ts","sourceRoot":"","sources":["../../../src/abis/compound-v2/VenusLensLegacy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyIrB,CAAA"}
|
|
@@ -989,26 +989,6 @@ export declare const CometAbi: readonly [{
|
|
|
989
989
|
readonly outputs: readonly [];
|
|
990
990
|
readonly stateMutability: "nonpayable";
|
|
991
991
|
readonly type: "function";
|
|
992
|
-
}, {
|
|
993
|
-
readonly anonymous: false;
|
|
994
|
-
readonly inputs: readonly [{
|
|
995
|
-
readonly indexed: true;
|
|
996
|
-
readonly internalType: "address";
|
|
997
|
-
readonly name: "owner";
|
|
998
|
-
readonly type: "address";
|
|
999
|
-
}, {
|
|
1000
|
-
readonly indexed: true;
|
|
1001
|
-
readonly internalType: "address";
|
|
1002
|
-
readonly name: "spender";
|
|
1003
|
-
readonly type: "address";
|
|
1004
|
-
}, {
|
|
1005
|
-
readonly indexed: false;
|
|
1006
|
-
readonly internalType: "uint256";
|
|
1007
|
-
readonly name: "amount";
|
|
1008
|
-
readonly type: "uint256";
|
|
1009
|
-
}];
|
|
1010
|
-
readonly name: "Approval";
|
|
1011
|
-
readonly type: "event";
|
|
1012
992
|
}, {
|
|
1013
993
|
readonly inputs: readonly [{
|
|
1014
994
|
readonly internalType: "address";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Comet.d.ts","sourceRoot":"","sources":["../../../src/abis/compound-v3/Comet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"Comet.d.ts","sourceRoot":"","sources":["../../../src/abis/compound-v3/Comet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2wDX,CAAA"}
|
|
@@ -1,16 +1,128 @@
|
|
|
1
|
-
export declare const MorphoLensAbi: {
|
|
2
|
-
inputs: {
|
|
3
|
-
internalType:
|
|
4
|
-
name:
|
|
5
|
-
type:
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
export declare const MorphoLensAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "bytes32[]";
|
|
4
|
+
readonly name: "marketsIds";
|
|
5
|
+
readonly type: "bytes32[]";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "user";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "morpho";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}];
|
|
15
|
+
readonly name: "getUserDataCompact";
|
|
16
|
+
readonly outputs: readonly [{
|
|
17
|
+
readonly internalType: "bytes";
|
|
18
|
+
readonly name: "data";
|
|
19
|
+
readonly type: "bytes";
|
|
20
|
+
}];
|
|
21
|
+
readonly stateMutability: "view";
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "getMarketDataCompact";
|
|
25
|
+
readonly type: "function";
|
|
26
|
+
readonly stateMutability: "view";
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly type: "address";
|
|
29
|
+
readonly name: "morpho";
|
|
30
|
+
}, {
|
|
31
|
+
readonly type: "bytes32[]";
|
|
32
|
+
readonly name: "marketsIds";
|
|
33
|
+
}];
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly type: "bytes";
|
|
36
|
+
readonly name: "data";
|
|
37
|
+
}];
|
|
38
|
+
}, {
|
|
39
|
+
readonly inputs: readonly [{
|
|
40
|
+
readonly internalType: "bytes32[]";
|
|
41
|
+
readonly name: "marketsIds";
|
|
42
|
+
readonly type: "bytes32[]";
|
|
43
|
+
}, {
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly name: "user";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}, {
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
readonly name: "morpho";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}];
|
|
52
|
+
readonly name: "getUserDataCompact";
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly internalType: "bytes";
|
|
55
|
+
readonly name: "data";
|
|
56
|
+
readonly type: "bytes";
|
|
57
|
+
}];
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
readonly type: "function";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "getMoolahMarketDataCompact";
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly stateMutability: "view";
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
readonly name: "morpho";
|
|
67
|
+
}, {
|
|
68
|
+
readonly type: "bytes32[]";
|
|
69
|
+
readonly name: "marketsIds";
|
|
70
|
+
}];
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly type: "bytes";
|
|
73
|
+
readonly name: "data";
|
|
74
|
+
}];
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly internalType: "bytes32[]";
|
|
78
|
+
readonly name: "marketsIds";
|
|
79
|
+
readonly type: "bytes32[]";
|
|
80
|
+
}, {
|
|
81
|
+
readonly internalType: "address";
|
|
82
|
+
readonly name: "user";
|
|
83
|
+
readonly type: "address";
|
|
84
|
+
}, {
|
|
85
|
+
readonly internalType: "address";
|
|
86
|
+
readonly name: "morpho";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}];
|
|
89
|
+
readonly name: "getListaUserDataCompact";
|
|
90
|
+
readonly outputs: readonly [{
|
|
91
|
+
readonly internalType: "bytes";
|
|
92
|
+
readonly name: "data";
|
|
93
|
+
readonly type: "bytes";
|
|
94
|
+
}];
|
|
95
|
+
readonly stateMutability: "view";
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "getMoolahMarketDataCompact";
|
|
99
|
+
readonly type: "function";
|
|
100
|
+
readonly stateMutability: "view";
|
|
101
|
+
readonly inputs: readonly [{
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
readonly name: "morpho";
|
|
104
|
+
}, {
|
|
105
|
+
readonly type: "bytes32[]";
|
|
106
|
+
readonly name: "marketsIds";
|
|
107
|
+
}];
|
|
108
|
+
readonly outputs: readonly [{
|
|
109
|
+
readonly type: "bytes";
|
|
110
|
+
readonly name: "data";
|
|
111
|
+
}];
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "getListaMarketDataCompact";
|
|
114
|
+
readonly type: "function";
|
|
115
|
+
readonly stateMutability: "view";
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
readonly name: "morpho";
|
|
119
|
+
}, {
|
|
120
|
+
readonly type: "bytes32[]";
|
|
121
|
+
readonly name: "marketsIds";
|
|
122
|
+
}];
|
|
123
|
+
readonly outputs: readonly [{
|
|
124
|
+
readonly type: "bytes";
|
|
125
|
+
readonly name: "data";
|
|
126
|
+
}];
|
|
127
|
+
}];
|
|
16
128
|
//# sourceMappingURL=lens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lens.d.ts","sourceRoot":"","sources":["../../../src/abis/morpho/lens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"lens.d.ts","sourceRoot":"","sources":["../../../src/abis/morpho/lens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgIhB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Multicall.d.ts","sourceRoot":"","sources":["../../../src/abis/multicall/Multicall.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Multicall.d.ts","sourceRoot":"","sources":["../../../src/abis/multicall/Multicall.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwGf,CAAA"}
|
|
@@ -1,134 +1,4 @@
|
|
|
1
1
|
export declare const ChainLinkAggregatorAbi: readonly [{
|
|
2
|
-
readonly anonymous: false;
|
|
3
|
-
readonly inputs: readonly [{
|
|
4
|
-
readonly indexed: true;
|
|
5
|
-
readonly internalType: "int256";
|
|
6
|
-
readonly name: "current";
|
|
7
|
-
readonly type: "int256";
|
|
8
|
-
}, {
|
|
9
|
-
readonly indexed: true;
|
|
10
|
-
readonly internalType: "uint256";
|
|
11
|
-
readonly name: "roundId";
|
|
12
|
-
readonly type: "uint256";
|
|
13
|
-
}, {
|
|
14
|
-
readonly indexed: false;
|
|
15
|
-
readonly internalType: "uint256";
|
|
16
|
-
readonly name: "updatedAt";
|
|
17
|
-
readonly type: "uint256";
|
|
18
|
-
}];
|
|
19
|
-
readonly name: "AnswerUpdated";
|
|
20
|
-
readonly type: "event";
|
|
21
|
-
}, {
|
|
22
|
-
readonly anonymous: false;
|
|
23
|
-
readonly inputs: readonly [{
|
|
24
|
-
readonly indexed: true;
|
|
25
|
-
readonly internalType: "uint256";
|
|
26
|
-
readonly name: "roundId";
|
|
27
|
-
readonly type: "uint256";
|
|
28
|
-
}, {
|
|
29
|
-
readonly indexed: true;
|
|
30
|
-
readonly internalType: "address";
|
|
31
|
-
readonly name: "startedBy";
|
|
32
|
-
readonly type: "address";
|
|
33
|
-
}, {
|
|
34
|
-
readonly indexed: false;
|
|
35
|
-
readonly internalType: "uint256";
|
|
36
|
-
readonly name: "startedAt";
|
|
37
|
-
readonly type: "uint256";
|
|
38
|
-
}];
|
|
39
|
-
readonly name: "NewRound";
|
|
40
|
-
readonly type: "event";
|
|
41
|
-
}, {
|
|
42
|
-
readonly anonymous: false;
|
|
43
|
-
readonly inputs: readonly [{
|
|
44
|
-
readonly indexed: true;
|
|
45
|
-
readonly internalType: "address";
|
|
46
|
-
readonly name: "from";
|
|
47
|
-
readonly type: "address";
|
|
48
|
-
}, {
|
|
49
|
-
readonly indexed: true;
|
|
50
|
-
readonly internalType: "address";
|
|
51
|
-
readonly name: "to";
|
|
52
|
-
readonly type: "address";
|
|
53
|
-
}];
|
|
54
|
-
readonly name: "OwnershipTransferRequested";
|
|
55
|
-
readonly type: "event";
|
|
56
|
-
}, {
|
|
57
|
-
readonly anonymous: false;
|
|
58
|
-
readonly inputs: readonly [{
|
|
59
|
-
readonly indexed: true;
|
|
60
|
-
readonly internalType: "address";
|
|
61
|
-
readonly name: "from";
|
|
62
|
-
readonly type: "address";
|
|
63
|
-
}, {
|
|
64
|
-
readonly indexed: true;
|
|
65
|
-
readonly internalType: "address";
|
|
66
|
-
readonly name: "to";
|
|
67
|
-
readonly type: "address";
|
|
68
|
-
}];
|
|
69
|
-
readonly name: "OwnershipTransferred";
|
|
70
|
-
readonly type: "event";
|
|
71
|
-
}, {
|
|
72
|
-
readonly inputs: readonly [];
|
|
73
|
-
readonly name: "acceptOwnership";
|
|
74
|
-
readonly outputs: readonly [];
|
|
75
|
-
readonly stateMutability: "nonpayable";
|
|
76
|
-
readonly type: "function";
|
|
77
|
-
}, {
|
|
78
|
-
readonly inputs: readonly [];
|
|
79
|
-
readonly name: "accessController";
|
|
80
|
-
readonly outputs: readonly [{
|
|
81
|
-
readonly internalType: "contract AccessControllerInterface";
|
|
82
|
-
readonly name: "";
|
|
83
|
-
readonly type: "address";
|
|
84
|
-
}];
|
|
85
|
-
readonly stateMutability: "view";
|
|
86
|
-
readonly type: "function";
|
|
87
|
-
}, {
|
|
88
|
-
readonly inputs: readonly [];
|
|
89
|
-
readonly name: "aggregator";
|
|
90
|
-
readonly outputs: readonly [{
|
|
91
|
-
readonly internalType: "address";
|
|
92
|
-
readonly name: "";
|
|
93
|
-
readonly type: "address";
|
|
94
|
-
}];
|
|
95
|
-
readonly stateMutability: "view";
|
|
96
|
-
readonly type: "function";
|
|
97
|
-
}, {
|
|
98
|
-
readonly inputs: readonly [{
|
|
99
|
-
readonly internalType: "address";
|
|
100
|
-
readonly name: "_aggregator";
|
|
101
|
-
readonly type: "address";
|
|
102
|
-
}];
|
|
103
|
-
readonly name: "confirmAggregator";
|
|
104
|
-
readonly outputs: readonly [];
|
|
105
|
-
readonly stateMutability: "nonpayable";
|
|
106
|
-
readonly type: "function";
|
|
107
|
-
}, {
|
|
108
|
-
readonly inputs: readonly [];
|
|
109
|
-
readonly name: "description";
|
|
110
|
-
readonly outputs: readonly [{
|
|
111
|
-
readonly internalType: "string";
|
|
112
|
-
readonly name: "";
|
|
113
|
-
readonly type: "string";
|
|
114
|
-
}];
|
|
115
|
-
readonly stateMutability: "view";
|
|
116
|
-
readonly type: "function";
|
|
117
|
-
}, {
|
|
118
|
-
readonly inputs: readonly [{
|
|
119
|
-
readonly internalType: "uint256";
|
|
120
|
-
readonly name: "_roundId";
|
|
121
|
-
readonly type: "uint256";
|
|
122
|
-
}];
|
|
123
|
-
readonly name: "getAnswer";
|
|
124
|
-
readonly outputs: readonly [{
|
|
125
|
-
readonly internalType: "int256";
|
|
126
|
-
readonly name: "";
|
|
127
|
-
readonly type: "int256";
|
|
128
|
-
}];
|
|
129
|
-
readonly stateMutability: "view";
|
|
130
|
-
readonly type: "function";
|
|
131
|
-
}, {
|
|
132
2
|
readonly inputs: readonly [{
|
|
133
3
|
readonly internalType: "uint80";
|
|
134
4
|
readonly name: "_roundId";
|
|
@@ -238,80 +108,6 @@ export declare const ChainLinkAggregatorAbi: readonly [{
|
|
|
238
108
|
}];
|
|
239
109
|
readonly stateMutability: "view";
|
|
240
110
|
readonly type: "function";
|
|
241
|
-
}, {
|
|
242
|
-
readonly inputs: readonly [{
|
|
243
|
-
readonly internalType: "uint16";
|
|
244
|
-
readonly name: "";
|
|
245
|
-
readonly type: "uint16";
|
|
246
|
-
}];
|
|
247
|
-
readonly name: "phaseAggregators";
|
|
248
|
-
readonly outputs: readonly [{
|
|
249
|
-
readonly internalType: "contract AggregatorV2V3Interface";
|
|
250
|
-
readonly name: "";
|
|
251
|
-
readonly type: "address";
|
|
252
|
-
}];
|
|
253
|
-
readonly stateMutability: "view";
|
|
254
|
-
readonly type: "function";
|
|
255
|
-
}, {
|
|
256
|
-
readonly inputs: readonly [];
|
|
257
|
-
readonly name: "phaseId";
|
|
258
|
-
readonly outputs: readonly [{
|
|
259
|
-
readonly internalType: "uint16";
|
|
260
|
-
readonly name: "";
|
|
261
|
-
readonly type: "uint16";
|
|
262
|
-
}];
|
|
263
|
-
readonly stateMutability: "view";
|
|
264
|
-
readonly type: "function";
|
|
265
|
-
}, {
|
|
266
|
-
readonly inputs: readonly [{
|
|
267
|
-
readonly internalType: "address";
|
|
268
|
-
readonly name: "_aggregator";
|
|
269
|
-
readonly type: "address";
|
|
270
|
-
}];
|
|
271
|
-
readonly name: "proposeAggregator";
|
|
272
|
-
readonly outputs: readonly [];
|
|
273
|
-
readonly stateMutability: "nonpayable";
|
|
274
|
-
readonly type: "function";
|
|
275
|
-
}, {
|
|
276
|
-
readonly inputs: readonly [];
|
|
277
|
-
readonly name: "proposedAggregator";
|
|
278
|
-
readonly outputs: readonly [{
|
|
279
|
-
readonly internalType: "contract AggregatorV2V3Interface";
|
|
280
|
-
readonly name: "";
|
|
281
|
-
readonly type: "address";
|
|
282
|
-
}];
|
|
283
|
-
readonly stateMutability: "view";
|
|
284
|
-
readonly type: "function";
|
|
285
|
-
}, {
|
|
286
|
-
readonly inputs: readonly [{
|
|
287
|
-
readonly internalType: "uint80";
|
|
288
|
-
readonly name: "_roundId";
|
|
289
|
-
readonly type: "uint80";
|
|
290
|
-
}];
|
|
291
|
-
readonly name: "proposedGetRoundData";
|
|
292
|
-
readonly outputs: readonly [{
|
|
293
|
-
readonly internalType: "uint80";
|
|
294
|
-
readonly name: "roundId";
|
|
295
|
-
readonly type: "uint80";
|
|
296
|
-
}, {
|
|
297
|
-
readonly internalType: "int256";
|
|
298
|
-
readonly name: "answer";
|
|
299
|
-
readonly type: "int256";
|
|
300
|
-
}, {
|
|
301
|
-
readonly internalType: "uint256";
|
|
302
|
-
readonly name: "startedAt";
|
|
303
|
-
readonly type: "uint256";
|
|
304
|
-
}, {
|
|
305
|
-
readonly internalType: "uint256";
|
|
306
|
-
readonly name: "updatedAt";
|
|
307
|
-
readonly type: "uint256";
|
|
308
|
-
}, {
|
|
309
|
-
readonly internalType: "uint80";
|
|
310
|
-
readonly name: "answeredInRound";
|
|
311
|
-
readonly type: "uint80";
|
|
312
|
-
}];
|
|
313
|
-
readonly stateMutability: "view";
|
|
314
|
-
readonly type: "function";
|
|
315
111
|
}, {
|
|
316
112
|
readonly inputs: readonly [];
|
|
317
113
|
readonly name: "proposedLatestRoundData";
|
|
@@ -339,33 +135,19 @@ export declare const ChainLinkAggregatorAbi: readonly [{
|
|
|
339
135
|
readonly stateMutability: "view";
|
|
340
136
|
readonly type: "function";
|
|
341
137
|
}, {
|
|
138
|
+
readonly constant: true;
|
|
342
139
|
readonly inputs: readonly [{
|
|
343
|
-
readonly internalType: "
|
|
344
|
-
readonly name: "
|
|
140
|
+
readonly internalType: "contract MToken";
|
|
141
|
+
readonly name: "mToken";
|
|
345
142
|
readonly type: "address";
|
|
346
143
|
}];
|
|
347
|
-
readonly name: "
|
|
348
|
-
readonly outputs: readonly [];
|
|
349
|
-
readonly stateMutability: "nonpayable";
|
|
350
|
-
readonly type: "function";
|
|
351
|
-
}, {
|
|
352
|
-
readonly inputs: readonly [{
|
|
353
|
-
readonly internalType: "address";
|
|
354
|
-
readonly name: "_to";
|
|
355
|
-
readonly type: "address";
|
|
356
|
-
}];
|
|
357
|
-
readonly name: "transferOwnership";
|
|
358
|
-
readonly outputs: readonly [];
|
|
359
|
-
readonly stateMutability: "nonpayable";
|
|
360
|
-
readonly type: "function";
|
|
361
|
-
}, {
|
|
362
|
-
readonly inputs: readonly [];
|
|
363
|
-
readonly name: "version";
|
|
144
|
+
readonly name: "getUnderlyingPrice";
|
|
364
145
|
readonly outputs: readonly [{
|
|
365
146
|
readonly internalType: "uint256";
|
|
366
147
|
readonly name: "";
|
|
367
148
|
readonly type: "uint256";
|
|
368
149
|
}];
|
|
150
|
+
readonly payable: false;
|
|
369
151
|
readonly stateMutability: "view";
|
|
370
152
|
readonly type: "function";
|
|
371
153
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainLinkAggregator.d.ts","sourceRoot":"","sources":["../../../src/abis/oracle/ChainLinkAggregator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"ChainLinkAggregator.d.ts","sourceRoot":"","sources":["../../../src/abis/oracle/ChainLinkAggregator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4LzB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const ProxyOracleAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "price";
|
|
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 internalType: "address";
|
|
14
|
+
readonly name: "asset";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}];
|
|
17
|
+
readonly name: "peek";
|
|
18
|
+
readonly outputs: readonly [{
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
readonly stateMutability: "view";
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
}];
|
|
26
|
+
//# sourceMappingURL=ProxyOracle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProxyOracle.d.ts","sourceRoot":"","sources":["../../../src/abis/oracle/ProxyOracle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;EAqBjB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const UniswapV3Abi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "slot0";
|
|
4
|
+
readonly outputs: readonly [{
|
|
5
|
+
readonly internalType: "uint160";
|
|
6
|
+
readonly name: "sqrtPriceX96";
|
|
7
|
+
readonly type: "uint160";
|
|
8
|
+
}];
|
|
9
|
+
readonly stateMutability: "view";
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
}];
|
|
12
|
+
//# sourceMappingURL=UniV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UniV3.d.ts","sourceRoot":"","sources":["../../../src/abis/oracle/UniV3.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;EAcf,CAAA"}
|
package/dist/assets/index.d.ts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { Lender } from "@1delta/asset-registry";
|
|
2
1
|
/** No specific configuration */
|
|
3
2
|
export declare const LENDER_MODE_NO_MODE = 0;
|
|
4
3
|
export declare function getAaveStyleProtocolTokenMap(chainId: string, lender: string): any;
|
|
5
|
-
export declare const getAaveAssets: (chainId: string | undefined, lendingProtocol
|
|
6
|
-
export declare const
|
|
7
|
-
export declare
|
|
8
|
-
export declare const getCompoundV2Assets: (chainId: string | undefined, lendingProtocol?: Lender) => string[];
|
|
9
|
-
export declare const getSwaylendAssets: (chainId: string | undefined, lendingProtocol?: Lender) => string[];
|
|
10
|
-
export declare function getAaveTypePoolDataProviderAddress(chainId: string, lender: string): any;
|
|
4
|
+
export declare const getAaveAssets: (chainId: string | undefined, lendingProtocol: string | undefined) => string[];
|
|
5
|
+
export declare const getCompoundV3Assets: (chainId: string | undefined, lendingProtocol: string | undefined) => string[];
|
|
6
|
+
export declare function getAaveTypePoolDataProviderAddress(chainId: string, lender: string): string;
|
|
11
7
|
export declare function getAaveTypePoolAddress(chainId: string, lender: string): string;
|
|
12
|
-
export declare function getAssetMeta(chainId: string, asset: string | undefined): any;
|
|
13
8
|
/**
|
|
14
9
|
* Convert a string (asset symbol) to a Supported asset, considering also naming conflicts
|
|
15
10
|
* @param a string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAQA,gCAAgC;AAChC,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAC9B,GAAG,CAChD;AAED,eAAO,MAAM,aAAa,GACxB,SAAS,MAAM,GAAG,SAAS,EAC3B,iBAAiB,MAAM,GAAG,SAAS,KAClC,MAAM,EAIR,CAAA;AAED,eAAO,MAAM,mBAAmB,GAC9B,SAAS,MAAM,GAAG,SAAS,EAC3B,iBAAiB,MAAM,GAAG,SAAS,KAClC,MAAM,EAIR,CAAA;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,UAIf;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,MAAM,CAGR;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,GAAG,MAAM,WAEpC,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,cAAc,MAAM,EAAE,SAAS,MAAM,WAEtE,CAAA"}
|
|
@@ -26,4 +26,14 @@ export declare function meetsLiquidityThresholds(pool: {
|
|
|
26
26
|
totalDebtUSD: number;
|
|
27
27
|
totalLiquidityUSD: number;
|
|
28
28
|
}, thresholds: LiquidityThresholds): boolean;
|
|
29
|
+
export declare function meetsLiquidityThresholdsLong(pool: {
|
|
30
|
+
totalDepositsUSD: number;
|
|
31
|
+
totalDebtUSD: number;
|
|
32
|
+
totalLiquidityUSD: number;
|
|
33
|
+
}, thresholds: LiquidityThresholds): boolean;
|
|
34
|
+
export declare function meetsLiquidityThresholdsShort(pool: {
|
|
35
|
+
totalDepositsUSD: number;
|
|
36
|
+
totalDebtUSD: number;
|
|
37
|
+
totalLiquidityUSD: number;
|
|
38
|
+
}, thresholds: LiquidityThresholds): boolean;
|
|
29
39
|
//# sourceMappingURL=liquidityThresholds.d.ts.map
|