@merkl/api 0.21.46 → 1.0.0
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 +16937 -8167
- 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 +3 -3
- 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 +5548 -2626
- 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 +191 -191
- 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 +743 -644
- package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +111 -5
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +116 -81
- 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 +451 -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 +4706 -2394
- package/dist/src/modules/v4/status/status.controller.d.ts +127 -64
- package/dist/src/modules/v4/status/status.model.d.ts +10 -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 +1 -1
- 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 +28 -48
- 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 -7553
- 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,226 +1,154 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
export declare const OpportunityController: Elysia<"/opportunities",
|
2
|
+
export declare const OpportunityController: Elysia<"/opportunities", {
|
3
3
|
decorator: {};
|
4
4
|
store: {};
|
5
5
|
derive: {};
|
6
6
|
resolve: {};
|
7
7
|
}, {
|
8
|
-
|
8
|
+
typebox: {};
|
9
9
|
error: {};
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
|
+
standaloneSchema: {};
|
12
13
|
macro: {};
|
13
14
|
macroFn: {};
|
15
|
+
parser: {};
|
14
16
|
}, {
|
15
17
|
opportunities: {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
address: string;
|
85
|
-
chainId: number;
|
86
|
-
decimals: number;
|
87
|
-
displaySymbol: string;
|
88
|
-
verified: boolean;
|
89
|
-
isTest: boolean;
|
90
|
-
isPoint: boolean;
|
91
|
-
isPreTGE: boolean;
|
92
|
-
isNative: boolean;
|
93
|
-
price: number | null;
|
94
|
-
};
|
95
|
-
amount: any;
|
96
|
-
value: number;
|
97
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
98
|
-
}[];
|
99
|
-
};
|
100
|
-
campaigns: {
|
101
|
-
params: any;
|
102
|
-
chain: {
|
103
|
-
name: string;
|
104
|
-
id: number;
|
105
|
-
icon: string;
|
106
|
-
};
|
107
|
-
endTimestamp: number;
|
108
|
-
startTimestamp: number;
|
109
|
-
rewardToken: {
|
18
|
+
get: {
|
19
|
+
body: unknown;
|
20
|
+
params: {};
|
21
|
+
query: {
|
22
|
+
sort?: string | undefined;
|
23
|
+
name?: string | undefined;
|
24
|
+
tokens?: string | undefined;
|
25
|
+
campaignId?: string | undefined;
|
26
|
+
status?: string | undefined;
|
27
|
+
chainId?: string | undefined;
|
28
|
+
campaigns?: boolean | undefined;
|
29
|
+
items?: number | undefined;
|
30
|
+
point?: boolean | undefined;
|
31
|
+
order?: string | undefined;
|
32
|
+
action?: string | undefined;
|
33
|
+
type?: string | undefined;
|
34
|
+
search?: string | undefined;
|
35
|
+
creatorAddress?: string | undefined;
|
36
|
+
mainProtocolId?: string | undefined;
|
37
|
+
identifier?: string | undefined;
|
38
|
+
tags?: string | undefined;
|
39
|
+
page?: number | undefined;
|
40
|
+
test?: boolean | undefined;
|
41
|
+
minimumTvl?: number | undefined;
|
42
|
+
maximumTvl?: number | undefined;
|
43
|
+
minimumApr?: number | undefined;
|
44
|
+
maximumApr?: number | undefined;
|
45
|
+
rewardTokenSymbol?: string | undefined;
|
46
|
+
};
|
47
|
+
headers: unknown;
|
48
|
+
response: {
|
49
|
+
200: ({
|
50
|
+
depositUrl?: string | undefined;
|
51
|
+
protocol?: {
|
52
|
+
name: string;
|
53
|
+
description: string;
|
54
|
+
id: string;
|
55
|
+
url: string;
|
56
|
+
icon: string;
|
57
|
+
tags: string[];
|
58
|
+
} | null | undefined;
|
59
|
+
explorerAddress?: string | undefined;
|
60
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
61
|
+
aprRecord?: {
|
62
|
+
timestamp: string | bigint;
|
63
|
+
cumulated: number;
|
64
|
+
breakdowns: {
|
65
|
+
value: number;
|
66
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
67
|
+
identifier: string;
|
68
|
+
}[];
|
69
|
+
} | undefined;
|
70
|
+
tvlRecord?: {
|
71
|
+
timestamp: string | bigint;
|
72
|
+
total: number;
|
73
|
+
breakdowns: {
|
74
|
+
value: number;
|
75
|
+
type: "TOKEN" | "PROTOCOL";
|
76
|
+
identifier: string;
|
77
|
+
}[];
|
78
|
+
} | undefined;
|
79
|
+
rewardsRecord?: {
|
80
|
+
id: string;
|
81
|
+
timestamp: string | bigint;
|
82
|
+
total: number;
|
83
|
+
breakdowns: {
|
84
|
+
token: {
|
85
|
+
price?: number | null | undefined;
|
110
86
|
symbol: string;
|
111
87
|
name: string | null;
|
112
|
-
id: string;
|
113
|
-
icon: string;
|
114
|
-
address: string;
|
115
|
-
chainId: number;
|
116
88
|
decimals: number;
|
117
|
-
verified: boolean;
|
118
|
-
isTest: boolean;
|
119
|
-
isPoint: boolean;
|
120
|
-
isPreTGE: boolean;
|
121
|
-
isNative: boolean;
|
122
|
-
} & {
|
123
|
-
price?: number | null | undefined;
|
124
|
-
};
|
125
|
-
distributionChain: {
|
126
|
-
name: string;
|
127
|
-
id: number;
|
128
|
-
icon: string;
|
129
|
-
} | undefined;
|
130
|
-
campaignStatus: {
|
131
|
-
computedUntil: number;
|
132
|
-
processingStarted: number;
|
133
|
-
status: import("@db/api").$Enums.RunStatus;
|
134
|
-
error: string;
|
135
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
136
|
-
campaignId: string;
|
137
|
-
} | undefined;
|
138
|
-
creatorAddress: string;
|
139
|
-
creator: {
|
140
|
-
tags: string[];
|
141
89
|
address: string;
|
142
|
-
creatorId: string | null;
|
143
|
-
};
|
144
|
-
createdAt: string;
|
145
|
-
description: string | undefined;
|
146
|
-
parentCampaignId: string | undefined;
|
147
|
-
rootCampaignId: string | undefined;
|
148
|
-
Opportunity: {
|
149
|
-
status: import("@db/api").$Enums.Status;
|
150
|
-
type: string;
|
151
|
-
name: string;
|
152
|
-
description: string;
|
153
90
|
id: string;
|
154
|
-
tags: string[];
|
155
|
-
identifier: string;
|
156
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
157
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
158
91
|
chainId: number;
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
apr: number;
|
165
|
-
dailyRewards: number;
|
166
|
-
lastCampaignCreatedAt: Date;
|
92
|
+
icon: string;
|
93
|
+
isPoint: boolean;
|
94
|
+
isPreTGE: boolean;
|
95
|
+
isTest: boolean;
|
96
|
+
verified: boolean;
|
167
97
|
};
|
168
|
-
type: string;
|
169
|
-
id: string;
|
170
|
-
subType: number | null;
|
171
|
-
computeChainId: number;
|
172
|
-
distributionChainId: number;
|
173
98
|
campaignId: string;
|
174
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
175
|
-
rewardTokenId: string;
|
176
|
-
amount: string;
|
177
|
-
opportunityId: string;
|
178
|
-
}[] | undefined;
|
179
|
-
id: string;
|
180
|
-
depositUrl: string | undefined;
|
181
|
-
explorerAddress: string | undefined;
|
182
|
-
lastCampaignCreatedAt: string;
|
183
|
-
tokens: ({
|
184
|
-
symbol: string;
|
185
|
-
name: string | null;
|
186
99
|
id: string;
|
187
|
-
|
188
|
-
|
100
|
+
value: number;
|
101
|
+
amount: string | bigint;
|
102
|
+
dailyRewardsRecordId: string;
|
103
|
+
}[];
|
104
|
+
} | undefined;
|
105
|
+
name: string;
|
106
|
+
apr: number;
|
107
|
+
tokens: {
|
108
|
+
price?: number | null | undefined;
|
109
|
+
symbol: string;
|
110
|
+
name: string | null;
|
111
|
+
decimals: number;
|
112
|
+
address: string;
|
113
|
+
id: string;
|
114
|
+
chainId: number;
|
115
|
+
icon: string;
|
116
|
+
isPoint: boolean;
|
117
|
+
isPreTGE: boolean;
|
118
|
+
isTest: boolean;
|
119
|
+
verified: boolean;
|
120
|
+
}[];
|
121
|
+
tvl: number;
|
122
|
+
description: string;
|
123
|
+
id: string;
|
124
|
+
status: string;
|
125
|
+
chainId: number;
|
126
|
+
action: string;
|
127
|
+
type: string;
|
128
|
+
howToSteps: string[];
|
129
|
+
identifier: string;
|
130
|
+
dailyRewards: number;
|
131
|
+
tags: string[];
|
132
|
+
lastCampaignCreatedAt: string;
|
133
|
+
chain: {
|
134
|
+
explorers?: {
|
189
135
|
chainId: number;
|
190
|
-
|
191
|
-
verified: boolean;
|
192
|
-
isTest: boolean;
|
193
|
-
isPoint: boolean;
|
194
|
-
isPreTGE: boolean;
|
195
|
-
isNative: boolean;
|
196
|
-
} & {
|
197
|
-
price?: number | null | undefined;
|
198
|
-
})[];
|
199
|
-
chain: {
|
200
|
-
name: string;
|
201
|
-
id: number;
|
202
|
-
icon: string;
|
203
|
-
};
|
204
|
-
protocol: {
|
136
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
205
137
|
url: string;
|
206
|
-
|
207
|
-
description: string;
|
208
|
-
id: string;
|
209
|
-
tags: string[];
|
210
|
-
icon: string;
|
211
|
-
} | undefined;
|
212
|
-
status: import("@db/api").$Enums.Status;
|
213
|
-
type: string;
|
138
|
+
}[] | undefined;
|
214
139
|
name: string;
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
140
|
+
id: number;
|
141
|
+
icon: string;
|
142
|
+
};
|
143
|
+
} | null)[];
|
144
|
+
422: {
|
145
|
+
type: "validation";
|
146
|
+
on: string;
|
147
|
+
summary?: string;
|
148
|
+
message?: string;
|
149
|
+
found?: unknown;
|
150
|
+
property?: string;
|
151
|
+
expected?: string;
|
224
152
|
};
|
225
153
|
};
|
226
154
|
};
|
@@ -232,31 +160,43 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
232
160
|
body: unknown;
|
233
161
|
params: {};
|
234
162
|
query: {
|
235
|
-
status?: string | undefined;
|
236
|
-
search?: string | undefined;
|
237
163
|
sort?: string | undefined;
|
238
|
-
type?: string | undefined;
|
239
164
|
name?: string | undefined;
|
240
165
|
tokens?: string | undefined;
|
241
|
-
items?: number | undefined;
|
242
|
-
tags?: string | undefined;
|
243
|
-
identifier?: string | undefined;
|
244
|
-
page?: number | undefined;
|
245
|
-
action?: string | undefined;
|
246
166
|
campaignId?: string | undefined;
|
247
|
-
|
167
|
+
status?: string | undefined;
|
248
168
|
chainId?: string | undefined;
|
249
|
-
mainProtocolId?: string | undefined;
|
250
169
|
campaigns?: boolean | undefined;
|
170
|
+
items?: number | undefined;
|
251
171
|
point?: boolean | undefined;
|
252
|
-
rewardTokenSymbol?: string | undefined;
|
253
172
|
order?: string | undefined;
|
173
|
+
action?: string | undefined;
|
174
|
+
type?: string | undefined;
|
175
|
+
search?: string | undefined;
|
176
|
+
creatorAddress?: string | undefined;
|
177
|
+
mainProtocolId?: string | undefined;
|
178
|
+
identifier?: string | undefined;
|
179
|
+
tags?: string | undefined;
|
180
|
+
page?: number | undefined;
|
254
181
|
test?: boolean | undefined;
|
255
182
|
minimumTvl?: number | undefined;
|
183
|
+
maximumTvl?: number | undefined;
|
184
|
+
minimumApr?: number | undefined;
|
185
|
+
maximumApr?: number | undefined;
|
186
|
+
rewardTokenSymbol?: string | undefined;
|
256
187
|
};
|
257
188
|
headers: unknown;
|
258
189
|
response: {
|
259
190
|
200: number;
|
191
|
+
422: {
|
192
|
+
type: "validation";
|
193
|
+
on: string;
|
194
|
+
summary?: string;
|
195
|
+
message?: string;
|
196
|
+
found?: unknown;
|
197
|
+
property?: string;
|
198
|
+
expected?: string;
|
199
|
+
};
|
260
200
|
};
|
261
201
|
};
|
262
202
|
};
|
@@ -269,27 +209,30 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
269
209
|
body: unknown;
|
270
210
|
params: {};
|
271
211
|
query: {
|
272
|
-
status?: string | undefined;
|
273
|
-
search?: string | undefined;
|
274
212
|
sort?: string | undefined;
|
275
|
-
type?: string | undefined;
|
276
213
|
name?: string | undefined;
|
277
214
|
tokens?: string | undefined;
|
278
|
-
items?: number | undefined;
|
279
|
-
tags?: string | undefined;
|
280
|
-
identifier?: string | undefined;
|
281
|
-
page?: number | undefined;
|
282
|
-
action?: string | undefined;
|
283
215
|
campaignId?: string | undefined;
|
284
|
-
|
216
|
+
status?: string | undefined;
|
285
217
|
chainId?: string | undefined;
|
286
|
-
mainProtocolId?: string | undefined;
|
287
218
|
campaigns?: boolean | undefined;
|
219
|
+
items?: number | undefined;
|
288
220
|
point?: boolean | undefined;
|
289
|
-
rewardTokenSymbol?: string | undefined;
|
290
221
|
order?: string | undefined;
|
222
|
+
action?: string | undefined;
|
223
|
+
type?: string | undefined;
|
224
|
+
search?: string | undefined;
|
225
|
+
creatorAddress?: string | undefined;
|
226
|
+
mainProtocolId?: string | undefined;
|
227
|
+
identifier?: string | undefined;
|
228
|
+
tags?: string | undefined;
|
229
|
+
page?: number | undefined;
|
291
230
|
test?: boolean | undefined;
|
292
231
|
minimumTvl?: number | undefined;
|
232
|
+
maximumTvl?: number | undefined;
|
233
|
+
minimumApr?: number | undefined;
|
234
|
+
maximumApr?: number | undefined;
|
235
|
+
rewardTokenSymbol?: string | undefined;
|
293
236
|
};
|
294
237
|
headers: unknown;
|
295
238
|
response: {
|
@@ -300,6 +243,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
300
243
|
binWidth: number;
|
301
244
|
bins: any[];
|
302
245
|
};
|
246
|
+
422: {
|
247
|
+
type: "validation";
|
248
|
+
on: string;
|
249
|
+
summary?: string;
|
250
|
+
message?: string;
|
251
|
+
found?: unknown;
|
252
|
+
property?: string;
|
253
|
+
expected?: string;
|
254
|
+
};
|
303
255
|
};
|
304
256
|
};
|
305
257
|
};
|
@@ -313,27 +265,30 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
313
265
|
body: unknown;
|
314
266
|
params: {};
|
315
267
|
query: {
|
316
|
-
status?: string | undefined;
|
317
|
-
search?: string | undefined;
|
318
268
|
sort?: string | undefined;
|
319
|
-
type?: string | undefined;
|
320
269
|
name?: string | undefined;
|
321
270
|
tokens?: string | undefined;
|
322
|
-
items?: number | undefined;
|
323
|
-
tags?: string | undefined;
|
324
|
-
identifier?: string | undefined;
|
325
|
-
page?: number | undefined;
|
326
|
-
action?: string | undefined;
|
327
271
|
campaignId?: string | undefined;
|
328
|
-
|
272
|
+
status?: string | undefined;
|
329
273
|
chainId?: string | undefined;
|
330
|
-
mainProtocolId?: string | undefined;
|
331
274
|
campaigns?: boolean | undefined;
|
275
|
+
items?: number | undefined;
|
332
276
|
point?: boolean | undefined;
|
333
|
-
rewardTokenSymbol?: string | undefined;
|
334
277
|
order?: string | undefined;
|
278
|
+
action?: string | undefined;
|
279
|
+
type?: string | undefined;
|
280
|
+
search?: string | undefined;
|
281
|
+
creatorAddress?: string | undefined;
|
282
|
+
mainProtocolId?: string | undefined;
|
283
|
+
identifier?: string | undefined;
|
284
|
+
tags?: string | undefined;
|
285
|
+
page?: number | undefined;
|
335
286
|
test?: boolean | undefined;
|
336
287
|
minimumTvl?: number | undefined;
|
288
|
+
maximumTvl?: number | undefined;
|
289
|
+
minimumApr?: number | undefined;
|
290
|
+
maximumApr?: number | undefined;
|
291
|
+
rewardTokenSymbol?: string | undefined;
|
337
292
|
};
|
338
293
|
headers: unknown;
|
339
294
|
response: {
|
@@ -343,6 +298,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
343
298
|
binWidth: number;
|
344
299
|
bins: any[];
|
345
300
|
};
|
301
|
+
422: {
|
302
|
+
type: "validation";
|
303
|
+
on: string;
|
304
|
+
summary?: string;
|
305
|
+
message?: string;
|
306
|
+
found?: unknown;
|
307
|
+
property?: string;
|
308
|
+
expected?: string;
|
309
|
+
};
|
346
310
|
};
|
347
311
|
};
|
348
312
|
};
|
@@ -364,104 +328,118 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
364
328
|
headers: unknown;
|
365
329
|
response: {
|
366
330
|
200: {
|
331
|
+
depositUrl?: string | undefined;
|
367
332
|
protocol?: {
|
368
|
-
url: string;
|
369
333
|
name: string;
|
370
334
|
description: string;
|
371
335
|
id: string;
|
372
|
-
|
336
|
+
url: string;
|
373
337
|
icon: string;
|
338
|
+
tags: string[];
|
374
339
|
} | null | undefined;
|
375
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
376
|
-
depositUrl?: string | undefined;
|
377
340
|
explorerAddress?: string | undefined;
|
341
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
378
342
|
aprRecord?: {
|
379
343
|
timestamp: string | bigint;
|
380
344
|
cumulated: number;
|
381
345
|
breakdowns: {
|
346
|
+
value: number;
|
382
347
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
383
348
|
identifier: string;
|
384
|
-
value: number;
|
385
349
|
}[];
|
386
350
|
} | undefined;
|
387
351
|
tvlRecord?: {
|
388
|
-
total: number;
|
389
352
|
timestamp: string | bigint;
|
353
|
+
total: number;
|
390
354
|
breakdowns: {
|
355
|
+
value: number;
|
391
356
|
type: "TOKEN" | "PROTOCOL";
|
392
357
|
identifier: string;
|
393
|
-
value: number;
|
394
358
|
}[];
|
395
359
|
} | undefined;
|
396
360
|
rewardsRecord?: {
|
397
|
-
total: number;
|
398
361
|
id: string;
|
399
362
|
timestamp: string | bigint;
|
363
|
+
total: number;
|
400
364
|
breakdowns: {
|
401
365
|
token: {
|
402
366
|
price?: number | null | undefined;
|
403
367
|
symbol: string;
|
404
368
|
name: string | null;
|
405
|
-
|
406
|
-
icon: string;
|
369
|
+
decimals: number;
|
407
370
|
address: string;
|
371
|
+
id: string;
|
408
372
|
chainId: number;
|
409
|
-
|
410
|
-
verified: boolean;
|
411
|
-
isTest: boolean;
|
373
|
+
icon: string;
|
412
374
|
isPoint: boolean;
|
413
375
|
isPreTGE: boolean;
|
376
|
+
isTest: boolean;
|
377
|
+
verified: boolean;
|
414
378
|
};
|
379
|
+
campaignId: string;
|
415
380
|
id: string;
|
416
381
|
value: number;
|
417
|
-
campaignId: string;
|
418
382
|
amount: string | bigint;
|
419
383
|
dailyRewardsRecordId: string;
|
420
384
|
}[];
|
421
385
|
} | undefined;
|
422
|
-
status: string;
|
423
|
-
type: string;
|
424
386
|
name: string;
|
387
|
+
apr: number;
|
425
388
|
tokens: {
|
426
389
|
price?: number | null | undefined;
|
427
390
|
symbol: string;
|
428
391
|
name: string | null;
|
429
|
-
|
430
|
-
icon: string;
|
392
|
+
decimals: number;
|
431
393
|
address: string;
|
394
|
+
id: string;
|
432
395
|
chainId: number;
|
433
|
-
|
434
|
-
verified: boolean;
|
435
|
-
isTest: boolean;
|
396
|
+
icon: string;
|
436
397
|
isPoint: boolean;
|
437
398
|
isPreTGE: boolean;
|
399
|
+
isTest: boolean;
|
400
|
+
verified: boolean;
|
438
401
|
}[];
|
402
|
+
tvl: number;
|
439
403
|
description: string;
|
440
404
|
id: string;
|
441
|
-
|
405
|
+
status: string;
|
406
|
+
chainId: number;
|
407
|
+
action: string;
|
408
|
+
type: string;
|
409
|
+
howToSteps: string[];
|
442
410
|
identifier: string;
|
411
|
+
dailyRewards: number;
|
412
|
+
tags: string[];
|
413
|
+
lastCampaignCreatedAt: string;
|
443
414
|
chain: {
|
415
|
+
explorers?: {
|
416
|
+
chainId: number;
|
417
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
418
|
+
url: string;
|
419
|
+
}[] | undefined;
|
444
420
|
name: string;
|
445
421
|
id: number;
|
446
422
|
icon: string;
|
447
423
|
};
|
448
|
-
action: string;
|
449
|
-
chainId: number;
|
450
|
-
howToSteps: string[];
|
451
|
-
tvl: number;
|
452
|
-
apr: number;
|
453
|
-
dailyRewards: number;
|
454
|
-
lastCampaignCreatedAt: string;
|
455
|
-
};
|
456
|
-
readonly 404: {
|
457
|
-
message: string;
|
458
|
-
name: string;
|
459
424
|
};
|
460
425
|
readonly 500: {
|
461
426
|
info: string;
|
462
427
|
code: string;
|
463
428
|
httpCode: number;
|
464
429
|
};
|
430
|
+
readonly 404: {
|
431
|
+
name: string;
|
432
|
+
message: string;
|
433
|
+
};
|
434
|
+
422: {
|
435
|
+
type: "validation";
|
436
|
+
on: string;
|
437
|
+
summary?: string;
|
438
|
+
message?: string;
|
439
|
+
found?: unknown;
|
440
|
+
property?: string;
|
441
|
+
expected?: string;
|
442
|
+
};
|
465
443
|
};
|
466
444
|
};
|
467
445
|
};
|
@@ -473,123 +451,111 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
473
451
|
body: unknown;
|
474
452
|
params: {};
|
475
453
|
query: {
|
476
|
-
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
477
|
-
type?: string | undefined;
|
478
|
-
id?: string | undefined;
|
479
|
-
items?: number | undefined;
|
480
|
-
subType?: number | undefined;
|
481
|
-
page?: number | undefined;
|
482
|
-
types?: string[] | undefined;
|
483
454
|
campaignId?: string | undefined;
|
484
|
-
|
455
|
+
id?: string | undefined;
|
456
|
+
tokenAddress?: string | undefined;
|
457
|
+
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
458
|
+
chainId?: number | undefined;
|
485
459
|
startTimestamp?: string | undefined;
|
460
|
+
items?: number | undefined;
|
461
|
+
point?: boolean | undefined;
|
462
|
+
tokenSymbol?: string | undefined;
|
463
|
+
type?: string | undefined;
|
486
464
|
endTimestamp?: string | undefined;
|
465
|
+
opportunityId?: string | undefined;
|
487
466
|
creatorAddress?: string | undefined;
|
467
|
+
subType?: number | undefined;
|
488
468
|
rootCampaignId?: string | undefined;
|
489
469
|
parentCampaignId?: string | undefined;
|
490
|
-
chainId?: number | undefined;
|
491
470
|
creatorId?: string | undefined;
|
492
471
|
mainParameter?: string | undefined;
|
493
|
-
|
494
|
-
tokenAddress?: string | undefined;
|
472
|
+
page?: number | undefined;
|
495
473
|
test?: boolean | undefined;
|
496
474
|
creatorTag?: string | undefined;
|
497
475
|
distributionChainIds?: number[] | undefined;
|
498
|
-
|
476
|
+
types?: string[] | undefined;
|
499
477
|
withOpportunity?: boolean | undefined;
|
500
478
|
createdAfter?: Date | null | undefined;
|
501
479
|
};
|
502
480
|
headers: unknown;
|
503
481
|
response: {
|
504
482
|
200: {
|
483
|
+
depositUrl?: string | undefined;
|
505
484
|
protocol?: {
|
506
|
-
url: string;
|
507
485
|
name: string;
|
508
486
|
description: string;
|
509
487
|
id: string;
|
510
|
-
|
488
|
+
url: string;
|
511
489
|
icon: string;
|
490
|
+
tags: string[];
|
512
491
|
} | null | undefined;
|
513
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
514
|
-
depositUrl?: string | undefined;
|
515
492
|
explorerAddress?: string | undefined;
|
493
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
516
494
|
aprRecord?: {
|
517
495
|
timestamp: string | bigint;
|
518
496
|
cumulated: number;
|
519
497
|
breakdowns: {
|
498
|
+
value: number;
|
520
499
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
521
500
|
identifier: string;
|
522
|
-
value: number;
|
523
501
|
}[];
|
524
502
|
} | undefined;
|
525
503
|
tvlRecord?: {
|
526
|
-
total: number;
|
527
504
|
timestamp: string | bigint;
|
505
|
+
total: number;
|
528
506
|
breakdowns: {
|
507
|
+
value: number;
|
529
508
|
type: "TOKEN" | "PROTOCOL";
|
530
509
|
identifier: string;
|
531
|
-
value: number;
|
532
510
|
}[];
|
533
511
|
} | undefined;
|
534
512
|
rewardsRecord?: {
|
535
|
-
total: number;
|
536
513
|
id: string;
|
537
514
|
timestamp: string | bigint;
|
515
|
+
total: number;
|
538
516
|
breakdowns: {
|
539
517
|
token: {
|
540
518
|
price?: number | null | undefined;
|
541
519
|
symbol: string;
|
542
520
|
name: string | null;
|
543
|
-
|
544
|
-
icon: string;
|
521
|
+
decimals: number;
|
545
522
|
address: string;
|
523
|
+
id: string;
|
546
524
|
chainId: number;
|
547
|
-
|
548
|
-
verified: boolean;
|
549
|
-
isTest: boolean;
|
525
|
+
icon: string;
|
550
526
|
isPoint: boolean;
|
551
527
|
isPreTGE: boolean;
|
528
|
+
isTest: boolean;
|
529
|
+
verified: boolean;
|
552
530
|
};
|
531
|
+
campaignId: string;
|
553
532
|
id: string;
|
554
533
|
value: number;
|
555
|
-
campaignId: string;
|
556
534
|
amount: string | bigint;
|
557
535
|
dailyRewardsRecordId: string;
|
558
536
|
}[];
|
559
537
|
} | undefined;
|
560
|
-
status: string;
|
561
|
-
type: string;
|
562
538
|
name: string;
|
539
|
+
apr: number;
|
563
540
|
tokens: {
|
564
541
|
price?: number | null | undefined;
|
565
542
|
symbol: string;
|
566
543
|
name: string | null;
|
567
|
-
|
568
|
-
icon: string;
|
544
|
+
decimals: number;
|
569
545
|
address: string;
|
546
|
+
id: string;
|
570
547
|
chainId: number;
|
571
|
-
|
572
|
-
verified: boolean;
|
573
|
-
isTest: boolean;
|
548
|
+
icon: string;
|
574
549
|
isPoint: boolean;
|
575
550
|
isPreTGE: boolean;
|
551
|
+
isTest: boolean;
|
552
|
+
verified: boolean;
|
576
553
|
}[];
|
554
|
+
tvl: number;
|
577
555
|
description: string;
|
578
556
|
id: string;
|
579
|
-
|
580
|
-
identifier: string;
|
581
|
-
chain: {
|
582
|
-
name: string;
|
583
|
-
id: number;
|
584
|
-
icon: string;
|
585
|
-
};
|
586
|
-
action: string;
|
557
|
+
status: string;
|
587
558
|
chainId: number;
|
588
|
-
howToSteps: string[];
|
589
|
-
tvl: number;
|
590
|
-
apr: number;
|
591
|
-
dailyRewards: number;
|
592
|
-
lastCampaignCreatedAt: string;
|
593
559
|
campaigns: {
|
594
560
|
description?: string | undefined;
|
595
561
|
creator?: {
|
@@ -602,60 +568,96 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
602
568
|
campaignStatus?: {
|
603
569
|
error?: string | undefined;
|
604
570
|
details?: any;
|
605
|
-
status: string;
|
606
571
|
campaignId: string;
|
572
|
+
status: string;
|
607
573
|
computedUntil: string | number;
|
608
574
|
processingStarted: string | number;
|
609
575
|
} | undefined;
|
610
576
|
distributionChain?: {
|
577
|
+
explorers?: {
|
578
|
+
chainId: number;
|
579
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
580
|
+
url: string;
|
581
|
+
}[] | undefined;
|
611
582
|
name: string;
|
612
583
|
id: number;
|
613
584
|
icon: string;
|
614
585
|
} | undefined;
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
id:
|
586
|
+
rewardToken: {
|
587
|
+
price?: number | null | undefined;
|
588
|
+
symbol: string;
|
589
|
+
name: string | null;
|
590
|
+
decimals: number;
|
591
|
+
address: string;
|
592
|
+
id: string;
|
593
|
+
chainId: number;
|
622
594
|
icon: string;
|
595
|
+
isPoint: boolean;
|
596
|
+
isPreTGE: boolean;
|
597
|
+
isTest: boolean;
|
598
|
+
verified: boolean;
|
623
599
|
};
|
624
|
-
computeChainId: number;
|
625
|
-
distributionChainId: number;
|
626
600
|
campaignId: string;
|
627
|
-
|
601
|
+
id: string;
|
602
|
+
params: any;
|
628
603
|
amount: string;
|
629
|
-
opportunityId: string;
|
630
604
|
startTimestamp: string | number;
|
605
|
+
type: string;
|
606
|
+
computeChainId: number;
|
607
|
+
distributionChainId: number;
|
631
608
|
endTimestamp: string | number;
|
609
|
+
opportunityId: string;
|
632
610
|
creatorAddress: string;
|
611
|
+
subType: number | null;
|
612
|
+
rewardTokenId: string;
|
633
613
|
createdAt: string;
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
614
|
+
chain: {
|
615
|
+
explorers?: {
|
616
|
+
chainId: number;
|
617
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
618
|
+
url: string;
|
619
|
+
}[] | undefined;
|
620
|
+
name: string;
|
621
|
+
id: number;
|
639
622
|
icon: string;
|
640
|
-
address: string;
|
641
|
-
chainId: number;
|
642
|
-
decimals: number;
|
643
|
-
verified: boolean;
|
644
|
-
isTest: boolean;
|
645
|
-
isPoint: boolean;
|
646
|
-
isPreTGE: boolean;
|
647
623
|
};
|
648
624
|
}[];
|
625
|
+
action: string;
|
626
|
+
type: string;
|
627
|
+
howToSteps: string[];
|
628
|
+
identifier: string;
|
629
|
+
dailyRewards: number;
|
630
|
+
tags: string[];
|
631
|
+
lastCampaignCreatedAt: string;
|
632
|
+
chain: {
|
633
|
+
explorers?: {
|
634
|
+
chainId: number;
|
635
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
636
|
+
url: string;
|
637
|
+
}[] | undefined;
|
638
|
+
name: string;
|
639
|
+
id: number;
|
640
|
+
icon: string;
|
641
|
+
};
|
649
642
|
}[];
|
650
|
-
readonly 404: {
|
651
|
-
message: string;
|
652
|
-
name: string;
|
653
|
-
};
|
654
643
|
readonly 500: {
|
655
644
|
info: string;
|
656
645
|
code: string;
|
657
646
|
httpCode: number;
|
658
647
|
};
|
648
|
+
readonly 404: {
|
649
|
+
name: string;
|
650
|
+
message: string;
|
651
|
+
};
|
652
|
+
422: {
|
653
|
+
type: "validation";
|
654
|
+
on: string;
|
655
|
+
summary?: string;
|
656
|
+
message?: string;
|
657
|
+
found?: unknown;
|
658
|
+
property?: string;
|
659
|
+
expected?: string;
|
660
|
+
};
|
659
661
|
};
|
660
662
|
};
|
661
663
|
};
|
@@ -677,94 +679,82 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
677
679
|
headers: unknown;
|
678
680
|
response: {
|
679
681
|
200: {
|
682
|
+
depositUrl?: string | undefined;
|
680
683
|
protocol?: {
|
681
|
-
url: string;
|
682
684
|
name: string;
|
683
685
|
description: string;
|
684
686
|
id: string;
|
685
|
-
|
687
|
+
url: string;
|
686
688
|
icon: string;
|
689
|
+
tags: string[];
|
687
690
|
} | null | undefined;
|
688
|
-
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
689
|
-
depositUrl?: string | undefined;
|
690
691
|
explorerAddress?: string | undefined;
|
692
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
691
693
|
aprRecord?: {
|
692
694
|
timestamp: string | bigint;
|
693
695
|
cumulated: number;
|
694
696
|
breakdowns: {
|
697
|
+
value: number;
|
695
698
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
696
699
|
identifier: string;
|
697
|
-
value: number;
|
698
700
|
}[];
|
699
701
|
} | undefined;
|
700
702
|
tvlRecord?: {
|
701
|
-
total: number;
|
702
703
|
timestamp: string | bigint;
|
704
|
+
total: number;
|
703
705
|
breakdowns: {
|
706
|
+
value: number;
|
704
707
|
type: "TOKEN" | "PROTOCOL";
|
705
708
|
identifier: string;
|
706
|
-
value: number;
|
707
709
|
}[];
|
708
710
|
} | undefined;
|
709
711
|
rewardsRecord?: {
|
710
|
-
total: number;
|
711
712
|
id: string;
|
712
713
|
timestamp: string | bigint;
|
714
|
+
total: number;
|
713
715
|
breakdowns: {
|
714
716
|
token: {
|
715
717
|
price?: number | null | undefined;
|
716
718
|
symbol: string;
|
717
719
|
name: string | null;
|
718
|
-
|
719
|
-
icon: string;
|
720
|
+
decimals: number;
|
720
721
|
address: string;
|
722
|
+
id: string;
|
721
723
|
chainId: number;
|
722
|
-
|
723
|
-
verified: boolean;
|
724
|
-
isTest: boolean;
|
724
|
+
icon: string;
|
725
725
|
isPoint: boolean;
|
726
726
|
isPreTGE: boolean;
|
727
|
+
isTest: boolean;
|
728
|
+
verified: boolean;
|
727
729
|
};
|
730
|
+
campaignId: string;
|
728
731
|
id: string;
|
729
732
|
value: number;
|
730
|
-
campaignId: string;
|
731
733
|
amount: string | bigint;
|
732
734
|
dailyRewardsRecordId: string;
|
733
735
|
}[];
|
734
736
|
} | undefined;
|
735
|
-
status: string;
|
736
|
-
type: string;
|
737
737
|
name: string;
|
738
|
+
apr: number;
|
738
739
|
tokens: {
|
739
740
|
price?: number | null | undefined;
|
740
741
|
symbol: string;
|
741
742
|
name: string | null;
|
742
|
-
|
743
|
-
icon: string;
|
743
|
+
decimals: number;
|
744
744
|
address: string;
|
745
|
+
id: string;
|
745
746
|
chainId: number;
|
746
|
-
|
747
|
-
verified: boolean;
|
748
|
-
isTest: boolean;
|
747
|
+
icon: string;
|
749
748
|
isPoint: boolean;
|
750
749
|
isPreTGE: boolean;
|
750
|
+
isTest: boolean;
|
751
|
+
verified: boolean;
|
751
752
|
}[];
|
753
|
+
tvl: number;
|
752
754
|
description: string;
|
753
755
|
id: string;
|
754
|
-
|
755
|
-
identifier: string;
|
756
|
-
chain: {
|
757
|
-
name: string;
|
758
|
-
id: number;
|
759
|
-
icon: string;
|
760
|
-
};
|
761
|
-
action: string;
|
756
|
+
status: string;
|
762
757
|
chainId: number;
|
763
|
-
howToSteps: string[];
|
764
|
-
tvl: number;
|
765
|
-
apr: number;
|
766
|
-
dailyRewards: number;
|
767
|
-
lastCampaignCreatedAt: string;
|
768
758
|
campaigns: {
|
769
759
|
description?: string | undefined;
|
770
760
|
creator?: {
|
@@ -777,60 +767,96 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
777
767
|
campaignStatus?: {
|
778
768
|
error?: string | undefined;
|
779
769
|
details?: any;
|
780
|
-
status: string;
|
781
770
|
campaignId: string;
|
771
|
+
status: string;
|
782
772
|
computedUntil: string | number;
|
783
773
|
processingStarted: string | number;
|
784
774
|
} | undefined;
|
785
775
|
distributionChain?: {
|
776
|
+
explorers?: {
|
777
|
+
chainId: number;
|
778
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
779
|
+
url: string;
|
780
|
+
}[] | undefined;
|
786
781
|
name: string;
|
787
782
|
id: number;
|
788
783
|
icon: string;
|
789
784
|
} | undefined;
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
id:
|
785
|
+
rewardToken: {
|
786
|
+
price?: number | null | undefined;
|
787
|
+
symbol: string;
|
788
|
+
name: string | null;
|
789
|
+
decimals: number;
|
790
|
+
address: string;
|
791
|
+
id: string;
|
792
|
+
chainId: number;
|
797
793
|
icon: string;
|
794
|
+
isPoint: boolean;
|
795
|
+
isPreTGE: boolean;
|
796
|
+
isTest: boolean;
|
797
|
+
verified: boolean;
|
798
798
|
};
|
799
|
-
computeChainId: number;
|
800
|
-
distributionChainId: number;
|
801
799
|
campaignId: string;
|
802
|
-
|
800
|
+
id: string;
|
801
|
+
params: any;
|
803
802
|
amount: string;
|
804
|
-
opportunityId: string;
|
805
803
|
startTimestamp: string | number;
|
804
|
+
type: string;
|
805
|
+
computeChainId: number;
|
806
|
+
distributionChainId: number;
|
806
807
|
endTimestamp: string | number;
|
808
|
+
opportunityId: string;
|
807
809
|
creatorAddress: string;
|
810
|
+
subType: number | null;
|
811
|
+
rewardTokenId: string;
|
808
812
|
createdAt: string;
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
813
|
+
chain: {
|
814
|
+
explorers?: {
|
815
|
+
chainId: number;
|
816
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
817
|
+
url: string;
|
818
|
+
}[] | undefined;
|
819
|
+
name: string;
|
820
|
+
id: number;
|
814
821
|
icon: string;
|
815
|
-
address: string;
|
816
|
-
chainId: number;
|
817
|
-
decimals: number;
|
818
|
-
verified: boolean;
|
819
|
-
isTest: boolean;
|
820
|
-
isPoint: boolean;
|
821
|
-
isPreTGE: boolean;
|
822
822
|
};
|
823
823
|
}[];
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
824
|
+
action: string;
|
825
|
+
type: string;
|
826
|
+
howToSteps: string[];
|
827
|
+
identifier: string;
|
828
|
+
dailyRewards: number;
|
829
|
+
tags: string[];
|
830
|
+
lastCampaignCreatedAt: string;
|
831
|
+
chain: {
|
832
|
+
explorers?: {
|
833
|
+
chainId: number;
|
834
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
835
|
+
url: string;
|
836
|
+
}[] | undefined;
|
837
|
+
name: string;
|
838
|
+
id: number;
|
839
|
+
icon: string;
|
840
|
+
};
|
828
841
|
};
|
829
842
|
readonly 500: {
|
830
843
|
info: string;
|
831
844
|
code: string;
|
832
845
|
httpCode: number;
|
833
846
|
};
|
847
|
+
readonly 404: {
|
848
|
+
name: string;
|
849
|
+
message: string;
|
850
|
+
};
|
851
|
+
422: {
|
852
|
+
type: "validation";
|
853
|
+
on: string;
|
854
|
+
summary?: string;
|
855
|
+
message?: string;
|
856
|
+
found?: unknown;
|
857
|
+
property?: string;
|
858
|
+
expected?: string;
|
859
|
+
};
|
834
860
|
};
|
835
861
|
};
|
836
862
|
};
|
@@ -846,33 +872,45 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
846
872
|
field: never;
|
847
873
|
};
|
848
874
|
query: {
|
849
|
-
status?: string | undefined;
|
850
|
-
search?: string | undefined;
|
851
875
|
sort?: string | undefined;
|
852
|
-
type?: string | undefined;
|
853
876
|
name?: string | undefined;
|
854
877
|
tokens?: string | undefined;
|
855
|
-
items?: number | undefined;
|
856
|
-
tags?: string | undefined;
|
857
|
-
identifier?: string | undefined;
|
858
|
-
page?: number | undefined;
|
859
|
-
action?: string | undefined;
|
860
878
|
campaignId?: string | undefined;
|
861
|
-
|
879
|
+
status?: string | undefined;
|
862
880
|
chainId?: string | undefined;
|
863
|
-
mainProtocolId?: string | undefined;
|
864
881
|
campaigns?: boolean | undefined;
|
882
|
+
items?: number | undefined;
|
865
883
|
point?: boolean | undefined;
|
866
|
-
rewardTokenSymbol?: string | undefined;
|
867
884
|
order?: string | undefined;
|
885
|
+
action?: string | undefined;
|
886
|
+
type?: string | undefined;
|
887
|
+
search?: string | undefined;
|
888
|
+
creatorAddress?: string | undefined;
|
889
|
+
mainProtocolId?: string | undefined;
|
890
|
+
identifier?: string | undefined;
|
891
|
+
tags?: string | undefined;
|
892
|
+
page?: number | undefined;
|
868
893
|
test?: boolean | undefined;
|
869
894
|
minimumTvl?: number | undefined;
|
895
|
+
maximumTvl?: number | undefined;
|
896
|
+
minimumApr?: number | undefined;
|
897
|
+
maximumApr?: number | undefined;
|
898
|
+
rewardTokenSymbol?: string | undefined;
|
870
899
|
};
|
871
900
|
headers: unknown;
|
872
901
|
response: {
|
873
902
|
200: {
|
874
903
|
sum: string;
|
875
904
|
};
|
905
|
+
422: {
|
906
|
+
type: "validation";
|
907
|
+
on: string;
|
908
|
+
summary?: string;
|
909
|
+
message?: string;
|
910
|
+
found?: unknown;
|
911
|
+
property?: string;
|
912
|
+
expected?: string;
|
913
|
+
};
|
876
914
|
};
|
877
915
|
};
|
878
916
|
};
|
@@ -889,33 +927,45 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
889
927
|
field: never;
|
890
928
|
};
|
891
929
|
query: {
|
892
|
-
status?: string | undefined;
|
893
|
-
search?: string | undefined;
|
894
930
|
sort?: string | undefined;
|
895
|
-
type?: string | undefined;
|
896
931
|
name?: string | undefined;
|
897
932
|
tokens?: string | undefined;
|
898
|
-
items?: number | undefined;
|
899
|
-
tags?: string | undefined;
|
900
|
-
identifier?: string | undefined;
|
901
|
-
page?: number | undefined;
|
902
|
-
action?: string | undefined;
|
903
933
|
campaignId?: string | undefined;
|
904
|
-
|
934
|
+
status?: string | undefined;
|
905
935
|
chainId?: string | undefined;
|
906
|
-
mainProtocolId?: string | undefined;
|
907
936
|
campaigns?: boolean | undefined;
|
937
|
+
items?: number | undefined;
|
908
938
|
point?: boolean | undefined;
|
909
|
-
rewardTokenSymbol?: string | undefined;
|
910
939
|
order?: string | undefined;
|
940
|
+
action?: string | undefined;
|
941
|
+
type?: string | undefined;
|
942
|
+
search?: string | undefined;
|
943
|
+
creatorAddress?: string | undefined;
|
944
|
+
mainProtocolId?: string | undefined;
|
945
|
+
identifier?: string | undefined;
|
946
|
+
tags?: string | undefined;
|
947
|
+
page?: number | undefined;
|
911
948
|
test?: boolean | undefined;
|
912
949
|
minimumTvl?: number | undefined;
|
950
|
+
maximumTvl?: number | undefined;
|
951
|
+
minimumApr?: number | undefined;
|
952
|
+
maximumApr?: number | undefined;
|
953
|
+
rewardTokenSymbol?: string | undefined;
|
913
954
|
};
|
914
955
|
headers: unknown;
|
915
956
|
response: {
|
916
957
|
200: {
|
917
958
|
max: string;
|
918
959
|
};
|
960
|
+
422: {
|
961
|
+
type: "validation";
|
962
|
+
on: string;
|
963
|
+
summary?: string;
|
964
|
+
message?: string;
|
965
|
+
found?: unknown;
|
966
|
+
property?: string;
|
967
|
+
expected?: string;
|
968
|
+
};
|
919
969
|
};
|
920
970
|
};
|
921
971
|
};
|
@@ -933,112 +983,131 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
933
983
|
field: never;
|
934
984
|
};
|
935
985
|
query: {
|
936
|
-
status?: string | undefined;
|
937
|
-
search?: string | undefined;
|
938
986
|
sort?: string | undefined;
|
939
|
-
type?: string | undefined;
|
940
987
|
name?: string | undefined;
|
941
988
|
tokens?: string | undefined;
|
942
|
-
items?: number | undefined;
|
943
|
-
tags?: string | undefined;
|
944
|
-
identifier?: string | undefined;
|
945
|
-
page?: number | undefined;
|
946
|
-
action?: string | undefined;
|
947
989
|
campaignId?: string | undefined;
|
948
|
-
|
990
|
+
status?: string | undefined;
|
949
991
|
chainId?: string | undefined;
|
950
|
-
mainProtocolId?: string | undefined;
|
951
992
|
campaigns?: boolean | undefined;
|
993
|
+
items?: number | undefined;
|
952
994
|
point?: boolean | undefined;
|
953
|
-
rewardTokenSymbol?: string | undefined;
|
954
995
|
order?: string | undefined;
|
996
|
+
action?: string | undefined;
|
997
|
+
type?: string | undefined;
|
998
|
+
search?: string | undefined;
|
999
|
+
creatorAddress?: string | undefined;
|
1000
|
+
mainProtocolId?: string | undefined;
|
1001
|
+
identifier?: string | undefined;
|
1002
|
+
tags?: string | undefined;
|
1003
|
+
page?: number | undefined;
|
955
1004
|
test?: boolean | undefined;
|
956
|
-
minimumTvl?: number | undefined;
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1005
|
+
minimumTvl?: number | undefined;
|
1006
|
+
maximumTvl?: number | undefined;
|
1007
|
+
minimumApr?: number | undefined;
|
1008
|
+
maximumApr?: number | undefined;
|
1009
|
+
rewardTokenSymbol?: string | undefined;
|
1010
|
+
};
|
1011
|
+
headers: unknown;
|
1012
|
+
response: {
|
1013
|
+
200: {
|
1014
|
+
min: string;
|
1015
|
+
};
|
1016
|
+
422: {
|
1017
|
+
type: "validation";
|
1018
|
+
on: string;
|
1019
|
+
summary?: string;
|
1020
|
+
message?: string;
|
1021
|
+
found?: unknown;
|
1022
|
+
property?: string;
|
1023
|
+
expected?: string;
|
1024
|
+
};
|
1025
|
+
};
|
1026
|
+
};
|
1027
|
+
};
|
1028
|
+
};
|
1029
|
+
};
|
1030
|
+
};
|
1031
|
+
} & {
|
1032
|
+
opportunities: {
|
1033
|
+
post: {
|
1034
|
+
body: {
|
1035
|
+
name?: string | undefined;
|
1036
|
+
description?: string | undefined;
|
1037
|
+
depositUrl?: string | undefined;
|
1038
|
+
explorerAddress?: string | undefined;
|
1039
|
+
howToSteps?: string[] | undefined;
|
1040
|
+
tags?: string[] | undefined;
|
1041
|
+
protocols?: string[] | undefined;
|
1042
|
+
mainProtocol?: string | undefined;
|
1043
|
+
tokens: {
|
1044
|
+
address: string;
|
1045
|
+
chainId: number;
|
1046
|
+
}[];
|
1047
|
+
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
1048
|
+
chainId: number;
|
1049
|
+
action: "POOL" | "INVALID" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP";
|
1050
|
+
type: string;
|
1051
|
+
identifier: string;
|
1052
|
+
};
|
1053
|
+
params: {};
|
1054
|
+
query: unknown;
|
1055
|
+
headers: {
|
1056
|
+
authorization: string;
|
1057
|
+
};
|
1058
|
+
response: {
|
1059
|
+
200: {
|
1060
|
+
Tokens: {
|
1061
|
+
symbol: string;
|
1062
|
+
name: string | null;
|
1063
|
+
decimals: number;
|
1064
|
+
price: number | null;
|
1065
|
+
address: string;
|
1066
|
+
id: string;
|
1067
|
+
chainId: number;
|
1068
|
+
icon: string;
|
1069
|
+
isNative: boolean;
|
1070
|
+
isPoint: boolean;
|
1071
|
+
isPreTGE: boolean;
|
1072
|
+
isTest: boolean;
|
1073
|
+
verified: boolean;
|
1074
|
+
displaySymbol: string;
|
1075
|
+
}[];
|
1076
|
+
Protocols: {
|
1025
1077
|
name: string;
|
1026
1078
|
description: string;
|
1027
1079
|
id: string;
|
1080
|
+
url: string;
|
1081
|
+
icon: string;
|
1028
1082
|
tags: string[];
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1083
|
+
}[];
|
1084
|
+
name: string;
|
1085
|
+
apr: number;
|
1086
|
+
tvl: number;
|
1087
|
+
description: string;
|
1088
|
+
id: string;
|
1089
|
+
status: import("@package/databases").Status;
|
1090
|
+
chainId: number;
|
1091
|
+
action: import("@package/databases").OpportunityAction;
|
1092
|
+
type: string;
|
1093
|
+
depositUrl: string | null;
|
1094
|
+
explorerAddress: string | null;
|
1095
|
+
howToSteps: string[];
|
1096
|
+
mainProtocolId: string | null;
|
1097
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1098
|
+
identifier: string;
|
1099
|
+
dailyRewards: number;
|
1100
|
+
tags: string[];
|
1101
|
+
lastCampaignCreatedAt: Date;
|
1102
|
+
};
|
1103
|
+
422: {
|
1104
|
+
type: "validation";
|
1105
|
+
on: string;
|
1106
|
+
summary?: string;
|
1107
|
+
message?: string;
|
1108
|
+
found?: unknown;
|
1109
|
+
property?: string;
|
1110
|
+
expected?: string;
|
1042
1111
|
};
|
1043
1112
|
};
|
1044
1113
|
};
|
@@ -1058,78 +1127,87 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1058
1127
|
};
|
1059
1128
|
response: {
|
1060
1129
|
200: {
|
1061
|
-
|
1130
|
+
id: string;
|
1131
|
+
chainId: number;
|
1132
|
+
type: string;
|
1133
|
+
identifier: string;
|
1134
|
+
name: string;
|
1135
|
+
status: "PAST" | "LIVE" | "SOON";
|
1136
|
+
action: any;
|
1137
|
+
tokens: ({
|
1062
1138
|
symbol: string;
|
1063
1139
|
name: string | null;
|
1140
|
+
decimals: number;
|
1141
|
+
address: string;
|
1064
1142
|
id: string;
|
1143
|
+
chainId: number;
|
1065
1144
|
icon: string;
|
1145
|
+
isNative: boolean;
|
1146
|
+
isPoint: boolean;
|
1147
|
+
isPreTGE: boolean;
|
1148
|
+
isTest: boolean;
|
1149
|
+
verified: boolean;
|
1150
|
+
} & {
|
1151
|
+
price?: number | null | undefined;
|
1152
|
+
})[];
|
1153
|
+
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
|
1154
|
+
description: string;
|
1155
|
+
howToSteps: string[];
|
1156
|
+
depositUrl: string | undefined;
|
1157
|
+
explorerAddress: string | undefined;
|
1158
|
+
tags: string[];
|
1159
|
+
} | {
|
1160
|
+
Tokens: {
|
1161
|
+
symbol: string;
|
1162
|
+
name: string | null;
|
1163
|
+
decimals: number;
|
1164
|
+
price: number | null;
|
1066
1165
|
address: string;
|
1166
|
+
id: string;
|
1067
1167
|
chainId: number;
|
1068
|
-
|
1069
|
-
|
1070
|
-
verified: boolean;
|
1071
|
-
isTest: boolean;
|
1168
|
+
icon: string;
|
1169
|
+
isNative: boolean;
|
1072
1170
|
isPoint: boolean;
|
1073
1171
|
isPreTGE: boolean;
|
1074
|
-
|
1075
|
-
|
1172
|
+
isTest: boolean;
|
1173
|
+
verified: boolean;
|
1174
|
+
displaySymbol: string;
|
1076
1175
|
}[];
|
1077
1176
|
Protocols: {
|
1078
|
-
url: string;
|
1079
1177
|
name: string;
|
1080
1178
|
description: string;
|
1081
1179
|
id: string;
|
1082
|
-
|
1180
|
+
url: string;
|
1083
1181
|
icon: string;
|
1182
|
+
tags: string[];
|
1084
1183
|
}[];
|
1085
|
-
status: import("@db/api").$Enums.Status;
|
1086
|
-
type: string;
|
1087
1184
|
name: string;
|
1185
|
+
apr: number;
|
1186
|
+
tvl: number;
|
1088
1187
|
description: string;
|
1089
1188
|
id: string;
|
1090
|
-
|
1091
|
-
identifier: string;
|
1092
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
1093
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1189
|
+
status: import("@package/databases").Status;
|
1094
1190
|
chainId: number;
|
1095
|
-
|
1191
|
+
action: import("@package/databases").OpportunityAction;
|
1192
|
+
type: string;
|
1096
1193
|
depositUrl: string | null;
|
1097
1194
|
explorerAddress: string | null;
|
1195
|
+
howToSteps: string[];
|
1098
1196
|
mainProtocolId: string | null;
|
1099
|
-
|
1100
|
-
apr: number;
|
1101
|
-
dailyRewards: number;
|
1102
|
-
lastCampaignCreatedAt: Date;
|
1103
|
-
} | {
|
1104
|
-
id: string;
|
1105
|
-
chainId: number;
|
1106
|
-
type: string;
|
1197
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1107
1198
|
identifier: string;
|
1108
|
-
|
1109
|
-
status: "PAST" | "LIVE" | "SOON";
|
1110
|
-
action: any;
|
1111
|
-
tokens: ({
|
1112
|
-
symbol: string;
|
1113
|
-
name: string | null;
|
1114
|
-
id: string;
|
1115
|
-
icon: string;
|
1116
|
-
address: string;
|
1117
|
-
chainId: number;
|
1118
|
-
decimals: number;
|
1119
|
-
verified: boolean;
|
1120
|
-
isTest: boolean;
|
1121
|
-
isPoint: boolean;
|
1122
|
-
isPreTGE: boolean;
|
1123
|
-
isNative: boolean;
|
1124
|
-
} & {
|
1125
|
-
price?: number | null | undefined;
|
1126
|
-
})[];
|
1127
|
-
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
|
1128
|
-
description: string;
|
1129
|
-
howToSteps: string[];
|
1130
|
-
depositUrl: string | undefined;
|
1131
|
-
explorerAddress: string | undefined;
|
1199
|
+
dailyRewards: number;
|
1132
1200
|
tags: string[];
|
1201
|
+
lastCampaignCreatedAt: Date;
|
1202
|
+
};
|
1203
|
+
422: {
|
1204
|
+
type: "validation";
|
1205
|
+
on: string;
|
1206
|
+
summary?: string;
|
1207
|
+
message?: string;
|
1208
|
+
found?: unknown;
|
1209
|
+
property?: string;
|
1210
|
+
expected?: string;
|
1133
1211
|
};
|
1134
1212
|
};
|
1135
1213
|
};
|
@@ -1146,30 +1224,37 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1146
1224
|
id: string;
|
1147
1225
|
};
|
1148
1226
|
query: unknown;
|
1149
|
-
headers:
|
1150
|
-
authorization: string;
|
1151
|
-
};
|
1227
|
+
headers: unknown;
|
1152
1228
|
response: {
|
1153
1229
|
200: {
|
1154
|
-
status: import("@db/api").$Enums.Status;
|
1155
|
-
type: string;
|
1156
1230
|
name: string;
|
1231
|
+
apr: number;
|
1232
|
+
tvl: number;
|
1157
1233
|
description: string;
|
1158
1234
|
id: string;
|
1159
|
-
|
1160
|
-
identifier: string;
|
1161
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
1162
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1235
|
+
status: import("@package/databases").Status;
|
1163
1236
|
chainId: number;
|
1164
|
-
|
1237
|
+
action: import("@package/databases").OpportunityAction;
|
1238
|
+
type: string;
|
1165
1239
|
depositUrl: string | null;
|
1166
1240
|
explorerAddress: string | null;
|
1241
|
+
howToSteps: string[];
|
1167
1242
|
mainProtocolId: string | null;
|
1168
|
-
|
1169
|
-
|
1243
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1244
|
+
identifier: string;
|
1170
1245
|
dailyRewards: number;
|
1246
|
+
tags: string[];
|
1171
1247
|
lastCampaignCreatedAt: Date;
|
1172
1248
|
};
|
1249
|
+
422: {
|
1250
|
+
type: "validation";
|
1251
|
+
on: string;
|
1252
|
+
summary?: string;
|
1253
|
+
message?: string;
|
1254
|
+
found?: unknown;
|
1255
|
+
property?: string;
|
1256
|
+
expected?: string;
|
1257
|
+
};
|
1173
1258
|
};
|
1174
1259
|
};
|
1175
1260
|
};
|
@@ -1182,40 +1267,47 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1182
1267
|
body: {
|
1183
1268
|
name?: string | undefined;
|
1184
1269
|
description?: string | undefined;
|
1185
|
-
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" |
|
1186
|
-
howToSteps?: string[] | undefined;
|
1270
|
+
action?: "POOL" | "INVALID" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | undefined;
|
1187
1271
|
depositUrl?: string | undefined;
|
1188
1272
|
explorerAddress?: string | undefined;
|
1273
|
+
howToSteps?: string[] | undefined;
|
1189
1274
|
mainProtocolId?: string | undefined;
|
1190
1275
|
};
|
1191
1276
|
params: {
|
1192
1277
|
id: string;
|
1193
1278
|
};
|
1194
1279
|
query: unknown;
|
1195
|
-
headers:
|
1196
|
-
authorization: string;
|
1197
|
-
};
|
1280
|
+
headers: unknown;
|
1198
1281
|
response: {
|
1199
1282
|
200: {
|
1200
|
-
status: import("@db/api").$Enums.Status;
|
1201
|
-
type: string;
|
1202
1283
|
name: string;
|
1284
|
+
apr: number;
|
1285
|
+
tvl: number;
|
1203
1286
|
description: string;
|
1204
1287
|
id: string;
|
1205
|
-
|
1206
|
-
identifier: string;
|
1207
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
1208
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1288
|
+
status: import("@package/databases").Status;
|
1209
1289
|
chainId: number;
|
1210
|
-
|
1290
|
+
action: import("@package/databases").OpportunityAction;
|
1291
|
+
type: string;
|
1211
1292
|
depositUrl: string | null;
|
1212
1293
|
explorerAddress: string | null;
|
1294
|
+
howToSteps: string[];
|
1213
1295
|
mainProtocolId: string | null;
|
1214
|
-
|
1215
|
-
|
1296
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1297
|
+
identifier: string;
|
1216
1298
|
dailyRewards: number;
|
1299
|
+
tags: string[];
|
1217
1300
|
lastCampaignCreatedAt: Date;
|
1218
1301
|
};
|
1302
|
+
422: {
|
1303
|
+
type: "validation";
|
1304
|
+
on: string;
|
1305
|
+
summary?: string;
|
1306
|
+
message?: string;
|
1307
|
+
found?: unknown;
|
1308
|
+
property?: string;
|
1309
|
+
expected?: string;
|
1310
|
+
};
|
1219
1311
|
};
|
1220
1312
|
};
|
1221
1313
|
};
|
@@ -1226,88 +1318,95 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1226
1318
|
":id": {
|
1227
1319
|
override: {
|
1228
1320
|
delete: {
|
1229
|
-
body: ("name" | "description" | "action" | "
|
1321
|
+
body: ("name" | "description" | "action" | "depositUrl" | "explorerAddress" | "howToSteps" | "mainProtocolId")[];
|
1230
1322
|
params: {
|
1231
1323
|
id: string;
|
1232
1324
|
};
|
1233
1325
|
query: unknown;
|
1234
|
-
headers:
|
1235
|
-
authorization: string;
|
1236
|
-
};
|
1326
|
+
headers: unknown;
|
1237
1327
|
response: {
|
1238
1328
|
200: {
|
1239
|
-
|
1329
|
+
id: string;
|
1330
|
+
chainId: number;
|
1331
|
+
type: string;
|
1332
|
+
identifier: string;
|
1333
|
+
name: string;
|
1334
|
+
status: "PAST" | "LIVE" | "SOON";
|
1335
|
+
action: any;
|
1336
|
+
tokens: ({
|
1240
1337
|
symbol: string;
|
1241
1338
|
name: string | null;
|
1339
|
+
decimals: number;
|
1340
|
+
address: string;
|
1242
1341
|
id: string;
|
1342
|
+
chainId: number;
|
1243
1343
|
icon: string;
|
1344
|
+
isNative: boolean;
|
1345
|
+
isPoint: boolean;
|
1346
|
+
isPreTGE: boolean;
|
1347
|
+
isTest: boolean;
|
1348
|
+
verified: boolean;
|
1349
|
+
} & {
|
1350
|
+
price?: number | null | undefined;
|
1351
|
+
})[];
|
1352
|
+
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
|
1353
|
+
description: string;
|
1354
|
+
howToSteps: string[];
|
1355
|
+
depositUrl: string | undefined;
|
1356
|
+
explorerAddress: string | undefined;
|
1357
|
+
tags: string[];
|
1358
|
+
} | {
|
1359
|
+
Tokens: {
|
1360
|
+
symbol: string;
|
1361
|
+
name: string | null;
|
1362
|
+
decimals: number;
|
1363
|
+
price: number | null;
|
1244
1364
|
address: string;
|
1365
|
+
id: string;
|
1245
1366
|
chainId: number;
|
1246
|
-
|
1247
|
-
|
1248
|
-
verified: boolean;
|
1249
|
-
isTest: boolean;
|
1367
|
+
icon: string;
|
1368
|
+
isNative: boolean;
|
1250
1369
|
isPoint: boolean;
|
1251
1370
|
isPreTGE: boolean;
|
1252
|
-
|
1253
|
-
|
1371
|
+
isTest: boolean;
|
1372
|
+
verified: boolean;
|
1373
|
+
displaySymbol: string;
|
1254
1374
|
}[];
|
1255
1375
|
Protocols: {
|
1256
|
-
url: string;
|
1257
1376
|
name: string;
|
1258
1377
|
description: string;
|
1259
1378
|
id: string;
|
1260
|
-
|
1379
|
+
url: string;
|
1261
1380
|
icon: string;
|
1381
|
+
tags: string[];
|
1262
1382
|
}[];
|
1263
|
-
status: import("@db/api").$Enums.Status;
|
1264
|
-
type: string;
|
1265
1383
|
name: string;
|
1384
|
+
apr: number;
|
1385
|
+
tvl: number;
|
1266
1386
|
description: string;
|
1267
1387
|
id: string;
|
1268
|
-
|
1269
|
-
identifier: string;
|
1270
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
1271
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1388
|
+
status: import("@package/databases").Status;
|
1272
1389
|
chainId: number;
|
1273
|
-
|
1390
|
+
action: import("@package/databases").OpportunityAction;
|
1391
|
+
type: string;
|
1274
1392
|
depositUrl: string | null;
|
1275
1393
|
explorerAddress: string | null;
|
1394
|
+
howToSteps: string[];
|
1276
1395
|
mainProtocolId: string | null;
|
1277
|
-
|
1278
|
-
apr: number;
|
1279
|
-
dailyRewards: number;
|
1280
|
-
lastCampaignCreatedAt: Date;
|
1281
|
-
} | {
|
1282
|
-
id: string;
|
1283
|
-
chainId: number;
|
1284
|
-
type: string;
|
1396
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1285
1397
|
identifier: string;
|
1286
|
-
|
1287
|
-
status: "PAST" | "LIVE" | "SOON";
|
1288
|
-
action: any;
|
1289
|
-
tokens: ({
|
1290
|
-
symbol: string;
|
1291
|
-
name: string | null;
|
1292
|
-
id: string;
|
1293
|
-
icon: string;
|
1294
|
-
address: string;
|
1295
|
-
chainId: number;
|
1296
|
-
decimals: number;
|
1297
|
-
verified: boolean;
|
1298
|
-
isTest: boolean;
|
1299
|
-
isPoint: boolean;
|
1300
|
-
isPreTGE: boolean;
|
1301
|
-
isNative: boolean;
|
1302
|
-
} & {
|
1303
|
-
price?: number | null | undefined;
|
1304
|
-
})[];
|
1305
|
-
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
|
1306
|
-
description: string;
|
1307
|
-
howToSteps: string[];
|
1308
|
-
depositUrl: string | undefined;
|
1309
|
-
explorerAddress: string | undefined;
|
1398
|
+
dailyRewards: number;
|
1310
1399
|
tags: string[];
|
1400
|
+
lastCampaignCreatedAt: Date;
|
1401
|
+
};
|
1402
|
+
422: {
|
1403
|
+
type: "validation";
|
1404
|
+
on: string;
|
1405
|
+
summary?: string;
|
1406
|
+
message?: string;
|
1407
|
+
found?: unknown;
|
1408
|
+
property?: string;
|
1409
|
+
expected?: string;
|
1311
1410
|
};
|
1312
1411
|
};
|
1313
1412
|
};
|
@@ -1318,14 +1417,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1318
1417
|
derive: {};
|
1319
1418
|
resolve: {};
|
1320
1419
|
schema: {};
|
1420
|
+
standaloneSchema: {};
|
1321
1421
|
}, {
|
1322
1422
|
derive: {};
|
1323
1423
|
resolve: {};
|
1324
1424
|
schema: {
|
1325
1425
|
body: unknown;
|
1326
|
-
headers:
|
1327
|
-
authorization: string;
|
1328
|
-
};
|
1426
|
+
headers: unknown;
|
1329
1427
|
query: unknown;
|
1330
1428
|
params: {
|
1331
1429
|
id: string;
|
@@ -1333,4 +1431,5 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1333
1431
|
cookie: unknown;
|
1334
1432
|
response: {};
|
1335
1433
|
};
|
1434
|
+
standaloneSchema: {};
|
1336
1435
|
}>;
|