@merkl/api 0.17.16 → 0.17.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 +76 -326
- package/dist/src/entities/opportunity.d.ts +3 -0
- package/dist/src/entities/opportunity.js +12 -4
- package/dist/src/errors/HttpError.d.ts +2 -2
- package/dist/src/index.d.ts +20 -74
- package/dist/src/jobs/etl/update-dynamic-data.js +2 -80
- package/dist/src/libs/campaigns/campaignTypes/MORPHODynamicData.js +2 -1
- package/dist/src/libs/getTokensList.d.ts +3 -0
- package/dist/src/libs/getTokensList.js +3 -1
- package/dist/src/libs/positions/clamm/thegraph/index.d.ts +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +18 -0
- package/dist/src/modules/v4/campaign/campaign.controller.js +24 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +16 -1
- package/dist/src/modules/v4/campaign/campaign.repository.js +2 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +16 -1
- package/dist/src/modules/v4/campaign/campaign.service.js +2 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +0 -72
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +1 -16
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +4 -9
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +77 -81
- package/dist/src/modules/v4/router.d.ts +18 -72
- package/dist/src/routes/v3/app.d.ts +3 -0
- package/dist/src/routes/v3/app.js +3 -1
- package/dist/src/routes/v3/campaign/delay.d.ts +3 -0
- package/dist/src/routes/v3/campaign/delay.js +3 -1
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +3 -0
- package/dist/src/routes/v3/campaignUnclaimed.js +3 -1
- package/dist/src/routes/v3/campaigns.d.ts +1 -1
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +3 -0
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +3 -0
- package/dist/src/routes/v3/campaignsRewardsReport.js +3 -1
- package/dist/src/routes/v3/recipients.d.ts +3 -0
- package/dist/src/routes/v3/recipients.js +3 -1
- package/dist/src/routes/v3/rewards.d.ts +3 -0
- package/dist/src/routes/v3/rewards.js +3 -1
- package/dist/src/routes/v3/rewardsReport.d.ts +3 -0
- package/dist/src/routes/v3/rewardsReport.js +3 -1
- package/dist/src/routes/v3/router.d.ts +2 -2
- package/dist/src/routes/v3/updates.d.ts +3 -0
- package/dist/src/routes/v3/userRewards.d.ts +5 -2
- package/dist/src/routes/v3/userRewards.js +4 -3
- package/dist/src/utils/prices/priceService.js +3 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
|
@@ -913,6 +913,7 @@ declare const eden: {
|
|
|
913
913
|
};
|
|
914
914
|
campaigns: ((params: {
|
|
915
915
|
id: string | number;
|
|
916
|
+
campaignId: string | number;
|
|
916
917
|
}) => {
|
|
917
918
|
get: (options?: {
|
|
918
919
|
headers?: Record<string, unknown> | undefined;
|
|
@@ -971,6 +972,18 @@ declare const eden: {
|
|
|
971
972
|
opportunityId: string;
|
|
972
973
|
};
|
|
973
974
|
}>>;
|
|
975
|
+
} | {
|
|
976
|
+
"dynamic-data": {
|
|
977
|
+
put: (body: unknown, options: {
|
|
978
|
+
headers: {
|
|
979
|
+
authorization: string;
|
|
980
|
+
};
|
|
981
|
+
query?: Record<string, unknown> | undefined;
|
|
982
|
+
fetch?: RequestInit | undefined;
|
|
983
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
984
|
+
200: unknown[];
|
|
985
|
+
}>>;
|
|
986
|
+
};
|
|
974
987
|
}) & {
|
|
975
988
|
engine: {
|
|
976
989
|
post: (body: {
|
|
@@ -2718,68 +2731,6 @@ declare const eden: {
|
|
|
2718
2731
|
};
|
|
2719
2732
|
}>>;
|
|
2720
2733
|
};
|
|
2721
|
-
"from-config": {
|
|
2722
|
-
post: (body: {
|
|
2723
|
-
id?: string | undefined;
|
|
2724
|
-
tags?: string[] | undefined;
|
|
2725
|
-
identifier?: string | undefined;
|
|
2726
|
-
subType?: number | undefined;
|
|
2727
|
-
chain?: {} | undefined;
|
|
2728
|
-
chainId?: number | undefined;
|
|
2729
|
-
startTimestamp?: string | undefined;
|
|
2730
|
-
endTimestamp?: string | undefined;
|
|
2731
|
-
distributionChainId?: number | undefined;
|
|
2732
|
-
campaignId?: string | undefined;
|
|
2733
|
-
rewardTokenId?: string | undefined;
|
|
2734
|
-
amount?: string | undefined;
|
|
2735
|
-
opportunityId?: string | undefined;
|
|
2736
|
-
creatorAddress?: string | undefined;
|
|
2737
|
-
campaignStatus?: {} | undefined;
|
|
2738
|
-
rewardToken?: {} | undefined;
|
|
2739
|
-
rewardTokenAddress?: string | undefined;
|
|
2740
|
-
distributionChain?: {} | undefined;
|
|
2741
|
-
opportunityIdentifier?: string | undefined;
|
|
2742
|
-
type: string;
|
|
2743
|
-
params: {};
|
|
2744
|
-
computeChainId: number;
|
|
2745
|
-
}, options: {
|
|
2746
|
-
headers: {
|
|
2747
|
-
authorization: string;
|
|
2748
|
-
};
|
|
2749
|
-
query?: Record<string, unknown> | undefined;
|
|
2750
|
-
fetch?: RequestInit | undefined;
|
|
2751
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
2752
|
-
200: any[];
|
|
2753
|
-
}>>;
|
|
2754
|
-
};
|
|
2755
|
-
"from-existing": {
|
|
2756
|
-
get: (options: {
|
|
2757
|
-
headers: {
|
|
2758
|
-
authorization: string;
|
|
2759
|
-
};
|
|
2760
|
-
query: {
|
|
2761
|
-
type?: string | undefined;
|
|
2762
|
-
items?: number | undefined;
|
|
2763
|
-
subType?: number | undefined;
|
|
2764
|
-
page?: number | undefined;
|
|
2765
|
-
chainId?: number | undefined;
|
|
2766
|
-
startTimestamp?: string | undefined;
|
|
2767
|
-
endTimestamp?: string | undefined;
|
|
2768
|
-
tokenAddress?: string | undefined;
|
|
2769
|
-
campaignId?: string | undefined;
|
|
2770
|
-
opportunityId?: string | undefined;
|
|
2771
|
-
creatorAddress?: string | undefined;
|
|
2772
|
-
creatorId?: string | undefined;
|
|
2773
|
-
mainParameter?: string | undefined;
|
|
2774
|
-
test?: boolean | undefined;
|
|
2775
|
-
creatorTag?: string | undefined;
|
|
2776
|
-
tokenSymbol?: string | undefined;
|
|
2777
|
-
};
|
|
2778
|
-
fetch?: RequestInit | undefined;
|
|
2779
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
2780
|
-
200: any[];
|
|
2781
|
-
}>>;
|
|
2782
|
-
};
|
|
2783
2734
|
};
|
|
2784
2735
|
"campaign-status": ((params: {
|
|
2785
2736
|
campaignId: string | number;
|
|
@@ -4257,6 +4208,7 @@ declare const eden: {
|
|
|
4257
4208
|
};
|
|
4258
4209
|
campaigns: ((params: {
|
|
4259
4210
|
id: string | number;
|
|
4211
|
+
campaignId: string | number;
|
|
4260
4212
|
}) => {
|
|
4261
4213
|
get: (options?: {
|
|
4262
4214
|
headers?: Record<string, unknown> | undefined;
|
|
@@ -4315,6 +4267,18 @@ declare const eden: {
|
|
|
4315
4267
|
opportunityId: string;
|
|
4316
4268
|
};
|
|
4317
4269
|
}>>;
|
|
4270
|
+
} | {
|
|
4271
|
+
"dynamic-data": {
|
|
4272
|
+
put: (body: unknown, options: {
|
|
4273
|
+
headers: {
|
|
4274
|
+
authorization: string;
|
|
4275
|
+
};
|
|
4276
|
+
query?: Record<string, unknown> | undefined;
|
|
4277
|
+
fetch?: RequestInit | undefined;
|
|
4278
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
4279
|
+
200: unknown[];
|
|
4280
|
+
}>>;
|
|
4281
|
+
};
|
|
4318
4282
|
}) & {
|
|
4319
4283
|
engine: {
|
|
4320
4284
|
post: (body: {
|
|
@@ -6062,68 +6026,6 @@ declare const eden: {
|
|
|
6062
6026
|
};
|
|
6063
6027
|
}>>;
|
|
6064
6028
|
};
|
|
6065
|
-
"from-config": {
|
|
6066
|
-
post: (body: {
|
|
6067
|
-
id?: string | undefined;
|
|
6068
|
-
tags?: string[] | undefined;
|
|
6069
|
-
identifier?: string | undefined;
|
|
6070
|
-
subType?: number | undefined;
|
|
6071
|
-
chain?: {} | undefined;
|
|
6072
|
-
chainId?: number | undefined;
|
|
6073
|
-
startTimestamp?: string | undefined;
|
|
6074
|
-
endTimestamp?: string | undefined;
|
|
6075
|
-
distributionChainId?: number | undefined;
|
|
6076
|
-
campaignId?: string | undefined;
|
|
6077
|
-
rewardTokenId?: string | undefined;
|
|
6078
|
-
amount?: string | undefined;
|
|
6079
|
-
opportunityId?: string | undefined;
|
|
6080
|
-
creatorAddress?: string | undefined;
|
|
6081
|
-
campaignStatus?: {} | undefined;
|
|
6082
|
-
rewardToken?: {} | undefined;
|
|
6083
|
-
rewardTokenAddress?: string | undefined;
|
|
6084
|
-
distributionChain?: {} | undefined;
|
|
6085
|
-
opportunityIdentifier?: string | undefined;
|
|
6086
|
-
type: string;
|
|
6087
|
-
params: {};
|
|
6088
|
-
computeChainId: number;
|
|
6089
|
-
}, options: {
|
|
6090
|
-
headers: {
|
|
6091
|
-
authorization: string;
|
|
6092
|
-
};
|
|
6093
|
-
query?: Record<string, unknown> | undefined;
|
|
6094
|
-
fetch?: RequestInit | undefined;
|
|
6095
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
6096
|
-
200: any[];
|
|
6097
|
-
}>>;
|
|
6098
|
-
};
|
|
6099
|
-
"from-existing": {
|
|
6100
|
-
get: (options: {
|
|
6101
|
-
headers: {
|
|
6102
|
-
authorization: string;
|
|
6103
|
-
};
|
|
6104
|
-
query: {
|
|
6105
|
-
type?: string | undefined;
|
|
6106
|
-
items?: number | undefined;
|
|
6107
|
-
subType?: number | undefined;
|
|
6108
|
-
page?: number | undefined;
|
|
6109
|
-
chainId?: number | undefined;
|
|
6110
|
-
startTimestamp?: string | undefined;
|
|
6111
|
-
endTimestamp?: string | undefined;
|
|
6112
|
-
tokenAddress?: string | undefined;
|
|
6113
|
-
campaignId?: string | undefined;
|
|
6114
|
-
opportunityId?: string | undefined;
|
|
6115
|
-
creatorAddress?: string | undefined;
|
|
6116
|
-
creatorId?: string | undefined;
|
|
6117
|
-
mainParameter?: string | undefined;
|
|
6118
|
-
test?: boolean | undefined;
|
|
6119
|
-
creatorTag?: string | undefined;
|
|
6120
|
-
tokenSymbol?: string | undefined;
|
|
6121
|
-
};
|
|
6122
|
-
fetch?: RequestInit | undefined;
|
|
6123
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
6124
|
-
200: any[];
|
|
6125
|
-
}>>;
|
|
6126
|
-
};
|
|
6127
6029
|
};
|
|
6128
6030
|
"campaign-status": ((params: {
|
|
6129
6031
|
campaignId: string | number;
|
|
@@ -6827,8 +6729,8 @@ declare const eden: {
|
|
|
6827
6729
|
query: {
|
|
6828
6730
|
types?: string | number | string[] | number[] | undefined;
|
|
6829
6731
|
chainIds?: string | string[] | undefined;
|
|
6830
|
-
live?: boolean | undefined;
|
|
6831
6732
|
creatorTag?: string | undefined;
|
|
6733
|
+
live?: boolean | undefined;
|
|
6832
6734
|
hideTestTokens?: string | undefined;
|
|
6833
6735
|
};
|
|
6834
6736
|
fetch?: RequestInit | undefined;
|
|
@@ -7309,7 +7211,7 @@ declare const eden: {
|
|
|
7309
7211
|
proof?: string | undefined;
|
|
7310
7212
|
mainParameter?: string | undefined;
|
|
7311
7213
|
reloadChainId?: number | undefined;
|
|
7312
|
-
chainId:
|
|
7214
|
+
chainId: number;
|
|
7313
7215
|
user: string;
|
|
7314
7216
|
};
|
|
7315
7217
|
fetch?: RequestInit | undefined;
|
|
@@ -8502,6 +8404,24 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
8502
8404
|
};
|
|
8503
8405
|
};
|
|
8504
8406
|
};
|
|
8407
|
+
} & {
|
|
8408
|
+
":campaignId": {
|
|
8409
|
+
"dynamic-data": {
|
|
8410
|
+
put: {
|
|
8411
|
+
body: unknown;
|
|
8412
|
+
params: {
|
|
8413
|
+
campaignId: string;
|
|
8414
|
+
};
|
|
8415
|
+
query: unknown;
|
|
8416
|
+
headers: {
|
|
8417
|
+
authorization: string;
|
|
8418
|
+
};
|
|
8419
|
+
response: {
|
|
8420
|
+
200: unknown[];
|
|
8421
|
+
};
|
|
8422
|
+
};
|
|
8423
|
+
};
|
|
8424
|
+
};
|
|
8505
8425
|
} & {
|
|
8506
8426
|
index: {
|
|
8507
8427
|
get: {
|
|
@@ -10670,78 +10590,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
10670
10590
|
};
|
|
10671
10591
|
};
|
|
10672
10592
|
};
|
|
10673
|
-
} & {
|
|
10674
|
-
"dynamic-data": {
|
|
10675
|
-
"from-config": {
|
|
10676
|
-
post: {
|
|
10677
|
-
body: {
|
|
10678
|
-
id?: string | undefined;
|
|
10679
|
-
tags?: string[] | undefined;
|
|
10680
|
-
identifier?: string | undefined;
|
|
10681
|
-
subType?: number | undefined;
|
|
10682
|
-
chain?: {} | undefined;
|
|
10683
|
-
chainId?: number | undefined;
|
|
10684
|
-
startTimestamp?: string | undefined;
|
|
10685
|
-
endTimestamp?: string | undefined;
|
|
10686
|
-
distributionChainId?: number | undefined;
|
|
10687
|
-
campaignId?: string | undefined;
|
|
10688
|
-
rewardTokenId?: string | undefined;
|
|
10689
|
-
amount?: string | undefined;
|
|
10690
|
-
opportunityId?: string | undefined;
|
|
10691
|
-
creatorAddress?: string | undefined;
|
|
10692
|
-
campaignStatus?: {} | undefined;
|
|
10693
|
-
rewardToken?: {} | undefined;
|
|
10694
|
-
rewardTokenAddress?: string | undefined;
|
|
10695
|
-
distributionChain?: {} | undefined;
|
|
10696
|
-
opportunityIdentifier?: string | undefined;
|
|
10697
|
-
type: string;
|
|
10698
|
-
params: {};
|
|
10699
|
-
computeChainId: number;
|
|
10700
|
-
};
|
|
10701
|
-
params: {};
|
|
10702
|
-
query: unknown;
|
|
10703
|
-
headers: {
|
|
10704
|
-
authorization: string;
|
|
10705
|
-
};
|
|
10706
|
-
response: {
|
|
10707
|
-
200: any[];
|
|
10708
|
-
};
|
|
10709
|
-
};
|
|
10710
|
-
};
|
|
10711
|
-
};
|
|
10712
|
-
} & {
|
|
10713
|
-
"dynamic-data": {
|
|
10714
|
-
"from-existing": {
|
|
10715
|
-
get: {
|
|
10716
|
-
body: unknown;
|
|
10717
|
-
params: {};
|
|
10718
|
-
query: {
|
|
10719
|
-
type?: string | undefined;
|
|
10720
|
-
items?: number | undefined;
|
|
10721
|
-
subType?: number | undefined;
|
|
10722
|
-
page?: number | undefined;
|
|
10723
|
-
chainId?: number | undefined;
|
|
10724
|
-
startTimestamp?: string | undefined;
|
|
10725
|
-
endTimestamp?: string | undefined;
|
|
10726
|
-
tokenAddress?: string | undefined;
|
|
10727
|
-
campaignId?: string | undefined;
|
|
10728
|
-
opportunityId?: string | undefined;
|
|
10729
|
-
creatorAddress?: string | undefined;
|
|
10730
|
-
creatorId?: string | undefined;
|
|
10731
|
-
mainParameter?: string | undefined;
|
|
10732
|
-
test?: boolean | undefined;
|
|
10733
|
-
creatorTag?: string | undefined;
|
|
10734
|
-
tokenSymbol?: string | undefined;
|
|
10735
|
-
};
|
|
10736
|
-
headers: {
|
|
10737
|
-
authorization: string;
|
|
10738
|
-
};
|
|
10739
|
-
response: {
|
|
10740
|
-
200: any[];
|
|
10741
|
-
};
|
|
10742
|
-
};
|
|
10743
|
-
};
|
|
10744
|
-
};
|
|
10745
10593
|
};
|
|
10746
10594
|
} & {
|
|
10747
10595
|
v4: {
|
|
@@ -11632,8 +11480,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
11632
11480
|
query: {
|
|
11633
11481
|
types?: string | number | string[] | number[] | undefined;
|
|
11634
11482
|
chainIds?: string | string[] | undefined;
|
|
11635
|
-
live?: boolean | undefined;
|
|
11636
11483
|
creatorTag?: string | undefined;
|
|
11484
|
+
live?: boolean | undefined;
|
|
11637
11485
|
hideTestTokens?: string | undefined;
|
|
11638
11486
|
};
|
|
11639
11487
|
headers: unknown;
|
|
@@ -12262,7 +12110,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
12262
12110
|
proof?: string | undefined;
|
|
12263
12111
|
mainParameter?: string | undefined;
|
|
12264
12112
|
reloadChainId?: number | undefined;
|
|
12265
|
-
chainId:
|
|
12113
|
+
chainId: number;
|
|
12266
12114
|
user: string;
|
|
12267
12115
|
};
|
|
12268
12116
|
headers: unknown;
|
|
@@ -13227,6 +13075,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
13227
13075
|
};
|
|
13228
13076
|
campaigns: ((params: {
|
|
13229
13077
|
id: string | number;
|
|
13078
|
+
campaignId: string | number;
|
|
13230
13079
|
}) => {
|
|
13231
13080
|
get: (options?: {
|
|
13232
13081
|
headers?: Record<string, unknown> | undefined;
|
|
@@ -13285,6 +13134,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
13285
13134
|
opportunityId: string;
|
|
13286
13135
|
};
|
|
13287
13136
|
}>>;
|
|
13137
|
+
} | {
|
|
13138
|
+
"dynamic-data": {
|
|
13139
|
+
put: (body: unknown, options: {
|
|
13140
|
+
headers: {
|
|
13141
|
+
authorization: string;
|
|
13142
|
+
};
|
|
13143
|
+
query?: Record<string, unknown> | undefined;
|
|
13144
|
+
fetch?: RequestInit | undefined;
|
|
13145
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
13146
|
+
200: unknown[];
|
|
13147
|
+
}>>;
|
|
13148
|
+
};
|
|
13288
13149
|
}) & {
|
|
13289
13150
|
engine: {
|
|
13290
13151
|
post: (body: {
|
|
@@ -15032,68 +14893,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
15032
14893
|
};
|
|
15033
14894
|
}>>;
|
|
15034
14895
|
};
|
|
15035
|
-
"from-config": {
|
|
15036
|
-
post: (body: {
|
|
15037
|
-
id?: string | undefined;
|
|
15038
|
-
tags?: string[] | undefined;
|
|
15039
|
-
identifier?: string | undefined;
|
|
15040
|
-
subType?: number | undefined;
|
|
15041
|
-
chain?: {} | undefined;
|
|
15042
|
-
chainId?: number | undefined;
|
|
15043
|
-
startTimestamp?: string | undefined;
|
|
15044
|
-
endTimestamp?: string | undefined;
|
|
15045
|
-
distributionChainId?: number | undefined;
|
|
15046
|
-
campaignId?: string | undefined;
|
|
15047
|
-
rewardTokenId?: string | undefined;
|
|
15048
|
-
amount?: string | undefined;
|
|
15049
|
-
opportunityId?: string | undefined;
|
|
15050
|
-
creatorAddress?: string | undefined;
|
|
15051
|
-
campaignStatus?: {} | undefined;
|
|
15052
|
-
rewardToken?: {} | undefined;
|
|
15053
|
-
rewardTokenAddress?: string | undefined;
|
|
15054
|
-
distributionChain?: {} | undefined;
|
|
15055
|
-
opportunityIdentifier?: string | undefined;
|
|
15056
|
-
type: string;
|
|
15057
|
-
params: {};
|
|
15058
|
-
computeChainId: number;
|
|
15059
|
-
}, options: {
|
|
15060
|
-
headers: {
|
|
15061
|
-
authorization: string;
|
|
15062
|
-
};
|
|
15063
|
-
query?: Record<string, unknown> | undefined;
|
|
15064
|
-
fetch?: RequestInit | undefined;
|
|
15065
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
15066
|
-
200: any[];
|
|
15067
|
-
}>>;
|
|
15068
|
-
};
|
|
15069
|
-
"from-existing": {
|
|
15070
|
-
get: (options: {
|
|
15071
|
-
headers: {
|
|
15072
|
-
authorization: string;
|
|
15073
|
-
};
|
|
15074
|
-
query: {
|
|
15075
|
-
type?: string | undefined;
|
|
15076
|
-
items?: number | undefined;
|
|
15077
|
-
subType?: number | undefined;
|
|
15078
|
-
page?: number | undefined;
|
|
15079
|
-
chainId?: number | undefined;
|
|
15080
|
-
startTimestamp?: string | undefined;
|
|
15081
|
-
endTimestamp?: string | undefined;
|
|
15082
|
-
tokenAddress?: string | undefined;
|
|
15083
|
-
campaignId?: string | undefined;
|
|
15084
|
-
opportunityId?: string | undefined;
|
|
15085
|
-
creatorAddress?: string | undefined;
|
|
15086
|
-
creatorId?: string | undefined;
|
|
15087
|
-
mainParameter?: string | undefined;
|
|
15088
|
-
test?: boolean | undefined;
|
|
15089
|
-
creatorTag?: string | undefined;
|
|
15090
|
-
tokenSymbol?: string | undefined;
|
|
15091
|
-
};
|
|
15092
|
-
fetch?: RequestInit | undefined;
|
|
15093
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
15094
|
-
200: any[];
|
|
15095
|
-
}>>;
|
|
15096
|
-
};
|
|
15097
14896
|
};
|
|
15098
14897
|
"campaign-status": ((params: {
|
|
15099
14898
|
campaignId: string | number;
|
|
@@ -16571,6 +16370,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
16571
16370
|
};
|
|
16572
16371
|
campaigns: ((params: {
|
|
16573
16372
|
id: string | number;
|
|
16373
|
+
campaignId: string | number;
|
|
16574
16374
|
}) => {
|
|
16575
16375
|
get: (options?: {
|
|
16576
16376
|
headers?: Record<string, unknown> | undefined;
|
|
@@ -16629,6 +16429,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
16629
16429
|
opportunityId: string;
|
|
16630
16430
|
};
|
|
16631
16431
|
}>>;
|
|
16432
|
+
} | {
|
|
16433
|
+
"dynamic-data": {
|
|
16434
|
+
put: (body: unknown, options: {
|
|
16435
|
+
headers: {
|
|
16436
|
+
authorization: string;
|
|
16437
|
+
};
|
|
16438
|
+
query?: Record<string, unknown> | undefined;
|
|
16439
|
+
fetch?: RequestInit | undefined;
|
|
16440
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
16441
|
+
200: unknown[];
|
|
16442
|
+
}>>;
|
|
16443
|
+
};
|
|
16632
16444
|
}) & {
|
|
16633
16445
|
engine: {
|
|
16634
16446
|
post: (body: {
|
|
@@ -18376,68 +18188,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
18376
18188
|
};
|
|
18377
18189
|
}>>;
|
|
18378
18190
|
};
|
|
18379
|
-
"from-config": {
|
|
18380
|
-
post: (body: {
|
|
18381
|
-
id?: string | undefined;
|
|
18382
|
-
tags?: string[] | undefined;
|
|
18383
|
-
identifier?: string | undefined;
|
|
18384
|
-
subType?: number | undefined;
|
|
18385
|
-
chain?: {} | undefined;
|
|
18386
|
-
chainId?: number | undefined;
|
|
18387
|
-
startTimestamp?: string | undefined;
|
|
18388
|
-
endTimestamp?: string | undefined;
|
|
18389
|
-
distributionChainId?: number | undefined;
|
|
18390
|
-
campaignId?: string | undefined;
|
|
18391
|
-
rewardTokenId?: string | undefined;
|
|
18392
|
-
amount?: string | undefined;
|
|
18393
|
-
opportunityId?: string | undefined;
|
|
18394
|
-
creatorAddress?: string | undefined;
|
|
18395
|
-
campaignStatus?: {} | undefined;
|
|
18396
|
-
rewardToken?: {} | undefined;
|
|
18397
|
-
rewardTokenAddress?: string | undefined;
|
|
18398
|
-
distributionChain?: {} | undefined;
|
|
18399
|
-
opportunityIdentifier?: string | undefined;
|
|
18400
|
-
type: string;
|
|
18401
|
-
params: {};
|
|
18402
|
-
computeChainId: number;
|
|
18403
|
-
}, options: {
|
|
18404
|
-
headers: {
|
|
18405
|
-
authorization: string;
|
|
18406
|
-
};
|
|
18407
|
-
query?: Record<string, unknown> | undefined;
|
|
18408
|
-
fetch?: RequestInit | undefined;
|
|
18409
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
18410
|
-
200: any[];
|
|
18411
|
-
}>>;
|
|
18412
|
-
};
|
|
18413
|
-
"from-existing": {
|
|
18414
|
-
get: (options: {
|
|
18415
|
-
headers: {
|
|
18416
|
-
authorization: string;
|
|
18417
|
-
};
|
|
18418
|
-
query: {
|
|
18419
|
-
type?: string | undefined;
|
|
18420
|
-
items?: number | undefined;
|
|
18421
|
-
subType?: number | undefined;
|
|
18422
|
-
page?: number | undefined;
|
|
18423
|
-
chainId?: number | undefined;
|
|
18424
|
-
startTimestamp?: string | undefined;
|
|
18425
|
-
endTimestamp?: string | undefined;
|
|
18426
|
-
tokenAddress?: string | undefined;
|
|
18427
|
-
campaignId?: string | undefined;
|
|
18428
|
-
opportunityId?: string | undefined;
|
|
18429
|
-
creatorAddress?: string | undefined;
|
|
18430
|
-
creatorId?: string | undefined;
|
|
18431
|
-
mainParameter?: string | undefined;
|
|
18432
|
-
test?: boolean | undefined;
|
|
18433
|
-
creatorTag?: string | undefined;
|
|
18434
|
-
tokenSymbol?: string | undefined;
|
|
18435
|
-
};
|
|
18436
|
-
fetch?: RequestInit | undefined;
|
|
18437
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
18438
|
-
200: any[];
|
|
18439
|
-
}>>;
|
|
18440
|
-
};
|
|
18441
18191
|
};
|
|
18442
18192
|
"campaign-status": ((params: {
|
|
18443
18193
|
campaignId: string | number;
|
|
@@ -19141,8 +18891,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
19141
18891
|
query: {
|
|
19142
18892
|
types?: string | number | string[] | number[] | undefined;
|
|
19143
18893
|
chainIds?: string | string[] | undefined;
|
|
19144
|
-
live?: boolean | undefined;
|
|
19145
18894
|
creatorTag?: string | undefined;
|
|
18895
|
+
live?: boolean | undefined;
|
|
19146
18896
|
hideTestTokens?: string | undefined;
|
|
19147
18897
|
};
|
|
19148
18898
|
fetch?: RequestInit | undefined;
|
|
@@ -19623,7 +19373,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
|
19623
19373
|
proof?: string | undefined;
|
|
19624
19374
|
mainParameter?: string | undefined;
|
|
19625
19375
|
reloadChainId?: number | undefined;
|
|
19626
|
-
chainId:
|
|
19376
|
+
chainId: number;
|
|
19627
19377
|
user: string;
|
|
19628
19378
|
};
|
|
19629
19379
|
fetch?: RequestInit | undefined;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { type CampaignDynamicData, type Opportunity, type OpportunityId } from "@sdk";
|
|
2
2
|
import { type ValidCampaign } from "./campaign";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
3
6
|
export declare const extractOpportunities: {
|
|
4
7
|
readonly [C in ValidCampaign]: (campaign: CampaignDynamicData<C>, campaigns: {
|
|
5
8
|
all: CampaignDynamicData<C>[];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { getHyperdriveMetadata } from "../modules/v4/opportunity/subservices/getHyperdriveMetadata.service";
|
|
2
2
|
import { AjnaSubCampaignType, BN2Number, Campaign, ChainId, CompFork, CompoundSubCampaignType, DolomiteSubCampaignType, EAprBreakdownType, EulerSubCampaignType, MorphoSubCampaignType, almName, ammName, } from "@sdk";
|
|
3
3
|
import { activeCampaign, getApr, getCampaignsFor, getDailyRewards, getRewardTokenIcons, getRewardTokens, getStatus, getTags, inactiveCampaign, removeTestTokens, } from "./campaign";
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
5
7
|
export const extractOpportunities = {
|
|
6
8
|
[Campaign.CLAMM]: ({ chainId, amm, mainParameter, tvl, campaignParameters: params, poolBalanceToken0, poolBalanceToken1, computeChainId, }, campaigns, prices) => {
|
|
7
9
|
const { active, all } = campaigns;
|
|
@@ -571,7 +573,9 @@ export const extractOpportunities = {
|
|
|
571
573
|
[Campaign.ERC20LOGPROCESSOR]: (campaign, campaigns, prices) => {
|
|
572
574
|
const { chainId, tvl, campaignParameters: params, typeInfo, computeChainId, mainParameter } = campaign;
|
|
573
575
|
const { active, all } = campaigns;
|
|
574
|
-
|
|
576
|
+
/**
|
|
577
|
+
* @deprecated
|
|
578
|
+
*/
|
|
575
579
|
const map = {
|
|
576
580
|
actions: {
|
|
577
581
|
pool: [
|
|
@@ -667,7 +671,9 @@ export const extractOpportunities = {
|
|
|
667
671
|
[Campaign.ERC20REBASELOGPROCESSOR]: (campaign, campaigns, prices) => {
|
|
668
672
|
const { chainId, tvl, campaignParameters: params, typeInfo, computeChainId, mainParameter } = campaign;
|
|
669
673
|
const { active, all } = campaigns;
|
|
670
|
-
|
|
674
|
+
/**
|
|
675
|
+
* @deprecated
|
|
676
|
+
*/
|
|
671
677
|
const map = {
|
|
672
678
|
actions: {
|
|
673
679
|
pool: [
|
|
@@ -773,7 +779,9 @@ export const extractOpportunities = {
|
|
|
773
779
|
[Campaign.ERC20_FIX_APR]: (campaign, campaigns, prices) => {
|
|
774
780
|
const { chainId, tvl, campaignParameters: params, typeInfo, computeChainId, mainParameter } = campaign;
|
|
775
781
|
const { active, all } = campaigns;
|
|
776
|
-
|
|
782
|
+
/**
|
|
783
|
+
* @deprecated
|
|
784
|
+
*/
|
|
777
785
|
const map = {
|
|
778
786
|
actions: {
|
|
779
787
|
pool: [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare class HttpError extends Error {
|
|
2
2
|
code: string;
|
|
3
3
|
httpCode?: number;
|
|
4
|
-
info?:
|
|
5
|
-
constructor(message?: string, httpCode?: number, info?:
|
|
4
|
+
info?: any;
|
|
5
|
+
constructor(message?: string, httpCode?: number, info?: any);
|
|
6
6
|
}
|
|
7
7
|
export declare const HttpErrorDto: import("@sinclair/typebox").TObject<{
|
|
8
8
|
code: import("@sinclair/typebox").TString;
|