@merkl/api 0.10.391 → 0.10.393
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/database/api/.generated/edge.js +9 -7
- package/dist/database/api/.generated/index-browser.js +4 -4
- package/dist/database/api/.generated/index.d.ts +3687 -491
- package/dist/database/api/.generated/index.js +9 -7
- package/dist/database/api/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/runtime/edge-esm.js +18 -18
- package/dist/database/api/.generated/runtime/edge.js +18 -18
- package/dist/database/api/.generated/runtime/index-browser.d.ts +1 -1
- package/dist/database/api/.generated/runtime/library.d.ts +107 -38
- package/dist/database/api/.generated/runtime/library.js +53 -53
- package/dist/database/api/.generated/runtime/react-native.js +26 -26
- package/dist/database/api/.generated/runtime/wasm.js +19 -19
- package/dist/database/api/.generated/wasm.js +4 -4
- package/dist/database/engine/.generated/edge.js +9 -7
- package/dist/database/engine/.generated/index-browser.js +4 -4
- package/dist/database/engine/.generated/index.d.ts +1891 -257
- package/dist/database/engine/.generated/index.js +9 -7
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +1 -1
- package/dist/database/engine/.generated/runtime/edge-esm.js +18 -18
- package/dist/database/engine/.generated/runtime/edge.js +18 -18
- package/dist/database/engine/.generated/runtime/index-browser.d.ts +1 -1
- package/dist/database/engine/.generated/runtime/library.d.ts +107 -38
- package/dist/database/engine/.generated/runtime/library.js +53 -53
- package/dist/database/engine/.generated/runtime/react-native.js +26 -26
- package/dist/database/engine/.generated/runtime/wasm.js +19 -19
- package/dist/database/engine/.generated/wasm.js +4 -4
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +12 -2
- package/dist/src/backgroundJobs/jobs/health.d.ts +12 -2
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +3 -2
- package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +3 -2
- package/dist/src/backgroundJobs/jobs/sync.d.ts +12 -2
- package/dist/src/eden/index.d.ts +4021 -117
- package/dist/src/entities/opportunity.js +1 -1
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +3 -2
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +3 -2
- package/dist/src/index.d.ts +1343 -49
- package/dist/src/internal/controllers/endingCampaigns.d.ts +12 -2
- package/dist/src/internal/controllers/unclaimed.d.ts +12 -2
- package/dist/src/jobs/etl/pendings.js +38 -38
- package/dist/src/jobs/etl/reward-breakdowns.js +55 -52
- package/dist/src/jobs/etl/rewards.js +37 -35
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +5 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.js +2 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +8 -0
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +66 -2
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +30 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +12 -2
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +1 -1
- package/dist/src/modules/v4/bucket/bucket.service.js +5 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +78 -5
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
- package/dist/src/modules/v4/chain/chain.controller.d.ts +39 -2
- package/dist/src/modules/v4/claims/claims.controller.d.ts +12 -2
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +39 -2
- package/dist/src/modules/v4/creator/creator.controller.d.ts +39 -2
- package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +3 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +31 -3
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +12 -2
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +31 -3
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +12 -2
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +118 -18
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
- package/dist/src/modules/v4/price/price.controller.d.ts +48 -2
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +75 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -10
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +46 -9
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.controller.d.ts +111 -2
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
- package/dist/src/modules/v4/router.d.ts +973 -36
- package/dist/src/modules/v4/status/status.controller.d.ts +48 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +75 -2
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +12 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +90 -8
- package/dist/src/plugins/error-handling.plugin.d.ts +3 -2
- package/dist/src/plugins/logger.plugin.d.ts +3 -2
- package/dist/src/routes/v1/allowances.d.ts +12 -2
- package/dist/src/routes/v1/balances.d.ts +12 -2
- package/dist/src/routes/v1/prices.d.ts +12 -2
- package/dist/src/routes/v1/router.d.ts +39 -2
- package/dist/src/routes/v1/tokens.d.ts +12 -2
- package/dist/src/routes/v2/merkl.d.ts +12 -2
- package/dist/src/routes/v2/router.d.ts +12 -2
- package/dist/src/routes/v3/app.d.ts +12 -2
- package/dist/src/routes/v3/blacklist.d.ts +12 -2
- package/dist/src/routes/v3/campaign/delay.d.ts +12 -2
- package/dist/src/routes/v3/campaignClaims.d.ts +12 -2
- package/dist/src/routes/v3/campaignReport.d.ts +12 -2
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +12 -2
- package/dist/src/routes/v3/campaigns.d.ts +12 -2
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +12 -2
- package/dist/src/routes/v3/campaignsInfo.d.ts +12 -2
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +12 -2
- package/dist/src/routes/v3/claims.d.ts +12 -2
- package/dist/src/routes/v3/compoundV2.d.ts +12 -2
- package/dist/src/routes/v3/createCampaign.d.ts +12 -2
- package/dist/src/routes/v3/dolomite.d.ts +12 -2
- package/dist/src/routes/v3/euler.d.ts +12 -2
- package/dist/src/routes/v3/exports/campaigns.d.ts +12 -2
- package/dist/src/routes/v3/fetch.d.ts +12 -2
- package/dist/src/routes/v3/health.d.ts +12 -2
- package/dist/src/routes/v3/lostyield.d.ts +12 -2
- package/dist/src/routes/v3/merkl.d.ts +3 -2
- package/dist/src/routes/v3/morphoMarkets.d.ts +12 -2
- package/dist/src/routes/v3/morphoVaults.d.ts +12 -2
- package/dist/src/routes/v3/multiChainPositions.d.ts +12 -2
- package/dist/src/routes/v3/opportunity.d.ts +12 -2
- package/dist/src/routes/v3/overview.d.ts +12 -2
- package/dist/src/routes/v3/parse.d.ts +12 -2
- package/dist/src/routes/v3/payload.d.ts +12 -2
- package/dist/src/routes/v3/poolInfo.d.ts +12 -2
- package/dist/src/routes/v3/positions.d.ts +12 -2
- package/dist/src/routes/v3/radiant.d.ts +12 -2
- package/dist/src/routes/v3/recipients.d.ts +12 -2
- package/dist/src/routes/v3/rewards.d.ts +12 -2
- package/dist/src/routes/v3/rewardsReport.d.ts +12 -2
- package/dist/src/routes/v3/router.d.ts +328 -3
- package/dist/src/routes/v3/silo.d.ts +12 -2
- package/dist/src/routes/v3/token.d.ts +12 -2
- package/dist/src/routes/v3/tokenUnclaimed.d.ts +12 -2
- package/dist/src/routes/v3/twt/participants.d.ts +12 -2
- package/dist/src/routes/v3/uniswapv4.d.ts +12 -2
- package/dist/src/routes/v3/updates.d.ts +12 -2
- package/dist/src/routes/v3/userRewards.d.ts +12 -2
- package/dist/src/utils/decodeCalls.js +12 -3
- package/dist/src/utils/encodeCalls.js +20 -7
- package/dist/src/utils/error.d.ts +3 -2
- package/dist/src/utils/generateCardName.js +4 -0
- package/dist/src/utils/logger.d.ts +29 -5
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +24 -24
|
@@ -12,8 +12,8 @@ export declare abstract class OpportunityService {
|
|
|
12
12
|
* @returns {Promise<Opportunity|undefined>}
|
|
13
13
|
*/
|
|
14
14
|
static create(newOpp: Omit<CreateOpportunityModel, "id">): Promise<{
|
|
15
|
-
name: string;
|
|
16
15
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
|
16
|
+
name: string;
|
|
17
17
|
id: string;
|
|
18
18
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
|
19
19
|
tags: string[];
|
|
@@ -124,9 +124,9 @@ export declare abstract class OpportunityService {
|
|
|
124
124
|
*/
|
|
125
125
|
static getManyByCampaigns(where: GetCampaignQueryModel): Promise<({
|
|
126
126
|
protocol?: {
|
|
127
|
+
description: string;
|
|
127
128
|
name: string;
|
|
128
129
|
url: string;
|
|
129
|
-
description: string;
|
|
130
130
|
id: string;
|
|
131
131
|
tags: string[];
|
|
132
132
|
icon: string;
|
|
@@ -178,8 +178,8 @@ export declare abstract class OpportunityService {
|
|
|
178
178
|
dailyRewardsRecordId: string;
|
|
179
179
|
}[];
|
|
180
180
|
} | undefined;
|
|
181
|
-
name: string;
|
|
182
181
|
type: string;
|
|
182
|
+
name: string;
|
|
183
183
|
tokens: {
|
|
184
184
|
price?: number | null | undefined;
|
|
185
185
|
symbol: string;
|
|
@@ -332,15 +332,15 @@ export declare abstract class OpportunityService {
|
|
|
332
332
|
icon: string;
|
|
333
333
|
};
|
|
334
334
|
protocol: {
|
|
335
|
+
description: string;
|
|
335
336
|
name: string;
|
|
336
337
|
url: string;
|
|
337
|
-
description: string;
|
|
338
338
|
id: string;
|
|
339
339
|
tags: string[];
|
|
340
340
|
icon: string;
|
|
341
341
|
} | undefined;
|
|
342
|
-
name: string;
|
|
343
342
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
|
343
|
+
name: string;
|
|
344
344
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
|
345
345
|
tags: string[];
|
|
346
346
|
identifier: string;
|
|
@@ -420,15 +420,15 @@ export declare abstract class OpportunityService {
|
|
|
420
420
|
icon: string;
|
|
421
421
|
};
|
|
422
422
|
protocol: {
|
|
423
|
+
description: string;
|
|
423
424
|
name: string;
|
|
424
425
|
url: string;
|
|
425
|
-
description: string;
|
|
426
426
|
id: string;
|
|
427
427
|
tags: string[];
|
|
428
428
|
icon: string;
|
|
429
429
|
} | undefined;
|
|
430
|
-
name: string;
|
|
431
430
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
|
431
|
+
name: string;
|
|
432
432
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
|
433
433
|
tags: string[];
|
|
434
434
|
identifier: string;
|
|
@@ -565,15 +565,15 @@ export declare abstract class OpportunityService {
|
|
|
565
565
|
icon: string;
|
|
566
566
|
};
|
|
567
567
|
protocol: {
|
|
568
|
+
description: string;
|
|
568
569
|
name: string;
|
|
569
570
|
url: string;
|
|
570
|
-
description: string;
|
|
571
571
|
id: string;
|
|
572
572
|
tags: string[];
|
|
573
573
|
icon: string;
|
|
574
574
|
} | undefined;
|
|
575
|
-
name: string;
|
|
576
575
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
|
576
|
+
name: string;
|
|
577
577
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
|
578
578
|
tags: string[];
|
|
579
579
|
identifier: string;
|
|
@@ -604,15 +604,15 @@ export declare abstract class OpportunityService {
|
|
|
604
604
|
icon: string;
|
|
605
605
|
};
|
|
606
606
|
protocol: {
|
|
607
|
+
description: string;
|
|
607
608
|
name: string;
|
|
608
609
|
url: string;
|
|
609
|
-
description: string;
|
|
610
610
|
id: string;
|
|
611
611
|
tags: string[];
|
|
612
612
|
icon: string;
|
|
613
613
|
} | undefined;
|
|
614
|
-
name: string;
|
|
615
614
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
|
615
|
+
name: string;
|
|
616
616
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
|
617
617
|
tags: string[];
|
|
618
618
|
identifier: string;
|
|
@@ -632,8 +632,8 @@ export declare abstract class OpportunityService {
|
|
|
632
632
|
max: string;
|
|
633
633
|
}>;
|
|
634
634
|
static update(id: string, data: UpdateOpportunityModel): Promise<{
|
|
635
|
-
name: string;
|
|
636
635
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
|
636
|
+
name: string;
|
|
637
637
|
id: string;
|
|
638
638
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
|
639
639
|
tags: string[];
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import Elysia from "elysia";
|
|
2
|
-
export declare const PriceController: Elysia<"/prices",
|
|
2
|
+
export declare const PriceController: Elysia<"/prices", {
|
|
3
3
|
decorator: {};
|
|
4
4
|
store: {};
|
|
5
5
|
derive: {};
|
|
6
6
|
resolve: {};
|
|
7
7
|
}, {
|
|
8
|
-
|
|
8
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
|
9
9
|
error: {};
|
|
10
10
|
}, {
|
|
11
11
|
schema: {};
|
|
12
12
|
macro: {};
|
|
13
13
|
macroFn: {};
|
|
14
|
+
parser: {};
|
|
14
15
|
}, {
|
|
15
16
|
prices: {
|
|
16
17
|
index: {
|
|
@@ -53,6 +54,15 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
|
53
54
|
headers: unknown;
|
|
54
55
|
response: {
|
|
55
56
|
200: number;
|
|
57
|
+
422: {
|
|
58
|
+
type: "validation";
|
|
59
|
+
on: string;
|
|
60
|
+
summary?: string;
|
|
61
|
+
message?: string;
|
|
62
|
+
found?: unknown;
|
|
63
|
+
property?: string;
|
|
64
|
+
expected?: string;
|
|
65
|
+
};
|
|
56
66
|
};
|
|
57
67
|
};
|
|
58
68
|
};
|
|
@@ -94,6 +104,15 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
|
94
104
|
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
|
95
105
|
id: number;
|
|
96
106
|
};
|
|
107
|
+
422: {
|
|
108
|
+
type: "validation";
|
|
109
|
+
on: string;
|
|
110
|
+
summary?: string;
|
|
111
|
+
message?: string;
|
|
112
|
+
found?: unknown;
|
|
113
|
+
property?: string;
|
|
114
|
+
expected?: string;
|
|
115
|
+
};
|
|
97
116
|
};
|
|
98
117
|
};
|
|
99
118
|
};
|
|
@@ -115,6 +134,15 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
|
115
134
|
};
|
|
116
135
|
response: {
|
|
117
136
|
200: number | undefined;
|
|
137
|
+
422: {
|
|
138
|
+
type: "validation";
|
|
139
|
+
on: string;
|
|
140
|
+
summary?: string;
|
|
141
|
+
message?: string;
|
|
142
|
+
found?: unknown;
|
|
143
|
+
property?: string;
|
|
144
|
+
expected?: string;
|
|
145
|
+
};
|
|
118
146
|
};
|
|
119
147
|
};
|
|
120
148
|
};
|
|
@@ -143,6 +171,15 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
|
143
171
|
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
|
144
172
|
id: number;
|
|
145
173
|
};
|
|
174
|
+
422: {
|
|
175
|
+
type: "validation";
|
|
176
|
+
on: string;
|
|
177
|
+
summary?: string;
|
|
178
|
+
message?: string;
|
|
179
|
+
found?: unknown;
|
|
180
|
+
property?: string;
|
|
181
|
+
expected?: string;
|
|
182
|
+
};
|
|
146
183
|
};
|
|
147
184
|
};
|
|
148
185
|
};
|
|
@@ -168,6 +205,15 @@ export declare const PriceController: Elysia<"/prices", false, {
|
|
|
168
205
|
args: import("database/api/.generated/runtime/library").JsonValue | null;
|
|
169
206
|
id: number;
|
|
170
207
|
};
|
|
208
|
+
422: {
|
|
209
|
+
type: "validation";
|
|
210
|
+
on: string;
|
|
211
|
+
summary?: string;
|
|
212
|
+
message?: string;
|
|
213
|
+
found?: unknown;
|
|
214
|
+
property?: string;
|
|
215
|
+
expected?: string;
|
|
216
|
+
};
|
|
171
217
|
};
|
|
172
218
|
};
|
|
173
219
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import Elysia from "elysia";
|
|
2
|
-
export declare const ProgramPayloadController: Elysia<"/program-payload",
|
|
2
|
+
export declare const ProgramPayloadController: Elysia<"/program-payload", {
|
|
3
3
|
decorator: {};
|
|
4
4
|
store: {};
|
|
5
5
|
derive: {};
|
|
6
6
|
resolve: {};
|
|
7
7
|
}, {
|
|
8
|
-
|
|
8
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
|
9
9
|
error: {};
|
|
10
10
|
}, {
|
|
11
11
|
schema: {};
|
|
12
12
|
macro: {};
|
|
13
13
|
macroFn: {};
|
|
14
|
+
parser: {};
|
|
14
15
|
}, {
|
|
15
16
|
"program-payload": {
|
|
16
17
|
index: {
|
|
@@ -39,6 +40,15 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", false,
|
|
|
39
40
|
};
|
|
40
41
|
transactions: import("./programPayload.model").transaction[];
|
|
41
42
|
};
|
|
43
|
+
422: {
|
|
44
|
+
type: "validation";
|
|
45
|
+
on: string;
|
|
46
|
+
summary?: string;
|
|
47
|
+
message?: string;
|
|
48
|
+
found?: unknown;
|
|
49
|
+
property?: string;
|
|
50
|
+
expected?: string;
|
|
51
|
+
};
|
|
42
52
|
};
|
|
43
53
|
};
|
|
44
54
|
};
|
|
@@ -63,6 +73,15 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", false,
|
|
|
63
73
|
response: {
|
|
64
74
|
[x: string]: any;
|
|
65
75
|
200: any;
|
|
76
|
+
422: {
|
|
77
|
+
type: "validation";
|
|
78
|
+
on: string;
|
|
79
|
+
summary?: string;
|
|
80
|
+
message?: string;
|
|
81
|
+
found?: unknown;
|
|
82
|
+
property?: string;
|
|
83
|
+
expected?: string;
|
|
84
|
+
};
|
|
66
85
|
};
|
|
67
86
|
};
|
|
68
87
|
};
|
|
@@ -82,6 +101,15 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", false,
|
|
|
82
101
|
200: {
|
|
83
102
|
[x: string]: string;
|
|
84
103
|
};
|
|
104
|
+
422: {
|
|
105
|
+
type: "validation";
|
|
106
|
+
on: string;
|
|
107
|
+
summary?: string;
|
|
108
|
+
message?: string;
|
|
109
|
+
found?: unknown;
|
|
110
|
+
property?: string;
|
|
111
|
+
expected?: string;
|
|
112
|
+
};
|
|
85
113
|
};
|
|
86
114
|
};
|
|
87
115
|
};
|
|
@@ -108,6 +136,15 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", false,
|
|
|
108
136
|
200: {
|
|
109
137
|
args: any;
|
|
110
138
|
};
|
|
139
|
+
422: {
|
|
140
|
+
type: "validation";
|
|
141
|
+
on: string;
|
|
142
|
+
summary?: string;
|
|
143
|
+
message?: string;
|
|
144
|
+
found?: unknown;
|
|
145
|
+
property?: string;
|
|
146
|
+
expected?: string;
|
|
147
|
+
};
|
|
111
148
|
};
|
|
112
149
|
};
|
|
113
150
|
};
|
|
@@ -139,6 +176,15 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", false,
|
|
|
139
176
|
};
|
|
140
177
|
transactions: import("./programPayload.model").transaction[];
|
|
141
178
|
} | null;
|
|
179
|
+
422: {
|
|
180
|
+
type: "validation";
|
|
181
|
+
on: string;
|
|
182
|
+
summary?: string;
|
|
183
|
+
message?: string;
|
|
184
|
+
found?: unknown;
|
|
185
|
+
property?: string;
|
|
186
|
+
expected?: string;
|
|
187
|
+
};
|
|
142
188
|
};
|
|
143
189
|
};
|
|
144
190
|
};
|
|
@@ -173,6 +219,15 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", false,
|
|
|
173
219
|
};
|
|
174
220
|
transactions: import("./programPayload.model").transaction[];
|
|
175
221
|
} | null;
|
|
222
|
+
422: {
|
|
223
|
+
type: "validation";
|
|
224
|
+
on: string;
|
|
225
|
+
summary?: string;
|
|
226
|
+
message?: string;
|
|
227
|
+
found?: unknown;
|
|
228
|
+
property?: string;
|
|
229
|
+
expected?: string;
|
|
230
|
+
};
|
|
176
231
|
};
|
|
177
232
|
};
|
|
178
233
|
};
|
|
@@ -237,6 +292,15 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", false,
|
|
|
237
292
|
safePayload: import("./programPayload.model").safePayload;
|
|
238
293
|
nonEncodedConfig: any;
|
|
239
294
|
};
|
|
295
|
+
422: {
|
|
296
|
+
type: "validation";
|
|
297
|
+
on: string;
|
|
298
|
+
summary?: string;
|
|
299
|
+
message?: string;
|
|
300
|
+
found?: unknown;
|
|
301
|
+
property?: string;
|
|
302
|
+
expected?: string;
|
|
303
|
+
};
|
|
240
304
|
};
|
|
241
305
|
};
|
|
242
306
|
};
|
|
@@ -267,6 +331,15 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", false,
|
|
|
267
331
|
response: {
|
|
268
332
|
[x: string]: any;
|
|
269
333
|
200: any;
|
|
334
|
+
422: {
|
|
335
|
+
type: "validation";
|
|
336
|
+
on: string;
|
|
337
|
+
summary?: string;
|
|
338
|
+
message?: string;
|
|
339
|
+
found?: unknown;
|
|
340
|
+
property?: string;
|
|
341
|
+
expected?: string;
|
|
342
|
+
};
|
|
270
343
|
};
|
|
271
344
|
};
|
|
272
345
|
};
|
|
@@ -115,7 +115,6 @@ export declare enum zkSyncCampaigns {
|
|
|
115
115
|
ZKSwap_ZF_ETH = "ZKSwap Finance ZF/ETH v2 0.1pct ZKSwap Finance ZF/ETH v2 0xd33a17c883d5aa79470cd2522abb213dc4017e01",
|
|
116
116
|
raffle_jumper = "raffle jumper 31/01/25",
|
|
117
117
|
airdrop_jumper = "airdrop jumper 31/01/25",
|
|
118
|
-
airdrop_layerswap = "airdrop layerswap 31/01/25",
|
|
119
118
|
Syncswap_USN_USDCe_Range = "SyncSwap USN/USDC.e Range Pool 0xe6ed575d9627942893f12bf9c2cc3c47cd11d002",
|
|
120
119
|
Syncswap_USN_sUSN_Range = "SyncSwap USN/sUSN Range Pool 0x12bf23c2fe929c23ab375199efad425e70c0ece1",
|
|
121
120
|
Izumi_Finance_WETH_WBTC = "Izumi Finance WETH/WBTC 0xee0f2c77b0fd3daaa7fb332c8f6589f73b29ecfc",
|
|
@@ -118,7 +118,6 @@ export var zkSyncCampaigns;
|
|
|
118
118
|
zkSyncCampaigns["ZKSwap_ZF_ETH"] = "ZKSwap Finance ZF/ETH v2 0.1pct ZKSwap Finance ZF/ETH v2 0xd33a17c883d5aa79470cd2522abb213dc4017e01";
|
|
119
119
|
zkSyncCampaigns["raffle_jumper"] = "raffle jumper 31/01/25";
|
|
120
120
|
zkSyncCampaigns["airdrop_jumper"] = "airdrop jumper 31/01/25";
|
|
121
|
-
zkSyncCampaigns["airdrop_layerswap"] = "airdrop layerswap 31/01/25";
|
|
122
121
|
zkSyncCampaigns["Syncswap_USN_USDCe_Range"] = "SyncSwap USN/USDC.e Range Pool 0xe6ed575d9627942893f12bf9c2cc3c47cd11d002";
|
|
123
122
|
zkSyncCampaigns["Syncswap_USN_sUSN_Range"] = "SyncSwap USN/sUSN Range Pool 0x12bf23c2fe929c23ab375199efad425e70c0ece1";
|
|
124
123
|
zkSyncCampaigns["Izumi_Finance_WETH_WBTC"] = "Izumi Finance WETH/WBTC 0xee0f2c77b0fd3daaa7fb332c8f6589f73b29ecfc";
|
|
@@ -786,7 +785,7 @@ const ModeInterfaceCampaigns = {
|
|
|
786
785
|
blacklist: [],
|
|
787
786
|
forwarders: [],
|
|
788
787
|
subCampaignType: CompoundSubCampaignType.supply,
|
|
789
|
-
compFork: CompFork.
|
|
788
|
+
compFork: CompFork.LayerBank,
|
|
790
789
|
targetToken: "0xe855B8018C22A05F84724e93693caf166912aDD5",
|
|
791
790
|
},
|
|
792
791
|
[modeCampaigns.Layerbank_Supply_iUSDC_Mode]: {
|
|
@@ -797,7 +796,7 @@ const ModeInterfaceCampaigns = {
|
|
|
797
796
|
blacklist: [],
|
|
798
797
|
forwarders: [],
|
|
799
798
|
subCampaignType: CompoundSubCampaignType.supply,
|
|
800
|
-
compFork: CompFork.
|
|
799
|
+
compFork: CompFork.LayerBank,
|
|
801
800
|
targetToken: "0xBa6e89c9cDa3d72B7D8D5B05547a29f9BdBDBaec",
|
|
802
801
|
},
|
|
803
802
|
[modeCampaigns.Layerbank_Supply_iUSDT_Mode]: {
|
|
@@ -808,7 +807,7 @@ const ModeInterfaceCampaigns = {
|
|
|
808
807
|
blacklist: [],
|
|
809
808
|
forwarders: [],
|
|
810
809
|
subCampaignType: CompoundSubCampaignType.supply,
|
|
811
|
-
compFork: CompFork.
|
|
810
|
+
compFork: CompFork.LayerBank,
|
|
812
811
|
targetToken: "0xC5b9CB1A26Fb1f9b8e26D8D357Cb950f53Df4959",
|
|
813
812
|
},
|
|
814
813
|
[modeCampaigns.Meson_Izumi_WETH_mBTC_Mode]: {
|
|
@@ -1144,12 +1143,6 @@ const ModeInterfaceCampaigns = {
|
|
|
1144
1143
|
},
|
|
1145
1144
|
};
|
|
1146
1145
|
const ZkSyncInterfaceCampaigns = {
|
|
1147
|
-
[zkSyncCampaigns.airdrop_layerswap]: {
|
|
1148
|
-
campaignType: Campaign.JSON_AIRDROP,
|
|
1149
|
-
computeChainId: ChainId.ZKSYNC,
|
|
1150
|
-
hooks: [],
|
|
1151
|
-
jsonUrl: "https://angle-blog.infura-ipfs.io/ipfs/QmZg5cJDHvzmMjAz9TCA7xLRSJHerHk4mepQeYXHpLcKme",
|
|
1152
|
-
}, // amount needs to be exactly 8504860000000000550976
|
|
1153
1146
|
[zkSyncCampaigns.airdrop_jumper]: {
|
|
1154
1147
|
campaignType: Campaign.JSON_AIRDROP,
|
|
1155
1148
|
computeChainId: ChainId.ZKSYNC,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import Elysia from "elysia";
|
|
2
|
-
export declare const ProtocolController: Elysia<"/protocols",
|
|
2
|
+
export declare const ProtocolController: Elysia<"/protocols", {
|
|
3
3
|
decorator: {};
|
|
4
4
|
store: {};
|
|
5
5
|
derive: {};
|
|
6
6
|
resolve: {};
|
|
7
7
|
}, {
|
|
8
|
-
|
|
8
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
|
9
9
|
error: {};
|
|
10
10
|
}, {
|
|
11
11
|
schema: {};
|
|
12
12
|
macro: {};
|
|
13
13
|
macroFn: {};
|
|
14
|
+
parser: {};
|
|
14
15
|
}, {
|
|
15
16
|
protocols: {
|
|
16
17
|
index: {
|
|
@@ -18,9 +19,9 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
|
18
19
|
body: unknown;
|
|
19
20
|
params: {};
|
|
20
21
|
query: {
|
|
22
|
+
items?: number | undefined;
|
|
21
23
|
name?: string | undefined;
|
|
22
24
|
id?: string | undefined;
|
|
23
|
-
items?: number | undefined;
|
|
24
25
|
tags?: string[] | undefined;
|
|
25
26
|
page?: number | undefined;
|
|
26
27
|
opportunityTag?: string | undefined;
|
|
@@ -28,13 +29,22 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
|
28
29
|
headers: unknown;
|
|
29
30
|
response: {
|
|
30
31
|
200: ({
|
|
32
|
+
description: string;
|
|
31
33
|
name: string;
|
|
32
34
|
url: string;
|
|
33
|
-
description: string;
|
|
34
35
|
id: string;
|
|
35
36
|
tags: string[];
|
|
36
37
|
icon: string;
|
|
37
38
|
} & {})[];
|
|
39
|
+
422: {
|
|
40
|
+
type: "validation";
|
|
41
|
+
on: string;
|
|
42
|
+
summary?: string;
|
|
43
|
+
message?: string;
|
|
44
|
+
found?: unknown;
|
|
45
|
+
property?: string;
|
|
46
|
+
expected?: string;
|
|
47
|
+
};
|
|
38
48
|
};
|
|
39
49
|
};
|
|
40
50
|
};
|
|
@@ -65,13 +75,22 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
|
65
75
|
headers: unknown;
|
|
66
76
|
response: {
|
|
67
77
|
200: {
|
|
78
|
+
description: string;
|
|
68
79
|
name: string;
|
|
69
80
|
url: string;
|
|
70
|
-
description: string;
|
|
71
81
|
id: string;
|
|
72
82
|
tags: string[];
|
|
73
83
|
icon: string;
|
|
74
84
|
} | null;
|
|
85
|
+
422: {
|
|
86
|
+
type: "validation";
|
|
87
|
+
on: string;
|
|
88
|
+
summary?: string;
|
|
89
|
+
message?: string;
|
|
90
|
+
found?: unknown;
|
|
91
|
+
property?: string;
|
|
92
|
+
expected?: string;
|
|
93
|
+
};
|
|
75
94
|
};
|
|
76
95
|
};
|
|
77
96
|
};
|
|
@@ -81,9 +100,9 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
|
81
100
|
":id": {
|
|
82
101
|
patch: {
|
|
83
102
|
body: {
|
|
103
|
+
description?: string | undefined;
|
|
84
104
|
name?: string | undefined;
|
|
85
105
|
url?: string | undefined;
|
|
86
|
-
description?: string | undefined;
|
|
87
106
|
icon?: string | undefined;
|
|
88
107
|
};
|
|
89
108
|
params: {
|
|
@@ -95,13 +114,22 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
|
95
114
|
};
|
|
96
115
|
response: {
|
|
97
116
|
200: {
|
|
117
|
+
description: string;
|
|
98
118
|
name: string;
|
|
99
119
|
url: string;
|
|
100
|
-
description: string;
|
|
101
120
|
id: string;
|
|
102
121
|
tags: string[];
|
|
103
122
|
icon: string;
|
|
104
123
|
};
|
|
124
|
+
422: {
|
|
125
|
+
type: "validation";
|
|
126
|
+
on: string;
|
|
127
|
+
summary?: string;
|
|
128
|
+
message?: string;
|
|
129
|
+
found?: unknown;
|
|
130
|
+
property?: string;
|
|
131
|
+
expected?: string;
|
|
132
|
+
};
|
|
105
133
|
};
|
|
106
134
|
};
|
|
107
135
|
};
|
|
@@ -111,9 +139,9 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
|
111
139
|
index: {
|
|
112
140
|
post: {
|
|
113
141
|
body: {
|
|
142
|
+
description: string;
|
|
114
143
|
name: string;
|
|
115
144
|
url: string;
|
|
116
|
-
description: string;
|
|
117
145
|
id: string;
|
|
118
146
|
tags: string[];
|
|
119
147
|
icon: string;
|
|
@@ -125,13 +153,22 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
|
125
153
|
};
|
|
126
154
|
response: {
|
|
127
155
|
200: {
|
|
156
|
+
description: string;
|
|
128
157
|
name: string;
|
|
129
158
|
url: string;
|
|
130
|
-
description: string;
|
|
131
159
|
id: string;
|
|
132
160
|
tags: string[];
|
|
133
161
|
icon: string;
|
|
134
162
|
};
|
|
163
|
+
422: {
|
|
164
|
+
type: "validation";
|
|
165
|
+
on: string;
|
|
166
|
+
summary?: string;
|
|
167
|
+
message?: string;
|
|
168
|
+
found?: unknown;
|
|
169
|
+
property?: string;
|
|
170
|
+
expected?: string;
|
|
171
|
+
};
|
|
135
172
|
};
|
|
136
173
|
};
|
|
137
174
|
};
|
|
@@ -2,42 +2,42 @@ import type { CreateProtocolModel, GetProtocolsQueryModel, UpdateProtocolModel }
|
|
|
2
2
|
export declare abstract class ProtocolRepository {
|
|
3
3
|
#private;
|
|
4
4
|
static create(data: CreateProtocolModel): Promise<{
|
|
5
|
+
description: string;
|
|
5
6
|
name: string;
|
|
6
7
|
url: string;
|
|
7
|
-
description: string;
|
|
8
8
|
id: string;
|
|
9
9
|
tags: string[];
|
|
10
10
|
icon: string;
|
|
11
11
|
}>;
|
|
12
12
|
static read(type: string): Promise<{
|
|
13
|
+
description: string;
|
|
13
14
|
name: string;
|
|
14
15
|
url: string;
|
|
15
|
-
description: string;
|
|
16
16
|
id: string;
|
|
17
17
|
tags: string[];
|
|
18
18
|
icon: string;
|
|
19
19
|
} | null>;
|
|
20
20
|
static findManyByName(name: string): Promise<{
|
|
21
|
+
description: string;
|
|
21
22
|
name: string;
|
|
22
23
|
url: string;
|
|
23
|
-
description: string;
|
|
24
24
|
id: string;
|
|
25
25
|
tags: string[];
|
|
26
26
|
icon: string;
|
|
27
27
|
}[]>;
|
|
28
28
|
static findMany(query: GetProtocolsQueryModel): Promise<{
|
|
29
|
+
description: string;
|
|
29
30
|
name: string;
|
|
30
31
|
url: string;
|
|
31
|
-
description: string;
|
|
32
32
|
id: string;
|
|
33
33
|
tags: string[];
|
|
34
34
|
icon: string;
|
|
35
35
|
}[]>;
|
|
36
36
|
static countMany(query: GetProtocolsQueryModel): Promise<number>;
|
|
37
37
|
static update(id: string, data: UpdateProtocolModel): Promise<{
|
|
38
|
+
description: string;
|
|
38
39
|
name: string;
|
|
39
40
|
url: string;
|
|
40
|
-
description: string;
|
|
41
41
|
id: string;
|
|
42
42
|
tags: string[];
|
|
43
43
|
icon: string;
|
|
@@ -7,17 +7,17 @@ export declare abstract class ProtocolService {
|
|
|
7
7
|
static getFromId(id: ProtocolId | string): Promise<Protocol["model"] | null>;
|
|
8
8
|
static getFromName(name: string): Promise<Protocol["model"] | null>;
|
|
9
9
|
static create(data: CreateProtocolModel): Promise<{
|
|
10
|
+
description: string;
|
|
10
11
|
name: string;
|
|
11
12
|
url: string;
|
|
12
|
-
description: string;
|
|
13
13
|
id: string;
|
|
14
14
|
tags: string[];
|
|
15
15
|
icon: string;
|
|
16
16
|
}>;
|
|
17
17
|
static update(id: string, data: UpdateProtocolModel): Promise<{
|
|
18
|
+
description: string;
|
|
18
19
|
name: string;
|
|
19
20
|
url: string;
|
|
20
|
-
description: string;
|
|
21
21
|
id: string;
|
|
22
22
|
tags: string[];
|
|
23
23
|
icon: string;
|