@merkl/api 1.0.78 → 1.0.80
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/src/cache/declaration.d.ts +133 -0
- package/dist/src/cache/index.d.ts +61 -0
- package/dist/src/cache/redis.d.ts +23 -0
- package/dist/src/constants.d.ts +86 -0
- package/dist/src/eden/index.d.ts +19038 -0
- package/dist/src/eden/index.js +2 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Ajna.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Badger.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Compound.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Dolomite.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/EigenLayer.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Encompassing.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +108 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20Snapshot.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Morpho.d.ts +9 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Radiant.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Silo.d.ts +9 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/UniswapV4.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Vest.d.ts +9 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/default.d.ts +5 -0
- package/dist/src/engine/deprecated/dynamicData/utils/fetchA51Strategies.d.ts +18 -0
- package/dist/src/engine/deprecated/dynamicData/utils/fetchClamInfo.d.ts +2 -0
- package/dist/src/engine/deprecated/dynamicData/utils/fetchLogs.d.ts +14 -0
- package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.d.ts +19 -0
- package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.d.ts +2 -0
- package/dist/src/engine/deprecated/dynamicData/utils/getDolomiteMarkets.d.ts +8 -0
- package/dist/src/engine/deprecated/dynamicData/utils/getEulerV2Vaults.d.ts +7 -0
- package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +8 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +103 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/eulerVaultNames.d.ts +1 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +5 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getBlacklistedSupply.d.ts +2 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getCrossCurveTokenPrice.d.ts +1 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.d.ts +3 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +2 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/spliceTVL.d.ts +8 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/treasuryFinder.d.ts +2 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +30 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +35 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +35 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +107 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +85 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +75 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +88 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +44 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +48 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +45 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +44 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +34 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +40 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +28 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +36 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +35 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +39 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +33 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +30 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +43 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +44 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +43 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +29 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +36 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +50 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +33 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +38 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +29 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +29 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +32 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +40 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +34 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +31 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +31 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +16 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +29 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +39 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +52 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +32 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +30 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +44 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +28 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +32 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +53 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +39 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +49 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +4 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +54 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +38 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.d.ts +5 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.d.ts +4 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound2.d.ts +3 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound3.d.ts +3 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound4.d.ts +3 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeStruct.d.ts +7 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +7 -0
- package/dist/src/engine/implementations/Aave/metadata.d.ts +35 -0
- package/dist/src/engine/implementations/Aave/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Ajna/metadata.d.ts +19 -0
- package/dist/src/engine/implementations/Ajna/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Ambient/metadata.d.ts +19 -0
- package/dist/src/engine/implementations/Ambient/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Badger/metadata.d.ts +19 -0
- package/dist/src/engine/implementations/Clamm/metadata.d.ts +45 -0
- package/dist/src/engine/implementations/Compound/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Default/metadata.d.ts +13 -0
- package/dist/src/engine/implementations/Dolomite/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/EigenLayer/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Encompassing/metadata.d.ts +16 -0
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/detect.d.ts +8 -0
- package/dist/src/engine/implementations/Erc20/subTypes/factories.d.ts +5 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +30 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +20 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.d.ts +5 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gamma/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gamma/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +30 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +16 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/rooster/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/rooster/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/spectra/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/spectra/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +31 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/metadata.d.ts +30 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +125 -0
- package/dist/src/engine/implementations/Erc20/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +15 -0
- package/dist/src/engine/implementations/Erc721/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +29 -0
- package/dist/src/engine/implementations/EventBased/metadata.d.ts +24 -0
- package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +24 -0
- package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +18 -0
- package/dist/src/engine/implementations/FraxLend/tvlBorrow.d.ts +7 -0
- package/dist/src/engine/implementations/FraxLend/tvlCollateral.d.ts +7 -0
- package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +20 -0
- package/dist/src/engine/implementations/Invalid/metadata.d.ts +11 -0
- package/dist/src/engine/implementations/Ion/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +24 -0
- package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
- package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Morpho/metadata.d.ts +26 -0
- package/dist/src/engine/implementations/MultiLog/metadata.d.ts +8 -0
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Radiant/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Silo/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/SymbioticVault/metadata.d.ts +20 -0
- package/dist/src/engine/implementations/SymbioticVault/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +20 -0
- package/dist/src/engine/implementations/UniswapV4/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Vest/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +21 -0
- package/dist/src/engine/implementations/morphoBorrow/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/morphoBorrowSingleToken/metadata.d.ts +21 -0
- package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +21 -0
- package/dist/src/engine/implementations/morphoCollateral/tvl.d.ts +16 -0
- package/dist/src/engine/implementations/morphoCollateralSingleToken/metadata.d.ts +21 -0
- package/dist/src/engine/implementations/morphoCollateralSingleToken/tvl.d.ts +8 -0
- package/dist/src/engine/implementations/morphoSingleToken/tvl.d.ts +9 -0
- package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +21 -0
- package/dist/src/engine/implementations/morphoSupply/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/morphoSupplySingleToken/metadata.d.ts +21 -0
- package/dist/src/engine/implementations/morphoVault/metadata.d.ts +21 -0
- package/dist/src/engine/implementations/morphoVault/tvl.d.ts +7 -0
- package/dist/src/engine/metadata/factory.d.ts +3 -0
- package/dist/src/engine/tvl/factory.d.ts +6 -0
- package/dist/src/engine/tvl/logStates.d.ts +21 -0
- package/dist/src/errors/BadRequest.error.d.ts +4 -0
- package/dist/src/errors/Conflict.error.d.ts +4 -0
- package/dist/src/errors/HttpError.d.ts +11 -0
- package/dist/src/errors/InvalidParameter.error.d.ts +4 -0
- package/dist/src/errors/NotFound.error.d.ts +8 -0
- package/dist/src/errors/Opportunity.error.d.ts +6 -0
- package/dist/src/errors/UnableToFindPrice.error.d.ts +4 -0
- package/dist/src/errors/Unauthorized.error.d.ts +4 -0
- package/dist/src/errors/VoidString.error.d.ts +4 -0
- package/dist/src/errors/index.d.ts +6 -0
- package/dist/src/guards/BackOffice.guard.d.ts +7 -0
- package/dist/src/guards/Engine.guard.d.ts +7 -0
- package/dist/src/guards/TokenAuth.guard.d.ts +7 -0
- package/dist/src/guards/VerifyJwt.guard.d.ts +10 -0
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +26 -0
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +26 -0
- package/dist/src/index.d.ts +10138 -0
- package/dist/src/jobs/pendings.d.ts +1 -0
- package/dist/src/jobs/prices.d.ts +1 -0
- package/dist/src/jobs/reward-breakdowns.d.ts +1 -0
- package/dist/src/jobs/rewards.d.ts +1 -0
- package/dist/src/jobs/set-dungeon-keeper.d.ts +1 -0
- package/dist/src/jobs/update-analytics.d.ts +1 -0
- package/dist/src/jobs/update-dynamic-data.d.ts +1 -0
- package/dist/src/jobs/update-euler-vaults.d.ts +1 -0
- package/dist/src/jobs/update-rpc-calls-cache.d.ts +1 -0
- package/dist/src/jobs/update-uniswap-v4-pools.d.ts +1 -0
- package/dist/src/jobs/update-v3-caches.d.ts +12 -0
- package/dist/src/libs/computeFee.d.ts +4 -0
- package/dist/src/libs/deprecated-merklv3/index.d.ts +5 -0
- package/dist/src/libs/getTokensList.d.ts +23 -0
- package/dist/src/libs/merklChainData.d.ts +4 -0
- package/dist/src/libs/parse/marketsWithCache.d.ts +4 -0
- package/dist/src/libs/positions/EigenLayer/index.d.ts +6 -0
- package/dist/src/libs/positions/ajna/index.d.ts +6 -0
- package/dist/src/libs/positions/badger/index.d.ts +6 -0
- package/dist/src/libs/positions/clamm/index.d.ts +7 -0
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +5 -0
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +8 -0
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +10 -0
- package/dist/src/libs/positions/clamm/thegraph/index.d.ts +40 -0
- package/dist/src/libs/positions/compound/index.d.ts +24 -0
- package/dist/src/libs/positions/dolomite/index.d.ts +17 -0
- package/dist/src/libs/positions/erc20/index.d.ts +5 -0
- package/dist/src/libs/positions/euler/index.d.ts +5 -0
- package/dist/src/libs/positions/index.d.ts +3 -0
- package/dist/src/libs/positions/morpho/index.d.ts +6 -0
- package/dist/src/libs/positions/prepareFetch.d.ts +22 -0
- package/dist/src/libs/positions/silo/index.d.ts +5 -0
- package/dist/src/libs/positions/types.d.ts +75 -0
- package/dist/src/libs/staticCampaigns.d.ts +7 -0
- package/dist/src/libs/tokens/allowances.d.ts +1 -0
- package/dist/src/libs/tokens/balances.d.ts +11 -0
- package/dist/src/libs/tokens/tokenInfo.d.ts +8 -0
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +284 -0
- package/dist/src/modules/v4/accounting/accounting.model.d.ts +32 -0
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +99 -0
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +59 -0
- package/dist/src/modules/v4/airflow/airflow.service.d.ts +3 -0
- package/dist/src/modules/v4/apr/apr.model.d.ts +54 -0
- package/dist/src/modules/v4/apr/apr.service.d.ts +9 -0
- package/dist/src/modules/v4/authentication/authentication.controller.d.ts +74 -0
- package/dist/src/modules/v4/authentication/authentication.model.d.ts +10 -0
- package/dist/src/modules/v4/authentication/authentication.service.d.ts +10 -0
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +150 -0
- package/dist/src/modules/v4/blacklist/blacklist.model.d.ts +20 -0
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +21 -0
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +24 -0
- package/dist/src/modules/v4/boost/boost.controller.d.ts +110 -0
- package/dist/src/modules/v4/boost/boost.model.d.ts +12 -0
- package/dist/src/modules/v4/boost/boost.service.d.ts +11 -0
- package/dist/src/modules/v4/bucket/bucket.model.d.ts +10 -0
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +14 -0
- package/dist/src/modules/v4/cache/cache.model.d.ts +13 -0
- package/dist/src/modules/v4/cache/cache.repository.d.ts +8 -0
- package/dist/src/modules/v4/cache/cache.service.d.ts +12 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +1008 -0
- package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +9 -0
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +6 -0
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +227 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +999 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +405 -0
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +566 -0
- package/dist/src/modules/v4/chain/chain.controller.d.ts +194 -0
- package/dist/src/modules/v4/chain/chain.model.d.ts +52 -0
- package/dist/src/modules/v4/chain/chain.repository.d.ts +104 -0
- package/dist/src/modules/v4/chain/chain.service.d.ts +83 -0
- package/dist/src/modules/v4/chainInteraction/chainInteraction.service.d.ts +2 -0
- package/dist/src/modules/v4/claims/claims.controller.d.ts +55 -0
- package/dist/src/modules/v4/claims/claims.model.d.ts +9 -0
- package/dist/src/modules/v4/claims/claims.repository.d.ts +5 -0
- package/dist/src/modules/v4/claims/claims.service.d.ts +9 -0
- package/dist/src/modules/v4/coingecko/coingecko.model.d.ts +0 -0
- package/dist/src/modules/v4/coingecko/coingecko.repository.d.ts +14 -0
- package/dist/src/modules/v4/coingecko/coingecko.service.d.ts +16 -0
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +164 -0
- package/dist/src/modules/v4/computedValue/computedValue.model.d.ts +27 -0
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +21 -0
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +22 -0
- package/dist/src/modules/v4/creator/creator.controller.d.ts +456 -0
- package/dist/src/modules/v4/creator/creator.model.d.ts +59 -0
- package/dist/src/modules/v4/creator/creator.repository.d.ts +97 -0
- package/dist/src/modules/v4/creator/creator.service.d.ts +192 -0
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +20 -0
- package/dist/src/modules/v4/enso/enso.model.d.ts +166 -0
- package/dist/src/modules/v4/enso/enso.service.d.ts +69 -0
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +58 -0
- package/dist/src/modules/v4/explorer/explorer.model.d.ts +16 -0
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +21 -0
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +28 -0
- package/dist/src/modules/v4/icon/icon.model.d.ts +4 -0
- package/dist/src/modules/v4/icon/icon.service.d.ts +5 -0
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +128 -0
- package/dist/src/modules/v4/interaction/interaction.model.d.ts +110 -0
- package/dist/src/modules/v4/interaction/interaction.service.d.ts +38 -0
- package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +114 -0
- package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +34 -0
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +50 -0
- package/dist/src/modules/v4/liquidity/liquidity.model.d.ts +25 -0
- package/dist/src/modules/v4/liquidity/liquidity.repository.d.ts +14 -0
- package/dist/src/modules/v4/liquidity/liquidity.service.d.ts +5 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +113 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.model.d.ts +13 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +23 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +44 -0
- package/dist/src/modules/v4/node/node.controller.d.ts +65 -0
- package/dist/src/modules/v4/node/node.model.d.ts +27 -0
- package/dist/src/modules/v4/node/node.repository.d.ts +31 -0
- package/dist/src/modules/v4/node/node.service.d.ts +27 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +1381 -0
- package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +131 -0
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +174 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +499 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +1052 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +704 -0
- package/dist/src/modules/v4/opportunity/transform-id.pipe.d.ts +5 -0
- package/dist/src/modules/v4/opportunity/validate-id.pipe.d.ts +5 -0
- package/dist/src/modules/v4/parse/parse.controller.d.ts +64 -0
- package/dist/src/modules/v4/parse/parse.model.d.ts +10 -0
- package/dist/src/modules/v4/payload/payload.controller.d.ts +127 -0
- package/dist/src/modules/v4/payload/payload.model.d.ts +309 -0
- package/dist/src/modules/v4/payload/payload.service.d.ts +27 -0
- package/dist/src/modules/v4/price/price.controller.d.ts +267 -0
- package/dist/src/modules/v4/price/price.model.d.ts +38 -0
- package/dist/src/modules/v4/price/price.repository.d.ts +41 -0
- package/dist/src/modules/v4/price/price.service.d.ts +51 -0
- package/dist/src/modules/v4/prisma/index.d.ts +54 -0
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +1190 -0
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +334 -0
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +3237 -0
- package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +50 -0
- package/dist/src/modules/v4/programPayload/subPayloads/hypurrFi.d.ts +72 -0
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +290 -0
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +107 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +89 -0
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +35 -0
- package/dist/src/modules/v4/referral/referral.controller.d.ts +104 -0
- package/dist/src/modules/v4/referral/referral.model.d.ts +10 -0
- package/dist/src/modules/v4/referral/referral.service.d.ts +216 -0
- package/dist/src/modules/v4/reward/reward.controller.d.ts +598 -0
- package/dist/src/modules/v4/reward/reward.converter.d.ts +14 -0
- package/dist/src/modules/v4/reward/reward.model.d.ts +260 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +174 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +753 -0
- package/dist/src/modules/v4/router.d.ts +8568 -0
- package/dist/src/modules/v4/status/status.controller.d.ts +303 -0
- package/dist/src/modules/v4/status/status.model.d.ts +63 -0
- package/dist/src/modules/v4/status/status.repository.d.ts +104 -0
- package/dist/src/modules/v4/status/status.service.d.ts +89 -0
- package/dist/src/modules/v4/token/token.controller.d.ts +499 -0
- package/dist/src/modules/v4/token/token.model.d.ts +125 -0
- package/dist/src/modules/v4/token/token.repository.d.ts +138 -0
- package/dist/src/modules/v4/token/token.service.d.ts +361 -0
- package/dist/src/modules/v4/tracer/tracer.service.d.ts +3 -0
- package/dist/src/modules/v4/turtle/turtle.controller.d.ts +81 -0
- package/dist/src/modules/v4/turtle/turtle.repository.d.ts +14 -0
- package/dist/src/modules/v4/turtle/turtle.service.d.ts +17 -0
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +35 -0
- package/dist/src/modules/v4/tvl/tvl.service.d.ts +9 -0
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +480 -0
- package/dist/src/modules/v4/uniswap/uniswap.model.d.ts +55 -0
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +24 -0
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +21 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +445 -0
- package/dist/src/modules/v4/user/user.model.d.ts +85 -0
- package/dist/src/modules/v4/user/user.repository.d.ts +34 -0
- package/dist/src/modules/v4/user/user.service.d.ts +37 -0
- package/dist/src/plugins/errorHandler.d.ts +33 -0
- package/dist/src/routes/v1/allowances.d.ts +80 -0
- package/dist/src/routes/v1/balances.d.ts +63 -0
- package/dist/src/routes/v1/prices.d.ts +55 -0
- package/dist/src/routes/v1/router.d.ts +142 -0
- package/dist/src/routes/v1/tokens.d.ts +58 -0
- package/dist/src/routes/v2/merkl.d.ts +92 -0
- package/dist/src/routes/v2/router.d.ts +83 -0
- package/dist/src/routes/v3/app.d.ts +61 -0
- package/dist/src/routes/v3/blacklist.d.ts +58 -0
- package/dist/src/routes/v3/campaign/delay.d.ts +60 -0
- package/dist/src/routes/v3/campaignClaims.d.ts +61 -0
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +60 -0
- package/dist/src/routes/v3/campaigns.d.ts +71 -0
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +67 -0
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +60 -0
- package/dist/src/routes/v3/claims.d.ts +61 -0
- package/dist/src/routes/v3/compoundV2.d.ts +55 -0
- package/dist/src/routes/v3/createCampaign.d.ts +60 -0
- package/dist/src/routes/v3/dolomite.d.ts +59 -0
- package/dist/src/routes/v3/euler.d.ts +114 -0
- package/dist/src/routes/v3/fetch.d.ts +59 -0
- package/dist/src/routes/v3/health.d.ts +54 -0
- package/dist/src/routes/v3/lostyield.d.ts +66 -0
- package/dist/src/routes/v3/merkl.d.ts +116 -0
- package/dist/src/routes/v3/morphoMarkets.d.ts +75 -0
- package/dist/src/routes/v3/morphoVaults.d.ts +65 -0
- package/dist/src/routes/v3/multiChainPositions.d.ts +58 -0
- package/dist/src/routes/v3/opportunity.d.ts +127 -0
- package/dist/src/routes/v3/overview.d.ts +91 -0
- package/dist/src/routes/v3/parse.d.ts +60 -0
- package/dist/src/routes/v3/payload.d.ts +71 -0
- package/dist/src/routes/v3/poolInfo.d.ts +62 -0
- package/dist/src/routes/v3/positions.d.ts +75 -0
- package/dist/src/routes/v3/radiant.d.ts +69 -0
- package/dist/src/routes/v3/recipients.d.ts +59 -0
- package/dist/src/routes/v3/rewards.d.ts +86 -0
- package/dist/src/routes/v3/rewardsReport.d.ts +69 -0
- package/dist/src/routes/v3/router.d.ts +1403 -0
- package/dist/src/routes/v3/silo.d.ts +66 -0
- package/dist/src/routes/v3/token.d.ts +64 -0
- package/dist/src/routes/v3/twt/participants.d.ts +52 -0
- package/dist/src/routes/v3/uniswapv4.d.ts +252 -0
- package/dist/src/routes/v3/updates.d.ts +66 -0
- package/dist/src/routes/v3/userRewards.d.ts +82 -0
- package/dist/src/scripts/fill-coingecko-data.d.ts +1 -0
- package/dist/src/scripts/fill-descriptions.d.ts +1 -0
- package/dist/src/scripts/fill-unknown-tokens.d.ts +1 -0
- package/dist/src/scripts/reparse-opportunities.d.ts +1 -0
- package/dist/src/types/external/spectraAPI.d.ts +88 -0
- package/dist/src/types/index.d.ts +17 -0
- package/dist/src/utils/TailSampler.d.ts +8 -0
- package/dist/src/utils/bigintToString.d.ts +1 -0
- package/dist/src/utils/caseChanges.d.ts +4 -0
- package/dist/src/utils/decodeCalls.d.ts +3 -0
- package/dist/src/utils/encodeCalls.d.ts +3 -0
- package/dist/src/utils/error.d.ts +70 -0
- package/dist/src/utils/execute.d.ts +22 -0
- package/dist/src/utils/generateCardName.d.ts +6 -0
- package/dist/src/utils/generic.d.ts +7 -0
- package/dist/src/utils/hashArray.d.ts +2 -0
- package/dist/src/utils/lastBlockBefore.d.ts +3 -0
- package/dist/src/utils/logger.d.ts +54 -0
- package/dist/src/utils/pagination.d.ts +11 -0
- package/dist/src/utils/parseDistributionType.d.ts +1 -0
- package/dist/src/utils/pricer.d.ts +57 -0
- package/dist/src/utils/prices/chainlinkRead.d.ts +4 -0
- package/dist/src/utils/prices/curveVirtualPrice.d.ts +4 -0
- package/dist/src/utils/prices/getDQUICK.d.ts +4 -0
- package/dist/src/utils/prices/priceFetcherFactory.d.ts +10 -0
- package/dist/src/utils/prices/priceService.d.ts +13 -0
- package/dist/src/utils/prices/services/OnChainCallService.d.ts +8 -0
- package/dist/src/utils/prices/services/coinGeckoService.d.ts +12 -0
- package/dist/src/utils/prices/services/defillamaService.d.ts +12 -0
- package/dist/src/utils/prices/services/dexScreenerService.d.ts +12 -0
- package/dist/src/utils/prices/services/erc4626Service.d.ts +9 -0
- package/dist/src/utils/prices/services/getERC4626.d.ts +4 -0
- package/dist/src/utils/prices/services/indexCoopService.d.ts +12 -0
- package/dist/src/utils/prices/services/priceFetcher.d.ts +8 -0
- package/dist/src/utils/prices/services/uniswapV2PriceService.d.ts +8 -0
- package/dist/src/utils/prices/uniV2Price.d.ts +7 -0
- package/dist/src/utils/providers.d.ts +128 -0
- package/dist/src/utils/queries/allCampaigns.d.ts +1 -0
- package/dist/src/utils/sanitizeChain.d.ts +2 -0
- package/dist/src/utils/stryke.d.ts +2 -0
- package/dist/src/utils/throw.d.ts +22 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.AJNA;
|
4
|
+
export declare class AjnaDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.AJNA>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.BADGER;
|
4
|
+
export declare class BadgerDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.BADGER>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.CLAMM;
|
4
|
+
export declare class ClammDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.CLAMM>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.COMPOUND;
|
4
|
+
export declare class CompoundDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.COMPOUND>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.COMPOUND_V3;
|
4
|
+
export declare class CompoundV3DynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.COMPOUND_V3>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.DOLOMITE;
|
4
|
+
export declare class DolomiteDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.DOLOMITE>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.ERC721 | Campaign.ERC721FIXAPR;
|
4
|
+
export declare class ERC721DynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<campaignType>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.ERC6909 | Campaign.ERC6909FIXAPR | Campaign.ERC1155 | Campaign.ERC1155FIXAPR;
|
4
|
+
export declare class ERCMultiTokenDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<campaignType>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.EIGENLAYER;
|
4
|
+
export declare class EigenLayerDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.EIGENLAYER>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Campaign, CampaignDynamicData, CampaignParameters, MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.ENCOMPASSING;
|
4
|
+
export declare class EncompassingDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(_chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.ENCOMPASSING>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import { type Erc20LikeCampaignEnum, Erc20SubType } from "../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { DynamicDataBuilder } from "../interface";
|
4
|
+
export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCampaignEnum> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<({
|
6
|
+
apr: number;
|
7
|
+
totalSupplyTargetToken: any;
|
8
|
+
tvl: number;
|
9
|
+
displayTvl: number | undefined;
|
10
|
+
type: Erc20SubType;
|
11
|
+
typeInfo: any;
|
12
|
+
priceRewardToken: number;
|
13
|
+
amount: string;
|
14
|
+
campaignId: string;
|
15
|
+
campaignSubType: number;
|
16
|
+
campaignType: import("@angleprotocol/sdk/ts").Campaign.ERC20LOGPROCESSOR | import("@angleprotocol/sdk/ts").Campaign.ERC20_FIX_APR;
|
17
|
+
chainId: MerklChainId;
|
18
|
+
computeChainId: MerklChainId;
|
19
|
+
creator: string;
|
20
|
+
endTimestamp: number;
|
21
|
+
index: number;
|
22
|
+
mainParameter: string;
|
23
|
+
rewardToken: string;
|
24
|
+
startTimestamp: number;
|
25
|
+
lastEligibilityRatio?: number;
|
26
|
+
campaignParameters: import("@angleprotocol/sdk/ts").ERC20LogCampaignParameters;
|
27
|
+
} | {
|
28
|
+
apr: number;
|
29
|
+
totalSupplyTargetToken: any;
|
30
|
+
tvl: number;
|
31
|
+
displayTvl: number | undefined;
|
32
|
+
type: Erc20SubType;
|
33
|
+
typeInfo: any;
|
34
|
+
priceRewardToken: number;
|
35
|
+
amount: string;
|
36
|
+
campaignId: string;
|
37
|
+
campaignSubType: number;
|
38
|
+
campaignType: import("@angleprotocol/sdk/ts").Campaign.ERC20REBASELOGPROCESSOR | import("@angleprotocol/sdk/ts").Campaign.ERC20REBASEFIXAPR;
|
39
|
+
chainId: MerklChainId;
|
40
|
+
computeChainId: MerklChainId;
|
41
|
+
creator: string;
|
42
|
+
endTimestamp: number;
|
43
|
+
index: number;
|
44
|
+
mainParameter: string;
|
45
|
+
rewardToken: string;
|
46
|
+
startTimestamp: number;
|
47
|
+
lastEligibilityRatio?: number;
|
48
|
+
campaignParameters: import("@angleprotocol/sdk/ts").ERC20RebaseCampaignParameters;
|
49
|
+
} | {
|
50
|
+
apr: number;
|
51
|
+
totalSupplyTargetToken: any;
|
52
|
+
tvl: number;
|
53
|
+
displayTvl: number | undefined;
|
54
|
+
type: Erc20SubType;
|
55
|
+
typeInfo: any;
|
56
|
+
priceRewardToken: number;
|
57
|
+
amount: string;
|
58
|
+
campaignId: string;
|
59
|
+
campaignSubType: number;
|
60
|
+
campaignType: import("@angleprotocol/sdk/ts").Campaign.EULER;
|
61
|
+
chainId: MerklChainId;
|
62
|
+
computeChainId: MerklChainId;
|
63
|
+
creator: string;
|
64
|
+
endTimestamp: number;
|
65
|
+
index: number;
|
66
|
+
mainParameter: string;
|
67
|
+
rewardToken: string;
|
68
|
+
startTimestamp: number;
|
69
|
+
lastEligibilityRatio?: number;
|
70
|
+
campaignParameters: import("@angleprotocol/sdk/ts").BaseCampaignParameters & {
|
71
|
+
addressAsset: string;
|
72
|
+
collateralAddress?: string;
|
73
|
+
decimalsAsset: number;
|
74
|
+
decimalsCollateral?: number;
|
75
|
+
decimalsTargetToken: number;
|
76
|
+
evkAddress: string;
|
77
|
+
nameCollateral?: string;
|
78
|
+
nameTargetToken: string;
|
79
|
+
subCampaignType: import("@angleprotocol/sdk/ts").EulerSubCampaignType;
|
80
|
+
symbolAsset: string;
|
81
|
+
symbolCollateral?: string;
|
82
|
+
symbolTargetToken: string;
|
83
|
+
targetToken: string;
|
84
|
+
};
|
85
|
+
} | {
|
86
|
+
apr: number;
|
87
|
+
totalSupplyTargetToken: any;
|
88
|
+
tvl: number;
|
89
|
+
displayTvl: number | undefined;
|
90
|
+
type: Erc20SubType;
|
91
|
+
typeInfo: any;
|
92
|
+
priceRewardToken: number;
|
93
|
+
amount: string;
|
94
|
+
campaignId: string;
|
95
|
+
campaignSubType: number;
|
96
|
+
campaignType: import("@angleprotocol/sdk/ts").Campaign.ERC20;
|
97
|
+
chainId: MerklChainId;
|
98
|
+
computeChainId: MerklChainId;
|
99
|
+
creator: string;
|
100
|
+
endTimestamp: number;
|
101
|
+
index: number;
|
102
|
+
mainParameter: string;
|
103
|
+
rewardToken: string;
|
104
|
+
startTimestamp: number;
|
105
|
+
lastEligibilityRatio?: number;
|
106
|
+
campaignParameters: import("@angleprotocol/sdk/ts").ERC20CampaignParameters;
|
107
|
+
})[]>;
|
108
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.ERC20_SNAPSHOT;
|
4
|
+
export declare class Erc20SnapshotDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.ERC20_SNAPSHOT>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.EVENT_BASED;
|
4
|
+
export declare class EventBasedDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.EVENT_BASED>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.HYPERDRIVELOGPROCESSOR | Campaign.HYPERDRIVELOGFIXPROCESSOR;
|
4
|
+
export declare class HyperdriveDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<campaignType>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import { utils } from "ethers";
|
3
|
+
import type { DynamicDataBuilder } from "../interface";
|
4
|
+
type campaignType = Campaign.MORPHO;
|
5
|
+
export declare const MORPHO_INTERFACE: utils.Interface;
|
6
|
+
export declare class MorphoDynamicData implements DynamicDataBuilder<campaignType> {
|
7
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.MORPHO>[]>;
|
8
|
+
}
|
9
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.RADIANT;
|
4
|
+
export declare class RadiantDynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.RADIANT>[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import { utils } from "ethers";
|
3
|
+
import type { DynamicDataBuilder } from "../interface";
|
4
|
+
export declare const SILO_INTERFACE: utils.Interface;
|
5
|
+
type campaignType = Campaign.SILO;
|
6
|
+
export declare class SiloDynamicData implements DynamicDataBuilder<campaignType> {
|
7
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.SILO>[]>;
|
8
|
+
}
|
9
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type Campaign, type CampaignParameters, type MerklChainId, type UniswapV4CampaignDynamicData } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
type campaignType = Campaign.UNISWAP_V4;
|
4
|
+
export declare class UniswapV4DynamicData implements DynamicDataBuilder<campaignType> {
|
5
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<UniswapV4CampaignDynamicData[]>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
export declare const VEST_TREASURY = "0x7ccF5BbeC69c790D27dA3b5398B9e0d6D6EeC9F3";
|
4
|
+
export declare const VEST_TOKEN = "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4";
|
5
|
+
type campaignType = Campaign.VEST;
|
6
|
+
export declare class VestDynamicData implements DynamicDataBuilder<campaignType> {
|
7
|
+
build(chainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<CampaignDynamicData<Campaign.VEST>[]>;
|
8
|
+
}
|
9
|
+
export {};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { CampaignParameters, Campaign as CampaignType, MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { DynamicDataBuilder } from "../interface";
|
3
|
+
export declare class DefaultDynamicData implements DynamicDataBuilder<CampaignType> {
|
4
|
+
build(_chainId: MerklChainId, campaigns: CampaignParameters<CampaignType>[]): Promise<(import("@angleprotocol/sdk/ts").M0Campaign | import("@angleprotocol/sdk/ts").EigenLayerCampaign | import("@angleprotocol/sdk/ts").ERC20LogCampaign | import("@angleprotocol/sdk/ts").ERC20FixAPRCampaign | import("@angleprotocol/sdk/ts").ERC20RebaseLogCampaign | import("@angleprotocol/sdk/ts").ERC20RebaseFixAPRCampaign | import("@angleprotocol/sdk/ts").EulerCampaign | import("@angleprotocol/sdk/ts").EventBasedCampaign | import("@angleprotocol/sdk/ts").HyperDriveLogCampaign | import("@angleprotocol/sdk/ts").HyperDriveLogFixCampaign | import("@angleprotocol/sdk/ts").MorphoBorrowCampaign | import("@angleprotocol/sdk/ts").MorphoBorrowFixAPRCampaign | import("@angleprotocol/sdk/ts").MorphoCollateralCampaign | import("@angleprotocol/sdk/ts").MorphoCollateralFixAPRCampaign | import("@angleprotocol/sdk/ts").MorphoSupplyCampaign | import("@angleprotocol/sdk/ts").MorphoSupplyFixAPRCampaign | import("@angleprotocol/sdk/ts").InvalidCampaign | import("@angleprotocol/sdk/ts").ERC20Campaign | import("@angleprotocol/sdk/ts").CLAMMCampaign | import("@angleprotocol/sdk/ts").ERC20_SNAPSHOTCampaign | import("@angleprotocol/sdk/ts").JSON_AIRDROPCampaign | import("@angleprotocol/sdk/ts").SILOCampaign | import("@angleprotocol/sdk/ts").RadiantCampaign | import("@angleprotocol/sdk/ts").DolomiteCampaign | import("@angleprotocol/sdk/ts").BadgerCampaign | import("@angleprotocol/sdk/ts").CompoundCampaign | import("@angleprotocol/sdk/ts").AjnaCampaign | import("@angleprotocol/sdk/ts").UniswapV4Campaign | import("@angleprotocol/sdk/ts").IonCampaign | import("@angleprotocol/sdk/ts").VestCampaign | import("@angleprotocol/sdk/ts").SyncswapVaultCampaign | import("@angleprotocol/sdk/ts").AmbientCampaign | import("@angleprotocol/sdk/ts").EncompassingCampaign | import("@angleprotocol/sdk/ts").MaverickBPCampaign | import("@angleprotocol/sdk/ts").ERC6909Campaign | import("@angleprotocol/sdk/ts").ERC6909FixAPRCampaign | import("@angleprotocol/sdk/ts").CompoundV3Campaign | import("@angleprotocol/sdk/ts").CompoundV3FixAPRCampaign | import("@angleprotocol/sdk/ts").ERC721Campaign | import("@angleprotocol/sdk/ts").ERC721FixAPRCampaign | import("@angleprotocol/sdk/ts").MultiLogCampaign | import("@angleprotocol/sdk/ts").LockerCampaign | import("@angleprotocol/sdk/ts").ConvexCampaign | import("@angleprotocol/sdk/ts").StakeDAOCampaign | import("@angleprotocol/sdk/ts").MappingCampaign | import("@angleprotocol/sdk/ts").FraxLendCampaign | import("@angleprotocol/sdk/ts").FraxLendFixAPRCampaign | import("@angleprotocol/sdk/ts").SymbioticVaultCampaign | import("@angleprotocol/sdk/ts").TargetTokenCampaign | import("@angleprotocol/sdk/ts").AaveCampaign | import("@angleprotocol/sdk/ts").MorphoCampaign<import("@angleprotocol/sdk/ts").MorphoSubCampaignType>)[]>;
|
5
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
export declare type A51StrategiesType = {
|
3
|
+
pool: string;
|
4
|
+
vault: string;
|
5
|
+
id: string;
|
6
|
+
tickLower: number;
|
7
|
+
tickUpper: number;
|
8
|
+
};
|
9
|
+
export type A51StrategiesReturnType = {
|
10
|
+
[pool: string]: {
|
11
|
+
[vault: string]: {
|
12
|
+
id: string;
|
13
|
+
tickLower: number;
|
14
|
+
tickUpper: number;
|
15
|
+
}[];
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export declare function fetchA51Strategies(chainId: MerklChainId, pools: string[]): Promise<A51StrategiesReturnType>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
export type LogType = {
|
3
|
+
data: string;
|
4
|
+
topics: ReadonlyArray<string>;
|
5
|
+
blockNumber: string;
|
6
|
+
address: string;
|
7
|
+
blockHash: string;
|
8
|
+
logIndex: string;
|
9
|
+
};
|
10
|
+
export declare function fetchLogs(chainId: MerklChainId, topics: string[], addresses: string[], fromBlock: number, toBlock: number): Promise<{
|
11
|
+
logs: LogType[];
|
12
|
+
block: number;
|
13
|
+
}>;
|
14
|
+
export declare function safeFetchLogs(chainId: MerklChainId, topics: string[], addresses: string[], fromBlock: number, toBlock: number): Promise<LogType[]>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
export type CompoundVaultType = {
|
3
|
+
address: string;
|
4
|
+
asset: string;
|
5
|
+
chainId: MerklChainId;
|
6
|
+
debtTokenAddress: string;
|
7
|
+
name: string;
|
8
|
+
};
|
9
|
+
export type CompoundVaultsType = {
|
10
|
+
[chainId_compFork: string]: {
|
11
|
+
address: string;
|
12
|
+
symbolCToken: string;
|
13
|
+
decimalsCToken: number;
|
14
|
+
underlying: string;
|
15
|
+
symbolUnderlying: string;
|
16
|
+
decimalsUnderlying: number;
|
17
|
+
}[];
|
18
|
+
};
|
19
|
+
export declare const getCompoundV2ForksVaultsWithCache: () => Promise<CompoundVaultsType>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { DOLOMITE_MARGIN_MAPPING } from "@angleprotocol/sdk/ts";
|
2
|
+
export type DolomiteMarketT = {
|
3
|
+
index: number;
|
4
|
+
token: string;
|
5
|
+
symbol: string;
|
6
|
+
}[];
|
7
|
+
export declare const getDomiteMarkets: (chainId: keyof typeof DOLOMITE_MARGIN_MAPPING) => Promise<DolomiteMarketT>;
|
8
|
+
export declare const getDolomiteMarketWithCache: (chainId: keyof typeof DOLOMITE_MARGIN_MAPPING) => Promise<DolomiteMarketT>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { EulerChainId, type EulerVaultType } from "@angleprotocol/sdk/ts";
|
2
|
+
export declare enum LoggedEntityType {
|
3
|
+
EULER = "EULER_VAULT",
|
4
|
+
UNISWAP_V4 = "UNISWAP_V4"
|
5
|
+
}
|
6
|
+
export declare function getEulerV2Vaults(chainId?: (typeof EulerChainId)[number]): Promise<EulerVaultType[]>;
|
7
|
+
export declare function updateEulerVaultsCollatInDatabase(chainId?: (typeof EulerChainId)[number]): Promise<void>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { Campaign, CampaignParameters } from "@angleprotocol/sdk/ts";
|
2
|
+
export type BaseFixAPRConfig = {
|
3
|
+
apr: string;
|
4
|
+
targetTokenPricing: boolean;
|
5
|
+
rewardTokenPricing: boolean;
|
6
|
+
};
|
7
|
+
export type FixedAprCampaignType = Campaign.ERC20_FIX_APR | Campaign.HYPERDRIVELOGFIXPROCESSOR | Campaign.ERC6909FIXAPR | Campaign.ERC1155FIXAPR | Campaign.ERC721FIXAPR;
|
8
|
+
export declare function getFixedApr(campaignParameters: CampaignParameters<FixedAprCampaignType>, priceRewardToken: number, priceTargetToken: number): number;
|
@@ -0,0 +1,103 @@
|
|
1
|
+
import { type CallDto, type Campaign, type CampaignParameters } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { Erc20LikeCampaignEnum, Erc20SubType } from "../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { Pricer } from "../../../utils/pricer";
|
4
|
+
import type { tokenTypeStruct } from "./tokenTypeStruct";
|
5
|
+
export declare enum Round {
|
6
|
+
one = "round1",
|
7
|
+
two = "round2",
|
8
|
+
three = "round3",
|
9
|
+
four = "round4"
|
10
|
+
}
|
11
|
+
export type callType = {
|
12
|
+
key: any;
|
13
|
+
call: any;
|
14
|
+
target: any;
|
15
|
+
metaData?: any;
|
16
|
+
optional?: boolean;
|
17
|
+
};
|
18
|
+
export type mandatoryCallKeys = {
|
19
|
+
type: Erc20SubType;
|
20
|
+
protocol: string;
|
21
|
+
tokenAddress: string;
|
22
|
+
blacklistedSupply: string;
|
23
|
+
totalSupply: string;
|
24
|
+
whitelistedSupply: string;
|
25
|
+
} & stakingKeys;
|
26
|
+
export type stakingKeys = {
|
27
|
+
lockNFT: string;
|
28
|
+
eip712DomainName: string;
|
29
|
+
stakingName: string;
|
30
|
+
stakingSymbol: string;
|
31
|
+
isStaking: string;
|
32
|
+
};
|
33
|
+
export type callKeys = mandatoryCallKeys & {
|
34
|
+
[key: string]: string;
|
35
|
+
};
|
36
|
+
export type dataRaw = {
|
37
|
+
protocol: string;
|
38
|
+
tokenAddress: string;
|
39
|
+
blacklistedSupply: string;
|
40
|
+
totalSupply: string;
|
41
|
+
whitelistedSupply: string;
|
42
|
+
} & stakingKeys;
|
43
|
+
export type dataType = {
|
44
|
+
protocol: string;
|
45
|
+
type: Erc20SubType;
|
46
|
+
tokenAddress: string;
|
47
|
+
totalSupply: number;
|
48
|
+
blacklistedSupply: number;
|
49
|
+
tvl: number;
|
50
|
+
cardName: string;
|
51
|
+
priceTargetToken: number;
|
52
|
+
whitelistedSupplyTargetToken: number;
|
53
|
+
tokensDisplay: Array<{
|
54
|
+
address: string;
|
55
|
+
symbol?: string;
|
56
|
+
}>;
|
57
|
+
};
|
58
|
+
/**
|
59
|
+
* Generic Processor to compute dynamic data of ERC20 tokens
|
60
|
+
*
|
61
|
+
* @params Input - Sets of value that will be passed from rounds to rounds in order to query the blockchain
|
62
|
+
* @params DataRaw - Raw data output from the view function calls
|
63
|
+
* @params Output - Final output of the processor
|
64
|
+
*/
|
65
|
+
export declare class GenericProcessor<Input extends callKeys, DataRaw extends dataRaw, Output extends dataType> {
|
66
|
+
rounds: {
|
67
|
+
round1: callType[];
|
68
|
+
round2: callType[];
|
69
|
+
round3: callType[];
|
70
|
+
round4: callType[];
|
71
|
+
};
|
72
|
+
stakingRounds: {
|
73
|
+
round1: callType[];
|
74
|
+
round2: callType[];
|
75
|
+
round3: callType[];
|
76
|
+
round4: callType[];
|
77
|
+
};
|
78
|
+
debug: boolean;
|
79
|
+
processingRound1(_typeInfo: DataRaw): void;
|
80
|
+
processingRound2(_typeInfo: DataRaw, _campaign?: CampaignParameters<Erc20LikeCampaignEnum>): void;
|
81
|
+
processingRound3(_typeInfo: DataRaw): void;
|
82
|
+
processingRound4(_typeInfo: DataRaw): void;
|
83
|
+
handleWhiteListBlacklistRound5(typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>): {
|
84
|
+
whitelistedSupplyTargetToken: number;
|
85
|
+
totalSupply: number;
|
86
|
+
blacklistedSupply: number;
|
87
|
+
};
|
88
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: DataRaw, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<Output>;
|
89
|
+
computeRound1(type: Erc20SubType, typeInfo: DataRaw): tokenTypeStruct;
|
90
|
+
computeRound2(index: number, type: Erc20SubType, typeInfo: DataRaw, calls: string[], campaign?: CampaignParameters<Erc20LikeCampaignEnum>): tokenTypeStruct;
|
91
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: DataRaw, calls: string[]): tokenTypeStruct;
|
92
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Erc20LikeCampaignEnum>): tokenTypeStruct;
|
93
|
+
computeRound5(index: number, type: Erc20SubType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Erc20LikeCampaignEnum>, pricer: Pricer): Promise<tokenTypeStruct>;
|
94
|
+
generateWhitelistCall(type: Erc20SubType, typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>): CallDto[];
|
95
|
+
generateBlackListCall(type: Erc20SubType, typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>): CallDto[];
|
96
|
+
decodeListedSupply(index: number, list: string[], calls: string[]): string;
|
97
|
+
decodeRound(round: callType[], index: number, calls: string[], type: Erc20SubType, data: DataRaw): void;
|
98
|
+
decodePreviousRound(round: Round, calls: string[], data: DataRaw, type: Erc20SubType, index: number): void;
|
99
|
+
decodePreviousStakingRound(round: Round, calls: string[], data: DataRaw, type: Erc20SubType, index: number): void;
|
100
|
+
encodeRound(round: callType[], callInfo: Input, type: Erc20SubType): CallDto[];
|
101
|
+
encodeNextRound(round: Round, type: Erc20SubType, data: DataRaw): CallDto[];
|
102
|
+
encodeStakingNextRound(round: Round, type: Erc20SubType, data: DataRaw): CallDto[];
|
103
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function fetchEulerVaultName(vaultAddress: string, chainId: number): Promise<string | null>;
|
package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getCrossCurveTokenPrice.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export declare function getCrossCurveTokenPrice(address: string): Promise<number>;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { Campaign, CampaignParameters } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { Erc20SubType } from "../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { Pricer } from "../../../../utils/pricer";
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawAave;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysAave;
|
9
|
+
metaData?: keyof callKeysAave;
|
10
|
+
};
|
11
|
+
export type callKeysAave = mandatoryCallKeys & {
|
12
|
+
underlying: string;
|
13
|
+
symbolUnderlyingToken: string;
|
14
|
+
};
|
15
|
+
type dataRawAave = callKeysAave & {};
|
16
|
+
type dataTypeAave = dataType & {
|
17
|
+
underlying: string;
|
18
|
+
symbolUnderlyingToken: string;
|
19
|
+
priceTargetToken: number;
|
20
|
+
};
|
21
|
+
export declare class AaveProcessor extends GenericProcessor<callKeysAave, dataRawAave, dataTypeAave> {
|
22
|
+
rounds: {
|
23
|
+
round1: callType[];
|
24
|
+
round2: callType[];
|
25
|
+
round3: callType[];
|
26
|
+
round4: callType[];
|
27
|
+
};
|
28
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawAave, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAave>;
|
29
|
+
}
|
30
|
+
export {};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { type Campaign, type CampaignParameters } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { Erc20SubType } from "../../../../engine/implementations/Erc20/subTypes";
|
3
|
+
import type { Pricer } from "../../../../utils/pricer";
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
|
+
type callType = {
|
6
|
+
key: keyof dataRawAnglesLiquid;
|
7
|
+
call: string;
|
8
|
+
target: keyof callKeysAnglesLiquid;
|
9
|
+
metaData?: keyof callKeysAnglesLiquid;
|
10
|
+
};
|
11
|
+
type callKeysAnglesLiquid = mandatoryCallKeys & {
|
12
|
+
poolToken: string;
|
13
|
+
totalAssets: string;
|
14
|
+
};
|
15
|
+
type dataRawAnglesLiquid = callKeysAnglesLiquid & {};
|
16
|
+
type dataTypeAnglesLiquid = dataType & {
|
17
|
+
poolToken: string;
|
18
|
+
totalAssets: string;
|
19
|
+
symbolUnderlyingToken: string;
|
20
|
+
};
|
21
|
+
export declare class AnglesLiquidProcessor extends GenericProcessor<callKeysAnglesLiquid, dataRawAnglesLiquid, dataTypeAnglesLiquid> {
|
22
|
+
rounds: {
|
23
|
+
round1: callType[];
|
24
|
+
round2: callType[];
|
25
|
+
round3: callType[];
|
26
|
+
round4: callType[];
|
27
|
+
};
|
28
|
+
processingRound5(_index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeAnglesLiquid>;
|
29
|
+
computeRound1(type: Erc20SubType, typeInfo: dataRawAnglesLiquid): import("../tokenTypeStruct").tokenTypeStruct;
|
30
|
+
computeRound2(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
31
|
+
computeRound3(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[]): import("../tokenTypeStruct").tokenTypeStruct;
|
32
|
+
computeRound4(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): import("../tokenTypeStruct").tokenTypeStruct;
|
33
|
+
computeRound5(index: number, type: Erc20SubType, typeInfo: dataRawAnglesLiquid, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<import("../tokenTypeStruct").tokenTypeStruct>;
|
34
|
+
}
|
35
|
+
export {};
|