@merkl/api 1.0.4 → 1.0.8
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/eden/index.d.ts +692 -8972
- package/dist/src/eden/index.js +0 -2
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.d.ts +1 -1
- 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 +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.d.ts +2 -2
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound2.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound3.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound4.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeStruct.d.ts +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +2 -2
- package/dist/src/engine/implementations/Ajna/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Ajna/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Ambient/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Ambient/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Badger/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Clamm/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Compound/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Default/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Dolomite/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/EigenLayer/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Encompassing/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/detect.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/factories.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/metadata.d.ts +30 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -1
- package/dist/src/engine/implementations/Erc20/tvl.d.ts +2 -2
- package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Erc721/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/EventBased/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +5 -5
- package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +2 -2
- package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/Invalid/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Ion/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +4 -4
- package/dist/src/engine/implementations/Locker/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Locker/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Morpho/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/MultiLog/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Radiant/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Silo/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/UniswapV4/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/Vest/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +3 -3
- package/dist/src/engine/implementations/morphoCollateral/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +3 -3
- package/dist/src/index.d.ts +290 -72
- package/dist/src/libs/deprecated-merklv3/index.d.ts +2 -2
- package/dist/src/libs/positions/EigenLayer/index.d.ts +1 -1
- package/dist/src/libs/positions/ajna/index.d.ts +1 -1
- package/dist/src/libs/positions/badger/index.d.ts +1 -1
- package/dist/src/libs/positions/compound/index.d.ts +1 -1
- package/dist/src/libs/positions/dolomite/index.d.ts +1 -1
- package/dist/src/libs/positions/erc20/index.d.ts +1 -1
- package/dist/src/libs/positions/euler/index.d.ts +1 -1
- package/dist/src/libs/positions/morpho/index.d.ts +1 -1
- package/dist/src/libs/positions/silo/index.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.repository.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
- package/dist/src/modules/v4/apr/apr.model.d.ts +16 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +23 -17
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +10 -2
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +3 -3
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +3 -3
- package/dist/src/modules/v4/chain/chain.model.d.ts +1 -1
- package/dist/src/modules/v4/claims/claims.service.d.ts +2 -2
- package/dist/src/modules/v4/creator/creator.controller.d.ts +183 -0
- package/dist/src/modules/v4/creator/creator.model.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +131 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +1 -1
- package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
- package/dist/src/modules/v4/interaction/interaction.model.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.service.d.ts +1 -1
- package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/liquidity.model.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +64 -44
- package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +67 -27
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +4 -4
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +42 -30
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +3 -0
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +5 -2
- package/dist/src/modules/v4/reward/reward.model.d.ts +18 -7
- package/dist/src/modules/v4/reward/reward.service.d.ts +1 -1
- package/dist/src/modules/v4/router.d.ts +278 -66
- package/dist/src/modules/v4/status/status.model.d.ts +2 -2
- package/dist/src/modules/v4/status/status.repository.d.ts +1 -1
- package/dist/src/modules/v4/status/status.service.d.ts +2 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +2 -2
- package/dist/src/modules/v4/token/token.model.d.ts +2 -1
- package/dist/src/modules/v4/token/token.service.d.ts +3 -3
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +1 -1
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +2 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +1 -1
- package/dist/src/modules/v4/user/user.model.d.ts +1 -1
- package/dist/src/plugins/error-handling.plugin.d.ts +1 -1
- package/dist/src/routes/v1/allowances.d.ts +2 -2
- package/dist/src/routes/v3/poolInfo.d.ts +8 -2
- package/dist/src/routes/v3/router.d.ts +7 -1
- package/dist/src/utils/decodeCalls.d.ts +1 -1
- package/dist/src/utils/encodeCalls.d.ts +1 -1
- package/dist/src/utils/error.d.ts +1 -1
- package/dist/src/utils/generateCardName.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -82
- package/LICENSE +0 -201
@@ -1,9 +1,9 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
2
|
import { type Prisma, Status } from "@package/databases/api";
|
3
|
-
import type { AprRecord } from "
|
4
|
-
import type { Campaign } from "
|
5
|
-
import type { DailyRewardsRecord } from "
|
6
|
-
import type { TvlRecord } from "
|
3
|
+
import type { AprRecord } from "../../../modules/v4/apr/apr.model";
|
4
|
+
import type { Campaign } from "../../../modules/v4/campaign/campaign.model";
|
5
|
+
import type { DailyRewardsRecord } from "../../../modules/v4/reward/reward.model";
|
6
|
+
import type { TvlRecord } from "../../../modules/v4/tvl/tvl.model";
|
7
7
|
import type { CreateOpportunityModel, GetOpportunitiesQueryModel, Opportunity } from "./opportunity.model";
|
8
8
|
export declare abstract class OpportunityRepository {
|
9
9
|
#private;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
2
|
import { type OpportunityAction, type OpportunityManualOverride, type Prisma } from "@package/databases/api";
|
3
|
-
import type { CampaignWithParams, GetCampaignQueryModel } from "
|
3
|
+
import type { CampaignWithParams, GetCampaignQueryModel } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
import type { Protocol } from "../protocol/protocol.model";
|
5
5
|
import type { Token } from "../token/token.model";
|
6
6
|
import type { CreateOpportunityModel, GetOpportunitiesQueryModel, LightOpportunityFromDB, Opportunity, OpportunityOverrideModel, OpportunityResourceModel, OpportunityUnique } from "./opportunity.model";
|
@@ -65,7 +65,7 @@ export declare abstract class OpportunityService {
|
|
65
65
|
} & {
|
66
66
|
price?: number | null | undefined;
|
67
67
|
})[];
|
68
|
-
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;
|
68
|
+
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" | "mimswap" | "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;
|
69
69
|
description: string;
|
70
70
|
howToSteps: string[];
|
71
71
|
depositUrl: string | undefined;
|
@@ -195,7 +195,7 @@ export declare abstract class OpportunityService {
|
|
195
195
|
} & {
|
196
196
|
price?: number | null | undefined;
|
197
197
|
})[];
|
198
|
-
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;
|
198
|
+
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" | "mimswap" | "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;
|
199
199
|
description: string;
|
200
200
|
howToSteps: string[];
|
201
201
|
depositUrl: string | undefined;
|
@@ -273,7 +273,7 @@ export declare abstract class OpportunityService {
|
|
273
273
|
} & {
|
274
274
|
price?: number | null | undefined;
|
275
275
|
})[];
|
276
|
-
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;
|
276
|
+
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" | "mimswap" | "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;
|
277
277
|
description: string;
|
278
278
|
howToSteps: string[];
|
279
279
|
depositUrl: string | undefined;
|
@@ -333,6 +333,9 @@ export declare abstract class OpportunityService {
|
|
333
333
|
static findManyByCampaigns(query: GetCampaignQueryModel): Promise<{
|
334
334
|
depositUrl?: string | undefined;
|
335
335
|
protocol?: {
|
336
|
+
dailyRewards?: number | undefined;
|
337
|
+
numberOfLiveCampaigns?: number | undefined;
|
338
|
+
opportunityLiveTags?: string[] | undefined;
|
336
339
|
name: string;
|
337
340
|
description: string;
|
338
341
|
id: string;
|
@@ -346,6 +349,7 @@ export declare abstract class OpportunityService {
|
|
346
349
|
timestamp: string | bigint;
|
347
350
|
cumulated: number;
|
348
351
|
breakdowns: {
|
352
|
+
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;
|
349
353
|
value: number;
|
350
354
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
351
355
|
identifier: string;
|
@@ -361,10 +365,10 @@ export declare abstract class OpportunityService {
|
|
361
365
|
}[];
|
362
366
|
} | undefined;
|
363
367
|
rewardsRecord?: {
|
364
|
-
id: string;
|
365
368
|
timestamp: string | bigint;
|
366
369
|
total: number;
|
367
370
|
breakdowns: {
|
371
|
+
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;
|
368
372
|
token: {
|
369
373
|
price?: number | null | undefined;
|
370
374
|
symbol: string;
|
@@ -374,16 +378,15 @@ export declare abstract class OpportunityService {
|
|
374
378
|
id: string;
|
375
379
|
chainId: number;
|
376
380
|
icon: string;
|
381
|
+
isNative: boolean;
|
377
382
|
isPoint: boolean;
|
378
383
|
isPreTGE: boolean;
|
379
384
|
isTest: boolean;
|
380
385
|
verified: boolean;
|
381
386
|
};
|
382
387
|
campaignId: string;
|
383
|
-
id: string;
|
384
388
|
value: number;
|
385
389
|
amount: string | bigint;
|
386
|
-
dailyRewardsRecordId: string;
|
387
390
|
}[];
|
388
391
|
} | undefined;
|
389
392
|
name: string;
|
@@ -397,6 +400,7 @@ export declare abstract class OpportunityService {
|
|
397
400
|
id: string;
|
398
401
|
chainId: number;
|
399
402
|
icon: string;
|
403
|
+
isNative: boolean;
|
400
404
|
isPoint: boolean;
|
401
405
|
isPreTGE: boolean;
|
402
406
|
isTest: boolean;
|
@@ -414,6 +418,7 @@ export declare abstract class OpportunityService {
|
|
414
418
|
creatorId?: string | null | undefined;
|
415
419
|
address: string;
|
416
420
|
} | undefined;
|
421
|
+
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;
|
417
422
|
rootCampaignId?: string | undefined;
|
418
423
|
parentCampaignId?: string | undefined;
|
419
424
|
campaignStatus?: {
|
@@ -443,6 +448,7 @@ export declare abstract class OpportunityService {
|
|
443
448
|
id: string;
|
444
449
|
chainId: number;
|
445
450
|
icon: string;
|
451
|
+
isNative: boolean;
|
446
452
|
isPoint: boolean;
|
447
453
|
isPreTGE: boolean;
|
448
454
|
isTest: boolean;
|
@@ -457,6 +463,11 @@ export declare abstract class OpportunityService {
|
|
457
463
|
computeChainId: number;
|
458
464
|
distributionChainId: number;
|
459
465
|
endTimestamp: string | number;
|
466
|
+
opportunityId: string;
|
467
|
+
creatorAddress: string;
|
468
|
+
subType: number | null;
|
469
|
+
rewardTokenId: string;
|
470
|
+
createdAt: string;
|
460
471
|
chain: {
|
461
472
|
explorers?: {
|
462
473
|
chainId: number;
|
@@ -467,14 +478,14 @@ export declare abstract class OpportunityService {
|
|
467
478
|
id: number;
|
468
479
|
icon: string;
|
469
480
|
};
|
470
|
-
opportunityId: string;
|
471
|
-
creatorAddress: string;
|
472
|
-
subType: number | null;
|
473
|
-
rewardTokenId: string;
|
474
|
-
createdAt: string;
|
475
481
|
}[];
|
476
482
|
action: string;
|
477
483
|
type: string;
|
484
|
+
howToSteps: string[];
|
485
|
+
identifier: string;
|
486
|
+
dailyRewards: number;
|
487
|
+
tags: string[];
|
488
|
+
lastCampaignCreatedAt: string;
|
478
489
|
chain: {
|
479
490
|
explorers?: {
|
480
491
|
chainId: number;
|
@@ -485,15 +496,13 @@ export declare abstract class OpportunityService {
|
|
485
496
|
id: number;
|
486
497
|
icon: string;
|
487
498
|
};
|
488
|
-
howToSteps: string[];
|
489
|
-
identifier: string;
|
490
|
-
dailyRewards: number;
|
491
|
-
tags: string[];
|
492
|
-
lastCampaignCreatedAt: string;
|
493
499
|
}[]>;
|
494
500
|
static getUniqueWithCampaignsOrThrow(opportunityId: string | OpportunityUnique, withTest?: boolean, withPoints?: boolean): Promise<{
|
495
501
|
depositUrl?: string | undefined;
|
496
502
|
protocol?: {
|
503
|
+
dailyRewards?: number | undefined;
|
504
|
+
numberOfLiveCampaigns?: number | undefined;
|
505
|
+
opportunityLiveTags?: string[] | undefined;
|
497
506
|
name: string;
|
498
507
|
description: string;
|
499
508
|
id: string;
|
@@ -507,6 +516,7 @@ export declare abstract class OpportunityService {
|
|
507
516
|
timestamp: string | bigint;
|
508
517
|
cumulated: number;
|
509
518
|
breakdowns: {
|
519
|
+
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;
|
510
520
|
value: number;
|
511
521
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
512
522
|
identifier: string;
|
@@ -522,10 +532,10 @@ export declare abstract class OpportunityService {
|
|
522
532
|
}[];
|
523
533
|
} | undefined;
|
524
534
|
rewardsRecord?: {
|
525
|
-
id: string;
|
526
535
|
timestamp: string | bigint;
|
527
536
|
total: number;
|
528
537
|
breakdowns: {
|
538
|
+
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;
|
529
539
|
token: {
|
530
540
|
price?: number | null | undefined;
|
531
541
|
symbol: string;
|
@@ -535,16 +545,15 @@ export declare abstract class OpportunityService {
|
|
535
545
|
id: string;
|
536
546
|
chainId: number;
|
537
547
|
icon: string;
|
548
|
+
isNative: boolean;
|
538
549
|
isPoint: boolean;
|
539
550
|
isPreTGE: boolean;
|
540
551
|
isTest: boolean;
|
541
552
|
verified: boolean;
|
542
553
|
};
|
543
554
|
campaignId: string;
|
544
|
-
id: string;
|
545
555
|
value: number;
|
546
556
|
amount: string | bigint;
|
547
|
-
dailyRewardsRecordId: string;
|
548
557
|
}[];
|
549
558
|
} | undefined;
|
550
559
|
name: string;
|
@@ -558,6 +567,7 @@ export declare abstract class OpportunityService {
|
|
558
567
|
id: string;
|
559
568
|
chainId: number;
|
560
569
|
icon: string;
|
570
|
+
isNative: boolean;
|
561
571
|
isPoint: boolean;
|
562
572
|
isPreTGE: boolean;
|
563
573
|
isTest: boolean;
|
@@ -575,6 +585,7 @@ export declare abstract class OpportunityService {
|
|
575
585
|
creatorId?: string | null | undefined;
|
576
586
|
address: string;
|
577
587
|
} | undefined;
|
588
|
+
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;
|
578
589
|
rootCampaignId?: string | undefined;
|
579
590
|
parentCampaignId?: string | undefined;
|
580
591
|
campaignStatus?: {
|
@@ -604,6 +615,7 @@ export declare abstract class OpportunityService {
|
|
604
615
|
id: string;
|
605
616
|
chainId: number;
|
606
617
|
icon: string;
|
618
|
+
isNative: boolean;
|
607
619
|
isPoint: boolean;
|
608
620
|
isPreTGE: boolean;
|
609
621
|
isTest: boolean;
|
@@ -618,6 +630,11 @@ export declare abstract class OpportunityService {
|
|
618
630
|
computeChainId: number;
|
619
631
|
distributionChainId: number;
|
620
632
|
endTimestamp: string | number;
|
633
|
+
opportunityId: string;
|
634
|
+
creatorAddress: string;
|
635
|
+
subType: number | null;
|
636
|
+
rewardTokenId: string;
|
637
|
+
createdAt: string;
|
621
638
|
chain: {
|
622
639
|
explorers?: {
|
623
640
|
chainId: number;
|
@@ -628,14 +645,14 @@ export declare abstract class OpportunityService {
|
|
628
645
|
id: number;
|
629
646
|
icon: string;
|
630
647
|
};
|
631
|
-
opportunityId: string;
|
632
|
-
creatorAddress: string;
|
633
|
-
subType: number | null;
|
634
|
-
rewardTokenId: string;
|
635
|
-
createdAt: string;
|
636
648
|
}[];
|
637
649
|
action: string;
|
638
650
|
type: string;
|
651
|
+
howToSteps: string[];
|
652
|
+
identifier: string;
|
653
|
+
dailyRewards: number;
|
654
|
+
tags: string[];
|
655
|
+
lastCampaignCreatedAt: string;
|
639
656
|
chain: {
|
640
657
|
explorers?: {
|
641
658
|
chainId: number;
|
@@ -646,11 +663,6 @@ export declare abstract class OpportunityService {
|
|
646
663
|
id: number;
|
647
664
|
icon: string;
|
648
665
|
};
|
649
|
-
howToSteps: string[];
|
650
|
-
identifier: string;
|
651
|
-
dailyRewards: number;
|
652
|
-
tags: string[];
|
653
|
-
lastCampaignCreatedAt: string;
|
654
666
|
}>;
|
655
667
|
static findUniqueOrThrow(opportunityId: string | OpportunityUnique, withCampaigns?: boolean, withTest?: boolean, withPoints?: boolean): Promise<OpportunityResourceModel>;
|
656
668
|
/**
|
@@ -31,6 +31,9 @@ export declare const ProtocolController: Elysia<"/protocols", {
|
|
31
31
|
headers: unknown;
|
32
32
|
response: {
|
33
33
|
200: {
|
34
|
+
dailyRewards?: number | undefined;
|
35
|
+
numberOfLiveCampaigns?: number | undefined;
|
36
|
+
opportunityLiveTags?: string[] | undefined;
|
34
37
|
name: string;
|
35
38
|
description: string;
|
36
39
|
id: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Resource } from "
|
1
|
+
import type { Resource } from "../../../modules/v4/prisma";
|
2
2
|
/**
|
3
3
|
* Protocol
|
4
4
|
* @description Target description of rewards campaigns
|
@@ -9,7 +9,7 @@ export type Protocol = Resource<"Protocol", undefined, {
|
|
9
9
|
numberOfLiveCampaigns?: number;
|
10
10
|
opportunityLiveTags?: string[];
|
11
11
|
}>;
|
12
|
-
export declare const protocolIdList: readonly ["uniswap", "ambient", "arthswap", "base-swap", "camelot", "crust", "fenix", "horiza", "izumi", "kim", "pancake-swap", "quickswap", "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", "koi", "syncswap", "neptune", "zkSwapThreePool", "syncswap", "rfx", "ra", "maverick", "trader-joe", "velodrome", "hanji", "reserve", "pinto", "radiant", "aave", "fraxlend", "ironclad", "euler", "gearbox", "compound", "sturdy", "frax", "ionic", "moonwell", "fluid", "silo", "morpho", "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", "fraxlend", "angles", "enzyme", "toros", "vicuna", "bunni", "beratrax", "concrete", "cian", "pendle", "splice", "sturdy", "yei", "termmax", "filament", "gammaswap", "maha", "tempest", "uranium", "hanji", "holdstation", "katana", "punchswap", "satlayer", "puffer"];
|
12
|
+
export declare const protocolIdList: readonly ["uniswap", "ambient", "arthswap", "base-swap", "camelot", "crust", "fenix", "horiza", "izumi", "kim", "pancake-swap", "quickswap", "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", "koi", "syncswap", "neptune", "zkSwapThreePool", "syncswap", "rfx", "ra", "maverick", "trader-joe", "velodrome", "hanji", "reserve", "pinto", "mimswap", "radiant", "aave", "fraxlend", "ironclad", "euler", "gearbox", "compound", "sturdy", "frax", "ionic", "moonwell", "fluid", "silo", "morpho", "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", "fraxlend", "angles", "enzyme", "toros", "vicuna", "bunni", "beratrax", "concrete", "cian", "pendle", "splice", "sturdy", "yei", "termmax", "filament", "gammaswap", "maha", "tempest", "uranium", "hanji", "holdstation", "katana", "punchswap", "satlayer", "puffer"];
|
13
13
|
export type ProtocolId = (typeof protocolIdList)[number];
|
14
14
|
export declare const ProtocolResourceDto: import("@sinclair/typebox").TObject<{
|
15
15
|
id: import("@sinclair/typebox").TString;
|
@@ -18,6 +18,9 @@ export declare const ProtocolResourceDto: import("@sinclair/typebox").TObject<{
|
|
18
18
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
19
19
|
description: import("@sinclair/typebox").TString;
|
20
20
|
url: import("@sinclair/typebox").TString;
|
21
|
+
dailyRewards: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
22
|
+
numberOfLiveCampaigns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
23
|
+
opportunityLiveTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
21
24
|
}>;
|
22
25
|
export declare const GetProtocolsQueryDto: import("@sinclair/typebox").TObject<{
|
23
26
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import type { Resource } from "
|
1
|
+
import { DistributionType } from "@package/databases/api";
|
2
|
+
import type { Resource } from "../../../modules/v4/prisma";
|
3
3
|
import { type Token } from "../token/token.model";
|
4
4
|
/**
|
5
5
|
* Rewards Record
|
@@ -40,10 +40,8 @@ export type DailyRewardsBreakdown = Resource<"DailyRewardsBreakdown", "id" | "da
|
|
40
40
|
distributionType?: DistributionType;
|
41
41
|
}>;
|
42
42
|
export declare const DailyRewardsBreakdownRecordResourceDto: import("@sinclair/typebox").TObject<{
|
43
|
-
id: import("@sinclair/typebox").TString;
|
44
43
|
campaignId: import("@sinclair/typebox").TString;
|
45
44
|
value: import("@sinclair/typebox").TNumber;
|
46
|
-
dailyRewardsRecordId: import("@sinclair/typebox").TString;
|
47
45
|
token: import("@sinclair/typebox").TObject<{
|
48
46
|
id: import("@sinclair/typebox").TString;
|
49
47
|
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
@@ -52,6 +50,7 @@ export declare const DailyRewardsBreakdownRecordResourceDto: import("@sinclair/t
|
|
52
50
|
decimals: import("@sinclair/typebox").TNumber;
|
53
51
|
icon: import("@sinclair/typebox").TString;
|
54
52
|
verified: import("@sinclair/typebox").TBoolean;
|
53
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
55
54
|
isTest: import("@sinclair/typebox").TBoolean;
|
56
55
|
isPoint: import("@sinclair/typebox").TBoolean;
|
57
56
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
@@ -59,16 +58,20 @@ export declare const DailyRewardsBreakdownRecordResourceDto: import("@sinclair/t
|
|
59
58
|
symbol: import("@sinclair/typebox").TString;
|
60
59
|
}>;
|
61
60
|
amount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
61
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
62
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
63
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
64
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
65
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
66
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
67
|
+
}>>;
|
62
68
|
}>;
|
63
69
|
export declare const DailyRewardsRecordResourceDto: import("@sinclair/typebox").TObject<{
|
64
|
-
id: import("@sinclair/typebox").TString;
|
65
70
|
total: import("@sinclair/typebox").TNumber;
|
66
71
|
timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
67
72
|
breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
68
|
-
id: import("@sinclair/typebox").TString;
|
69
73
|
campaignId: import("@sinclair/typebox").TString;
|
70
74
|
value: import("@sinclair/typebox").TNumber;
|
71
|
-
dailyRewardsRecordId: import("@sinclair/typebox").TString;
|
72
75
|
token: import("@sinclair/typebox").TObject<{
|
73
76
|
id: import("@sinclair/typebox").TString;
|
74
77
|
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
@@ -77,6 +80,7 @@ export declare const DailyRewardsRecordResourceDto: import("@sinclair/typebox").
|
|
77
80
|
decimals: import("@sinclair/typebox").TNumber;
|
78
81
|
icon: import("@sinclair/typebox").TString;
|
79
82
|
verified: import("@sinclair/typebox").TBoolean;
|
83
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
80
84
|
isTest: import("@sinclair/typebox").TBoolean;
|
81
85
|
isPoint: import("@sinclair/typebox").TBoolean;
|
82
86
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
@@ -84,6 +88,13 @@ export declare const DailyRewardsRecordResourceDto: import("@sinclair/typebox").
|
|
84
88
|
symbol: import("@sinclair/typebox").TString;
|
85
89
|
}>;
|
86
90
|
amount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
91
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
92
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
93
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
94
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
95
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
96
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
97
|
+
}>>;
|
87
98
|
}>>;
|
88
99
|
}>;
|
89
100
|
export declare const CreateManyBreakdownDto: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignDynamicData, Campaign as CampaignType, ChainId, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
2
|
import type { Chain } from "@package/databases/api";
|
3
|
-
import type { LightOpportunityFromDB, Opportunity } from "
|
3
|
+
import type { LightOpportunityFromDB, Opportunity } from "../../../modules/v4/opportunity/opportunity.model";
|
4
4
|
import type { CampaignIdModel, CampaignIdWithoutPageModel, CreateManyBreakdownModel, CreateManyRewardModel, DailyRewardsRecord, RegisterClaimsModel, RewardBreakdown, TokenIdModel } from "./reward.model";
|
5
5
|
import { RewardRepository } from "./reward.repository";
|
6
6
|
export declare abstract class RewardService {
|