@merkl/api 0.20.1 → 0.20.2
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 +2314 -949
- package/dist/src/index.d.ts +370 -97
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +370 -97
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +2 -0
- package/dist/src/modules/v4/router.d.ts +370 -97
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -149,44 +149,136 @@ export declare const v4: Elysia<"/v4", false, {
|
|
149
149
|
};
|
150
150
|
headers: unknown;
|
151
151
|
response: {
|
152
|
-
200: {
|
153
|
-
|
154
|
-
|
152
|
+
200: ({
|
153
|
+
protocol?: {
|
154
|
+
id: string;
|
155
|
+
name: string;
|
156
|
+
url: string;
|
157
|
+
description: string;
|
158
|
+
tags: string[];
|
159
|
+
icon: string;
|
160
|
+
} | null | undefined;
|
161
|
+
depositUrl?: string | undefined;
|
162
|
+
explorerAddress?: string | undefined;
|
163
|
+
aprRecord?: {
|
164
|
+
timestamp: string | bigint;
|
155
165
|
cumulated: number;
|
156
|
-
timestamp: bigint;
|
157
166
|
breakdowns: {
|
158
167
|
id: number;
|
159
|
-
type:
|
160
|
-
uuid: string;
|
168
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
161
169
|
identifier: string;
|
162
170
|
value: number;
|
163
171
|
aprRecordId: string;
|
164
172
|
}[];
|
165
|
-
};
|
166
|
-
tvlRecord
|
167
|
-
id: string;
|
173
|
+
} | undefined;
|
174
|
+
tvlRecord?: {
|
168
175
|
total: number;
|
169
|
-
timestamp: bigint;
|
176
|
+
timestamp: string | bigint;
|
170
177
|
breakdowns: {
|
171
178
|
id: number;
|
172
|
-
type:
|
173
|
-
uuid: string;
|
179
|
+
type: "TOKEN" | "PROTOCOL";
|
174
180
|
identifier: string;
|
175
181
|
value: number;
|
176
182
|
tvlRecordId: string;
|
177
183
|
}[];
|
178
|
-
};
|
179
|
-
rewardsRecord
|
184
|
+
} | undefined;
|
185
|
+
rewardsRecord?: {
|
180
186
|
id: string;
|
181
187
|
total: number;
|
182
|
-
timestamp: bigint;
|
188
|
+
timestamp: string | bigint;
|
183
189
|
breakdowns: {
|
184
190
|
id: number;
|
185
|
-
|
191
|
+
token: {
|
192
|
+
price?: number | null | undefined;
|
193
|
+
symbol: string;
|
194
|
+
id: string;
|
195
|
+
name: string | null;
|
196
|
+
icon: string;
|
197
|
+
address: string;
|
198
|
+
chainId: number;
|
199
|
+
decimals: number;
|
200
|
+
verified: boolean;
|
201
|
+
isTest: boolean;
|
202
|
+
};
|
186
203
|
value: number;
|
187
204
|
campaignId: string;
|
205
|
+
amount: string | bigint;
|
188
206
|
dailyRewardsRecordId: string;
|
207
|
+
}[];
|
208
|
+
} | undefined;
|
209
|
+
id: string;
|
210
|
+
name: string;
|
211
|
+
type: string;
|
212
|
+
status: string;
|
213
|
+
tokens: {
|
214
|
+
price?: number | null | undefined;
|
215
|
+
symbol: string;
|
216
|
+
id: string;
|
217
|
+
name: string | null;
|
218
|
+
icon: string;
|
219
|
+
address: string;
|
220
|
+
chainId: number;
|
221
|
+
decimals: number;
|
222
|
+
verified: boolean;
|
223
|
+
isTest: boolean;
|
224
|
+
}[];
|
225
|
+
tags: string[];
|
226
|
+
identifier: string;
|
227
|
+
chain: {
|
228
|
+
id: number;
|
229
|
+
name: string;
|
230
|
+
icon: string;
|
231
|
+
};
|
232
|
+
action: string;
|
233
|
+
chainId: number;
|
234
|
+
tvl: number;
|
235
|
+
apr: number;
|
236
|
+
dailyRewards: number;
|
237
|
+
} | null)[];
|
238
|
+
} | {
|
239
|
+
200: never;
|
240
|
+
} | {
|
241
|
+
200: (Response | ({
|
242
|
+
protocol?: {
|
243
|
+
id: string;
|
244
|
+
name: string;
|
245
|
+
url: string;
|
246
|
+
description: string;
|
247
|
+
tags: string[];
|
248
|
+
icon: string;
|
249
|
+
} | null | undefined;
|
250
|
+
depositUrl?: string | undefined;
|
251
|
+
explorerAddress?: string | undefined;
|
252
|
+
aprRecord?: {
|
253
|
+
timestamp: string | bigint;
|
254
|
+
cumulated: number;
|
255
|
+
breakdowns: {
|
256
|
+
id: number;
|
257
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
258
|
+
identifier: string;
|
259
|
+
value: number;
|
260
|
+
aprRecordId: string;
|
261
|
+
}[];
|
262
|
+
} | undefined;
|
263
|
+
tvlRecord?: {
|
264
|
+
total: number;
|
265
|
+
timestamp: string | bigint;
|
266
|
+
breakdowns: {
|
267
|
+
id: number;
|
268
|
+
type: "TOKEN" | "PROTOCOL";
|
269
|
+
identifier: string;
|
270
|
+
value: number;
|
271
|
+
tvlRecordId: string;
|
272
|
+
}[];
|
273
|
+
} | undefined;
|
274
|
+
rewardsRecord?: {
|
275
|
+
id: string;
|
276
|
+
total: number;
|
277
|
+
timestamp: string | bigint;
|
278
|
+
breakdowns: {
|
279
|
+
id: number;
|
189
280
|
token: {
|
281
|
+
price?: number | null | undefined;
|
190
282
|
symbol: string;
|
191
283
|
id: string;
|
192
284
|
name: string | null;
|
@@ -194,26 +286,107 @@ export declare const v4: Elysia<"/v4", false, {
|
|
194
286
|
address: string;
|
195
287
|
chainId: number;
|
196
288
|
decimals: number;
|
197
|
-
displaySymbol: string;
|
198
289
|
verified: boolean;
|
199
290
|
isTest: boolean;
|
200
|
-
isPoint: boolean;
|
201
|
-
isNative: boolean;
|
202
|
-
price: number | null;
|
203
291
|
};
|
204
|
-
|
292
|
+
value: number;
|
293
|
+
campaignId: string;
|
294
|
+
amount: string | bigint;
|
295
|
+
dailyRewardsRecordId: string;
|
205
296
|
}[];
|
297
|
+
} | undefined;
|
298
|
+
id: string;
|
299
|
+
name: string;
|
300
|
+
type: string;
|
301
|
+
status: string;
|
302
|
+
tokens: {
|
303
|
+
price?: number | null | undefined;
|
304
|
+
symbol: string;
|
305
|
+
id: string;
|
306
|
+
name: string | null;
|
307
|
+
icon: string;
|
308
|
+
address: string;
|
309
|
+
chainId: number;
|
310
|
+
decimals: number;
|
311
|
+
verified: boolean;
|
312
|
+
isTest: boolean;
|
313
|
+
}[];
|
314
|
+
tags: string[];
|
315
|
+
identifier: string;
|
316
|
+
chain: {
|
317
|
+
id: number;
|
318
|
+
name: string;
|
319
|
+
icon: string;
|
206
320
|
};
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
321
|
+
action: string;
|
322
|
+
chainId: number;
|
323
|
+
tvl: number;
|
324
|
+
apr: number;
|
325
|
+
dailyRewards: number;
|
326
|
+
} | null)[] | {
|
327
|
+
200: ({
|
328
|
+
protocol?: {
|
329
|
+
id: string;
|
211
330
|
name: string;
|
331
|
+
url: string;
|
332
|
+
description: string;
|
333
|
+
tags: string[];
|
212
334
|
icon: string;
|
213
|
-
};
|
214
|
-
|
215
|
-
|
216
|
-
|
335
|
+
} | null | undefined;
|
336
|
+
depositUrl?: string | undefined;
|
337
|
+
explorerAddress?: string | undefined;
|
338
|
+
aprRecord?: {
|
339
|
+
timestamp: string | bigint;
|
340
|
+
cumulated: number;
|
341
|
+
breakdowns: {
|
342
|
+
id: number;
|
343
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
344
|
+
identifier: string;
|
345
|
+
value: number;
|
346
|
+
aprRecordId: string;
|
347
|
+
}[];
|
348
|
+
} | undefined;
|
349
|
+
tvlRecord?: {
|
350
|
+
total: number;
|
351
|
+
timestamp: string | bigint;
|
352
|
+
breakdowns: {
|
353
|
+
id: number;
|
354
|
+
type: "TOKEN" | "PROTOCOL";
|
355
|
+
identifier: string;
|
356
|
+
value: number;
|
357
|
+
tvlRecordId: string;
|
358
|
+
}[];
|
359
|
+
} | undefined;
|
360
|
+
rewardsRecord?: {
|
361
|
+
id: string;
|
362
|
+
total: number;
|
363
|
+
timestamp: string | bigint;
|
364
|
+
breakdowns: {
|
365
|
+
id: number;
|
366
|
+
token: {
|
367
|
+
price?: number | null | undefined;
|
368
|
+
symbol: string;
|
369
|
+
id: string;
|
370
|
+
name: string | null;
|
371
|
+
icon: string;
|
372
|
+
address: string;
|
373
|
+
chainId: number;
|
374
|
+
decimals: number;
|
375
|
+
verified: boolean;
|
376
|
+
isTest: boolean;
|
377
|
+
};
|
378
|
+
value: number;
|
379
|
+
campaignId: string;
|
380
|
+
amount: string | bigint;
|
381
|
+
dailyRewardsRecordId: string;
|
382
|
+
}[];
|
383
|
+
} | undefined;
|
384
|
+
id: string;
|
385
|
+
name: string;
|
386
|
+
type: string;
|
387
|
+
status: string;
|
388
|
+
tokens: {
|
389
|
+
price?: number | null | undefined;
|
217
390
|
symbol: string;
|
218
391
|
id: string;
|
219
392
|
name: string | null;
|
@@ -223,60 +396,83 @@ export declare const v4: Elysia<"/v4", false, {
|
|
223
396
|
decimals: number;
|
224
397
|
verified: boolean;
|
225
398
|
isTest: boolean;
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
};
|
231
|
-
distributionChain: {
|
399
|
+
}[];
|
400
|
+
tags: string[];
|
401
|
+
identifier: string;
|
402
|
+
chain: {
|
232
403
|
id: number;
|
233
404
|
name: string;
|
234
405
|
icon: string;
|
235
|
-
} | undefined;
|
236
|
-
campaignStatus: {
|
237
|
-
computedUntil: number;
|
238
|
-
processingStarted: number;
|
239
|
-
error: string;
|
240
|
-
status: import("@db/api").$Enums.RunStatus;
|
241
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
242
|
-
campaignId: string;
|
243
|
-
} | undefined;
|
244
|
-
creatorAddress: string;
|
245
|
-
creator: {
|
246
|
-
tags: string[];
|
247
|
-
address: string;
|
248
|
-
creatorId: string | null;
|
249
406
|
};
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
407
|
+
action: string;
|
408
|
+
chainId: number;
|
409
|
+
tvl: number;
|
410
|
+
apr: number;
|
411
|
+
dailyRewards: number;
|
412
|
+
} | null)[];
|
413
|
+
}) & ({
|
414
|
+
protocol?: {
|
415
|
+
id: string;
|
416
|
+
name: string;
|
417
|
+
url: string;
|
418
|
+
description: string;
|
419
|
+
tags: string[];
|
420
|
+
icon: string;
|
421
|
+
} | null | undefined;
|
422
|
+
depositUrl?: string | undefined;
|
423
|
+
explorerAddress?: string | undefined;
|
424
|
+
aprRecord?: {
|
425
|
+
timestamp: string | bigint;
|
426
|
+
cumulated: number;
|
427
|
+
breakdowns: {
|
428
|
+
id: number;
|
429
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
257
430
|
identifier: string;
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
431
|
+
value: number;
|
432
|
+
aprRecordId: string;
|
433
|
+
}[];
|
434
|
+
} | undefined;
|
435
|
+
tvlRecord?: {
|
436
|
+
total: number;
|
437
|
+
timestamp: string | bigint;
|
438
|
+
breakdowns: {
|
439
|
+
id: number;
|
440
|
+
type: "TOKEN" | "PROTOCOL";
|
441
|
+
identifier: string;
|
442
|
+
value: number;
|
443
|
+
tvlRecordId: string;
|
444
|
+
}[];
|
445
|
+
} | undefined;
|
446
|
+
rewardsRecord?: {
|
267
447
|
id: string;
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
448
|
+
total: number;
|
449
|
+
timestamp: string | bigint;
|
450
|
+
breakdowns: {
|
451
|
+
id: number;
|
452
|
+
token: {
|
453
|
+
price?: number | null | undefined;
|
454
|
+
symbol: string;
|
455
|
+
id: string;
|
456
|
+
name: string | null;
|
457
|
+
icon: string;
|
458
|
+
address: string;
|
459
|
+
chainId: number;
|
460
|
+
decimals: number;
|
461
|
+
verified: boolean;
|
462
|
+
isTest: boolean;
|
463
|
+
};
|
464
|
+
value: number;
|
465
|
+
campaignId: string;
|
466
|
+
amount: string | bigint;
|
467
|
+
dailyRewardsRecordId: string;
|
468
|
+
}[];
|
469
|
+
} | undefined;
|
277
470
|
id: string;
|
278
|
-
|
279
|
-
|
471
|
+
name: string;
|
472
|
+
type: string;
|
473
|
+
status: string;
|
474
|
+
tokens: {
|
475
|
+
price?: number | null | undefined;
|
280
476
|
symbol: string;
|
281
477
|
id: string;
|
282
478
|
name: string | null;
|
@@ -286,35 +482,109 @@ export declare const v4: Elysia<"/v4", false, {
|
|
286
482
|
decimals: number;
|
287
483
|
verified: boolean;
|
288
484
|
isTest: boolean;
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
price?: number | null | undefined;
|
293
|
-
})[];
|
485
|
+
}[];
|
486
|
+
tags: string[];
|
487
|
+
identifier: string;
|
294
488
|
chain: {
|
295
489
|
id: number;
|
296
490
|
name: string;
|
297
491
|
icon: string;
|
298
492
|
};
|
299
|
-
|
300
|
-
id: string;
|
301
|
-
name: string;
|
302
|
-
url: string;
|
303
|
-
description: string;
|
304
|
-
tags: string[];
|
305
|
-
icon: string;
|
306
|
-
} | undefined;
|
307
|
-
name: string;
|
308
|
-
type: string;
|
309
|
-
status: import("@db/api").$Enums.Status;
|
310
|
-
tags: string[];
|
311
|
-
identifier: string;
|
312
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
493
|
+
action: string;
|
313
494
|
chainId: number;
|
314
|
-
explorerAddress: string | null;
|
315
495
|
tvl: number;
|
496
|
+
apr: number;
|
316
497
|
dailyRewards: number;
|
317
|
-
}[];
|
498
|
+
} | null)[];
|
499
|
+
} | {
|
500
|
+
200: {
|
501
|
+
200: ({
|
502
|
+
protocol?: {
|
503
|
+
id: string;
|
504
|
+
name: string;
|
505
|
+
url: string;
|
506
|
+
description: string;
|
507
|
+
tags: string[];
|
508
|
+
icon: string;
|
509
|
+
} | null | undefined;
|
510
|
+
depositUrl?: string | undefined;
|
511
|
+
explorerAddress?: string | undefined;
|
512
|
+
aprRecord?: {
|
513
|
+
timestamp: string | bigint;
|
514
|
+
cumulated: number;
|
515
|
+
breakdowns: {
|
516
|
+
id: number;
|
517
|
+
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
518
|
+
identifier: string;
|
519
|
+
value: number;
|
520
|
+
aprRecordId: string;
|
521
|
+
}[];
|
522
|
+
} | undefined;
|
523
|
+
tvlRecord?: {
|
524
|
+
total: number;
|
525
|
+
timestamp: string | bigint;
|
526
|
+
breakdowns: {
|
527
|
+
id: number;
|
528
|
+
type: "TOKEN" | "PROTOCOL";
|
529
|
+
identifier: string;
|
530
|
+
value: number;
|
531
|
+
tvlRecordId: string;
|
532
|
+
}[];
|
533
|
+
} | undefined;
|
534
|
+
rewardsRecord?: {
|
535
|
+
id: string;
|
536
|
+
total: number;
|
537
|
+
timestamp: string | bigint;
|
538
|
+
breakdowns: {
|
539
|
+
id: number;
|
540
|
+
token: {
|
541
|
+
price?: number | null | undefined;
|
542
|
+
symbol: string;
|
543
|
+
id: string;
|
544
|
+
name: string | null;
|
545
|
+
icon: string;
|
546
|
+
address: string;
|
547
|
+
chainId: number;
|
548
|
+
decimals: number;
|
549
|
+
verified: boolean;
|
550
|
+
isTest: boolean;
|
551
|
+
};
|
552
|
+
value: number;
|
553
|
+
campaignId: string;
|
554
|
+
amount: string | bigint;
|
555
|
+
dailyRewardsRecordId: string;
|
556
|
+
}[];
|
557
|
+
} | undefined;
|
558
|
+
id: string;
|
559
|
+
name: string;
|
560
|
+
type: string;
|
561
|
+
status: string;
|
562
|
+
tokens: {
|
563
|
+
price?: number | null | undefined;
|
564
|
+
symbol: string;
|
565
|
+
id: string;
|
566
|
+
name: string | null;
|
567
|
+
icon: string;
|
568
|
+
address: string;
|
569
|
+
chainId: number;
|
570
|
+
decimals: number;
|
571
|
+
verified: boolean;
|
572
|
+
isTest: boolean;
|
573
|
+
}[];
|
574
|
+
tags: string[];
|
575
|
+
identifier: string;
|
576
|
+
chain: {
|
577
|
+
id: number;
|
578
|
+
name: string;
|
579
|
+
icon: string;
|
580
|
+
};
|
581
|
+
action: string;
|
582
|
+
chainId: number;
|
583
|
+
tvl: number;
|
584
|
+
apr: number;
|
585
|
+
dailyRewards: number;
|
586
|
+
} | null)[];
|
587
|
+
};
|
318
588
|
};
|
319
589
|
};
|
320
590
|
};
|
@@ -378,6 +648,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
378
648
|
icon: string;
|
379
649
|
} | null | undefined;
|
380
650
|
depositUrl?: string | undefined;
|
651
|
+
explorerAddress?: string | undefined;
|
381
652
|
aprRecord?: {
|
382
653
|
timestamp: string | bigint;
|
383
654
|
cumulated: number;
|
@@ -508,6 +779,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
508
779
|
icon: string;
|
509
780
|
} | null | undefined;
|
510
781
|
depositUrl?: string | undefined;
|
782
|
+
explorerAddress?: string | undefined;
|
511
783
|
aprRecord?: {
|
512
784
|
timestamp: string | bigint;
|
513
785
|
cumulated: number;
|
@@ -672,6 +944,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
672
944
|
icon: string;
|
673
945
|
} | null | undefined;
|
674
946
|
depositUrl?: string | undefined;
|
947
|
+
explorerAddress?: string | undefined;
|
675
948
|
aprRecord?: {
|
676
949
|
timestamp: string | bigint;
|
677
950
|
cumulated: number;
|