@merkl/api 0.16.7 → 0.16.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 +167 -167
- package/dist/src/index.d.ts +35 -35
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerV3PoolProcessor.js +9 -1
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +2 -2
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +16 -16
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +2 -2
- package/dist/src/modules/v4/boost/boost.service.js +6 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +3 -3
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +15 -15
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +2 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +8 -11
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +0 -8
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +5 -5
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +5 -5
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +87 -87
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +5 -5
- package/dist/src/modules/v4/reward/reward.controller.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.service.d.ts +7 -7
- package/dist/src/modules/v4/router.d.ts +31 -31
- package/dist/src/modules/v4/router.js +20 -20
- package/dist/src/modules/v4/status/status.controller.d.ts +12 -12
- package/dist/src/modules/v4/status/status.repository.d.ts +12 -12
- package/dist/src/modules/v4/status/status.service.d.ts +12 -12
- package/dist/src/modules/v4/user/user.controller.d.ts +2 -2
- package/dist/src/routes/v3/opportunity.d.ts +1 -1
- package/dist/src/routes/v3/rewards.d.ts +1 -1
- package/dist/src/routes/v3/rewardsReport.d.ts +1 -1
- package/dist/src/routes/v3/router.d.ts +4 -4
- package/dist/src/routes/v3/userRewards.d.ts +1 -1
- package/dist/src/utils/generateCardName.js +0 -4
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/modules/v4/dynamicData/index.d.ts +0 -3
- package/dist/src/modules/v4/dynamicData/index.js +0 -3
- package/dist/src/modules/v4/liquidity/index.d.ts +0 -2
- package/dist/src/modules/v4/liquidity/index.js +0 -2
@@ -7,8 +7,6 @@ import { CampaignService } from "../campaign";
|
|
7
7
|
import { CampaignRepository } from "../campaign/campaign.repository";
|
8
8
|
import { OpportunityService } from "../opportunity";
|
9
9
|
export class DynamicDataService {
|
10
|
-
// ─── DynamicDatas ──────────────────────────────────────────────────────────
|
11
|
-
/** Fetches a single price */
|
12
10
|
static async queryERC20DynamicData(chainId, tokenAddress, decimals = 18) {
|
13
11
|
const campaigns = [
|
14
12
|
{
|
@@ -116,12 +114,6 @@ export class DynamicDataService {
|
|
116
114
|
const formattedCampaigns = campaigns.map(campaign => DynamicDataService.generateDummyData(CampaignService.format(campaign)));
|
117
115
|
return DynamicDataService.#getMultipleDynamicData(formattedCampaigns);
|
118
116
|
}
|
119
|
-
static async #getDynamicData(campaign) {
|
120
|
-
// const campaignType = DynamicDataService.getV3FromType(campaign.type);
|
121
|
-
if (campaign.type !== "INVALID") {
|
122
|
-
return await CampaignService.fetchDynamicData(campaign.computeChainId, campaign.type, [campaign]);
|
123
|
-
}
|
124
|
-
}
|
125
117
|
static async #getMultipleDynamicData(campaigns) {
|
126
118
|
const result = [];
|
127
119
|
// const campaignType = DynamicDataService.getV3FromType(campaign.type);
|
@@ -2,5 +2,5 @@ import { type MerklChainId } from "@sdk";
|
|
2
2
|
import type { Opportunity } from "../../opportunity";
|
3
3
|
import type { PositionFetcher } from "../liquidity.model";
|
4
4
|
export declare class AjnaPositionFetcher implements PositionFetcher {
|
5
|
-
fetchPositions: (chainId: MerklChainId, user: string, opportunities: Opportunity["model"][]) => Promise<import("
|
5
|
+
fetchPositions: (chainId: MerklChainId, user: string, opportunities: Opportunity["model"][]) => Promise<import("../liquidity.model").PositionT[]>;
|
6
6
|
}
|
@@ -2,5 +2,5 @@ import { type MerklChainId } from "@sdk";
|
|
2
2
|
import type { Opportunity } from "../../opportunity";
|
3
3
|
import type { PositionFetcher } from "../liquidity.model";
|
4
4
|
export declare class DolomitePositionFetcher implements PositionFetcher {
|
5
|
-
fetchPositions: (chainId: MerklChainId, user: string, opportunities: Opportunity["model"][]) => Promise<import("
|
5
|
+
fetchPositions: (chainId: MerklChainId, user: string, opportunities: Opportunity["model"][]) => Promise<import("../liquidity.model").PositionT[]>;
|
6
6
|
}
|
@@ -91,7 +91,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
91
91
|
} & {
|
92
92
|
price?: number | null | undefined;
|
93
93
|
})[];
|
94
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
94
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
95
95
|
depositUrl: any;
|
96
96
|
tags: string[];
|
97
97
|
};
|
@@ -268,6 +268,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
268
268
|
tags: string[];
|
269
269
|
icon: string;
|
270
270
|
} | null | undefined;
|
271
|
+
depositUrl?: string | undefined;
|
271
272
|
aprRecord?: {
|
272
273
|
timestamp: string | bigint;
|
273
274
|
cumulated: number;
|
@@ -279,7 +280,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
279
280
|
aprRecordId: string;
|
280
281
|
}[];
|
281
282
|
} | undefined;
|
282
|
-
depositUrl?: string | undefined;
|
283
283
|
tvlRecord?: {
|
284
284
|
total: number;
|
285
285
|
timestamp: string | bigint;
|
@@ -372,11 +372,11 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
372
372
|
startTimestamp?: string | undefined;
|
373
373
|
endTimestamp?: string | undefined;
|
374
374
|
tokenAddress?: string | undefined;
|
375
|
-
mainParameter?: string | undefined;
|
376
375
|
campaignId?: string | undefined;
|
377
376
|
opportunityId?: string | undefined;
|
378
377
|
creatorAddress?: string | undefined;
|
379
378
|
creatorId?: string | undefined;
|
379
|
+
mainParameter?: string | undefined;
|
380
380
|
test?: boolean | undefined;
|
381
381
|
creatorTag?: string | undefined;
|
382
382
|
tokenSymbol?: string | undefined;
|
@@ -392,6 +392,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
392
392
|
tags: string[];
|
393
393
|
icon: string;
|
394
394
|
} | null | undefined;
|
395
|
+
depositUrl?: string | undefined;
|
395
396
|
aprRecord?: {
|
396
397
|
timestamp: string | bigint;
|
397
398
|
cumulated: number;
|
@@ -403,7 +404,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
403
404
|
aprRecordId: string;
|
404
405
|
}[];
|
405
406
|
} | undefined;
|
406
|
-
depositUrl?: string | undefined;
|
407
407
|
tvlRecord?: {
|
408
408
|
total: number;
|
409
409
|
timestamp: string | bigint;
|
@@ -556,6 +556,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
556
556
|
tags: string[];
|
557
557
|
icon: string;
|
558
558
|
} | null | undefined;
|
559
|
+
depositUrl?: string | undefined;
|
559
560
|
aprRecord?: {
|
560
561
|
timestamp: string | bigint;
|
561
562
|
cumulated: number;
|
@@ -567,7 +568,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
567
568
|
aprRecordId: string;
|
568
569
|
}[];
|
569
570
|
} | undefined;
|
570
|
-
depositUrl?: string | undefined;
|
571
571
|
tvlRecord?: {
|
572
572
|
total: number;
|
573
573
|
timestamp: string | bigint;
|
@@ -165,6 +165,11 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
165
165
|
icon: import("@sinclair/typebox").TString;
|
166
166
|
}>;
|
167
167
|
chainId: import("@sinclair/typebox").TNumber;
|
168
|
+
action: import("@sinclair/typebox").TString;
|
169
|
+
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
170
|
+
tvl: import("@sinclair/typebox").TNumber;
|
171
|
+
apr: import("@sinclair/typebox").TNumber;
|
172
|
+
dailyRewards: import("@sinclair/typebox").TNumber;
|
168
173
|
aprRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
169
174
|
cumulated: import("@sinclair/typebox").TNumber;
|
170
175
|
timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
@@ -180,11 +185,6 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
180
185
|
aprRecordId: import("@sinclair/typebox").TString;
|
181
186
|
}>>;
|
182
187
|
}>>;
|
183
|
-
action: import("@sinclair/typebox").TString;
|
184
|
-
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
185
|
-
tvl: import("@sinclair/typebox").TNumber;
|
186
|
-
apr: import("@sinclair/typebox").TNumber;
|
187
|
-
dailyRewards: import("@sinclair/typebox").TNumber;
|
188
188
|
tvlRecord: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
189
189
|
total: import("@sinclair/typebox").TNumber;
|
190
190
|
timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
|
@@ -119,14 +119,6 @@ export declare abstract class OpportunityRepository {
|
|
119
119
|
Campaign: {
|
120
120
|
startTimestamp: bigint;
|
121
121
|
endTimestamp: bigint;
|
122
|
-
CampaignStatus: {
|
123
|
-
error: string;
|
124
|
-
details: Prisma.JsonValue;
|
125
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
126
|
-
campaignId: string;
|
127
|
-
computedUntil: bigint;
|
128
|
-
processingStarted: bigint;
|
129
|
-
}[];
|
130
122
|
amount: string;
|
131
123
|
RewardToken: {
|
132
124
|
symbol: string;
|
@@ -141,6 +133,14 @@ export declare abstract class OpportunityRepository {
|
|
141
133
|
isTest: boolean;
|
142
134
|
price: number | null;
|
143
135
|
};
|
136
|
+
CampaignStatus: {
|
137
|
+
error: string;
|
138
|
+
details: Prisma.JsonValue;
|
139
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
140
|
+
campaignId: string;
|
141
|
+
computedUntil: bigint;
|
142
|
+
processingStarted: bigint;
|
143
|
+
}[];
|
144
144
|
};
|
145
145
|
} & {
|
146
146
|
id: number;
|
@@ -237,14 +237,6 @@ export declare abstract class OpportunityRepository {
|
|
237
237
|
Campaign: {
|
238
238
|
startTimestamp: bigint;
|
239
239
|
endTimestamp: bigint;
|
240
|
-
CampaignStatus: {
|
241
|
-
error: string;
|
242
|
-
details: Prisma.JsonValue;
|
243
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
244
|
-
campaignId: string;
|
245
|
-
computedUntil: bigint;
|
246
|
-
processingStarted: bigint;
|
247
|
-
}[];
|
248
240
|
amount: string;
|
249
241
|
RewardToken: {
|
250
242
|
symbol: string;
|
@@ -259,6 +251,14 @@ export declare abstract class OpportunityRepository {
|
|
259
251
|
isTest: boolean;
|
260
252
|
price: number | null;
|
261
253
|
};
|
254
|
+
CampaignStatus: {
|
255
|
+
error: string;
|
256
|
+
details: Prisma.JsonValue;
|
257
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
258
|
+
campaignId: string;
|
259
|
+
computedUntil: bigint;
|
260
|
+
processingStarted: bigint;
|
261
|
+
}[];
|
262
262
|
};
|
263
263
|
} & {
|
264
264
|
id: number;
|
@@ -301,19 +301,6 @@ export declare abstract class OpportunityRepository {
|
|
301
301
|
icon: string;
|
302
302
|
};
|
303
303
|
Campaigns: ({
|
304
|
-
CampaignStatus: {
|
305
|
-
error: string;
|
306
|
-
details: Prisma.JsonValue;
|
307
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
308
|
-
campaignId: string;
|
309
|
-
computedUntil: bigint;
|
310
|
-
processingStarted: bigint;
|
311
|
-
}[];
|
312
|
-
Creator: {
|
313
|
-
tags: string[];
|
314
|
-
address: string;
|
315
|
-
creatorId: string | null;
|
316
|
-
};
|
317
304
|
ComputeChain: {
|
318
305
|
name: string;
|
319
306
|
id: number;
|
@@ -344,6 +331,19 @@ export declare abstract class OpportunityRepository {
|
|
344
331
|
isTest: boolean;
|
345
332
|
price: number | null;
|
346
333
|
};
|
334
|
+
Creator: {
|
335
|
+
tags: string[];
|
336
|
+
address: string;
|
337
|
+
creatorId: string | null;
|
338
|
+
};
|
339
|
+
CampaignStatus: {
|
340
|
+
error: string;
|
341
|
+
details: Prisma.JsonValue;
|
342
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
343
|
+
campaignId: string;
|
344
|
+
computedUntil: bigint;
|
345
|
+
processingStarted: bigint;
|
346
|
+
}[];
|
347
347
|
} & {
|
348
348
|
type: string;
|
349
349
|
id: string;
|
@@ -421,14 +421,6 @@ export declare abstract class OpportunityRepository {
|
|
421
421
|
Campaign: {
|
422
422
|
startTimestamp: bigint;
|
423
423
|
endTimestamp: bigint;
|
424
|
-
CampaignStatus: {
|
425
|
-
error: string;
|
426
|
-
details: Prisma.JsonValue;
|
427
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
428
|
-
campaignId: string;
|
429
|
-
computedUntil: bigint;
|
430
|
-
processingStarted: bigint;
|
431
|
-
}[];
|
432
424
|
amount: string;
|
433
425
|
RewardToken: {
|
434
426
|
symbol: string;
|
@@ -443,6 +435,14 @@ export declare abstract class OpportunityRepository {
|
|
443
435
|
isTest: boolean;
|
444
436
|
price: number | null;
|
445
437
|
};
|
438
|
+
CampaignStatus: {
|
439
|
+
error: string;
|
440
|
+
details: Prisma.JsonValue;
|
441
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
442
|
+
campaignId: string;
|
443
|
+
computedUntil: bigint;
|
444
|
+
processingStarted: bigint;
|
445
|
+
}[];
|
446
446
|
};
|
447
447
|
} & {
|
448
448
|
id: number;
|
@@ -490,19 +490,6 @@ export declare abstract class OpportunityRepository {
|
|
490
490
|
icon: string;
|
491
491
|
};
|
492
492
|
Campaigns: ({
|
493
|
-
CampaignStatus: {
|
494
|
-
error: string;
|
495
|
-
details: Prisma.JsonValue;
|
496
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
497
|
-
campaignId: string;
|
498
|
-
computedUntil: bigint;
|
499
|
-
processingStarted: bigint;
|
500
|
-
}[];
|
501
|
-
Creator: {
|
502
|
-
tags: string[];
|
503
|
-
address: string;
|
504
|
-
creatorId: string | null;
|
505
|
-
};
|
506
493
|
ComputeChain: {
|
507
494
|
name: string;
|
508
495
|
id: number;
|
@@ -533,6 +520,19 @@ export declare abstract class OpportunityRepository {
|
|
533
520
|
isTest: boolean;
|
534
521
|
price: number | null;
|
535
522
|
};
|
523
|
+
Creator: {
|
524
|
+
tags: string[];
|
525
|
+
address: string;
|
526
|
+
creatorId: string | null;
|
527
|
+
};
|
528
|
+
CampaignStatus: {
|
529
|
+
error: string;
|
530
|
+
details: Prisma.JsonValue;
|
531
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
532
|
+
campaignId: string;
|
533
|
+
computedUntil: bigint;
|
534
|
+
processingStarted: bigint;
|
535
|
+
}[];
|
536
536
|
} & {
|
537
537
|
type: string;
|
538
538
|
id: string;
|
@@ -610,14 +610,6 @@ export declare abstract class OpportunityRepository {
|
|
610
610
|
Campaign: {
|
611
611
|
startTimestamp: bigint;
|
612
612
|
endTimestamp: bigint;
|
613
|
-
CampaignStatus: {
|
614
|
-
error: string;
|
615
|
-
details: Prisma.JsonValue;
|
616
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
617
|
-
campaignId: string;
|
618
|
-
computedUntil: bigint;
|
619
|
-
processingStarted: bigint;
|
620
|
-
}[];
|
621
613
|
amount: string;
|
622
614
|
RewardToken: {
|
623
615
|
symbol: string;
|
@@ -632,6 +624,14 @@ export declare abstract class OpportunityRepository {
|
|
632
624
|
isTest: boolean;
|
633
625
|
price: number | null;
|
634
626
|
};
|
627
|
+
CampaignStatus: {
|
628
|
+
error: string;
|
629
|
+
details: Prisma.JsonValue;
|
630
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
631
|
+
campaignId: string;
|
632
|
+
computedUntil: bigint;
|
633
|
+
processingStarted: bigint;
|
634
|
+
}[];
|
635
635
|
};
|
636
636
|
} & {
|
637
637
|
id: number;
|
@@ -773,14 +773,6 @@ export declare abstract class OpportunityRepository {
|
|
773
773
|
Campaign: {
|
774
774
|
startTimestamp: bigint;
|
775
775
|
endTimestamp: bigint;
|
776
|
-
CampaignStatus: {
|
777
|
-
error: string;
|
778
|
-
details: Prisma.JsonValue;
|
779
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
780
|
-
campaignId: string;
|
781
|
-
computedUntil: bigint;
|
782
|
-
processingStarted: bigint;
|
783
|
-
}[];
|
784
776
|
amount: string;
|
785
777
|
RewardToken: {
|
786
778
|
symbol: string;
|
@@ -795,6 +787,14 @@ export declare abstract class OpportunityRepository {
|
|
795
787
|
isTest: boolean;
|
796
788
|
price: number | null;
|
797
789
|
};
|
790
|
+
CampaignStatus: {
|
791
|
+
error: string;
|
792
|
+
details: Prisma.JsonValue;
|
793
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
794
|
+
campaignId: string;
|
795
|
+
computedUntil: bigint;
|
796
|
+
processingStarted: bigint;
|
797
|
+
}[];
|
798
798
|
};
|
799
799
|
} & {
|
800
800
|
id: number;
|
@@ -830,19 +830,6 @@ export declare abstract class OpportunityRepository {
|
|
830
830
|
icon: string;
|
831
831
|
};
|
832
832
|
Campaigns: ({
|
833
|
-
CampaignStatus: {
|
834
|
-
error: string;
|
835
|
-
details: Prisma.JsonValue;
|
836
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
837
|
-
campaignId: string;
|
838
|
-
computedUntil: bigint;
|
839
|
-
processingStarted: bigint;
|
840
|
-
}[];
|
841
|
-
Creator: {
|
842
|
-
tags: string[];
|
843
|
-
address: string;
|
844
|
-
creatorId: string | null;
|
845
|
-
};
|
846
833
|
ComputeChain: {
|
847
834
|
name: string;
|
848
835
|
id: number;
|
@@ -866,6 +853,19 @@ export declare abstract class OpportunityRepository {
|
|
866
853
|
isTest: boolean;
|
867
854
|
price: number | null;
|
868
855
|
};
|
856
|
+
Creator: {
|
857
|
+
tags: string[];
|
858
|
+
address: string;
|
859
|
+
creatorId: string | null;
|
860
|
+
};
|
861
|
+
CampaignStatus: {
|
862
|
+
error: string;
|
863
|
+
details: Prisma.JsonValue;
|
864
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
865
|
+
campaignId: string;
|
866
|
+
computedUntil: bigint;
|
867
|
+
processingStarted: bigint;
|
868
|
+
}[];
|
869
869
|
} & {
|
870
870
|
type: string;
|
871
871
|
id: string;
|
@@ -943,14 +943,6 @@ export declare abstract class OpportunityRepository {
|
|
943
943
|
Campaign: {
|
944
944
|
startTimestamp: bigint;
|
945
945
|
endTimestamp: bigint;
|
946
|
-
CampaignStatus: {
|
947
|
-
error: string;
|
948
|
-
details: Prisma.JsonValue;
|
949
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
950
|
-
campaignId: string;
|
951
|
-
computedUntil: bigint;
|
952
|
-
processingStarted: bigint;
|
953
|
-
}[];
|
954
946
|
amount: string;
|
955
947
|
RewardToken: {
|
956
948
|
symbol: string;
|
@@ -965,6 +957,14 @@ export declare abstract class OpportunityRepository {
|
|
965
957
|
isTest: boolean;
|
966
958
|
price: number | null;
|
967
959
|
};
|
960
|
+
CampaignStatus: {
|
961
|
+
error: string;
|
962
|
+
details: Prisma.JsonValue;
|
963
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
964
|
+
campaignId: string;
|
965
|
+
computedUntil: bigint;
|
966
|
+
processingStarted: bigint;
|
967
|
+
}[];
|
968
968
|
};
|
969
969
|
} & {
|
970
970
|
id: number;
|
@@ -34,7 +34,7 @@ export declare abstract class OpportunityService {
|
|
34
34
|
name: string;
|
35
35
|
status: "SOON";
|
36
36
|
action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
|
37
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
37
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
38
38
|
depositUrl: any;
|
39
39
|
tags: string[];
|
40
40
|
}>;
|
@@ -59,7 +59,7 @@ export declare abstract class OpportunityService {
|
|
59
59
|
} & {
|
60
60
|
price?: number | null | undefined;
|
61
61
|
})[];
|
62
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
62
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
63
63
|
depositUrl: any;
|
64
64
|
tags: string[];
|
65
65
|
}>;
|
@@ -83,7 +83,7 @@ export declare abstract class OpportunityService {
|
|
83
83
|
verified: boolean;
|
84
84
|
isTest: boolean;
|
85
85
|
}[];
|
86
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
86
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
87
87
|
depositUrl: string | undefined;
|
88
88
|
tags: string[];
|
89
89
|
}>;
|
@@ -111,7 +111,7 @@ export declare abstract class OpportunityService {
|
|
111
111
|
} & {
|
112
112
|
price?: number | null | undefined;
|
113
113
|
})[];
|
114
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
114
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
115
115
|
depositUrl: any;
|
116
116
|
tags: string[];
|
117
117
|
}>;
|
@@ -131,6 +131,7 @@ export declare abstract class OpportunityService {
|
|
131
131
|
tags: string[];
|
132
132
|
icon: string;
|
133
133
|
} | null | undefined;
|
134
|
+
depositUrl?: string | undefined;
|
134
135
|
aprRecord?: {
|
135
136
|
timestamp: string | bigint;
|
136
137
|
cumulated: number;
|
@@ -142,7 +143,6 @@ export declare abstract class OpportunityService {
|
|
142
143
|
aprRecordId: string;
|
143
144
|
}[];
|
144
145
|
} | undefined;
|
145
|
-
depositUrl?: string | undefined;
|
146
146
|
tvlRecord?: {
|
147
147
|
total: number;
|
148
148
|
timestamp: string | bigint;
|
@@ -211,10 +211,10 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
211
211
|
post: {
|
212
212
|
body: {
|
213
213
|
pending: string;
|
214
|
-
recipient: string;
|
215
214
|
distributionChainId: number;
|
216
215
|
amount: string;
|
217
216
|
root: string;
|
217
|
+
recipient: string;
|
218
218
|
claimed: string;
|
219
219
|
proofs: string[];
|
220
220
|
rewardToken: string;
|
@@ -245,8 +245,8 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
245
245
|
protocolId?: string | undefined;
|
246
246
|
reason: string;
|
247
247
|
pending: string;
|
248
|
-
recipient: string;
|
249
248
|
amount: string;
|
249
|
+
recipient: string;
|
250
250
|
claimed: string;
|
251
251
|
}[];
|
252
252
|
}[];
|
@@ -270,8 +270,8 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
270
270
|
body: {
|
271
271
|
token: string;
|
272
272
|
chainId: number;
|
273
|
-
recipient: string;
|
274
273
|
root: string;
|
274
|
+
recipient: string;
|
275
275
|
}[];
|
276
276
|
params: {};
|
277
277
|
query: unknown;
|
@@ -19,6 +19,7 @@ export declare abstract class RewardRepository {
|
|
19
19
|
};
|
20
20
|
Breakdown: ({
|
21
21
|
Campaign: {
|
22
|
+
campaignId: string;
|
22
23
|
Opportunity: {
|
23
24
|
Chain: {
|
24
25
|
name: string;
|
@@ -69,7 +70,6 @@ export declare abstract class RewardRepository {
|
|
69
70
|
apr: number;
|
70
71
|
dailyRewards: number;
|
71
72
|
};
|
72
|
-
campaignId: string;
|
73
73
|
};
|
74
74
|
} & {
|
75
75
|
reason: string;
|
@@ -84,10 +84,10 @@ export declare abstract class RewardRepository {
|
|
84
84
|
} & {
|
85
85
|
pending: string;
|
86
86
|
id: string;
|
87
|
-
recipient: string;
|
88
87
|
rewardTokenId: string;
|
89
88
|
amount: string;
|
90
89
|
root: string;
|
90
|
+
recipient: string;
|
91
91
|
claimed: string;
|
92
92
|
proofs: string[];
|
93
93
|
})[]>;
|
@@ -109,10 +109,10 @@ export declare abstract class RewardRepository {
|
|
109
109
|
} & {
|
110
110
|
pending: string;
|
111
111
|
id: string;
|
112
|
-
recipient: string;
|
113
112
|
rewardTokenId: string;
|
114
113
|
amount: string;
|
115
114
|
root: string;
|
115
|
+
recipient: string;
|
116
116
|
claimed: string;
|
117
117
|
proofs: string[];
|
118
118
|
}) | null>;
|
@@ -149,8 +149,8 @@ export declare abstract class RewardService {
|
|
149
149
|
claimed: bigint;
|
150
150
|
amount: bigint;
|
151
151
|
pending: bigint;
|
152
|
-
recipient: string;
|
153
152
|
root: string;
|
153
|
+
recipient: string;
|
154
154
|
proofs: string[];
|
155
155
|
}[];
|
156
156
|
static createManyBreakdown(data: CreateManyBreakdownModel): Promise<import("database/api/.generated/runtime/library").GetBatchResult | undefined>;
|
@@ -170,6 +170,7 @@ export declare abstract class RewardService {
|
|
170
170
|
};
|
171
171
|
Breakdown: ({
|
172
172
|
Campaign: {
|
173
|
+
campaignId: string;
|
173
174
|
Opportunity: {
|
174
175
|
Chain: {
|
175
176
|
name: string;
|
@@ -220,7 +221,6 @@ export declare abstract class RewardService {
|
|
220
221
|
apr: number;
|
221
222
|
dailyRewards: number;
|
222
223
|
};
|
223
|
-
campaignId: string;
|
224
224
|
};
|
225
225
|
} & {
|
226
226
|
reason: string;
|
@@ -235,10 +235,10 @@ export declare abstract class RewardService {
|
|
235
235
|
} & {
|
236
236
|
pending: string;
|
237
237
|
id: string;
|
238
|
-
recipient: string;
|
239
238
|
rewardTokenId: string;
|
240
239
|
amount: string;
|
241
240
|
root: string;
|
241
|
+
recipient: string;
|
242
242
|
claimed: string;
|
243
243
|
proofs: string[];
|
244
244
|
})[]>;
|
@@ -338,8 +338,8 @@ export declare abstract class RewardService {
|
|
338
338
|
claimed: bigint;
|
339
339
|
amount: bigint;
|
340
340
|
pending: bigint;
|
341
|
-
recipient: string;
|
342
341
|
root: string;
|
342
|
+
recipient: string;
|
343
343
|
proofs: string[];
|
344
344
|
}, "breakdowns"> & {
|
345
345
|
breakdowns: {
|
@@ -429,8 +429,8 @@ export declare abstract class RewardService {
|
|
429
429
|
claimed: bigint;
|
430
430
|
amount: bigint;
|
431
431
|
pending: bigint;
|
432
|
-
recipient: string;
|
433
432
|
root: string;
|
433
|
+
recipient: string;
|
434
434
|
proofs: string[];
|
435
435
|
}, "breakdowns"> & {
|
436
436
|
breakdowns: {
|
@@ -459,6 +459,7 @@ export declare abstract class RewardService {
|
|
459
459
|
};
|
460
460
|
Breakdown: ({
|
461
461
|
Campaign: {
|
462
|
+
campaignId: string;
|
462
463
|
Opportunity: {
|
463
464
|
Chain: {
|
464
465
|
name: string;
|
@@ -509,7 +510,6 @@ export declare abstract class RewardService {
|
|
509
510
|
apr: number;
|
510
511
|
dailyRewards: number;
|
511
512
|
};
|
512
|
-
campaignId: string;
|
513
513
|
};
|
514
514
|
} & {
|
515
515
|
reason: string;
|
@@ -524,10 +524,10 @@ export declare abstract class RewardService {
|
|
524
524
|
} & {
|
525
525
|
pending: string;
|
526
526
|
id: string;
|
527
|
-
recipient: string;
|
528
527
|
rewardTokenId: string;
|
529
528
|
amount: string;
|
530
529
|
root: string;
|
530
|
+
recipient: string;
|
531
531
|
claimed: string;
|
532
532
|
proofs: string[];
|
533
533
|
})[]>;
|