@merkl/api 1.4.21 → 1.4.23
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 +5343 -2546
- package/dist/src/eden/index.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.js.map +1 -1
- package/dist/src/engine/implementations/Ambient/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/detect.js.map +1 -1
- package/dist/src/engine/implementations/deprecated_clamm/metadata.js.map +1 -1
- package/dist/src/index.d.ts +3201 -4010
- package/dist/src/index.js.map +1 -1
- package/dist/src/libs/computeFee.d.ts +2155 -55
- package/dist/src/libs/positions/compound/index.d.ts +3 -2
- package/dist/src/libs/positions/compound/index.js.map +1 -1
- package/dist/src/libs/positions/morpho/index.js.map +1 -1
- package/dist/src/libs/positions/prepareFetch.js.map +1 -1
- package/dist/src/libs/positions/types.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +10 -10
- package/dist/src/modules/v4/carousel/carousel.controller.d.ts +838 -0
- package/dist/src/modules/v4/carousel/carousel.controller.js.map +1 -0
- package/dist/src/modules/v4/carousel/carousel.formatter.d.ts +9 -0
- package/dist/src/modules/v4/carousel/carousel.formatter.js.map +1 -0
- package/dist/src/modules/v4/carousel/carousel.model.d.ts +12 -0
- package/dist/src/modules/v4/carousel/carousel.model.js.map +1 -0
- package/dist/src/modules/v4/carousel/carousel.repository.d.ts +529 -0
- package/dist/src/modules/v4/carousel/carousel.repository.js.map +1 -0
- package/dist/src/modules/v4/carousel/carousel.service.d.ts +633 -0
- package/dist/src/modules/v4/carousel/carousel.service.js.map +1 -0
- package/dist/src/modules/v4/chain/chain.controller.d.ts +36 -37
- package/dist/src/modules/v4/chain/chain.controller.js.map +1 -1
- package/dist/src/modules/v4/chain/chain.formatter.d.ts +5 -0
- package/dist/src/modules/v4/chain/chain.formatter.js.map +1 -0
- package/dist/src/modules/v4/chain/chain.service.d.ts +16 -36
- package/dist/src/modules/v4/chain/chain.service.js.map +1 -1
- package/dist/src/modules/v4/config/config.controller.d.ts +1 -3655
- package/dist/src/modules/v4/config/config.controller.js.map +1 -1
- package/dist/src/modules/v4/ofac/ofac.controller.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +21 -21
- package/dist/src/modules/v4/payload/payload.model.d.ts +5 -4
- package/dist/src/modules/v4/payload/payload.model.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.service.js.map +1 -1
- package/dist/src/modules/v4/program/program.controller.d.ts +86 -116
- package/dist/src/modules/v4/program/program.controller.js.map +1 -1
- package/dist/src/modules/v4/program/program.formatter.d.ts +5 -0
- package/dist/src/modules/v4/program/program.formatter.js.map +1 -0
- package/dist/src/modules/v4/program/program.repository.d.ts +1 -1
- package/dist/src/modules/v4/program/program.repository.js.map +1 -1
- package/dist/src/modules/v4/program/program.service.d.ts +1 -31
- package/dist/src/modules/v4/program/program.service.js.map +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +2288 -188
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +8 -7
- package/dist/src/modules/v4/programPayload/programPayload.model.js.map +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js.map +1 -1
- package/dist/src/modules/v4/programPayload/subPayloads/aave.d.ts +58 -24
- package/dist/src/modules/v4/programPayload/subPayloads/aave.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.controller.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.formatter.d.ts +5 -0
- package/dist/src/modules/v4/protocol/protocol.formatter.js.map +1 -0
- package/dist/src/modules/v4/protocol/protocol.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +5996 -6802
- package/dist/src/modules/v4/router.js.map +1 -1
- package/dist/src/scripts/compare-configs.js.map +1 -1
- package/dist/src/utils/models.d.ts +5375 -335
- package/package.json +1 -1
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +0 -226
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.js.map +0 -1
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +0 -226
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.js.map +0 -1
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +0 -226
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.js.map +0 -1
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +0 -226
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.js.map +0 -1
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +0 -226
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.js.map +0 -1
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +0 -226
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.js.map +0 -1
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +0 -54
- package/dist/src/modules/v4/liquidity/liquidity.controller.js.map +0 -1
- package/dist/src/modules/v4/liquidity/liquidity.model.d.ts +0 -25
- package/dist/src/modules/v4/liquidity/liquidity.model.js.map +0 -1
- package/dist/src/modules/v4/liquidity/liquidity.repository.d.ts +0 -14
- package/dist/src/modules/v4/liquidity/liquidity.repository.js.map +0 -1
- package/dist/src/modules/v4/liquidity/liquidity.service.d.ts +0 -5
- package/dist/src/modules/v4/liquidity/liquidity.service.js.map +0 -1
@@ -0,0 +1,838 @@
|
|
1
|
+
import Elysia from "elysia";
|
2
|
+
export declare const CarouselController: Elysia<"/carousels", {
|
3
|
+
decorator: {};
|
4
|
+
store: {};
|
5
|
+
derive: {};
|
6
|
+
resolve: {};
|
7
|
+
}, {
|
8
|
+
typebox: {};
|
9
|
+
error: {};
|
10
|
+
}, {
|
11
|
+
schema: {};
|
12
|
+
standaloneSchema: {};
|
13
|
+
macro: {};
|
14
|
+
macroFn: {};
|
15
|
+
parser: {};
|
16
|
+
response: {};
|
17
|
+
}, {
|
18
|
+
carousels: {
|
19
|
+
get: {
|
20
|
+
body: unknown;
|
21
|
+
params: {};
|
22
|
+
query: {
|
23
|
+
page?: number | undefined;
|
24
|
+
items?: number | undefined;
|
25
|
+
};
|
26
|
+
headers: unknown;
|
27
|
+
response: {
|
28
|
+
200: {
|
29
|
+
logoUrls: string[];
|
30
|
+
backgroundLightColor: string;
|
31
|
+
backgroundDarkColor: string;
|
32
|
+
redirectUrl: string;
|
33
|
+
rank: number;
|
34
|
+
id: string;
|
35
|
+
name?: string | undefined;
|
36
|
+
description?: string | undefined;
|
37
|
+
opportunity?: {
|
38
|
+
id: string;
|
39
|
+
type: string;
|
40
|
+
identifier: string;
|
41
|
+
name?: string | undefined;
|
42
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
43
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "SWAP";
|
44
|
+
description?: string | undefined;
|
45
|
+
howToSteps?: string[] | undefined;
|
46
|
+
protocols?: string[] | undefined;
|
47
|
+
mainProtocol?: string | undefined;
|
48
|
+
depositUrl?: string | undefined;
|
49
|
+
explorerAddress?: string | undefined;
|
50
|
+
tags?: string[] | undefined;
|
51
|
+
chainId: number;
|
52
|
+
apr?: number | undefined;
|
53
|
+
dailyRewards?: number | undefined;
|
54
|
+
tvl?: number | undefined;
|
55
|
+
liveCampaigns?: number | undefined;
|
56
|
+
} | undefined;
|
57
|
+
program?: {
|
58
|
+
id: string;
|
59
|
+
name: string;
|
60
|
+
slug?: string | undefined;
|
61
|
+
description: string;
|
62
|
+
icon: string;
|
63
|
+
} | undefined;
|
64
|
+
chain?: {
|
65
|
+
id: number;
|
66
|
+
name: string;
|
67
|
+
icon: string;
|
68
|
+
liveCampaigns: number;
|
69
|
+
endOfDisputePeriod: number;
|
70
|
+
explorers?: {
|
71
|
+
type: "BLOCKSCOUT" | "ETHERSCAN";
|
72
|
+
url: string;
|
73
|
+
chainId: number;
|
74
|
+
}[] | undefined;
|
75
|
+
} | undefined;
|
76
|
+
protocol?: {
|
77
|
+
id: string;
|
78
|
+
name: string;
|
79
|
+
icon: string;
|
80
|
+
tags: string[];
|
81
|
+
description: string;
|
82
|
+
url: string;
|
83
|
+
dailyRewards?: number | undefined;
|
84
|
+
numberOfLiveCampaigns?: number | undefined;
|
85
|
+
opportunityLiveTags?: string[] | undefined;
|
86
|
+
} | undefined;
|
87
|
+
relationType: "CHAIN" | "CUSTOM" | "OPPORTUNITY" | "PROGRAM" | "PROTOCOL";
|
88
|
+
amount?: string | undefined;
|
89
|
+
maxApr?: number | undefined;
|
90
|
+
campaignsCount?: number | undefined;
|
91
|
+
}[];
|
92
|
+
422: {
|
93
|
+
type: "validation";
|
94
|
+
on: string;
|
95
|
+
summary?: string | undefined;
|
96
|
+
message?: string | undefined;
|
97
|
+
found?: unknown;
|
98
|
+
property?: string | undefined;
|
99
|
+
expected?: string | undefined;
|
100
|
+
};
|
101
|
+
};
|
102
|
+
};
|
103
|
+
};
|
104
|
+
} & {
|
105
|
+
carousels: {
|
106
|
+
":id": {
|
107
|
+
get: {
|
108
|
+
body: unknown;
|
109
|
+
params: {
|
110
|
+
id: string;
|
111
|
+
};
|
112
|
+
query: unknown;
|
113
|
+
headers: unknown;
|
114
|
+
response: {
|
115
|
+
200: {
|
116
|
+
logoUrls: string[];
|
117
|
+
backgroundLightColor: string;
|
118
|
+
backgroundDarkColor: string;
|
119
|
+
redirectUrl: string;
|
120
|
+
rank: number;
|
121
|
+
id: string;
|
122
|
+
name?: string | undefined;
|
123
|
+
description?: string | undefined;
|
124
|
+
opportunity?: {
|
125
|
+
id: string;
|
126
|
+
type: string;
|
127
|
+
identifier: string;
|
128
|
+
name?: string | undefined;
|
129
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
130
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "SWAP";
|
131
|
+
description?: string | undefined;
|
132
|
+
howToSteps?: string[] | undefined;
|
133
|
+
protocols?: string[] | undefined;
|
134
|
+
mainProtocol?: string | undefined;
|
135
|
+
depositUrl?: string | undefined;
|
136
|
+
explorerAddress?: string | undefined;
|
137
|
+
tags?: string[] | undefined;
|
138
|
+
chainId: number;
|
139
|
+
apr?: number | undefined;
|
140
|
+
dailyRewards?: number | undefined;
|
141
|
+
tvl?: number | undefined;
|
142
|
+
liveCampaigns?: number | undefined;
|
143
|
+
} | undefined;
|
144
|
+
program?: {
|
145
|
+
id: string;
|
146
|
+
name: string;
|
147
|
+
slug?: string | undefined;
|
148
|
+
description: string;
|
149
|
+
icon: string;
|
150
|
+
} | undefined;
|
151
|
+
chain?: {
|
152
|
+
id: number;
|
153
|
+
name: string;
|
154
|
+
icon: string;
|
155
|
+
liveCampaigns: number;
|
156
|
+
endOfDisputePeriod: number;
|
157
|
+
explorers?: {
|
158
|
+
type: "BLOCKSCOUT" | "ETHERSCAN";
|
159
|
+
url: string;
|
160
|
+
chainId: number;
|
161
|
+
}[] | undefined;
|
162
|
+
} | undefined;
|
163
|
+
protocol?: {
|
164
|
+
id: string;
|
165
|
+
name: string;
|
166
|
+
icon: string;
|
167
|
+
tags: string[];
|
168
|
+
description: string;
|
169
|
+
url: string;
|
170
|
+
dailyRewards?: number | undefined;
|
171
|
+
numberOfLiveCampaigns?: number | undefined;
|
172
|
+
opportunityLiveTags?: string[] | undefined;
|
173
|
+
} | undefined;
|
174
|
+
relationType: "CHAIN" | "CUSTOM" | "OPPORTUNITY" | "PROGRAM" | "PROTOCOL";
|
175
|
+
amount?: string | undefined;
|
176
|
+
maxApr?: number | undefined;
|
177
|
+
campaignsCount?: number | undefined;
|
178
|
+
};
|
179
|
+
422: {
|
180
|
+
type: "validation";
|
181
|
+
on: string;
|
182
|
+
summary?: string | undefined;
|
183
|
+
message?: string | undefined;
|
184
|
+
found?: unknown;
|
185
|
+
property?: string | undefined;
|
186
|
+
expected?: string | undefined;
|
187
|
+
};
|
188
|
+
};
|
189
|
+
};
|
190
|
+
};
|
191
|
+
};
|
192
|
+
} & {
|
193
|
+
carousels: {
|
194
|
+
":id": {
|
195
|
+
raw: {
|
196
|
+
get: {
|
197
|
+
body: unknown;
|
198
|
+
params: {
|
199
|
+
id: string;
|
200
|
+
};
|
201
|
+
query: unknown;
|
202
|
+
headers: unknown;
|
203
|
+
response: {
|
204
|
+
200: {
|
205
|
+
Chain: ({
|
206
|
+
Explorer: {
|
207
|
+
id: string;
|
208
|
+
type: import("@package/databases").ExplorerType;
|
209
|
+
url: string;
|
210
|
+
chainId: number;
|
211
|
+
}[];
|
212
|
+
} & {
|
213
|
+
id: number;
|
214
|
+
name: string;
|
215
|
+
icon: string;
|
216
|
+
liveCampaigns: number;
|
217
|
+
endOfDisputePeriod: number;
|
218
|
+
}) | null;
|
219
|
+
Opportunity: ({
|
220
|
+
ActivePrograms: {
|
221
|
+
id: string;
|
222
|
+
slug: string | null;
|
223
|
+
name: string;
|
224
|
+
description: string;
|
225
|
+
icon: string;
|
226
|
+
}[];
|
227
|
+
Chain: {
|
228
|
+
id: number;
|
229
|
+
name: string;
|
230
|
+
icon: string;
|
231
|
+
liveCampaigns: number;
|
232
|
+
endOfDisputePeriod: number;
|
233
|
+
};
|
234
|
+
MainProtocol: {
|
235
|
+
id: string;
|
236
|
+
tags: string[];
|
237
|
+
name: string;
|
238
|
+
description: string;
|
239
|
+
url: string;
|
240
|
+
icon: string;
|
241
|
+
} | null;
|
242
|
+
Protocols: {
|
243
|
+
id: string;
|
244
|
+
tags: string[];
|
245
|
+
name: string;
|
246
|
+
description: string;
|
247
|
+
url: string;
|
248
|
+
icon: string;
|
249
|
+
}[];
|
250
|
+
Tokens: {
|
251
|
+
id: string;
|
252
|
+
name: string | null;
|
253
|
+
chainId: number;
|
254
|
+
address: string;
|
255
|
+
decimals: number;
|
256
|
+
symbol: string;
|
257
|
+
displaySymbol: string;
|
258
|
+
icon: string;
|
259
|
+
verified: boolean;
|
260
|
+
isTest: boolean;
|
261
|
+
type: import("@package/databases").TokenType;
|
262
|
+
isNative: boolean;
|
263
|
+
price: number | null;
|
264
|
+
updatedAt: number | null;
|
265
|
+
priceSource: string | null;
|
266
|
+
}[];
|
267
|
+
} & {
|
268
|
+
id: string;
|
269
|
+
chainId: number;
|
270
|
+
type: string;
|
271
|
+
identifier: string;
|
272
|
+
name: string;
|
273
|
+
description: string;
|
274
|
+
howToSteps: string[];
|
275
|
+
depositUrl: string | null;
|
276
|
+
explorerAddress: string | null;
|
277
|
+
status: import("@package/databases").Status;
|
278
|
+
action: import("@package/databases").OpportunityAction;
|
279
|
+
mainProtocolId: string | null;
|
280
|
+
tvl: number;
|
281
|
+
apr: number;
|
282
|
+
maxApr: number | null;
|
283
|
+
dailyRewards: number;
|
284
|
+
tags: string[];
|
285
|
+
lastCampaignCreatedAt: Date;
|
286
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
287
|
+
liveCampaigns: number;
|
288
|
+
}) | null;
|
289
|
+
Program: ({
|
290
|
+
campaignGroup: ({
|
291
|
+
campaigns: {
|
292
|
+
id: string;
|
293
|
+
computeChainId: number;
|
294
|
+
distributionChainId: number;
|
295
|
+
campaignId: string;
|
296
|
+
type: string;
|
297
|
+
distributionType: import("@package/databases").DistributionType;
|
298
|
+
subType: number | null;
|
299
|
+
rewardTokenId: string;
|
300
|
+
amount: string;
|
301
|
+
opportunityId: string;
|
302
|
+
startTimestamp: bigint;
|
303
|
+
endTimestamp: bigint;
|
304
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
305
|
+
description: string | null;
|
306
|
+
dailyRewards: number;
|
307
|
+
apr: number;
|
308
|
+
creatorAddress: string;
|
309
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
310
|
+
createdAt: Date;
|
311
|
+
rootCampaignId: string | null;
|
312
|
+
parentCampaignId: string | null;
|
313
|
+
}[];
|
314
|
+
} & {
|
315
|
+
id: string;
|
316
|
+
slug: string | null;
|
317
|
+
programId: string | null;
|
318
|
+
})[];
|
319
|
+
} & {
|
320
|
+
id: string;
|
321
|
+
slug: string | null;
|
322
|
+
name: string;
|
323
|
+
description: string;
|
324
|
+
icon: string;
|
325
|
+
}) | null;
|
326
|
+
Protocol: {
|
327
|
+
id: string;
|
328
|
+
tags: string[];
|
329
|
+
name: string;
|
330
|
+
description: string;
|
331
|
+
url: string;
|
332
|
+
icon: string;
|
333
|
+
} | null;
|
334
|
+
} & {
|
335
|
+
id: string;
|
336
|
+
name: string | null;
|
337
|
+
description: string | null;
|
338
|
+
logoUrls: string[];
|
339
|
+
backgroundLightColor: string | null;
|
340
|
+
backgroundDarkColor: string | null;
|
341
|
+
redirectUrl: string | null;
|
342
|
+
rank: number;
|
343
|
+
amount: string | null;
|
344
|
+
campaignsCount: number | null;
|
345
|
+
maxApr: number | null;
|
346
|
+
relationType: import("@package/databases").CarouselType;
|
347
|
+
programId: string | null;
|
348
|
+
opportunityId: string | null;
|
349
|
+
chainId: number | null;
|
350
|
+
protocolId: string | null;
|
351
|
+
};
|
352
|
+
422: {
|
353
|
+
type: "validation";
|
354
|
+
on: string;
|
355
|
+
summary?: string | undefined;
|
356
|
+
message?: string | undefined;
|
357
|
+
found?: unknown;
|
358
|
+
property?: string | undefined;
|
359
|
+
expected?: string | undefined;
|
360
|
+
};
|
361
|
+
};
|
362
|
+
};
|
363
|
+
};
|
364
|
+
};
|
365
|
+
};
|
366
|
+
} & {
|
367
|
+
carousels: {
|
368
|
+
preview: {
|
369
|
+
post: {
|
370
|
+
body: {
|
371
|
+
relationType: import("@package/databases").CarouselType;
|
372
|
+
relationId: string;
|
373
|
+
backgroundDarkColor: string;
|
374
|
+
backgroundLightColor: string;
|
375
|
+
name?: string | undefined;
|
376
|
+
description?: string | undefined;
|
377
|
+
logoUrls?: string[] | undefined;
|
378
|
+
redirectUrl?: string | undefined;
|
379
|
+
rank?: number | undefined;
|
380
|
+
maxApr?: number | undefined;
|
381
|
+
amount?: string | undefined;
|
382
|
+
campaignsCount?: number | undefined;
|
383
|
+
} | {
|
384
|
+
name: string;
|
385
|
+
description: string;
|
386
|
+
logoUrls: string[];
|
387
|
+
backgroundLightColor: string;
|
388
|
+
backgroundDarkColor: string;
|
389
|
+
redirectUrl: string;
|
390
|
+
rank: number;
|
391
|
+
amount: string;
|
392
|
+
maxApr: number;
|
393
|
+
campaignsCount: number;
|
394
|
+
relationType: "CUSTOM";
|
395
|
+
};
|
396
|
+
params: {};
|
397
|
+
query: unknown;
|
398
|
+
headers: unknown;
|
399
|
+
response: {
|
400
|
+
200: {
|
401
|
+
logoUrls: string[];
|
402
|
+
backgroundLightColor: string;
|
403
|
+
backgroundDarkColor: string;
|
404
|
+
redirectUrl: string;
|
405
|
+
rank: number;
|
406
|
+
id: string;
|
407
|
+
name?: string | undefined;
|
408
|
+
description?: string | undefined;
|
409
|
+
opportunity?: {
|
410
|
+
id: string;
|
411
|
+
type: string;
|
412
|
+
identifier: string;
|
413
|
+
name?: string | undefined;
|
414
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
415
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "SWAP";
|
416
|
+
description?: string | undefined;
|
417
|
+
howToSteps?: string[] | undefined;
|
418
|
+
protocols?: string[] | undefined;
|
419
|
+
mainProtocol?: string | undefined;
|
420
|
+
depositUrl?: string | undefined;
|
421
|
+
explorerAddress?: string | undefined;
|
422
|
+
tags?: string[] | undefined;
|
423
|
+
chainId: number;
|
424
|
+
apr?: number | undefined;
|
425
|
+
dailyRewards?: number | undefined;
|
426
|
+
tvl?: number | undefined;
|
427
|
+
liveCampaigns?: number | undefined;
|
428
|
+
} | undefined;
|
429
|
+
program?: {
|
430
|
+
id: string;
|
431
|
+
name: string;
|
432
|
+
slug?: string | undefined;
|
433
|
+
description: string;
|
434
|
+
icon: string;
|
435
|
+
} | undefined;
|
436
|
+
chain?: {
|
437
|
+
id: number;
|
438
|
+
name: string;
|
439
|
+
icon: string;
|
440
|
+
liveCampaigns: number;
|
441
|
+
endOfDisputePeriod: number;
|
442
|
+
explorers?: {
|
443
|
+
type: "BLOCKSCOUT" | "ETHERSCAN";
|
444
|
+
url: string;
|
445
|
+
chainId: number;
|
446
|
+
}[] | undefined;
|
447
|
+
} | undefined;
|
448
|
+
protocol?: {
|
449
|
+
id: string;
|
450
|
+
name: string;
|
451
|
+
icon: string;
|
452
|
+
tags: string[];
|
453
|
+
description: string;
|
454
|
+
url: string;
|
455
|
+
dailyRewards?: number | undefined;
|
456
|
+
numberOfLiveCampaigns?: number | undefined;
|
457
|
+
opportunityLiveTags?: string[] | undefined;
|
458
|
+
} | undefined;
|
459
|
+
relationType: "CHAIN" | "CUSTOM" | "OPPORTUNITY" | "PROGRAM" | "PROTOCOL";
|
460
|
+
amount?: string | undefined;
|
461
|
+
maxApr?: number | undefined;
|
462
|
+
campaignsCount?: number | undefined;
|
463
|
+
};
|
464
|
+
422: {
|
465
|
+
type: "validation";
|
466
|
+
on: string;
|
467
|
+
summary?: string | undefined;
|
468
|
+
message?: string | undefined;
|
469
|
+
found?: unknown;
|
470
|
+
property?: string | undefined;
|
471
|
+
expected?: string | undefined;
|
472
|
+
};
|
473
|
+
};
|
474
|
+
};
|
475
|
+
};
|
476
|
+
};
|
477
|
+
} & {
|
478
|
+
carousels: {
|
479
|
+
post: {
|
480
|
+
body: {
|
481
|
+
relationType: import("@package/databases").CarouselType;
|
482
|
+
relationId: string;
|
483
|
+
backgroundDarkColor: string;
|
484
|
+
backgroundLightColor: string;
|
485
|
+
name?: string | undefined;
|
486
|
+
description?: string | undefined;
|
487
|
+
logoUrls?: string[] | undefined;
|
488
|
+
redirectUrl?: string | undefined;
|
489
|
+
rank?: number | undefined;
|
490
|
+
maxApr?: number | undefined;
|
491
|
+
amount?: string | undefined;
|
492
|
+
campaignsCount?: number | undefined;
|
493
|
+
} | {
|
494
|
+
name: string;
|
495
|
+
description: string;
|
496
|
+
logoUrls: string[];
|
497
|
+
backgroundLightColor: string;
|
498
|
+
backgroundDarkColor: string;
|
499
|
+
redirectUrl: string;
|
500
|
+
rank: number;
|
501
|
+
amount: string;
|
502
|
+
maxApr: number;
|
503
|
+
campaignsCount: number;
|
504
|
+
relationType: "CUSTOM";
|
505
|
+
};
|
506
|
+
params: {};
|
507
|
+
query: unknown;
|
508
|
+
headers: {
|
509
|
+
authorization: string;
|
510
|
+
};
|
511
|
+
response: {
|
512
|
+
200: {
|
513
|
+
Chain: ({
|
514
|
+
Explorer: {
|
515
|
+
id: string;
|
516
|
+
type: import("@package/databases").ExplorerType;
|
517
|
+
url: string;
|
518
|
+
chainId: number;
|
519
|
+
}[];
|
520
|
+
} & {
|
521
|
+
id: number;
|
522
|
+
name: string;
|
523
|
+
icon: string;
|
524
|
+
liveCampaigns: number;
|
525
|
+
endOfDisputePeriod: number;
|
526
|
+
}) | null;
|
527
|
+
Opportunity: ({
|
528
|
+
ActivePrograms: {
|
529
|
+
id: string;
|
530
|
+
slug: string | null;
|
531
|
+
name: string;
|
532
|
+
description: string;
|
533
|
+
icon: string;
|
534
|
+
}[];
|
535
|
+
Chain: {
|
536
|
+
id: number;
|
537
|
+
name: string;
|
538
|
+
icon: string;
|
539
|
+
liveCampaigns: number;
|
540
|
+
endOfDisputePeriod: number;
|
541
|
+
};
|
542
|
+
MainProtocol: {
|
543
|
+
id: string;
|
544
|
+
tags: string[];
|
545
|
+
name: string;
|
546
|
+
description: string;
|
547
|
+
url: string;
|
548
|
+
icon: string;
|
549
|
+
} | null;
|
550
|
+
Protocols: {
|
551
|
+
id: string;
|
552
|
+
tags: string[];
|
553
|
+
name: string;
|
554
|
+
description: string;
|
555
|
+
url: string;
|
556
|
+
icon: string;
|
557
|
+
}[];
|
558
|
+
Tokens: {
|
559
|
+
id: string;
|
560
|
+
name: string | null;
|
561
|
+
chainId: number;
|
562
|
+
address: string;
|
563
|
+
decimals: number;
|
564
|
+
symbol: string;
|
565
|
+
displaySymbol: string;
|
566
|
+
icon: string;
|
567
|
+
verified: boolean;
|
568
|
+
isTest: boolean;
|
569
|
+
type: import("@package/databases").TokenType;
|
570
|
+
isNative: boolean;
|
571
|
+
price: number | null;
|
572
|
+
updatedAt: number | null;
|
573
|
+
priceSource: string | null;
|
574
|
+
}[];
|
575
|
+
} & {
|
576
|
+
id: string;
|
577
|
+
chainId: number;
|
578
|
+
type: string;
|
579
|
+
identifier: string;
|
580
|
+
name: string;
|
581
|
+
description: string;
|
582
|
+
howToSteps: string[];
|
583
|
+
depositUrl: string | null;
|
584
|
+
explorerAddress: string | null;
|
585
|
+
status: import("@package/databases").Status;
|
586
|
+
action: import("@package/databases").OpportunityAction;
|
587
|
+
mainProtocolId: string | null;
|
588
|
+
tvl: number;
|
589
|
+
apr: number;
|
590
|
+
maxApr: number | null;
|
591
|
+
dailyRewards: number;
|
592
|
+
tags: string[];
|
593
|
+
lastCampaignCreatedAt: Date;
|
594
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
595
|
+
liveCampaigns: number;
|
596
|
+
}) | null;
|
597
|
+
Program: ({
|
598
|
+
campaignGroup: ({
|
599
|
+
campaigns: {
|
600
|
+
id: string;
|
601
|
+
computeChainId: number;
|
602
|
+
distributionChainId: number;
|
603
|
+
campaignId: string;
|
604
|
+
type: string;
|
605
|
+
distributionType: import("@package/databases").DistributionType;
|
606
|
+
subType: number | null;
|
607
|
+
rewardTokenId: string;
|
608
|
+
amount: string;
|
609
|
+
opportunityId: string;
|
610
|
+
startTimestamp: bigint;
|
611
|
+
endTimestamp: bigint;
|
612
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
613
|
+
description: string | null;
|
614
|
+
dailyRewards: number;
|
615
|
+
apr: number;
|
616
|
+
creatorAddress: string;
|
617
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
618
|
+
createdAt: Date;
|
619
|
+
rootCampaignId: string | null;
|
620
|
+
parentCampaignId: string | null;
|
621
|
+
}[];
|
622
|
+
} & {
|
623
|
+
id: string;
|
624
|
+
slug: string | null;
|
625
|
+
programId: string | null;
|
626
|
+
})[];
|
627
|
+
} & {
|
628
|
+
id: string;
|
629
|
+
slug: string | null;
|
630
|
+
name: string;
|
631
|
+
description: string;
|
632
|
+
icon: string;
|
633
|
+
}) | null;
|
634
|
+
Protocol: {
|
635
|
+
id: string;
|
636
|
+
tags: string[];
|
637
|
+
name: string;
|
638
|
+
description: string;
|
639
|
+
url: string;
|
640
|
+
icon: string;
|
641
|
+
} | null;
|
642
|
+
} & {
|
643
|
+
id: string;
|
644
|
+
name: string | null;
|
645
|
+
description: string | null;
|
646
|
+
logoUrls: string[];
|
647
|
+
backgroundLightColor: string | null;
|
648
|
+
backgroundDarkColor: string | null;
|
649
|
+
redirectUrl: string | null;
|
650
|
+
rank: number;
|
651
|
+
amount: string | null;
|
652
|
+
campaignsCount: number | null;
|
653
|
+
maxApr: number | null;
|
654
|
+
relationType: import("@package/databases").CarouselType;
|
655
|
+
programId: string | null;
|
656
|
+
opportunityId: string | null;
|
657
|
+
chainId: number | null;
|
658
|
+
protocolId: string | null;
|
659
|
+
};
|
660
|
+
422: {
|
661
|
+
type: "validation";
|
662
|
+
on: string;
|
663
|
+
summary?: string | undefined;
|
664
|
+
message?: string | undefined;
|
665
|
+
found?: unknown;
|
666
|
+
property?: string | undefined;
|
667
|
+
expected?: string | undefined;
|
668
|
+
};
|
669
|
+
};
|
670
|
+
};
|
671
|
+
};
|
672
|
+
} & {
|
673
|
+
carousels: {
|
674
|
+
reorder: {
|
675
|
+
put: {
|
676
|
+
body: {
|
677
|
+
id: string;
|
678
|
+
rank: number;
|
679
|
+
}[];
|
680
|
+
params: {};
|
681
|
+
query: unknown;
|
682
|
+
headers: {
|
683
|
+
authorization: string;
|
684
|
+
};
|
685
|
+
response: {
|
686
|
+
200: {
|
687
|
+
id: string;
|
688
|
+
name: string | null;
|
689
|
+
description: string | null;
|
690
|
+
logoUrls: string[];
|
691
|
+
backgroundLightColor: string | null;
|
692
|
+
backgroundDarkColor: string | null;
|
693
|
+
redirectUrl: string | null;
|
694
|
+
rank: number;
|
695
|
+
amount: string | null;
|
696
|
+
campaignsCount: number | null;
|
697
|
+
maxApr: number | null;
|
698
|
+
relationType: import("@package/databases").CarouselType;
|
699
|
+
programId: string | null;
|
700
|
+
opportunityId: string | null;
|
701
|
+
chainId: number | null;
|
702
|
+
protocolId: string | null;
|
703
|
+
}[];
|
704
|
+
422: {
|
705
|
+
type: "validation";
|
706
|
+
on: string;
|
707
|
+
summary?: string | undefined;
|
708
|
+
message?: string | undefined;
|
709
|
+
found?: unknown;
|
710
|
+
property?: string | undefined;
|
711
|
+
expected?: string | undefined;
|
712
|
+
};
|
713
|
+
};
|
714
|
+
};
|
715
|
+
};
|
716
|
+
};
|
717
|
+
} & {
|
718
|
+
carousels: {
|
719
|
+
":id": {
|
720
|
+
put: {
|
721
|
+
body: {
|
722
|
+
id: string;
|
723
|
+
name?: string | undefined;
|
724
|
+
description?: string | undefined;
|
725
|
+
logoUrls?: string[] | undefined;
|
726
|
+
backgroundLightColor?: string | undefined;
|
727
|
+
backgroundDarkColor?: string | undefined;
|
728
|
+
redirectUrl?: string | undefined;
|
729
|
+
rank?: number | undefined;
|
730
|
+
maxApr?: number | undefined;
|
731
|
+
amount?: string | undefined;
|
732
|
+
campaignsCount?: number | undefined;
|
733
|
+
};
|
734
|
+
params: {
|
735
|
+
id: string;
|
736
|
+
};
|
737
|
+
query: unknown;
|
738
|
+
headers: {
|
739
|
+
authorization: string;
|
740
|
+
};
|
741
|
+
response: {
|
742
|
+
200: {
|
743
|
+
id: string;
|
744
|
+
name: string | null;
|
745
|
+
description: string | null;
|
746
|
+
logoUrls: string[];
|
747
|
+
backgroundLightColor: string | null;
|
748
|
+
backgroundDarkColor: string | null;
|
749
|
+
redirectUrl: string | null;
|
750
|
+
rank: number;
|
751
|
+
amount: string | null;
|
752
|
+
campaignsCount: number | null;
|
753
|
+
maxApr: number | null;
|
754
|
+
relationType: import("@package/databases").CarouselType;
|
755
|
+
programId: string | null;
|
756
|
+
opportunityId: string | null;
|
757
|
+
chainId: number | null;
|
758
|
+
protocolId: string | null;
|
759
|
+
};
|
760
|
+
422: {
|
761
|
+
type: "validation";
|
762
|
+
on: string;
|
763
|
+
summary?: string | undefined;
|
764
|
+
message?: string | undefined;
|
765
|
+
found?: unknown;
|
766
|
+
property?: string | undefined;
|
767
|
+
expected?: string | undefined;
|
768
|
+
};
|
769
|
+
};
|
770
|
+
};
|
771
|
+
};
|
772
|
+
};
|
773
|
+
} & {
|
774
|
+
carousels: {
|
775
|
+
":id": {
|
776
|
+
delete: {
|
777
|
+
body: unknown;
|
778
|
+
params: {
|
779
|
+
id: string;
|
780
|
+
};
|
781
|
+
query: unknown;
|
782
|
+
headers: {
|
783
|
+
authorization: string;
|
784
|
+
};
|
785
|
+
response: {
|
786
|
+
200: {
|
787
|
+
id: string;
|
788
|
+
name: string | null;
|
789
|
+
description: string | null;
|
790
|
+
logoUrls: string[];
|
791
|
+
backgroundLightColor: string | null;
|
792
|
+
backgroundDarkColor: string | null;
|
793
|
+
redirectUrl: string | null;
|
794
|
+
rank: number;
|
795
|
+
amount: string | null;
|
796
|
+
campaignsCount: number | null;
|
797
|
+
maxApr: number | null;
|
798
|
+
relationType: import("@package/databases").CarouselType;
|
799
|
+
programId: string | null;
|
800
|
+
opportunityId: string | null;
|
801
|
+
chainId: number | null;
|
802
|
+
protocolId: string | null;
|
803
|
+
};
|
804
|
+
422: {
|
805
|
+
type: "validation";
|
806
|
+
on: string;
|
807
|
+
summary?: string | undefined;
|
808
|
+
message?: string | undefined;
|
809
|
+
found?: unknown;
|
810
|
+
property?: string | undefined;
|
811
|
+
expected?: string | undefined;
|
812
|
+
};
|
813
|
+
};
|
814
|
+
};
|
815
|
+
};
|
816
|
+
};
|
817
|
+
}, {
|
818
|
+
derive: {};
|
819
|
+
resolve: {};
|
820
|
+
schema: {};
|
821
|
+
standaloneSchema: {};
|
822
|
+
response: {};
|
823
|
+
}, {
|
824
|
+
derive: {};
|
825
|
+
resolve: {};
|
826
|
+
schema: {
|
827
|
+
body: unknown;
|
828
|
+
headers: {
|
829
|
+
authorization: string;
|
830
|
+
};
|
831
|
+
query: unknown;
|
832
|
+
params: {};
|
833
|
+
cookie: unknown;
|
834
|
+
response: unknown;
|
835
|
+
};
|
836
|
+
standaloneSchema: {};
|
837
|
+
response: {};
|
838
|
+
}>;
|