@merkl/api 0.18.0 → 0.18.2
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/database/api/seeder/resources/protocol.d.ts +48 -48
- package/dist/src/backgroundJobs/index.js +8 -7
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.js +11 -11
- package/dist/src/backgroundJobs/jobs/health.js +1 -1
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.js +2 -1
- package/dist/src/cache/index.js +2 -2
- package/dist/src/cache/redis.js +1 -1
- package/dist/src/eden/index.d.ts +1014 -919
- package/dist/src/entities/campaign.js +1 -1
- package/dist/src/errors/VoidString.error.d.ts +4 -0
- package/dist/src/errors/VoidString.error.js +7 -0
- package/dist/src/factories/dynamicData/factory.d.ts +0 -0
- package/dist/src/factories/dynamicData/factory.js +10 -0
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/factory.js +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ajna.d.ts +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ajna.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ambiant.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ambiant.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Badger.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Badger.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Clamm.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Clamm.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Compound.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Compound.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Default.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Default.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Dolomite.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Dolomite.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/EigenLayer.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/EigenLayer.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Encompassing.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Encompassing.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Erc20.d.ts +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Erc20.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Erc20Snapshot.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Erc20Snapshot.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Euler.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Euler.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/EventBased.d.ts +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/EventBased.js +5 -5
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Hyperdrive.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Hyperdrive.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Invalid.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Invalid.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ion.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ion.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/JsonAirdrop.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/JsonAirdrop.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Morpho.d.ts +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Morpho.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Radiant.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Radiant.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Silo.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Silo.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/UniswapV4.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/UniswapV4.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Vest.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Vest.js +3 -3
- package/dist/src/guards/BackOffice.guard.js +1 -1
- package/dist/src/guards/Engine.guard.js +1 -1
- package/dist/src/guards/TokenAuth.guard.js +1 -1
- package/dist/src/index.d.ts +211 -186
- package/dist/src/jobs/etl/dynamic-data.js +1 -1
- package/dist/src/jobs/etl/pendings.js +5 -4
- package/dist/src/jobs/etl/prices.js +3 -3
- package/dist/src/jobs/etl/reward-breakdowns.js +3 -3
- package/dist/src/jobs/etl/rewards.js +2 -2
- package/dist/src/jobs/etl/update-dynamic-data.js +4 -4
- package/dist/src/jobs/etl/update-euler-vaults.d.ts +1 -0
- package/dist/src/jobs/etl/update-euler-vaults.js +122 -0
- package/dist/src/libs/campaigns/campaignTypes/AjnaDynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/BadgerDynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/GenericProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/GenericProcessor.js +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AaveProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AaveProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AnglesLiquid.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AnglesLiquid.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AssetProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AssetProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AuraProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AuraProcessor.js +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerGaugeProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerGaugeProcessor.js +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerPoolProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerPoolProcessor.js +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerV3PoolProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerV3PoolProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BeefyProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BeefyProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/CompoundProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/CompoundProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ERC4626Processor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ERC4626Processor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EnzymeProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EnzymeProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EqualizerGaugeProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EqualizerGaugeProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerBorrowProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerBorrowProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerLendProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerLendProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FluidProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FluidProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FraxProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FraxProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GammaProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GammaProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GearboxProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GearboxProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HanjiVaultProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HanjiVaultProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HoldStationProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HoldStationProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HourglassProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HourglassProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MaverickBPProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MaverickBPProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MetamorphoProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MetamorphoProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/NoLinkVaultProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/NoLinkVaultProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleYTProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleYTProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RadiantProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RadiantProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RfxProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RfxProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/Satlayer.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/Satlayer.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraYTProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraYTProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpliceProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SturdySiloProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SturdySiloProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TempestVaultProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TempestVaultProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TemplateProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TorosProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TorosProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/UniswapProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/UniswapProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/VicunaProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/VicunaProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/WoofiProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/WoofiProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ZkSwapThreePoolProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ZkSwapThreePoolProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveNPoolProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveNPoolProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/stakedCurveProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/stakedCurveProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/xU308Processor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/xU308Processor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/EventBasedDynamicData.js +14 -17
- package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/UniswapV4DynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignsDynamicData.js +1 -1
- package/dist/src/libs/campaigns/utils/fetchClamInfo.d.ts +1 -1
- package/dist/src/libs/campaigns/utils/fetchLogs.js +1 -1
- package/dist/src/libs/campaigns/utils/getCompV2ForksVaults.js +4 -4
- package/dist/src/libs/campaigns/utils/getContractCreationBlock.js +1 -1
- package/dist/src/libs/campaigns/utils/getDolomiteMarkets.js +1 -1
- package/dist/src/libs/campaigns/utils/getEulerV2Vaults.js +5 -5
- package/dist/src/libs/campaigns/utils/getUniswapV4Pools.js +4 -4
- package/dist/src/libs/deprecated-merklv3/index.d.ts +1 -1
- package/dist/src/libs/deprecated-merklv3/index.js +2 -2
- package/dist/src/libs/getTokensList.js +1 -1
- package/dist/src/libs/merklChainData.js +2 -2
- package/dist/src/libs/parse/marketsWithCache.js +2 -2
- package/dist/src/libs/positions/ajna/index.js +1 -1
- package/dist/src/libs/positions/badger/index.js +2 -2
- package/dist/src/libs/positions/clamm/index.js +3 -3
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +1 -1
- package/dist/src/libs/staticCampaigns.js +2 -2
- package/dist/src/libs/tokens/balances.js +1 -1
- package/dist/src/libs/tokens/tokenInfo.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.controller.js +3 -3
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.repository.js +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.js +2 -2
- package/dist/src/modules/v4/airflow/airflow.service.js +1 -1
- package/dist/src/modules/v4/apr/apr.model.d.ts +1 -1
- package/dist/src/modules/v4/apr/apr.model.js +1 -1
- package/dist/src/modules/v4/apr/apr.service.js +1 -1
- package/dist/src/modules/v4/blacklist/blacklist.controller.js +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.repository.js +1 -1
- package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
- package/dist/src/modules/v4/cache/cache.repository.js +1 -1
- package/dist/src/modules/v4/cache/cache.service.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +23 -23
- package/dist/src/modules/v4/campaign/campaign.controller.js +4 -4
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.model.js +2 -2
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +60 -46
- package/dist/src/modules/v4/campaign/campaign.repository.js +6 -5
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +69 -55
- package/dist/src/modules/v4/campaign/campaign.service.js +9 -9
- package/dist/src/modules/v4/chain/chain.controller.d.ts +10 -10
- package/dist/src/modules/v4/chain/chain.controller.js +1 -1
- package/dist/src/modules/v4/chain/chain.model.d.ts +1 -1
- package/dist/src/modules/v4/chain/chain.model.js +1 -1
- package/dist/src/modules/v4/chain/chain.repository.d.ts +11 -11
- package/dist/src/modules/v4/chain/chain.repository.js +1 -1
- package/dist/src/modules/v4/chain/chain.service.d.ts +10 -10
- package/dist/src/modules/v4/claims/claims.controller.js +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.js +2 -2
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.js +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.js +1 -1
- package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.controller.js +2 -2
- package/dist/src/modules/v4/creator/creator.model.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.repository.js +1 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +6 -7
- package/dist/src/modules/v4/enso/enso.model.d.ts +40 -40
- package/dist/src/modules/v4/enso/enso.service.d.ts +3 -3
- package/dist/src/modules/v4/enso/enso.service.js +2 -2
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.controller.js +1 -1
- package/dist/src/modules/v4/explorer/explorer.model.js +1 -1
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +5 -5
- package/dist/src/modules/v4/explorer/explorer.repository.js +1 -1
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +6 -6
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.model.d.ts +2 -2
- package/dist/src/modules/v4/interaction/interaction.service.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.service.js +3 -3
- package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +22 -22
- package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +1 -1
- package/dist/src/modules/v4/kyberzap/kyberzap.service.js +1 -1
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.js +1 -1
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.js +1 -1
- package/dist/src/modules/v4/liquidity/liquidity.controller.js +1 -1
- package/dist/src/modules/v4/liquidity/liquidity.service.js +1 -1
- package/dist/src/modules/v4/merklRoot/index.d.ts +3 -3
- package/dist/src/modules/v4/merklRoot/index.js +3 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +2 -2
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +81 -81
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.converter.js +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +11 -11
- package/dist/src/modules/v4/opportunity/opportunity.model.js +7 -7
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +128 -114
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +13 -5
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +106 -106
- package/dist/src/modules/v4/opportunity/opportunity.service.js +11 -11
- package/dist/src/modules/v4/opportunity/validate-id.pipe.js +1 -1
- package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
- package/dist/src/modules/v4/price/price.controller.js +2 -2
- package/dist/src/modules/v4/price/price.model.js +1 -1
- package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
- package/dist/src/modules/v4/price/price.repository.js +1 -1
- package/dist/src/modules/v4/price/price.service.d.ts +8 -8
- package/dist/src/modules/v4/price/price.service.js +3 -3
- package/dist/src/modules/v4/prisma/index.d.ts +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.controller.js +2 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +209 -21
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +120 -62
- package/dist/src/modules/v4/programPayload/programPayload.service.js +4 -2
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +6 -6
- package/dist/src/modules/v4/protocol/protocol.controller.js +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +10 -10
- package/dist/src/modules/v4/protocol/protocol.repository.js +1 -1
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
- package/dist/src/modules/v4/protocol/protocol.service.js +3 -3
- package/dist/src/modules/v4/referral/referral.controller.js +1 -1
- package/dist/src/modules/v4/reward/index.d.ts +2 -2
- package/dist/src/modules/v4/reward/index.js +2 -2
- package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.js +6 -6
- package/dist/src/modules/v4/reward/reward.model.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +10 -10
- package/dist/src/modules/v4/reward/reward.repository.js +4 -4
- package/dist/src/modules/v4/reward/reward.service.d.ts +56 -56
- package/dist/src/modules/v4/reward/reward.service.js +5 -3
- package/dist/src/modules/v4/router.d.ts +201 -181
- package/dist/src/modules/v4/router.js +23 -23
- package/dist/src/modules/v4/status/status.controller.d.ts +24 -4
- package/dist/src/modules/v4/status/status.controller.js +13 -3
- package/dist/src/modules/v4/status/status.model.d.ts +3 -0
- package/dist/src/modules/v4/status/status.model.js +2 -1
- package/dist/src/modules/v4/status/status.repository.d.ts +18 -10
- package/dist/src/modules/v4/status/status.repository.js +13 -3
- package/dist/src/modules/v4/status/status.service.d.ts +7 -6
- package/dist/src/modules/v4/status/status.service.js +15 -3
- package/dist/src/modules/v4/token/token.controller.d.ts +9 -9
- package/dist/src/modules/v4/token/token.controller.js +4 -4
- package/dist/src/modules/v4/token/token.model.d.ts +1 -1
- package/dist/src/modules/v4/token/token.repository.d.ts +3 -3
- package/dist/src/modules/v4/token/token.repository.js +3 -3
- package/dist/src/modules/v4/token/token.service.d.ts +11 -11
- package/dist/src/modules/v4/token/token.service.js +5 -5
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +1 -1
- package/dist/src/modules/v4/tvl/tvl.model.js +1 -1
- package/dist/src/modules/v4/tvl/tvl.service.js +1 -1
- package/dist/src/modules/v4/uniswapV4/uniswapV4.service.js +3 -3
- package/dist/src/modules/v4/user/user.controller.d.ts +22 -22
- package/dist/src/modules/v4/user/user.controller.js +2 -2
- package/dist/src/modules/v4/user/user.model.d.ts +1 -1
- package/dist/src/modules/v4/user/user.model.js +1 -1
- package/dist/src/modules/v4/user/user.repository.js +1 -1
- package/dist/src/modules/v4/user/user.service.js +2 -2
- package/dist/src/plugins/error-handling.plugin.d.ts +1 -1
- package/dist/src/plugins/error-handling.plugin.js +2 -2
- package/dist/src/routes/v1/allowances.d.ts +2 -2
- package/dist/src/routes/v1/allowances.js +5 -5
- package/dist/src/routes/v1/balances.js +5 -5
- package/dist/src/routes/v1/prices.js +1 -1
- package/dist/src/routes/v1/tokens.js +1 -1
- package/dist/src/routes/v3/app.d.ts +7 -2
- package/dist/src/routes/v3/app.js +20 -10
- package/dist/src/routes/v3/blacklist.js +1 -1
- package/dist/src/routes/v3/campaign/delay.js +3 -3
- package/dist/src/routes/v3/campaignClaims.js +3 -3
- package/dist/src/routes/v3/campaignUnclaimed.js +1 -1
- package/dist/src/routes/v3/campaigns.js +6 -7
- package/dist/src/routes/v3/campaignsForMainParameter.js +2 -2
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +2 -2
- package/dist/src/routes/v3/campaignsRewardsReport.js +4 -6
- package/dist/src/routes/v3/compoundV2.js +1 -1
- package/dist/src/routes/v3/euler.js +1 -1
- package/dist/src/routes/v3/health.js +1 -1
- package/dist/src/routes/v3/lostyield.js +3 -3
- package/dist/src/routes/v3/merkl.js +1 -1
- package/dist/src/routes/v3/morphoMarkets.js +1 -1
- package/dist/src/routes/v3/morphoVaults.js +1 -1
- package/dist/src/routes/v3/multiChainPositions.js +1 -1
- package/dist/src/routes/v3/opportunity.d.ts +2 -2
- package/dist/src/routes/v3/opportunity.js +3 -4
- package/dist/src/routes/v3/overview.d.ts +2 -2
- package/dist/src/routes/v3/overview.js +2 -3
- package/dist/src/routes/v3/positions.d.ts +3 -4
- package/dist/src/routes/v3/positions.js +4 -5
- package/dist/src/routes/v3/radiant.js +1 -1
- package/dist/src/routes/v3/recipients.js +1 -1
- package/dist/src/routes/v3/rewards.js +2 -2
- package/dist/src/routes/v3/rewardsReport.js +1 -1
- package/dist/src/routes/v3/router.d.ts +11 -6
- package/dist/src/routes/v3/silo.js +1 -1
- package/dist/src/routes/v3/token.js +4 -4
- package/dist/src/routes/v3/twt/participants.js +55 -3
- package/dist/src/routes/v3/uniswapv4.js +1 -1
- package/dist/src/routes/v3/updates.js +2 -2
- package/dist/src/routes/v3/userRewards.js +5 -5
- package/dist/src/utils/encodeCalls.d.ts +1 -1
- package/dist/src/utils/encodeCalls.js +1 -1
- package/dist/src/utils/error.d.ts +1 -1
- package/dist/src/utils/error.js +1 -1
- package/dist/src/utils/generateCardName.d.ts +1 -1
- package/dist/src/utils/generateCardName.js +1 -1
- package/dist/src/utils/generateIcons.d.ts +1 -1
- package/dist/src/utils/generateIcons.js +2 -2
- package/dist/src/utils/lastBlockBefore.js +2 -2
- package/dist/src/utils/pricer.js +1 -1
- package/dist/src/utils/prices/priceFetcherFactory.d.ts +1 -1
- package/dist/src/utils/prices/priceFetcherFactory.js +1 -1
- package/dist/src/utils/prices/priceService.js +2 -2
- package/dist/src/utils/prices/services/coinGeckoService.d.ts +1 -1
- package/dist/src/utils/prices/services/coinGeckoService.js +1 -1
- package/dist/src/utils/prices/services/defillamaService.d.ts +1 -1
- package/dist/src/utils/prices/services/defillamaService.js +1 -1
- package/dist/src/utils/prices/services/dexScreenerService.d.ts +1 -1
- package/dist/src/utils/prices/services/dexScreenerService.js +1 -1
- package/dist/src/utils/prices/services/erc4626Service.d.ts +1 -1
- package/dist/src/utils/prices/services/erc4626Service.js +2 -2
- package/dist/src/utils/prices/services/indexCoopService.d.ts +1 -1
- package/dist/src/utils/prices/services/indexCoopService.js +1 -1
- package/dist/src/utils/prices/services/priceFetcher.d.ts +1 -1
- package/dist/src/utils/prisma.d.ts +3 -3
- package/dist/src/utils/prisma.js +2 -2
- package/dist/src/utils/queries/activeCampaigns.d.ts +1 -1
- package/dist/src/utils/queries/activeCampaigns.js +1 -1
- package/dist/src/utils/queries/allCampaigns.d.ts +1 -1
- package/dist/src/utils/queries/allCampaigns.js +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/dist/src/libs/campaigns/getCampaigns.d.ts +0 -1
- package/dist/src/libs/campaigns/getCampaigns.js +0 -18
- package/dist/src/libs/custom/twtParticipants.d.ts +0 -6
- package/dist/src/libs/custom/twtParticipants.js +0 -54
- package/dist/src/modules/v4/programPayload/index.d.ts +0 -3
- package/dist/src/modules/v4/programPayload/index.js +0 -3
- package/dist/src/modules/v4/status/index.d.ts +0 -2
- package/dist/src/modules/v4/status/index.js +0 -2
- package/dist/src/types/parameters/Action.d.ts +0 -4
- package/dist/src/types/parameters/Action.js +0 -11
- package/dist/src/types/parameters/Chain.d.ts +0 -4
- package/dist/src/types/parameters/Chain.js +0 -13
- package/dist/src/types/parameters/ChainCampaignId.d.ts +0 -4
- package/dist/src/types/parameters/ChainCampaignId.js +0 -13
- package/dist/src/types/parameters/MainParameter.d.ts +0 -4
- package/dist/src/types/parameters/MainParameter.js +0 -19
- package/dist/src/types/parameters/OpportunityId.d.ts +0 -4
- package/dist/src/types/parameters/OpportunityId.js +0 -14
- package/dist/src/types/parameters/Timestamp.d.ts +0 -4
- package/dist/src/types/parameters/Timestamp.js +0 -16
- package/dist/src/types/parameters/Type.d.ts +0 -4
- package/dist/src/types/parameters/Type.js +0 -15
- package/dist/src/types/parameters/index.d.ts +0 -36
- package/dist/src/types/parameters/index.js +0 -17
- /package/dist/src/factories/{metadataFactory → opportunityMetadata}/factory.d.ts +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { campaignCacheUpdate } from "
|
1
|
+
import { campaignCacheUpdate } from "@/backgroundJobs/jobs/campaignsCacheUpdater";
|
2
2
|
import { ChainId, isSupportedChain } from "@sdk";
|
3
3
|
import { InvalidParameter, UnsupportedNetwork } from "../../utils/error";
|
4
4
|
const campaignTypes = process.env.CAMPAIGN_TYPES ? JSON.parse(process.env.CAMPAIGN_TYPES) : [];
|
@@ -1,8 +1,8 @@
|
|
1
1
|
// ─── Pending Rewards Etl ─────────────────────────────────────────────────────
|
2
2
|
if (!process.env.ENV || !process.env.FILENAME)
|
3
3
|
throw new Error("[ENV]: missing variable");
|
4
|
-
import { log } from "
|
5
|
-
import { apiDbClient } from "
|
4
|
+
import { log } from "@/utils/logger";
|
5
|
+
import { apiDbClient } from "@/utils/prisma";
|
6
6
|
import { NETWORK_LABELS, withRetry } from "@sdk";
|
7
7
|
import { S3Client } from "bun";
|
8
8
|
import moment from "moment";
|
@@ -135,10 +135,11 @@ const updatePendings = async (data) => {
|
|
135
135
|
})));
|
136
136
|
for (const [pointIndex, point] of Object.values(rewardIdToPendingIncrease).entries()) {
|
137
137
|
if (BigInt(point.pendingIncrease) > 0n) {
|
138
|
-
|
138
|
+
const rewardExists = RewardExists[pointIndex];
|
139
|
+
if (!!rewardExists) {
|
139
140
|
rewardToUpdate.push({
|
140
141
|
recipient: point.recipient,
|
141
|
-
pending: BigInt(
|
142
|
+
pending: BigInt(rewardExists.pending) + BigInt(point.pendingIncrease),
|
142
143
|
});
|
143
144
|
}
|
144
145
|
else {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { TokenService } from "
|
2
|
-
import { log } from "
|
3
|
-
import { Pricer } from "
|
1
|
+
import { TokenService } from "@/modules/v4/token/token.service";
|
2
|
+
import { log } from "@/utils/logger";
|
3
|
+
import { Pricer } from "@/utils/pricer";
|
4
4
|
const pricer = await Pricer.load();
|
5
5
|
const prices = await pricer.update();
|
6
6
|
log.info(`✅ ${Object.keys(prices).length} prices cache updated successfully`);
|
@@ -1,9 +1,9 @@
|
|
1
1
|
// ─── Reward Breakdowns ETL ───────────────────────────────────────────────────
|
2
2
|
if (!process.env.DATABASE_API_URL || !process.env.ENV || !process.env.CHAIN_ID || !process.env.ROOT)
|
3
3
|
throw new Error("[ENV]: missing variable");
|
4
|
-
import { BucketService } from "
|
5
|
-
import { log } from "
|
6
|
-
import { apiDbClient } from "
|
4
|
+
import { BucketService } from "@/modules/v4/bucket/bucket.service";
|
5
|
+
import { log } from "@/utils/logger";
|
6
|
+
import { apiDbClient } from "@/utils/prisma";
|
7
7
|
import { S3Client } from "bun";
|
8
8
|
import moment from "moment";
|
9
9
|
// ─── Global Variables ────────────────────────────────────────
|
@@ -1,8 +1,8 @@
|
|
1
1
|
// ─── Rewards ETL ─────────────────────────────────────────────────────────────
|
2
2
|
if (!process.env.ENV || !process.env.CHAIN_ID || !process.env.ROOT)
|
3
3
|
throw new Error("[ENV]: missing variable");
|
4
|
-
import { log } from "
|
5
|
-
import { apiDbClient } from "
|
4
|
+
import { log } from "@/utils/logger";
|
5
|
+
import { apiDbClient } from "@/utils/prisma";
|
6
6
|
import { withRetry } from "@sdk";
|
7
7
|
import { S3Client } from "bun";
|
8
8
|
import moment from "moment";
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { CampaignService } from "
|
2
|
-
import { DynamicDataService } from "
|
3
|
-
import { OpportunityService } from "
|
1
|
+
import { CampaignService } from "@/modules/v4/campaign";
|
2
|
+
import { DynamicDataService } from "@/modules/v4/dynamicData/dynamicData.service";
|
3
|
+
import { OpportunityService } from "@/modules/v4/opportunity";
|
4
4
|
import { Campaign as CampaignEnum } from "@sdk";
|
5
5
|
import moment from "moment";
|
6
6
|
// ─── Required Env Variables ──────────────────────────────────────────────────
|
@@ -21,7 +21,7 @@ const main = async () => {
|
|
21
21
|
computeChainId: c.computeChainId,
|
22
22
|
creator: c.creatorAddress,
|
23
23
|
endTimestamp: Number(c.endTimestamp),
|
24
|
-
rewardToken: c.
|
24
|
+
rewardToken: c.RewardToken.address,
|
25
25
|
startTimestamp: Number(c.startTimestamp),
|
26
26
|
index: 0,
|
27
27
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function updateEulerVaultsCollatInDatabase(): Promise<void>;
|
@@ -0,0 +1,122 @@
|
|
1
|
+
import { Redis } from "@/cache";
|
2
|
+
import { fetchEulerVaultName } from "@/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/eulerVaultNames";
|
3
|
+
import { LoggedEntityType, getEulerV2Vaults } from "@/libs/campaigns/utils/getEulerV2Vaults";
|
4
|
+
import { batchMulticallCallWithRetry } from "@/utils/generic";
|
5
|
+
import { log } from "@/utils/logger";
|
6
|
+
import { apiDbClient } from "@/utils/prisma";
|
7
|
+
import { ERC20Interface, EULER_ADDRESSES, EulerEVKInterface, EulerVaultLensInterface, NETWORK_LABELS, eulerChainIds, } from "@sdk";
|
8
|
+
import _ from "lodash";
|
9
|
+
async function computeCollatListAndReturnVaults(chainId, vaults) {
|
10
|
+
let vaultsPerChain = [];
|
11
|
+
/** Extra calls batch to get the collateral addresses */
|
12
|
+
const resCollat = await batchMulticallCallWithRetry(chainId, {
|
13
|
+
calls: vaults
|
14
|
+
.map(vault => vault.address)
|
15
|
+
.map(vaultAddress => {
|
16
|
+
return {
|
17
|
+
allowFailure: true,
|
18
|
+
callData: EulerVaultLensInterface.encodeFunctionData("getRecognizedCollateralsLTVInfo", [vaultAddress]),
|
19
|
+
target: EULER_ADDRESSES[chainId].VAULT_LENS,
|
20
|
+
};
|
21
|
+
}),
|
22
|
+
});
|
23
|
+
const callsCollatUnderlying = [];
|
24
|
+
const callsCollatUnderlyingSymbol = [];
|
25
|
+
for (const [index, vault] of vaults.entries()) {
|
26
|
+
const collatArray = EulerVaultLensInterface.decodeFunctionResult("getRecognizedCollateralsLTVInfo", resCollat[index].returnData)[0];
|
27
|
+
for (const collat of collatArray) {
|
28
|
+
if (!!vault.collaterals &&
|
29
|
+
vault.collaterals.map(c => c.address.toLowerCase()).includes(collat.collateral.toLowerCase()))
|
30
|
+
continue;
|
31
|
+
log.info(`🦭 found new collateral ${collat.collateral} for vault ${vault.address} (${NETWORK_LABELS[chainId]})`);
|
32
|
+
callsCollatUnderlying.push({
|
33
|
+
allowFailure: true,
|
34
|
+
callData: EulerEVKInterface.encodeFunctionData("asset"),
|
35
|
+
target: collat.collateral,
|
36
|
+
}, {
|
37
|
+
allowFailure: true,
|
38
|
+
callData: EulerEVKInterface.encodeFunctionData("symbol"),
|
39
|
+
target: collat.collateral,
|
40
|
+
});
|
41
|
+
}
|
42
|
+
}
|
43
|
+
const resCollatUnderlying = await batchMulticallCallWithRetry(chainId, {
|
44
|
+
calls: callsCollatUnderlying,
|
45
|
+
});
|
46
|
+
for (let i = 0; i < resCollatUnderlying.length; i = i + 2) {
|
47
|
+
const underlyingToken = EulerEVKInterface.decodeFunctionResult("asset", resCollatUnderlying[i].returnData)[0];
|
48
|
+
callsCollatUnderlyingSymbol.push({
|
49
|
+
allowFailure: true,
|
50
|
+
callData: ERC20Interface.encodeFunctionData("symbol"),
|
51
|
+
target: underlyingToken,
|
52
|
+
});
|
53
|
+
}
|
54
|
+
const resCollatUnderlyingSymbol = await batchMulticallCallWithRetry(chainId, {
|
55
|
+
calls: callsCollatUnderlyingSymbol,
|
56
|
+
});
|
57
|
+
vaultsPerChain = vaultsPerChain.concat((await Promise.all(vaults.map(async (vault, index) => {
|
58
|
+
const collatArray = EulerVaultLensInterface.decodeFunctionResult("getRecognizedCollateralsLTVInfo", resCollat[index].returnData)[0];
|
59
|
+
if (!vault.collaterals)
|
60
|
+
vault.collaterals = [];
|
61
|
+
let offset = 0;
|
62
|
+
for (const [_index, collat] of collatArray.entries()) {
|
63
|
+
// _ Check whether the collat was already registered
|
64
|
+
if (!!vault.collaterals &&
|
65
|
+
vault.collaterals.map(c => c.address.toLowerCase()).includes(collat.collateral.toLowerCase())) {
|
66
|
+
offset += 1;
|
67
|
+
continue;
|
68
|
+
}
|
69
|
+
const symbolUnderlying = ERC20Interface.decodeFunctionResult("symbol", resCollatUnderlyingSymbol[_index - offset].returnData)[0];
|
70
|
+
vault.collaterals.push({
|
71
|
+
address: collat.collateral,
|
72
|
+
symbolCollateral: EulerEVKInterface.decodeFunctionResult("symbol", resCollatUnderlying[2 * (_index - offset) + 1].returnData)[0],
|
73
|
+
symbolUnderlying,
|
74
|
+
borrowLTV: collat.borrowLTV.toString(),
|
75
|
+
nameCollateral: (await fetchEulerVaultName(collat.collateral, chainId)) ?? symbolUnderlying,
|
76
|
+
});
|
77
|
+
}
|
78
|
+
return { ...vault };
|
79
|
+
}))));
|
80
|
+
return vaultsPerChain;
|
81
|
+
}
|
82
|
+
export async function updateEulerVaultsCollatInDatabase() {
|
83
|
+
// 0_ Fetch all euler vaults from database
|
84
|
+
const vaults = await apiDbClient.logged.findMany({
|
85
|
+
where: { type: LoggedEntityType.EULER },
|
86
|
+
});
|
87
|
+
const clonedVaults = _.cloneDeep(vaults);
|
88
|
+
let toUpdateVaults = [];
|
89
|
+
// 1_ Return all vaults already stored with their collateral updated
|
90
|
+
const res = await Promise.all(eulerChainIds.map(async (chainId) => computeCollatListAndReturnVaults(chainId, clonedVaults.filter(entity => entity.chainId === chainId).map(entity => entity.entityData))));
|
91
|
+
for (const resPerChain of res) {
|
92
|
+
if (!!resPerChain && resPerChain.length > 0) {
|
93
|
+
toUpdateVaults = toUpdateVaults.concat(resPerChain.filter(updatedVault => {
|
94
|
+
return (updatedVault.collaterals.length >
|
95
|
+
vaults.find(vault => vault.address?.toLowerCase() === updatedVault.address.toLowerCase())
|
96
|
+
?.entityData?.collaterals.length);
|
97
|
+
}));
|
98
|
+
}
|
99
|
+
}
|
100
|
+
// 2_ Update the API database
|
101
|
+
if (toUpdateVaults.length > 0) {
|
102
|
+
try {
|
103
|
+
for (const vault of toUpdateVaults) {
|
104
|
+
await apiDbClient.logged.updateMany({
|
105
|
+
where: {
|
106
|
+
address: vault.address,
|
107
|
+
chainId: vault.chainId,
|
108
|
+
},
|
109
|
+
data: {
|
110
|
+
entityData: vault,
|
111
|
+
},
|
112
|
+
});
|
113
|
+
}
|
114
|
+
log.info(`✅ successfully updated ${toUpdateVaults.length} vault(s) collaterals in API database ('Logged' table)`);
|
115
|
+
}
|
116
|
+
catch {
|
117
|
+
throw new Error("Error while updating vaults to API database (`Logged` table)");
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
await updateEulerVaultsCollatInDatabase();
|
122
|
+
await Redis.safeSet("EulerV2Vaults", await getEulerV2Vaults());
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { batchMulticallCallWithRetry } from "
|
2
|
-
import { providers } from "
|
1
|
+
import { batchMulticallCallWithRetry } from "@/utils/generic";
|
2
|
+
import { providers } from "@/utils/providers";
|
3
3
|
import { AjnaSubCampaignType, BN2Number, ERC20Pool__factory, NETWORK_LABELS, PoolInfoUtilsInterface, YEAR, } from "@sdk";
|
4
4
|
import { POOL_INFO_UTILS } from "@sdk";
|
5
5
|
import axios from "axios";
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { BN2Number, SortedCdpsInterface, YEAR, } from "@sdk";
|
2
2
|
import { log } from "../../../utils/logger";
|
3
3
|
import { Pricer } from "../../../utils/pricer";
|
4
|
-
import { CDPMANAGER_ADDRESS, EBTC_ADDRESS, SORTEDCDPS_ADDRESS } from "
|
5
|
-
import { batchMulticallCallWithRetry } from "
|
4
|
+
import { CDPMANAGER_ADDRESS, EBTC_ADDRESS, SORTEDCDPS_ADDRESS } from "@/constants";
|
5
|
+
import { batchMulticallCallWithRetry } from "@/utils/generic";
|
6
6
|
import { CdpManagerInterface } from "../../../../libs/sdk/src/merkl/interface";
|
7
7
|
export async function BadgerDynamicData(chainId, campaigns) {
|
8
8
|
const pricer = await Pricer.load();
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { nftPositionByIdsQuery, positionMultipleOwnersQuery } from "
|
2
|
-
import { fetchFarmedPositions } from "
|
1
|
+
import { nftPositionByIdsQuery, positionMultipleOwnersQuery } from "@/libs/positions/clamm/thegraph";
|
2
|
+
import { fetchFarmedPositions } from "@/libs/positions/clamm/thegraph/fetchFarmedPositions";
|
3
3
|
import { A51Factory__factory, ALM, ALMMapping, AMM, AMMAlgorithm, AMMAlgorithmMapping, BN2Number, 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";
|
4
4
|
import axios from "axios";
|
5
5
|
import { BigNumber, utils } from "ethers";
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { merklChainDataWithCache } from "
|
2
|
-
import { ComputedValueService } from "
|
3
|
-
import { TokenRepository } from "
|
4
|
-
import { log } from "
|
1
|
+
import { merklChainDataWithCache } from "@/libs/merklChainData";
|
2
|
+
import { ComputedValueService } from "@/modules/v4/computedValue";
|
3
|
+
import { TokenRepository } from "@/modules/v4/token/token.repository";
|
4
|
+
import { log } from "@/utils/logger";
|
5
5
|
import { BN2Number, BalancerPoolInterface, BalancerV3StablePoolInterface, ChainInteractionService, ERC20Interface, EnzymeInterface, FactoryInterface, LayerBankERC20Interface, MetamorphoInterface, YEAR, getEnv, } from "@sdk";
|
6
6
|
import { Pricer } from "../../../utils/pricer";
|
7
7
|
import { tokenType } from "./ERC20SubTypes/helpers/tokenType";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type CallDto, type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { ERC20SupportedCampaignType } from "../ERC20DynamicData";
|
4
4
|
import { type tokenType, type tokenTypeStruct } from "./helpers/tokenType";
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { decodeCall } from "
|
2
|
-
import { createCall } from "
|
3
|
-
import { generateCardName } from "
|
4
|
-
import { generateIcons } from "
|
1
|
+
import { decodeCall } from "@/utils/decodeCalls";
|
2
|
+
import { createCall } from "@/utils/encodeCalls";
|
3
|
+
import { generateCardName } from "@/utils/generateCardName";
|
4
|
+
import { generateIcons } from "@/utils/generateIcons";
|
5
5
|
import { BN2Number } from "@sdk";
|
6
6
|
import { tokenTypeToProtocol } from "./helpers/tokenType";
|
7
7
|
export var Round;
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AaveProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AnglesLiquid.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class AnglesLiquidProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AssetProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AssetProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
import { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AuraProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { BigNumber } from "ethers";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AuraProcessor.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { decodeCall } from "
|
2
|
-
import { createCall } from "
|
3
|
-
import { generateCardName } from "
|
1
|
+
import { decodeCall } from "@/utils/decodeCalls";
|
2
|
+
import { createCall } from "@/utils/encodeCalls";
|
3
|
+
import { generateCardName } from "@/utils/generateCardName";
|
4
4
|
import { BN2Number } from "@sdk";
|
5
5
|
import { utils } from "ethers";
|
6
6
|
import { GenericProcessor, Round } from "../GenericProcessor";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { BigNumber } from "ethers";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { decodeCall } from "
|
2
|
-
import { createCall } from "
|
3
|
-
import { generateCardName } from "
|
1
|
+
import { decodeCall } from "@/utils/decodeCalls";
|
2
|
+
import { createCall } from "@/utils/encodeCalls";
|
3
|
+
import { generateCardName } from "@/utils/generateCardName";
|
4
4
|
import { BN2Number } from "@sdk";
|
5
5
|
import { GenericProcessor, Round } from "../GenericProcessor";
|
6
6
|
export class BalancerGaugeProcessor extends GenericProcessor {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { BigNumber } from "ethers";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerPoolProcessor.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { decodeCall } from "
|
2
|
-
import { createCall } from "
|
3
|
-
import { generateCardName } from "
|
1
|
+
import { decodeCall } from "@/utils/decodeCalls";
|
2
|
+
import { createCall } from "@/utils/encodeCalls";
|
3
|
+
import { generateCardName } from "@/utils/generateCardName";
|
4
4
|
import { BN2Number } from "@sdk";
|
5
5
|
import { BigNumber } from "ethers";
|
6
6
|
import { utils } from "ethers";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { BigNumber } from "ethers";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BeefyProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BeefyProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class BeefyProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/CompoundProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/CompoundProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class CompoundProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ERC4626Processor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ERC4626Processor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class ERC4626Processor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EnzymeProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EnzymeProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class EnzymeProcessor extends GenericProcessor {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import axios from "axios";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
const findObjectByFarm = (dict, farmAddress) => {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerBorrowProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number, EulerSubCampaignType } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
import { fetchEulerVaultName } from "../helpers/eulerVaultNames";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerLendProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerLendProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
import { fetchEulerVaultName } from "../helpers/eulerVaultNames";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FluidProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FraxProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FraxProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
import { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GammaProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GammaProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class GammaProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GearboxProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GearboxProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class GearboxProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HanjiVaultProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HanjiVaultProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class HanjiVaultProcessor extends GenericProcessor {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|