@merkl/api 1.0.5 → 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
@@ -49,6 +49,9 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
49
49
|
200: ({
|
50
50
|
depositUrl?: string | undefined;
|
51
51
|
protocol?: {
|
52
|
+
dailyRewards?: number | undefined;
|
53
|
+
numberOfLiveCampaigns?: number | undefined;
|
54
|
+
opportunityLiveTags?: string[] | undefined;
|
52
55
|
name: string;
|
53
56
|
description: string;
|
54
57
|
id: string;
|
@@ -62,6 +65,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
62
65
|
timestamp: string | bigint;
|
63
66
|
cumulated: number;
|
64
67
|
breakdowns: {
|
68
|
+
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;
|
65
69
|
value: number;
|
66
70
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
67
71
|
identifier: string;
|
@@ -77,10 +81,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
77
81
|
}[];
|
78
82
|
} | undefined;
|
79
83
|
rewardsRecord?: {
|
80
|
-
id: string;
|
81
84
|
timestamp: string | bigint;
|
82
85
|
total: number;
|
83
86
|
breakdowns: {
|
87
|
+
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;
|
84
88
|
token: {
|
85
89
|
price?: number | null | undefined;
|
86
90
|
symbol: string;
|
@@ -90,16 +94,15 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
90
94
|
id: string;
|
91
95
|
chainId: number;
|
92
96
|
icon: string;
|
97
|
+
isNative: boolean;
|
93
98
|
isPoint: boolean;
|
94
99
|
isPreTGE: boolean;
|
95
100
|
isTest: boolean;
|
96
101
|
verified: boolean;
|
97
102
|
};
|
98
103
|
campaignId: string;
|
99
|
-
id: string;
|
100
104
|
value: number;
|
101
105
|
amount: string | bigint;
|
102
|
-
dailyRewardsRecordId: string;
|
103
106
|
}[];
|
104
107
|
} | undefined;
|
105
108
|
name: string;
|
@@ -113,6 +116,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
113
116
|
id: string;
|
114
117
|
chainId: number;
|
115
118
|
icon: string;
|
119
|
+
isNative: boolean;
|
116
120
|
isPoint: boolean;
|
117
121
|
isPreTGE: boolean;
|
118
122
|
isTest: boolean;
|
@@ -125,6 +129,11 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
125
129
|
chainId: number;
|
126
130
|
action: string;
|
127
131
|
type: string;
|
132
|
+
howToSteps: string[];
|
133
|
+
identifier: string;
|
134
|
+
dailyRewards: number;
|
135
|
+
tags: string[];
|
136
|
+
lastCampaignCreatedAt: string;
|
128
137
|
chain: {
|
129
138
|
explorers?: {
|
130
139
|
chainId: number;
|
@@ -135,11 +144,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
135
144
|
id: number;
|
136
145
|
icon: string;
|
137
146
|
};
|
138
|
-
howToSteps: string[];
|
139
|
-
identifier: string;
|
140
|
-
dailyRewards: number;
|
141
|
-
tags: string[];
|
142
|
-
lastCampaignCreatedAt: string;
|
143
147
|
} | null)[];
|
144
148
|
422: {
|
145
149
|
type: "validation";
|
@@ -330,6 +334,9 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
330
334
|
200: {
|
331
335
|
depositUrl?: string | undefined;
|
332
336
|
protocol?: {
|
337
|
+
dailyRewards?: number | undefined;
|
338
|
+
numberOfLiveCampaigns?: number | undefined;
|
339
|
+
opportunityLiveTags?: string[] | undefined;
|
333
340
|
name: string;
|
334
341
|
description: string;
|
335
342
|
id: string;
|
@@ -343,6 +350,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
343
350
|
timestamp: string | bigint;
|
344
351
|
cumulated: number;
|
345
352
|
breakdowns: {
|
353
|
+
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;
|
346
354
|
value: number;
|
347
355
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
348
356
|
identifier: string;
|
@@ -358,10 +366,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
358
366
|
}[];
|
359
367
|
} | undefined;
|
360
368
|
rewardsRecord?: {
|
361
|
-
id: string;
|
362
369
|
timestamp: string | bigint;
|
363
370
|
total: number;
|
364
371
|
breakdowns: {
|
372
|
+
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;
|
365
373
|
token: {
|
366
374
|
price?: number | null | undefined;
|
367
375
|
symbol: string;
|
@@ -371,16 +379,15 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
371
379
|
id: string;
|
372
380
|
chainId: number;
|
373
381
|
icon: string;
|
382
|
+
isNative: boolean;
|
374
383
|
isPoint: boolean;
|
375
384
|
isPreTGE: boolean;
|
376
385
|
isTest: boolean;
|
377
386
|
verified: boolean;
|
378
387
|
};
|
379
388
|
campaignId: string;
|
380
|
-
id: string;
|
381
389
|
value: number;
|
382
390
|
amount: string | bigint;
|
383
|
-
dailyRewardsRecordId: string;
|
384
391
|
}[];
|
385
392
|
} | undefined;
|
386
393
|
name: string;
|
@@ -394,6 +401,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
394
401
|
id: string;
|
395
402
|
chainId: number;
|
396
403
|
icon: string;
|
404
|
+
isNative: boolean;
|
397
405
|
isPoint: boolean;
|
398
406
|
isPreTGE: boolean;
|
399
407
|
isTest: boolean;
|
@@ -406,6 +414,11 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
406
414
|
chainId: number;
|
407
415
|
action: string;
|
408
416
|
type: string;
|
417
|
+
howToSteps: string[];
|
418
|
+
identifier: string;
|
419
|
+
dailyRewards: number;
|
420
|
+
tags: string[];
|
421
|
+
lastCampaignCreatedAt: string;
|
409
422
|
chain: {
|
410
423
|
explorers?: {
|
411
424
|
chainId: number;
|
@@ -416,11 +429,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
416
429
|
id: number;
|
417
430
|
icon: string;
|
418
431
|
};
|
419
|
-
howToSteps: string[];
|
420
|
-
identifier: string;
|
421
|
-
dailyRewards: number;
|
422
|
-
tags: string[];
|
423
|
-
lastCampaignCreatedAt: string;
|
424
432
|
};
|
425
433
|
readonly 500: {
|
426
434
|
info: string;
|
@@ -482,6 +490,9 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
482
490
|
200: {
|
483
491
|
depositUrl?: string | undefined;
|
484
492
|
protocol?: {
|
493
|
+
dailyRewards?: number | undefined;
|
494
|
+
numberOfLiveCampaigns?: number | undefined;
|
495
|
+
opportunityLiveTags?: string[] | undefined;
|
485
496
|
name: string;
|
486
497
|
description: string;
|
487
498
|
id: string;
|
@@ -495,6 +506,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
495
506
|
timestamp: string | bigint;
|
496
507
|
cumulated: number;
|
497
508
|
breakdowns: {
|
509
|
+
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;
|
498
510
|
value: number;
|
499
511
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
500
512
|
identifier: string;
|
@@ -510,10 +522,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
510
522
|
}[];
|
511
523
|
} | undefined;
|
512
524
|
rewardsRecord?: {
|
513
|
-
id: string;
|
514
525
|
timestamp: string | bigint;
|
515
526
|
total: number;
|
516
527
|
breakdowns: {
|
528
|
+
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;
|
517
529
|
token: {
|
518
530
|
price?: number | null | undefined;
|
519
531
|
symbol: string;
|
@@ -523,16 +535,15 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
523
535
|
id: string;
|
524
536
|
chainId: number;
|
525
537
|
icon: string;
|
538
|
+
isNative: boolean;
|
526
539
|
isPoint: boolean;
|
527
540
|
isPreTGE: boolean;
|
528
541
|
isTest: boolean;
|
529
542
|
verified: boolean;
|
530
543
|
};
|
531
544
|
campaignId: string;
|
532
|
-
id: string;
|
533
545
|
value: number;
|
534
546
|
amount: string | bigint;
|
535
|
-
dailyRewardsRecordId: string;
|
536
547
|
}[];
|
537
548
|
} | undefined;
|
538
549
|
name: string;
|
@@ -546,6 +557,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
546
557
|
id: string;
|
547
558
|
chainId: number;
|
548
559
|
icon: string;
|
560
|
+
isNative: boolean;
|
549
561
|
isPoint: boolean;
|
550
562
|
isPreTGE: boolean;
|
551
563
|
isTest: boolean;
|
@@ -563,6 +575,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
563
575
|
creatorId?: string | null | undefined;
|
564
576
|
address: string;
|
565
577
|
} | undefined;
|
578
|
+
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;
|
566
579
|
rootCampaignId?: string | undefined;
|
567
580
|
parentCampaignId?: string | undefined;
|
568
581
|
campaignStatus?: {
|
@@ -592,6 +605,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
592
605
|
id: string;
|
593
606
|
chainId: number;
|
594
607
|
icon: string;
|
608
|
+
isNative: boolean;
|
595
609
|
isPoint: boolean;
|
596
610
|
isPreTGE: boolean;
|
597
611
|
isTest: boolean;
|
@@ -606,6 +620,11 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
606
620
|
computeChainId: number;
|
607
621
|
distributionChainId: number;
|
608
622
|
endTimestamp: string | number;
|
623
|
+
opportunityId: string;
|
624
|
+
creatorAddress: string;
|
625
|
+
subType: number | null;
|
626
|
+
rewardTokenId: string;
|
627
|
+
createdAt: string;
|
609
628
|
chain: {
|
610
629
|
explorers?: {
|
611
630
|
chainId: number;
|
@@ -616,14 +635,14 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
616
635
|
id: number;
|
617
636
|
icon: string;
|
618
637
|
};
|
619
|
-
opportunityId: string;
|
620
|
-
creatorAddress: string;
|
621
|
-
subType: number | null;
|
622
|
-
rewardTokenId: string;
|
623
|
-
createdAt: string;
|
624
638
|
}[];
|
625
639
|
action: string;
|
626
640
|
type: string;
|
641
|
+
howToSteps: string[];
|
642
|
+
identifier: string;
|
643
|
+
dailyRewards: number;
|
644
|
+
tags: string[];
|
645
|
+
lastCampaignCreatedAt: string;
|
627
646
|
chain: {
|
628
647
|
explorers?: {
|
629
648
|
chainId: number;
|
@@ -634,11 +653,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
634
653
|
id: number;
|
635
654
|
icon: string;
|
636
655
|
};
|
637
|
-
howToSteps: string[];
|
638
|
-
identifier: string;
|
639
|
-
dailyRewards: number;
|
640
|
-
tags: string[];
|
641
|
-
lastCampaignCreatedAt: string;
|
642
656
|
}[];
|
643
657
|
readonly 500: {
|
644
658
|
info: string;
|
@@ -681,6 +695,9 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
681
695
|
200: {
|
682
696
|
depositUrl?: string | undefined;
|
683
697
|
protocol?: {
|
698
|
+
dailyRewards?: number | undefined;
|
699
|
+
numberOfLiveCampaigns?: number | undefined;
|
700
|
+
opportunityLiveTags?: string[] | undefined;
|
684
701
|
name: string;
|
685
702
|
description: string;
|
686
703
|
id: string;
|
@@ -694,6 +711,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
694
711
|
timestamp: string | bigint;
|
695
712
|
cumulated: number;
|
696
713
|
breakdowns: {
|
714
|
+
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;
|
697
715
|
value: number;
|
698
716
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
699
717
|
identifier: string;
|
@@ -709,10 +727,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
709
727
|
}[];
|
710
728
|
} | undefined;
|
711
729
|
rewardsRecord?: {
|
712
|
-
id: string;
|
713
730
|
timestamp: string | bigint;
|
714
731
|
total: number;
|
715
732
|
breakdowns: {
|
733
|
+
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;
|
716
734
|
token: {
|
717
735
|
price?: number | null | undefined;
|
718
736
|
symbol: string;
|
@@ -722,16 +740,15 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
722
740
|
id: string;
|
723
741
|
chainId: number;
|
724
742
|
icon: string;
|
743
|
+
isNative: boolean;
|
725
744
|
isPoint: boolean;
|
726
745
|
isPreTGE: boolean;
|
727
746
|
isTest: boolean;
|
728
747
|
verified: boolean;
|
729
748
|
};
|
730
749
|
campaignId: string;
|
731
|
-
id: string;
|
732
750
|
value: number;
|
733
751
|
amount: string | bigint;
|
734
|
-
dailyRewardsRecordId: string;
|
735
752
|
}[];
|
736
753
|
} | undefined;
|
737
754
|
name: string;
|
@@ -745,6 +762,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
745
762
|
id: string;
|
746
763
|
chainId: number;
|
747
764
|
icon: string;
|
765
|
+
isNative: boolean;
|
748
766
|
isPoint: boolean;
|
749
767
|
isPreTGE: boolean;
|
750
768
|
isTest: boolean;
|
@@ -762,6 +780,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
762
780
|
creatorId?: string | null | undefined;
|
763
781
|
address: string;
|
764
782
|
} | undefined;
|
783
|
+
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;
|
765
784
|
rootCampaignId?: string | undefined;
|
766
785
|
parentCampaignId?: string | undefined;
|
767
786
|
campaignStatus?: {
|
@@ -791,6 +810,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
791
810
|
id: string;
|
792
811
|
chainId: number;
|
793
812
|
icon: string;
|
813
|
+
isNative: boolean;
|
794
814
|
isPoint: boolean;
|
795
815
|
isPreTGE: boolean;
|
796
816
|
isTest: boolean;
|
@@ -805,6 +825,11 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
805
825
|
computeChainId: number;
|
806
826
|
distributionChainId: number;
|
807
827
|
endTimestamp: string | number;
|
828
|
+
opportunityId: string;
|
829
|
+
creatorAddress: string;
|
830
|
+
subType: number | null;
|
831
|
+
rewardTokenId: string;
|
832
|
+
createdAt: string;
|
808
833
|
chain: {
|
809
834
|
explorers?: {
|
810
835
|
chainId: number;
|
@@ -815,14 +840,14 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
815
840
|
id: number;
|
816
841
|
icon: string;
|
817
842
|
};
|
818
|
-
opportunityId: string;
|
819
|
-
creatorAddress: string;
|
820
|
-
subType: number | null;
|
821
|
-
rewardTokenId: string;
|
822
|
-
createdAt: string;
|
823
843
|
}[];
|
824
844
|
action: string;
|
825
845
|
type: string;
|
846
|
+
howToSteps: string[];
|
847
|
+
identifier: string;
|
848
|
+
dailyRewards: number;
|
849
|
+
tags: string[];
|
850
|
+
lastCampaignCreatedAt: string;
|
826
851
|
chain: {
|
827
852
|
explorers?: {
|
828
853
|
chainId: number;
|
@@ -833,11 +858,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
833
858
|
id: number;
|
834
859
|
icon: string;
|
835
860
|
};
|
836
|
-
howToSteps: string[];
|
837
|
-
identifier: string;
|
838
|
-
dailyRewards: number;
|
839
|
-
tags: string[];
|
840
|
-
lastCampaignCreatedAt: string;
|
841
861
|
};
|
842
862
|
readonly 500: {
|
843
863
|
info: string;
|
@@ -1150,7 +1170,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
1150
1170
|
} & {
|
1151
1171
|
price?: number | null | undefined;
|
1152
1172
|
})[];
|
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;
|
1173
|
+
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;
|
1154
1174
|
description: string;
|
1155
1175
|
howToSteps: string[];
|
1156
1176
|
depositUrl: string | undefined;
|
@@ -1349,7 +1369,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
1349
1369
|
} & {
|
1350
1370
|
price?: number | null | undefined;
|
1351
1371
|
})[];
|
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;
|
1372
|
+
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;
|
1353
1373
|
description: string;
|
1354
1374
|
howToSteps: string[];
|
1355
1375
|
depositUrl: string | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, Campaign as CampaignType, type Opportunity as OpportunityV3 } from "@angleprotocol/sdk/ts";
|
2
|
-
import type { CampaignWithParams } from "
|
3
|
-
import { OpportunityService } from "
|
2
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
3
|
+
import { OpportunityService } from "../../../modules/v4/opportunity/opportunity.service";
|
4
4
|
export declare abstract class OpportunityConvertorService {
|
5
5
|
#private;
|
6
6
|
static convertV4CampaignToV3<C extends CampaignType>(campaignType: C, campaign: Exclude<Awaited<ReturnType<(typeof OpportunityService)["findMany"]>>[number]["campaigns"], undefined>[number] | Omit<CampaignWithParams<C>, "manualOverrides">, opportunityIdentifier: string): CampaignParameters<C>;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { ChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
import { type AprRecord } from "
|
3
|
-
import { type Campaign } from "
|
4
|
-
import { type Chain } from "
|
5
|
-
import type { Resource } from "
|
6
|
-
import { type Protocol } from "
|
7
|
-
import { type DailyRewardsRecord } from "
|
8
|
-
import { type Token } from "
|
9
|
-
import { type TvlRecord } from "
|
2
|
+
import { type AprRecord } from "../../../modules/v4/apr/apr.model";
|
3
|
+
import { type Campaign } from "../../../modules/v4/campaign/campaign.model";
|
4
|
+
import { type Chain } from "../../../modules/v4/chain/chain.model";
|
5
|
+
import type { Resource } from "../../../modules/v4/prisma";
|
6
|
+
import { type Protocol } from "../../../modules/v4/protocol/protocol.model";
|
7
|
+
import { type DailyRewardsRecord } from "../../../modules/v4/reward/reward.model";
|
8
|
+
import { type Token } from "../../../modules/v4/token/token.model";
|
9
|
+
import { type TvlRecord } from "../../../modules/v4/tvl/tvl.model";
|
10
10
|
import type { OpportunityRepository } from "./opportunity.repository";
|
11
11
|
/**
|
12
12
|
* Opportunity
|
@@ -62,6 +62,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
62
62
|
decimals: import("@sinclair/typebox").TNumber;
|
63
63
|
icon: import("@sinclair/typebox").TString;
|
64
64
|
verified: import("@sinclair/typebox").TBoolean;
|
65
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
65
66
|
isTest: import("@sinclair/typebox").TBoolean;
|
66
67
|
isPoint: import("@sinclair/typebox").TBoolean;
|
67
68
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
@@ -92,6 +93,13 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
92
93
|
readonly PROTOCOL: "PROTOCOL";
|
93
94
|
}>;
|
94
95
|
value: import("@sinclair/typebox").TNumber;
|
96
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
97
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
98
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
99
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
100
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
101
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
102
|
+
}>>;
|
95
103
|
}>>;
|
96
104
|
}>>;
|
97
105
|
tvlRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
@@ -107,14 +115,11 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
107
115
|
}>>;
|
108
116
|
}>>;
|
109
117
|
rewardsRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
110
|
-
id: import("@sinclair/typebox").TString;
|
111
118
|
total: import("@sinclair/typebox").TNumber;
|
112
119
|
timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
113
120
|
breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
114
|
-
id: import("@sinclair/typebox").TString;
|
115
121
|
campaignId: import("@sinclair/typebox").TString;
|
116
122
|
value: import("@sinclair/typebox").TNumber;
|
117
|
-
dailyRewardsRecordId: import("@sinclair/typebox").TString;
|
118
123
|
token: import("@sinclair/typebox").TObject<{
|
119
124
|
id: import("@sinclair/typebox").TString;
|
120
125
|
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
@@ -123,6 +128,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
123
128
|
decimals: import("@sinclair/typebox").TNumber;
|
124
129
|
icon: import("@sinclair/typebox").TString;
|
125
130
|
verified: import("@sinclair/typebox").TBoolean;
|
131
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
126
132
|
isTest: import("@sinclair/typebox").TBoolean;
|
127
133
|
isPoint: import("@sinclair/typebox").TBoolean;
|
128
134
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
@@ -130,6 +136,13 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
130
136
|
symbol: import("@sinclair/typebox").TString;
|
131
137
|
}>;
|
132
138
|
amount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
139
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
140
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
141
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
142
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
143
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
144
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
145
|
+
}>>;
|
133
146
|
}>>;
|
134
147
|
}>>;
|
135
148
|
lastCampaignCreatedAt: import("@sinclair/typebox").TString;
|
@@ -140,6 +153,9 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
140
153
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
141
154
|
description: import("@sinclair/typebox").TString;
|
142
155
|
url: import("@sinclair/typebox").TString;
|
156
|
+
dailyRewards: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
157
|
+
numberOfLiveCampaigns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
158
|
+
opportunityLiveTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
143
159
|
}>, import("@sinclair/typebox").TNull]>>;
|
144
160
|
}>;
|
145
161
|
export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/typebox").TObject<{
|
@@ -153,6 +169,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
153
169
|
decimals: import("@sinclair/typebox").TNumber;
|
154
170
|
icon: import("@sinclair/typebox").TString;
|
155
171
|
verified: import("@sinclair/typebox").TBoolean;
|
172
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
156
173
|
isTest: import("@sinclair/typebox").TBoolean;
|
157
174
|
isPoint: import("@sinclair/typebox").TBoolean;
|
158
175
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
@@ -166,19 +183,6 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
166
183
|
chainId: import("@sinclair/typebox").TNumber;
|
167
184
|
action: import("@sinclair/typebox").TString;
|
168
185
|
type: import("@sinclair/typebox").TString;
|
169
|
-
chain: import("@sinclair/typebox").TObject<{
|
170
|
-
id: import("@sinclair/typebox").TNumber;
|
171
|
-
name: import("@sinclair/typebox").TString;
|
172
|
-
icon: import("@sinclair/typebox").TString;
|
173
|
-
explorers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
174
|
-
type: import("@sinclair/typebox").TEnum<{
|
175
|
-
readonly ETHERSCAN: "ETHERSCAN";
|
176
|
-
readonly BLOCKSCOUT: "BLOCKSCOUT";
|
177
|
-
}>;
|
178
|
-
url: import("@sinclair/typebox").TString;
|
179
|
-
chainId: import("@sinclair/typebox").TNumber;
|
180
|
-
}>>>;
|
181
|
-
}>;
|
182
186
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
183
187
|
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
184
188
|
id: import("@sinclair/typebox").TString;
|
@@ -187,6 +191,9 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
187
191
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
188
192
|
description: import("@sinclair/typebox").TString;
|
189
193
|
url: import("@sinclair/typebox").TString;
|
194
|
+
dailyRewards: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
195
|
+
numberOfLiveCampaigns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
196
|
+
opportunityLiveTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
190
197
|
}>, import("@sinclair/typebox").TNull]>>;
|
191
198
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
192
199
|
howToSteps: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
@@ -201,6 +208,19 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
201
208
|
dailyRewards: import("@sinclair/typebox").TNumber;
|
202
209
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
203
210
|
lastCampaignCreatedAt: import("@sinclair/typebox").TString;
|
211
|
+
chain: import("@sinclair/typebox").TObject<{
|
212
|
+
id: import("@sinclair/typebox").TNumber;
|
213
|
+
name: import("@sinclair/typebox").TString;
|
214
|
+
icon: import("@sinclair/typebox").TString;
|
215
|
+
explorers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
216
|
+
type: import("@sinclair/typebox").TEnum<{
|
217
|
+
readonly ETHERSCAN: "ETHERSCAN";
|
218
|
+
readonly BLOCKSCOUT: "BLOCKSCOUT";
|
219
|
+
}>;
|
220
|
+
url: import("@sinclair/typebox").TString;
|
221
|
+
chainId: import("@sinclair/typebox").TNumber;
|
222
|
+
}>>>;
|
223
|
+
}>;
|
204
224
|
aprRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
205
225
|
cumulated: import("@sinclair/typebox").TNumber;
|
206
226
|
timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
@@ -212,6 +232,13 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
212
232
|
readonly PROTOCOL: "PROTOCOL";
|
213
233
|
}>;
|
214
234
|
value: import("@sinclair/typebox").TNumber;
|
235
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
236
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
237
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
238
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
239
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
240
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
241
|
+
}>>;
|
215
242
|
}>>;
|
216
243
|
}>>;
|
217
244
|
tvlRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
@@ -227,14 +254,11 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
227
254
|
}>>;
|
228
255
|
}>>;
|
229
256
|
rewardsRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
230
|
-
id: import("@sinclair/typebox").TString;
|
231
257
|
total: import("@sinclair/typebox").TNumber;
|
232
258
|
timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
233
259
|
breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
234
|
-
id: import("@sinclair/typebox").TString;
|
235
260
|
campaignId: import("@sinclair/typebox").TString;
|
236
261
|
value: import("@sinclair/typebox").TNumber;
|
237
|
-
dailyRewardsRecordId: import("@sinclair/typebox").TString;
|
238
262
|
token: import("@sinclair/typebox").TObject<{
|
239
263
|
id: import("@sinclair/typebox").TString;
|
240
264
|
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
@@ -243,6 +267,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
243
267
|
decimals: import("@sinclair/typebox").TNumber;
|
244
268
|
icon: import("@sinclair/typebox").TString;
|
245
269
|
verified: import("@sinclair/typebox").TBoolean;
|
270
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
246
271
|
isTest: import("@sinclair/typebox").TBoolean;
|
247
272
|
isPoint: import("@sinclair/typebox").TBoolean;
|
248
273
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
@@ -250,6 +275,13 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
250
275
|
symbol: import("@sinclair/typebox").TString;
|
251
276
|
}>;
|
252
277
|
amount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
278
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
279
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
280
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
281
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
282
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
283
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
284
|
+
}>>;
|
253
285
|
}>>;
|
254
286
|
}>>;
|
255
287
|
campaigns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
@@ -293,6 +325,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
293
325
|
decimals: import("@sinclair/typebox").TNumber;
|
294
326
|
icon: import("@sinclair/typebox").TString;
|
295
327
|
verified: import("@sinclair/typebox").TBoolean;
|
328
|
+
isNative: import("@sinclair/typebox").TBoolean;
|
296
329
|
isTest: import("@sinclair/typebox").TBoolean;
|
297
330
|
isPoint: import("@sinclair/typebox").TBoolean;
|
298
331
|
isPreTGE: import("@sinclair/typebox").TBoolean;
|
@@ -312,6 +345,13 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
312
345
|
chainId: import("@sinclair/typebox").TNumber;
|
313
346
|
}>>>;
|
314
347
|
}>>;
|
348
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
349
|
+
readonly DUTCH_AUCTION: "DUTCH_AUCTION";
|
350
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
351
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
352
|
+
readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
353
|
+
readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
354
|
+
}>>;
|
315
355
|
campaignStatus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
316
356
|
campaignId: import("@sinclair/typebox").TString;
|
317
357
|
computedUntil: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|