@merkl/api 1.7.16 → 1.7.18
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 +41 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +42 -0
- package/dist/src/index.d.ts +41 -0
- package/dist/src/jobs/analytics/aggregators/campaign-aggregator.d.ts +5 -0
- package/dist/src/jobs/analytics/aggregators/campaign-aggregator.js.map +1 -0
- package/dist/src/jobs/analytics/aggregators/cohort-aggregator.d.ts +6 -0
- package/dist/src/jobs/analytics/aggregators/cohort-aggregator.js.map +1 -0
- package/dist/src/jobs/analytics/aggregators/reward-aggregator.d.ts +6 -0
- package/dist/src/jobs/analytics/aggregators/reward-aggregator.js.map +1 -0
- package/dist/src/jobs/analytics/analytics.model.d.ts +42 -0
- package/dist/src/jobs/analytics/analytics.model.js.map +1 -0
- package/dist/src/jobs/analytics/analytics.service.d.ts +9 -0
- package/dist/src/jobs/analytics/analytics.service.js.map +1 -0
- package/dist/src/jobs/analytics/notion/notion-client.service.d.ts +10 -0
- package/dist/src/jobs/analytics/notion/notion-client.service.js.map +1 -0
- package/dist/src/jobs/analytics/notion/notion-cohort-sync.service.d.ts +5 -0
- package/dist/src/jobs/analytics/notion/notion-cohort-sync.service.js.map +1 -0
- package/dist/src/jobs/analytics/notion/notion-sync.service.d.ts +4 -0
- package/dist/src/jobs/analytics/notion/notion-sync.service.js.map +1 -0
- package/dist/src/jobs/update-analytics.js.map +1 -1
- package/dist/src/jobs/update-dynamic-data.js.map +1 -1
- package/dist/src/jobs/update-rpc-calls-cache.js.map +1 -1
- package/dist/src/jobs/update-user-claim-db.d.ts +3 -0
- package/dist/src/jobs/update-user-claim-db.js.map +1 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +2 -0
- package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +80 -80
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +12 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +11 -1
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +4 -0
- package/dist/src/modules/v4/carousel/carousel.controller.d.ts +9 -0
- package/dist/src/modules/v4/carousel/carousel.repository.d.ts +9 -0
- package/dist/src/modules/v4/carousel/carousel.service.d.ts +11 -0
- package/dist/src/modules/v4/chain/chain.controller.d.ts +3 -0
- package/dist/src/modules/v4/config/config.controller.d.ts +1 -0
- package/dist/src/modules/v4/config/config.service.d.ts +1 -0
- package/dist/src/modules/v4/dispute/dispute.repository.d.ts +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +47 -42
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +10 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +7 -0
- package/dist/src/modules/v4/payload/payload.controller.d.ts +3 -0
- package/dist/src/modules/v4/payload/payload.service.d.ts +4 -0
- package/dist/src/modules/v4/previousConfig/previousConfig.repository.d.ts +43 -0
- package/dist/src/modules/v4/previousConfig/previousConfig.repository.js.map +1 -0
- package/dist/src/modules/v4/program/program.repository.d.ts +4 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.repository.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +32 -0
- package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +41 -0
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +6 -0
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +3 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +11 -0
- package/dist/src/scripts/importOpportunities.js.map +1 -1
- package/dist/src/utils/getAPR.d.ts +422 -380
- package/dist/src/utils/parseDistributionType.d.ts +1430 -1388
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -106,10 +106,10 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
106
106
|
in: string[];
|
|
107
107
|
} | undefined;
|
|
108
108
|
OR: ({
|
|
109
|
+
mainProtocolId?: undefined;
|
|
109
110
|
tags: {
|
|
110
111
|
has: string;
|
|
111
112
|
};
|
|
112
|
-
mainProtocolId?: undefined;
|
|
113
113
|
} | {
|
|
114
114
|
tags?: undefined;
|
|
115
115
|
mainProtocolId: string;
|
|
@@ -211,8 +211,10 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
211
211
|
endOfDisputePeriod?: undefined;
|
|
212
212
|
icon?: undefined;
|
|
213
213
|
id?: undefined;
|
|
214
|
+
lastClaimsOnchainFetchTimestamp?: undefined;
|
|
214
215
|
liveCampaigns?: undefined;
|
|
215
216
|
name?: undefined;
|
|
217
|
+
userClaims?: undefined;
|
|
216
218
|
} & import("@package/databases").ChainScalarRelationFilter) | undefined;
|
|
217
219
|
DistributionChain?: ({
|
|
218
220
|
is?: undefined;
|
|
@@ -236,8 +238,10 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
236
238
|
endOfDisputePeriod?: undefined;
|
|
237
239
|
icon?: undefined;
|
|
238
240
|
id?: undefined;
|
|
241
|
+
lastClaimsOnchainFetchTimestamp?: undefined;
|
|
239
242
|
liveCampaigns?: undefined;
|
|
240
243
|
name?: undefined;
|
|
244
|
+
userClaims?: undefined;
|
|
241
245
|
} & import("@package/databases").ChainScalarRelationFilter) | undefined;
|
|
242
246
|
Opportunity?: ({
|
|
243
247
|
is?: undefined;
|
|
@@ -291,6 +295,7 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
291
295
|
AND?: undefined;
|
|
292
296
|
Blacklist?: undefined;
|
|
293
297
|
CampaignsCreated?: undefined;
|
|
298
|
+
Claims?: undefined;
|
|
294
299
|
Creator?: undefined;
|
|
295
300
|
NOT?: undefined;
|
|
296
301
|
OR?: undefined;
|
|
@@ -431,12 +436,12 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
431
436
|
};
|
|
432
437
|
startTimestamp?: undefined;
|
|
433
438
|
} | {
|
|
439
|
+
endTimestamp?: undefined;
|
|
434
440
|
startTimestamp: {
|
|
435
441
|
lte?: undefined;
|
|
436
442
|
gt: number;
|
|
437
443
|
gte?: undefined;
|
|
438
444
|
};
|
|
439
|
-
endTimestamp?: undefined;
|
|
440
445
|
} | {
|
|
441
446
|
endTimestamp: {
|
|
442
447
|
lt?: undefined;
|
|
@@ -486,35 +491,36 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
486
491
|
} | {
|
|
487
492
|
AND: {
|
|
488
493
|
OR: ({
|
|
494
|
+
identifier?: undefined;
|
|
495
|
+
mainProtocolId?: undefined;
|
|
489
496
|
id: {
|
|
490
497
|
contains: string;
|
|
491
498
|
mode: "insensitive";
|
|
492
499
|
};
|
|
493
500
|
name?: undefined;
|
|
494
|
-
identifier?: undefined;
|
|
495
501
|
explorerAddress?: undefined;
|
|
496
502
|
type?: undefined;
|
|
497
503
|
MainProtocol?: undefined;
|
|
498
|
-
mainProtocolId?: undefined;
|
|
499
504
|
Tokens?: undefined;
|
|
500
505
|
Campaigns?: undefined;
|
|
501
506
|
Chain?: undefined;
|
|
502
507
|
} | {
|
|
503
508
|
id?: undefined;
|
|
509
|
+
identifier?: undefined;
|
|
510
|
+
mainProtocolId?: undefined;
|
|
504
511
|
name: {
|
|
505
512
|
contains: string;
|
|
506
513
|
mode: "insensitive";
|
|
507
514
|
};
|
|
508
|
-
identifier?: undefined;
|
|
509
515
|
explorerAddress?: undefined;
|
|
510
516
|
type?: undefined;
|
|
511
517
|
MainProtocol?: undefined;
|
|
512
|
-
mainProtocolId?: undefined;
|
|
513
518
|
Tokens?: undefined;
|
|
514
519
|
Campaigns?: undefined;
|
|
515
520
|
Chain?: undefined;
|
|
516
521
|
} | {
|
|
517
522
|
id?: undefined;
|
|
523
|
+
mainProtocolId?: undefined;
|
|
518
524
|
name?: undefined;
|
|
519
525
|
identifier: {
|
|
520
526
|
contains: string;
|
|
@@ -523,108 +529,108 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
523
529
|
explorerAddress?: undefined;
|
|
524
530
|
type?: undefined;
|
|
525
531
|
MainProtocol?: undefined;
|
|
526
|
-
mainProtocolId?: undefined;
|
|
527
532
|
Tokens?: undefined;
|
|
528
533
|
Campaigns?: undefined;
|
|
529
534
|
Chain?: undefined;
|
|
530
535
|
} | {
|
|
531
536
|
id?: undefined;
|
|
532
|
-
name?: undefined;
|
|
533
537
|
identifier?: undefined;
|
|
538
|
+
mainProtocolId?: undefined;
|
|
539
|
+
name?: undefined;
|
|
534
540
|
explorerAddress: {
|
|
535
541
|
contains: string;
|
|
536
542
|
mode: "insensitive";
|
|
537
543
|
};
|
|
538
544
|
type?: undefined;
|
|
539
545
|
MainProtocol?: undefined;
|
|
540
|
-
mainProtocolId?: undefined;
|
|
541
546
|
Tokens?: undefined;
|
|
542
547
|
Campaigns?: undefined;
|
|
543
548
|
Chain?: undefined;
|
|
544
549
|
} | {
|
|
545
550
|
id?: undefined;
|
|
546
|
-
name?: undefined;
|
|
547
551
|
identifier?: undefined;
|
|
552
|
+
mainProtocolId?: undefined;
|
|
553
|
+
name?: undefined;
|
|
548
554
|
explorerAddress?: undefined;
|
|
549
555
|
Campaigns: {
|
|
550
556
|
some: {
|
|
551
557
|
id?: undefined;
|
|
558
|
+
creatorAddress?: undefined;
|
|
559
|
+
RewardToken?: undefined;
|
|
560
|
+
endTimestamp?: undefined;
|
|
552
561
|
campaignId: {
|
|
553
562
|
contains: string;
|
|
554
563
|
mode: "insensitive";
|
|
555
564
|
};
|
|
556
|
-
creatorAddress?: undefined;
|
|
557
|
-
RewardToken?: undefined;
|
|
558
|
-
endTimestamp?: undefined;
|
|
559
565
|
};
|
|
560
566
|
};
|
|
561
567
|
type?: undefined;
|
|
562
568
|
MainProtocol?: undefined;
|
|
563
|
-
mainProtocolId?: undefined;
|
|
564
569
|
Tokens?: undefined;
|
|
565
570
|
Chain?: undefined;
|
|
566
571
|
} | {
|
|
567
572
|
id?: undefined;
|
|
568
|
-
name?: undefined;
|
|
569
573
|
identifier?: undefined;
|
|
574
|
+
mainProtocolId?: undefined;
|
|
575
|
+
name?: undefined;
|
|
570
576
|
explorerAddress?: undefined;
|
|
571
577
|
Campaigns: {
|
|
572
578
|
some: {
|
|
573
579
|
campaignId?: undefined;
|
|
580
|
+
creatorAddress?: undefined;
|
|
581
|
+
RewardToken?: undefined;
|
|
582
|
+
endTimestamp?: undefined;
|
|
574
583
|
id: {
|
|
575
584
|
contains: string;
|
|
576
585
|
mode: "insensitive";
|
|
577
586
|
};
|
|
578
|
-
creatorAddress?: undefined;
|
|
579
|
-
RewardToken?: undefined;
|
|
580
|
-
endTimestamp?: undefined;
|
|
581
587
|
};
|
|
582
588
|
};
|
|
583
589
|
type?: undefined;
|
|
584
590
|
MainProtocol?: undefined;
|
|
585
|
-
mainProtocolId?: undefined;
|
|
586
591
|
Tokens?: undefined;
|
|
587
592
|
Chain?: undefined;
|
|
588
593
|
} | {
|
|
589
594
|
id?: undefined;
|
|
590
|
-
name?: undefined;
|
|
591
595
|
identifier?: undefined;
|
|
596
|
+
mainProtocolId?: undefined;
|
|
597
|
+
name?: undefined;
|
|
592
598
|
explorerAddress?: undefined;
|
|
593
599
|
Campaigns: {
|
|
594
600
|
some: {
|
|
595
601
|
id?: undefined;
|
|
596
602
|
campaignId?: undefined;
|
|
603
|
+
RewardToken?: undefined;
|
|
604
|
+
endTimestamp?: undefined;
|
|
597
605
|
creatorAddress: {
|
|
598
606
|
contains: string;
|
|
599
607
|
mode: "insensitive";
|
|
600
608
|
};
|
|
601
|
-
RewardToken?: undefined;
|
|
602
|
-
endTimestamp?: undefined;
|
|
603
609
|
};
|
|
604
610
|
};
|
|
605
611
|
type?: undefined;
|
|
606
612
|
MainProtocol?: undefined;
|
|
607
|
-
mainProtocolId?: undefined;
|
|
608
613
|
Tokens?: undefined;
|
|
609
614
|
Chain?: undefined;
|
|
610
615
|
} | {
|
|
611
616
|
id?: undefined;
|
|
612
|
-
name?: undefined;
|
|
613
617
|
identifier?: undefined;
|
|
618
|
+
mainProtocolId?: undefined;
|
|
619
|
+
name?: undefined;
|
|
614
620
|
explorerAddress?: undefined;
|
|
615
621
|
type: {
|
|
616
622
|
contains: string;
|
|
617
623
|
mode: "insensitive";
|
|
618
624
|
};
|
|
619
625
|
MainProtocol?: undefined;
|
|
620
|
-
mainProtocolId?: undefined;
|
|
621
626
|
Tokens?: undefined;
|
|
622
627
|
Campaigns?: undefined;
|
|
623
628
|
Chain?: undefined;
|
|
624
629
|
} | {
|
|
625
630
|
id?: undefined;
|
|
626
|
-
name?: undefined;
|
|
627
631
|
identifier?: undefined;
|
|
632
|
+
mainProtocolId?: undefined;
|
|
633
|
+
name?: undefined;
|
|
628
634
|
explorerAddress?: undefined;
|
|
629
635
|
type?: undefined;
|
|
630
636
|
MainProtocol: {
|
|
@@ -633,14 +639,13 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
633
639
|
mode: "insensitive";
|
|
634
640
|
};
|
|
635
641
|
};
|
|
636
|
-
mainProtocolId?: undefined;
|
|
637
642
|
Tokens?: undefined;
|
|
638
643
|
Campaigns?: undefined;
|
|
639
644
|
Chain?: undefined;
|
|
640
645
|
} | {
|
|
641
646
|
id?: undefined;
|
|
642
|
-
name?: undefined;
|
|
643
647
|
identifier?: undefined;
|
|
648
|
+
name?: undefined;
|
|
644
649
|
explorerAddress?: undefined;
|
|
645
650
|
type?: undefined;
|
|
646
651
|
MainProtocol?: undefined;
|
|
@@ -653,56 +658,56 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
653
658
|
Chain?: undefined;
|
|
654
659
|
} | {
|
|
655
660
|
id?: undefined;
|
|
656
|
-
name?: undefined;
|
|
657
661
|
identifier?: undefined;
|
|
662
|
+
mainProtocolId?: undefined;
|
|
663
|
+
name?: undefined;
|
|
658
664
|
explorerAddress?: undefined;
|
|
659
665
|
type?: undefined;
|
|
660
666
|
MainProtocol?: undefined;
|
|
661
|
-
mainProtocolId?: undefined;
|
|
662
667
|
Tokens: {
|
|
663
668
|
some: {
|
|
669
|
+
symbol?: undefined;
|
|
670
|
+
address?: undefined;
|
|
664
671
|
name: {
|
|
665
672
|
contains: string;
|
|
666
673
|
mode: "insensitive";
|
|
667
674
|
};
|
|
668
|
-
symbol?: undefined;
|
|
669
|
-
address?: undefined;
|
|
670
675
|
};
|
|
671
676
|
};
|
|
672
677
|
Campaigns?: undefined;
|
|
673
678
|
Chain?: undefined;
|
|
674
679
|
} | {
|
|
675
680
|
id?: undefined;
|
|
676
|
-
name?: undefined;
|
|
677
681
|
identifier?: undefined;
|
|
682
|
+
mainProtocolId?: undefined;
|
|
683
|
+
name?: undefined;
|
|
678
684
|
explorerAddress?: undefined;
|
|
679
685
|
type?: undefined;
|
|
680
686
|
MainProtocol?: undefined;
|
|
681
|
-
mainProtocolId?: undefined;
|
|
682
687
|
Tokens: {
|
|
683
688
|
some: {
|
|
689
|
+
address?: undefined;
|
|
684
690
|
name?: undefined;
|
|
685
691
|
symbol: {
|
|
686
692
|
contains: string;
|
|
687
693
|
mode: "insensitive";
|
|
688
694
|
};
|
|
689
|
-
address?: undefined;
|
|
690
695
|
};
|
|
691
696
|
};
|
|
692
697
|
Campaigns?: undefined;
|
|
693
698
|
Chain?: undefined;
|
|
694
699
|
} | {
|
|
695
700
|
id?: undefined;
|
|
696
|
-
name?: undefined;
|
|
697
701
|
identifier?: undefined;
|
|
702
|
+
mainProtocolId?: undefined;
|
|
703
|
+
name?: undefined;
|
|
698
704
|
explorerAddress?: undefined;
|
|
699
705
|
type?: undefined;
|
|
700
706
|
MainProtocol?: undefined;
|
|
701
|
-
mainProtocolId?: undefined;
|
|
702
707
|
Tokens: {
|
|
703
708
|
some: {
|
|
704
|
-
name?: undefined;
|
|
705
709
|
symbol?: undefined;
|
|
710
|
+
name?: undefined;
|
|
706
711
|
address: {
|
|
707
712
|
contains: string;
|
|
708
713
|
mode: "insensitive";
|
|
@@ -713,12 +718,12 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
713
718
|
Chain?: undefined;
|
|
714
719
|
} | {
|
|
715
720
|
id?: undefined;
|
|
716
|
-
name?: undefined;
|
|
717
721
|
identifier?: undefined;
|
|
722
|
+
mainProtocolId?: undefined;
|
|
723
|
+
name?: undefined;
|
|
718
724
|
explorerAddress?: undefined;
|
|
719
725
|
type?: undefined;
|
|
720
726
|
MainProtocol?: undefined;
|
|
721
|
-
mainProtocolId?: undefined;
|
|
722
727
|
Tokens?: undefined;
|
|
723
728
|
Campaigns: {
|
|
724
729
|
some: {
|
|
@@ -748,12 +753,12 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
748
753
|
Chain?: undefined;
|
|
749
754
|
} | {
|
|
750
755
|
id?: undefined;
|
|
751
|
-
name?: undefined;
|
|
752
756
|
identifier?: undefined;
|
|
757
|
+
mainProtocolId?: undefined;
|
|
758
|
+
name?: undefined;
|
|
753
759
|
explorerAddress?: undefined;
|
|
754
760
|
type?: undefined;
|
|
755
761
|
MainProtocol?: undefined;
|
|
756
|
-
mainProtocolId?: undefined;
|
|
757
762
|
Tokens?: undefined;
|
|
758
763
|
Campaigns?: undefined;
|
|
759
764
|
Chain: {
|
|
@@ -83,6 +83,7 @@ export declare abstract class OpportunityRepository {
|
|
|
83
83
|
icon: string;
|
|
84
84
|
liveCampaigns: number;
|
|
85
85
|
endOfDisputePeriod: number;
|
|
86
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
86
87
|
};
|
|
87
88
|
DailyRewardsRecords: ({
|
|
88
89
|
DailyRewardsBreakdown: ({
|
|
@@ -304,6 +305,7 @@ export declare abstract class OpportunityRepository {
|
|
|
304
305
|
icon: string;
|
|
305
306
|
liveCampaigns: number;
|
|
306
307
|
endOfDisputePeriod: number;
|
|
308
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
307
309
|
};
|
|
308
310
|
DailyRewardsRecords: ({
|
|
309
311
|
DailyRewardsBreakdown: ({
|
|
@@ -507,6 +509,7 @@ export declare abstract class OpportunityRepository {
|
|
|
507
509
|
icon: string;
|
|
508
510
|
liveCampaigns: number;
|
|
509
511
|
endOfDisputePeriod: number;
|
|
512
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
510
513
|
};
|
|
511
514
|
DailyRewardsRecords: ({
|
|
512
515
|
DailyRewardsBreakdown: ({
|
|
@@ -703,6 +706,7 @@ export declare abstract class OpportunityRepository {
|
|
|
703
706
|
icon: string;
|
|
704
707
|
liveCampaigns: number;
|
|
705
708
|
endOfDisputePeriod: number;
|
|
709
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
706
710
|
};
|
|
707
711
|
Creator: {
|
|
708
712
|
address: string;
|
|
@@ -722,6 +726,7 @@ export declare abstract class OpportunityRepository {
|
|
|
722
726
|
icon: string;
|
|
723
727
|
liveCampaigns: number;
|
|
724
728
|
endOfDisputePeriod: number;
|
|
729
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
725
730
|
};
|
|
726
731
|
Opportunity: {
|
|
727
732
|
id: string;
|
|
@@ -801,6 +806,7 @@ export declare abstract class OpportunityRepository {
|
|
|
801
806
|
icon: string;
|
|
802
807
|
liveCampaigns: number;
|
|
803
808
|
endOfDisputePeriod: number;
|
|
809
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
804
810
|
};
|
|
805
811
|
DailyRewardsRecords: ({
|
|
806
812
|
DailyRewardsBreakdown: ({
|
|
@@ -1011,6 +1017,7 @@ export declare abstract class OpportunityRepository {
|
|
|
1011
1017
|
icon: string;
|
|
1012
1018
|
liveCampaigns: number;
|
|
1013
1019
|
endOfDisputePeriod: number;
|
|
1020
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
1014
1021
|
};
|
|
1015
1022
|
DailyRewardsRecords: ({
|
|
1016
1023
|
DailyRewardsBreakdown: ({
|
|
@@ -1239,6 +1246,7 @@ export declare abstract class OpportunityRepository {
|
|
|
1239
1246
|
icon: string;
|
|
1240
1247
|
liveCampaigns: number;
|
|
1241
1248
|
endOfDisputePeriod: number;
|
|
1249
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
1242
1250
|
};
|
|
1243
1251
|
Creator: {
|
|
1244
1252
|
address: string;
|
|
@@ -1258,6 +1266,7 @@ export declare abstract class OpportunityRepository {
|
|
|
1258
1266
|
icon: string;
|
|
1259
1267
|
liveCampaigns: number;
|
|
1260
1268
|
endOfDisputePeriod: number;
|
|
1269
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
1261
1270
|
};
|
|
1262
1271
|
RewardToken: {
|
|
1263
1272
|
id: string;
|
|
@@ -1313,6 +1322,7 @@ export declare abstract class OpportunityRepository {
|
|
|
1313
1322
|
icon: string;
|
|
1314
1323
|
liveCampaigns: number;
|
|
1315
1324
|
endOfDisputePeriod: number;
|
|
1325
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
1316
1326
|
};
|
|
1317
1327
|
DailyRewardsRecords: ({
|
|
1318
1328
|
DailyRewardsBreakdown: ({
|
|
@@ -141,6 +141,7 @@ export declare abstract class OpportunityService {
|
|
|
141
141
|
icon: string;
|
|
142
142
|
liveCampaigns: number;
|
|
143
143
|
endOfDisputePeriod: number;
|
|
144
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
144
145
|
};
|
|
145
146
|
DailyRewardsRecords: ({
|
|
146
147
|
DailyRewardsBreakdown: ({
|
|
@@ -369,6 +370,7 @@ export declare abstract class OpportunityService {
|
|
|
369
370
|
icon: string;
|
|
370
371
|
liveCampaigns: number;
|
|
371
372
|
endOfDisputePeriod: number;
|
|
373
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
372
374
|
};
|
|
373
375
|
DailyRewardsRecords: ({
|
|
374
376
|
DailyRewardsBreakdown: ({
|
|
@@ -596,6 +598,7 @@ export declare abstract class OpportunityService {
|
|
|
596
598
|
icon: string;
|
|
597
599
|
liveCampaigns: number;
|
|
598
600
|
endOfDisputePeriod: number;
|
|
601
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
599
602
|
};
|
|
600
603
|
DailyRewardsRecords: ({
|
|
601
604
|
DailyRewardsBreakdown: ({
|
|
@@ -1169,6 +1172,7 @@ export declare abstract class OpportunityService {
|
|
|
1169
1172
|
url: string;
|
|
1170
1173
|
chainId: number;
|
|
1171
1174
|
}[] | undefined;
|
|
1175
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
1172
1176
|
};
|
|
1173
1177
|
protocol: {
|
|
1174
1178
|
id: string;
|
|
@@ -1224,6 +1228,7 @@ export declare abstract class OpportunityService {
|
|
|
1224
1228
|
url: string;
|
|
1225
1229
|
chainId: number;
|
|
1226
1230
|
}[] | undefined;
|
|
1231
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
1227
1232
|
};
|
|
1228
1233
|
protocol: {
|
|
1229
1234
|
id: string;
|
|
@@ -1421,6 +1426,7 @@ export declare abstract class OpportunityService {
|
|
|
1421
1426
|
url: string;
|
|
1422
1427
|
chainId: number;
|
|
1423
1428
|
}[] | undefined;
|
|
1429
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
1424
1430
|
};
|
|
1425
1431
|
protocol: {
|
|
1426
1432
|
id: string;
|
|
@@ -1476,6 +1482,7 @@ export declare abstract class OpportunityService {
|
|
|
1476
1482
|
url: string;
|
|
1477
1483
|
chainId: number;
|
|
1478
1484
|
}[] | undefined;
|
|
1485
|
+
lastClaimsOnchainFetchTimestamp?: string | null | undefined;
|
|
1479
1486
|
};
|
|
1480
1487
|
protocol: {
|
|
1481
1488
|
id: string;
|
|
@@ -125,6 +125,7 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
|
125
125
|
icon: string;
|
|
126
126
|
liveCampaigns: number;
|
|
127
127
|
endOfDisputePeriod: number;
|
|
128
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
128
129
|
};
|
|
129
130
|
DailyRewardsRecords: ({
|
|
130
131
|
DailyRewardsBreakdown: ({
|
|
@@ -395,6 +396,7 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
|
395
396
|
icon: string;
|
|
396
397
|
liveCampaigns: number;
|
|
397
398
|
endOfDisputePeriod: number;
|
|
399
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
398
400
|
};
|
|
399
401
|
DailyRewardsRecords: ({
|
|
400
402
|
DailyRewardsBreakdown: ({
|
|
@@ -666,6 +668,7 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
|
666
668
|
icon: string;
|
|
667
669
|
liveCampaigns: number;
|
|
668
670
|
endOfDisputePeriod: number;
|
|
671
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
669
672
|
};
|
|
670
673
|
DailyRewardsRecords: ({
|
|
671
674
|
DailyRewardsBreakdown: ({
|
|
@@ -89,6 +89,7 @@ export declare class PayloadService {
|
|
|
89
89
|
icon: string;
|
|
90
90
|
liveCampaigns: number;
|
|
91
91
|
endOfDisputePeriod: number;
|
|
92
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
92
93
|
};
|
|
93
94
|
DailyRewardsRecords: ({
|
|
94
95
|
DailyRewardsBreakdown: ({
|
|
@@ -329,6 +330,7 @@ export declare class PayloadService {
|
|
|
329
330
|
icon: string;
|
|
330
331
|
liveCampaigns: number;
|
|
331
332
|
endOfDisputePeriod: number;
|
|
333
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
332
334
|
};
|
|
333
335
|
DailyRewardsRecords: ({
|
|
334
336
|
DailyRewardsBreakdown: ({
|
|
@@ -566,6 +568,7 @@ export declare class PayloadService {
|
|
|
566
568
|
icon: string;
|
|
567
569
|
liveCampaigns: number;
|
|
568
570
|
endOfDisputePeriod: number;
|
|
571
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
569
572
|
};
|
|
570
573
|
DailyRewardsRecords: ({
|
|
571
574
|
DailyRewardsBreakdown: ({
|
|
@@ -814,6 +817,7 @@ export declare class PayloadService {
|
|
|
814
817
|
icon: string;
|
|
815
818
|
liveCampaigns: number;
|
|
816
819
|
endOfDisputePeriod: number;
|
|
820
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
817
821
|
};
|
|
818
822
|
DailyRewardsRecords: ({
|
|
819
823
|
DailyRewardsBreakdown: ({
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { InputJsonValue } from "@prisma/client/runtime/library";
|
|
2
|
+
export declare abstract class PreviousConfigRepository {
|
|
3
|
+
/**
|
|
4
|
+
* Find a unique previous config by campaign ID and override timestamp
|
|
5
|
+
*/
|
|
6
|
+
static findUnique(campaignId: string, overrideTimestamp: number): Promise<{
|
|
7
|
+
id: string;
|
|
8
|
+
campaignId: string;
|
|
9
|
+
opportunityId: string;
|
|
10
|
+
config: import("@prisma/client/runtime/client").JsonValue;
|
|
11
|
+
overrideTimestamp: bigint;
|
|
12
|
+
} | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Create a new previous config entry
|
|
15
|
+
*/
|
|
16
|
+
static create(data: {
|
|
17
|
+
campaignId: string;
|
|
18
|
+
overrideTimestamp: number;
|
|
19
|
+
config: InputJsonValue;
|
|
20
|
+
opportunityId: string;
|
|
21
|
+
}): Promise<{
|
|
22
|
+
id: string;
|
|
23
|
+
campaignId: string;
|
|
24
|
+
opportunityId: string;
|
|
25
|
+
config: import("@prisma/client/runtime/client").JsonValue;
|
|
26
|
+
overrideTimestamp: bigint;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Upsert a previous config entry
|
|
30
|
+
*/
|
|
31
|
+
static upsert(data: {
|
|
32
|
+
campaignId: string;
|
|
33
|
+
overrideTimestamp: number;
|
|
34
|
+
config: InputJsonValue;
|
|
35
|
+
opportunityId: string;
|
|
36
|
+
}): Promise<{
|
|
37
|
+
id: string;
|
|
38
|
+
campaignId: string;
|
|
39
|
+
opportunityId: string;
|
|
40
|
+
config: import("@prisma/client/runtime/client").JsonValue;
|
|
41
|
+
overrideTimestamp: bigint;
|
|
42
|
+
}>;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"previousConfig.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/previousConfig/previousConfig.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,8BAA8B,EAAE,CAAC,CAAC;AAE7G,MAAM,OAAgB,wBAAwB;IAC5C;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,UAAkB,EAAE,iBAAyB,EAAE;QACrE,OAAO,MAAM,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC;YACjD,KAAK,EAAE;gBACL,4BAA4B,EAAE;oBAC5B,UAAU;oBACV,iBAAiB;iBAClB;aACF;SACF,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAKnB,EAAE;QACD,IAAI,CAAC;YACH,OAAO,MAAM,WAAW,CAAC,cAAc,CAAC,MAAM,CAAC;gBAC7C,IAAI,EAAE;oBACJ,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;oBACzC,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,aAAa,EAAE,IAAI,CAAC,aAAa;iBAClC;aACF,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAY,EAAE,CAAC;YACtB,gBAAgB,CAAC,KAAK,CAAC;gBACrB,GAAG;gBACH,SAAS,EAAE,QAAQ;gBACnB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;aAC1C,CAAC,CAAC;YACH,MAAM,GAAG,CAAC;QACZ,CAAC;IAAA,CACF;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAKnB,EAAE;QACD,IAAI,CAAC;YACH,OAAO,MAAM,WAAW,CAAC,cAAc,CAAC,MAAM,CAAC;gBAC7C,KAAK,EAAE;oBACL,4BAA4B,EAAE;wBAC5B,UAAU,EAAE,IAAI,CAAC,UAAU;wBAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;qBAC1C;iBACF;gBACD,MAAM,EAAE;oBACN,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;oBACzC,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,aAAa,EAAE,IAAI,CAAC,aAAa;iBAClC;gBACD,MAAM,EAAE;oBACN,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,aAAa,EAAE,IAAI,CAAC,aAAa;iBAClC;aACF,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAY,EAAE,CAAC;YACtB,gBAAgB,CAAC,KAAK,CAAC;gBACrB,GAAG;gBACH,SAAS,EAAE,QAAQ;gBACnB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;aAC1C,CAAC,CAAC;YACH,MAAM,GAAG,CAAC;QACZ,CAAC;IAAA,CACF;CACF"}
|
|
@@ -26,6 +26,7 @@ export declare abstract class ProgramRepository {
|
|
|
26
26
|
icon: string;
|
|
27
27
|
liveCampaigns: number;
|
|
28
28
|
endOfDisputePeriod: number;
|
|
29
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
29
30
|
};
|
|
30
31
|
MainProtocol: {
|
|
31
32
|
id: string;
|
|
@@ -112,6 +113,7 @@ export declare abstract class ProgramRepository {
|
|
|
112
113
|
icon: string;
|
|
113
114
|
liveCampaigns: number;
|
|
114
115
|
endOfDisputePeriod: number;
|
|
116
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
115
117
|
};
|
|
116
118
|
MainProtocol: {
|
|
117
119
|
id: string;
|
|
@@ -198,6 +200,7 @@ export declare abstract class ProgramRepository {
|
|
|
198
200
|
icon: string;
|
|
199
201
|
liveCampaigns: number;
|
|
200
202
|
endOfDisputePeriod: number;
|
|
203
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
201
204
|
};
|
|
202
205
|
MainProtocol: {
|
|
203
206
|
id: string;
|
|
@@ -285,6 +288,7 @@ export declare abstract class ProgramRepository {
|
|
|
285
288
|
icon: string;
|
|
286
289
|
liveCampaigns: number;
|
|
287
290
|
endOfDisputePeriod: number;
|
|
291
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
288
292
|
};
|
|
289
293
|
MainProtocol: {
|
|
290
294
|
id: string;
|
|
@@ -38,6 +38,7 @@ export declare abstract class RewardRepository {
|
|
|
38
38
|
icon: string;
|
|
39
39
|
liveCampaigns: number;
|
|
40
40
|
endOfDisputePeriod: number;
|
|
41
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
41
42
|
};
|
|
42
43
|
MainProtocol: {
|
|
43
44
|
id: string;
|
|
@@ -151,6 +152,7 @@ export declare abstract class RewardRepository {
|
|
|
151
152
|
icon: string;
|
|
152
153
|
liveCampaigns: number;
|
|
153
154
|
endOfDisputePeriod: number;
|
|
155
|
+
lastClaimsOnchainFetchTimestamp: string | null;
|
|
154
156
|
};
|
|
155
157
|
MainProtocol: {
|
|
156
158
|
id: string;
|