@merkl/api 0.20.106 → 0.20.109
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/constants.d.ts +1 -23
- package/dist/src/constants.js +1 -36
- package/dist/src/eden/index.d.ts +347 -226
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Ajna.js +1 -1
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Clamm.js +4 -4
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Compound.js +2 -2
- package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.js +101 -0
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Dolomite.js +1 -1
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/ERC721.js +2 -2
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/ERCMultiToken.js +2 -2
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EigenLayer.js +1 -1
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Erc20.d.ts +1 -1
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Erc20.js +10 -10
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Erc20Snapshot.js +1 -1
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EventBased.js +2 -2
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Morpho.js +1 -1
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Radiant.js +3 -3
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Silo.js +2 -2
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/UniswapV4.js +2 -2
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Vest.js +2 -2
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchA51Strategies.js +2 -2
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getDolomiteMarkets.js +2 -2
- package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getEulerV2Vaults.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/GenericProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/factoryFinder.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/factoryFinder.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/hardcoded.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/hardcoded.js +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +2 -0
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/ownerFinder.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AaveProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AnglesLiquid.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AssetProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AssetProcessor.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AuraProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BEXRewardGaugeProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerGaugeProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerPoolProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerV3PoolProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BeefyProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BunniV2Processor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/CompoundProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/ERC4626Processor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EnzymeProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EqualizerGaugeProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EulerBorrowProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EulerLendProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/FluidProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/FraxProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/FraxProcessor.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GammaALMProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GammaProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GearboxProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HanjiVaultProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HoldStationProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HourglassProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/MaverickBPProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/MetamorphoProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/NoLinkVaultProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/NoLinkVaultProcessor.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/PendleProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/PendleYTProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/RadiantProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/RfxProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/Satlayer.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpectraProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpectraProcessor.js +3 -3
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpectraYTProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpectraYTProcessor.js +3 -3
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpliceProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SturdySiloProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TempestVaultProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TempestVaultProcessor.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TemplateProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TorosProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/UniswapProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/VicunaProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/WoofiProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/ZkSwapThreePoolProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/curveNPoolProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/curveProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/curveProcessor.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/processorMapping.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/processorMapping.js +3 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/stakedCurveProcessor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/stakedCurveProcessor.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/xU308Processor.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesPrices.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesPrices.js +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound1.js +5 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound2.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound3.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound4.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/tokenTypeStruct.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/tokenTypeToProtocolAndAction.d.ts +1 -1
- package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/tokenTypeToProtocolAndAction.js +3 -1
- package/dist/src/engine/{opportunityMetadata/implementations/Ajna.d.ts → implementations/Ajna/metadata.d.ts} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/Ajna.js → implementations/Ajna/metadata.js} +4 -3
- package/dist/src/engine/implementations/Ajna/tvl.d.ts +7 -0
- package/dist/src/engine/{campaignTVL/implementations/Ajna.js → implementations/Ajna/tvl.js} +9 -9
- package/dist/src/engine/{opportunityMetadata/implementations/Ambient.d.ts → implementations/Ambient/metadata.d.ts} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/Ambient.js → implementations/Ambient/metadata.js} +2 -1
- package/dist/src/engine/{campaignTVL/implementations/Ambiant.d.ts → implementations/Ambient/tvl.d.ts} +3 -3
- package/dist/src/engine/{campaignTVL/implementations/Ambiant.js → implementations/Ambient/tvl.js} +2 -2
- package/dist/src/engine/{opportunityMetadata/implementations/Badger.d.ts → implementations/Badger/metadata.d.ts} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/Badger.js → implementations/Badger/metadata.js} +2 -1
- package/dist/src/engine/{opportunityMetadata/implementations/Clamm.d.ts → implementations/Clamm/metadata.d.ts} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/Clamm.js → implementations/Clamm/metadata.js} +2 -1
- package/dist/src/engine/{opportunityMetadata/implementations/Compound.d.ts → implementations/Compound/metadata.d.ts} +5 -4
- package/dist/src/engine/{opportunityMetadata/implementations/Compound.js → implementations/Compound/metadata.js} +3 -2
- package/dist/src/engine/{opportunityMetadata/implementations/CompoundV3.d.ts → implementations/CompoundV3/metadata.d.ts} +5 -4
- package/dist/src/engine/{opportunityMetadata/implementations/CompoundV3.js → implementations/CompoundV3/metadata.js} +4 -3
- package/dist/src/engine/implementations/Default/metadata.d.ts +13 -0
- package/dist/src/engine/{opportunityMetadata/implementations/Default.js → implementations/Default/metadata.js} +3 -2
- package/dist/src/engine/{opportunityMetadata/implementations/Dolomite.d.ts → implementations/Dolomite/metadata.d.ts} +5 -4
- package/dist/src/engine/{opportunityMetadata/implementations/Dolomite.js → implementations/Dolomite/metadata.js} +3 -2
- package/dist/src/engine/{opportunityMetadata/implementations/EigenLayer.d.ts → implementations/EigenLayer/metadata.d.ts} +5 -4
- package/dist/src/engine/{opportunityMetadata/implementations/EigenLayer.js → implementations/EigenLayer/metadata.js} +2 -1
- package/dist/src/engine/implementations/Encompassing/metadata.d.ts +16 -0
- package/dist/src/engine/{opportunityMetadata/implementations/Encompassing.js → implementations/Encompassing/metadata.js} +4 -3
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +29 -0
- package/dist/src/engine/{opportunityMetadata/implementations/Erc20/index.js → implementations/Erc20/metadata.js} +19 -14
- package/dist/src/engine/{campaignTVL/implementations/Erc20/computeSubTypes.d.ts → implementations/Erc20/subTypes/detect.d.ts} +2 -2
- package/dist/src/engine/{campaignTVL/implementations/Erc20/computeSubTypes.js → implementations/Erc20/subTypes/detect.js} +6 -6
- package/dist/src/engine/implementations/Erc20/subTypes/factories.d.ts +5 -0
- package/dist/src/engine/implementations/Erc20/subTypes/factories.js +33 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.js +21 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.js +43 -0
- package/dist/src/engine/{campaignTVL/implementations/Erc20/Erc20SubType.d.ts → implementations/Erc20/subTypes/index.d.ts} +2 -0
- package/dist/src/engine/{campaignTVL/implementations/Erc20/Erc20SubType.js → implementations/Erc20/subTypes/index.js} +2 -0
- package/dist/src/engine/implementations/Erc20/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/tvl.js +98 -0
- package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +15 -0
- package/dist/src/engine/{opportunityMetadata/implementations/Erc20Snapshot.js → implementations/Erc20Snapshot/metadata.js} +2 -1
- package/dist/src/engine/implementations/Erc721/metadata.d.ts +17 -0
- package/dist/src/engine/{opportunityMetadata/implementations/ERC721.js → implementations/Erc721/metadata.js} +3 -2
- package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +29 -0
- package/dist/src/engine/{opportunityMetadata/implementations/ERCMultiToken.js → implementations/ErcMultiToken/metadata.js} +5 -4
- package/dist/src/engine/{opportunityMetadata/implementations/Euler.d.ts → implementations/Euler/metadata.d.ts} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/Euler.js → implementations/Euler/metadata.js} +5 -4
- package/dist/src/engine/{opportunityMetadata/implementations/EventBased.d.ts → implementations/EventBased/metadata.d.ts} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/EventBased.js → implementations/EventBased/metadata.js} +2 -1
- package/dist/src/engine/{opportunityMetadata/implementations/Hyperdrive.d.ts → implementations/Hyperdrive/metadata.d.ts} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/Hyperdrive.js → implementations/Hyperdrive/metadata.js} +3 -2
- package/dist/src/engine/{opportunityMetadata/implementations/Invalid.d.ts → implementations/Invalid/metadata.d.ts} +1 -1
- package/dist/src/engine/{opportunityMetadata/implementations/Ion.d.ts → implementations/Ion/metadata.d.ts} +4 -4
- package/dist/src/engine/{opportunityMetadata/implementations/Ion.js → implementations/Ion/metadata.js} +2 -1
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +24 -0
- package/dist/src/engine/{opportunityMetadata/implementations/JsonAirdrop.js → implementations/JsonAirdrop/metadata.js} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/Morpho.d.ts → implementations/Morpho/metadata.d.ts} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/Morpho.js → implementations/Morpho/metadata.js} +4 -1
- package/dist/src/engine/{opportunityMetadata/implementations/Radiant.d.ts → implementations/Radiant/metadata.d.ts} +5 -4
- package/dist/src/engine/{opportunityMetadata/implementations/Radiant.js → implementations/Radiant/metadata.js} +4 -1
- package/dist/src/engine/{opportunityMetadata/implementations/Silo.d.ts → implementations/Silo/metadata.d.ts} +5 -4
- package/dist/src/engine/{opportunityMetadata/implementations/Silo.js → implementations/Silo/metadata.js} +4 -1
- package/dist/src/engine/{opportunityMetadata/implementations/UniswapV4.d.ts → implementations/UniswapV4/metadata.d.ts} +4 -3
- package/dist/src/engine/{opportunityMetadata/implementations/UniswapV4.js → implementations/UniswapV4/metadata.js} +2 -1
- package/dist/src/engine/implementations/UniswapV4/tvl.d.ts +7 -0
- package/dist/src/engine/{campaignTVL/implementations/UniswapV4.js → implementations/UniswapV4/tvl.js} +11 -11
- package/dist/src/engine/{opportunityMetadata/implementations/Vest.d.ts → implementations/Vest/metadata.d.ts} +5 -4
- package/dist/src/engine/{opportunityMetadata/implementations/Vest.js → implementations/Vest/metadata.js} +3 -2
- package/dist/src/engine/metadata/factory.js +71 -0
- package/dist/src/engine/tvl/factory.d.ts +3 -0
- package/dist/src/engine/tvl/factory.js +23 -0
- package/dist/src/hooks/checkQueryAddressValidity.js +1 -1
- package/dist/src/hooks/checkQueryChainIdValidity.js +1 -1
- package/dist/src/index.d.ts +123 -80
- package/dist/src/jobs/dynamic-data.js +1 -1
- package/dist/src/jobs/update-analytics.js +290 -34
- package/dist/src/jobs/update-euler-vaults.js +1 -1
- package/dist/src/libs/computeFee.js +1 -1
- package/dist/src/libs/deprecated-merklv3/index.js +1 -1
- package/dist/src/libs/getTokensList.js +1 -1
- package/dist/src/libs/merklChainData.js +1 -1
- package/dist/src/libs/positions/EigenLayer/index.d.ts +1 -1
- package/dist/src/libs/positions/ajna/index.d.ts +1 -1
- package/dist/src/libs/positions/badger/index.d.ts +1 -1
- package/dist/src/libs/positions/clamm/index.js +3 -3
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +1 -1
- package/dist/src/libs/positions/compound/index.d.ts +1 -1
- package/dist/src/libs/positions/dolomite/index.d.ts +1 -1
- package/dist/src/libs/positions/erc20/index.d.ts +1 -1
- package/dist/src/libs/positions/erc20/index.js +0 -1
- package/dist/src/libs/positions/euler/index.d.ts +1 -1
- package/dist/src/libs/positions/euler/index.js +0 -1
- package/dist/src/libs/positions/index.js +1 -1
- package/dist/src/libs/positions/morpho/index.d.ts +1 -1
- package/dist/src/libs/positions/prepareFetch.js +1 -1
- package/dist/src/libs/positions/silo/index.d.ts +1 -1
- package/dist/src/libs/tokens/balances.d.ts +1 -1
- package/dist/src/libs/tokens/balances.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +42 -15
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +7 -9
- package/dist/src/modules/v4/campaign/campaign.repository.js +20 -27
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +47 -17
- package/dist/src/modules/v4/campaign/campaign.service.js +51 -38
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +67 -22
- package/dist/src/modules/v4/campaign/campaign.test.controller.js +32 -9
- package/dist/src/modules/v4/chain/chain.controller.d.ts +3 -1
- package/dist/src/modules/v4/chain/chain.repository.d.ts +8 -2
- package/dist/src/modules/v4/chain/chain.repository.js +1 -2
- package/dist/src/modules/v4/chain/chain.service.d.ts +16 -2
- package/dist/src/modules/v4/chain/chain.service.js +3 -3
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +49 -13
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +4 -4
- package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.converter.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +8 -8
- package/dist/src/modules/v4/opportunity/opportunity.service.js +16 -32
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +7 -7
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +3 -3
- package/dist/src/modules/v4/programPayload/programPayload.model.js +2 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +279 -4
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +295 -3
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
- package/dist/src/modules/v4/router.d.ts +123 -80
- package/dist/src/modules/v4/router.js +0 -2
- package/dist/src/modules/v4/uniswap/uniswap.service.js +1 -1
- package/dist/src/routes/v3/campaigns.js +3 -3
- package/dist/src/routes/v3/compoundV2.js +1 -1
- package/dist/src/routes/v3/createCampaign.js +1 -1
- package/dist/src/routes/v3/dolomite.js +1 -1
- package/dist/src/routes/v3/euler.js +1 -1
- package/dist/src/routes/v3/fetch.js +1 -1
- package/dist/src/routes/v3/lostyield.js +3 -3
- package/dist/src/routes/v3/merkl.js +2 -2
- package/dist/src/routes/v3/multiChainPositions.js +1 -1
- package/dist/src/routes/v3/overview.js +1 -1
- package/dist/src/routes/v3/poolInfo.js +2 -2
- package/dist/src/routes/v3/rewardsReport.js +1 -1
- package/dist/src/scripts/reparse-opportunities.js +5 -3
- package/dist/src/utils/decodeCalls.d.ts +1 -1
- package/dist/src/utils/decodeCalls.js +3 -1
- package/dist/src/utils/encodeCalls.d.ts +1 -1
- package/dist/src/utils/encodeCalls.js +3 -1
- package/dist/src/utils/error.d.ts +6 -6
- package/dist/src/utils/generateCardName.d.ts +1 -1
- package/dist/src/utils/generateCardName.js +3 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/engine/campaignTVL/factory.d.ts +0 -3
- package/dist/src/engine/campaignTVL/factory.js +0 -23
- package/dist/src/engine/campaignTVL/implementations/Ajna.d.ts +0 -7
- package/dist/src/engine/campaignTVL/implementations/Erc20/factory.d.ts +0 -3
- package/dist/src/engine/campaignTVL/implementations/Erc20/factory.js +0 -13
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.d.ts +0 -6
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.js +0 -34
- package/dist/src/engine/campaignTVL/implementations/UniswapV4.d.ts +0 -7
- package/dist/src/engine/dynamicData/implementations/CompoundV3.js +0 -69
- package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +0 -2
- package/dist/src/engine/opportunityMetadata/factory.js +0 -71
- package/dist/src/engine/opportunityMetadata/implementations/Default.d.ts +0 -13
- package/dist/src/engine/opportunityMetadata/implementations/ERC721.d.ts +0 -16
- package/dist/src/engine/opportunityMetadata/implementations/ERCMultiToken.d.ts +0 -28
- package/dist/src/engine/opportunityMetadata/implementations/Encompassing.d.ts +0 -15
- package/dist/src/engine/opportunityMetadata/implementations/Erc20/index.d.ts +0 -18
- package/dist/src/engine/opportunityMetadata/implementations/Erc20Snapshot.d.ts +0 -14
- package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.d.ts +0 -23
- package/dist/src/entities/campaign.d.ts +0 -58
- package/dist/src/entities/campaign.js +0 -136
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +0 -51
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +0 -19
- package/dist/src/modules/v4/dynamicData/dynamicData.repository.d.ts +0 -0
- package/dist/src/modules/v4/dynamicData/dynamicData.repository.js +0 -1
- package/dist/src/types/returnTypes.d.ts +0 -19
- package/dist/src/types/returnTypes.js +0 -1
- package/dist/src/types/utils.d.ts +0 -5
- package/dist/src/types/utils.js +0 -1
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/factory.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/factory.js +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Ajna.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Badger.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Badger.js +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Clamm.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Compound.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/CompoundV3.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Dolomite.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/ERC721.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/ERCMultiToken.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EigenLayer.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Encompassing.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Encompassing.js +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Erc20Snapshot.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EventBased.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Hyperdrive.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Hyperdrive.js +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Morpho.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Radiant.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Silo.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/UniswapV4.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Vest.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/default.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/default.js +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchA51Strategies.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchClamInfo.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchClamInfo.js +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchLogs.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchLogs.js +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getCompV2ForksVaults.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getCompV2ForksVaults.js +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getContractCreationBlock.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getContractCreationBlock.js +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getDolomiteMarkets.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getEulerV2Vaults.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getFixedApr.d.ts +0 -0
- /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getFixedApr.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/GenericProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/eulerVaultNames.d.ts +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/eulerVaultNames.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/getBlacklistedSupply.d.ts +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/getBlacklistedSupply.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/metamorphoTvl.d.ts +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/metamorphoTvl.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/spliceTVL.d.ts +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/spliceTVL.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AaveProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AnglesLiquid.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AuraProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BEXRewardGaugeProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerGaugeProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerPoolProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerV3PoolProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BeefyProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BunniV2Processor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/CompoundProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/ERC4626Processor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EnzymeProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EqualizerGaugeProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EulerBorrowProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EulerLendProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/FluidProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GammaALMProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GammaProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GearboxProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HanjiVaultProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HoldStationProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HourglassProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/MaverickBPProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/MetamorphoProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/PendleProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/PendleYTProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/RadiantProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/RfxProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/Satlayer.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpliceProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SturdySiloProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TemplateProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TorosProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/UniswapProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/VicunaProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/WoofiProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/ZkSwapThreePoolProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/curveNPoolProcessor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/xU308Processor.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound1.d.ts +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound2.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound3.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound4.js +0 -0
- /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/tokenTypeStruct.js +0 -0
- /package/dist/src/engine/{opportunityMetadata/implementations/Invalid.js → implementations/Invalid/metadata.js} +0 -0
- /package/dist/src/engine/{opportunityMetadata → metadata}/factory.d.ts +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
2
3
|
import { providers } from "@/utils/providers";
|
3
4
|
import { AjnaSubCampaignType, BN2Number, ChainInteractionService, ERC20Pool__factory, NETWORK_LABELS, PoolInfoUtilsInterface, YEAR, } from "@sdk";
|
4
5
|
import { POOL_INFO_UTILS } from "@sdk";
|
5
6
|
import axios from "axios";
|
6
|
-
import { log } from "../../../utils/logger";
|
7
7
|
export class AjnaDynamicData {
|
8
8
|
async build(chainId, campaigns) {
|
9
9
|
const calls = [];
|
@@ -1,16 +1,16 @@
|
|
1
|
+
import { MERKL_ALM_POSITION_FETCHING_TIMEOUT } from "@/constants";
|
1
2
|
import { nftPositionByIdsQuery, positionMultipleOwnersQuery } from "@/libs/positions/clamm/thegraph";
|
2
3
|
import { fetchFarmedPositions } from "@/libs/positions/clamm/thegraph/fetchFarmedPositions";
|
3
4
|
import { TokenService } from "@/modules/v4/token/token.service";
|
5
|
+
import { log } from "@/utils/logger";
|
6
|
+
import { Pricer } from "@/utils/pricer";
|
7
|
+
import { isStrykeCampaign } from "@/utils/stryke";
|
4
8
|
import { A51Factory__factory, ALM, ALMMapping, AMM, AMMAlgorithm, AMMAlgorithmMapping, BN2Number, ChainInteractionService, DecodeLiquidity, EAprBreakdownType, ERC20Interface, Forwarder, JonesDoubleRewardTracker__factory, Liquidity, NETWORK_LABELS, NitroInterface, PoolInterface, PoolState, PriorityAMM, SqrtPrice, almName, ammName, getAmountsForLiquidity, getTickAtSqrtRatio, isBlacklisted, isWhitelisted, merklSubgraphAMMEndpoints, shortenAddress, spNFTInterface, withTimeout, } from "@sdk";
|
5
9
|
import axios from "axios";
|
6
10
|
import { BigNumber, utils } from "ethers";
|
7
11
|
import request from "graphql-request";
|
8
12
|
import JSBI from "jsbi";
|
9
13
|
import moment from "moment";
|
10
|
-
import { MERKL_ALM_POSITION_FETCHING_TIMEOUT } from "../../../constants";
|
11
|
-
import { log } from "../../../utils/logger";
|
12
|
-
import { Pricer } from "../../../utils/pricer";
|
13
|
-
import { isStrykeCampaign } from "../../../utils/stryke";
|
14
14
|
import { fetchA51Strategies } from "../utils/fetchA51Strategies";
|
15
15
|
export class ClammDynamicData {
|
16
16
|
async build(chainId, campaigns) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
3
|
+
import { Pricer } from "@/utils/pricer";
|
2
4
|
import { BN2Number, CTokenInterface, ChainInteractionService, CompFork, CompoundSubCampaignType, ERC20Interface, IonicERC20_INTERFACE, LayerBankERC20Interface, NULL_ADDRESS, YEAR, } from "@sdk";
|
3
|
-
import { log } from "../../../utils/logger";
|
4
|
-
import { Pricer } from "../../../utils/pricer";
|
5
5
|
export class CompoundDynamicData {
|
6
6
|
async build(chainId, campaigns) {
|
7
7
|
const pricer = await Pricer.load();
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
3
|
+
import { Pricer } from "@/utils/pricer";
|
4
|
+
import { BN2Number, ChainInteractionService, CompoundV3Interface, CompoundV3SubCampaignType, YEAR, } from "@sdk";
|
5
|
+
export class CompoundV3DynamicData {
|
6
|
+
async build(chainId, campaigns) {
|
7
|
+
const pricer = await Pricer.load();
|
8
|
+
const calls = [];
|
9
|
+
for (const campaign of campaigns) {
|
10
|
+
calls.push({
|
11
|
+
allowFailure: true,
|
12
|
+
callData: CompoundV3Interface.encodeFunctionData("baseToken"),
|
13
|
+
target: campaign.campaignParameters.targetToken,
|
14
|
+
});
|
15
|
+
calls.push({
|
16
|
+
allowFailure: true,
|
17
|
+
callData: CompoundV3Interface.encodeFunctionData((campaign.campaignParameters.subCampaignType === CompoundV3SubCampaignType.SUPPLY
|
18
|
+
? "totalSupply"
|
19
|
+
: "totalBorrow")),
|
20
|
+
target: campaign.campaignParameters.targetToken,
|
21
|
+
});
|
22
|
+
for (const holder of [...campaign.campaignParameters.blacklist, ...campaign.campaignParameters.whitelist]) {
|
23
|
+
calls.push({
|
24
|
+
allowFailure: true,
|
25
|
+
callData: CompoundV3Interface.encodeFunctionData((campaign.campaignParameters.subCampaignType === CompoundV3SubCampaignType.SUPPLY
|
26
|
+
? "balanceOf"
|
27
|
+
: "borrowBalanceOf"), [holder]),
|
28
|
+
target: campaign.campaignParameters.targetToken,
|
29
|
+
});
|
30
|
+
}
|
31
|
+
}
|
32
|
+
const result = await ChainInteractionService(chainId).fetchState(calls);
|
33
|
+
let i = 0;
|
34
|
+
const dynamicData = [];
|
35
|
+
for (const campaign of campaigns) {
|
36
|
+
const underlyingToken = CompoundV3Interface.decodeFunctionResult("baseToken", result[i].returnData)[0];
|
37
|
+
let totalSupply;
|
38
|
+
try {
|
39
|
+
totalSupply = BN2Number(CompoundV3Interface.decodeFunctionResult((campaign.campaignParameters.subCampaignType === CompoundV3SubCampaignType.SUPPLY
|
40
|
+
? "totalSupply"
|
41
|
+
: "totalBorrow"), result[i + 1].returnData)[0], campaign.campaignParameters.decimalsTargetToken);
|
42
|
+
}
|
43
|
+
catch {
|
44
|
+
log.warn(`Error getting totalSupply for campaign ${campaign.campaignId} and token ${campaign.campaignParameters.targetToken}`);
|
45
|
+
totalSupply = 0.0000001;
|
46
|
+
}
|
47
|
+
i += 2;
|
48
|
+
if (campaign.campaignParameters.whitelist.length > 0) {
|
49
|
+
totalSupply = 0;
|
50
|
+
for (const [index, holder] of campaign.campaignParameters.whitelist.entries()) {
|
51
|
+
try {
|
52
|
+
const balance = getCompoundBalance(result[i + index].returnData, campaign, campaign.campaignParameters.subCampaignType);
|
53
|
+
totalSupply += balance;
|
54
|
+
}
|
55
|
+
catch {
|
56
|
+
log.warn(`Error getting whitelist balance - campaign ${campaign.campaignId} - token ${campaign.campaignParameters.targetToken} - holder ${holder}`);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
i += campaign.campaignParameters.whitelist.length;
|
60
|
+
}
|
61
|
+
else {
|
62
|
+
for (const [index, holder] of campaign.campaignParameters.blacklist.entries()) {
|
63
|
+
try {
|
64
|
+
const balance = getCompoundBalance(result[i + index].returnData, campaign, campaign.campaignParameters.subCampaignType);
|
65
|
+
totalSupply -= balance;
|
66
|
+
}
|
67
|
+
catch {
|
68
|
+
log.warn(`Error getting blacklist balance - campaign ${campaign.campaignId} - token ${campaign.campaignParameters.targetToken} - holder ${holder}`);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
i += campaign.campaignParameters.blacklist.length;
|
72
|
+
}
|
73
|
+
const priceRewardToken = await TokenService.getRewardTokenPrice(campaign);
|
74
|
+
const priceTargetToken = (await pricer.get({
|
75
|
+
address: underlyingToken,
|
76
|
+
chainId: campaign.computeChainId,
|
77
|
+
// Remove the `c` at the beginning of the symbol and the `v3` at the end
|
78
|
+
symbol: campaign.campaignParameters.symbolTargetToken.slice(1, -2),
|
79
|
+
})) ?? 0;
|
80
|
+
let apr = (priceRewardToken * BN2Number(campaign.amount, campaign.campaignParameters.decimalsRewardToken) * YEAR * 100) /
|
81
|
+
campaign.campaignParameters.duration /
|
82
|
+
(totalSupply * priceTargetToken);
|
83
|
+
const rewardTokens = await TokenService.findManyOrCreate([
|
84
|
+
{ chainId: campaign.chainId, address: campaign.rewardToken },
|
85
|
+
]);
|
86
|
+
const rewardToken = rewardTokens[0];
|
87
|
+
apr = rewardToken.isPoint ? apr / 365 / 100 : apr;
|
88
|
+
dynamicData.push({
|
89
|
+
...campaign,
|
90
|
+
apr,
|
91
|
+
totalSupplyTargetToken: totalSupply,
|
92
|
+
tvl: totalSupply * priceTargetToken,
|
93
|
+
priceRewardToken: priceRewardToken,
|
94
|
+
});
|
95
|
+
}
|
96
|
+
return dynamicData;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
function getCompoundBalance(returnData, campaign, campaignSubType) {
|
100
|
+
return BN2Number(CompoundV3Interface.decodeFunctionResult((campaignSubType === CompoundV3SubCampaignType.SUPPLY ? "balanceOf" : "borrowBalanceOf"), returnData)[0], campaign.campaignParameters.decimalsTargetToken);
|
101
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
2
3
|
import { Pricer } from "@/utils/pricer";
|
3
4
|
import { BN2Number, DolomiteSubCampaignType, YEAR, } from "@sdk";
|
4
5
|
import axios from "axios";
|
5
|
-
import { log } from "../../../utils/logger";
|
6
6
|
export class DolomiteDynamicData {
|
7
7
|
async build(chainId, campaigns) {
|
8
8
|
const pricer = await Pricer.load();
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
3
|
+
import { Pricer } from "@/utils/pricer";
|
2
4
|
import { AragornEscrowInterface, BN2Number, ChainInteractionService, ERC20Interface, YEAR, } from "@sdk";
|
3
5
|
import { ERC721SubCampaignType } from "libs/sdk/src/types/merkl/campaignTypes/erc721";
|
4
|
-
import { log } from "../../../utils/logger";
|
5
|
-
import { Pricer } from "../../../utils/pricer";
|
6
6
|
import { getFixedApr, hasFixedAprConfig } from "../utils/getFixedApr";
|
7
7
|
export class ERC721DynamicData {
|
8
8
|
async build(chainId, campaigns) {
|
package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/ERCMultiToken.js
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
3
|
+
import { Pricer } from "@/utils/pricer";
|
2
4
|
import { BN2Number, ChainInteractionService, CloberBookManagerInterface, CloberPoolInterface, ERC20Interface, ERC6909Interface, YEAR, } from "@sdk";
|
3
|
-
import { log } from "../../../utils/logger";
|
4
|
-
import { Pricer } from "../../../utils/pricer";
|
5
5
|
import { getFixedApr, hasFixedAprConfig } from "../utils/getFixedApr";
|
6
6
|
export class ERCMultiTokenDynamicData {
|
7
7
|
async build(chainId, campaigns) {
|
package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EigenLayer.js
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
2
3
|
import { Pricer } from "@/utils/pricer";
|
3
4
|
import { BN2Number, ChainInteractionService, EigenLayerStrategyInterface, EigenLayerStrategy__factory, YEAR, } from "@sdk";
|
4
|
-
import { log } from "../../../utils/logger";
|
5
5
|
export class EigenLayerDynamicData {
|
6
6
|
async build(chainId, campaigns) {
|
7
7
|
const pricer = await Pricer.load();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type Erc20LikeCampaignEnum } from "@/engine/
|
1
|
+
import { type Erc20LikeCampaignEnum } from "@/engine/implementations/Erc20/subTypes";
|
2
2
|
import { type CampaignParameters, type MerklChainId } from "@sdk";
|
3
3
|
import type { DynamicDataBuilder } from "../interface";
|
4
4
|
export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCampaignEnum> {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
1
|
+
import { getTokenPricesInfo } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesPrices";
|
2
|
+
import { getTokenTypeRound1 } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesRound1";
|
3
|
+
import { getTokenTypeRound2 } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesRound2";
|
4
|
+
import { getTokenTypeRound3 } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesRound3";
|
5
|
+
import { getTokenTypeRound4 } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesRound4";
|
6
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
7
7
|
import { ComputedValueService } from "@/modules/v4/computedValue/computedValue.service";
|
8
8
|
import { TokenRepository } from "@/modules/v4/token/token.repository";
|
9
9
|
import { TokenService } from "@/modules/v4/token/token.service";
|
@@ -127,7 +127,7 @@ export class Erc20DynamicData {
|
|
127
127
|
log.warn(`failed to update target token price: ${e}`);
|
128
128
|
}
|
129
129
|
i += callsForCampaign;
|
130
|
-
|
130
|
+
const whitelistedSupplyTargetToken = tokenTypesByCampaign[campaign.campaignId].typeInfo.whitelistedSupplyTargetToken;
|
131
131
|
const totalSupplyTargetToken = whitelistedSupplyTargetToken;
|
132
132
|
const priceTargetToken = tokenTypesByCampaign[campaign.campaignId].typeInfo.priceTargetToken;
|
133
133
|
let lastEligibilityRatio = 1;
|
@@ -158,14 +158,14 @@ export class Erc20DynamicData {
|
|
158
158
|
else if (hasFixedAprConfig(campaign.campaignParameters)) {
|
159
159
|
apr = getFixedApr(campaign, priceRewardToken, priceTargetToken);
|
160
160
|
}
|
161
|
-
if (campaign.chainId === ChainId.ETHERLINK) {
|
162
|
-
whitelistedSupplyTargetToken = tokenTypesByCampaign[campaign.campaignId].typeInfo.totalSupply;
|
163
|
-
}
|
164
161
|
dynamicData.push({
|
165
162
|
...campaign,
|
166
163
|
apr,
|
167
164
|
totalSupplyTargetToken,
|
168
165
|
tvl: whitelistedSupplyTargetToken * priceTargetToken,
|
166
|
+
displayTvl: campaign.chainId === ChainId.ETHERLINK
|
167
|
+
? tokenTypesByCampaign[campaign.campaignId].typeInfo.totalSupply * priceTargetToken
|
168
|
+
: undefined,
|
169
169
|
type: tokenTypesByCampaign[campaign.campaignId].type,
|
170
170
|
typeInfo: tokenTypesByCampaign[campaign.campaignId].typeInfo,
|
171
171
|
priceRewardToken: priceRewardToken,
|
package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Erc20Snapshot.js
RENAMED
@@ -1,5 +1,5 @@
|
|
1
|
+
import { Pricer } from "@/utils/pricer";
|
1
2
|
import { BN2Number, ChainInteractionService, ERC20Interface, } from "@sdk";
|
2
|
-
import { Pricer } from "../../../utils/pricer";
|
3
3
|
export class Erc20SnapshotDynamicData {
|
4
4
|
async build(chainId, campaigns) {
|
5
5
|
const pricer = await Pricer.load();
|
package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EventBased.js
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { BucketService } from "@/modules/v4/bucket/bucket.service";
|
2
2
|
import { TokenService } from "@/modules/v4/token/token.service";
|
3
|
+
import { log } from "@/utils/logger";
|
4
|
+
import { Pricer } from "@/utils/pricer";
|
3
5
|
import { engineDbClient } from "@db";
|
4
6
|
import { BN2Number, ChainInteractionService, NETWORK_LABELS, } from "@sdk";
|
5
7
|
import moment from "moment";
|
6
|
-
import { log } from "../../../utils/logger";
|
7
|
-
import { Pricer } from "../../../utils/pricer";
|
8
8
|
/**
|
9
9
|
* Compute TVL
|
10
10
|
* @dev important: using the most recent state save with current prices
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { Pricer } from "@/utils/pricer";
|
2
3
|
import { BN2Number, ChainInteractionService, MetamorphoInterface, MorphoSubCampaignType, YEAR, morphoAddresses, } from "@sdk";
|
3
4
|
import axios from "axios";
|
4
5
|
import { utils } from "ethers";
|
5
6
|
import { zeroAddress } from "viem";
|
6
|
-
import { Pricer } from "../../../utils/pricer";
|
7
7
|
// TODO add the ABI
|
8
8
|
const MORPHO_ABI = [
|
9
9
|
"function position(bytes32,address) external view returns (uint256,uint128,uint128)",
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { CampaignService } from "@/modules/v4/campaign";
|
2
2
|
import { TokenService } from "@/modules/v4/token/token.service";
|
3
|
+
import { log } from "@/utils/logger";
|
4
|
+
import { Pricer } from "@/utils/pricer";
|
5
|
+
import { providers } from "@/utils/providers";
|
3
6
|
import { engineDbClient } from "@db";
|
4
7
|
import { BN2Number, ChainInteractionService, ERC20Interface, NULL_ADDRESS, RadiantInterface, RadiantPoolInterface, YEAR, } from "@sdk";
|
5
8
|
import { Contract } from "ethers";
|
6
|
-
import { log } from "../../../utils/logger";
|
7
|
-
import { Pricer } from "../../../utils/pricer";
|
8
|
-
import { providers } from "../../../utils/providers";
|
9
9
|
export class RadiantDynamicData {
|
10
10
|
async build(chainId, campaigns) {
|
11
11
|
const pricer = await Pricer.load();
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
3
|
+
import { Pricer } from "@/utils/pricer";
|
2
4
|
import { BN2Number, ChainInteractionService, ERC20Interface, Forwarder, YEAR, } from "@sdk";
|
3
5
|
import { utils } from "ethers";
|
4
|
-
import { log } from "../../../utils/logger";
|
5
|
-
import { Pricer } from "../../../utils/pricer";
|
6
6
|
const SILO_ABI = [
|
7
7
|
"function getAssets() view returns (address[])",
|
8
8
|
"function assetStorage(address) external view returns (address,address,address,uint256,uint256,uint256)",
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { BucketService } from "@/modules/v4/bucket/bucket.service";
|
2
2
|
import { TokenService } from "@/modules/v4/token/token.service";
|
3
|
+
import { log } from "@/utils/logger";
|
4
|
+
import { Pricer } from "@/utils/pricer";
|
3
5
|
import { engineDbClient } from "@db";
|
4
6
|
import { BN2Number, ChainInteractionService, EAprBreakdownType, NETWORK_LABELS, UniswapV4Addresses, UniswapV4StateViewInterface, getSqrtRatioAtTick, shortenAddress, } from "@sdk";
|
5
7
|
import moment from "moment";
|
6
|
-
import { log } from "../../../utils/logger";
|
7
|
-
import { Pricer } from "../../../utils/pricer";
|
8
8
|
// Constants
|
9
9
|
const CALLS_LENGTH = 2;
|
10
10
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
3
|
+
import { Pricer } from "@/utils/pricer";
|
2
4
|
import { BN2Number, ChainInteractionService, ERC20Interface, YEAR, } from "@sdk";
|
3
|
-
import { log } from "../../../utils/logger";
|
4
|
-
import { Pricer } from "../../../utils/pricer";
|
5
5
|
export const VEST_TREASURY = "0x7ccF5BbeC69c790D27dA3b5398B9e0d6D6EeC9F3";
|
6
6
|
export const VEST_TOKEN = "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4";
|
7
7
|
export class VestDynamicData {
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { MERKL_USER_POSITION_FETCHING_TIMEOUT } from "@/constants";
|
2
|
+
import { log } from "@/utils/logger";
|
1
3
|
import { ALM, NETWORK_LABELS, merklSubgraphALMEndpoints, withTimeout } from "@sdk";
|
2
4
|
import { gql, request } from "graphql-request";
|
3
|
-
import { MERKL_USER_POSITION_FETCHING_TIMEOUT } from "../../../constants";
|
4
|
-
import { log } from "../../../utils/logger";
|
5
5
|
const A51StrategiesQuery = gql `
|
6
6
|
query Strategies($pool_in: [String]) {
|
7
7
|
strategies: strategies(where: { pool_in: $pool_in }, first: 1000) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Redis } from "@/cache";
|
2
|
+
import { batchMulticallCallWithRetry } from "@/utils/generic";
|
3
|
+
import { providers } from "@/utils/providers";
|
2
4
|
import { DOLOMITE_MARGIN_MAPPING, DolomiteInterface, DolomiteMargin__factory, ERC20Interface, } from "@sdk";
|
3
|
-
import { batchMulticallCallWithRetry } from "../../../utils/generic";
|
4
|
-
import { providers } from "../../../utils/providers";
|
5
5
|
export const getDomiteMarkets = async (chainId) => {
|
6
6
|
if (!DOLOMITE_MARGIN_MAPPING[chainId]) {
|
7
7
|
throw "Dolomite is not supported on this chain";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { fetchEulerVaultName } from "@/engine/erc20SubTypeProcessors/helpers/eulerVaultNames";
|
1
|
+
import { fetchEulerVaultName } from "@/engine/deprecated/erc20SubTypeProcessors/helpers/eulerVaultNames";
|
2
2
|
import { batchMulticallCallWithRetry } from "@/utils/generic";
|
3
3
|
import { log, logger } from "@/utils/logger";
|
4
4
|
import { providers } from "@/utils/providers";
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20LikeCampaignEnum, Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type CallDto, type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20LikeCampaignEnum, Erc20SubType } from "../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import type { tokenTypeStruct } from "./tokenTypeStruct";
|
5
5
|
export declare enum Round {
|
6
6
|
one = "round1",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Erc20SubType } from "
|
1
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
2
2
|
export declare function getTypeFromFactoryAddress(address: string): Erc20SubType;
|
3
3
|
export declare const enzymeFundValueCalculatorRouterMapping: {
|
4
4
|
[address: string]: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Erc20SubType } from "
|
1
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
2
2
|
const factoryAddresses = {
|
3
3
|
"0x420DD381b31aEf6683db6B902084cB0FFECe40Da": Erc20SubType.aerodrome, // Aerodrome Base Factory
|
4
4
|
"0x31832f2a97Fd20664D76Cc421207669b55CE4BC0": Erc20SubType.velodrome, // Velodrome Mode Factory
|
@@ -1,3 +1,3 @@
|
|
1
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import { ChainId } from "@sdk";
|
2
|
-
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
3
|
export declare function getTypeFromAddressChain(chain: ChainId, token: string): Erc20SubType;
|
@@ -1,5 +1,5 @@
|
|
1
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import { ChainId } from "@sdk";
|
2
|
-
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
3
3
|
const chainAddressToType = {
|
4
4
|
[ChainId.CORN]: {
|
5
5
|
"0xab3291b73a1087265e126e330cede0cfd4b8a693": Erc20SubType.curveNPool,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Erc20SubType } from "
|
1
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
2
2
|
const ownerAddresses = {
|
3
3
|
"0xbF7E49483881C76487b0989CD7d9A8239B20CA41": Erc20SubType.curve_2,
|
4
4
|
"0x42a856dbEBB97AbC1269EAB32f3bb40C15102819": Erc20SubType.satlayer,
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawAave;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawAnglesLiquid;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawAsset;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import { generateCardName } from "@/utils/generateCardName";
|
2
3
|
import { BN2Number } from "@sdk";
|
3
|
-
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor } from "../GenericProcessor";
|
5
5
|
export class AssetProcessor extends GenericProcessor {
|
6
6
|
rounds = {
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
4
|
import type { BigNumber } from "ethers";
|
4
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
5
5
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawAura;
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
4
|
import type { BigNumber } from "ethers";
|
4
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
5
5
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBG;
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
4
|
import type { BigNumber } from "ethers";
|
4
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
5
5
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBG;
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
4
|
import { BigNumber } from "ethers";
|
4
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
5
5
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBP;
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
4
|
import type { BigNumber } from "ethers";
|
4
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
5
5
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBalancerV3;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawBeefy;
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters, type UniswapV4PoolKey } from "@sdk";
|
3
4
|
import type { PoolStateStructOutput } from "libs/sdk/src/generated/BunniV2Hub";
|
4
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
5
5
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
6
6
|
type callType = {
|
7
7
|
key: keyof dataRawBunniV2;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawCompound;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawERC4626;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawEnzyme;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawEqualizerGauge;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawEuler;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawEuler;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawFluid;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import type { Pricer } from "@/utils/pricer";
|
2
3
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawFrax;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
|
1
2
|
import { generateCardName } from "@/utils/generateCardName";
|
2
3
|
import { BN2Number } from "@sdk";
|
3
|
-
import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
|
4
4
|
import { GenericProcessor } from "../GenericProcessor";
|
5
5
|
export class FraxProcessor extends GenericProcessor {
|
6
6
|
rounds = {
|