@merkl/api 1.1.50 → 1.1.51
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 +681 -0
- package/dist/src/index.d.ts +344 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +338 -0
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +21 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +14 -0
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +1 -0
- package/dist/src/modules/v4/router.d.ts +344 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -428,6 +428,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
428
428
|
rootCampaignId?: string | undefined;
|
429
429
|
parentCampaignId?: string | undefined;
|
430
430
|
distributionChain?: import("../../../modules/v4/chain/chain.model").Chain["model"] | undefined;
|
431
|
+
childCampaignIds?: string[] | undefined;
|
431
432
|
} | {
|
432
433
|
id: string;
|
433
434
|
chainId: number;
|
@@ -555,6 +556,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
555
556
|
icon: string;
|
556
557
|
liveCampaigns: number;
|
557
558
|
} | undefined;
|
559
|
+
childCampaignIds?: string[] | undefined;
|
558
560
|
rewardToken: {
|
559
561
|
price?: number | null | undefined;
|
560
562
|
symbol: string;
|
@@ -649,6 +651,341 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
649
651
|
};
|
650
652
|
};
|
651
653
|
};
|
654
|
+
} & {
|
655
|
+
":id": {
|
656
|
+
linked: {
|
657
|
+
get: {
|
658
|
+
body: unknown;
|
659
|
+
params: {
|
660
|
+
id: string;
|
661
|
+
};
|
662
|
+
query: {
|
663
|
+
campaigns?: boolean | undefined;
|
664
|
+
point?: boolean | undefined;
|
665
|
+
test?: boolean | undefined;
|
666
|
+
tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
|
667
|
+
excludeSubCampaigns?: boolean | undefined;
|
668
|
+
};
|
669
|
+
headers: unknown;
|
670
|
+
response: {
|
671
|
+
200: {
|
672
|
+
parent?: {
|
673
|
+
protocol?: {
|
674
|
+
dailyRewards?: number | undefined;
|
675
|
+
numberOfLiveCampaigns?: number | undefined;
|
676
|
+
opportunityLiveTags?: string[] | undefined;
|
677
|
+
name: string;
|
678
|
+
description: string;
|
679
|
+
id: string;
|
680
|
+
url: string;
|
681
|
+
icon: string;
|
682
|
+
tags: string[];
|
683
|
+
} | null | undefined;
|
684
|
+
depositUrl?: string | undefined;
|
685
|
+
aprRecord?: {
|
686
|
+
timestamp: string | bigint;
|
687
|
+
cumulated: number;
|
688
|
+
breakdowns: {
|
689
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
690
|
+
value: number;
|
691
|
+
timestamp: string | bigint;
|
692
|
+
type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
|
693
|
+
identifier: string;
|
694
|
+
}[];
|
695
|
+
} | undefined;
|
696
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
697
|
+
explorerAddress?: string | undefined;
|
698
|
+
tvlRecord?: {
|
699
|
+
timestamp: string | bigint;
|
700
|
+
total: number;
|
701
|
+
breakdowns: {
|
702
|
+
value: number;
|
703
|
+
type: "TOKEN" | "PROTOCOL";
|
704
|
+
identifier: string;
|
705
|
+
}[];
|
706
|
+
} | undefined;
|
707
|
+
rewardsRecord?: {
|
708
|
+
timestamp: string | bigint;
|
709
|
+
total: number;
|
710
|
+
breakdowns: {
|
711
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
712
|
+
token: {
|
713
|
+
price?: number | null | undefined;
|
714
|
+
symbol: string;
|
715
|
+
name: string | null;
|
716
|
+
decimals: number;
|
717
|
+
address: string;
|
718
|
+
id: string;
|
719
|
+
chainId: number;
|
720
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
721
|
+
icon: string;
|
722
|
+
isNative: boolean;
|
723
|
+
isTest: boolean;
|
724
|
+
verified: boolean;
|
725
|
+
};
|
726
|
+
campaignId: string;
|
727
|
+
value: number;
|
728
|
+
amount: string | bigint;
|
729
|
+
timestamp: string | bigint;
|
730
|
+
}[];
|
731
|
+
} | undefined;
|
732
|
+
name: string;
|
733
|
+
apr: number;
|
734
|
+
tokens: {
|
735
|
+
price?: number | null | undefined;
|
736
|
+
symbol: string;
|
737
|
+
name: string | null;
|
738
|
+
decimals: number;
|
739
|
+
address: string;
|
740
|
+
id: string;
|
741
|
+
chainId: number;
|
742
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
743
|
+
icon: string;
|
744
|
+
isNative: boolean;
|
745
|
+
isTest: boolean;
|
746
|
+
verified: boolean;
|
747
|
+
}[];
|
748
|
+
tvl: number;
|
749
|
+
description: string;
|
750
|
+
id: string;
|
751
|
+
status: string;
|
752
|
+
chainId: number;
|
753
|
+
action: string;
|
754
|
+
type: string;
|
755
|
+
chain: {
|
756
|
+
explorers?: {
|
757
|
+
chainId: number;
|
758
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
759
|
+
url: string;
|
760
|
+
}[] | undefined;
|
761
|
+
name: string;
|
762
|
+
endOfDisputePeriod: number;
|
763
|
+
id: number;
|
764
|
+
icon: string;
|
765
|
+
liveCampaigns: number;
|
766
|
+
};
|
767
|
+
dailyRewards: number;
|
768
|
+
identifier: string;
|
769
|
+
howToSteps: string[];
|
770
|
+
tags: string[];
|
771
|
+
lastCampaignCreatedAt: number;
|
772
|
+
} | undefined;
|
773
|
+
self: {
|
774
|
+
protocol?: {
|
775
|
+
dailyRewards?: number | undefined;
|
776
|
+
numberOfLiveCampaigns?: number | undefined;
|
777
|
+
opportunityLiveTags?: string[] | undefined;
|
778
|
+
name: string;
|
779
|
+
description: string;
|
780
|
+
id: string;
|
781
|
+
url: string;
|
782
|
+
icon: string;
|
783
|
+
tags: string[];
|
784
|
+
} | null | undefined;
|
785
|
+
depositUrl?: string | undefined;
|
786
|
+
aprRecord?: {
|
787
|
+
timestamp: string | bigint;
|
788
|
+
cumulated: number;
|
789
|
+
breakdowns: {
|
790
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
791
|
+
value: number;
|
792
|
+
timestamp: string | bigint;
|
793
|
+
type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
|
794
|
+
identifier: string;
|
795
|
+
}[];
|
796
|
+
} | undefined;
|
797
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
798
|
+
explorerAddress?: string | undefined;
|
799
|
+
tvlRecord?: {
|
800
|
+
timestamp: string | bigint;
|
801
|
+
total: number;
|
802
|
+
breakdowns: {
|
803
|
+
value: number;
|
804
|
+
type: "TOKEN" | "PROTOCOL";
|
805
|
+
identifier: string;
|
806
|
+
}[];
|
807
|
+
} | undefined;
|
808
|
+
rewardsRecord?: {
|
809
|
+
timestamp: string | bigint;
|
810
|
+
total: number;
|
811
|
+
breakdowns: {
|
812
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
813
|
+
token: {
|
814
|
+
price?: number | null | undefined;
|
815
|
+
symbol: string;
|
816
|
+
name: string | null;
|
817
|
+
decimals: number;
|
818
|
+
address: string;
|
819
|
+
id: string;
|
820
|
+
chainId: number;
|
821
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
822
|
+
icon: string;
|
823
|
+
isNative: boolean;
|
824
|
+
isTest: boolean;
|
825
|
+
verified: boolean;
|
826
|
+
};
|
827
|
+
campaignId: string;
|
828
|
+
value: number;
|
829
|
+
amount: string | bigint;
|
830
|
+
timestamp: string | bigint;
|
831
|
+
}[];
|
832
|
+
} | undefined;
|
833
|
+
name: string;
|
834
|
+
apr: number;
|
835
|
+
tokens: {
|
836
|
+
price?: number | null | undefined;
|
837
|
+
symbol: string;
|
838
|
+
name: string | null;
|
839
|
+
decimals: number;
|
840
|
+
address: string;
|
841
|
+
id: string;
|
842
|
+
chainId: number;
|
843
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
844
|
+
icon: string;
|
845
|
+
isNative: boolean;
|
846
|
+
isTest: boolean;
|
847
|
+
verified: boolean;
|
848
|
+
}[];
|
849
|
+
tvl: number;
|
850
|
+
description: string;
|
851
|
+
id: string;
|
852
|
+
status: string;
|
853
|
+
chainId: number;
|
854
|
+
action: string;
|
855
|
+
type: string;
|
856
|
+
chain: {
|
857
|
+
explorers?: {
|
858
|
+
chainId: number;
|
859
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
860
|
+
url: string;
|
861
|
+
}[] | undefined;
|
862
|
+
name: string;
|
863
|
+
endOfDisputePeriod: number;
|
864
|
+
id: number;
|
865
|
+
icon: string;
|
866
|
+
liveCampaigns: number;
|
867
|
+
};
|
868
|
+
dailyRewards: number;
|
869
|
+
identifier: string;
|
870
|
+
howToSteps: string[];
|
871
|
+
tags: string[];
|
872
|
+
lastCampaignCreatedAt: number;
|
873
|
+
};
|
874
|
+
children: {
|
875
|
+
protocol?: {
|
876
|
+
dailyRewards?: number | undefined;
|
877
|
+
numberOfLiveCampaigns?: number | undefined;
|
878
|
+
opportunityLiveTags?: string[] | undefined;
|
879
|
+
name: string;
|
880
|
+
description: string;
|
881
|
+
id: string;
|
882
|
+
url: string;
|
883
|
+
icon: string;
|
884
|
+
tags: string[];
|
885
|
+
} | null | undefined;
|
886
|
+
depositUrl?: string | undefined;
|
887
|
+
aprRecord?: {
|
888
|
+
timestamp: string | bigint;
|
889
|
+
cumulated: number;
|
890
|
+
breakdowns: {
|
891
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
892
|
+
value: number;
|
893
|
+
timestamp: string | bigint;
|
894
|
+
type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
|
895
|
+
identifier: string;
|
896
|
+
}[];
|
897
|
+
} | undefined;
|
898
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
899
|
+
explorerAddress?: string | undefined;
|
900
|
+
tvlRecord?: {
|
901
|
+
timestamp: string | bigint;
|
902
|
+
total: number;
|
903
|
+
breakdowns: {
|
904
|
+
value: number;
|
905
|
+
type: "TOKEN" | "PROTOCOL";
|
906
|
+
identifier: string;
|
907
|
+
}[];
|
908
|
+
} | undefined;
|
909
|
+
rewardsRecord?: {
|
910
|
+
timestamp: string | bigint;
|
911
|
+
total: number;
|
912
|
+
breakdowns: {
|
913
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
914
|
+
token: {
|
915
|
+
price?: number | null | undefined;
|
916
|
+
symbol: string;
|
917
|
+
name: string | null;
|
918
|
+
decimals: number;
|
919
|
+
address: string;
|
920
|
+
id: string;
|
921
|
+
chainId: number;
|
922
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
923
|
+
icon: string;
|
924
|
+
isNative: boolean;
|
925
|
+
isTest: boolean;
|
926
|
+
verified: boolean;
|
927
|
+
};
|
928
|
+
campaignId: string;
|
929
|
+
value: number;
|
930
|
+
amount: string | bigint;
|
931
|
+
timestamp: string | bigint;
|
932
|
+
}[];
|
933
|
+
} | undefined;
|
934
|
+
name: string;
|
935
|
+
apr: number;
|
936
|
+
tokens: {
|
937
|
+
price?: number | null | undefined;
|
938
|
+
symbol: string;
|
939
|
+
name: string | null;
|
940
|
+
decimals: number;
|
941
|
+
address: string;
|
942
|
+
id: string;
|
943
|
+
chainId: number;
|
944
|
+
type: "TOKEN" | "PRETGE" | "POINT";
|
945
|
+
icon: string;
|
946
|
+
isNative: boolean;
|
947
|
+
isTest: boolean;
|
948
|
+
verified: boolean;
|
949
|
+
}[];
|
950
|
+
tvl: number;
|
951
|
+
description: string;
|
952
|
+
id: string;
|
953
|
+
status: string;
|
954
|
+
chainId: number;
|
955
|
+
action: string;
|
956
|
+
type: string;
|
957
|
+
chain: {
|
958
|
+
explorers?: {
|
959
|
+
chainId: number;
|
960
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
961
|
+
url: string;
|
962
|
+
}[] | undefined;
|
963
|
+
name: string;
|
964
|
+
endOfDisputePeriod: number;
|
965
|
+
id: number;
|
966
|
+
icon: string;
|
967
|
+
liveCampaigns: number;
|
968
|
+
};
|
969
|
+
dailyRewards: number;
|
970
|
+
identifier: string;
|
971
|
+
howToSteps: string[];
|
972
|
+
tags: string[];
|
973
|
+
lastCampaignCreatedAt: number;
|
974
|
+
}[];
|
975
|
+
};
|
976
|
+
422: {
|
977
|
+
type: "validation";
|
978
|
+
on: string;
|
979
|
+
summary?: string;
|
980
|
+
message?: string;
|
981
|
+
found?: unknown;
|
982
|
+
property?: string;
|
983
|
+
expected?: string;
|
984
|
+
};
|
985
|
+
};
|
986
|
+
};
|
987
|
+
};
|
988
|
+
};
|
652
989
|
} & {
|
653
990
|
"campaigns-to-process": {
|
654
991
|
engine: {
|
@@ -852,6 +1189,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
852
1189
|
icon: string;
|
853
1190
|
liveCampaigns: number;
|
854
1191
|
} | undefined;
|
1192
|
+
childCampaignIds?: string[] | undefined;
|
855
1193
|
rewardToken: {
|
856
1194
|
price?: number | null | undefined;
|
857
1195
|
symbol: string;
|
@@ -26,6 +26,7 @@ export type Campaign = ResourceAPI<"Campaign", undefined, {
|
|
26
26
|
endTimestamp: number;
|
27
27
|
startTimestamp: number;
|
28
28
|
createdAt: string;
|
29
|
+
childCampaignIds?: string[];
|
29
30
|
rootCampaignId?: string;
|
30
31
|
parentCampaignId?: string;
|
31
32
|
}>;
|
@@ -125,6 +126,7 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
|
|
125
126
|
createdAt: import("@sinclair/typebox").TString;
|
126
127
|
rootCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
127
128
|
parentCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
129
|
+
childCampaignIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
128
130
|
}>;
|
129
131
|
export declare const CampaignConfigMinimal: import("@sinclair/typebox").TObject<{
|
130
132
|
computeChainId: import("@sinclair/typebox").TNumber;
|
@@ -689,6 +689,9 @@ export declare abstract class CampaignRepository {
|
|
689
689
|
verified: boolean;
|
690
690
|
displaySymbol: string;
|
691
691
|
};
|
692
|
+
ChildCampaigns: {
|
693
|
+
id: string;
|
694
|
+
}[];
|
692
695
|
} & {
|
693
696
|
apr: number;
|
694
697
|
campaignId: string;
|
@@ -775,6 +778,9 @@ export declare abstract class CampaignRepository {
|
|
775
778
|
verified: boolean;
|
776
779
|
displaySymbol: string;
|
777
780
|
};
|
781
|
+
ChildCampaigns: {
|
782
|
+
id: string;
|
783
|
+
}[];
|
778
784
|
} & {
|
779
785
|
apr: number;
|
780
786
|
campaignId: string;
|
@@ -870,6 +876,9 @@ export declare abstract class CampaignRepository {
|
|
870
876
|
verified: boolean;
|
871
877
|
displaySymbol: string;
|
872
878
|
};
|
879
|
+
ChildCampaigns: {
|
880
|
+
id: string;
|
881
|
+
}[];
|
873
882
|
} & {
|
874
883
|
apr: number;
|
875
884
|
campaignId: string;
|
@@ -956,6 +965,9 @@ export declare abstract class CampaignRepository {
|
|
956
965
|
verified: boolean;
|
957
966
|
displaySymbol: string;
|
958
967
|
};
|
968
|
+
ChildCampaigns: {
|
969
|
+
id: string;
|
970
|
+
}[];
|
959
971
|
} & {
|
960
972
|
apr: number;
|
961
973
|
campaignId: string;
|
@@ -1028,6 +1040,15 @@ export declare abstract class CampaignRepository {
|
|
1028
1040
|
timestamp: bigint;
|
1029
1041
|
total: number;
|
1030
1042
|
}[]>;
|
1043
|
+
static getLinkedOpportunities(id: string): Promise<{
|
1044
|
+
opportunityId: string;
|
1045
|
+
ParentCampaign: {
|
1046
|
+
opportunityId: string;
|
1047
|
+
} | null;
|
1048
|
+
ChildCampaigns: {
|
1049
|
+
opportunityId: string;
|
1050
|
+
}[];
|
1051
|
+
}>;
|
1031
1052
|
static getWalletCount(campaign: {
|
1032
1053
|
id: string;
|
1033
1054
|
opportunityId: string;
|
@@ -53,6 +53,11 @@ export declare abstract class CampaignService {
|
|
53
53
|
RewardToken: true;
|
54
54
|
CampaignStatus: true;
|
55
55
|
Creator: true;
|
56
|
+
ChildCampaigns: {
|
57
|
+
select: {
|
58
|
+
id: true;
|
59
|
+
};
|
60
|
+
};
|
56
61
|
Opportunity: boolean;
|
57
62
|
};
|
58
63
|
static splitIdOrThrow(chainAndCampaignId: `${number}-${string}` | string): CampaignUnique;
|
@@ -417,6 +422,15 @@ export declare abstract class CampaignService {
|
|
417
422
|
chainId: ChainId;
|
418
423
|
}): Promise<import("@angleprotocol/sdk/ts").ERC20Campaign>;
|
419
424
|
static getWalletCount(campaignId: CampaignUnique | string): Promise<number>;
|
425
|
+
static getLinkedOpportunities(campaignId: CampaignUnique | string): Promise<{
|
426
|
+
opportunityId: string;
|
427
|
+
ParentCampaign: {
|
428
|
+
opportunityId: string;
|
429
|
+
} | null;
|
430
|
+
ChildCampaigns: {
|
431
|
+
opportunityId: string;
|
432
|
+
}[];
|
433
|
+
}>;
|
420
434
|
static getMetrics(campaignId: CampaignUnique | string): Promise<{
|
421
435
|
tvlRecords: {
|
422
436
|
timestamp: bigint;
|
@@ -632,6 +632,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
632
632
|
rootCampaignId?: string | undefined;
|
633
633
|
parentCampaignId?: string | undefined;
|
634
634
|
distributionChain?: import("../chain/chain.model").Chain["model"] | undefined;
|
635
|
+
childCampaignIds?: string[] | undefined;
|
635
636
|
} | {
|
636
637
|
id: string;
|
637
638
|
chainId: number;
|
@@ -1120,6 +1121,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
1120
1121
|
rootCampaignId?: string | undefined;
|
1121
1122
|
parentCampaignId?: string | undefined;
|
1122
1123
|
distributionChain?: import("../chain/chain.model").Chain["model"] | undefined;
|
1124
|
+
childCampaignIds?: string[] | undefined;
|
1123
1125
|
} | {
|
1124
1126
|
id: string;
|
1125
1127
|
chainId: number;
|
@@ -1609,6 +1611,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", {
|
|
1609
1611
|
rootCampaignId?: string | undefined;
|
1610
1612
|
parentCampaignId?: string | undefined;
|
1611
1613
|
distributionChain?: import("../chain/chain.model").Chain["model"] | undefined;
|
1614
|
+
childCampaignIds?: string[] | undefined;
|
1612
1615
|
} | {
|
1613
1616
|
id: string;
|
1614
1617
|
chainId: number;
|
@@ -163,6 +163,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
163
163
|
icon: string;
|
164
164
|
liveCampaigns: number;
|
165
165
|
} | undefined;
|
166
|
+
childCampaignIds?: string[] | undefined;
|
166
167
|
rewardToken: {
|
167
168
|
price?: number | null | undefined;
|
168
169
|
symbol: string;
|
@@ -473,6 +474,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
473
474
|
icon: string;
|
474
475
|
liveCampaigns: number;
|
475
476
|
} | undefined;
|
477
|
+
childCampaignIds?: string[] | undefined;
|
476
478
|
rewardToken: {
|
477
479
|
price?: number | null | undefined;
|
478
480
|
symbol: string;
|
@@ -684,6 +686,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
684
686
|
icon: string;
|
685
687
|
liveCampaigns: number;
|
686
688
|
} | undefined;
|
689
|
+
childCampaignIds?: string[] | undefined;
|
687
690
|
rewardToken: {
|
688
691
|
price?: number | null | undefined;
|
689
692
|
symbol: string;
|
@@ -430,6 +430,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
430
430
|
createdAt: import("@sinclair/typebox").TString;
|
431
431
|
rootCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
432
432
|
parentCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
433
|
+
childCampaignIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
433
434
|
}>>;
|
434
435
|
}>;
|
435
436
|
export declare const OpportunityUniqueDto: import("@sinclair/typebox").TObject<{
|