@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,16 +1,16 @@
|
|
1
|
-
import { NotFoundError } from "
|
2
|
-
import { TTLPresets } from "
|
3
|
-
import { CacheService } from "
|
4
|
-
import { CampaignService } from "
|
5
|
-
import { CampaignRepository } from "
|
6
|
-
import { TokenService } from "
|
7
|
-
import { UserService } from "
|
8
|
-
import { log } from "
|
9
|
-
import { Prisma, Status } from "
|
1
|
+
import { NotFoundError } from "@/errors";
|
2
|
+
import { TTLPresets } from "@/modules/v4/cache/cache.model";
|
3
|
+
import { CacheService } from "@/modules/v4/cache/cache.service";
|
4
|
+
import { CampaignService } from "@/modules/v4/campaign";
|
5
|
+
import { CampaignRepository } from "@/modules/v4/campaign/campaign.repository";
|
6
|
+
import { TokenService } from "@/modules/v4/token/token.service";
|
7
|
+
import { UserService } from "@/modules/v4/user/user.service";
|
8
|
+
import { log } from "@/utils/logger";
|
9
|
+
import { Prisma, Status } from "@db/api";
|
10
10
|
import { record } from "@elysiajs/opentelemetry";
|
11
11
|
import { Campaign as CampaignEnum } from "@sdk";
|
12
12
|
import moment from "moment";
|
13
|
-
import { metadataBuilderFactory } from "../../../factories/
|
13
|
+
import { metadataBuilderFactory } from "../../../factories/opportunityMetadata/factory";
|
14
14
|
import { OpportunityRepository } from "./opportunity.repository";
|
15
15
|
export class OpportunityService {
|
16
16
|
static hashId(opportunity) {
|
@@ -34,7 +34,7 @@ export class OpportunityService {
|
|
34
34
|
const campaignParams = JSON.parse(campaign.params);
|
35
35
|
const computeChainId = campaign.computeChainId === 0 ? campaign.chainId : campaign.computeChainId;
|
36
36
|
const distributionChainId = campaign.chainId;
|
37
|
-
return await metadataBuilderFactory(campaignType).
|
37
|
+
return await metadataBuilderFactory(campaignType).build(computeChainId, campaignParams, campaign.subType, campaign.rewardTokenAddress, distributionChainId, campaign.campaignId, campaign.creator);
|
38
38
|
}
|
39
39
|
static async fakeCreateFromCampaign(campaign) {
|
40
40
|
const campaignType = CampaignService.getTypeFromV3(campaign.type);
|
@@ -68,9 +68,9 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
68
68
|
response: {
|
69
69
|
200: {
|
70
70
|
symbol: string;
|
71
|
-
method: import("
|
72
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
71
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
73
72
|
id: number;
|
73
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
74
74
|
}[];
|
75
75
|
};
|
76
76
|
};
|
@@ -90,9 +90,9 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
90
90
|
response: {
|
91
91
|
200: {
|
92
92
|
symbol: string;
|
93
|
-
method: import("
|
94
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
93
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
95
94
|
id: number;
|
95
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
96
96
|
};
|
97
97
|
};
|
98
98
|
};
|
@@ -139,9 +139,9 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
139
139
|
response: {
|
140
140
|
200: {
|
141
141
|
symbol: string;
|
142
|
-
method: import("
|
143
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
142
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
144
143
|
id: number;
|
144
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
145
145
|
};
|
146
146
|
};
|
147
147
|
};
|
@@ -164,9 +164,9 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
164
164
|
response: {
|
165
165
|
200: {
|
166
166
|
symbol: string;
|
167
|
-
method: import("
|
168
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
167
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
169
168
|
id: number;
|
169
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
170
170
|
};
|
171
171
|
};
|
172
172
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ConflictError } from "
|
2
|
-
import { AuthorizationHeadersDto, BackOfficeGuard } from "
|
1
|
+
import { ConflictError } from "@/errors/Conflict.error";
|
2
|
+
import { AuthorizationHeadersDto, BackOfficeGuard } from "@/guards/BackOffice.guard";
|
3
3
|
import Elysia from "elysia";
|
4
4
|
import { CreatePriceSourceDto, PriceSourceIdentifier, UpdatePriceSourceDto } from "./price.model";
|
5
5
|
import { PriceService } from "./price.service";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PriceSourceMethod } from "
|
1
|
+
import { PriceSourceMethod } from "@db/api";
|
2
2
|
import { t } from "elysia";
|
3
3
|
// ─── DTOs ────────────────────────────────────────────────────────────────────
|
4
4
|
export const CreatePriceSourceDto = t.Object({
|
@@ -2,32 +2,32 @@ import type { CreatePriceSourceModel, UpdatePriceSourceModel } from ".";
|
|
2
2
|
export declare class PriceRepository {
|
3
3
|
static findBySymbolOrThrow(symbol: string): Promise<{
|
4
4
|
symbol: string;
|
5
|
-
method: import("
|
6
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
5
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
7
6
|
id: number;
|
7
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
8
8
|
}>;
|
9
9
|
static findMany(): Promise<{
|
10
10
|
symbol: string;
|
11
|
-
method: import("
|
12
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
11
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
13
12
|
id: number;
|
13
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
14
14
|
}[]>;
|
15
15
|
static create(priceSource: CreatePriceSourceModel): Promise<{
|
16
16
|
symbol: string;
|
17
|
-
method: import("
|
18
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
17
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
19
18
|
id: number;
|
19
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
20
20
|
}>;
|
21
21
|
static updateBySymbol(unique: string, newPriceSource: UpdatePriceSourceModel): Promise<{
|
22
22
|
symbol: string;
|
23
|
-
method: import("
|
24
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
23
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
25
24
|
id: number;
|
25
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
26
26
|
}>;
|
27
27
|
static deleteBySymbol(symbol: string): Promise<{
|
28
28
|
symbol: string;
|
29
|
-
method: import("
|
30
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
29
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
31
30
|
id: number;
|
31
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
32
32
|
}>;
|
33
33
|
}
|
@@ -11,27 +11,27 @@ export declare class PriceService {
|
|
11
11
|
static fetchPriceBySymbol(symbol: string): Promise<number>;
|
12
12
|
static getPriceSourceBySymbol(symbol: string): Promise<{
|
13
13
|
symbol: string;
|
14
|
-
method: import("
|
15
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
14
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
16
15
|
id: number;
|
16
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
17
17
|
}>;
|
18
18
|
static getManyPriceSources(): Promise<{
|
19
19
|
symbol: string;
|
20
|
-
method: import("
|
21
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
20
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
22
21
|
id: number;
|
22
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
23
23
|
}[]>;
|
24
24
|
static createPriceSource(priceSource: CreatePriceSourceModel): Promise<number>;
|
25
25
|
static updatePriceSource(symbol: string, newPriceSource: UpdatePriceSourceModel): Promise<{
|
26
26
|
symbol: string;
|
27
|
-
method: import("
|
28
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
27
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
29
28
|
id: number;
|
29
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
30
30
|
}>;
|
31
31
|
static deletePriceSource(symbol: string): Promise<{
|
32
32
|
symbol: string;
|
33
|
-
method: import("
|
34
|
-
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
33
|
+
method: import("@db/api").$Enums.PriceSourceMethod;
|
35
34
|
id: number;
|
35
|
+
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
36
36
|
}>;
|
37
37
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Pricer } from "
|
2
|
-
import PriceFetcherFactory from "
|
3
|
-
import { PriceSourceMethod } from "
|
1
|
+
import { Pricer } from "@/utils/pricer";
|
2
|
+
import PriceFetcherFactory from "@/utils/prices/priceFetcherFactory";
|
3
|
+
import { PriceSourceMethod } from "@db/api";
|
4
4
|
import { PriceRepository } from "./price.repository";
|
5
5
|
export class PriceService {
|
6
6
|
// ─── Prices ──────────────────────────────────────────────────────────
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Prisma as PrismaTypes } from "
|
1
|
+
import type { Prisma as PrismaTypes } from "@db/api";
|
2
2
|
type Prisma = PrismaTypes.TypeMap["model"];
|
3
3
|
type Model<R extends keyof Prisma> = Prisma[R]["payload"]["scalars"];
|
4
4
|
type Operations<R extends keyof Prisma> = Prisma[R]["operations"];
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { AuthorizationHeadersDto, BackOfficeGuard } from "
|
2
|
-
// import { AuthorizationHeadersDto, BackOfficeGuard } from "
|
1
|
+
import { AuthorizationHeadersDto, BackOfficeGuard } from "@/guards/BackOffice.guard";
|
2
|
+
// import { AuthorizationHeadersDto, BackOfficeGuard } from "@/guards/BackOffice.guard";
|
3
3
|
import Elysia, { t } from "elysia";
|
4
4
|
import { throwOnUnsupportedChainId } from "src/utils/throw";
|
5
5
|
import { CampaignAmountsInputDto, CampaignDataDto, CampaignPayloadInputDto, ProgramPayloadInputDto, SinglePayloadInputDto, } from "./programPayload.model";
|
@@ -181,7 +181,13 @@ export declare enum vicunaCampaigns {
|
|
181
181
|
Vicuna_Sonic_stS_Sonic_Market_Vicuna = "Vicuna Sonic stS (Sonic Market) Vicuna 0xFB56Cd34244985222068ae1C384ecE4215528D04",
|
182
182
|
Vicuna_Sonic_USDCe_Stable_Market_Vicuna = "Vicuna Sonic USDC.E (Stable Market) Vicuna 0x0127C186D905Ddaf323e76c4f6AB41cDD66619e5",
|
183
183
|
Vicuna_Sonic_SCUSD_Stable_Market_Vicuna = "Vicuna Sonic SCUSD (Stable Market) Vicuna 0xfb2e5Fd5de4E0757062363dfA44dF2e3654A35A5",
|
184
|
-
Vicuna_Sonic_USDTe_Stable_Market_Vicuna = "Vicuna Sonic USDT.E (Stable Market) Vicuna 0x11054544BEbab950B3B2F88fBb73B10550d4FF5c"
|
184
|
+
Vicuna_Sonic_USDTe_Stable_Market_Vicuna = "Vicuna Sonic USDT.E (Stable Market) Vicuna 0x11054544BEbab950B3B2F88fBb73B10550d4FF5c",
|
185
|
+
Swapx_SWAPX_wS_stS_Sonic_Market_Vicuna = "Swapx SWAPX wS-stS Sonic Market Vicuna 0x5cd355CC40A0657C8c6B38F30Bb0B66D3D638bcf",
|
186
|
+
Swapx_SWAPX_stS_wS_Sonic_Market_Vicuna = "Swapx SWAPX stS-wS Sonic Market Vicuna 0xeb5A1E2209Bb52B2F6eB846Ff15e221dc356c74a",
|
187
|
+
Swapx_SWAPX_scUSD_USDC_Stable_market_Vicuna = "Swapx SWAPX scUSD-USDC Stable market Vicuna 0xb31fb82458CaD3Bfa658659ef4a464176Ff2F155",
|
188
|
+
Swapx_SWAPX_USDC_USDT_Stable_market_Vicuna = "Swapx SWAPX USDC-USDT Stable market Vicuna 0x6895439e47C362c1fBEFCcaCB8f4CC0d36AEf231",
|
189
|
+
Swapx_SWAPX_USDC_scUSD_Stable_market_Vicuna = "Swapx SWAPX USDC-scUSD Stable market Vicuna 0xa52d70EFf22A8302e91A86f2ac9D95318063Da10",
|
190
|
+
Swapx_SWAPX_USDT_USDC_Stable_market_Vicuna = "Swapx SWAPX USDT-USDC Stable market Vicuna 0xd320C24844EADb0710B31F92E4215Dd7fE480460"
|
185
191
|
}
|
186
192
|
export declare enum pufferCampaigns {
|
187
193
|
Zircuit_Restaking_Pool = "0xF047ab4c75cebf0eB9ed34Ae2c186f3611aEAfa6",
|
@@ -439,7 +445,21 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
439
445
|
"Superlend Supply WBTC Etherlink 0xfCA0802cb10b3b134a91e07f03965f63eF4B23eA": {
|
440
446
|
campaignType: any;
|
441
447
|
computeChainId: any;
|
442
|
-
hooks:
|
448
|
+
hooks: {
|
449
|
+
hookType: any;
|
450
|
+
key: string;
|
451
|
+
chainId: any;
|
452
|
+
contractAddress: string;
|
453
|
+
contractState: any;
|
454
|
+
boostForReferrer: any;
|
455
|
+
valueForBoostForReferrer: number;
|
456
|
+
boostForInvited: any;
|
457
|
+
valueForBoostForInvited: number;
|
458
|
+
defaultBoost: any;
|
459
|
+
maximumBoostReferrer: number;
|
460
|
+
maximumBoostInvited: number;
|
461
|
+
cumulativeBoost: boolean;
|
462
|
+
}[];
|
443
463
|
targetToken: string;
|
444
464
|
whitelist: never[];
|
445
465
|
blacklist: string[];
|
@@ -449,7 +469,21 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
449
469
|
"Superlend Supply WETH Etherlink 0x301bea8B7c0eF6722c937C07Da4d53931F61969c": {
|
450
470
|
campaignType: any;
|
451
471
|
computeChainId: any;
|
452
|
-
hooks:
|
472
|
+
hooks: {
|
473
|
+
hookType: any;
|
474
|
+
key: string;
|
475
|
+
chainId: any;
|
476
|
+
contractAddress: string;
|
477
|
+
contractState: any;
|
478
|
+
boostForReferrer: any;
|
479
|
+
valueForBoostForReferrer: number;
|
480
|
+
boostForInvited: any;
|
481
|
+
valueForBoostForInvited: number;
|
482
|
+
defaultBoost: any;
|
483
|
+
maximumBoostReferrer: number;
|
484
|
+
maximumBoostInvited: number;
|
485
|
+
cumulativeBoost: boolean;
|
486
|
+
}[];
|
453
487
|
targetToken: string;
|
454
488
|
whitelist: never[];
|
455
489
|
blacklist: string[];
|
@@ -459,7 +493,21 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
459
493
|
"Superlend Supply USDC Etherlink 0xd03bfdF9B26DB1e6764724d914d7c3d18106a9Fb": {
|
460
494
|
campaignType: any;
|
461
495
|
computeChainId: any;
|
462
|
-
hooks:
|
496
|
+
hooks: {
|
497
|
+
hookType: any;
|
498
|
+
key: string;
|
499
|
+
chainId: any;
|
500
|
+
contractAddress: string;
|
501
|
+
contractState: any;
|
502
|
+
boostForReferrer: any;
|
503
|
+
valueForBoostForReferrer: number;
|
504
|
+
boostForInvited: any;
|
505
|
+
valueForBoostForInvited: number;
|
506
|
+
defaultBoost: any;
|
507
|
+
maximumBoostReferrer: number;
|
508
|
+
maximumBoostInvited: number;
|
509
|
+
cumulativeBoost: boolean;
|
510
|
+
}[];
|
463
511
|
targetToken: string;
|
464
512
|
whitelist: never[];
|
465
513
|
blacklist: string[];
|
@@ -469,7 +517,21 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
469
517
|
"Superlend Supply USDT Etherlink 0x998098A1B2E95e2b8f15360676428EdFd976861f": {
|
470
518
|
campaignType: any;
|
471
519
|
computeChainId: any;
|
472
|
-
hooks:
|
520
|
+
hooks: {
|
521
|
+
hookType: any;
|
522
|
+
key: string;
|
523
|
+
chainId: any;
|
524
|
+
contractAddress: string;
|
525
|
+
contractState: any;
|
526
|
+
boostForReferrer: any;
|
527
|
+
valueForBoostForReferrer: number;
|
528
|
+
boostForInvited: any;
|
529
|
+
valueForBoostForInvited: number;
|
530
|
+
defaultBoost: any;
|
531
|
+
maximumBoostReferrer: number;
|
532
|
+
maximumBoostInvited: number;
|
533
|
+
cumulativeBoost: boolean;
|
534
|
+
}[];
|
473
535
|
targetToken: string;
|
474
536
|
whitelist: never[];
|
475
537
|
blacklist: string[];
|
@@ -479,7 +541,21 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
479
541
|
"Superlend Supply WXTZ Etherlink 0x008ae222661B6A42e3A097bd7AAC15412829106b": {
|
480
542
|
campaignType: any;
|
481
543
|
computeChainId: any;
|
482
|
-
hooks:
|
544
|
+
hooks: {
|
545
|
+
hookType: any;
|
546
|
+
key: string;
|
547
|
+
chainId: any;
|
548
|
+
contractAddress: string;
|
549
|
+
contractState: any;
|
550
|
+
boostForReferrer: any;
|
551
|
+
valueForBoostForReferrer: number;
|
552
|
+
boostForInvited: any;
|
553
|
+
valueForBoostForInvited: number;
|
554
|
+
defaultBoost: any;
|
555
|
+
maximumBoostReferrer: number;
|
556
|
+
maximumBoostInvited: number;
|
557
|
+
cumulativeBoost: boolean;
|
558
|
+
}[];
|
483
559
|
targetToken: string;
|
484
560
|
whitelist: never[];
|
485
561
|
blacklist: string[];
|
@@ -489,7 +565,21 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
489
565
|
"Uranium Hold xU308 Etherlink 0x79052Ab3C166D4899a1e0DD033aC3b379AF0B1fD": {
|
490
566
|
campaignType: any;
|
491
567
|
computeChainId: any;
|
492
|
-
hooks:
|
568
|
+
hooks: {
|
569
|
+
hookType: any;
|
570
|
+
key: string;
|
571
|
+
chainId: any;
|
572
|
+
contractAddress: string;
|
573
|
+
contractState: any;
|
574
|
+
boostForReferrer: any;
|
575
|
+
valueForBoostForReferrer: number;
|
576
|
+
boostForInvited: any;
|
577
|
+
valueForBoostForInvited: number;
|
578
|
+
defaultBoost: any;
|
579
|
+
maximumBoostReferrer: number;
|
580
|
+
maximumBoostInvited: number;
|
581
|
+
cumulativeBoost: boolean;
|
582
|
+
}[];
|
493
583
|
targetToken: string;
|
494
584
|
whitelist: never[];
|
495
585
|
blacklist: string[];
|
@@ -499,7 +589,21 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
499
589
|
"Hanji HJLP Etherlink 0x1cd88fBD530281Ad6c639E2B897c4E239003A930": {
|
500
590
|
campaignType: any;
|
501
591
|
computeChainId: any;
|
502
|
-
hooks:
|
592
|
+
hooks: {
|
593
|
+
hookType: any;
|
594
|
+
key: string;
|
595
|
+
chainId: any;
|
596
|
+
contractAddress: string;
|
597
|
+
contractState: any;
|
598
|
+
boostForReferrer: any;
|
599
|
+
valueForBoostForReferrer: number;
|
600
|
+
boostForInvited: any;
|
601
|
+
valueForBoostForInvited: number;
|
602
|
+
defaultBoost: any;
|
603
|
+
maximumBoostReferrer: number;
|
604
|
+
maximumBoostInvited: number;
|
605
|
+
cumulativeBoost: boolean;
|
606
|
+
}[];
|
503
607
|
targetToken: string;
|
504
608
|
whitelist: never[];
|
505
609
|
blacklist: string[];
|
@@ -509,10 +613,24 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
509
613
|
"Iguana WETH/WXTZ Etherlink 0x478F067b0Ed73d120BBcd8c6f4f33438FC483912": {
|
510
614
|
campaignType: any;
|
511
615
|
computeChainId: any;
|
512
|
-
hooks:
|
616
|
+
hooks: {
|
617
|
+
hookType: any;
|
618
|
+
key: string;
|
619
|
+
chainId: any;
|
620
|
+
contractAddress: string;
|
621
|
+
contractState: any;
|
622
|
+
boostForReferrer: any;
|
623
|
+
valueForBoostForReferrer: number;
|
624
|
+
boostForInvited: any;
|
625
|
+
valueForBoostForInvited: number;
|
626
|
+
defaultBoost: any;
|
627
|
+
maximumBoostReferrer: number;
|
628
|
+
maximumBoostInvited: number;
|
629
|
+
cumulativeBoost: boolean;
|
630
|
+
}[];
|
513
631
|
poolAddress: string;
|
514
632
|
whitelist: never[];
|
515
|
-
blacklist:
|
633
|
+
blacklist: string[];
|
516
634
|
url: string;
|
517
635
|
forwarders: never[];
|
518
636
|
isOutOfRangeIncentivized: boolean;
|
@@ -523,10 +641,24 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
523
641
|
"Iguana USDC/USDT Etherlink 0x86456e2E2A203Da82E61ed34eF4137Fbe545f0DC": {
|
524
642
|
campaignType: any;
|
525
643
|
computeChainId: any;
|
526
|
-
hooks:
|
644
|
+
hooks: {
|
645
|
+
hookType: any;
|
646
|
+
key: string;
|
647
|
+
chainId: any;
|
648
|
+
contractAddress: string;
|
649
|
+
contractState: any;
|
650
|
+
boostForReferrer: any;
|
651
|
+
valueForBoostForReferrer: number;
|
652
|
+
boostForInvited: any;
|
653
|
+
valueForBoostForInvited: number;
|
654
|
+
defaultBoost: any;
|
655
|
+
maximumBoostReferrer: number;
|
656
|
+
maximumBoostInvited: number;
|
657
|
+
cumulativeBoost: boolean;
|
658
|
+
}[];
|
527
659
|
poolAddress: string;
|
528
660
|
whitelist: never[];
|
529
|
-
blacklist:
|
661
|
+
blacklist: string[];
|
530
662
|
url: string;
|
531
663
|
forwarders: never[];
|
532
664
|
isOutOfRangeIncentivized: boolean;
|
@@ -537,10 +669,24 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
537
669
|
"Iguana XTZ/USDT Etherlink 0x508060A01f11d6a2Eb774B55aEba95931265E0cc": {
|
538
670
|
campaignType: any;
|
539
671
|
computeChainId: any;
|
540
|
-
hooks:
|
672
|
+
hooks: {
|
673
|
+
hookType: any;
|
674
|
+
key: string;
|
675
|
+
chainId: any;
|
676
|
+
contractAddress: string;
|
677
|
+
contractState: any;
|
678
|
+
boostForReferrer: any;
|
679
|
+
valueForBoostForReferrer: number;
|
680
|
+
boostForInvited: any;
|
681
|
+
valueForBoostForInvited: number;
|
682
|
+
defaultBoost: any;
|
683
|
+
maximumBoostReferrer: number;
|
684
|
+
maximumBoostInvited: number;
|
685
|
+
cumulativeBoost: boolean;
|
686
|
+
}[];
|
541
687
|
poolAddress: string;
|
542
688
|
whitelist: never[];
|
543
|
-
blacklist:
|
689
|
+
blacklist: string[];
|
544
690
|
url: string;
|
545
691
|
forwarders: never[];
|
546
692
|
isOutOfRangeIncentivized: boolean;
|
@@ -568,7 +714,7 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
568
714
|
}[];
|
569
715
|
targetToken: string;
|
570
716
|
whitelist: never[];
|
571
|
-
blacklist:
|
717
|
+
blacklist: string[];
|
572
718
|
url: string;
|
573
719
|
forwarders: never[];
|
574
720
|
};
|
@@ -595,9 +741,23 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
595
741
|
expectedValue: string;
|
596
742
|
}[];
|
597
743
|
whitelist: never[];
|
598
|
-
blacklist:
|
744
|
+
blacklist: string[];
|
599
745
|
forwarders: never[];
|
600
|
-
hooks:
|
746
|
+
hooks: {
|
747
|
+
hookType: any;
|
748
|
+
key: string;
|
749
|
+
chainId: any;
|
750
|
+
contractAddress: string;
|
751
|
+
contractState: any;
|
752
|
+
boostForReferrer: any;
|
753
|
+
valueForBoostForReferrer: number;
|
754
|
+
boostForInvited: any;
|
755
|
+
valueForBoostForInvited: number;
|
756
|
+
defaultBoost: any;
|
757
|
+
maximumBoostReferrer: number;
|
758
|
+
maximumBoostInvited: number;
|
759
|
+
cumulativeBoost: boolean;
|
760
|
+
}[];
|
601
761
|
};
|
602
762
|
"Hanji WETH/USDC Etherlink 0x65ea4dd7f789c71c0f57ed84b3bdc3062898d3cb": {
|
603
763
|
campaignType: any;
|
@@ -622,9 +782,23 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
622
782
|
expectedValue: string;
|
623
783
|
}[];
|
624
784
|
whitelist: never[];
|
625
|
-
blacklist:
|
785
|
+
blacklist: string[];
|
626
786
|
forwarders: never[];
|
627
|
-
hooks:
|
787
|
+
hooks: {
|
788
|
+
hookType: any;
|
789
|
+
key: string;
|
790
|
+
chainId: any;
|
791
|
+
contractAddress: string;
|
792
|
+
contractState: any;
|
793
|
+
boostForReferrer: any;
|
794
|
+
valueForBoostForReferrer: number;
|
795
|
+
boostForInvited: any;
|
796
|
+
valueForBoostForInvited: number;
|
797
|
+
defaultBoost: any;
|
798
|
+
maximumBoostReferrer: number;
|
799
|
+
maximumBoostInvited: number;
|
800
|
+
cumulativeBoost: boolean;
|
801
|
+
}[];
|
628
802
|
};
|
629
803
|
"Hanji WBTC/USDC Etherlink 0xbb6b01d94e3f6ebae8647cb56d544f57928ab758": {
|
630
804
|
campaignType: any;
|
@@ -649,9 +823,23 @@ declare const EtherlinkInterfaceCampaigns: {
|
|
649
823
|
expectedValue: string;
|
650
824
|
}[];
|
651
825
|
whitelist: never[];
|
652
|
-
blacklist:
|
826
|
+
blacklist: string[];
|
653
827
|
forwarders: never[];
|
654
|
-
hooks:
|
828
|
+
hooks: {
|
829
|
+
hookType: any;
|
830
|
+
key: string;
|
831
|
+
chainId: any;
|
832
|
+
contractAddress: string;
|
833
|
+
contractState: any;
|
834
|
+
boostForReferrer: any;
|
835
|
+
valueForBoostForReferrer: number;
|
836
|
+
boostForInvited: any;
|
837
|
+
valueForBoostForInvited: number;
|
838
|
+
defaultBoost: any;
|
839
|
+
maximumBoostReferrer: number;
|
840
|
+
maximumBoostInvited: number;
|
841
|
+
cumulativeBoost: boolean;
|
842
|
+
}[];
|
655
843
|
};
|
656
844
|
};
|
657
845
|
declare const SwapxInterfaceCampaigns: {
|