@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 { type Prisma, Status } from "
|
1
|
+
import { type Prisma, Status } from "@db/api";
|
2
2
|
import type { MerklChainId } from "@sdk";
|
3
3
|
import { type AprRecord } from "../apr";
|
4
4
|
import type { Campaign } from "../campaign";
|
@@ -8,14 +8,14 @@ import type { CreateOpportunityModel, GetOpportunitiesQueryModel, UpdateOpportun
|
|
8
8
|
export declare abstract class OpportunityRepository {
|
9
9
|
#private;
|
10
10
|
static create(newOpp: CreateOpportunityModel, upsert?: boolean): Promise<{
|
11
|
+
id: string;
|
11
12
|
name: string;
|
12
13
|
type: string;
|
13
|
-
|
14
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
14
|
+
status: import("@db/api").$Enums.Status;
|
15
15
|
tags: string[];
|
16
16
|
identifier: string;
|
17
17
|
chainId: number;
|
18
|
-
action: import("
|
18
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
19
19
|
depositUrl: string | null;
|
20
20
|
mainProtocolId: string | null;
|
21
21
|
tvl: number;
|
@@ -24,15 +24,15 @@ export declare abstract class OpportunityRepository {
|
|
24
24
|
} | null>;
|
25
25
|
static findUnique(id: string): Promise<({
|
26
26
|
Chain: {
|
27
|
-
name: string;
|
28
27
|
id: number;
|
28
|
+
name: string;
|
29
29
|
icon: string;
|
30
30
|
};
|
31
31
|
Campaigns: ({
|
32
32
|
RewardToken: {
|
33
33
|
symbol: string;
|
34
|
-
name: string | null;
|
35
34
|
id: string;
|
35
|
+
name: string | null;
|
36
36
|
icon: string;
|
37
37
|
chainId: number;
|
38
38
|
address: string;
|
@@ -44,8 +44,8 @@ export declare abstract class OpportunityRepository {
|
|
44
44
|
price: number | null;
|
45
45
|
};
|
46
46
|
} & {
|
47
|
-
type: string;
|
48
47
|
id: string;
|
48
|
+
type: string;
|
49
49
|
params: Prisma.JsonValue;
|
50
50
|
subType: number | null;
|
51
51
|
startTimestamp: bigint;
|
@@ -57,12 +57,12 @@ export declare abstract class OpportunityRepository {
|
|
57
57
|
amount: string;
|
58
58
|
opportunityId: string;
|
59
59
|
creatorAddress: string;
|
60
|
-
manualOverrides: import("
|
60
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
61
61
|
})[];
|
62
62
|
Tokens: {
|
63
63
|
symbol: string;
|
64
|
-
name: string | null;
|
65
64
|
id: string;
|
65
|
+
name: string | null;
|
66
66
|
icon: string;
|
67
67
|
chainId: number;
|
68
68
|
address: string;
|
@@ -74,39 +74,39 @@ export declare abstract class OpportunityRepository {
|
|
74
74
|
price: number | null;
|
75
75
|
}[];
|
76
76
|
Protocols: {
|
77
|
+
id: string;
|
77
78
|
name: string;
|
78
79
|
url: string;
|
79
80
|
description: string;
|
80
|
-
id: string;
|
81
81
|
tags: string[];
|
82
82
|
icon: string;
|
83
83
|
}[];
|
84
84
|
MainProtocol: {
|
85
|
+
id: string;
|
85
86
|
name: string;
|
86
87
|
url: string;
|
87
88
|
description: string;
|
88
|
-
id: string;
|
89
89
|
tags: string[];
|
90
90
|
icon: string;
|
91
91
|
} | null;
|
92
92
|
TvlRecords: ({
|
93
93
|
TvlBreakdown: {
|
94
|
-
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
95
94
|
id: number;
|
95
|
+
type: import("@db/api").$Enums.TvlType;
|
96
96
|
identifier: string;
|
97
97
|
value: number;
|
98
98
|
tvlRecordId: string;
|
99
99
|
}[];
|
100
100
|
} & {
|
101
|
-
total: number;
|
102
101
|
id: string;
|
102
|
+
total: number;
|
103
103
|
timestamp: bigint;
|
104
104
|
opportunityId: string;
|
105
105
|
})[];
|
106
106
|
AprRecords: ({
|
107
107
|
AprBreakdown: {
|
108
|
-
type: import("../../../../database/api/.generated").$Enums.AprType;
|
109
108
|
id: number;
|
109
|
+
type: import("@db/api").$Enums.AprType;
|
110
110
|
identifier: string;
|
111
111
|
value: number;
|
112
112
|
aprRecordId: string;
|
@@ -125,8 +125,8 @@ export declare abstract class OpportunityRepository {
|
|
125
125
|
amount: string;
|
126
126
|
RewardToken: {
|
127
127
|
symbol: string;
|
128
|
-
name: string | null;
|
129
128
|
id: string;
|
129
|
+
name: string | null;
|
130
130
|
icon: string;
|
131
131
|
chainId: number;
|
132
132
|
address: string;
|
@@ -139,8 +139,8 @@ export declare abstract class OpportunityRepository {
|
|
139
139
|
};
|
140
140
|
CampaignStatus: {
|
141
141
|
error: string;
|
142
|
+
status: import("@db/api").$Enums.RunStatus;
|
142
143
|
details: Prisma.JsonValue;
|
143
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
144
144
|
campaignId: string;
|
145
145
|
computedUntil: bigint;
|
146
146
|
processingStarted: bigint;
|
@@ -153,20 +153,20 @@ export declare abstract class OpportunityRepository {
|
|
153
153
|
dailyRewardsRecordId: string;
|
154
154
|
})[];
|
155
155
|
} & {
|
156
|
-
total: number;
|
157
156
|
id: string;
|
157
|
+
total: number;
|
158
158
|
timestamp: bigint;
|
159
159
|
opportunityId: string;
|
160
160
|
})[];
|
161
161
|
} & {
|
162
|
+
id: string;
|
162
163
|
name: string;
|
163
164
|
type: string;
|
164
|
-
|
165
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
165
|
+
status: import("@db/api").$Enums.Status;
|
166
166
|
tags: string[];
|
167
167
|
identifier: string;
|
168
168
|
chainId: number;
|
169
|
-
action: import("
|
169
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
170
170
|
depositUrl: string | null;
|
171
171
|
mainProtocolId: string | null;
|
172
172
|
tvl: number;
|
@@ -176,19 +176,19 @@ export declare abstract class OpportunityRepository {
|
|
176
176
|
static findUniqueOrThrow(id: string, withTest?: boolean, withCampaigns?: boolean): Promise<{
|
177
177
|
Chain: {
|
178
178
|
Explorer: {
|
179
|
-
type: import("../../../../database/api/.generated").$Enums.ExplorerType;
|
180
|
-
url: string;
|
181
179
|
id: string;
|
180
|
+
type: import("@db/api").$Enums.ExplorerType;
|
181
|
+
url: string;
|
182
182
|
chainId: number;
|
183
183
|
}[];
|
184
184
|
} & {
|
185
|
-
name: string;
|
186
185
|
id: number;
|
186
|
+
name: string;
|
187
187
|
icon: string;
|
188
188
|
};
|
189
189
|
Campaigns: {
|
190
|
-
type: string;
|
191
190
|
id: string;
|
191
|
+
type: string;
|
192
192
|
params: Prisma.JsonValue;
|
193
193
|
subType: number | null;
|
194
194
|
startTimestamp: bigint;
|
@@ -200,12 +200,12 @@ export declare abstract class OpportunityRepository {
|
|
200
200
|
amount: string;
|
201
201
|
opportunityId: string;
|
202
202
|
creatorAddress: string;
|
203
|
-
manualOverrides: import("
|
203
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
204
204
|
}[];
|
205
205
|
Tokens: {
|
206
206
|
symbol: string;
|
207
|
-
name: string | null;
|
208
207
|
id: string;
|
208
|
+
name: string | null;
|
209
209
|
icon: string;
|
210
210
|
chainId: number;
|
211
211
|
address: string;
|
@@ -217,39 +217,39 @@ export declare abstract class OpportunityRepository {
|
|
217
217
|
price: number | null;
|
218
218
|
}[];
|
219
219
|
Protocols: {
|
220
|
+
id: string;
|
220
221
|
name: string;
|
221
222
|
url: string;
|
222
223
|
description: string;
|
223
|
-
id: string;
|
224
224
|
tags: string[];
|
225
225
|
icon: string;
|
226
226
|
}[];
|
227
227
|
MainProtocol: {
|
228
|
+
id: string;
|
228
229
|
name: string;
|
229
230
|
url: string;
|
230
231
|
description: string;
|
231
|
-
id: string;
|
232
232
|
tags: string[];
|
233
233
|
icon: string;
|
234
234
|
} | null;
|
235
235
|
TvlRecords: ({
|
236
236
|
TvlBreakdown: {
|
237
|
-
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
238
237
|
id: number;
|
238
|
+
type: import("@db/api").$Enums.TvlType;
|
239
239
|
identifier: string;
|
240
240
|
value: number;
|
241
241
|
tvlRecordId: string;
|
242
242
|
}[];
|
243
243
|
} & {
|
244
|
-
total: number;
|
245
244
|
id: string;
|
245
|
+
total: number;
|
246
246
|
timestamp: bigint;
|
247
247
|
opportunityId: string;
|
248
248
|
})[];
|
249
249
|
AprRecords: ({
|
250
250
|
AprBreakdown: {
|
251
|
-
type: import("../../../../database/api/.generated").$Enums.AprType;
|
252
251
|
id: number;
|
252
|
+
type: import("@db/api").$Enums.AprType;
|
253
253
|
identifier: string;
|
254
254
|
value: number;
|
255
255
|
aprRecordId: string;
|
@@ -268,8 +268,8 @@ export declare abstract class OpportunityRepository {
|
|
268
268
|
amount: string;
|
269
269
|
RewardToken: {
|
270
270
|
symbol: string;
|
271
|
-
name: string | null;
|
272
271
|
id: string;
|
272
|
+
name: string | null;
|
273
273
|
icon: string;
|
274
274
|
chainId: number;
|
275
275
|
address: string;
|
@@ -282,8 +282,8 @@ export declare abstract class OpportunityRepository {
|
|
282
282
|
};
|
283
283
|
CampaignStatus: {
|
284
284
|
error: string;
|
285
|
+
status: import("@db/api").$Enums.RunStatus;
|
285
286
|
details: Prisma.JsonValue;
|
286
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
287
287
|
campaignId: string;
|
288
288
|
computedUntil: bigint;
|
289
289
|
processingStarted: bigint;
|
@@ -296,20 +296,20 @@ export declare abstract class OpportunityRepository {
|
|
296
296
|
dailyRewardsRecordId: string;
|
297
297
|
})[];
|
298
298
|
} & {
|
299
|
-
total: number;
|
300
299
|
id: string;
|
300
|
+
total: number;
|
301
301
|
timestamp: bigint;
|
302
302
|
opportunityId: string;
|
303
303
|
})[];
|
304
304
|
} & {
|
305
|
+
id: string;
|
305
306
|
name: string;
|
306
307
|
type: string;
|
307
|
-
|
308
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
308
|
+
status: import("@db/api").$Enums.Status;
|
309
309
|
tags: string[];
|
310
310
|
identifier: string;
|
311
311
|
chainId: number;
|
312
|
-
action: import("
|
312
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
313
313
|
depositUrl: string | null;
|
314
314
|
mainProtocolId: string | null;
|
315
315
|
tvl: number;
|
@@ -324,38 +324,38 @@ export declare abstract class OpportunityRepository {
|
|
324
324
|
static findManyByCampaigns(where: Campaign["action"]["findMany"]["args"]["where"]): Promise<({
|
325
325
|
Chain: {
|
326
326
|
Explorer: {
|
327
|
-
type: import("../../../../database/api/.generated").$Enums.ExplorerType;
|
328
|
-
url: string;
|
329
327
|
id: string;
|
328
|
+
type: import("@db/api").$Enums.ExplorerType;
|
329
|
+
url: string;
|
330
330
|
chainId: number;
|
331
331
|
}[];
|
332
332
|
} & {
|
333
|
-
name: string;
|
334
333
|
id: number;
|
334
|
+
name: string;
|
335
335
|
icon: string;
|
336
336
|
};
|
337
337
|
Campaigns: ({
|
338
338
|
ComputeChain: {
|
339
|
-
name: string;
|
340
339
|
id: number;
|
340
|
+
name: string;
|
341
341
|
icon: string;
|
342
342
|
};
|
343
343
|
DistributionChain: {
|
344
344
|
Explorer: {
|
345
|
-
type: import("../../../../database/api/.generated").$Enums.ExplorerType;
|
346
|
-
url: string;
|
347
345
|
id: string;
|
346
|
+
type: import("@db/api").$Enums.ExplorerType;
|
347
|
+
url: string;
|
348
348
|
chainId: number;
|
349
349
|
}[];
|
350
350
|
} & {
|
351
|
-
name: string;
|
352
351
|
id: number;
|
352
|
+
name: string;
|
353
353
|
icon: string;
|
354
354
|
};
|
355
355
|
RewardToken: {
|
356
356
|
symbol: string;
|
357
|
-
name: string | null;
|
358
357
|
id: string;
|
358
|
+
name: string | null;
|
359
359
|
icon: string;
|
360
360
|
chainId: number;
|
361
361
|
address: string;
|
@@ -373,15 +373,15 @@ export declare abstract class OpportunityRepository {
|
|
373
373
|
};
|
374
374
|
CampaignStatus: {
|
375
375
|
error: string;
|
376
|
+
status: import("@db/api").$Enums.RunStatus;
|
376
377
|
details: Prisma.JsonValue;
|
377
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
378
378
|
campaignId: string;
|
379
379
|
computedUntil: bigint;
|
380
380
|
processingStarted: bigint;
|
381
381
|
}[];
|
382
382
|
} & {
|
383
|
-
type: string;
|
384
383
|
id: string;
|
384
|
+
type: string;
|
385
385
|
params: Prisma.JsonValue;
|
386
386
|
subType: number | null;
|
387
387
|
startTimestamp: bigint;
|
@@ -393,12 +393,12 @@ export declare abstract class OpportunityRepository {
|
|
393
393
|
amount: string;
|
394
394
|
opportunityId: string;
|
395
395
|
creatorAddress: string;
|
396
|
-
manualOverrides: import("
|
396
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
397
397
|
})[];
|
398
398
|
Tokens: {
|
399
399
|
symbol: string;
|
400
|
-
name: string | null;
|
401
400
|
id: string;
|
401
|
+
name: string | null;
|
402
402
|
icon: string;
|
403
403
|
chainId: number;
|
404
404
|
address: string;
|
@@ -410,39 +410,39 @@ export declare abstract class OpportunityRepository {
|
|
410
410
|
price: number | null;
|
411
411
|
}[];
|
412
412
|
Protocols: {
|
413
|
+
id: string;
|
413
414
|
name: string;
|
414
415
|
url: string;
|
415
416
|
description: string;
|
416
|
-
id: string;
|
417
417
|
tags: string[];
|
418
418
|
icon: string;
|
419
419
|
}[];
|
420
420
|
MainProtocol: {
|
421
|
+
id: string;
|
421
422
|
name: string;
|
422
423
|
url: string;
|
423
424
|
description: string;
|
424
|
-
id: string;
|
425
425
|
tags: string[];
|
426
426
|
icon: string;
|
427
427
|
} | null;
|
428
428
|
TvlRecords: ({
|
429
429
|
TvlBreakdown: {
|
430
|
-
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
431
430
|
id: number;
|
431
|
+
type: import("@db/api").$Enums.TvlType;
|
432
432
|
identifier: string;
|
433
433
|
value: number;
|
434
434
|
tvlRecordId: string;
|
435
435
|
}[];
|
436
436
|
} & {
|
437
|
-
total: number;
|
438
437
|
id: string;
|
438
|
+
total: number;
|
439
439
|
timestamp: bigint;
|
440
440
|
opportunityId: string;
|
441
441
|
})[];
|
442
442
|
AprRecords: ({
|
443
443
|
AprBreakdown: {
|
444
|
-
type: import("../../../../database/api/.generated").$Enums.AprType;
|
445
444
|
id: number;
|
445
|
+
type: import("@db/api").$Enums.AprType;
|
446
446
|
identifier: string;
|
447
447
|
value: number;
|
448
448
|
aprRecordId: string;
|
@@ -461,8 +461,8 @@ export declare abstract class OpportunityRepository {
|
|
461
461
|
amount: string;
|
462
462
|
RewardToken: {
|
463
463
|
symbol: string;
|
464
|
-
name: string | null;
|
465
464
|
id: string;
|
465
|
+
name: string | null;
|
466
466
|
icon: string;
|
467
467
|
chainId: number;
|
468
468
|
address: string;
|
@@ -475,8 +475,8 @@ export declare abstract class OpportunityRepository {
|
|
475
475
|
};
|
476
476
|
CampaignStatus: {
|
477
477
|
error: string;
|
478
|
+
status: import("@db/api").$Enums.RunStatus;
|
478
479
|
details: Prisma.JsonValue;
|
479
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
480
480
|
campaignId: string;
|
481
481
|
computedUntil: bigint;
|
482
482
|
processingStarted: bigint;
|
@@ -489,20 +489,20 @@ export declare abstract class OpportunityRepository {
|
|
489
489
|
dailyRewardsRecordId: string;
|
490
490
|
})[];
|
491
491
|
} & {
|
492
|
-
total: number;
|
493
492
|
id: string;
|
493
|
+
total: number;
|
494
494
|
timestamp: bigint;
|
495
495
|
opportunityId: string;
|
496
496
|
})[];
|
497
497
|
} & {
|
498
|
+
id: string;
|
498
499
|
name: string;
|
499
500
|
type: string;
|
500
|
-
|
501
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
501
|
+
status: import("@db/api").$Enums.Status;
|
502
502
|
tags: string[];
|
503
503
|
identifier: string;
|
504
504
|
chainId: number;
|
505
|
-
action: import("
|
505
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
506
506
|
depositUrl: string | null;
|
507
507
|
mainProtocolId: string | null;
|
508
508
|
tvl: number;
|
@@ -511,13 +511,20 @@ export declare abstract class OpportunityRepository {
|
|
511
511
|
})[]>;
|
512
512
|
static findMany(query: GetOpportunitiesQueryModel): Promise<({
|
513
513
|
Chain: {
|
514
|
-
|
514
|
+
Explorer: {
|
515
|
+
id: string;
|
516
|
+
type: import("@db/api").$Enums.ExplorerType;
|
517
|
+
url: string;
|
518
|
+
chainId: number;
|
519
|
+
}[];
|
520
|
+
} & {
|
515
521
|
id: number;
|
522
|
+
name: string;
|
516
523
|
icon: string;
|
517
524
|
};
|
518
525
|
Campaigns: {
|
519
|
-
type: string;
|
520
526
|
id: string;
|
527
|
+
type: string;
|
521
528
|
params: Prisma.JsonValue;
|
522
529
|
subType: number | null;
|
523
530
|
startTimestamp: bigint;
|
@@ -529,12 +536,12 @@ export declare abstract class OpportunityRepository {
|
|
529
536
|
amount: string;
|
530
537
|
opportunityId: string;
|
531
538
|
creatorAddress: string;
|
532
|
-
manualOverrides: import("
|
539
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
533
540
|
}[];
|
534
541
|
Tokens: {
|
535
542
|
symbol: string;
|
536
|
-
name: string | null;
|
537
543
|
id: string;
|
544
|
+
name: string | null;
|
538
545
|
icon: string;
|
539
546
|
chainId: number;
|
540
547
|
address: string;
|
@@ -546,39 +553,39 @@ export declare abstract class OpportunityRepository {
|
|
546
553
|
price: number | null;
|
547
554
|
}[];
|
548
555
|
Protocols: {
|
556
|
+
id: string;
|
549
557
|
name: string;
|
550
558
|
url: string;
|
551
559
|
description: string;
|
552
|
-
id: string;
|
553
560
|
tags: string[];
|
554
561
|
icon: string;
|
555
562
|
}[];
|
556
563
|
MainProtocol: {
|
564
|
+
id: string;
|
557
565
|
name: string;
|
558
566
|
url: string;
|
559
567
|
description: string;
|
560
|
-
id: string;
|
561
568
|
tags: string[];
|
562
569
|
icon: string;
|
563
570
|
} | null;
|
564
571
|
TvlRecords: ({
|
565
572
|
TvlBreakdown: {
|
566
|
-
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
567
573
|
id: number;
|
574
|
+
type: import("@db/api").$Enums.TvlType;
|
568
575
|
identifier: string;
|
569
576
|
value: number;
|
570
577
|
tvlRecordId: string;
|
571
578
|
}[];
|
572
579
|
} & {
|
573
|
-
total: number;
|
574
580
|
id: string;
|
581
|
+
total: number;
|
575
582
|
timestamp: bigint;
|
576
583
|
opportunityId: string;
|
577
584
|
})[];
|
578
585
|
AprRecords: ({
|
579
586
|
AprBreakdown: {
|
580
|
-
type: import("../../../../database/api/.generated").$Enums.AprType;
|
581
587
|
id: number;
|
588
|
+
type: import("@db/api").$Enums.AprType;
|
582
589
|
identifier: string;
|
583
590
|
value: number;
|
584
591
|
aprRecordId: string;
|
@@ -597,8 +604,8 @@ export declare abstract class OpportunityRepository {
|
|
597
604
|
amount: string;
|
598
605
|
RewardToken: {
|
599
606
|
symbol: string;
|
600
|
-
name: string | null;
|
601
607
|
id: string;
|
608
|
+
name: string | null;
|
602
609
|
icon: string;
|
603
610
|
chainId: number;
|
604
611
|
address: string;
|
@@ -611,8 +618,8 @@ export declare abstract class OpportunityRepository {
|
|
611
618
|
};
|
612
619
|
CampaignStatus: {
|
613
620
|
error: string;
|
621
|
+
status: import("@db/api").$Enums.RunStatus;
|
614
622
|
details: Prisma.JsonValue;
|
615
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
616
623
|
campaignId: string;
|
617
624
|
computedUntil: bigint;
|
618
625
|
processingStarted: bigint;
|
@@ -625,20 +632,20 @@ export declare abstract class OpportunityRepository {
|
|
625
632
|
dailyRewardsRecordId: string;
|
626
633
|
})[];
|
627
634
|
} & {
|
628
|
-
total: number;
|
629
635
|
id: string;
|
636
|
+
total: number;
|
630
637
|
timestamp: bigint;
|
631
638
|
opportunityId: string;
|
632
639
|
})[];
|
633
640
|
} & {
|
641
|
+
id: string;
|
634
642
|
name: string;
|
635
643
|
type: string;
|
636
|
-
|
637
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
644
|
+
status: import("@db/api").$Enums.Status;
|
638
645
|
tags: string[];
|
639
646
|
identifier: string;
|
640
647
|
chainId: number;
|
641
|
-
action: import("
|
648
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
642
649
|
depositUrl: string | null;
|
643
650
|
mainProtocolId: string | null;
|
644
651
|
tvl: number;
|
@@ -647,32 +654,39 @@ export declare abstract class OpportunityRepository {
|
|
647
654
|
})[]>;
|
648
655
|
static findLiveWithCampaigns(chainId: MerklChainId, take?: number): Promise<({
|
649
656
|
Chain: {
|
650
|
-
|
657
|
+
Explorer: {
|
658
|
+
id: string;
|
659
|
+
type: import("@db/api").$Enums.ExplorerType;
|
660
|
+
url: string;
|
661
|
+
chainId: number;
|
662
|
+
}[];
|
663
|
+
} & {
|
651
664
|
id: number;
|
665
|
+
name: string;
|
652
666
|
icon: string;
|
653
667
|
};
|
654
668
|
Campaigns: ({
|
655
669
|
ComputeChain: {
|
656
|
-
name: string;
|
657
670
|
id: number;
|
671
|
+
name: string;
|
658
672
|
icon: string;
|
659
673
|
};
|
660
674
|
DistributionChain: {
|
661
675
|
Explorer: {
|
662
|
-
type: import("../../../../database/api/.generated").$Enums.ExplorerType;
|
663
|
-
url: string;
|
664
676
|
id: string;
|
677
|
+
type: import("@db/api").$Enums.ExplorerType;
|
678
|
+
url: string;
|
665
679
|
chainId: number;
|
666
680
|
}[];
|
667
681
|
} & {
|
668
|
-
name: string;
|
669
682
|
id: number;
|
683
|
+
name: string;
|
670
684
|
icon: string;
|
671
685
|
};
|
672
686
|
RewardToken: {
|
673
687
|
symbol: string;
|
674
|
-
name: string | null;
|
675
688
|
id: string;
|
689
|
+
name: string | null;
|
676
690
|
icon: string;
|
677
691
|
chainId: number;
|
678
692
|
address: string;
|
@@ -690,15 +704,15 @@ export declare abstract class OpportunityRepository {
|
|
690
704
|
};
|
691
705
|
CampaignStatus: {
|
692
706
|
error: string;
|
707
|
+
status: import("@db/api").$Enums.RunStatus;
|
693
708
|
details: Prisma.JsonValue;
|
694
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
695
709
|
campaignId: string;
|
696
710
|
computedUntil: bigint;
|
697
711
|
processingStarted: bigint;
|
698
712
|
}[];
|
699
713
|
} & {
|
700
|
-
type: string;
|
701
714
|
id: string;
|
715
|
+
type: string;
|
702
716
|
params: Prisma.JsonValue;
|
703
717
|
subType: number | null;
|
704
718
|
startTimestamp: bigint;
|
@@ -710,12 +724,12 @@ export declare abstract class OpportunityRepository {
|
|
710
724
|
amount: string;
|
711
725
|
opportunityId: string;
|
712
726
|
creatorAddress: string;
|
713
|
-
manualOverrides: import("
|
727
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
714
728
|
})[];
|
715
729
|
Tokens: {
|
716
730
|
symbol: string;
|
717
|
-
name: string | null;
|
718
731
|
id: string;
|
732
|
+
name: string | null;
|
719
733
|
icon: string;
|
720
734
|
chainId: number;
|
721
735
|
address: string;
|
@@ -727,39 +741,39 @@ export declare abstract class OpportunityRepository {
|
|
727
741
|
price: number | null;
|
728
742
|
}[];
|
729
743
|
Protocols: {
|
744
|
+
id: string;
|
730
745
|
name: string;
|
731
746
|
url: string;
|
732
747
|
description: string;
|
733
|
-
id: string;
|
734
748
|
tags: string[];
|
735
749
|
icon: string;
|
736
750
|
}[];
|
737
751
|
MainProtocol: {
|
752
|
+
id: string;
|
738
753
|
name: string;
|
739
754
|
url: string;
|
740
755
|
description: string;
|
741
|
-
id: string;
|
742
756
|
tags: string[];
|
743
757
|
icon: string;
|
744
758
|
} | null;
|
745
759
|
TvlRecords: ({
|
746
760
|
TvlBreakdown: {
|
747
|
-
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
748
761
|
id: number;
|
762
|
+
type: import("@db/api").$Enums.TvlType;
|
749
763
|
identifier: string;
|
750
764
|
value: number;
|
751
765
|
tvlRecordId: string;
|
752
766
|
}[];
|
753
767
|
} & {
|
754
|
-
total: number;
|
755
768
|
id: string;
|
769
|
+
total: number;
|
756
770
|
timestamp: bigint;
|
757
771
|
opportunityId: string;
|
758
772
|
})[];
|
759
773
|
AprRecords: ({
|
760
774
|
AprBreakdown: {
|
761
|
-
type: import("../../../../database/api/.generated").$Enums.AprType;
|
762
775
|
id: number;
|
776
|
+
type: import("@db/api").$Enums.AprType;
|
763
777
|
identifier: string;
|
764
778
|
value: number;
|
765
779
|
aprRecordId: string;
|
@@ -778,8 +792,8 @@ export declare abstract class OpportunityRepository {
|
|
778
792
|
amount: string;
|
779
793
|
RewardToken: {
|
780
794
|
symbol: string;
|
781
|
-
name: string | null;
|
782
795
|
id: string;
|
796
|
+
name: string | null;
|
783
797
|
icon: string;
|
784
798
|
chainId: number;
|
785
799
|
address: string;
|
@@ -792,8 +806,8 @@ export declare abstract class OpportunityRepository {
|
|
792
806
|
};
|
793
807
|
CampaignStatus: {
|
794
808
|
error: string;
|
809
|
+
status: import("@db/api").$Enums.RunStatus;
|
795
810
|
details: Prisma.JsonValue;
|
796
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
797
811
|
campaignId: string;
|
798
812
|
computedUntil: bigint;
|
799
813
|
processingStarted: bigint;
|
@@ -806,20 +820,20 @@ export declare abstract class OpportunityRepository {
|
|
806
820
|
dailyRewardsRecordId: string;
|
807
821
|
})[];
|
808
822
|
} & {
|
809
|
-
total: number;
|
810
823
|
id: string;
|
824
|
+
total: number;
|
811
825
|
timestamp: bigint;
|
812
826
|
opportunityId: string;
|
813
827
|
})[];
|
814
828
|
} & {
|
829
|
+
id: string;
|
815
830
|
name: string;
|
816
831
|
type: string;
|
817
|
-
|
818
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
832
|
+
status: import("@db/api").$Enums.Status;
|
819
833
|
tags: string[];
|
820
834
|
identifier: string;
|
821
835
|
chainId: number;
|
822
|
-
action: import("
|
836
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
823
837
|
depositUrl: string | null;
|
824
838
|
mainProtocolId: string | null;
|
825
839
|
tvl: number;
|
@@ -846,15 +860,15 @@ export declare abstract class OpportunityRepository {
|
|
846
860
|
};
|
847
861
|
tvlRecord: {
|
848
862
|
TvlBreakdown: {
|
849
|
-
type: import("../../../../database/api/.generated").$Enums.TvlType;
|
850
863
|
id: number;
|
864
|
+
type: import("@db/api").$Enums.TvlType;
|
851
865
|
identifier: string;
|
852
866
|
value: number;
|
853
867
|
tvlRecordId: string;
|
854
868
|
}[];
|
855
869
|
} & {
|
856
|
-
total: number;
|
857
870
|
id: string;
|
871
|
+
total: number;
|
858
872
|
timestamp: bigint;
|
859
873
|
opportunityId: string;
|
860
874
|
};
|
@@ -866,20 +880,20 @@ export declare abstract class OpportunityRepository {
|
|
866
880
|
dailyRewardsRecordId: string;
|
867
881
|
}[];
|
868
882
|
} & {
|
869
|
-
total: number;
|
870
883
|
id: string;
|
884
|
+
total: number;
|
871
885
|
timestamp: bigint;
|
872
886
|
opportunityId: string;
|
873
887
|
};
|
874
888
|
opportunity: {
|
889
|
+
id: string;
|
875
890
|
name: string;
|
876
891
|
type: string;
|
877
|
-
|
878
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
892
|
+
status: import("@db/api").$Enums.Status;
|
879
893
|
tags: string[];
|
880
894
|
identifier: string;
|
881
895
|
chainId: number;
|
882
|
-
action: import("
|
896
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
883
897
|
depositUrl: string | null;
|
884
898
|
mainProtocolId: string | null;
|
885
899
|
tvl: number;
|
@@ -888,14 +902,14 @@ export declare abstract class OpportunityRepository {
|
|
888
902
|
};
|
889
903
|
}>;
|
890
904
|
static updateStatus(id: string, status: Status): Promise<{
|
905
|
+
id: string;
|
891
906
|
name: string;
|
892
907
|
type: string;
|
893
|
-
|
894
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
908
|
+
status: import("@db/api").$Enums.Status;
|
895
909
|
tags: string[];
|
896
910
|
identifier: string;
|
897
911
|
chainId: number;
|
898
|
-
action: import("
|
912
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
899
913
|
depositUrl: string | null;
|
900
914
|
mainProtocolId: string | null;
|
901
915
|
tvl: number;
|
@@ -903,14 +917,14 @@ export declare abstract class OpportunityRepository {
|
|
903
917
|
dailyRewards: number;
|
904
918
|
}>;
|
905
919
|
static updateName(id: string, name: string): Promise<{
|
920
|
+
id: string;
|
906
921
|
name: string;
|
907
922
|
type: string;
|
908
|
-
|
909
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
923
|
+
status: import("@db/api").$Enums.Status;
|
910
924
|
tags: string[];
|
911
925
|
identifier: string;
|
912
926
|
chainId: number;
|
913
|
-
action: import("
|
927
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
914
928
|
depositUrl: string | null;
|
915
929
|
mainProtocolId: string | null;
|
916
930
|
tvl: number;
|
@@ -918,14 +932,14 @@ export declare abstract class OpportunityRepository {
|
|
918
932
|
dailyRewards: number;
|
919
933
|
}>;
|
920
934
|
static updateChainId(id: string, chainId: MerklChainId): Promise<{
|
935
|
+
id: string;
|
921
936
|
name: string;
|
922
937
|
type: string;
|
923
|
-
|
924
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
938
|
+
status: import("@db/api").$Enums.Status;
|
925
939
|
tags: string[];
|
926
940
|
identifier: string;
|
927
941
|
chainId: number;
|
928
|
-
action: import("
|
942
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
929
943
|
depositUrl: string | null;
|
930
944
|
mainProtocolId: string | null;
|
931
945
|
tvl: number;
|
@@ -942,14 +956,14 @@ export declare abstract class OpportunityRepository {
|
|
942
956
|
max: string;
|
943
957
|
}>;
|
944
958
|
static update(id: string, data: UpdateOpportunityModel): Promise<{
|
959
|
+
id: string;
|
945
960
|
name: string;
|
946
961
|
type: string;
|
947
|
-
|
948
|
-
status: import("../../../../database/api/.generated").$Enums.Status;
|
962
|
+
status: import("@db/api").$Enums.Status;
|
949
963
|
tags: string[];
|
950
964
|
identifier: string;
|
951
965
|
chainId: number;
|
952
|
-
action: import("
|
966
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
953
967
|
depositUrl: string | null;
|
954
968
|
mainProtocolId: string | null;
|
955
969
|
tvl: number;
|