@merkl/api 1.0.69 → 1.0.71
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/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/cache/declaration.d.ts +0 -133
- package/dist/src/cache/index.d.ts +0 -61
- package/dist/src/cache/redis.d.ts +0 -312
- package/dist/src/constants.d.ts +0 -86
- package/dist/src/eden/index.d.ts +0 -18747
- package/dist/src/eden/index.js +0 -2
- package/dist/src/engine/deprecated/dynamicData/implementations/Ajna.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Badger.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Compound.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Dolomite.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/EigenLayer.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Encompassing.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +0 -108
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20Snapshot.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Morpho.d.ts +0 -9
- package/dist/src/engine/deprecated/dynamicData/implementations/Radiant.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Silo.d.ts +0 -9
- package/dist/src/engine/deprecated/dynamicData/implementations/UniswapV4.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/implementations/Vest.d.ts +0 -9
- package/dist/src/engine/deprecated/dynamicData/implementations/default.d.ts +0 -5
- package/dist/src/engine/deprecated/dynamicData/utils/fetchA51Strategies.d.ts +0 -18
- package/dist/src/engine/deprecated/dynamicData/utils/fetchClamInfo.d.ts +0 -2
- package/dist/src/engine/deprecated/dynamicData/utils/fetchLogs.d.ts +0 -14
- package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.d.ts +0 -19
- package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.d.ts +0 -2
- package/dist/src/engine/deprecated/dynamicData/utils/getDolomiteMarkets.d.ts +0 -8
- package/dist/src/engine/deprecated/dynamicData/utils/getEulerV2Vaults.d.ts +0 -7
- package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +0 -8
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +0 -103
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/eulerVaultNames.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +0 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getBlacklistedSupply.d.ts +0 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getCrossCurveTokenPrice.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.d.ts +0 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +0 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/spliceTVL.d.ts +0 -8
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/treasuryFinder.d.ts +0 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +0 -30
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +0 -35
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +0 -35
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +0 -107
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +0 -85
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +0 -75
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +0 -88
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +0 -44
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +0 -48
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +0 -45
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +0 -44
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +0 -34
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +0 -40
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +0 -28
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +0 -36
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +0 -35
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +0 -39
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +0 -33
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +0 -30
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +0 -43
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +0 -44
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +0 -43
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +0 -29
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +0 -36
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +0 -50
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +0 -33
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +0 -38
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +0 -29
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +0 -29
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +0 -32
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +0 -40
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +0 -34
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +0 -31
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +0 -31
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +0 -16
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +0 -29
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +0 -39
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +0 -52
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +0 -32
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +0 -30
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +0 -44
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +0 -28
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +0 -32
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +0 -53
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +0 -39
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +0 -49
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +0 -4
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +0 -54
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +0 -38
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.d.ts +0 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.d.ts +0 -4
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound2.d.ts +0 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound3.d.ts +0 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound4.d.ts +0 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeStruct.d.ts +0 -7
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +0 -7
- package/dist/src/engine/implementations/Ajna/metadata.d.ts +0 -19
- package/dist/src/engine/implementations/Ajna/tvl.d.ts +0 -7
- package/dist/src/engine/implementations/Ambient/metadata.d.ts +0 -19
- package/dist/src/engine/implementations/Ambient/tvl.d.ts +0 -7
- package/dist/src/engine/implementations/Badger/metadata.d.ts +0 -19
- package/dist/src/engine/implementations/Clamm/metadata.d.ts +0 -45
- package/dist/src/engine/implementations/Compound/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/Default/metadata.d.ts +0 -13
- package/dist/src/engine/implementations/Dolomite/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +0 -17
- package/dist/src/engine/implementations/EigenLayer/tvl.d.ts +0 -7
- package/dist/src/engine/implementations/Encompassing/metadata.d.ts +0 -16
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/Erc20/subTypes/detect.d.ts +0 -8
- package/dist/src/engine/implementations/Erc20/subTypes/factories.d.ts +0 -5
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +0 -30
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +0 -20
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.d.ts +0 -5
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gamma/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gamma/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +0 -17
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +0 -30
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +0 -16
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +0 -17
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +0 -17
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +0 -31
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/metadata.d.ts +0 -30
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +0 -124
- package/dist/src/engine/implementations/Erc20/tvl.d.ts +0 -6
- package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +0 -15
- package/dist/src/engine/implementations/Erc721/metadata.d.ts +0 -17
- package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +0 -29
- package/dist/src/engine/implementations/EventBased/metadata.d.ts +0 -24
- package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +0 -24
- package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +0 -18
- package/dist/src/engine/implementations/FraxLend/tvlBorrow.d.ts +0 -7
- package/dist/src/engine/implementations/FraxLend/tvlCollateral.d.ts +0 -7
- package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +0 -20
- package/dist/src/engine/implementations/Invalid/metadata.d.ts +0 -11
- package/dist/src/engine/implementations/Ion/metadata.d.ts +0 -17
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +0 -24
- package/dist/src/engine/implementations/Locker/metadata.d.ts +0 -24
- package/dist/src/engine/implementations/Locker/tvl.d.ts +0 -7
- package/dist/src/engine/implementations/Morpho/metadata.d.ts +0 -26
- package/dist/src/engine/implementations/MultiLog/metadata.d.ts +0 -8
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +0 -7
- package/dist/src/engine/implementations/Radiant/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/Silo/metadata.d.ts +0 -18
- package/dist/src/engine/implementations/SymbioticVault/metadata.d.ts +0 -20
- package/dist/src/engine/implementations/SymbioticVault/tvl.d.ts +0 -7
- package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +0 -20
- package/dist/src/engine/implementations/UniswapV4/tvl.d.ts +0 -7
- package/dist/src/engine/implementations/Vest/metadata.d.ts +0 -17
- package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +0 -21
- package/dist/src/engine/implementations/morphoBorrow/tvl.d.ts +0 -7
- package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +0 -21
- package/dist/src/engine/implementations/morphoCollateral/tvl.d.ts +0 -7
- package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +0 -21
- package/dist/src/engine/implementations/morphoSupply/tvl.d.ts +0 -7
- package/dist/src/engine/metadata/factory.d.ts +0 -3
- package/dist/src/engine/tvl/factory.d.ts +0 -6
- package/dist/src/engine/tvl/logStates.d.ts +0 -21
- package/dist/src/errors/BadRequest.error.d.ts +0 -4
- package/dist/src/errors/Conflict.error.d.ts +0 -4
- package/dist/src/errors/HttpError.d.ts +0 -11
- package/dist/src/errors/InvalidParameter.error.d.ts +0 -4
- package/dist/src/errors/NotFound.error.d.ts +0 -8
- package/dist/src/errors/Opportunity.error.d.ts +0 -6
- package/dist/src/errors/UnableToFindPrice.error.d.ts +0 -4
- package/dist/src/errors/Unauthorized.error.d.ts +0 -4
- package/dist/src/errors/VoidString.error.d.ts +0 -4
- package/dist/src/errors/index.d.ts +0 -6
- package/dist/src/guards/BackOffice.guard.d.ts +0 -7
- package/dist/src/guards/Engine.guard.d.ts +0 -7
- package/dist/src/guards/TokenAuth.guard.d.ts +0 -7
- package/dist/src/guards/VerifyJwt.guard.d.ts +0 -10
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +0 -26
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +0 -26
- package/dist/src/index.d.ts +0 -10007
- package/dist/src/jobs/pendings.d.ts +0 -1
- package/dist/src/jobs/prices.d.ts +0 -1
- package/dist/src/jobs/reward-breakdowns.d.ts +0 -1
- package/dist/src/jobs/rewards.d.ts +0 -1
- package/dist/src/jobs/set-dungeon-keeper.d.ts +0 -1
- package/dist/src/jobs/update-analytics.d.ts +0 -1
- package/dist/src/jobs/update-dynamic-data.d.ts +0 -1
- package/dist/src/jobs/update-euler-vaults.d.ts +0 -1
- package/dist/src/jobs/update-rpc-calls-cache.d.ts +0 -1
- package/dist/src/jobs/update-uniswap-v4-pools.d.ts +0 -1
- package/dist/src/jobs/update-v3-caches.d.ts +0 -12
- package/dist/src/libs/computeFee.d.ts +0 -4
- package/dist/src/libs/deprecated-merklv3/index.d.ts +0 -5
- package/dist/src/libs/getTokensList.d.ts +0 -23
- package/dist/src/libs/merklChainData.d.ts +0 -4
- package/dist/src/libs/parse/marketsWithCache.d.ts +0 -4
- package/dist/src/libs/positions/EigenLayer/index.d.ts +0 -6
- package/dist/src/libs/positions/ajna/index.d.ts +0 -6
- package/dist/src/libs/positions/badger/index.d.ts +0 -6
- package/dist/src/libs/positions/clamm/index.d.ts +0 -7
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +0 -5
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +0 -8
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +0 -10
- package/dist/src/libs/positions/clamm/thegraph/index.d.ts +0 -40
- package/dist/src/libs/positions/compound/index.d.ts +0 -24
- package/dist/src/libs/positions/dolomite/index.d.ts +0 -17
- package/dist/src/libs/positions/erc20/index.d.ts +0 -5
- package/dist/src/libs/positions/euler/index.d.ts +0 -5
- package/dist/src/libs/positions/index.d.ts +0 -3
- package/dist/src/libs/positions/morpho/index.d.ts +0 -6
- package/dist/src/libs/positions/prepareFetch.d.ts +0 -22
- package/dist/src/libs/positions/silo/index.d.ts +0 -5
- package/dist/src/libs/positions/types.d.ts +0 -75
- package/dist/src/libs/staticCampaigns.d.ts +0 -7
- package/dist/src/libs/tokens/allowances.d.ts +0 -1
- package/dist/src/libs/tokens/balances.d.ts +0 -11
- package/dist/src/libs/tokens/tokenInfo.d.ts +0 -8
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +0 -284
- package/dist/src/modules/v4/accounting/accounting.model.d.ts +0 -32
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +0 -99
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +0 -59
- package/dist/src/modules/v4/airflow/airflow.service.d.ts +0 -3
- package/dist/src/modules/v4/apr/apr.model.d.ts +0 -54
- package/dist/src/modules/v4/apr/apr.service.d.ts +0 -9
- package/dist/src/modules/v4/authentication/authentication.controller.d.ts +0 -74
- package/dist/src/modules/v4/authentication/authentication.model.d.ts +0 -10
- package/dist/src/modules/v4/authentication/authentication.service.d.ts +0 -10
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +0 -150
- package/dist/src/modules/v4/blacklist/blacklist.model.d.ts +0 -20
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +0 -21
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +0 -24
- package/dist/src/modules/v4/boost/boost.controller.d.ts +0 -110
- package/dist/src/modules/v4/boost/boost.model.d.ts +0 -12
- package/dist/src/modules/v4/boost/boost.service.d.ts +0 -11
- package/dist/src/modules/v4/bucket/bucket.model.d.ts +0 -10
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +0 -14
- package/dist/src/modules/v4/cache/cache.model.d.ts +0 -13
- package/dist/src/modules/v4/cache/cache.repository.d.ts +0 -8
- package/dist/src/modules/v4/cache/cache.service.d.ts +0 -12
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +0 -901
- package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +0 -9
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +0 -6
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +0 -227
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -999
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +0 -405
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +0 -566
- package/dist/src/modules/v4/chain/chain.controller.d.ts +0 -194
- package/dist/src/modules/v4/chain/chain.model.d.ts +0 -52
- package/dist/src/modules/v4/chain/chain.repository.d.ts +0 -104
- package/dist/src/modules/v4/chain/chain.service.d.ts +0 -83
- package/dist/src/modules/v4/chainInteraction/chainInteraction.service.d.ts +0 -2
- package/dist/src/modules/v4/claims/claims.controller.d.ts +0 -55
- package/dist/src/modules/v4/claims/claims.model.d.ts +0 -9
- package/dist/src/modules/v4/claims/claims.repository.d.ts +0 -5
- package/dist/src/modules/v4/claims/claims.service.d.ts +0 -9
- package/dist/src/modules/v4/coingecko/coingecko.model.d.ts +0 -0
- package/dist/src/modules/v4/coingecko/coingecko.repository.d.ts +0 -14
- package/dist/src/modules/v4/coingecko/coingecko.service.d.ts +0 -16
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +0 -164
- package/dist/src/modules/v4/computedValue/computedValue.model.d.ts +0 -27
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +0 -21
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +0 -22
- package/dist/src/modules/v4/creator/creator.controller.d.ts +0 -456
- package/dist/src/modules/v4/creator/creator.model.d.ts +0 -59
- package/dist/src/modules/v4/creator/creator.repository.d.ts +0 -97
- package/dist/src/modules/v4/creator/creator.service.d.ts +0 -192
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +0 -20
- package/dist/src/modules/v4/enso/enso.model.d.ts +0 -166
- package/dist/src/modules/v4/enso/enso.service.d.ts +0 -69
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +0 -58
- package/dist/src/modules/v4/explorer/explorer.model.d.ts +0 -16
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +0 -21
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +0 -28
- package/dist/src/modules/v4/icon/icon.model.d.ts +0 -4
- package/dist/src/modules/v4/icon/icon.service.d.ts +0 -5
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +0 -128
- package/dist/src/modules/v4/interaction/interaction.model.d.ts +0 -110
- package/dist/src/modules/v4/interaction/interaction.service.d.ts +0 -38
- package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +0 -114
- package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +0 -34
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +0 -6
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +0 -6
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +0 -6
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +0 -6
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +0 -6
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +0 -6
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +0 -50
- package/dist/src/modules/v4/liquidity/liquidity.model.d.ts +0 -25
- package/dist/src/modules/v4/liquidity/liquidity.repository.d.ts +0 -14
- package/dist/src/modules/v4/liquidity/liquidity.service.d.ts +0 -5
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +0 -113
- package/dist/src/modules/v4/merklRoot/merklRoot.model.d.ts +0 -13
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +0 -23
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +0 -44
- package/dist/src/modules/v4/node/node.controller.d.ts +0 -65
- package/dist/src/modules/v4/node/node.model.d.ts +0 -21
- package/dist/src/modules/v4/node/node.repository.d.ts +0 -21
- package/dist/src/modules/v4/node/node.service.d.ts +0 -21
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -1387
- package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +0 -127
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +0 -174
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -499
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -1052
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -710
- package/dist/src/modules/v4/opportunity/transform-id.pipe.d.ts +0 -5
- package/dist/src/modules/v4/opportunity/validate-id.pipe.d.ts +0 -5
- package/dist/src/modules/v4/parse/parse.controller.d.ts +0 -64
- package/dist/src/modules/v4/parse/parse.model.d.ts +0 -10
- package/dist/src/modules/v4/payload/payload.controller.d.ts +0 -127
- package/dist/src/modules/v4/payload/payload.model.d.ts +0 -309
- package/dist/src/modules/v4/payload/payload.service.d.ts +0 -27
- package/dist/src/modules/v4/price/price.controller.d.ts +0 -228
- package/dist/src/modules/v4/price/price.model.d.ts +0 -36
- package/dist/src/modules/v4/price/price.repository.d.ts +0 -36
- package/dist/src/modules/v4/price/price.service.d.ts +0 -40
- package/dist/src/modules/v4/prisma/index.d.ts +0 -32
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +0 -1175
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +0 -334
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -3167
- package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +0 -50
- package/dist/src/modules/v4/programPayload/subPayloads/hypurrFi.d.ts +0 -72
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +0 -290
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +0 -107
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +0 -89
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +0 -35
- package/dist/src/modules/v4/referral/referral.controller.d.ts +0 -104
- package/dist/src/modules/v4/referral/referral.model.d.ts +0 -10
- package/dist/src/modules/v4/referral/referral.service.d.ts +0 -216
- package/dist/src/modules/v4/reward/reward.controller.d.ts +0 -598
- package/dist/src/modules/v4/reward/reward.converter.d.ts +0 -14
- package/dist/src/modules/v4/reward/reward.model.d.ts +0 -260
- package/dist/src/modules/v4/reward/reward.repository.d.ts +0 -174
- package/dist/src/modules/v4/reward/reward.service.d.ts +0 -753
- package/dist/src/modules/v4/router.d.ts +0 -8439
- package/dist/src/modules/v4/status/status.controller.d.ts +0 -303
- package/dist/src/modules/v4/status/status.model.d.ts +0 -63
- package/dist/src/modules/v4/status/status.repository.d.ts +0 -104
- package/dist/src/modules/v4/status/status.service.d.ts +0 -89
- package/dist/src/modules/v4/token/token.controller.d.ts +0 -499
- package/dist/src/modules/v4/token/token.model.d.ts +0 -125
- package/dist/src/modules/v4/token/token.repository.d.ts +0 -138
- package/dist/src/modules/v4/token/token.service.d.ts +0 -361
- package/dist/src/modules/v4/tracer/tracer.service.d.ts +0 -3
- package/dist/src/modules/v4/turtle/turtle.controller.d.ts +0 -81
- package/dist/src/modules/v4/turtle/turtle.repository.d.ts +0 -14
- package/dist/src/modules/v4/turtle/turtle.service.d.ts +0 -17
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +0 -35
- package/dist/src/modules/v4/tvl/tvl.service.d.ts +0 -9
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +0 -480
- package/dist/src/modules/v4/uniswap/uniswap.model.d.ts +0 -55
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +0 -24
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +0 -21
- package/dist/src/modules/v4/user/user.controller.d.ts +0 -445
- package/dist/src/modules/v4/user/user.model.d.ts +0 -85
- package/dist/src/modules/v4/user/user.repository.d.ts +0 -34
- package/dist/src/modules/v4/user/user.service.d.ts +0 -37
- package/dist/src/plugins/errorHandler.d.ts +0 -33
- package/dist/src/routes/v1/allowances.d.ts +0 -80
- package/dist/src/routes/v1/balances.d.ts +0 -63
- package/dist/src/routes/v1/prices.d.ts +0 -55
- package/dist/src/routes/v1/router.d.ts +0 -142
- package/dist/src/routes/v1/tokens.d.ts +0 -58
- package/dist/src/routes/v2/merkl.d.ts +0 -92
- package/dist/src/routes/v2/router.d.ts +0 -83
- package/dist/src/routes/v3/app.d.ts +0 -61
- package/dist/src/routes/v3/blacklist.d.ts +0 -58
- package/dist/src/routes/v3/campaign/delay.d.ts +0 -60
- package/dist/src/routes/v3/campaignClaims.d.ts +0 -61
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +0 -60
- package/dist/src/routes/v3/campaigns.d.ts +0 -71
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +0 -67
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +0 -60
- package/dist/src/routes/v3/claims.d.ts +0 -61
- package/dist/src/routes/v3/compoundV2.d.ts +0 -55
- package/dist/src/routes/v3/createCampaign.d.ts +0 -60
- package/dist/src/routes/v3/dolomite.d.ts +0 -59
- package/dist/src/routes/v3/euler.d.ts +0 -114
- package/dist/src/routes/v3/fetch.d.ts +0 -59
- package/dist/src/routes/v3/health.d.ts +0 -54
- package/dist/src/routes/v3/lostyield.d.ts +0 -66
- package/dist/src/routes/v3/merkl.d.ts +0 -116
- package/dist/src/routes/v3/morphoMarkets.d.ts +0 -75
- package/dist/src/routes/v3/morphoVaults.d.ts +0 -65
- package/dist/src/routes/v3/multiChainPositions.d.ts +0 -58
- package/dist/src/routes/v3/opportunity.d.ts +0 -125
- package/dist/src/routes/v3/overview.d.ts +0 -91
- package/dist/src/routes/v3/parse.d.ts +0 -60
- package/dist/src/routes/v3/payload.d.ts +0 -71
- package/dist/src/routes/v3/poolInfo.d.ts +0 -62
- package/dist/src/routes/v3/positions.d.ts +0 -75
- package/dist/src/routes/v3/radiant.d.ts +0 -69
- package/dist/src/routes/v3/recipients.d.ts +0 -59
- package/dist/src/routes/v3/rewards.d.ts +0 -86
- package/dist/src/routes/v3/rewardsReport.d.ts +0 -69
- package/dist/src/routes/v3/router.d.ts +0 -1401
- package/dist/src/routes/v3/silo.d.ts +0 -66
- package/dist/src/routes/v3/token.d.ts +0 -64
- package/dist/src/routes/v3/twt/participants.d.ts +0 -52
- package/dist/src/routes/v3/uniswapv4.d.ts +0 -252
- package/dist/src/routes/v3/updates.d.ts +0 -66
- package/dist/src/routes/v3/userRewards.d.ts +0 -82
- package/dist/src/scripts/fill-coingecko-data.d.ts +0 -1
- package/dist/src/scripts/fill-descriptions.d.ts +0 -1
- package/dist/src/scripts/fill-unknown-tokens.d.ts +0 -1
- package/dist/src/scripts/reparse-opportunities.d.ts +0 -1
- package/dist/src/types/external/spectraAPI.d.ts +0 -88
- package/dist/src/types/index.d.ts +0 -17
- package/dist/src/utils/TailSampler.d.ts +0 -8
- package/dist/src/utils/bigintToString.d.ts +0 -1
- package/dist/src/utils/caseChanges.d.ts +0 -4
- package/dist/src/utils/decodeCalls.d.ts +0 -3
- package/dist/src/utils/encodeCalls.d.ts +0 -3
- package/dist/src/utils/error.d.ts +0 -70
- package/dist/src/utils/execute.d.ts +0 -22
- package/dist/src/utils/generateCardName.d.ts +0 -6
- package/dist/src/utils/generic.d.ts +0 -7
- package/dist/src/utils/hashArray.d.ts +0 -2
- package/dist/src/utils/lastBlockBefore.d.ts +0 -3
- package/dist/src/utils/logger.d.ts +0 -54
- package/dist/src/utils/pagination.d.ts +0 -11
- package/dist/src/utils/parseDistributionType.d.ts +0 -1
- package/dist/src/utils/pricer.d.ts +0 -57
- package/dist/src/utils/prices/chainlinkRead.d.ts +0 -4
- package/dist/src/utils/prices/curveVirtualPrice.d.ts +0 -4
- package/dist/src/utils/prices/getDQUICK.d.ts +0 -4
- package/dist/src/utils/prices/priceFetcherFactory.d.ts +0 -10
- package/dist/src/utils/prices/priceService.d.ts +0 -13
- package/dist/src/utils/prices/services/OnChainCallService.d.ts +0 -8
- package/dist/src/utils/prices/services/coinGeckoService.d.ts +0 -12
- package/dist/src/utils/prices/services/defillamaService.d.ts +0 -12
- package/dist/src/utils/prices/services/dexScreenerService.d.ts +0 -12
- package/dist/src/utils/prices/services/erc4626Service.d.ts +0 -9
- package/dist/src/utils/prices/services/getERC4626.d.ts +0 -4
- package/dist/src/utils/prices/services/indexCoopService.d.ts +0 -12
- package/dist/src/utils/prices/services/priceFetcher.d.ts +0 -8
- package/dist/src/utils/prices/services/uniswapV2PriceService.d.ts +0 -8
- package/dist/src/utils/prices/uniV2Price.d.ts +0 -7
- package/dist/src/utils/providers.d.ts +0 -128
- package/dist/src/utils/queries/allCampaigns.d.ts +0 -1
- package/dist/src/utils/sanitizeChain.d.ts +0 -2
- package/dist/src/utils/stryke.d.ts +0 -2
- package/dist/src/utils/throw.d.ts +0 -22
@@ -1,710 +0,0 @@
|
|
1
|
-
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import { type OpportunityAction, type OpportunityManualOverride, type Prisma } from "@package/databases/api";
|
3
|
-
import type { CampaignWithParams, FindCampaignModel } from "../../../modules/v4/campaign/campaign.model";
|
4
|
-
import type { Protocol } from "../protocol/protocol.model";
|
5
|
-
import type { Token } from "../token/token.model";
|
6
|
-
import type { FindOpportunityModel, GetOpportunitiesQueryModel, Opportunity, OpportunityOverrideModel, OpportunityResourceModel, OpportunityUnique } from "./opportunity.model";
|
7
|
-
export declare abstract class OpportunityService {
|
8
|
-
static hashId(opportunity: OpportunityUnique): string;
|
9
|
-
static getAprBins(query: GetOpportunitiesQueryModel): Promise<{
|
10
|
-
min: number;
|
11
|
-
max: number;
|
12
|
-
overThreshold: number;
|
13
|
-
data: {
|
14
|
-
count: any;
|
15
|
-
min: number;
|
16
|
-
max: number;
|
17
|
-
}[];
|
18
|
-
}>;
|
19
|
-
static getTvlBins(query: GetOpportunitiesQueryModel): Promise<{
|
20
|
-
min: number;
|
21
|
-
max: number;
|
22
|
-
underThreshold: number;
|
23
|
-
data: {
|
24
|
-
count: any;
|
25
|
-
min: number;
|
26
|
-
max: number;
|
27
|
-
}[];
|
28
|
-
}>;
|
29
|
-
static override(id: string, data: OpportunityOverrideModel): Promise<{
|
30
|
-
name: string;
|
31
|
-
apr: number;
|
32
|
-
tvl: number;
|
33
|
-
description: string;
|
34
|
-
id: string;
|
35
|
-
status: import("@package/databases").Status;
|
36
|
-
chainId: number;
|
37
|
-
action: import("@package/databases").OpportunityAction;
|
38
|
-
type: string;
|
39
|
-
depositUrl: string | null;
|
40
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
41
|
-
identifier: string;
|
42
|
-
howToSteps: string[];
|
43
|
-
explorerAddress: string | null;
|
44
|
-
mainProtocolId: string | null;
|
45
|
-
dailyRewards: number;
|
46
|
-
tags: string[];
|
47
|
-
lastCampaignCreatedAt: Date;
|
48
|
-
}>;
|
49
|
-
static deleteOverrides(id: string, overridesToDelete: OpportunityManualOverride[]): Promise<{
|
50
|
-
id: string;
|
51
|
-
chainId: number;
|
52
|
-
type: string;
|
53
|
-
identifier: string;
|
54
|
-
name: string;
|
55
|
-
status: "PAST" | "LIVE" | "SOON";
|
56
|
-
action: OpportunityAction;
|
57
|
-
tokens: ({
|
58
|
-
symbol: string;
|
59
|
-
name: string | null;
|
60
|
-
decimals: number;
|
61
|
-
address: string;
|
62
|
-
id: string;
|
63
|
-
chainId: number;
|
64
|
-
icon: string;
|
65
|
-
isNative: boolean;
|
66
|
-
isPoint: boolean;
|
67
|
-
isPreTGE: boolean;
|
68
|
-
isTest: boolean;
|
69
|
-
verified: boolean;
|
70
|
-
} & {
|
71
|
-
price?: number | null | undefined;
|
72
|
-
isTokenWrapper?: boolean | undefined;
|
73
|
-
tokenWrapperAddress?: string | undefined;
|
74
|
-
})[];
|
75
|
-
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "silo" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
|
76
|
-
description: string;
|
77
|
-
howToSteps: string[];
|
78
|
-
depositUrl: string | undefined;
|
79
|
-
explorerAddress: string | undefined;
|
80
|
-
tags: string[];
|
81
|
-
} | ({
|
82
|
-
Protocols: {
|
83
|
-
name: string;
|
84
|
-
description: string;
|
85
|
-
id: string;
|
86
|
-
url: string;
|
87
|
-
icon: string;
|
88
|
-
tags: string[];
|
89
|
-
}[];
|
90
|
-
Tokens: {
|
91
|
-
symbol: string;
|
92
|
-
name: string | null;
|
93
|
-
decimals: number;
|
94
|
-
price: number | null;
|
95
|
-
address: string;
|
96
|
-
id: string;
|
97
|
-
chainId: number;
|
98
|
-
icon: string;
|
99
|
-
isNative: boolean;
|
100
|
-
isPoint: boolean;
|
101
|
-
isPreTGE: boolean;
|
102
|
-
isTest: boolean;
|
103
|
-
verified: boolean;
|
104
|
-
displaySymbol: string;
|
105
|
-
}[];
|
106
|
-
} & {
|
107
|
-
name: string;
|
108
|
-
apr: number;
|
109
|
-
tvl: number;
|
110
|
-
description: string;
|
111
|
-
id: string;
|
112
|
-
status: import("@package/databases").Status;
|
113
|
-
chainId: number;
|
114
|
-
action: import("@package/databases").OpportunityAction;
|
115
|
-
type: string;
|
116
|
-
depositUrl: string | null;
|
117
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
118
|
-
identifier: string;
|
119
|
-
howToSteps: string[];
|
120
|
-
explorerAddress: string | null;
|
121
|
-
mainProtocolId: string | null;
|
122
|
-
dailyRewards: number;
|
123
|
-
tags: string[];
|
124
|
-
lastCampaignCreatedAt: Date;
|
125
|
-
})>;
|
126
|
-
/**
|
127
|
-
* @param upsert whether to update the opportunity if it already exists in database
|
128
|
-
* @param dryRun whether to skip the opportunity table interaction and just return the computed opportunity
|
129
|
-
* @returns the opportunity entity computed
|
130
|
-
*/
|
131
|
-
static createFromCampaign(campaign: Omit<CampaignWithParams, "manualOverrides" | "opportunityId">, opportunityIdentifier: string, upsert?: boolean, dryRun?: boolean): Promise<{
|
132
|
-
id: string;
|
133
|
-
chainId: number;
|
134
|
-
type: string;
|
135
|
-
identifier: string;
|
136
|
-
name: string;
|
137
|
-
status: "PAST" | "LIVE" | "SOON";
|
138
|
-
action: OpportunityAction;
|
139
|
-
tokens: ({
|
140
|
-
symbol: string;
|
141
|
-
name: string | null;
|
142
|
-
decimals: number;
|
143
|
-
address: string;
|
144
|
-
id: string;
|
145
|
-
chainId: number;
|
146
|
-
icon: string;
|
147
|
-
isNative: boolean;
|
148
|
-
isPoint: boolean;
|
149
|
-
isPreTGE: boolean;
|
150
|
-
isTest: boolean;
|
151
|
-
verified: boolean;
|
152
|
-
} & {
|
153
|
-
price?: number | null | undefined;
|
154
|
-
isTokenWrapper?: boolean | undefined;
|
155
|
-
tokenWrapperAddress?: string | undefined;
|
156
|
-
})[];
|
157
|
-
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "silo" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
|
158
|
-
description: string;
|
159
|
-
howToSteps: string[];
|
160
|
-
depositUrl: string | undefined;
|
161
|
-
explorerAddress: string | undefined;
|
162
|
-
tags: string[];
|
163
|
-
} | ({
|
164
|
-
Protocols: {
|
165
|
-
name: string;
|
166
|
-
description: string;
|
167
|
-
id: string;
|
168
|
-
url: string;
|
169
|
-
icon: string;
|
170
|
-
tags: string[];
|
171
|
-
}[];
|
172
|
-
Tokens: {
|
173
|
-
symbol: string;
|
174
|
-
name: string | null;
|
175
|
-
decimals: number;
|
176
|
-
price: number | null;
|
177
|
-
address: string;
|
178
|
-
id: string;
|
179
|
-
chainId: number;
|
180
|
-
icon: string;
|
181
|
-
isNative: boolean;
|
182
|
-
isPoint: boolean;
|
183
|
-
isPreTGE: boolean;
|
184
|
-
isTest: boolean;
|
185
|
-
verified: boolean;
|
186
|
-
displaySymbol: string;
|
187
|
-
}[];
|
188
|
-
} & {
|
189
|
-
name: string;
|
190
|
-
apr: number;
|
191
|
-
tvl: number;
|
192
|
-
description: string;
|
193
|
-
id: string;
|
194
|
-
status: import("@package/databases").Status;
|
195
|
-
chainId: number;
|
196
|
-
action: import("@package/databases").OpportunityAction;
|
197
|
-
type: string;
|
198
|
-
depositUrl: string | null;
|
199
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
200
|
-
identifier: string;
|
201
|
-
howToSteps: string[];
|
202
|
-
explorerAddress: string | null;
|
203
|
-
mainProtocolId: string | null;
|
204
|
-
dailyRewards: number;
|
205
|
-
tags: string[];
|
206
|
-
lastCampaignCreatedAt: Date;
|
207
|
-
})>;
|
208
|
-
/**
|
209
|
-
* @notice Find the first campaign of an opportunity and then upserts the opportunity
|
210
|
-
* based on this
|
211
|
-
*/
|
212
|
-
static recreate(opportunityId: string, campaignId?: string): Promise<{
|
213
|
-
id: string;
|
214
|
-
chainId: number;
|
215
|
-
type: string;
|
216
|
-
identifier: string;
|
217
|
-
name: string;
|
218
|
-
status: "PAST" | "LIVE" | "SOON";
|
219
|
-
action: OpportunityAction;
|
220
|
-
tokens: ({
|
221
|
-
symbol: string;
|
222
|
-
name: string | null;
|
223
|
-
decimals: number;
|
224
|
-
address: string;
|
225
|
-
id: string;
|
226
|
-
chainId: number;
|
227
|
-
icon: string;
|
228
|
-
isNative: boolean;
|
229
|
-
isPoint: boolean;
|
230
|
-
isPreTGE: boolean;
|
231
|
-
isTest: boolean;
|
232
|
-
verified: boolean;
|
233
|
-
} & {
|
234
|
-
price?: number | null | undefined;
|
235
|
-
isTokenWrapper?: boolean | undefined;
|
236
|
-
tokenWrapperAddress?: string | undefined;
|
237
|
-
})[];
|
238
|
-
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "silo" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
|
239
|
-
description: string;
|
240
|
-
howToSteps: string[];
|
241
|
-
depositUrl: string | undefined;
|
242
|
-
explorerAddress: string | undefined;
|
243
|
-
tags: string[];
|
244
|
-
} | ({
|
245
|
-
Protocols: {
|
246
|
-
name: string;
|
247
|
-
description: string;
|
248
|
-
id: string;
|
249
|
-
url: string;
|
250
|
-
icon: string;
|
251
|
-
tags: string[];
|
252
|
-
}[];
|
253
|
-
Tokens: {
|
254
|
-
symbol: string;
|
255
|
-
name: string | null;
|
256
|
-
decimals: number;
|
257
|
-
price: number | null;
|
258
|
-
address: string;
|
259
|
-
id: string;
|
260
|
-
chainId: number;
|
261
|
-
icon: string;
|
262
|
-
isNative: boolean;
|
263
|
-
isPoint: boolean;
|
264
|
-
isPreTGE: boolean;
|
265
|
-
isTest: boolean;
|
266
|
-
verified: boolean;
|
267
|
-
displaySymbol: string;
|
268
|
-
}[];
|
269
|
-
} & {
|
270
|
-
name: string;
|
271
|
-
apr: number;
|
272
|
-
tvl: number;
|
273
|
-
description: string;
|
274
|
-
id: string;
|
275
|
-
status: import("@package/databases").Status;
|
276
|
-
chainId: number;
|
277
|
-
action: import("@package/databases").OpportunityAction;
|
278
|
-
type: string;
|
279
|
-
depositUrl: string | null;
|
280
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
281
|
-
identifier: string;
|
282
|
-
howToSteps: string[];
|
283
|
-
explorerAddress: string | null;
|
284
|
-
mainProtocolId: string | null;
|
285
|
-
dailyRewards: number;
|
286
|
-
tags: string[];
|
287
|
-
lastCampaignCreatedAt: Date;
|
288
|
-
})>;
|
289
|
-
/**
|
290
|
-
* Finds opportunities based on filters of its campaigns
|
291
|
-
* @notice campaigns are filtered as well
|
292
|
-
* @param where
|
293
|
-
* @returns opportunities
|
294
|
-
*/
|
295
|
-
static findManyByCampaigns(query: FindCampaignModel): Promise<{
|
296
|
-
protocol?: {
|
297
|
-
dailyRewards?: number | undefined;
|
298
|
-
numberOfLiveCampaigns?: number | undefined;
|
299
|
-
opportunityLiveTags?: string[] | undefined;
|
300
|
-
name: string;
|
301
|
-
description: string;
|
302
|
-
id: string;
|
303
|
-
url: string;
|
304
|
-
icon: string;
|
305
|
-
tags: string[];
|
306
|
-
} | null | undefined;
|
307
|
-
depositUrl?: string | undefined;
|
308
|
-
aprRecord?: {
|
309
|
-
timestamp: string | bigint;
|
310
|
-
cumulated: number;
|
311
|
-
breakdowns: {
|
312
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
313
|
-
value: number;
|
314
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
315
|
-
identifier: string;
|
316
|
-
}[];
|
317
|
-
} | undefined;
|
318
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
319
|
-
explorerAddress?: string | undefined;
|
320
|
-
tvlRecord?: {
|
321
|
-
timestamp: string | bigint;
|
322
|
-
total: number;
|
323
|
-
breakdowns: {
|
324
|
-
value: number;
|
325
|
-
type: "TOKEN" | "PROTOCOL";
|
326
|
-
identifier: string;
|
327
|
-
}[];
|
328
|
-
} | undefined;
|
329
|
-
rewardsRecord?: {
|
330
|
-
timestamp: string | bigint;
|
331
|
-
total: number;
|
332
|
-
breakdowns: {
|
333
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
334
|
-
token: {
|
335
|
-
price?: number | null | undefined;
|
336
|
-
symbol: string;
|
337
|
-
name: string | null;
|
338
|
-
decimals: number;
|
339
|
-
address: string;
|
340
|
-
id: string;
|
341
|
-
chainId: number;
|
342
|
-
icon: string;
|
343
|
-
isNative: boolean;
|
344
|
-
isPoint: boolean;
|
345
|
-
isPreTGE: boolean;
|
346
|
-
isTest: boolean;
|
347
|
-
verified: boolean;
|
348
|
-
};
|
349
|
-
campaignId: string;
|
350
|
-
value: number;
|
351
|
-
amount: string | bigint;
|
352
|
-
}[];
|
353
|
-
} | undefined;
|
354
|
-
name: string;
|
355
|
-
apr: number;
|
356
|
-
tokens: {
|
357
|
-
price?: number | null | undefined;
|
358
|
-
symbol: string;
|
359
|
-
name: string | null;
|
360
|
-
decimals: number;
|
361
|
-
address: string;
|
362
|
-
id: string;
|
363
|
-
chainId: number;
|
364
|
-
icon: string;
|
365
|
-
isNative: boolean;
|
366
|
-
isPoint: boolean;
|
367
|
-
isPreTGE: boolean;
|
368
|
-
isTest: boolean;
|
369
|
-
verified: boolean;
|
370
|
-
}[];
|
371
|
-
tvl: number;
|
372
|
-
description: string;
|
373
|
-
id: string;
|
374
|
-
status: string;
|
375
|
-
chainId: number;
|
376
|
-
campaigns: {
|
377
|
-
description?: string | undefined;
|
378
|
-
creator?: {
|
379
|
-
tags?: string[] | undefined;
|
380
|
-
creatorId?: string | null | undefined;
|
381
|
-
address: string;
|
382
|
-
} | undefined;
|
383
|
-
campaignStatus?: {
|
384
|
-
error?: string | undefined;
|
385
|
-
details?: any;
|
386
|
-
status: string;
|
387
|
-
computedUntil: string | number;
|
388
|
-
processingStarted: string | number;
|
389
|
-
} | undefined;
|
390
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
391
|
-
rootCampaignId?: string | undefined;
|
392
|
-
parentCampaignId?: string | undefined;
|
393
|
-
distributionChain?: {
|
394
|
-
explorers?: {
|
395
|
-
chainId: number;
|
396
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
397
|
-
url: string;
|
398
|
-
}[] | undefined;
|
399
|
-
name: string;
|
400
|
-
id: number;
|
401
|
-
icon: string;
|
402
|
-
} | undefined;
|
403
|
-
rewardToken: {
|
404
|
-
price?: number | null | undefined;
|
405
|
-
symbol: string;
|
406
|
-
name: string | null;
|
407
|
-
decimals: number;
|
408
|
-
address: string;
|
409
|
-
id: string;
|
410
|
-
chainId: number;
|
411
|
-
icon: string;
|
412
|
-
isNative: boolean;
|
413
|
-
isPoint: boolean;
|
414
|
-
isPreTGE: boolean;
|
415
|
-
isTest: boolean;
|
416
|
-
verified: boolean;
|
417
|
-
};
|
418
|
-
campaignId: string;
|
419
|
-
id: string;
|
420
|
-
params: any;
|
421
|
-
amount: string;
|
422
|
-
startTimestamp: string | number;
|
423
|
-
type: string;
|
424
|
-
computeChainId: number;
|
425
|
-
distributionChainId: number;
|
426
|
-
endTimestamp: string | number;
|
427
|
-
chain: {
|
428
|
-
explorers?: {
|
429
|
-
chainId: number;
|
430
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
431
|
-
url: string;
|
432
|
-
}[] | undefined;
|
433
|
-
name: string;
|
434
|
-
id: number;
|
435
|
-
icon: string;
|
436
|
-
};
|
437
|
-
subType: number | null;
|
438
|
-
creatorAddress: string;
|
439
|
-
createdAt: string;
|
440
|
-
}[];
|
441
|
-
action: string;
|
442
|
-
type: string;
|
443
|
-
chain: {
|
444
|
-
explorers?: {
|
445
|
-
chainId: number;
|
446
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
447
|
-
url: string;
|
448
|
-
}[] | undefined;
|
449
|
-
name: string;
|
450
|
-
id: number;
|
451
|
-
icon: string;
|
452
|
-
};
|
453
|
-
identifier: string;
|
454
|
-
howToSteps: string[];
|
455
|
-
dailyRewards: number;
|
456
|
-
tags: string[];
|
457
|
-
lastCampaignCreatedAt: number;
|
458
|
-
}[]>;
|
459
|
-
static findUniqueOrThrow(opportunityId: string | OpportunityUnique, query: FindOpportunityModel): Promise<OpportunityResourceModel>;
|
460
|
-
/**
|
461
|
-
* Get the list of opportunities satisfying the query
|
462
|
-
* @param query
|
463
|
-
* @returns A list of opportunities
|
464
|
-
*/
|
465
|
-
static findMany(query: GetOpportunitiesQueryModel): Promise<{
|
466
|
-
aprRecord: {
|
467
|
-
cumulated: number;
|
468
|
-
timestamp: bigint;
|
469
|
-
breakdowns: ({
|
470
|
-
value: number;
|
471
|
-
distributionType: import("@package/databases").DistributionType;
|
472
|
-
identifier: string;
|
473
|
-
type: "CAMPAIGN";
|
474
|
-
} | {
|
475
|
-
value: number;
|
476
|
-
identifier: string;
|
477
|
-
type: import("@package/databases").AprType;
|
478
|
-
})[];
|
479
|
-
};
|
480
|
-
tvlRecord: {
|
481
|
-
id: string;
|
482
|
-
total: number;
|
483
|
-
timestamp: bigint;
|
484
|
-
breakdowns: {
|
485
|
-
value: number;
|
486
|
-
type: import("@package/databases").TvlType;
|
487
|
-
identifier: string;
|
488
|
-
}[];
|
489
|
-
};
|
490
|
-
rewardsRecord: {
|
491
|
-
id: string;
|
492
|
-
total: number;
|
493
|
-
timestamp: bigint;
|
494
|
-
breakdowns: {
|
495
|
-
campaignId: string;
|
496
|
-
id: string;
|
497
|
-
dailyRewardsRecordId: string;
|
498
|
-
token: {
|
499
|
-
symbol: string;
|
500
|
-
name: string | null;
|
501
|
-
decimals: number;
|
502
|
-
price: number | null;
|
503
|
-
address: string;
|
504
|
-
id: string;
|
505
|
-
chainId: number;
|
506
|
-
icon: string;
|
507
|
-
isNative: boolean;
|
508
|
-
isPoint: boolean;
|
509
|
-
isPreTGE: boolean;
|
510
|
-
isTest: boolean;
|
511
|
-
verified: boolean;
|
512
|
-
displaySymbol: string;
|
513
|
-
};
|
514
|
-
amount: bigint;
|
515
|
-
value: number;
|
516
|
-
distributionType: import("@package/databases").DistributionType;
|
517
|
-
}[];
|
518
|
-
};
|
519
|
-
campaigns: Omit<CampaignWithParams, "manualOverrides">[] | undefined;
|
520
|
-
tokens: ({
|
521
|
-
symbol: string;
|
522
|
-
name: string | null;
|
523
|
-
decimals: number;
|
524
|
-
address: string;
|
525
|
-
id: string;
|
526
|
-
chainId: number;
|
527
|
-
icon: string;
|
528
|
-
isNative: boolean;
|
529
|
-
isPoint: boolean;
|
530
|
-
isPreTGE: boolean;
|
531
|
-
isTest: boolean;
|
532
|
-
verified: boolean;
|
533
|
-
} & {
|
534
|
-
price?: number | null | undefined;
|
535
|
-
isTokenWrapper?: boolean | undefined;
|
536
|
-
tokenWrapperAddress?: string | undefined;
|
537
|
-
})[];
|
538
|
-
chain: {
|
539
|
-
name: string;
|
540
|
-
id: number;
|
541
|
-
icon: string;
|
542
|
-
};
|
543
|
-
protocol: {
|
544
|
-
name: string;
|
545
|
-
description: string;
|
546
|
-
id: string;
|
547
|
-
url: string;
|
548
|
-
icon: string;
|
549
|
-
tags: string[];
|
550
|
-
} | undefined;
|
551
|
-
id: string;
|
552
|
-
depositUrl: string | undefined;
|
553
|
-
explorerAddress: string | undefined;
|
554
|
-
lastCampaignCreatedAt: number;
|
555
|
-
name: string;
|
556
|
-
apr: number;
|
557
|
-
tvl: number;
|
558
|
-
description: string;
|
559
|
-
status: import("@package/databases").Status;
|
560
|
-
chainId: number;
|
561
|
-
action: import("@package/databases").OpportunityAction;
|
562
|
-
type: string;
|
563
|
-
identifier: string;
|
564
|
-
howToSteps: string[];
|
565
|
-
dailyRewards: number;
|
566
|
-
tags: string[];
|
567
|
-
}[]>;
|
568
|
-
/**
|
569
|
-
* Counts the number of opportunities that complies to query
|
570
|
-
* @description used for pagination purposes
|
571
|
-
* @param query
|
572
|
-
* @returns the number of opportunities
|
573
|
-
*/
|
574
|
-
static countMany(query: GetOpportunitiesQueryModel): Promise<number>;
|
575
|
-
static findLiveWithCampaigns(chainId: MerklChainId, take?: number): Promise<{
|
576
|
-
aprRecord: {
|
577
|
-
cumulated: number;
|
578
|
-
timestamp: bigint;
|
579
|
-
breakdowns: ({
|
580
|
-
value: number;
|
581
|
-
distributionType: import("@package/databases").DistributionType;
|
582
|
-
identifier: string;
|
583
|
-
type: "CAMPAIGN";
|
584
|
-
} | {
|
585
|
-
value: number;
|
586
|
-
identifier: string;
|
587
|
-
type: import("@package/databases").AprType;
|
588
|
-
})[];
|
589
|
-
};
|
590
|
-
tvlRecord: {
|
591
|
-
id: string;
|
592
|
-
total: number;
|
593
|
-
timestamp: bigint;
|
594
|
-
breakdowns: {
|
595
|
-
value: number;
|
596
|
-
type: import("@package/databases").TvlType;
|
597
|
-
identifier: string;
|
598
|
-
}[];
|
599
|
-
};
|
600
|
-
rewardsRecord: {
|
601
|
-
id: string;
|
602
|
-
total: number;
|
603
|
-
timestamp: bigint;
|
604
|
-
breakdowns: {
|
605
|
-
campaignId: string;
|
606
|
-
id: string;
|
607
|
-
dailyRewardsRecordId: string;
|
608
|
-
token: {
|
609
|
-
symbol: string;
|
610
|
-
name: string | null;
|
611
|
-
decimals: number;
|
612
|
-
price: number | null;
|
613
|
-
address: string;
|
614
|
-
id: string;
|
615
|
-
chainId: number;
|
616
|
-
icon: string;
|
617
|
-
isNative: boolean;
|
618
|
-
isPoint: boolean;
|
619
|
-
isPreTGE: boolean;
|
620
|
-
isTest: boolean;
|
621
|
-
verified: boolean;
|
622
|
-
displaySymbol: string;
|
623
|
-
};
|
624
|
-
amount: bigint;
|
625
|
-
value: number;
|
626
|
-
distributionType: import("@package/databases").DistributionType;
|
627
|
-
}[];
|
628
|
-
};
|
629
|
-
campaigns: Omit<CampaignWithParams, "manualOverrides">[] | undefined;
|
630
|
-
tokens: ({
|
631
|
-
symbol: string;
|
632
|
-
name: string | null;
|
633
|
-
decimals: number;
|
634
|
-
address: string;
|
635
|
-
id: string;
|
636
|
-
chainId: number;
|
637
|
-
icon: string;
|
638
|
-
isNative: boolean;
|
639
|
-
isPoint: boolean;
|
640
|
-
isPreTGE: boolean;
|
641
|
-
isTest: boolean;
|
642
|
-
verified: boolean;
|
643
|
-
} & {
|
644
|
-
price?: number | null | undefined;
|
645
|
-
isTokenWrapper?: boolean | undefined;
|
646
|
-
tokenWrapperAddress?: string | undefined;
|
647
|
-
})[];
|
648
|
-
chain: {
|
649
|
-
name: string;
|
650
|
-
id: number;
|
651
|
-
icon: string;
|
652
|
-
};
|
653
|
-
protocol: {
|
654
|
-
name: string;
|
655
|
-
description: string;
|
656
|
-
id: string;
|
657
|
-
url: string;
|
658
|
-
icon: string;
|
659
|
-
tags: string[];
|
660
|
-
} | undefined;
|
661
|
-
id: string;
|
662
|
-
depositUrl: string | undefined;
|
663
|
-
explorerAddress: string | undefined;
|
664
|
-
lastCampaignCreatedAt: number;
|
665
|
-
name: string;
|
666
|
-
apr: number;
|
667
|
-
tvl: number;
|
668
|
-
description: string;
|
669
|
-
status: import("@package/databases").Status;
|
670
|
-
chainId: number;
|
671
|
-
action: import("@package/databases").OpportunityAction;
|
672
|
-
type: string;
|
673
|
-
identifier: string;
|
674
|
-
howToSteps: string[];
|
675
|
-
dailyRewards: number;
|
676
|
-
tags: string[];
|
677
|
-
}[]>;
|
678
|
-
static aggregate(query: GetOpportunitiesQueryModel, field: keyof Prisma.OpportunitySumAggregateInputType): Promise<{
|
679
|
-
sum: string;
|
680
|
-
}>;
|
681
|
-
static aggregateMin(query: GetOpportunitiesQueryModel, field: keyof Prisma.OpportunityMinAggregateInputType): Promise<{
|
682
|
-
min: string;
|
683
|
-
}>;
|
684
|
-
static aggregateMax(query: GetOpportunitiesQueryModel, field: keyof Prisma.OpportunityMaxAggregateInputType): Promise<{
|
685
|
-
max: string;
|
686
|
-
}>;
|
687
|
-
static update(id: string, data: Partial<Opportunity["raw"]>): Promise<{
|
688
|
-
name: string;
|
689
|
-
apr: number;
|
690
|
-
tvl: number;
|
691
|
-
description: string;
|
692
|
-
id: string;
|
693
|
-
status: import("@package/databases").Status;
|
694
|
-
chainId: number;
|
695
|
-
action: import("@package/databases").OpportunityAction;
|
696
|
-
type: string;
|
697
|
-
depositUrl: string | null;
|
698
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
699
|
-
identifier: string;
|
700
|
-
howToSteps: string[];
|
701
|
-
explorerAddress: string | null;
|
702
|
-
mainProtocolId: string | null;
|
703
|
-
dailyRewards: number;
|
704
|
-
tags: string[];
|
705
|
-
lastCampaignCreatedAt: Date;
|
706
|
-
}>;
|
707
|
-
static updateMany(ids: string[], data: Partial<Opportunity["raw"]>): Promise<Prisma.BatchPayload>;
|
708
|
-
static description(action: OpportunityAction, tokens: Token["model"][], protocol: Protocol["model"], chainId: number): Promise<string>;
|
709
|
-
static howToSteps(action: OpportunityAction, tokens: Token["model"][], protocol: Protocol["model"]): string[];
|
710
|
-
}
|