@merkl/api 1.9.13 → 1.9.15
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 +68 -72
- package/dist/src/index.d.ts +56 -60
- package/dist/src/libs/tokens/balances.d.ts +6 -0
- package/dist/src/libs/tokens/balances.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +25 -25
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.js.map +1 -1
- package/dist/src/modules/v4/claims/claims.controller.d.ts +57 -61
- package/dist/src/modules/v4/claims/claims.controller.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +55 -55
- package/dist/src/modules/v4/router.d.ts +56 -60
- package/dist/src/modules/v4/token/token.service.js.map +1 -1
- package/dist/src/modules/v4/user/user.service.js.map +1 -1
- package/dist/src/utils/parseDistributionType.d.ts +180 -180
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Elysia from "elysia";
|
|
2
|
-
export declare const ClaimsController: Elysia<"/
|
|
2
|
+
export declare const ClaimsController: Elysia<"/claims", {
|
|
3
3
|
decorator: {};
|
|
4
4
|
store: {};
|
|
5
5
|
derive: {};
|
|
@@ -15,34 +15,70 @@ export declare const ClaimsController: Elysia<"/beta/claims", {
|
|
|
15
15
|
parser: {};
|
|
16
16
|
response: {};
|
|
17
17
|
}, {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
claims: {
|
|
19
|
+
get: {
|
|
20
|
+
body: unknown;
|
|
21
|
+
params: {};
|
|
22
|
+
query: {
|
|
23
|
+
chainId?: number | undefined;
|
|
24
|
+
recipient?: string | undefined;
|
|
25
|
+
campaignId?: string | undefined;
|
|
26
|
+
token?: string | undefined;
|
|
27
|
+
root?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
headers: unknown;
|
|
30
|
+
response: {
|
|
31
|
+
200: {
|
|
32
|
+
id: string;
|
|
33
|
+
chainId: number;
|
|
34
|
+
recipient: string;
|
|
35
|
+
blockNumber: number;
|
|
36
|
+
timestamp: number;
|
|
37
|
+
token: string;
|
|
38
|
+
campaignId: string;
|
|
39
|
+
reason: string;
|
|
40
|
+
root: string;
|
|
41
|
+
amount: string;
|
|
42
|
+
metadata: any;
|
|
43
|
+
isLatest: boolean;
|
|
44
|
+
}[];
|
|
45
|
+
422: {
|
|
46
|
+
type: "validation";
|
|
47
|
+
on: string;
|
|
48
|
+
summary?: string | undefined;
|
|
49
|
+
message?: string | undefined;
|
|
50
|
+
found?: unknown;
|
|
51
|
+
property?: string | undefined;
|
|
52
|
+
expected?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
} & {
|
|
58
|
+
claims: {
|
|
59
|
+
status: {
|
|
20
60
|
get: {
|
|
21
61
|
body: unknown;
|
|
22
62
|
params: {};
|
|
23
63
|
query: {
|
|
24
|
-
|
|
25
|
-
recipient?: string | undefined;
|
|
26
|
-
campaignId?: string | undefined;
|
|
27
|
-
token?: string | undefined;
|
|
28
|
-
root?: string | undefined;
|
|
64
|
+
chainIds?: number[] | undefined;
|
|
29
65
|
};
|
|
30
66
|
headers: unknown;
|
|
31
67
|
response: {
|
|
32
68
|
200: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
69
|
+
[x: number]: {
|
|
70
|
+
chainId: number;
|
|
71
|
+
sources: {
|
|
72
|
+
sourceId: string;
|
|
73
|
+
chainId: number;
|
|
74
|
+
currentBlock: number;
|
|
75
|
+
lastFetchedBlock: number;
|
|
76
|
+
blockDifference: number;
|
|
77
|
+
claimCount: number;
|
|
78
|
+
timeBehind: number | null;
|
|
79
|
+
}[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
46
82
|
422: {
|
|
47
83
|
type: "validation";
|
|
48
84
|
on: string;
|
|
@@ -56,46 +92,6 @@ export declare const ClaimsController: Elysia<"/beta/claims", {
|
|
|
56
92
|
};
|
|
57
93
|
};
|
|
58
94
|
};
|
|
59
|
-
} & {
|
|
60
|
-
beta: {
|
|
61
|
-
claims: {
|
|
62
|
-
status: {
|
|
63
|
-
get: {
|
|
64
|
-
body: unknown;
|
|
65
|
-
params: {};
|
|
66
|
-
query: {
|
|
67
|
-
chainIds?: number[] | undefined;
|
|
68
|
-
};
|
|
69
|
-
headers: unknown;
|
|
70
|
-
response: {
|
|
71
|
-
200: {
|
|
72
|
-
[x: number]: {
|
|
73
|
-
chainId: number;
|
|
74
|
-
sources: {
|
|
75
|
-
sourceId: string;
|
|
76
|
-
chainId: number;
|
|
77
|
-
currentBlock: number;
|
|
78
|
-
lastFetchedBlock: number;
|
|
79
|
-
blockDifference: number;
|
|
80
|
-
claimCount: number;
|
|
81
|
-
timeBehind: number | null;
|
|
82
|
-
}[];
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
422: {
|
|
86
|
-
type: "validation";
|
|
87
|
-
on: string;
|
|
88
|
-
summary?: string | undefined;
|
|
89
|
-
message?: string | undefined;
|
|
90
|
-
found?: unknown;
|
|
91
|
-
property?: string | undefined;
|
|
92
|
-
expected?: string | undefined;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
95
|
}, {
|
|
100
96
|
derive: {};
|
|
101
97
|
resolve: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claims.controller.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/claims/claims.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CA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114
|
-
tags?: undefined;
|
|
115
114
|
mainProtocolId: string;
|
|
115
|
+
tags?: undefined;
|
|
116
116
|
})[] | undefined;
|
|
117
117
|
type: {
|
|
118
118
|
not: string;
|
|
@@ -533,31 +533,30 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
533
533
|
contains: string;
|
|
534
534
|
mode: "insensitive";
|
|
535
535
|
};
|
|
536
|
-
name?: undefined;
|
|
537
|
-
identifier?: undefined;
|
|
538
536
|
explorerAddress?: undefined;
|
|
539
537
|
type?: undefined;
|
|
540
538
|
MainProtocol?: undefined;
|
|
541
|
-
mainProtocolId?: undefined;
|
|
542
539
|
Tokens?: undefined;
|
|
543
540
|
Campaigns?: undefined;
|
|
544
541
|
Chain?: undefined;
|
|
542
|
+
identifier?: undefined;
|
|
543
|
+
mainProtocolId?: undefined;
|
|
544
|
+
name?: undefined;
|
|
545
545
|
} | {
|
|
546
546
|
name: {
|
|
547
547
|
contains: string;
|
|
548
548
|
mode: "insensitive";
|
|
549
549
|
};
|
|
550
|
-
identifier?: undefined;
|
|
551
550
|
explorerAddress?: undefined;
|
|
552
551
|
type?: undefined;
|
|
553
552
|
MainProtocol?: undefined;
|
|
554
|
-
mainProtocolId?: undefined;
|
|
555
553
|
Tokens?: undefined;
|
|
556
554
|
Campaigns?: undefined;
|
|
557
555
|
Chain?: undefined;
|
|
556
|
+
identifier?: undefined;
|
|
557
|
+
mainProtocolId?: undefined;
|
|
558
558
|
id?: undefined;
|
|
559
559
|
} | {
|
|
560
|
-
name?: undefined;
|
|
561
560
|
identifier: {
|
|
562
561
|
contains: string;
|
|
563
562
|
mode: "insensitive";
|
|
@@ -565,28 +564,27 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
565
564
|
explorerAddress?: undefined;
|
|
566
565
|
type?: undefined;
|
|
567
566
|
MainProtocol?: undefined;
|
|
568
|
-
mainProtocolId?: undefined;
|
|
569
567
|
Tokens?: undefined;
|
|
570
568
|
Campaigns?: undefined;
|
|
571
569
|
Chain?: undefined;
|
|
570
|
+
mainProtocolId?: undefined;
|
|
571
|
+
name?: undefined;
|
|
572
572
|
id?: undefined;
|
|
573
573
|
} | {
|
|
574
|
-
name?: undefined;
|
|
575
|
-
identifier?: undefined;
|
|
576
574
|
explorerAddress: {
|
|
577
575
|
contains: string;
|
|
578
576
|
mode: "insensitive";
|
|
579
577
|
};
|
|
580
578
|
type?: undefined;
|
|
581
579
|
MainProtocol?: undefined;
|
|
582
|
-
mainProtocolId?: undefined;
|
|
583
580
|
Tokens?: undefined;
|
|
584
581
|
Campaigns?: undefined;
|
|
585
582
|
Chain?: undefined;
|
|
583
|
+
identifier?: undefined;
|
|
584
|
+
mainProtocolId?: undefined;
|
|
585
|
+
name?: undefined;
|
|
586
586
|
id?: undefined;
|
|
587
587
|
} | {
|
|
588
|
-
name?: undefined;
|
|
589
|
-
identifier?: undefined;
|
|
590
588
|
explorerAddress?: undefined;
|
|
591
589
|
Campaigns: {
|
|
592
590
|
some: {
|
|
@@ -595,81 +593,81 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
595
593
|
mode: "insensitive";
|
|
596
594
|
};
|
|
597
595
|
isPrivate: boolean;
|
|
596
|
+
endTimestamp?: undefined;
|
|
598
597
|
creatorAddress?: undefined;
|
|
599
598
|
RewardToken?: undefined;
|
|
600
|
-
endTimestamp?: undefined;
|
|
601
599
|
id?: undefined;
|
|
602
600
|
};
|
|
603
601
|
};
|
|
604
602
|
type?: undefined;
|
|
605
603
|
MainProtocol?: undefined;
|
|
606
|
-
mainProtocolId?: undefined;
|
|
607
604
|
Tokens?: undefined;
|
|
608
605
|
Chain?: undefined;
|
|
606
|
+
identifier?: undefined;
|
|
607
|
+
mainProtocolId?: undefined;
|
|
608
|
+
name?: undefined;
|
|
609
609
|
id?: undefined;
|
|
610
610
|
} | {
|
|
611
|
-
name?: undefined;
|
|
612
|
-
identifier?: undefined;
|
|
613
611
|
explorerAddress?: undefined;
|
|
614
612
|
Campaigns: {
|
|
615
613
|
some: {
|
|
616
|
-
campaignId?: undefined;
|
|
617
614
|
id: {
|
|
618
615
|
contains: string;
|
|
619
616
|
mode: "insensitive";
|
|
620
617
|
};
|
|
621
618
|
isPrivate: boolean;
|
|
619
|
+
endTimestamp?: undefined;
|
|
620
|
+
campaignId?: undefined;
|
|
622
621
|
creatorAddress?: undefined;
|
|
623
622
|
RewardToken?: undefined;
|
|
624
|
-
endTimestamp?: undefined;
|
|
625
623
|
};
|
|
626
624
|
};
|
|
627
625
|
type?: undefined;
|
|
628
626
|
MainProtocol?: undefined;
|
|
629
|
-
mainProtocolId?: undefined;
|
|
630
627
|
Tokens?: undefined;
|
|
631
628
|
Chain?: undefined;
|
|
629
|
+
identifier?: undefined;
|
|
630
|
+
mainProtocolId?: undefined;
|
|
631
|
+
name?: undefined;
|
|
632
632
|
id?: undefined;
|
|
633
633
|
} | {
|
|
634
|
-
name?: undefined;
|
|
635
|
-
identifier?: undefined;
|
|
636
634
|
explorerAddress?: undefined;
|
|
637
635
|
Campaigns: {
|
|
638
636
|
some: {
|
|
639
|
-
campaignId?: undefined;
|
|
640
637
|
creatorAddress: {
|
|
641
638
|
contains: string;
|
|
642
639
|
mode: "insensitive";
|
|
643
640
|
};
|
|
644
641
|
isPrivate: boolean;
|
|
645
|
-
RewardToken?: undefined;
|
|
646
642
|
endTimestamp?: undefined;
|
|
643
|
+
campaignId?: undefined;
|
|
644
|
+
RewardToken?: undefined;
|
|
647
645
|
id?: undefined;
|
|
648
646
|
};
|
|
649
647
|
};
|
|
650
648
|
type?: undefined;
|
|
651
649
|
MainProtocol?: undefined;
|
|
652
|
-
mainProtocolId?: undefined;
|
|
653
650
|
Tokens?: undefined;
|
|
654
651
|
Chain?: undefined;
|
|
652
|
+
identifier?: undefined;
|
|
653
|
+
mainProtocolId?: undefined;
|
|
654
|
+
name?: undefined;
|
|
655
655
|
id?: undefined;
|
|
656
656
|
} | {
|
|
657
|
-
name?: undefined;
|
|
658
|
-
identifier?: undefined;
|
|
659
657
|
explorerAddress?: undefined;
|
|
660
658
|
type: {
|
|
661
659
|
contains: string;
|
|
662
660
|
mode: "insensitive";
|
|
663
661
|
};
|
|
664
662
|
MainProtocol?: undefined;
|
|
665
|
-
mainProtocolId?: undefined;
|
|
666
663
|
Tokens?: undefined;
|
|
667
664
|
Campaigns?: undefined;
|
|
668
665
|
Chain?: undefined;
|
|
666
|
+
identifier?: undefined;
|
|
667
|
+
mainProtocolId?: undefined;
|
|
668
|
+
name?: undefined;
|
|
669
669
|
id?: undefined;
|
|
670
670
|
} | {
|
|
671
|
-
name?: undefined;
|
|
672
|
-
identifier?: undefined;
|
|
673
671
|
explorerAddress?: undefined;
|
|
674
672
|
type?: undefined;
|
|
675
673
|
MainProtocol: {
|
|
@@ -678,14 +676,14 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
678
676
|
mode: "insensitive";
|
|
679
677
|
};
|
|
680
678
|
};
|
|
681
|
-
mainProtocolId?: undefined;
|
|
682
679
|
Tokens?: undefined;
|
|
683
680
|
Campaigns?: undefined;
|
|
684
681
|
Chain?: undefined;
|
|
682
|
+
identifier?: undefined;
|
|
683
|
+
mainProtocolId?: undefined;
|
|
684
|
+
name?: undefined;
|
|
685
685
|
id?: undefined;
|
|
686
686
|
} | {
|
|
687
|
-
name?: undefined;
|
|
688
|
-
identifier?: undefined;
|
|
689
687
|
explorerAddress?: undefined;
|
|
690
688
|
type?: undefined;
|
|
691
689
|
MainProtocol?: undefined;
|
|
@@ -696,14 +694,13 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
696
694
|
Tokens?: undefined;
|
|
697
695
|
Campaigns?: undefined;
|
|
698
696
|
Chain?: undefined;
|
|
697
|
+
identifier?: undefined;
|
|
698
|
+
name?: undefined;
|
|
699
699
|
id?: undefined;
|
|
700
700
|
} | {
|
|
701
|
-
name?: undefined;
|
|
702
|
-
identifier?: undefined;
|
|
703
701
|
explorerAddress?: undefined;
|
|
704
702
|
type?: undefined;
|
|
705
703
|
MainProtocol?: undefined;
|
|
706
|
-
mainProtocolId?: undefined;
|
|
707
704
|
Tokens: {
|
|
708
705
|
some: {
|
|
709
706
|
name: {
|
|
@@ -716,90 +713,90 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
716
713
|
};
|
|
717
714
|
Campaigns?: undefined;
|
|
718
715
|
Chain?: undefined;
|
|
716
|
+
identifier?: undefined;
|
|
717
|
+
mainProtocolId?: undefined;
|
|
718
|
+
name?: undefined;
|
|
719
719
|
id?: undefined;
|
|
720
720
|
} | {
|
|
721
|
-
name?: undefined;
|
|
722
|
-
identifier?: undefined;
|
|
723
721
|
explorerAddress?: undefined;
|
|
724
722
|
type?: undefined;
|
|
725
723
|
MainProtocol?: undefined;
|
|
726
|
-
mainProtocolId?: undefined;
|
|
727
724
|
Tokens: {
|
|
728
725
|
some: {
|
|
729
|
-
name?: undefined;
|
|
730
726
|
symbol: {
|
|
731
727
|
contains: string;
|
|
732
728
|
mode: "insensitive";
|
|
733
729
|
};
|
|
734
730
|
address?: undefined;
|
|
731
|
+
name?: undefined;
|
|
735
732
|
};
|
|
736
733
|
};
|
|
737
734
|
Campaigns?: undefined;
|
|
738
735
|
Chain?: undefined;
|
|
736
|
+
identifier?: undefined;
|
|
737
|
+
mainProtocolId?: undefined;
|
|
738
|
+
name?: undefined;
|
|
739
739
|
id?: undefined;
|
|
740
740
|
} | {
|
|
741
|
-
name?: undefined;
|
|
742
|
-
identifier?: undefined;
|
|
743
741
|
explorerAddress?: undefined;
|
|
744
742
|
type?: undefined;
|
|
745
743
|
MainProtocol?: undefined;
|
|
746
|
-
mainProtocolId?: undefined;
|
|
747
744
|
Tokens: {
|
|
748
745
|
some: {
|
|
749
|
-
name?: undefined;
|
|
750
|
-
symbol?: undefined;
|
|
751
746
|
address: {
|
|
752
747
|
contains: string;
|
|
753
748
|
mode: "insensitive";
|
|
754
749
|
};
|
|
750
|
+
symbol?: undefined;
|
|
751
|
+
name?: undefined;
|
|
755
752
|
};
|
|
756
753
|
};
|
|
757
754
|
Campaigns?: undefined;
|
|
758
755
|
Chain?: undefined;
|
|
756
|
+
identifier?: undefined;
|
|
757
|
+
mainProtocolId?: undefined;
|
|
758
|
+
name?: undefined;
|
|
759
759
|
id?: undefined;
|
|
760
760
|
} | {
|
|
761
|
-
name?: undefined;
|
|
762
|
-
identifier?: undefined;
|
|
763
761
|
explorerAddress?: undefined;
|
|
764
762
|
type?: undefined;
|
|
765
763
|
MainProtocol?: undefined;
|
|
766
|
-
mainProtocolId?: undefined;
|
|
767
764
|
Tokens?: undefined;
|
|
768
765
|
Campaigns: {
|
|
769
766
|
some: {
|
|
770
|
-
campaignId?: undefined;
|
|
771
|
-
creatorAddress?: undefined;
|
|
772
767
|
isPrivate?: undefined;
|
|
773
768
|
endTimestamp: {
|
|
774
769
|
gte: number;
|
|
775
770
|
};
|
|
776
771
|
RewardToken: {
|
|
777
772
|
OR: ({
|
|
778
|
-
address?: undefined;
|
|
779
773
|
symbol: {
|
|
780
774
|
contains: string;
|
|
781
775
|
mode: "insensitive";
|
|
782
776
|
};
|
|
777
|
+
address?: undefined;
|
|
783
778
|
} | {
|
|
784
|
-
symbol?: undefined;
|
|
785
779
|
address: {
|
|
786
780
|
contains: string;
|
|
787
781
|
mode: "insensitive";
|
|
788
782
|
};
|
|
783
|
+
symbol?: undefined;
|
|
789
784
|
})[];
|
|
790
785
|
};
|
|
786
|
+
campaignId?: undefined;
|
|
787
|
+
creatorAddress?: undefined;
|
|
791
788
|
id?: undefined;
|
|
792
789
|
};
|
|
793
790
|
};
|
|
794
791
|
Chain?: undefined;
|
|
792
|
+
identifier?: undefined;
|
|
793
|
+
mainProtocolId?: undefined;
|
|
794
|
+
name?: undefined;
|
|
795
795
|
id?: undefined;
|
|
796
796
|
} | {
|
|
797
|
-
name?: undefined;
|
|
798
|
-
identifier?: undefined;
|
|
799
797
|
explorerAddress?: undefined;
|
|
800
798
|
type?: undefined;
|
|
801
799
|
MainProtocol?: undefined;
|
|
802
|
-
mainProtocolId?: undefined;
|
|
803
800
|
Tokens?: undefined;
|
|
804
801
|
Campaigns?: undefined;
|
|
805
802
|
Chain: {
|
|
@@ -808,6 +805,9 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
|
|
|
808
805
|
mode: "insensitive";
|
|
809
806
|
};
|
|
810
807
|
};
|
|
808
|
+
identifier?: undefined;
|
|
809
|
+
mainProtocolId?: undefined;
|
|
810
|
+
name?: undefined;
|
|
811
811
|
id?: undefined;
|
|
812
812
|
})[];
|
|
813
813
|
}[];
|
|
@@ -7720,34 +7720,70 @@ export declare const v4: Elysia<"/v4", {
|
|
|
7720
7720
|
};
|
|
7721
7721
|
};
|
|
7722
7722
|
} & {
|
|
7723
|
-
|
|
7724
|
-
|
|
7723
|
+
claims: {
|
|
7724
|
+
get: {
|
|
7725
|
+
body: unknown;
|
|
7726
|
+
params: {};
|
|
7727
|
+
query: {
|
|
7728
|
+
chainId?: number | undefined;
|
|
7729
|
+
recipient?: string | undefined;
|
|
7730
|
+
campaignId?: string | undefined;
|
|
7731
|
+
token?: string | undefined;
|
|
7732
|
+
root?: string | undefined;
|
|
7733
|
+
};
|
|
7734
|
+
headers: unknown;
|
|
7735
|
+
response: {
|
|
7736
|
+
200: {
|
|
7737
|
+
id: string;
|
|
7738
|
+
chainId: number;
|
|
7739
|
+
recipient: string;
|
|
7740
|
+
blockNumber: number;
|
|
7741
|
+
timestamp: number;
|
|
7742
|
+
token: string;
|
|
7743
|
+
campaignId: string;
|
|
7744
|
+
reason: string;
|
|
7745
|
+
root: string;
|
|
7746
|
+
amount: string;
|
|
7747
|
+
metadata: any;
|
|
7748
|
+
isLatest: boolean;
|
|
7749
|
+
}[];
|
|
7750
|
+
422: {
|
|
7751
|
+
type: "validation";
|
|
7752
|
+
on: string;
|
|
7753
|
+
summary?: string | undefined;
|
|
7754
|
+
message?: string | undefined;
|
|
7755
|
+
found?: unknown;
|
|
7756
|
+
property?: string | undefined;
|
|
7757
|
+
expected?: string | undefined;
|
|
7758
|
+
};
|
|
7759
|
+
};
|
|
7760
|
+
};
|
|
7761
|
+
};
|
|
7762
|
+
} & {
|
|
7763
|
+
claims: {
|
|
7764
|
+
status: {
|
|
7725
7765
|
get: {
|
|
7726
7766
|
body: unknown;
|
|
7727
7767
|
params: {};
|
|
7728
7768
|
query: {
|
|
7729
|
-
|
|
7730
|
-
recipient?: string | undefined;
|
|
7731
|
-
campaignId?: string | undefined;
|
|
7732
|
-
token?: string | undefined;
|
|
7733
|
-
root?: string | undefined;
|
|
7769
|
+
chainIds?: number[] | undefined;
|
|
7734
7770
|
};
|
|
7735
7771
|
headers: unknown;
|
|
7736
7772
|
response: {
|
|
7737
7773
|
200: {
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
}
|
|
7774
|
+
[x: number]: {
|
|
7775
|
+
chainId: number;
|
|
7776
|
+
sources: {
|
|
7777
|
+
sourceId: string;
|
|
7778
|
+
chainId: number;
|
|
7779
|
+
currentBlock: number;
|
|
7780
|
+
lastFetchedBlock: number;
|
|
7781
|
+
blockDifference: number;
|
|
7782
|
+
claimCount: number;
|
|
7783
|
+
timeBehind: number | null;
|
|
7784
|
+
}[];
|
|
7785
|
+
};
|
|
7786
|
+
};
|
|
7751
7787
|
422: {
|
|
7752
7788
|
type: "validation";
|
|
7753
7789
|
on: string;
|
|
@@ -7761,46 +7797,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
7761
7797
|
};
|
|
7762
7798
|
};
|
|
7763
7799
|
};
|
|
7764
|
-
} & {
|
|
7765
|
-
beta: {
|
|
7766
|
-
claims: {
|
|
7767
|
-
status: {
|
|
7768
|
-
get: {
|
|
7769
|
-
body: unknown;
|
|
7770
|
-
params: {};
|
|
7771
|
-
query: {
|
|
7772
|
-
chainIds?: number[] | undefined;
|
|
7773
|
-
};
|
|
7774
|
-
headers: unknown;
|
|
7775
|
-
response: {
|
|
7776
|
-
200: {
|
|
7777
|
-
[x: number]: {
|
|
7778
|
-
chainId: number;
|
|
7779
|
-
sources: {
|
|
7780
|
-
sourceId: string;
|
|
7781
|
-
chainId: number;
|
|
7782
|
-
currentBlock: number;
|
|
7783
|
-
lastFetchedBlock: number;
|
|
7784
|
-
blockDifference: number;
|
|
7785
|
-
claimCount: number;
|
|
7786
|
-
timeBehind: number | null;
|
|
7787
|
-
}[];
|
|
7788
|
-
};
|
|
7789
|
-
};
|
|
7790
|
-
422: {
|
|
7791
|
-
type: "validation";
|
|
7792
|
-
on: string;
|
|
7793
|
-
summary?: string | undefined;
|
|
7794
|
-
message?: string | undefined;
|
|
7795
|
-
found?: unknown;
|
|
7796
|
-
property?: string | undefined;
|
|
7797
|
-
expected?: string | undefined;
|
|
7798
|
-
};
|
|
7799
|
-
};
|
|
7800
|
-
};
|
|
7801
|
-
};
|
|
7802
|
-
};
|
|
7803
|
-
};
|
|
7804
7800
|
} & {
|
|
7805
7801
|
claims: {
|
|
7806
7802
|
":address": {
|