@merkl/api 0.21.47 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cache/index.d.ts +1 -1
- package/dist/src/constants.d.ts +8 -8
- package/dist/src/eden/index.d.ts +16782 -8009
- package/dist/src/eden/index.js +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Ajna.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Badger.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Compound.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Dolomite.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.d.ts +2 -2
- package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.d.ts +2 -2
- package/dist/src/engine/deprecated/dynamicData/implementations/EigenLayer.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Encompassing.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +105 -3
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20Snapshot.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.d.ts +2 -2
- package/dist/src/engine/deprecated/dynamicData/implementations/Morpho.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Radiant.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Silo.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/UniswapV4.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Vest.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/default.d.ts +2 -2
- package/dist/src/engine/deprecated/dynamicData/utils/fetchA51Strategies.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/fetchClamInfo.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/fetchLogs.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getDolomiteMarkets.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getEulerV2Vaults.d.ts +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +6 -6
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/treasuryFinder.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +4 -4
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +4 -4
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +4 -4
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +4 -4
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +4 -4
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +4 -4
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.d.ts +3 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound2.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound3.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound4.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeStruct.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +3 -3
- package/dist/src/engine/implementations/Ajna/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/Ajna/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Ambient/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/Ambient/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Badger/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Clamm/metadata.d.ts +22 -22
- package/dist/src/engine/implementations/Compound/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Default/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Dolomite/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/EigenLayer/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Encompassing/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/detect.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/factories.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +6 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/tvl.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +6 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +6 -6
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/tvl.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/tvl.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +3 -2
- package/dist/src/engine/implementations/Erc20/tvl.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Erc721/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +6 -6
- package/dist/src/engine/implementations/EventBased/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +24 -0
- package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +18 -0
- package/dist/src/engine/implementations/FraxLend/tvlBorrow.d.ts +7 -0
- package/dist/src/engine/implementations/FraxLend/tvlCollateral.d.ts +7 -0
- package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/Invalid/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Ion/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +7 -7
- package/dist/src/engine/implementations/Locker/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/Locker/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Morpho/metadata.d.ts +7 -7
- package/dist/src/engine/implementations/MultiLog/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +3 -3
- package/dist/src/engine/implementations/Radiant/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Silo/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +5 -5
- package/dist/src/engine/implementations/UniswapV4/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Vest/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +20 -0
- package/dist/src/engine/implementations/morphoBorrow/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +20 -0
- package/dist/src/engine/implementations/morphoCollateral/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +20 -0
- package/dist/src/engine/implementations/morphoSupply/tvl.d.ts +7 -0
- package/dist/src/engine/metadata/factory.d.ts +1 -1
- package/dist/src/engine/tvl/factory.d.ts +2 -2
- package/dist/src/engine/tvl/logStates.d.ts +1 -1
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +6 -2
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +6 -2
- package/dist/src/index.d.ts +5533 -2610
- package/dist/src/jobs/{dynamic-data.d.ts → update-v3-caches.d.ts} +4 -1
- package/dist/src/libs/computeFee.d.ts +1 -1
- package/dist/src/libs/deprecated-merklv3/index.d.ts +3 -3
- package/dist/src/libs/merklChainData.d.ts +1 -1
- package/dist/src/libs/parse/marketsWithCache.d.ts +1 -1
- package/dist/src/libs/positions/EigenLayer/index.d.ts +2 -2
- package/dist/src/libs/positions/ajna/index.d.ts +2 -2
- package/dist/src/libs/positions/badger/index.d.ts +2 -2
- package/dist/src/libs/positions/clamm/index.d.ts +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +1 -1
- package/dist/src/libs/positions/compound/index.d.ts +2 -2
- package/dist/src/libs/positions/dolomite/index.d.ts +2 -2
- package/dist/src/libs/positions/erc20/index.d.ts +2 -2
- package/dist/src/libs/positions/euler/index.d.ts +2 -2
- package/dist/src/libs/positions/index.d.ts +1 -1
- package/dist/src/libs/positions/morpho/index.d.ts +2 -2
- package/dist/src/libs/positions/prepareFetch.d.ts +1 -1
- package/dist/src/libs/positions/silo/index.d.ts +2 -2
- package/dist/src/libs/positions/types.d.ts +1 -1
- package/dist/src/libs/staticCampaigns.d.ts +1 -1
- package/dist/src/libs/tokens/balances.d.ts +1 -1
- package/dist/src/libs/tokens/tokenInfo.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +98 -33
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +41 -41
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +7 -7
- package/dist/src/modules/v4/apr/apr.model.d.ts +8 -8
- package/dist/src/modules/v4/apr/apr.service.d.ts +1 -1
- package/dist/src/modules/v4/authentication/authentication.controller.d.ts +24 -2
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +64 -37
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +4 -4
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +5 -5
- package/dist/src/modules/v4/boost/boost.controller.d.ts +25 -3
- package/dist/src/modules/v4/cache/cache.repository.d.ts +1 -1
- package/dist/src/modules/v4/cache/cache.service.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +665 -504
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +30 -9
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +192 -192
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +415 -319
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +352 -282
- package/dist/src/modules/v4/chain/chain.controller.d.ts +91 -47
- package/dist/src/modules/v4/chain/chain.model.d.ts +11 -3
- package/dist/src/modules/v4/chain/chain.repository.d.ts +10 -10
- package/dist/src/modules/v4/chain/chain.service.d.ts +10 -10
- package/dist/src/modules/v4/chainInteraction/chainInteraction.service.d.ts +1 -1
- package/dist/src/modules/v4/claims/claims.controller.d.ts +15 -2
- package/dist/src/modules/v4/claims/claims.repository.d.ts +1 -1
- package/dist/src/modules/v4/claims/claims.service.d.ts +3 -3
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +47 -7
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -2
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -2
- package/dist/src/modules/v4/creator/creator.controller.d.ts +160 -88
- package/dist/src/modules/v4/creator/creator.model.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.repository.d.ts +20 -20
- package/dist/src/modules/v4/creator/creator.service.d.ts +47 -47
- package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +1 -1
- package/dist/src/modules/v4/enso/enso.service.d.ts +17 -17
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +19 -6
- package/dist/src/modules/v4/explorer/explorer.model.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +5 -5
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +7 -7
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +39 -8
- package/dist/src/modules/v4/interaction/interaction.model.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.service.d.ts +2 -2
- package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +3 -3
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +24 -13
- package/dist/src/modules/v4/liquidity/liquidity.model.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/liquidity.repository.d.ts +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +42 -22
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +7 -7
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +18 -8
- package/dist/src/modules/v4/nodes/node.controller.d.ts +65 -0
- package/dist/src/modules/v4/nodes/node.model.d.ts +21 -0
- package/dist/src/modules/v4/nodes/node.repository.d.ts +21 -0
- package/dist/src/modules/v4/nodes/node.service.d.ts +21 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +741 -642
- package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +111 -5
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +113 -78
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +408 -408
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +489 -459
- package/dist/src/modules/v4/parse/parse.controller.d.ts +64 -0
- package/dist/src/modules/v4/parse/parse.model.d.ts +10 -0
- package/dist/src/modules/v4/payload/payload.controller.d.ts +125 -0
- package/dist/src/modules/v4/payload/payload.model.d.ts +307 -0
- package/dist/src/modules/v4/payload/payload.service.d.ts +27 -0
- package/dist/src/modules/v4/price/price.controller.d.ts +93 -50
- package/dist/src/modules/v4/price/price.model.d.ts +16 -16
- package/dist/src/modules/v4/price/price.repository.d.ts +11 -11
- package/dist/src/modules/v4/price/price.service.d.ts +9 -9
- package/dist/src/modules/v4/prisma/index.d.ts +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +939 -146
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +12 -14
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +450 -362
- package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +40 -19
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +117 -67
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +2 -2
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +29 -29
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -6
- package/dist/src/modules/v4/referral/referral.controller.d.ts +29 -7
- package/dist/src/modules/v4/referral/referral.service.d.ts +8 -8
- package/dist/src/modules/v4/reward/reward.controller.d.ts +261 -93
- package/dist/src/modules/v4/reward/reward.converter.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.model.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.repository.d.ts +55 -54
- package/dist/src/modules/v4/reward/reward.service.d.ts +260 -260
- package/dist/src/modules/v4/router.d.ts +4712 -2399
- package/dist/src/modules/v4/status/status.controller.d.ts +128 -64
- package/dist/src/modules/v4/status/status.model.d.ts +11 -10
- package/dist/src/modules/v4/status/status.repository.d.ts +35 -35
- package/dist/src/modules/v4/status/status.service.d.ts +23 -23
- package/dist/src/modules/v4/token/token.controller.d.ts +224 -130
- package/dist/src/modules/v4/token/token.model.d.ts +1 -1
- package/dist/src/modules/v4/token/token.repository.d.ts +41 -37
- package/dist/src/modules/v4/token/token.service.d.ts +106 -101
- package/dist/src/modules/v4/turtle/turtle.controller.d.ts +15 -2
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +5 -5
- package/dist/src/modules/v4/tvl/tvl.service.d.ts +1 -1
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +248 -11
- package/dist/src/modules/v4/uniswap/uniswap.model.d.ts +3 -3
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +4 -4
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +3 -3
- package/dist/src/modules/v4/user/user.controller.d.ts +175 -164
- package/dist/src/modules/v4/user/user.model.d.ts +10 -1
- package/dist/src/modules/v4/user/user.repository.d.ts +7 -7
- package/dist/src/modules/v4/user/user.service.d.ts +7 -7
- package/dist/src/plugins/error-handling.plugin.d.ts +7 -3
- package/dist/src/routes/v1/allowances.d.ts +18 -5
- package/dist/src/routes/v1/balances.d.ts +16 -3
- package/dist/src/routes/v1/prices.d.ts +15 -2
- package/dist/src/routes/v1/router.d.ts +44 -4
- package/dist/src/routes/v1/tokens.d.ts +15 -2
- package/dist/src/routes/v2/merkl.d.ts +41 -4
- package/dist/src/routes/v2/router.d.ts +41 -4
- package/dist/src/routes/v3/app.d.ts +15 -2
- package/dist/src/routes/v3/blacklist.d.ts +15 -2
- package/dist/src/routes/v3/campaign/delay.d.ts +27 -16
- package/dist/src/routes/v3/campaignClaims.d.ts +15 -2
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +15 -2
- package/dist/src/routes/v3/campaigns.d.ts +17 -4
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +15 -2
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +15 -2
- package/dist/src/routes/v3/claims.d.ts +15 -2
- package/dist/src/routes/v3/compoundV2.d.ts +15 -2
- package/dist/src/routes/v3/createCampaign.d.ts +16 -3
- package/dist/src/routes/v3/dolomite.d.ts +15 -2
- package/dist/src/routes/v3/euler.d.ts +43 -14
- package/dist/src/routes/v3/fetch.d.ts +15 -2
- package/dist/src/routes/v3/health.d.ts +15 -2
- package/dist/src/routes/v3/lostyield.d.ts +15 -2
- package/dist/src/routes/v3/merkl.d.ts +34 -6
- package/dist/src/routes/v3/morphoMarkets.d.ts +15 -2
- package/dist/src/routes/v3/morphoVaults.d.ts +15 -2
- package/dist/src/routes/v3/multiChainPositions.d.ts +15 -2
- package/dist/src/routes/v3/opportunity.d.ts +72 -6
- package/dist/src/routes/v3/overview.d.ts +15 -2
- package/dist/src/routes/v3/parse.d.ts +15 -2
- package/dist/src/routes/v3/payload.d.ts +19 -6
- package/dist/src/routes/v3/poolInfo.d.ts +18 -5
- package/dist/src/routes/v3/positions.d.ts +15 -2
- package/dist/src/routes/v3/radiant.d.ts +15 -2
- package/dist/src/routes/v3/recipients.d.ts +15 -2
- package/dist/src/routes/v3/rewards.d.ts +18 -5
- package/dist/src/routes/v3/rewardsReport.d.ts +16 -3
- package/dist/src/routes/v3/router.d.ts +608 -55
- package/dist/src/routes/v3/silo.d.ts +15 -2
- package/dist/src/routes/v3/token.d.ts +16 -3
- package/dist/src/routes/v3/twt/participants.d.ts +24 -13
- package/dist/src/routes/v3/uniswapv4.d.ts +192 -19
- package/dist/src/routes/v3/updates.d.ts +15 -2
- package/dist/src/routes/v3/userRewards.d.ts +18 -5
- package/dist/src/utils/decodeCalls.d.ts +1 -1
- package/dist/src/utils/encodeCalls.d.ts +2 -2
- package/dist/src/utils/error.d.ts +8 -4
- package/dist/src/utils/generateCardName.d.ts +2 -2
- package/dist/src/utils/generic.d.ts +2 -2
- package/dist/src/utils/lastBlockBefore.d.ts +1 -1
- package/dist/src/utils/logger.d.ts +0 -8
- package/dist/src/utils/pricer.d.ts +5 -2
- package/dist/src/utils/prices/chainlinkRead.d.ts +1 -1
- package/dist/src/utils/prices/curveVirtualPrice.d.ts +1 -1
- package/dist/src/utils/prices/getDQUICK.d.ts +1 -1
- package/dist/src/utils/prices/priceFetcherFactory.d.ts +1 -1
- package/dist/src/utils/prices/services/OnChainCallService.d.ts +1 -1
- package/dist/src/utils/prices/services/coinGeckoService.d.ts +1 -1
- package/dist/src/utils/prices/services/defillamaService.d.ts +1 -1
- package/dist/src/utils/prices/services/dexScreenerService.d.ts +1 -1
- package/dist/src/utils/prices/services/erc4626Service.d.ts +1 -1
- package/dist/src/utils/prices/services/getERC4626.d.ts +1 -1
- package/dist/src/utils/prices/services/indexCoopService.d.ts +1 -1
- package/dist/src/utils/prices/services/priceFetcher.d.ts +1 -1
- package/dist/src/utils/prices/uniV2Price.d.ts +1 -1
- package/dist/src/utils/providers.d.ts +113 -2
- package/dist/src/utils/queries/allCampaigns.d.ts +1 -2
- package/dist/src/utils/sanitizeChain.d.ts +2 -2
- package/dist/src/utils/stryke.d.ts +1 -1
- package/dist/src/utils/throw.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +32 -49
- package/dist/database/api/.generated/default.d.ts +0 -1
- package/dist/database/api/.generated/default.js +0 -1
- package/dist/database/api/.generated/drizzle/schema.d.ts +0 -3342
- package/dist/database/api/.generated/drizzle/schema.js +0 -928
- package/dist/database/api/.generated/drizzle/schema.ts +0 -989
- package/dist/database/api/.generated/edge.d.ts +0 -1
- package/dist/database/api/.generated/edge.js +0 -725
- package/dist/database/api/.generated/index-browser.js +0 -696
- package/dist/database/api/.generated/index.d.ts +0 -48645
- package/dist/database/api/.generated/index.js +0 -758
- package/dist/database/api/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +0 -97
- package/dist/database/api/.generated/runtime/edge-esm.js +0 -31
- package/dist/database/api/.generated/runtime/edge.js +0 -31
- package/dist/database/api/.generated/runtime/index-browser.d.ts +0 -365
- package/dist/database/api/.generated/runtime/index-browser.js +0 -13
- package/dist/database/api/.generated/runtime/library.d.ts +0 -3447
- package/dist/database/api/.generated/runtime/library.js +0 -143
- package/dist/database/api/.generated/runtime/react-native.js +0 -80
- package/dist/database/api/.generated/runtime/wasm.js +0 -32
- package/dist/database/api/.generated/schema.prisma +0 -482
- package/dist/database/api/.generated/wasm.d.ts +0 -1
- package/dist/database/api/.generated/wasm.js +0 -696
- package/dist/database/engine/.generated/default.d.ts +0 -1
- package/dist/database/engine/.generated/default.js +0 -1
- package/dist/database/engine/.generated/edge.d.ts +0 -1
- package/dist/database/engine/.generated/edge.js +0 -485
- package/dist/database/engine/.generated/index-browser.js +0 -456
- package/dist/database/engine/.generated/index.d.ts +0 -22107
- package/dist/database/engine/.generated/index.js +0 -518
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +0 -97
- package/dist/database/engine/.generated/runtime/edge-esm.js +0 -31
- package/dist/database/engine/.generated/runtime/edge.js +0 -31
- package/dist/database/engine/.generated/runtime/index-browser.d.ts +0 -365
- package/dist/database/engine/.generated/runtime/index-browser.js +0 -13
- package/dist/database/engine/.generated/runtime/library.d.ts +0 -3447
- package/dist/database/engine/.generated/runtime/library.js +0 -143
- package/dist/database/engine/.generated/runtime/react-native.js +0 -80
- package/dist/database/engine/.generated/runtime/wasm.js +0 -32
- package/dist/database/engine/.generated/schema.prisma +0 -248
- package/dist/database/engine/.generated/wasm.d.ts +0 -1
- package/dist/database/engine/.generated/wasm.js +0 -456
- package/dist/database/index.d.ts +0 -29
- package/dist/database/index.js +0 -17
- package/dist/src/cache/declaration.js +0 -121
- package/dist/src/cache/index.js +0 -161
- package/dist/src/cache/redis.js +0 -57
- package/dist/src/constants.js +0 -93
- package/dist/src/engine/deprecated/dynamicData/implementations/Ajna.js +0 -107
- package/dist/src/engine/deprecated/dynamicData/implementations/Badger.js +0 -90
- package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.js +0 -975
- package/dist/src/engine/deprecated/dynamicData/implementations/Compound.js +0 -139
- package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.js +0 -101
- package/dist/src/engine/deprecated/dynamicData/implementations/Dolomite.js +0 -59
- package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.js +0 -87
- package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.js +0 -161
- package/dist/src/engine/deprecated/dynamicData/implementations/EigenLayer.js +0 -67
- package/dist/src/engine/deprecated/dynamicData/implementations/Encompassing.js +0 -26
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.js +0 -162
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20Snapshot.js +0 -32
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +0 -129
- package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.js +0 -112
- package/dist/src/engine/deprecated/dynamicData/implementations/Morpho.js +0 -132
- package/dist/src/engine/deprecated/dynamicData/implementations/Radiant.js +0 -123
- package/dist/src/engine/deprecated/dynamicData/implementations/Silo.js +0 -112
- package/dist/src/engine/deprecated/dynamicData/implementations/UniswapV4.js +0 -255
- package/dist/src/engine/deprecated/dynamicData/implementations/Vest.js +0 -61
- package/dist/src/engine/deprecated/dynamicData/implementations/default.js +0 -5
- package/dist/src/engine/deprecated/dynamicData/utils/fetchA51Strategies.js +0 -44
- package/dist/src/engine/deprecated/dynamicData/utils/fetchClamInfo.js +0 -27
- package/dist/src/engine/deprecated/dynamicData/utils/fetchLogs.js +0 -149
- package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.js +0 -141
- package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.js +0 -44
- package/dist/src/engine/deprecated/dynamicData/utils/getDolomiteMarkets.js +0 -53
- package/dist/src/engine/deprecated/dynamicData/utils/getEulerV2Vaults.js +0 -266
- package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.js +0 -27
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.js +0 -335
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/eulerVaultNames.js +0 -13
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.js +0 -47
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getBlacklistedSupply.js +0 -22
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getCrossCurveTokenPrice.js +0 -13
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.js +0 -30
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/metamorphoTvl.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/metamorphoTvl.js +0 -35
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.js +0 -16
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/spliceTVL.js +0 -23
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/treasuryFinder.js +0 -10
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.js +0 -26
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.js +0 -51
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AssetProcessor.js +0 -48
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.js +0 -113
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.js +0 -111
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.js +0 -86
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.js +0 -101
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.js +0 -81
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BeefyProcessor.js +0 -54
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BunniV2Processor.js +0 -91
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.js +0 -37
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ERC4626Processor.js +0 -37
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EnzymeProcessor.js +0 -52
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.js +0 -54
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.js +0 -51
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.js +0 -58
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.js +0 -37
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FraxProcessor.js +0 -42
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaALMProcessor.js +0 -52
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaProcessor.js +0 -67
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.js +0 -58
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.js +0 -63
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HoldStationProcessor.js +0 -35
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.js +0 -35
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MaverickBPProcessor.js +0 -78
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.js +0 -48
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.js +0 -82
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleProcessor.js +0 -30
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.js +0 -30
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.js +0 -59
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.js +0 -71
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.js +0 -28
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraProcessor.js +0 -42
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraYTProcessor.js +0 -40
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.js +0 -37
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.js +0 -30
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.js +0 -38
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TempestVaultProcessor.js +0 -83
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.js +0 -40
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.js +0 -34
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.js +0 -72
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/VicunaProcessor.js +0 -36
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.js +0 -41
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.js +0 -60
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.js +0 -102
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.js +0 -85
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.js +0 -159
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.js +0 -88
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.js +0 -42
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.js +0 -28
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.js +0 -353
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound2.js +0 -22
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound3.js +0 -22
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound4.js +0 -22
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeStruct.js +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.js +0 -155
- package/dist/src/engine/implementations/Ajna/metadata.js +0 -59
- package/dist/src/engine/implementations/Ajna/tvl.js +0 -91
- package/dist/src/engine/implementations/Ambient/metadata.js +0 -36
- package/dist/src/engine/implementations/Ambient/tvl.js +0 -178
- package/dist/src/engine/implementations/Badger/metadata.js +0 -31
- package/dist/src/engine/implementations/Clamm/metadata.js +0 -176
- package/dist/src/engine/implementations/Compound/metadata.js +0 -23
- package/dist/src/engine/implementations/CompoundV3/metadata.js +0 -23
- package/dist/src/engine/implementations/Default/metadata.js +0 -12
- package/dist/src/engine/implementations/Dolomite/metadata.js +0 -20
- package/dist/src/engine/implementations/EigenLayer/metadata.js +0 -12
- package/dist/src/engine/implementations/EigenLayer/tvl.js +0 -60
- package/dist/src/engine/implementations/Encompassing/metadata.js +0 -43
- package/dist/src/engine/implementations/Erc20/metadata.js +0 -64
- package/dist/src/engine/implementations/Erc20/subTypes/detect.js +0 -170
- package/dist/src/engine/implementations/Erc20/subTypes/factories.js +0 -69
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.js +0 -46
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/tvl.js +0 -51
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.js +0 -35
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.js +0 -59
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.js +0 -21
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.js +0 -46
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.js +0 -40
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/tvl.js +0 -57
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.js +0 -20
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.js +0 -52
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.js +0 -38
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.js +0 -83
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.js +0 -24
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/tvl.js +0 -69
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.js +0 -65
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.js +0 -94
- package/dist/src/engine/implementations/Erc20/subTypes/index.js +0 -119
- package/dist/src/engine/implementations/Erc20/tvl.js +0 -99
- package/dist/src/engine/implementations/Erc20Snapshot/metadata.js +0 -11
- package/dist/src/engine/implementations/Erc721/metadata.js +0 -13
- package/dist/src/engine/implementations/ErcMultiToken/metadata.js +0 -63
- package/dist/src/engine/implementations/EventBased/metadata.js +0 -181
- package/dist/src/engine/implementations/Hyperdrive/metadata.js +0 -29
- package/dist/src/engine/implementations/Invalid/metadata.js +0 -10
- package/dist/src/engine/implementations/Ion/metadata.js +0 -16
- package/dist/src/engine/implementations/JsonAirdrop/metadata.js +0 -43
- package/dist/src/engine/implementations/Locker/metadata.js +0 -36
- package/dist/src/engine/implementations/Locker/tvl.js +0 -26
- package/dist/src/engine/implementations/Morpho/metadata.js +0 -63
- package/dist/src/engine/implementations/MultiLog/metadata.js +0 -36
- package/dist/src/engine/implementations/MultiLog/tvl.js +0 -59
- package/dist/src/engine/implementations/Radiant/metadata.js +0 -33
- package/dist/src/engine/implementations/Silo/metadata.js +0 -20
- package/dist/src/engine/implementations/UniswapV4/metadata.js +0 -36
- package/dist/src/engine/implementations/UniswapV4/tvl.js +0 -158
- package/dist/src/engine/implementations/Vest/metadata.js +0 -13
- package/dist/src/engine/metadata/factory.js +0 -76
- package/dist/src/engine/tvl/factory.js +0 -87
- package/dist/src/engine/tvl/logStates.js +0 -106
- package/dist/src/errors/BadRequest.error.js +0 -7
- package/dist/src/errors/Conflict.error.js +0 -7
- package/dist/src/errors/HttpError.js +0 -17
- package/dist/src/errors/InvalidParameter.error.js +0 -7
- package/dist/src/errors/NotFound.error.js +0 -12
- package/dist/src/errors/Opportunity.error.js +0 -11
- package/dist/src/errors/UnableToFindPrice.error.js +0 -7
- package/dist/src/errors/Unauthorized.error.js +0 -7
- package/dist/src/errors/VoidString.error.js +0 -7
- package/dist/src/errors/index.js +0 -6
- package/dist/src/guards/BackOffice.guard.js +0 -10
- package/dist/src/guards/Engine.guard.js +0 -9
- package/dist/src/guards/TokenAuth.guard.js +0 -10
- package/dist/src/guards/VerifyJwt.guard.js +0 -13
- package/dist/src/hooks/checkQueryAddressValidity.js +0 -7
- package/dist/src/hooks/checkQueryChainIdValidity.js +0 -7
- package/dist/src/index.js +0 -113
- package/dist/src/jobs/dynamic-data.js +0 -159
- package/dist/src/jobs/pendings.js +0 -238
- package/dist/src/jobs/prices.js +0 -10
- package/dist/src/jobs/reward-breakdowns.js +0 -163
- package/dist/src/jobs/rewards.js +0 -112
- package/dist/src/jobs/set-dungeon-keeper.js +0 -90
- package/dist/src/jobs/update-analytics.js +0 -548
- package/dist/src/jobs/update-dynamic-data.js +0 -57
- package/dist/src/jobs/update-euler-vaults.js +0 -18
- package/dist/src/jobs/update-rpc-calls-cache.js +0 -30
- package/dist/src/jobs/update-uniswap-v4-pools.js +0 -15
- package/dist/src/libs/computeFee.js +0 -34
- package/dist/src/libs/deprecated-merklv3/index.js +0 -183
- package/dist/src/libs/getTokensList.js +0 -19
- package/dist/src/libs/merklChainData.js +0 -116
- package/dist/src/libs/parse/marketsWithCache.js +0 -8
- package/dist/src/libs/positions/EigenLayer/index.js +0 -54
- package/dist/src/libs/positions/ajna/index.js +0 -107
- package/dist/src/libs/positions/badger/index.js +0 -80
- package/dist/src/libs/positions/clamm/index.js +0 -412
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js +0 -36
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js +0 -36
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +0 -42
- package/dist/src/libs/positions/clamm/thegraph/index.js +0 -163
- package/dist/src/libs/positions/compound/index.js +0 -91
- package/dist/src/libs/positions/dolomite/index.js +0 -51
- package/dist/src/libs/positions/erc20/index.js +0 -55
- package/dist/src/libs/positions/euler/index.js +0 -56
- package/dist/src/libs/positions/index.js +0 -56
- package/dist/src/libs/positions/morpho/index.js +0 -177
- package/dist/src/libs/positions/prepareFetch.js +0 -392
- package/dist/src/libs/positions/silo/index.js +0 -68
- package/dist/src/libs/positions/types.js +0 -1
- package/dist/src/libs/staticCampaigns.js +0 -15
- package/dist/src/libs/tokens/allowances.js +0 -18
- package/dist/src/libs/tokens/balances.js +0 -128
- package/dist/src/libs/tokens/tokenInfo.js +0 -22
- package/dist/src/modules/v4/accounting/accounting.controller.js +0 -61
- package/dist/src/modules/v4/accounting/accounting.model.js +0 -32
- package/dist/src/modules/v4/accounting/accounting.repository.js +0 -154
- package/dist/src/modules/v4/accounting/accounting.service.js +0 -107
- package/dist/src/modules/v4/airflow/airflow.service.js +0 -20
- package/dist/src/modules/v4/apr/apr.model.js +0 -13
- package/dist/src/modules/v4/apr/apr.service.js +0 -52
- package/dist/src/modules/v4/authentication/authentication.controller.js +0 -23
- package/dist/src/modules/v4/authentication/authentication.model.js +0 -6
- package/dist/src/modules/v4/authentication/authentication.service.js +0 -31
- package/dist/src/modules/v4/blacklist/blacklist.controller.js +0 -42
- package/dist/src/modules/v4/blacklist/blacklist.model.js +0 -13
- package/dist/src/modules/v4/blacklist/blacklist.repository.js +0 -50
- package/dist/src/modules/v4/blacklist/blacklist.service.js +0 -31
- package/dist/src/modules/v4/boost/boost.controller.js +0 -15
- package/dist/src/modules/v4/boost/boost.model.js +0 -14
- package/dist/src/modules/v4/boost/boost.service.js +0 -20
- package/dist/src/modules/v4/bucket/bucket.model.js +0 -85
- package/dist/src/modules/v4/bucket/bucket.service.js +0 -178
- package/dist/src/modules/v4/cache/cache.model.js +0 -14
- package/dist/src/modules/v4/cache/cache.repository.js +0 -22
- package/dist/src/modules/v4/cache/cache.service.js +0 -59
- package/dist/src/modules/v4/campaign/campaign.controller.js +0 -174
- package/dist/src/modules/v4/campaign/campaign.model.js +0 -140
- package/dist/src/modules/v4/campaign/campaign.repository.js +0 -535
- package/dist/src/modules/v4/campaign/campaign.service.js +0 -455
- package/dist/src/modules/v4/campaign/campaign.test.controller.js +0 -127
- package/dist/src/modules/v4/chain/chain.controller.js +0 -44
- package/dist/src/modules/v4/chain/chain.model.js +0 -36
- package/dist/src/modules/v4/chain/chain.repository.js +0 -79
- package/dist/src/modules/v4/chain/chain.service.js +0 -55
- package/dist/src/modules/v4/chainInteraction/chainInteraction.service.js +0 -4
- package/dist/src/modules/v4/claims/claims.controller.js +0 -19
- package/dist/src/modules/v4/claims/claims.model.js +0 -1
- package/dist/src/modules/v4/claims/claims.repository.js +0 -39
- package/dist/src/modules/v4/claims/claims.service.js +0 -40
- package/dist/src/modules/v4/coingecko/coingecko.model.js +0 -1
- package/dist/src/modules/v4/coingecko/coingecko.repository.js +0 -9
- package/dist/src/modules/v4/coingecko/coingecko.service.js +0 -65
- package/dist/src/modules/v4/computedValue/computedValue.controller.js +0 -46
- package/dist/src/modules/v4/computedValue/computedValue.model.js +0 -30
- package/dist/src/modules/v4/computedValue/computedValue.repository.js +0 -48
- package/dist/src/modules/v4/computedValue/computedValue.service.js +0 -23
- package/dist/src/modules/v4/creator/creator.controller.js +0 -43
- package/dist/src/modules/v4/creator/creator.model.js +0 -42
- package/dist/src/modules/v4/creator/creator.repository.js +0 -69
- package/dist/src/modules/v4/creator/creator.service.js +0 -92
- package/dist/src/modules/v4/dynamicData/dynamicData.model.js +0 -56
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +0 -263
- package/dist/src/modules/v4/enso/enso.model.js +0 -147
- package/dist/src/modules/v4/enso/enso.service.js +0 -116
- package/dist/src/modules/v4/explorer/explorer.controller.js +0 -13
- package/dist/src/modules/v4/explorer/explorer.model.js +0 -8
- package/dist/src/modules/v4/explorer/explorer.repository.js +0 -23
- package/dist/src/modules/v4/explorer/explorer.service.js +0 -24
- package/dist/src/modules/v4/icon/icon.model.js +0 -1
- package/dist/src/modules/v4/icon/icon.service.js +0 -16
- package/dist/src/modules/v4/interaction/interaction.controller.js +0 -45
- package/dist/src/modules/v4/interaction/interaction.model.js +0 -25
- package/dist/src/modules/v4/interaction/interaction.service.js +0 -95
- package/dist/src/modules/v4/kyberzap/kyberzap.model.js +0 -83
- package/dist/src/modules/v4/kyberzap/kyberzap.service.js +0 -176
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.js +0 -90
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.js +0 -69
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.js +0 -61
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.js +0 -45
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.js +0 -47
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.js +0 -40
- package/dist/src/modules/v4/liquidity/liquidity.controller.js +0 -16
- package/dist/src/modules/v4/liquidity/liquidity.model.js +0 -5
- package/dist/src/modules/v4/liquidity/liquidity.repository.js +0 -6
- package/dist/src/modules/v4/liquidity/liquidity.service.js +0 -34
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +0 -31
- package/dist/src/modules/v4/merklRoot/merklRoot.model.js +0 -12
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.js +0 -56
- package/dist/src/modules/v4/merklRoot/merklRoot.service.js +0 -48
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +0 -189
- package/dist/src/modules/v4/opportunity/opportunity.converter.js +0 -174
- package/dist/src/modules/v4/opportunity/opportunity.model.js +0 -132
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +0 -515
- package/dist/src/modules/v4/opportunity/opportunity.service.js +0 -380
- package/dist/src/modules/v4/opportunity/transform-id.pipe.js +0 -6
- package/dist/src/modules/v4/opportunity/validate-id.pipe.js +0 -12
- package/dist/src/modules/v4/price/price.controller.js +0 -56
- package/dist/src/modules/v4/price/price.model.js +0 -12
- package/dist/src/modules/v4/price/price.repository.js +0 -22
- package/dist/src/modules/v4/price/price.service.js +0 -63
- package/dist/src/modules/v4/prisma/index.js +0 -1
- package/dist/src/modules/v4/programPayload/programPayload.controller.js +0 -85
- package/dist/src/modules/v4/programPayload/programPayload.model.js +0 -179
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +0 -7567
- package/dist/src/modules/v4/programPayload/programPayload.service.js +0 -240
- package/dist/src/modules/v4/protocol/protocol.controller.js +0 -42
- package/dist/src/modules/v4/protocol/protocol.model.js +0 -186
- package/dist/src/modules/v4/protocol/protocol.repository.js +0 -175
- package/dist/src/modules/v4/protocol/protocol.service.js +0 -73
- package/dist/src/modules/v4/referral/referral.controller.js +0 -25
- package/dist/src/modules/v4/referral/referral.model.js +0 -12
- package/dist/src/modules/v4/referral/referral.service.js +0 -171
- package/dist/src/modules/v4/reward/reward.controller.js +0 -140
- package/dist/src/modules/v4/reward/reward.converter.js +0 -124
- package/dist/src/modules/v4/reward/reward.model.js +0 -153
- package/dist/src/modules/v4/reward/reward.repository.js +0 -350
- package/dist/src/modules/v4/reward/reward.service.js +0 -406
- package/dist/src/modules/v4/router.js +0 -93
- package/dist/src/modules/v4/status/status.controller.js +0 -68
- package/dist/src/modules/v4/status/status.model.js +0 -34
- package/dist/src/modules/v4/status/status.repository.js +0 -146
- package/dist/src/modules/v4/status/status.service.js +0 -150
- package/dist/src/modules/v4/token/token.controller.js +0 -118
- package/dist/src/modules/v4/token/token.model.js +0 -87
- package/dist/src/modules/v4/token/token.repository.js +0 -192
- package/dist/src/modules/v4/token/token.service.js +0 -410
- package/dist/src/modules/v4/tracer/tracer.service.js +0 -30
- package/dist/src/modules/v4/turtle/turtle.controller.js +0 -20
- package/dist/src/modules/v4/turtle/turtle.repository.js +0 -40
- package/dist/src/modules/v4/turtle/turtle.service.js +0 -28
- package/dist/src/modules/v4/tvl/tvl.model.js +0 -13
- package/dist/src/modules/v4/tvl/tvl.service.js +0 -63
- package/dist/src/modules/v4/uniswap/uniswap.controller.js +0 -100
- package/dist/src/modules/v4/uniswap/uniswap.model.js +0 -46
- package/dist/src/modules/v4/uniswap/uniswap.repository.js +0 -12
- package/dist/src/modules/v4/uniswap/uniswap.service.js +0 -245
- package/dist/src/modules/v4/user/user.controller.js +0 -77
- package/dist/src/modules/v4/user/user.model.js +0 -66
- package/dist/src/modules/v4/user/user.repository.js +0 -41
- package/dist/src/modules/v4/user/user.service.js +0 -102
- package/dist/src/plugins/error-handling.plugin.js +0 -34
- package/dist/src/routes/v1/allowances.js +0 -115
- package/dist/src/routes/v1/balances.js +0 -25
- package/dist/src/routes/v1/prices.js +0 -9
- package/dist/src/routes/v1/router.js +0 -6
- package/dist/src/routes/v1/tokens.js +0 -17
- package/dist/src/routes/v2/merkl.js +0 -13
- package/dist/src/routes/v2/router.js +0 -3
- package/dist/src/routes/v3/app.js +0 -43
- package/dist/src/routes/v3/blacklist.js +0 -19
- package/dist/src/routes/v3/campaign/delay.js +0 -81
- package/dist/src/routes/v3/campaignClaims.js +0 -29
- package/dist/src/routes/v3/campaignUnclaimed.js +0 -28
- package/dist/src/routes/v3/campaigns.js +0 -136
- package/dist/src/routes/v3/campaignsForMainParameter.js +0 -33
- package/dist/src/routes/v3/campaignsRewardsReport.js +0 -48
- package/dist/src/routes/v3/claims.js +0 -16
- package/dist/src/routes/v3/compoundV2.js +0 -9
- package/dist/src/routes/v3/createCampaign.js +0 -66
- package/dist/src/routes/v3/dolomite.js +0 -12
- package/dist/src/routes/v3/euler.js +0 -52
- package/dist/src/routes/v3/fetch.js +0 -27
- package/dist/src/routes/v3/health.js +0 -13
- package/dist/src/routes/v3/lostyield.js +0 -101
- package/dist/src/routes/v3/merkl.js +0 -119
- package/dist/src/routes/v3/morphoMarkets.js +0 -27
- package/dist/src/routes/v3/morphoVaults.js +0 -22
- package/dist/src/routes/v3/multiChainPositions.js +0 -70
- package/dist/src/routes/v3/opportunity.js +0 -28
- package/dist/src/routes/v3/overview.js +0 -72
- package/dist/src/routes/v3/parse.js +0 -23
- package/dist/src/routes/v3/payload.js +0 -40
- package/dist/src/routes/v3/poolInfo.js +0 -88
- package/dist/src/routes/v3/positions.js +0 -62
- package/dist/src/routes/v3/radiant.js +0 -26
- package/dist/src/routes/v3/recipients.js +0 -29
- package/dist/src/routes/v3/rewards.js +0 -36
- package/dist/src/routes/v3/rewardsReport.js +0 -40
- package/dist/src/routes/v3/router.js +0 -70
- package/dist/src/routes/v3/silo.js +0 -20
- package/dist/src/routes/v3/token.js +0 -24
- package/dist/src/routes/v3/twt/participants.js +0 -63
- package/dist/src/routes/v3/uniswapv4.js +0 -29
- package/dist/src/routes/v3/updates.js +0 -47
- package/dist/src/routes/v3/userRewards.js +0 -63
- package/dist/src/scripts/fill-coingecko-data.js +0 -3
- package/dist/src/scripts/fill-descriptions.js +0 -101
- package/dist/src/scripts/fill-unknown-tokens.js +0 -58
- package/dist/src/scripts/reparse-opportunities.js +0 -75
- package/dist/src/types/external/spectraAPI.js +0 -1
- package/dist/src/types/index.js +0 -1
- package/dist/src/utils/TailSampler.js +0 -23
- package/dist/src/utils/bigintToString.js +0 -20
- package/dist/src/utils/caseChanges.js +0 -15
- package/dist/src/utils/decodeCalls.js +0 -340
- package/dist/src/utils/encodeCalls.js +0 -506
- package/dist/src/utils/error.js +0 -114
- package/dist/src/utils/execute.js +0 -117
- package/dist/src/utils/generateCardName.js +0 -209
- package/dist/src/utils/generic.js +0 -43
- package/dist/src/utils/hashArray.js +0 -7
- package/dist/src/utils/lastBlockBefore.js +0 -78
- package/dist/src/utils/logger.js +0 -52
- package/dist/src/utils/parseDistributionType.js +0 -16
- package/dist/src/utils/pricer.js +0 -189
- package/dist/src/utils/prices/chainlinkRead.js +0 -8
- package/dist/src/utils/prices/curveVirtualPrice.js +0 -7
- package/dist/src/utils/prices/getDQUICK.js +0 -8
- package/dist/src/utils/prices/priceFetcherFactory.js +0 -32
- package/dist/src/utils/prices/priceService.js +0 -274
- package/dist/src/utils/prices/services/OnChainCallService.js +0 -38
- package/dist/src/utils/prices/services/coinGeckoService.js +0 -63
- package/dist/src/utils/prices/services/defillamaService.js +0 -53
- package/dist/src/utils/prices/services/dexScreenerService.js +0 -62
- package/dist/src/utils/prices/services/erc4626Service.js +0 -38
- package/dist/src/utils/prices/services/getERC4626.js +0 -11
- package/dist/src/utils/prices/services/indexCoopService.js +0 -55
- package/dist/src/utils/prices/services/priceFetcher.js +0 -1
- package/dist/src/utils/prices/uniV2Price.js +0 -40
- package/dist/src/utils/providers.js +0 -37
- package/dist/src/utils/queries/allCampaigns.js +0 -12
- package/dist/src/utils/sanitizeChain.js +0 -6
- package/dist/src/utils/stryke.js +0 -4
- package/dist/src/utils/throw.js +0 -55
- package/dist/tsconfig.package.tsbuildinfo +0 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
import type
|
2
|
-
import type
|
3
|
-
import type {
|
4
|
-
import type {
|
5
|
-
import
|
6
|
-
import {
|
1
|
+
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import { type Prisma, Status } from "@package/databases/api";
|
3
|
+
import type { AprRecord } from "#modules/v4/apr/apr.model";
|
4
|
+
import type { Campaign } from "#modules/v4/campaign/campaign.model";
|
5
|
+
import type { DailyRewardsRecord } from "#modules/v4/reward/reward.model";
|
6
|
+
import type { TvlRecord } from "#modules/v4/tvl/tvl.model";
|
7
7
|
import type { CreateOpportunityModel, GetOpportunitiesQueryModel, Opportunity } from "./opportunity.model";
|
8
8
|
export declare abstract class OpportunityRepository {
|
9
9
|
#private;
|
@@ -13,358 +13,358 @@ export declare abstract class OpportunityRepository {
|
|
13
13
|
Tokens: {
|
14
14
|
symbol: string;
|
15
15
|
name: string | null;
|
16
|
-
|
17
|
-
|
16
|
+
decimals: number;
|
17
|
+
price: number | null;
|
18
18
|
address: string;
|
19
|
+
id: string;
|
19
20
|
chainId: number;
|
20
|
-
|
21
|
-
|
22
|
-
verified: boolean;
|
23
|
-
isTest: boolean;
|
21
|
+
icon: string;
|
22
|
+
isNative: boolean;
|
24
23
|
isPoint: boolean;
|
25
24
|
isPreTGE: boolean;
|
26
|
-
|
27
|
-
|
25
|
+
isTest: boolean;
|
26
|
+
verified: boolean;
|
27
|
+
displaySymbol: string;
|
28
28
|
}[];
|
29
29
|
Protocols: {
|
30
|
-
url: string;
|
31
30
|
name: string;
|
32
31
|
description: string;
|
33
32
|
id: string;
|
34
|
-
|
33
|
+
url: string;
|
35
34
|
icon: string;
|
35
|
+
tags: string[];
|
36
36
|
}[];
|
37
37
|
} & {
|
38
|
-
status: import("@db/api").$Enums.Status;
|
39
|
-
type: string;
|
40
38
|
name: string;
|
39
|
+
apr: number;
|
40
|
+
tvl: number;
|
41
41
|
description: string;
|
42
42
|
id: string;
|
43
|
-
|
44
|
-
identifier: string;
|
45
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
46
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
43
|
+
status: import("@package/databases").Status;
|
47
44
|
chainId: number;
|
48
|
-
|
45
|
+
action: import("@package/databases").OpportunityAction;
|
46
|
+
type: string;
|
49
47
|
depositUrl: string | null;
|
50
48
|
explorerAddress: string | null;
|
49
|
+
howToSteps: string[];
|
51
50
|
mainProtocolId: string | null;
|
52
|
-
|
53
|
-
|
51
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
52
|
+
identifier: string;
|
54
53
|
dailyRewards: number;
|
54
|
+
tags: string[];
|
55
55
|
lastCampaignCreatedAt: Date;
|
56
56
|
}>;
|
57
57
|
static findUnique(id: string): Promise<({
|
58
|
-
Chain: {
|
59
|
-
name: string;
|
60
|
-
id: number;
|
61
|
-
icon: string;
|
62
|
-
};
|
63
58
|
Campaigns: ({
|
64
59
|
RewardToken: {
|
65
60
|
symbol: string;
|
66
61
|
name: string | null;
|
67
|
-
|
68
|
-
|
62
|
+
decimals: number;
|
63
|
+
price: number | null;
|
69
64
|
address: string;
|
65
|
+
id: string;
|
70
66
|
chainId: number;
|
71
|
-
|
72
|
-
|
73
|
-
verified: boolean;
|
74
|
-
isTest: boolean;
|
67
|
+
icon: string;
|
68
|
+
isNative: boolean;
|
75
69
|
isPoint: boolean;
|
76
70
|
isPreTGE: boolean;
|
77
|
-
|
78
|
-
|
71
|
+
isTest: boolean;
|
72
|
+
verified: boolean;
|
73
|
+
displaySymbol: string;
|
79
74
|
};
|
80
75
|
} & {
|
81
|
-
|
76
|
+
campaignId: string;
|
82
77
|
description: string | null;
|
83
78
|
id: string;
|
84
|
-
params:
|
85
|
-
subType: number | null;
|
86
|
-
computeChainId: number;
|
87
|
-
distributionChainId: number;
|
88
|
-
campaignId: string;
|
89
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
90
|
-
rewardTokenId: string;
|
79
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
91
80
|
amount: string;
|
92
|
-
opportunityId: string;
|
93
81
|
startTimestamp: bigint;
|
82
|
+
type: string;
|
83
|
+
computeChainId: number;
|
84
|
+
distributionChainId: number;
|
94
85
|
endTimestamp: bigint;
|
86
|
+
opportunityId: string;
|
95
87
|
creatorAddress: string;
|
96
|
-
|
88
|
+
distributionType: import("@package/databases").DistributionType;
|
89
|
+
subType: number | null;
|
90
|
+
rewardTokenId: string;
|
91
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
97
92
|
createdAt: Date;
|
98
93
|
rootCampaignId: string | null;
|
99
94
|
parentCampaignId: string | null;
|
100
95
|
})[];
|
96
|
+
Chain: {
|
97
|
+
name: string;
|
98
|
+
id: number;
|
99
|
+
icon: string;
|
100
|
+
};
|
101
101
|
Tokens: {
|
102
102
|
symbol: string;
|
103
103
|
name: string | null;
|
104
|
-
|
105
|
-
|
104
|
+
decimals: number;
|
105
|
+
price: number | null;
|
106
106
|
address: string;
|
107
|
+
id: string;
|
107
108
|
chainId: number;
|
108
|
-
|
109
|
-
|
110
|
-
verified: boolean;
|
111
|
-
isTest: boolean;
|
109
|
+
icon: string;
|
110
|
+
isNative: boolean;
|
112
111
|
isPoint: boolean;
|
113
112
|
isPreTGE: boolean;
|
114
|
-
|
115
|
-
|
113
|
+
isTest: boolean;
|
114
|
+
verified: boolean;
|
115
|
+
displaySymbol: string;
|
116
116
|
}[];
|
117
117
|
Protocols: {
|
118
|
-
url: string;
|
119
118
|
name: string;
|
120
119
|
description: string;
|
121
120
|
id: string;
|
122
|
-
|
121
|
+
url: string;
|
123
122
|
icon: string;
|
123
|
+
tags: string[];
|
124
124
|
}[];
|
125
125
|
MainProtocol: {
|
126
|
-
url: string;
|
127
126
|
name: string;
|
128
127
|
description: string;
|
129
128
|
id: string;
|
130
|
-
|
129
|
+
url: string;
|
131
130
|
icon: string;
|
131
|
+
tags: string[];
|
132
132
|
} | null;
|
133
133
|
TvlRecords: ({
|
134
134
|
TvlBreakdown: {
|
135
|
-
type: import("@db/api").$Enums.TvlType;
|
136
|
-
identifier: string;
|
137
135
|
value: number;
|
136
|
+
type: import("@package/databases").TvlType;
|
137
|
+
identifier: string;
|
138
138
|
}[];
|
139
139
|
} & {
|
140
|
-
total: number;
|
141
140
|
id: string;
|
142
|
-
opportunityId: string;
|
143
141
|
timestamp: bigint;
|
142
|
+
opportunityId: string;
|
143
|
+
total: number;
|
144
144
|
})[];
|
145
145
|
AprRecords: ({
|
146
146
|
AprBreakdown: {
|
147
|
-
type: import("@db/api").$Enums.AprType;
|
148
|
-
identifier: string;
|
149
147
|
value: number;
|
148
|
+
type: import("@package/databases").AprType;
|
149
|
+
identifier: string;
|
150
150
|
}[];
|
151
151
|
} & {
|
152
152
|
id: string;
|
153
|
-
opportunityId: string;
|
154
153
|
timestamp: bigint;
|
154
|
+
opportunityId: string;
|
155
155
|
cumulated: number;
|
156
156
|
})[];
|
157
157
|
DailyRewardsRecords: ({
|
158
158
|
DailyRewardsBreakdown: ({
|
159
159
|
Campaign: {
|
160
160
|
campaignId: string;
|
161
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
162
161
|
amount: string;
|
163
162
|
startTimestamp: bigint;
|
164
163
|
endTimestamp: bigint;
|
164
|
+
distributionType: import("@package/databases").DistributionType;
|
165
165
|
RewardToken: {
|
166
166
|
symbol: string;
|
167
167
|
name: string | null;
|
168
|
-
|
169
|
-
|
168
|
+
decimals: number;
|
169
|
+
price: number | null;
|
170
170
|
address: string;
|
171
|
+
id: string;
|
171
172
|
chainId: number;
|
172
|
-
|
173
|
-
|
174
|
-
verified: boolean;
|
175
|
-
isTest: boolean;
|
173
|
+
icon: string;
|
174
|
+
isNative: boolean;
|
176
175
|
isPoint: boolean;
|
177
176
|
isPreTGE: boolean;
|
178
|
-
|
179
|
-
|
177
|
+
isTest: boolean;
|
178
|
+
verified: boolean;
|
179
|
+
displaySymbol: string;
|
180
180
|
};
|
181
181
|
CampaignStatus: {
|
182
|
-
status: import("@db/api").$Enums.RunStatus;
|
183
|
-
error: string;
|
184
|
-
details: Prisma.JsonValue;
|
185
182
|
campaignId: string;
|
183
|
+
error: string;
|
184
|
+
status: import("@package/databases").RunStatus;
|
185
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
186
186
|
computedUntil: bigint;
|
187
187
|
processingStarted: bigint;
|
188
188
|
}[];
|
189
189
|
};
|
190
190
|
} & {
|
191
|
+
campaignId: string;
|
191
192
|
id: string;
|
192
193
|
value: number;
|
193
|
-
campaignId: string;
|
194
194
|
dailyRewardsRecordId: string;
|
195
195
|
})[];
|
196
196
|
} & {
|
197
|
-
total: number;
|
198
197
|
id: string;
|
199
|
-
opportunityId: string;
|
200
198
|
timestamp: bigint;
|
199
|
+
opportunityId: string;
|
200
|
+
total: number;
|
201
201
|
})[];
|
202
202
|
} & {
|
203
|
-
status: import("@db/api").$Enums.Status;
|
204
|
-
type: string;
|
205
203
|
name: string;
|
204
|
+
apr: number;
|
205
|
+
tvl: number;
|
206
206
|
description: string;
|
207
207
|
id: string;
|
208
|
-
|
209
|
-
identifier: string;
|
210
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
211
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
208
|
+
status: import("@package/databases").Status;
|
212
209
|
chainId: number;
|
213
|
-
|
210
|
+
action: import("@package/databases").OpportunityAction;
|
211
|
+
type: string;
|
214
212
|
depositUrl: string | null;
|
215
213
|
explorerAddress: string | null;
|
214
|
+
howToSteps: string[];
|
216
215
|
mainProtocolId: string | null;
|
217
|
-
|
218
|
-
|
216
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
217
|
+
identifier: string;
|
219
218
|
dailyRewards: number;
|
219
|
+
tags: string[];
|
220
220
|
lastCampaignCreatedAt: Date;
|
221
221
|
}) | null>;
|
222
222
|
static findUniqueOrThrow(id: string, withTest?: boolean, withPoints?: boolean, withCampaigns?: boolean): Promise<{
|
223
|
-
Chain: {
|
224
|
-
name: string;
|
225
|
-
id: number;
|
226
|
-
icon: string;
|
227
|
-
};
|
228
223
|
Campaigns: {
|
229
|
-
|
224
|
+
campaignId: string;
|
230
225
|
description: string | null;
|
231
226
|
id: string;
|
232
|
-
params:
|
233
|
-
subType: number | null;
|
234
|
-
computeChainId: number;
|
235
|
-
distributionChainId: number;
|
236
|
-
campaignId: string;
|
237
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
238
|
-
rewardTokenId: string;
|
227
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
239
228
|
amount: string;
|
240
|
-
opportunityId: string;
|
241
229
|
startTimestamp: bigint;
|
230
|
+
type: string;
|
231
|
+
computeChainId: number;
|
232
|
+
distributionChainId: number;
|
242
233
|
endTimestamp: bigint;
|
234
|
+
opportunityId: string;
|
243
235
|
creatorAddress: string;
|
244
|
-
|
236
|
+
distributionType: import("@package/databases").DistributionType;
|
237
|
+
subType: number | null;
|
238
|
+
rewardTokenId: string;
|
239
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
245
240
|
createdAt: Date;
|
246
241
|
rootCampaignId: string | null;
|
247
242
|
parentCampaignId: string | null;
|
248
243
|
}[];
|
244
|
+
Chain: {
|
245
|
+
name: string;
|
246
|
+
id: number;
|
247
|
+
icon: string;
|
248
|
+
};
|
249
249
|
Tokens: {
|
250
250
|
symbol: string;
|
251
251
|
name: string | null;
|
252
|
-
|
253
|
-
|
252
|
+
decimals: number;
|
253
|
+
price: number | null;
|
254
254
|
address: string;
|
255
|
+
id: string;
|
255
256
|
chainId: number;
|
256
|
-
|
257
|
-
|
258
|
-
verified: boolean;
|
259
|
-
isTest: boolean;
|
257
|
+
icon: string;
|
258
|
+
isNative: boolean;
|
260
259
|
isPoint: boolean;
|
261
260
|
isPreTGE: boolean;
|
262
|
-
|
263
|
-
|
261
|
+
isTest: boolean;
|
262
|
+
verified: boolean;
|
263
|
+
displaySymbol: string;
|
264
264
|
}[];
|
265
265
|
Protocols: {
|
266
|
-
url: string;
|
267
266
|
name: string;
|
268
267
|
description: string;
|
269
268
|
id: string;
|
270
|
-
|
269
|
+
url: string;
|
271
270
|
icon: string;
|
271
|
+
tags: string[];
|
272
272
|
}[];
|
273
273
|
MainProtocol: {
|
274
|
-
url: string;
|
275
274
|
name: string;
|
276
275
|
description: string;
|
277
276
|
id: string;
|
278
|
-
|
277
|
+
url: string;
|
279
278
|
icon: string;
|
279
|
+
tags: string[];
|
280
280
|
} | null;
|
281
281
|
TvlRecords: ({
|
282
282
|
TvlBreakdown: {
|
283
|
-
type: import("@db/api").$Enums.TvlType;
|
284
|
-
identifier: string;
|
285
283
|
value: number;
|
284
|
+
type: import("@package/databases").TvlType;
|
285
|
+
identifier: string;
|
286
286
|
}[];
|
287
287
|
} & {
|
288
|
-
total: number;
|
289
288
|
id: string;
|
290
|
-
opportunityId: string;
|
291
289
|
timestamp: bigint;
|
290
|
+
opportunityId: string;
|
291
|
+
total: number;
|
292
292
|
})[];
|
293
293
|
AprRecords: ({
|
294
294
|
AprBreakdown: {
|
295
|
-
type: import("@db/api").$Enums.AprType;
|
296
|
-
identifier: string;
|
297
295
|
value: number;
|
296
|
+
type: import("@package/databases").AprType;
|
297
|
+
identifier: string;
|
298
298
|
}[];
|
299
299
|
} & {
|
300
300
|
id: string;
|
301
|
-
opportunityId: string;
|
302
301
|
timestamp: bigint;
|
302
|
+
opportunityId: string;
|
303
303
|
cumulated: number;
|
304
304
|
})[];
|
305
305
|
DailyRewardsRecords: ({
|
306
306
|
DailyRewardsBreakdown: ({
|
307
307
|
Campaign: {
|
308
308
|
campaignId: string;
|
309
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
310
309
|
amount: string;
|
311
310
|
startTimestamp: bigint;
|
312
311
|
endTimestamp: bigint;
|
312
|
+
distributionType: import("@package/databases").DistributionType;
|
313
313
|
RewardToken: {
|
314
314
|
symbol: string;
|
315
315
|
name: string | null;
|
316
|
-
|
317
|
-
|
316
|
+
decimals: number;
|
317
|
+
price: number | null;
|
318
318
|
address: string;
|
319
|
+
id: string;
|
319
320
|
chainId: number;
|
320
|
-
|
321
|
-
|
322
|
-
verified: boolean;
|
323
|
-
isTest: boolean;
|
321
|
+
icon: string;
|
322
|
+
isNative: boolean;
|
324
323
|
isPoint: boolean;
|
325
324
|
isPreTGE: boolean;
|
326
|
-
|
327
|
-
|
325
|
+
isTest: boolean;
|
326
|
+
verified: boolean;
|
327
|
+
displaySymbol: string;
|
328
328
|
};
|
329
329
|
CampaignStatus: {
|
330
|
-
status: import("@db/api").$Enums.RunStatus;
|
331
|
-
error: string;
|
332
|
-
details: Prisma.JsonValue;
|
333
330
|
campaignId: string;
|
331
|
+
error: string;
|
332
|
+
status: import("@package/databases").RunStatus;
|
333
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
334
334
|
computedUntil: bigint;
|
335
335
|
processingStarted: bigint;
|
336
336
|
}[];
|
337
337
|
};
|
338
338
|
} & {
|
339
|
+
campaignId: string;
|
339
340
|
id: string;
|
340
341
|
value: number;
|
341
|
-
campaignId: string;
|
342
342
|
dailyRewardsRecordId: string;
|
343
343
|
})[];
|
344
344
|
} & {
|
345
|
-
total: number;
|
346
345
|
id: string;
|
347
|
-
opportunityId: string;
|
348
346
|
timestamp: bigint;
|
347
|
+
opportunityId: string;
|
348
|
+
total: number;
|
349
349
|
})[];
|
350
350
|
} & {
|
351
|
-
status: import("@db/api").$Enums.Status;
|
352
|
-
type: string;
|
353
351
|
name: string;
|
352
|
+
apr: number;
|
353
|
+
tvl: number;
|
354
354
|
description: string;
|
355
355
|
id: string;
|
356
|
-
|
357
|
-
identifier: string;
|
358
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
359
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
356
|
+
status: import("@package/databases").Status;
|
360
357
|
chainId: number;
|
361
|
-
|
358
|
+
action: import("@package/databases").OpportunityAction;
|
359
|
+
type: string;
|
362
360
|
depositUrl: string | null;
|
363
361
|
explorerAddress: string | null;
|
362
|
+
howToSteps: string[];
|
364
363
|
mainProtocolId: string | null;
|
365
|
-
|
366
|
-
|
364
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
365
|
+
identifier: string;
|
367
366
|
dailyRewards: number;
|
367
|
+
tags: string[];
|
368
368
|
lastCampaignCreatedAt: Date;
|
369
369
|
}>;
|
370
370
|
/**
|
@@ -373,18 +373,6 @@ export declare abstract class OpportunityRepository {
|
|
373
373
|
* @returns
|
374
374
|
*/
|
375
375
|
static findManyByCampaigns(where: Campaign["action"]["findMany"]["args"]["where"]): Promise<({
|
376
|
-
Chain: {
|
377
|
-
Explorer: {
|
378
|
-
url: string;
|
379
|
-
type: import("@db/api").$Enums.ExplorerType;
|
380
|
-
id: string;
|
381
|
-
chainId: number;
|
382
|
-
}[];
|
383
|
-
} & {
|
384
|
-
name: string;
|
385
|
-
id: number;
|
386
|
-
icon: string;
|
387
|
-
};
|
388
376
|
Campaigns: ({
|
389
377
|
ComputeChain: {
|
390
378
|
name: string;
|
@@ -393,10 +381,10 @@ export declare abstract class OpportunityRepository {
|
|
393
381
|
};
|
394
382
|
DistributionChain: {
|
395
383
|
Explorer: {
|
396
|
-
url: string;
|
397
|
-
type: import("@db/api").$Enums.ExplorerType;
|
398
384
|
id: string;
|
399
385
|
chainId: number;
|
386
|
+
type: import("@package/databases").ExplorerType;
|
387
|
+
url: string;
|
400
388
|
}[];
|
401
389
|
} & {
|
402
390
|
name: string;
|
@@ -406,327 +394,339 @@ export declare abstract class OpportunityRepository {
|
|
406
394
|
RewardToken: {
|
407
395
|
symbol: string;
|
408
396
|
name: string | null;
|
409
|
-
|
410
|
-
|
397
|
+
decimals: number;
|
398
|
+
price: number | null;
|
411
399
|
address: string;
|
400
|
+
id: string;
|
412
401
|
chainId: number;
|
413
|
-
|
414
|
-
|
415
|
-
verified: boolean;
|
416
|
-
isTest: boolean;
|
402
|
+
icon: string;
|
403
|
+
isNative: boolean;
|
417
404
|
isPoint: boolean;
|
418
405
|
isPreTGE: boolean;
|
419
|
-
|
420
|
-
|
406
|
+
isTest: boolean;
|
407
|
+
verified: boolean;
|
408
|
+
displaySymbol: string;
|
421
409
|
};
|
422
410
|
Creator: {
|
423
|
-
tags: string[];
|
424
411
|
address: string;
|
412
|
+
tags: string[];
|
425
413
|
creatorId: string | null;
|
426
414
|
};
|
427
415
|
CampaignStatus: {
|
428
|
-
status: import("@db/api").$Enums.RunStatus;
|
429
|
-
error: string;
|
430
|
-
details: Prisma.JsonValue;
|
431
416
|
campaignId: string;
|
417
|
+
error: string;
|
418
|
+
status: import("@package/databases").RunStatus;
|
419
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
432
420
|
computedUntil: bigint;
|
433
421
|
processingStarted: bigint;
|
434
422
|
}[];
|
435
423
|
} & {
|
436
|
-
|
424
|
+
campaignId: string;
|
437
425
|
description: string | null;
|
438
426
|
id: string;
|
439
|
-
params:
|
440
|
-
subType: number | null;
|
441
|
-
computeChainId: number;
|
442
|
-
distributionChainId: number;
|
443
|
-
campaignId: string;
|
444
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
445
|
-
rewardTokenId: string;
|
427
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
446
428
|
amount: string;
|
447
|
-
opportunityId: string;
|
448
429
|
startTimestamp: bigint;
|
430
|
+
type: string;
|
431
|
+
computeChainId: number;
|
432
|
+
distributionChainId: number;
|
449
433
|
endTimestamp: bigint;
|
434
|
+
opportunityId: string;
|
450
435
|
creatorAddress: string;
|
451
|
-
|
436
|
+
distributionType: import("@package/databases").DistributionType;
|
437
|
+
subType: number | null;
|
438
|
+
rewardTokenId: string;
|
439
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
452
440
|
createdAt: Date;
|
453
441
|
rootCampaignId: string | null;
|
454
442
|
parentCampaignId: string | null;
|
455
443
|
})[];
|
444
|
+
Chain: {
|
445
|
+
Explorer: {
|
446
|
+
id: string;
|
447
|
+
chainId: number;
|
448
|
+
type: import("@package/databases").ExplorerType;
|
449
|
+
url: string;
|
450
|
+
}[];
|
451
|
+
} & {
|
452
|
+
name: string;
|
453
|
+
id: number;
|
454
|
+
icon: string;
|
455
|
+
};
|
456
456
|
Tokens: {
|
457
457
|
symbol: string;
|
458
458
|
name: string | null;
|
459
|
-
|
460
|
-
|
459
|
+
decimals: number;
|
460
|
+
price: number | null;
|
461
461
|
address: string;
|
462
|
+
id: string;
|
462
463
|
chainId: number;
|
463
|
-
|
464
|
-
|
465
|
-
verified: boolean;
|
466
|
-
isTest: boolean;
|
464
|
+
icon: string;
|
465
|
+
isNative: boolean;
|
467
466
|
isPoint: boolean;
|
468
467
|
isPreTGE: boolean;
|
469
|
-
|
470
|
-
|
468
|
+
isTest: boolean;
|
469
|
+
verified: boolean;
|
470
|
+
displaySymbol: string;
|
471
471
|
}[];
|
472
472
|
Protocols: {
|
473
|
-
url: string;
|
474
473
|
name: string;
|
475
474
|
description: string;
|
476
475
|
id: string;
|
477
|
-
|
476
|
+
url: string;
|
478
477
|
icon: string;
|
478
|
+
tags: string[];
|
479
479
|
}[];
|
480
480
|
MainProtocol: {
|
481
|
-
url: string;
|
482
481
|
name: string;
|
483
482
|
description: string;
|
484
483
|
id: string;
|
485
|
-
|
484
|
+
url: string;
|
486
485
|
icon: string;
|
486
|
+
tags: string[];
|
487
487
|
} | null;
|
488
488
|
TvlRecords: ({
|
489
489
|
TvlBreakdown: {
|
490
|
-
type: import("@db/api").$Enums.TvlType;
|
491
|
-
identifier: string;
|
492
490
|
value: number;
|
491
|
+
type: import("@package/databases").TvlType;
|
492
|
+
identifier: string;
|
493
493
|
}[];
|
494
494
|
} & {
|
495
|
-
total: number;
|
496
495
|
id: string;
|
497
|
-
opportunityId: string;
|
498
496
|
timestamp: bigint;
|
497
|
+
opportunityId: string;
|
498
|
+
total: number;
|
499
499
|
})[];
|
500
500
|
AprRecords: ({
|
501
501
|
AprBreakdown: {
|
502
|
-
type: import("@db/api").$Enums.AprType;
|
503
|
-
identifier: string;
|
504
502
|
value: number;
|
503
|
+
type: import("@package/databases").AprType;
|
504
|
+
identifier: string;
|
505
505
|
}[];
|
506
506
|
} & {
|
507
507
|
id: string;
|
508
|
-
opportunityId: string;
|
509
508
|
timestamp: bigint;
|
509
|
+
opportunityId: string;
|
510
510
|
cumulated: number;
|
511
511
|
})[];
|
512
512
|
DailyRewardsRecords: ({
|
513
513
|
DailyRewardsBreakdown: ({
|
514
514
|
Campaign: {
|
515
515
|
campaignId: string;
|
516
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
517
516
|
amount: string;
|
518
517
|
startTimestamp: bigint;
|
519
518
|
endTimestamp: bigint;
|
519
|
+
distributionType: import("@package/databases").DistributionType;
|
520
520
|
RewardToken: {
|
521
521
|
symbol: string;
|
522
522
|
name: string | null;
|
523
|
-
|
524
|
-
|
523
|
+
decimals: number;
|
524
|
+
price: number | null;
|
525
525
|
address: string;
|
526
|
+
id: string;
|
526
527
|
chainId: number;
|
527
|
-
|
528
|
-
|
529
|
-
verified: boolean;
|
530
|
-
isTest: boolean;
|
528
|
+
icon: string;
|
529
|
+
isNative: boolean;
|
531
530
|
isPoint: boolean;
|
532
531
|
isPreTGE: boolean;
|
533
|
-
|
534
|
-
|
532
|
+
isTest: boolean;
|
533
|
+
verified: boolean;
|
534
|
+
displaySymbol: string;
|
535
535
|
};
|
536
536
|
CampaignStatus: {
|
537
|
-
status: import("@db/api").$Enums.RunStatus;
|
538
|
-
error: string;
|
539
|
-
details: Prisma.JsonValue;
|
540
537
|
campaignId: string;
|
538
|
+
error: string;
|
539
|
+
status: import("@package/databases").RunStatus;
|
540
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
541
541
|
computedUntil: bigint;
|
542
542
|
processingStarted: bigint;
|
543
543
|
}[];
|
544
544
|
};
|
545
545
|
} & {
|
546
|
+
campaignId: string;
|
546
547
|
id: string;
|
547
548
|
value: number;
|
548
|
-
campaignId: string;
|
549
549
|
dailyRewardsRecordId: string;
|
550
550
|
})[];
|
551
551
|
} & {
|
552
|
-
total: number;
|
553
552
|
id: string;
|
554
|
-
opportunityId: string;
|
555
553
|
timestamp: bigint;
|
554
|
+
opportunityId: string;
|
555
|
+
total: number;
|
556
556
|
})[];
|
557
557
|
} & {
|
558
|
-
status: import("@db/api").$Enums.Status;
|
559
|
-
type: string;
|
560
558
|
name: string;
|
559
|
+
apr: number;
|
560
|
+
tvl: number;
|
561
561
|
description: string;
|
562
562
|
id: string;
|
563
|
-
|
564
|
-
identifier: string;
|
565
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
566
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
563
|
+
status: import("@package/databases").Status;
|
567
564
|
chainId: number;
|
568
|
-
|
565
|
+
action: import("@package/databases").OpportunityAction;
|
566
|
+
type: string;
|
569
567
|
depositUrl: string | null;
|
570
568
|
explorerAddress: string | null;
|
569
|
+
howToSteps: string[];
|
571
570
|
mainProtocolId: string | null;
|
572
|
-
|
573
|
-
|
571
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
572
|
+
identifier: string;
|
574
573
|
dailyRewards: number;
|
574
|
+
tags: string[];
|
575
575
|
lastCampaignCreatedAt: Date;
|
576
576
|
})[]>;
|
577
577
|
static findMany(query: GetOpportunitiesQueryModel): Promise<({
|
578
|
-
Chain: {
|
579
|
-
Explorer: {
|
580
|
-
url: string;
|
581
|
-
type: import("@db/api").$Enums.ExplorerType;
|
582
|
-
id: string;
|
583
|
-
chainId: number;
|
584
|
-
}[];
|
585
|
-
} & {
|
586
|
-
name: string;
|
587
|
-
id: number;
|
588
|
-
icon: string;
|
589
|
-
};
|
590
578
|
Campaigns: {
|
591
|
-
|
579
|
+
campaignId: string;
|
592
580
|
description: string | null;
|
593
581
|
id: string;
|
594
|
-
params:
|
595
|
-
subType: number | null;
|
596
|
-
computeChainId: number;
|
597
|
-
distributionChainId: number;
|
598
|
-
campaignId: string;
|
599
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
600
|
-
rewardTokenId: string;
|
582
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
601
583
|
amount: string;
|
602
|
-
opportunityId: string;
|
603
584
|
startTimestamp: bigint;
|
585
|
+
type: string;
|
586
|
+
computeChainId: number;
|
587
|
+
distributionChainId: number;
|
604
588
|
endTimestamp: bigint;
|
589
|
+
opportunityId: string;
|
605
590
|
creatorAddress: string;
|
606
|
-
|
591
|
+
distributionType: import("@package/databases").DistributionType;
|
592
|
+
subType: number | null;
|
593
|
+
rewardTokenId: string;
|
594
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
607
595
|
createdAt: Date;
|
608
596
|
rootCampaignId: string | null;
|
609
597
|
parentCampaignId: string | null;
|
610
598
|
}[];
|
599
|
+
Chain: {
|
600
|
+
Explorer: {
|
601
|
+
id: string;
|
602
|
+
chainId: number;
|
603
|
+
type: import("@package/databases").ExplorerType;
|
604
|
+
url: string;
|
605
|
+
}[];
|
606
|
+
} & {
|
607
|
+
name: string;
|
608
|
+
id: number;
|
609
|
+
icon: string;
|
610
|
+
};
|
611
611
|
Tokens: {
|
612
612
|
symbol: string;
|
613
613
|
name: string | null;
|
614
|
-
|
615
|
-
|
614
|
+
decimals: number;
|
615
|
+
price: number | null;
|
616
616
|
address: string;
|
617
|
+
id: string;
|
617
618
|
chainId: number;
|
618
|
-
|
619
|
-
|
620
|
-
verified: boolean;
|
621
|
-
isTest: boolean;
|
619
|
+
icon: string;
|
620
|
+
isNative: boolean;
|
622
621
|
isPoint: boolean;
|
623
622
|
isPreTGE: boolean;
|
624
|
-
|
625
|
-
|
623
|
+
isTest: boolean;
|
624
|
+
verified: boolean;
|
625
|
+
displaySymbol: string;
|
626
626
|
}[];
|
627
627
|
Protocols: {
|
628
|
-
url: string;
|
629
628
|
name: string;
|
630
629
|
description: string;
|
631
630
|
id: string;
|
632
|
-
|
631
|
+
url: string;
|
633
632
|
icon: string;
|
633
|
+
tags: string[];
|
634
634
|
}[];
|
635
635
|
MainProtocol: {
|
636
|
-
url: string;
|
637
636
|
name: string;
|
638
637
|
description: string;
|
639
638
|
id: string;
|
640
|
-
|
639
|
+
url: string;
|
641
640
|
icon: string;
|
641
|
+
tags: string[];
|
642
642
|
} | null;
|
643
643
|
TvlRecords: ({
|
644
644
|
TvlBreakdown: {
|
645
|
-
type: import("@db/api").$Enums.TvlType;
|
646
|
-
identifier: string;
|
647
645
|
value: number;
|
646
|
+
type: import("@package/databases").TvlType;
|
647
|
+
identifier: string;
|
648
648
|
}[];
|
649
649
|
} & {
|
650
|
-
total: number;
|
651
650
|
id: string;
|
652
|
-
opportunityId: string;
|
653
651
|
timestamp: bigint;
|
652
|
+
opportunityId: string;
|
653
|
+
total: number;
|
654
654
|
})[];
|
655
655
|
AprRecords: ({
|
656
656
|
AprBreakdown: {
|
657
|
-
type: import("@db/api").$Enums.AprType;
|
658
|
-
identifier: string;
|
659
657
|
value: number;
|
658
|
+
type: import("@package/databases").AprType;
|
659
|
+
identifier: string;
|
660
660
|
}[];
|
661
661
|
} & {
|
662
662
|
id: string;
|
663
|
-
opportunityId: string;
|
664
663
|
timestamp: bigint;
|
664
|
+
opportunityId: string;
|
665
665
|
cumulated: number;
|
666
666
|
})[];
|
667
667
|
DailyRewardsRecords: ({
|
668
668
|
DailyRewardsBreakdown: ({
|
669
669
|
Campaign: {
|
670
670
|
campaignId: string;
|
671
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
672
671
|
amount: string;
|
673
672
|
startTimestamp: bigint;
|
674
673
|
endTimestamp: bigint;
|
674
|
+
distributionType: import("@package/databases").DistributionType;
|
675
675
|
RewardToken: {
|
676
676
|
symbol: string;
|
677
677
|
name: string | null;
|
678
|
-
|
679
|
-
|
678
|
+
decimals: number;
|
679
|
+
price: number | null;
|
680
680
|
address: string;
|
681
|
+
id: string;
|
681
682
|
chainId: number;
|
682
|
-
|
683
|
-
|
684
|
-
verified: boolean;
|
685
|
-
isTest: boolean;
|
683
|
+
icon: string;
|
684
|
+
isNative: boolean;
|
686
685
|
isPoint: boolean;
|
687
686
|
isPreTGE: boolean;
|
688
|
-
|
689
|
-
|
687
|
+
isTest: boolean;
|
688
|
+
verified: boolean;
|
689
|
+
displaySymbol: string;
|
690
690
|
};
|
691
691
|
CampaignStatus: {
|
692
|
-
status: import("@db/api").$Enums.RunStatus;
|
693
|
-
error: string;
|
694
|
-
details: Prisma.JsonValue;
|
695
692
|
campaignId: string;
|
693
|
+
error: string;
|
694
|
+
status: import("@package/databases").RunStatus;
|
695
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
696
696
|
computedUntil: bigint;
|
697
697
|
processingStarted: bigint;
|
698
698
|
}[];
|
699
699
|
};
|
700
700
|
} & {
|
701
|
+
campaignId: string;
|
701
702
|
id: string;
|
702
703
|
value: number;
|
703
|
-
campaignId: string;
|
704
704
|
dailyRewardsRecordId: string;
|
705
705
|
})[];
|
706
706
|
} & {
|
707
|
-
total: number;
|
708
707
|
id: string;
|
709
|
-
opportunityId: string;
|
710
708
|
timestamp: bigint;
|
709
|
+
opportunityId: string;
|
710
|
+
total: number;
|
711
711
|
})[];
|
712
712
|
} & {
|
713
|
-
status: import("@db/api").$Enums.Status;
|
714
|
-
type: string;
|
715
713
|
name: string;
|
714
|
+
apr: number;
|
715
|
+
tvl: number;
|
716
716
|
description: string;
|
717
717
|
id: string;
|
718
|
-
|
719
|
-
identifier: string;
|
720
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
721
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
718
|
+
status: import("@package/databases").Status;
|
722
719
|
chainId: number;
|
723
|
-
|
720
|
+
action: import("@package/databases").OpportunityAction;
|
721
|
+
type: string;
|
724
722
|
depositUrl: string | null;
|
725
723
|
explorerAddress: string | null;
|
724
|
+
howToSteps: string[];
|
726
725
|
mainProtocolId: string | null;
|
727
|
-
|
728
|
-
|
726
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
727
|
+
identifier: string;
|
729
728
|
dailyRewards: number;
|
729
|
+
tags: string[];
|
730
730
|
lastCampaignCreatedAt: Date;
|
731
731
|
})[]>;
|
732
732
|
/**
|
@@ -737,18 +737,6 @@ export declare abstract class OpportunityRepository {
|
|
737
737
|
* @dev Excludes test campaigns
|
738
738
|
*/
|
739
739
|
static findLiveWithCampaigns(chainId: MerklChainId, take?: number): Promise<({
|
740
|
-
Chain: {
|
741
|
-
Explorer: {
|
742
|
-
url: string;
|
743
|
-
type: import("@db/api").$Enums.ExplorerType;
|
744
|
-
id: string;
|
745
|
-
chainId: number;
|
746
|
-
}[];
|
747
|
-
} & {
|
748
|
-
name: string;
|
749
|
-
id: number;
|
750
|
-
icon: string;
|
751
|
-
};
|
752
740
|
Campaigns: ({
|
753
741
|
ComputeChain: {
|
754
742
|
name: string;
|
@@ -757,10 +745,10 @@ export declare abstract class OpportunityRepository {
|
|
757
745
|
};
|
758
746
|
DistributionChain: {
|
759
747
|
Explorer: {
|
760
|
-
url: string;
|
761
|
-
type: import("@db/api").$Enums.ExplorerType;
|
762
748
|
id: string;
|
763
749
|
chainId: number;
|
750
|
+
type: import("@package/databases").ExplorerType;
|
751
|
+
url: string;
|
764
752
|
}[];
|
765
753
|
} & {
|
766
754
|
name: string;
|
@@ -770,172 +758,184 @@ export declare abstract class OpportunityRepository {
|
|
770
758
|
RewardToken: {
|
771
759
|
symbol: string;
|
772
760
|
name: string | null;
|
773
|
-
|
774
|
-
|
761
|
+
decimals: number;
|
762
|
+
price: number | null;
|
775
763
|
address: string;
|
764
|
+
id: string;
|
776
765
|
chainId: number;
|
777
|
-
|
778
|
-
|
779
|
-
verified: boolean;
|
780
|
-
isTest: boolean;
|
766
|
+
icon: string;
|
767
|
+
isNative: boolean;
|
781
768
|
isPoint: boolean;
|
782
769
|
isPreTGE: boolean;
|
783
|
-
|
784
|
-
|
770
|
+
isTest: boolean;
|
771
|
+
verified: boolean;
|
772
|
+
displaySymbol: string;
|
785
773
|
};
|
786
774
|
Creator: {
|
787
|
-
tags: string[];
|
788
775
|
address: string;
|
776
|
+
tags: string[];
|
789
777
|
creatorId: string | null;
|
790
778
|
};
|
791
779
|
CampaignStatus: {
|
792
|
-
status: import("@db/api").$Enums.RunStatus;
|
793
|
-
error: string;
|
794
|
-
details: Prisma.JsonValue;
|
795
780
|
campaignId: string;
|
781
|
+
error: string;
|
782
|
+
status: import("@package/databases").RunStatus;
|
783
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
796
784
|
computedUntil: bigint;
|
797
785
|
processingStarted: bigint;
|
798
786
|
}[];
|
799
787
|
} & {
|
800
|
-
|
788
|
+
campaignId: string;
|
801
789
|
description: string | null;
|
802
790
|
id: string;
|
803
|
-
params:
|
804
|
-
subType: number | null;
|
805
|
-
computeChainId: number;
|
806
|
-
distributionChainId: number;
|
807
|
-
campaignId: string;
|
808
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
809
|
-
rewardTokenId: string;
|
791
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
810
792
|
amount: string;
|
811
|
-
opportunityId: string;
|
812
793
|
startTimestamp: bigint;
|
794
|
+
type: string;
|
795
|
+
computeChainId: number;
|
796
|
+
distributionChainId: number;
|
813
797
|
endTimestamp: bigint;
|
798
|
+
opportunityId: string;
|
814
799
|
creatorAddress: string;
|
815
|
-
|
800
|
+
distributionType: import("@package/databases").DistributionType;
|
801
|
+
subType: number | null;
|
802
|
+
rewardTokenId: string;
|
803
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
816
804
|
createdAt: Date;
|
817
805
|
rootCampaignId: string | null;
|
818
806
|
parentCampaignId: string | null;
|
819
807
|
})[];
|
808
|
+
Chain: {
|
809
|
+
Explorer: {
|
810
|
+
id: string;
|
811
|
+
chainId: number;
|
812
|
+
type: import("@package/databases").ExplorerType;
|
813
|
+
url: string;
|
814
|
+
}[];
|
815
|
+
} & {
|
816
|
+
name: string;
|
817
|
+
id: number;
|
818
|
+
icon: string;
|
819
|
+
};
|
820
820
|
Tokens: {
|
821
821
|
symbol: string;
|
822
822
|
name: string | null;
|
823
|
-
|
824
|
-
|
823
|
+
decimals: number;
|
824
|
+
price: number | null;
|
825
825
|
address: string;
|
826
|
+
id: string;
|
826
827
|
chainId: number;
|
827
|
-
|
828
|
-
|
829
|
-
verified: boolean;
|
830
|
-
isTest: boolean;
|
828
|
+
icon: string;
|
829
|
+
isNative: boolean;
|
831
830
|
isPoint: boolean;
|
832
831
|
isPreTGE: boolean;
|
833
|
-
|
834
|
-
|
832
|
+
isTest: boolean;
|
833
|
+
verified: boolean;
|
834
|
+
displaySymbol: string;
|
835
835
|
}[];
|
836
836
|
Protocols: {
|
837
|
-
url: string;
|
838
837
|
name: string;
|
839
838
|
description: string;
|
840
839
|
id: string;
|
841
|
-
|
840
|
+
url: string;
|
842
841
|
icon: string;
|
842
|
+
tags: string[];
|
843
843
|
}[];
|
844
844
|
MainProtocol: {
|
845
|
-
url: string;
|
846
845
|
name: string;
|
847
846
|
description: string;
|
848
847
|
id: string;
|
849
|
-
|
848
|
+
url: string;
|
850
849
|
icon: string;
|
850
|
+
tags: string[];
|
851
851
|
} | null;
|
852
852
|
TvlRecords: ({
|
853
853
|
TvlBreakdown: {
|
854
|
-
type: import("@db/api").$Enums.TvlType;
|
855
|
-
identifier: string;
|
856
854
|
value: number;
|
855
|
+
type: import("@package/databases").TvlType;
|
856
|
+
identifier: string;
|
857
857
|
}[];
|
858
858
|
} & {
|
859
|
-
total: number;
|
860
859
|
id: string;
|
861
|
-
opportunityId: string;
|
862
860
|
timestamp: bigint;
|
861
|
+
opportunityId: string;
|
862
|
+
total: number;
|
863
863
|
})[];
|
864
864
|
AprRecords: ({
|
865
865
|
AprBreakdown: {
|
866
|
-
type: import("@db/api").$Enums.AprType;
|
867
|
-
identifier: string;
|
868
866
|
value: number;
|
867
|
+
type: import("@package/databases").AprType;
|
868
|
+
identifier: string;
|
869
869
|
}[];
|
870
870
|
} & {
|
871
871
|
id: string;
|
872
|
-
opportunityId: string;
|
873
872
|
timestamp: bigint;
|
873
|
+
opportunityId: string;
|
874
874
|
cumulated: number;
|
875
875
|
})[];
|
876
876
|
DailyRewardsRecords: ({
|
877
877
|
DailyRewardsBreakdown: ({
|
878
878
|
Campaign: {
|
879
879
|
campaignId: string;
|
880
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
881
880
|
amount: string;
|
882
881
|
startTimestamp: bigint;
|
883
882
|
endTimestamp: bigint;
|
883
|
+
distributionType: import("@package/databases").DistributionType;
|
884
884
|
RewardToken: {
|
885
885
|
symbol: string;
|
886
886
|
name: string | null;
|
887
|
-
|
888
|
-
|
887
|
+
decimals: number;
|
888
|
+
price: number | null;
|
889
889
|
address: string;
|
890
|
+
id: string;
|
890
891
|
chainId: number;
|
891
|
-
|
892
|
-
|
893
|
-
verified: boolean;
|
894
|
-
isTest: boolean;
|
892
|
+
icon: string;
|
893
|
+
isNative: boolean;
|
895
894
|
isPoint: boolean;
|
896
895
|
isPreTGE: boolean;
|
897
|
-
|
898
|
-
|
896
|
+
isTest: boolean;
|
897
|
+
verified: boolean;
|
898
|
+
displaySymbol: string;
|
899
899
|
};
|
900
900
|
CampaignStatus: {
|
901
|
-
status: import("@db/api").$Enums.RunStatus;
|
902
|
-
error: string;
|
903
|
-
details: Prisma.JsonValue;
|
904
901
|
campaignId: string;
|
902
|
+
error: string;
|
903
|
+
status: import("@package/databases").RunStatus;
|
904
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
905
905
|
computedUntil: bigint;
|
906
906
|
processingStarted: bigint;
|
907
907
|
}[];
|
908
908
|
};
|
909
909
|
} & {
|
910
|
+
campaignId: string;
|
910
911
|
id: string;
|
911
912
|
value: number;
|
912
|
-
campaignId: string;
|
913
913
|
dailyRewardsRecordId: string;
|
914
914
|
})[];
|
915
915
|
} & {
|
916
|
-
total: number;
|
917
916
|
id: string;
|
918
|
-
opportunityId: string;
|
919
917
|
timestamp: bigint;
|
918
|
+
opportunityId: string;
|
919
|
+
total: number;
|
920
920
|
})[];
|
921
921
|
} & {
|
922
|
-
status: import("@db/api").$Enums.Status;
|
923
|
-
type: string;
|
924
922
|
name: string;
|
923
|
+
apr: number;
|
924
|
+
tvl: number;
|
925
925
|
description: string;
|
926
926
|
id: string;
|
927
|
-
|
928
|
-
identifier: string;
|
929
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
930
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
927
|
+
status: import("@package/databases").Status;
|
931
928
|
chainId: number;
|
932
|
-
|
929
|
+
action: import("@package/databases").OpportunityAction;
|
930
|
+
type: string;
|
933
931
|
depositUrl: string | null;
|
934
932
|
explorerAddress: string | null;
|
933
|
+
howToSteps: string[];
|
935
934
|
mainProtocolId: string | null;
|
936
|
-
|
937
|
-
|
935
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
936
|
+
identifier: string;
|
938
937
|
dailyRewards: number;
|
938
|
+
tags: string[];
|
939
939
|
lastCampaignCreatedAt: Date;
|
940
940
|
})[]>;
|
941
941
|
static countMany(query: GetOpportunitiesQueryModel): Promise<number>;
|
@@ -949,99 +949,99 @@ export declare abstract class OpportunityRepository {
|
|
949
949
|
static updateDynamicData(opportunityId: string, apr: AprRecord["model"], tvl: TvlRecord["model"], dailyRewards: DailyRewardsRecord["model"]): Promise<{
|
950
950
|
aprRecord: {
|
951
951
|
id: string;
|
952
|
-
opportunityId: string;
|
953
952
|
timestamp: bigint;
|
953
|
+
opportunityId: string;
|
954
954
|
cumulated: number;
|
955
955
|
};
|
956
956
|
tvlRecord: {
|
957
957
|
TvlBreakdown: {
|
958
|
-
type: import("@db/api").$Enums.TvlType;
|
959
958
|
id: string;
|
960
|
-
identifier: string;
|
961
959
|
value: number;
|
960
|
+
type: import("@package/databases").TvlType;
|
961
|
+
identifier: string;
|
962
962
|
tvlRecordId: string;
|
963
963
|
}[];
|
964
964
|
} & {
|
965
|
-
total: number;
|
966
965
|
id: string;
|
967
|
-
opportunityId: string;
|
968
966
|
timestamp: bigint;
|
967
|
+
opportunityId: string;
|
968
|
+
total: number;
|
969
969
|
};
|
970
970
|
dailyRewardsRecord: {
|
971
971
|
DailyRewardsBreakdown: {
|
972
|
+
campaignId: string;
|
972
973
|
id: string;
|
973
974
|
value: number;
|
974
|
-
campaignId: string;
|
975
975
|
dailyRewardsRecordId: string;
|
976
976
|
}[];
|
977
977
|
} & {
|
978
|
-
total: number;
|
979
978
|
id: string;
|
980
|
-
opportunityId: string;
|
981
979
|
timestamp: bigint;
|
980
|
+
opportunityId: string;
|
981
|
+
total: number;
|
982
982
|
};
|
983
983
|
opportunity: {
|
984
|
-
status: import("@db/api").$Enums.Status;
|
985
|
-
type: string;
|
986
984
|
name: string;
|
985
|
+
apr: number;
|
986
|
+
tvl: number;
|
987
987
|
description: string;
|
988
988
|
id: string;
|
989
|
-
|
990
|
-
identifier: string;
|
991
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
992
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
989
|
+
status: import("@package/databases").Status;
|
993
990
|
chainId: number;
|
994
|
-
|
991
|
+
action: import("@package/databases").OpportunityAction;
|
992
|
+
type: string;
|
995
993
|
depositUrl: string | null;
|
996
994
|
explorerAddress: string | null;
|
995
|
+
howToSteps: string[];
|
997
996
|
mainProtocolId: string | null;
|
998
|
-
|
999
|
-
|
997
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
998
|
+
identifier: string;
|
1000
999
|
dailyRewards: number;
|
1000
|
+
tags: string[];
|
1001
1001
|
lastCampaignCreatedAt: Date;
|
1002
1002
|
};
|
1003
1003
|
}>;
|
1004
1004
|
static updateStatus(id: string, status: Status): Promise<{
|
1005
|
-
status: import("@db/api").$Enums.Status;
|
1006
|
-
type: string;
|
1007
1005
|
name: string;
|
1006
|
+
apr: number;
|
1007
|
+
tvl: number;
|
1008
1008
|
description: string;
|
1009
1009
|
id: string;
|
1010
|
-
|
1011
|
-
identifier: string;
|
1012
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
1013
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1010
|
+
status: import("@package/databases").Status;
|
1014
1011
|
chainId: number;
|
1015
|
-
|
1012
|
+
action: import("@package/databases").OpportunityAction;
|
1013
|
+
type: string;
|
1016
1014
|
depositUrl: string | null;
|
1017
1015
|
explorerAddress: string | null;
|
1016
|
+
howToSteps: string[];
|
1018
1017
|
mainProtocolId: string | null;
|
1019
|
-
|
1020
|
-
|
1018
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1019
|
+
identifier: string;
|
1021
1020
|
dailyRewards: number;
|
1021
|
+
tags: string[];
|
1022
1022
|
lastCampaignCreatedAt: Date;
|
1023
1023
|
}>;
|
1024
1024
|
static update(id: string, data: Partial<Opportunity["raw"]>): Promise<{
|
1025
|
-
status: import("@db/api").$Enums.Status;
|
1026
|
-
type: string;
|
1027
1025
|
name: string;
|
1026
|
+
apr: number;
|
1027
|
+
tvl: number;
|
1028
1028
|
description: string;
|
1029
1029
|
id: string;
|
1030
|
-
|
1031
|
-
identifier: string;
|
1032
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
1033
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1030
|
+
status: import("@package/databases").Status;
|
1034
1031
|
chainId: number;
|
1035
|
-
|
1032
|
+
action: import("@package/databases").OpportunityAction;
|
1033
|
+
type: string;
|
1036
1034
|
depositUrl: string | null;
|
1037
1035
|
explorerAddress: string | null;
|
1036
|
+
howToSteps: string[];
|
1038
1037
|
mainProtocolId: string | null;
|
1039
|
-
|
1040
|
-
|
1038
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1039
|
+
identifier: string;
|
1041
1040
|
dailyRewards: number;
|
1041
|
+
tags: string[];
|
1042
1042
|
lastCampaignCreatedAt: Date;
|
1043
1043
|
}>;
|
1044
|
-
static updateMany(ids: string[], data: Partial<Opportunity["raw"]>): Promise<
|
1044
|
+
static updateMany(ids: string[], data: Partial<Opportunity["raw"]>): Promise<Prisma.BatchPayload>;
|
1045
1045
|
static aggregateSum(field: keyof Prisma.OpportunitySumAggregateInputType, query: GetOpportunitiesQueryModel): Promise<{
|
1046
1046
|
sum: string;
|
1047
1047
|
}>;
|