@merkl/api 0.18.8 → 0.18.10
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/backgroundJobs/index.js +1 -1
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.js +1 -1
- package/dist/src/eden/index.d.ts +521 -518
- package/dist/src/factories/opportunityMetadata/implementations/Clamm.js +1 -1
- package/dist/src/index.d.ts +111 -110
- package/dist/src/index.js +1 -1
- package/dist/src/jobs/etl/pendings.js +1 -1
- package/dist/src/jobs/etl/reward-breakdowns.js +1 -1
- package/dist/src/jobs/etl/rewards.js +1 -1
- package/dist/src/jobs/etl/update-euler-vaults.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/EventBasedDynamicData.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/UniswapV4DynamicData.js +1 -1
- package/dist/src/libs/campaigns/utils/getEulerV2Vaults.js +1 -1
- package/dist/src/libs/campaigns/utils/getUniswapV4Pools.js +1 -1
- package/dist/src/libs/getTokensList.d.ts +3 -0
- package/dist/src/libs/positions/erc20/index.js +1 -0
- package/dist/src/libs/staticCampaigns.js +1 -1
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +6 -6
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +16 -16
- package/dist/src/modules/v4/accounting/accounting.repository.js +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.repository.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +20 -20
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +29 -29
- package/dist/src/modules/v4/campaign/campaign.repository.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +26 -26
- package/dist/src/modules/v4/chain/chain.repository.js +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.js +1 -1
- package/dist/src/modules/v4/creator/creator.repository.js +1 -1
- package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.repository.js +1 -1
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +3 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +3 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.js +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +34 -34
- package/dist/src/modules/v4/opportunity/opportunity.converter.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +57 -57
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +35 -35
- package/dist/src/modules/v4/price/price.repository.js +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +11 -11
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +3 -3
- package/dist/src/modules/v4/protocol/protocol.repository.js +1 -1
- package/dist/src/modules/v4/referral/referral.controller.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.d.ts +6 -6
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.repository.js +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +17 -17
- package/dist/src/modules/v4/router.d.ts +102 -102
- package/dist/src/modules/v4/status/status.controller.d.ts +2 -2
- package/dist/src/modules/v4/status/status.repository.d.ts +2 -2
- package/dist/src/modules/v4/status/status.repository.js +1 -1
- package/dist/src/modules/v4/status/status.service.d.ts +2 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +12 -12
- package/dist/src/modules/v4/token/token.repository.d.ts +4 -9
- package/dist/src/modules/v4/token/token.repository.js +3 -9
- package/dist/src/modules/v4/token/token.service.d.ts +10 -10
- package/dist/src/modules/v4/token/token.service.js +3 -3
- package/dist/src/modules/v4/user/user.controller.d.ts +6 -6
- package/dist/src/modules/v4/user/user.repository.js +1 -1
- package/dist/src/modules/v4/user/user.service.js +1 -1
- package/dist/src/routes/v3/campaign/delay.js +1 -1
- package/dist/src/routes/v3/campaignClaims.d.ts +1 -1
- package/dist/src/routes/v3/campaignClaims.js +1 -1
- package/dist/src/routes/v3/campaigns.d.ts +3 -2
- package/dist/src/routes/v3/campaigns.js +21 -59
- package/dist/src/routes/v3/multiChainPositions.js +1 -0
- package/dist/src/routes/v3/opportunity.d.ts +1 -1
- package/dist/src/routes/v3/parse.d.ts +1 -1
- package/dist/src/routes/v3/positions.js +1 -0
- package/dist/src/routes/v3/recipients.d.ts +1 -1
- package/dist/src/routes/v3/rewardsReport.d.ts +1 -1
- package/dist/src/routes/v3/router.d.ts +9 -8
- package/dist/src/routes/v3/token.d.ts +1 -1
- package/dist/src/utils/execute.d.ts +3 -13
- package/dist/src/utils/execute.js +77 -1
- package/dist/src/utils/generic.d.ts +1 -18
- package/dist/src/utils/generic.js +2 -76
- package/dist/src/utils/hashArray.d.ts +1 -0
- package/dist/src/utils/hashArray.js +4 -1
- package/dist/src/utils/queries/allCampaigns.d.ts +0 -4
- package/dist/src/utils/queries/allCampaigns.js +0 -39
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/utils/addString.d.ts +0 -2
- package/dist/src/utils/addString.js +0 -6
- package/dist/src/utils/crypto.d.ts +0 -1
- package/dist/src/utils/crypto.js +0 -4
- package/dist/src/utils/queries/activeCampaigns.d.ts +0 -3
- package/dist/src/utils/queries/activeCampaigns.js +0 -22
- package/dist/src/utils/validation.d.ts +0 -5
- package/dist/src/utils/validation.js +0 -20
- /package/dist/{src/utils/prisma.d.ts → database/index.d.ts} +0 -0
- /package/dist/{src/utils/prisma.js → database/index.js} +0 -0
- /package/dist/src/utils/{camelToKebabCase.d.ts → caseChanges.d.ts} +0 -0
- /package/dist/src/utils/{camelToKebabCase.js → caseChanges.js} +0 -0
@@ -24,12 +24,12 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
24
24
|
type: string;
|
25
25
|
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
26
26
|
tokens: {
|
27
|
-
chainId: number;
|
28
27
|
address: string;
|
28
|
+
chainId: number;
|
29
29
|
}[];
|
30
30
|
identifier: string;
|
31
|
-
chainId: number;
|
32
31
|
action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "INVALID";
|
32
|
+
chainId: number;
|
33
33
|
};
|
34
34
|
params: {};
|
35
35
|
query: unknown;
|
@@ -44,8 +44,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
44
44
|
status: import("@db/api").$Enums.Status;
|
45
45
|
tags: string[];
|
46
46
|
identifier: string;
|
47
|
-
chainId: number;
|
48
47
|
action: import("@db/api").$Enums.OpportunityAction;
|
48
|
+
chainId: number;
|
49
49
|
depositUrl: string | null;
|
50
50
|
mainProtocolId: string | null;
|
51
51
|
tvl: number;
|
@@ -83,8 +83,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
83
83
|
id: string;
|
84
84
|
name: string | null;
|
85
85
|
icon: string;
|
86
|
-
chainId: number;
|
87
86
|
address: string;
|
87
|
+
chainId: number;
|
88
88
|
decimals: number;
|
89
89
|
verified: boolean;
|
90
90
|
isTest: boolean;
|
@@ -116,9 +116,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
116
116
|
tags?: string | undefined;
|
117
117
|
identifier?: string | undefined;
|
118
118
|
page?: number | undefined;
|
119
|
-
chainId?: string | undefined;
|
120
119
|
action?: string | undefined;
|
121
120
|
creatorAddress?: string | undefined;
|
121
|
+
chainId?: string | undefined;
|
122
122
|
mainProtocolId?: string | undefined;
|
123
123
|
campaigns?: boolean | undefined;
|
124
124
|
order?: string | undefined;
|
@@ -166,8 +166,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
166
166
|
id: string;
|
167
167
|
name: string | null;
|
168
168
|
icon: string;
|
169
|
-
chainId: number;
|
170
169
|
address: string;
|
170
|
+
chainId: number;
|
171
171
|
decimals: number;
|
172
172
|
displaySymbol: string;
|
173
173
|
verified: boolean;
|
@@ -192,8 +192,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
192
192
|
id: string;
|
193
193
|
name: string | null;
|
194
194
|
icon: string;
|
195
|
-
chainId: number;
|
196
195
|
address: string;
|
196
|
+
chainId: number;
|
197
197
|
decimals: number;
|
198
198
|
verified: boolean;
|
199
199
|
isTest: boolean;
|
@@ -227,8 +227,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
227
227
|
status: import("@db/api").$Enums.Status;
|
228
228
|
tags: string[];
|
229
229
|
identifier: string;
|
230
|
-
chainId: number;
|
231
230
|
action: import("@db/api").$Enums.OpportunityAction;
|
231
|
+
chainId: number;
|
232
232
|
depositUrl: string | null;
|
233
233
|
mainProtocolId: string | null;
|
234
234
|
tvl: number;
|
@@ -253,8 +253,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
253
253
|
id: string;
|
254
254
|
name: string | null;
|
255
255
|
icon: string;
|
256
|
-
chainId: number;
|
257
256
|
address: string;
|
257
|
+
chainId: number;
|
258
258
|
decimals: number;
|
259
259
|
verified: boolean;
|
260
260
|
isTest: boolean;
|
@@ -280,8 +280,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
280
280
|
status: import("@db/api").$Enums.Status;
|
281
281
|
tags: string[];
|
282
282
|
identifier: string;
|
283
|
-
chainId: number;
|
284
283
|
action: import("@db/api").$Enums.OpportunityAction;
|
284
|
+
chainId: number;
|
285
285
|
tvl: number;
|
286
286
|
dailyRewards: number;
|
287
287
|
}[];
|
@@ -305,9 +305,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
305
305
|
tags?: string | undefined;
|
306
306
|
identifier?: string | undefined;
|
307
307
|
page?: number | undefined;
|
308
|
-
chainId?: string | undefined;
|
309
308
|
action?: string | undefined;
|
310
309
|
creatorAddress?: string | undefined;
|
310
|
+
chainId?: string | undefined;
|
311
311
|
mainProtocolId?: string | undefined;
|
312
312
|
campaigns?: boolean | undefined;
|
313
313
|
order?: string | undefined;
|
@@ -378,8 +378,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
378
378
|
id: string;
|
379
379
|
name: string | null;
|
380
380
|
icon: string;
|
381
|
-
chainId: number;
|
382
381
|
address: string;
|
382
|
+
chainId: number;
|
383
383
|
decimals: number;
|
384
384
|
verified: boolean;
|
385
385
|
isTest: boolean;
|
@@ -400,8 +400,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
400
400
|
id: string;
|
401
401
|
name: string | null;
|
402
402
|
icon: string;
|
403
|
-
chainId: number;
|
404
403
|
address: string;
|
404
|
+
chainId: number;
|
405
405
|
decimals: number;
|
406
406
|
verified: boolean;
|
407
407
|
isTest: boolean;
|
@@ -413,8 +413,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
413
413
|
name: string;
|
414
414
|
icon: string;
|
415
415
|
};
|
416
|
-
chainId: number;
|
417
416
|
action: string;
|
417
|
+
chainId: number;
|
418
418
|
tvl: number;
|
419
419
|
apr: number;
|
420
420
|
dailyRewards: number;
|
@@ -444,16 +444,16 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
444
444
|
items?: number | undefined;
|
445
445
|
subType?: number | undefined;
|
446
446
|
page?: number | undefined;
|
447
|
-
chainId?: number | undefined;
|
448
|
-
startTimestamp?: string | undefined;
|
449
|
-
endTimestamp?: string | undefined;
|
450
|
-
tokenAddress?: string | undefined;
|
451
447
|
types?: string[] | undefined;
|
452
448
|
campaignId?: string | undefined;
|
453
449
|
opportunityId?: string | undefined;
|
450
|
+
startTimestamp?: string | undefined;
|
451
|
+
endTimestamp?: string | undefined;
|
454
452
|
creatorAddress?: string | undefined;
|
453
|
+
chainId?: number | undefined;
|
455
454
|
creatorId?: string | undefined;
|
456
455
|
mainParameter?: string | undefined;
|
456
|
+
tokenAddress?: string | undefined;
|
457
457
|
test?: boolean | undefined;
|
458
458
|
creatorTag?: string | undefined;
|
459
459
|
distributionChainIds?: number[] | undefined;
|
@@ -506,8 +506,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
506
506
|
id: string;
|
507
507
|
name: string | null;
|
508
508
|
icon: string;
|
509
|
-
chainId: number;
|
510
509
|
address: string;
|
510
|
+
chainId: number;
|
511
511
|
decimals: number;
|
512
512
|
verified: boolean;
|
513
513
|
isTest: boolean;
|
@@ -528,8 +528,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
528
528
|
id: string;
|
529
529
|
name: string | null;
|
530
530
|
icon: string;
|
531
|
-
chainId: number;
|
532
531
|
address: string;
|
532
|
+
chainId: number;
|
533
533
|
decimals: number;
|
534
534
|
verified: boolean;
|
535
535
|
isTest: boolean;
|
@@ -541,8 +541,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
541
541
|
name: string;
|
542
542
|
icon: string;
|
543
543
|
};
|
544
|
-
chainId: number;
|
545
544
|
action: string;
|
545
|
+
chainId: number;
|
546
546
|
tvl: number;
|
547
547
|
apr: number;
|
548
548
|
dailyRewards: number;
|
@@ -574,14 +574,14 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
574
574
|
name: string;
|
575
575
|
icon: string;
|
576
576
|
};
|
577
|
-
startTimestamp: string | number;
|
578
|
-
endTimestamp: string | number;
|
579
577
|
computeChainId: number;
|
580
578
|
distributionChainId: number;
|
581
579
|
campaignId: string;
|
582
580
|
rewardTokenId: string;
|
583
581
|
amount: string;
|
584
582
|
opportunityId: string;
|
583
|
+
startTimestamp: string | number;
|
584
|
+
endTimestamp: string | number;
|
585
585
|
creatorAddress: string;
|
586
586
|
rewardToken: {
|
587
587
|
price?: number | null | undefined;
|
@@ -589,8 +589,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
589
589
|
id: string;
|
590
590
|
name: string | null;
|
591
591
|
icon: string;
|
592
|
-
chainId: number;
|
593
592
|
address: string;
|
593
|
+
chainId: number;
|
594
594
|
decimals: number;
|
595
595
|
verified: boolean;
|
596
596
|
isTest: boolean;
|
@@ -668,8 +668,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
668
668
|
id: string;
|
669
669
|
name: string | null;
|
670
670
|
icon: string;
|
671
|
-
chainId: number;
|
672
671
|
address: string;
|
672
|
+
chainId: number;
|
673
673
|
decimals: number;
|
674
674
|
verified: boolean;
|
675
675
|
isTest: boolean;
|
@@ -690,8 +690,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
690
690
|
id: string;
|
691
691
|
name: string | null;
|
692
692
|
icon: string;
|
693
|
-
chainId: number;
|
694
693
|
address: string;
|
694
|
+
chainId: number;
|
695
695
|
decimals: number;
|
696
696
|
verified: boolean;
|
697
697
|
isTest: boolean;
|
@@ -703,8 +703,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
703
703
|
name: string;
|
704
704
|
icon: string;
|
705
705
|
};
|
706
|
-
chainId: number;
|
707
706
|
action: string;
|
707
|
+
chainId: number;
|
708
708
|
tvl: number;
|
709
709
|
apr: number;
|
710
710
|
dailyRewards: number;
|
@@ -736,14 +736,14 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
736
736
|
name: string;
|
737
737
|
icon: string;
|
738
738
|
};
|
739
|
-
startTimestamp: string | number;
|
740
|
-
endTimestamp: string | number;
|
741
739
|
computeChainId: number;
|
742
740
|
distributionChainId: number;
|
743
741
|
campaignId: string;
|
744
742
|
rewardTokenId: string;
|
745
743
|
amount: string;
|
746
744
|
opportunityId: string;
|
745
|
+
startTimestamp: string | number;
|
746
|
+
endTimestamp: string | number;
|
747
747
|
creatorAddress: string;
|
748
748
|
rewardToken: {
|
749
749
|
price?: number | null | undefined;
|
@@ -751,8 +751,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
751
751
|
id: string;
|
752
752
|
name: string | null;
|
753
753
|
icon: string;
|
754
|
-
chainId: number;
|
755
754
|
address: string;
|
755
|
+
chainId: number;
|
756
756
|
decimals: number;
|
757
757
|
verified: boolean;
|
758
758
|
isTest: boolean;
|
@@ -792,9 +792,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
792
792
|
tags?: string | undefined;
|
793
793
|
identifier?: string | undefined;
|
794
794
|
page?: number | undefined;
|
795
|
-
chainId?: string | undefined;
|
796
795
|
action?: string | undefined;
|
797
796
|
creatorAddress?: string | undefined;
|
797
|
+
chainId?: string | undefined;
|
798
798
|
mainProtocolId?: string | undefined;
|
799
799
|
campaigns?: boolean | undefined;
|
800
800
|
order?: string | undefined;
|
@@ -831,9 +831,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
831
831
|
tags?: string | undefined;
|
832
832
|
identifier?: string | undefined;
|
833
833
|
page?: number | undefined;
|
834
|
-
chainId?: string | undefined;
|
835
834
|
action?: string | undefined;
|
836
835
|
creatorAddress?: string | undefined;
|
836
|
+
chainId?: string | undefined;
|
837
837
|
mainProtocolId?: string | undefined;
|
838
838
|
campaigns?: boolean | undefined;
|
839
839
|
order?: string | undefined;
|
@@ -871,9 +871,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
871
871
|
tags?: string | undefined;
|
872
872
|
identifier?: string | undefined;
|
873
873
|
page?: number | undefined;
|
874
|
-
chainId?: string | undefined;
|
875
874
|
action?: string | undefined;
|
876
875
|
creatorAddress?: string | undefined;
|
876
|
+
chainId?: string | undefined;
|
877
877
|
mainProtocolId?: string | undefined;
|
878
878
|
campaigns?: boolean | undefined;
|
879
879
|
order?: string | undefined;
|
@@ -915,8 +915,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
915
915
|
status: import("@db/api").$Enums.Status;
|
916
916
|
tags: string[];
|
917
917
|
identifier: string;
|
918
|
-
chainId: number;
|
919
918
|
action: import("@db/api").$Enums.OpportunityAction;
|
919
|
+
chainId: number;
|
920
920
|
depositUrl: string | null;
|
921
921
|
mainProtocolId: string | null;
|
922
922
|
tvl: number;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { kebabToPascalCase } from "@/utils/
|
1
|
+
import { kebabToPascalCase } from "@/utils/caseChanges";
|
2
2
|
import { log } from "@/utils/logger";
|
3
3
|
import { Campaign as CampaignEnum, EAprBreakdownType, opportunityActions, } from "@sdk";
|
4
4
|
import moment from "moment";
|
@@ -153,8 +153,8 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
153
153
|
name: import("@sinclair/typebox").TString;
|
154
154
|
icon: import("@sinclair/typebox").TString;
|
155
155
|
}>;
|
156
|
-
chainId: import("@sinclair/typebox").TNumber;
|
157
156
|
action: import("@sinclair/typebox").TString;
|
157
|
+
chainId: import("@sinclair/typebox").TNumber;
|
158
158
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
159
159
|
tvl: import("@sinclair/typebox").TNumber;
|
160
160
|
apr: import("@sinclair/typebox").TNumber;
|