@merkl/api 1.0.0 → 1.0.4
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 +131 -128
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +1 -1
- package/dist/src/index.d.ts +47 -46
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +15 -15
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +30 -30
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +13 -13
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +20 -20
- package/dist/src/modules/v4/router.d.ts +47 -46
- package/dist/src/modules/v4/status/status.controller.d.ts +1 -0
- package/dist/src/modules/v4/status/status.model.d.ts +1 -0
- package/dist/src/utils/pricer.d.ts +4 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -2
@@ -134,11 +134,6 @@ export declare const v4: Elysia<"/v4", {
|
|
134
134
|
chainId: number;
|
135
135
|
action: string;
|
136
136
|
type: string;
|
137
|
-
howToSteps: string[];
|
138
|
-
identifier: string;
|
139
|
-
dailyRewards: number;
|
140
|
-
tags: string[];
|
141
|
-
lastCampaignCreatedAt: string;
|
142
137
|
chain: {
|
143
138
|
explorers?: {
|
144
139
|
chainId: number;
|
@@ -149,6 +144,11 @@ export declare const v4: Elysia<"/v4", {
|
|
149
144
|
id: number;
|
150
145
|
icon: string;
|
151
146
|
};
|
147
|
+
howToSteps: string[];
|
148
|
+
identifier: string;
|
149
|
+
dailyRewards: number;
|
150
|
+
tags: string[];
|
151
|
+
lastCampaignCreatedAt: string;
|
152
152
|
} | null)[];
|
153
153
|
422: {
|
154
154
|
type: "validation";
|
@@ -415,11 +415,6 @@ export declare const v4: Elysia<"/v4", {
|
|
415
415
|
chainId: number;
|
416
416
|
action: string;
|
417
417
|
type: string;
|
418
|
-
howToSteps: string[];
|
419
|
-
identifier: string;
|
420
|
-
dailyRewards: number;
|
421
|
-
tags: string[];
|
422
|
-
lastCampaignCreatedAt: string;
|
423
418
|
chain: {
|
424
419
|
explorers?: {
|
425
420
|
chainId: number;
|
@@ -430,6 +425,11 @@ export declare const v4: Elysia<"/v4", {
|
|
430
425
|
id: number;
|
431
426
|
icon: string;
|
432
427
|
};
|
428
|
+
howToSteps: string[];
|
429
|
+
identifier: string;
|
430
|
+
dailyRewards: number;
|
431
|
+
tags: string[];
|
432
|
+
lastCampaignCreatedAt: string;
|
433
433
|
};
|
434
434
|
readonly 500: {
|
435
435
|
info: string;
|
@@ -615,11 +615,6 @@ export declare const v4: Elysia<"/v4", {
|
|
615
615
|
computeChainId: number;
|
616
616
|
distributionChainId: number;
|
617
617
|
endTimestamp: string | number;
|
618
|
-
opportunityId: string;
|
619
|
-
creatorAddress: string;
|
620
|
-
subType: number | null;
|
621
|
-
rewardTokenId: string;
|
622
|
-
createdAt: string;
|
623
618
|
chain: {
|
624
619
|
explorers?: {
|
625
620
|
chainId: number;
|
@@ -630,14 +625,14 @@ export declare const v4: Elysia<"/v4", {
|
|
630
625
|
id: number;
|
631
626
|
icon: string;
|
632
627
|
};
|
628
|
+
opportunityId: string;
|
629
|
+
creatorAddress: string;
|
630
|
+
subType: number | null;
|
631
|
+
rewardTokenId: string;
|
632
|
+
createdAt: string;
|
633
633
|
}[];
|
634
634
|
action: string;
|
635
635
|
type: string;
|
636
|
-
howToSteps: string[];
|
637
|
-
identifier: string;
|
638
|
-
dailyRewards: number;
|
639
|
-
tags: string[];
|
640
|
-
lastCampaignCreatedAt: string;
|
641
636
|
chain: {
|
642
637
|
explorers?: {
|
643
638
|
chainId: number;
|
@@ -648,6 +643,11 @@ export declare const v4: Elysia<"/v4", {
|
|
648
643
|
id: number;
|
649
644
|
icon: string;
|
650
645
|
};
|
646
|
+
howToSteps: string[];
|
647
|
+
identifier: string;
|
648
|
+
dailyRewards: number;
|
649
|
+
tags: string[];
|
650
|
+
lastCampaignCreatedAt: string;
|
651
651
|
}[];
|
652
652
|
readonly 500: {
|
653
653
|
info: string;
|
@@ -814,11 +814,6 @@ export declare const v4: Elysia<"/v4", {
|
|
814
814
|
computeChainId: number;
|
815
815
|
distributionChainId: number;
|
816
816
|
endTimestamp: string | number;
|
817
|
-
opportunityId: string;
|
818
|
-
creatorAddress: string;
|
819
|
-
subType: number | null;
|
820
|
-
rewardTokenId: string;
|
821
|
-
createdAt: string;
|
822
817
|
chain: {
|
823
818
|
explorers?: {
|
824
819
|
chainId: number;
|
@@ -829,14 +824,14 @@ export declare const v4: Elysia<"/v4", {
|
|
829
824
|
id: number;
|
830
825
|
icon: string;
|
831
826
|
};
|
827
|
+
opportunityId: string;
|
828
|
+
creatorAddress: string;
|
829
|
+
subType: number | null;
|
830
|
+
rewardTokenId: string;
|
831
|
+
createdAt: string;
|
832
832
|
}[];
|
833
833
|
action: string;
|
834
834
|
type: string;
|
835
|
-
howToSteps: string[];
|
836
|
-
identifier: string;
|
837
|
-
dailyRewards: number;
|
838
|
-
tags: string[];
|
839
|
-
lastCampaignCreatedAt: string;
|
840
835
|
chain: {
|
841
836
|
explorers?: {
|
842
837
|
chainId: number;
|
@@ -847,6 +842,11 @@ export declare const v4: Elysia<"/v4", {
|
|
847
842
|
id: number;
|
848
843
|
icon: string;
|
849
844
|
};
|
845
|
+
howToSteps: string[];
|
846
|
+
identifier: string;
|
847
|
+
dailyRewards: number;
|
848
|
+
tags: string[];
|
849
|
+
lastCampaignCreatedAt: string;
|
850
850
|
};
|
851
851
|
readonly 500: {
|
852
852
|
info: string;
|
@@ -1916,11 +1916,6 @@ export declare const v4: Elysia<"/v4", {
|
|
1916
1916
|
computeChainId: number;
|
1917
1917
|
distributionChainId: number;
|
1918
1918
|
endTimestamp: string | number;
|
1919
|
-
opportunityId: string;
|
1920
|
-
creatorAddress: string;
|
1921
|
-
subType: number | null;
|
1922
|
-
rewardTokenId: string;
|
1923
|
-
createdAt: string;
|
1924
1919
|
chain: {
|
1925
1920
|
explorers?: {
|
1926
1921
|
chainId: number;
|
@@ -1931,6 +1926,11 @@ export declare const v4: Elysia<"/v4", {
|
|
1931
1926
|
id: number;
|
1932
1927
|
icon: string;
|
1933
1928
|
};
|
1929
|
+
opportunityId: string;
|
1930
|
+
creatorAddress: string;
|
1931
|
+
subType: number | null;
|
1932
|
+
rewardTokenId: string;
|
1933
|
+
createdAt: string;
|
1934
1934
|
}[];
|
1935
1935
|
422: {
|
1936
1936
|
type: "validation";
|
@@ -2003,11 +2003,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2003
2003
|
computeChainId: number;
|
2004
2004
|
distributionChainId: number;
|
2005
2005
|
endTimestamp: string | number;
|
2006
|
-
opportunityId: string;
|
2007
|
-
creatorAddress: string;
|
2008
|
-
subType: number | null;
|
2009
|
-
rewardTokenId: string;
|
2010
|
-
createdAt: string;
|
2011
2006
|
chain: {
|
2012
2007
|
explorers?: {
|
2013
2008
|
chainId: number;
|
@@ -2018,6 +2013,11 @@ export declare const v4: Elysia<"/v4", {
|
|
2018
2013
|
id: number;
|
2019
2014
|
icon: string;
|
2020
2015
|
};
|
2016
|
+
opportunityId: string;
|
2017
|
+
creatorAddress: string;
|
2018
|
+
subType: number | null;
|
2019
|
+
rewardTokenId: string;
|
2020
|
+
createdAt: string;
|
2021
2021
|
};
|
2022
2022
|
422: {
|
2023
2023
|
type: "validation";
|
@@ -2297,11 +2297,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2297
2297
|
computeChainId: number;
|
2298
2298
|
distributionChainId: number;
|
2299
2299
|
endTimestamp: string | number;
|
2300
|
-
opportunityId: string;
|
2301
|
-
creatorAddress: string;
|
2302
|
-
subType: number | null;
|
2303
|
-
rewardTokenId: string;
|
2304
|
-
createdAt: string;
|
2305
2300
|
chain: {
|
2306
2301
|
explorers?: {
|
2307
2302
|
chainId: number;
|
@@ -2312,6 +2307,11 @@ export declare const v4: Elysia<"/v4", {
|
|
2312
2307
|
id: number;
|
2313
2308
|
icon: string;
|
2314
2309
|
};
|
2310
|
+
opportunityId: string;
|
2311
|
+
creatorAddress: string;
|
2312
|
+
subType: number | null;
|
2313
|
+
rewardTokenId: string;
|
2314
|
+
createdAt: string;
|
2315
2315
|
}[];
|
2316
2316
|
422: {
|
2317
2317
|
type: "validation";
|
@@ -5386,10 +5386,10 @@ export declare const v4: Elysia<"/v4", {
|
|
5386
5386
|
slippage?: number | undefined;
|
5387
5387
|
protocolId: string;
|
5388
5388
|
chainId: number;
|
5389
|
+
fromAmount: string;
|
5389
5390
|
userAddress: string;
|
5390
5391
|
identifier: string;
|
5391
5392
|
fromTokenAddress: string;
|
5392
|
-
fromAmount: string;
|
5393
5393
|
};
|
5394
5394
|
headers: unknown;
|
5395
5395
|
response: {
|
@@ -5880,6 +5880,7 @@ export declare const v4: Elysia<"/v4", {
|
|
5880
5880
|
query: {
|
5881
5881
|
chainId?: number | undefined;
|
5882
5882
|
endTimestampLowerBound?: number | undefined;
|
5883
|
+
includeSubCampaigns?: boolean | undefined;
|
5883
5884
|
delayLowerBound?: number | undefined;
|
5884
5885
|
};
|
5885
5886
|
headers: unknown;
|
@@ -217,6 +217,7 @@ export declare const StatusController: Elysia<"/campaign-status", {
|
|
217
217
|
query: {
|
218
218
|
chainId?: number | undefined;
|
219
219
|
endTimestampLowerBound?: number | undefined;
|
220
|
+
includeSubCampaigns?: boolean | undefined;
|
220
221
|
delayLowerBound?: number | undefined;
|
221
222
|
};
|
222
223
|
headers: unknown;
|
@@ -13,6 +13,7 @@ export declare const CampaignUniqueDto: import("@sinclair/typebox").TObject<{
|
|
13
13
|
}>;
|
14
14
|
export declare const DelayDto: import("@sinclair/typebox").TObject<{
|
15
15
|
endTimestampLowerBound: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
16
|
+
includeSubCampaigns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
16
17
|
delayLowerBound: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
17
18
|
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
18
19
|
}>;
|
@@ -39,7 +39,10 @@ export declare class Pricer {
|
|
39
39
|
price: number;
|
40
40
|
method: number;
|
41
41
|
}>;
|
42
|
-
/**
|
42
|
+
/**
|
43
|
+
* @deprecated - use TokenService.getPrice instead
|
44
|
+
* Returns the price if possible, otherwise tries to fetch it
|
45
|
+
*/
|
43
46
|
get(x: {
|
44
47
|
symbol?: string;
|
45
48
|
address?: string;
|