@merkl/api 0.10.169 → 0.10.170

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/dist/database/api/.generated/edge.js +6 -3
  2. package/dist/database/api/.generated/index-browser.js +3 -0
  3. package/dist/database/api/.generated/index.d.ts +113 -0
  4. package/dist/database/api/.generated/index.js +6 -3
  5. package/dist/database/api/.generated/package.json +1 -1
  6. package/dist/database/api/.generated/schema.prisma +17 -15
  7. package/dist/database/api/.generated/wasm.js +3 -0
  8. package/dist/src/eden/index.d.ts +108 -3
  9. package/dist/src/index.d.ts +36 -1
  10. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.js +2 -0
  11. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -1
  12. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleYTProcessor.d.ts +29 -0
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleYTProcessor.js +31 -0
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +3 -0
  16. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -0
  17. package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
  18. package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
  19. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -0
  20. package/dist/src/modules/v4/campaign/campaign.repository.js +2 -1
  21. package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -0
  22. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +18 -1
  23. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -1
  24. package/dist/src/modules/v4/opportunity/opportunity.model.js +1 -0
  25. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +24 -105
  26. package/dist/src/modules/v4/opportunity/opportunity.repository.js +2 -0
  27. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +31 -5
  28. package/dist/src/modules/v4/price/price.controller.js +1 -1
  29. package/dist/src/modules/v4/price/price.service.d.ts +1 -1
  30. package/dist/src/modules/v4/price/price.service.js +3 -3
  31. package/dist/src/modules/v4/reward/reward.repository.d.ts +4 -0
  32. package/dist/src/modules/v4/reward/reward.service.d.ts +22 -0
  33. package/dist/src/modules/v4/router.d.ts +36 -1
  34. package/dist/src/modules/v4/token/token.controller.d.ts +6 -0
  35. package/dist/src/modules/v4/token/token.service.d.ts +12 -0
  36. package/dist/src/modules/v4/user/user.controller.d.ts +8 -0
  37. package/dist/src/routes/v3/blacklist.d.ts +36 -1
  38. package/dist/src/routes/v3/campaigns.d.ts +36 -1
  39. package/dist/src/routes/v3/campaignsInfo.d.ts +36 -1
  40. package/dist/src/routes/v3/multiChainPositions.d.ts +36 -1
  41. package/dist/src/routes/v3/opportunity.d.ts +36 -1
  42. package/dist/src/routes/v3/positions.d.ts +36 -1
  43. package/dist/src/routes/v3/rewards.d.ts +36 -1
  44. package/dist/src/routes/v3/updates.d.ts +36 -1
  45. package/dist/src/routes/v3/userRewards.d.ts +36 -1
  46. package/dist/src/utils/decodeCalls.js +4 -1
  47. package/dist/src/utils/encodeCalls.js +4 -1
  48. package/dist/src/utils/generateCardName.js +2 -0
  49. package/dist/src/utils/prices/services/erc4626Service.js +7 -1
  50. package/dist/tsconfig.package.tsbuildinfo +1 -1
  51. package/package.json +1 -1
@@ -101,7 +101,9 @@ export declare const v4: Elysia<"/v4", false, {
101
101
  address: string;
102
102
  icon: string;
103
103
  decimals: number;
104
+ displaySymbol: string;
104
105
  verified: boolean;
106
+ isTest: boolean;
105
107
  price: number | null;
106
108
  };
107
109
  amount: bigint;
@@ -116,7 +118,9 @@ export declare const v4: Elysia<"/v4", false, {
116
118
  address: string;
117
119
  icon: string;
118
120
  decimals: number;
121
+ displaySymbol: string;
119
122
  verified: boolean;
123
+ isTest: boolean;
120
124
  price: number | null;
121
125
  }[];
122
126
  chain: {
@@ -200,7 +204,9 @@ export declare const v4: Elysia<"/v4", false, {
200
204
  address: string;
201
205
  icon: string;
202
206
  decimals: number;
207
+ displaySymbol: string;
203
208
  verified: boolean;
209
+ isTest: boolean;
204
210
  price: number | null;
205
211
  };
206
212
  amount: bigint;
@@ -215,7 +221,9 @@ export declare const v4: Elysia<"/v4", false, {
215
221
  address: string;
216
222
  icon: string;
217
223
  decimals: number;
224
+ displaySymbol: string;
218
225
  verified: boolean;
226
+ isTest: boolean;
219
227
  price: number | null;
220
228
  }[];
221
229
  chain: {
@@ -256,7 +264,9 @@ export declare const v4: Elysia<"/v4", false, {
256
264
  address: string;
257
265
  icon: string;
258
266
  decimals: number;
267
+ displaySymbol: string;
259
268
  verified: boolean;
269
+ isTest: boolean;
260
270
  price: number | null;
261
271
  };
262
272
  distributionChain: {
@@ -309,6 +319,7 @@ export declare const v4: Elysia<"/v4", false, {
309
319
  action?: string | undefined;
310
320
  mainProtocolId?: string | undefined;
311
321
  order?: undefined;
322
+ test?: boolean | undefined;
312
323
  minimumTvl?: number | undefined;
313
324
  };
314
325
  headers: unknown;
@@ -354,7 +365,9 @@ export declare const v4: Elysia<"/v4", false, {
354
365
  address: string;
355
366
  icon: string;
356
367
  decimals: number;
368
+ displaySymbol: string;
357
369
  verified: boolean;
370
+ isTest: boolean;
358
371
  price: number | null;
359
372
  };
360
373
  amount: bigint;
@@ -369,7 +382,9 @@ export declare const v4: Elysia<"/v4", false, {
369
382
  address: string;
370
383
  icon: string;
371
384
  decimals: number;
385
+ displaySymbol: string;
372
386
  verified: boolean;
387
+ isTest: boolean;
373
388
  price: number | null;
374
389
  }[];
375
390
  chain: {
@@ -418,6 +433,7 @@ export declare const v4: Elysia<"/v4", false, {
418
433
  action?: string | undefined;
419
434
  mainProtocolId?: string | undefined;
420
435
  order?: undefined;
436
+ test?: boolean | undefined;
421
437
  minimumTvl?: number | undefined;
422
438
  };
423
439
  headers: unknown;
@@ -448,12 +464,13 @@ export declare const v4: Elysia<"/v4", false, {
448
464
  action?: string | undefined;
449
465
  mainProtocolId?: string | undefined;
450
466
  order?: undefined;
467
+ test?: boolean | undefined;
451
468
  minimumTvl?: number | undefined;
452
469
  };
453
470
  headers: unknown;
454
471
  response: {
455
472
  200: {
456
- sum: File;
473
+ sum: number | null;
457
474
  };
458
475
  };
459
476
  };
@@ -523,6 +540,7 @@ export declare const v4: Elysia<"/v4", false, {
523
540
  campaignId?: string | undefined;
524
541
  opportunityId?: string | undefined;
525
542
  tokenSymbol?: string | undefined;
543
+ test?: boolean | undefined;
526
544
  };
527
545
  headers: unknown;
528
546
  response: {
@@ -541,7 +559,9 @@ export declare const v4: Elysia<"/v4", false, {
541
559
  address: string;
542
560
  icon: string;
543
561
  decimals: number;
562
+ displaySymbol: string;
544
563
  verified: boolean;
564
+ isTest: boolean;
545
565
  price: number | null;
546
566
  };
547
567
  distributionChain: {
@@ -591,6 +611,7 @@ export declare const v4: Elysia<"/v4", false, {
591
611
  campaignId?: string | undefined;
592
612
  opportunityId?: string | undefined;
593
613
  tokenSymbol?: string | undefined;
614
+ test?: boolean | undefined;
594
615
  };
595
616
  headers: unknown;
596
617
  response: {
@@ -744,7 +765,9 @@ export declare const v4: Elysia<"/v4", false, {
744
765
  address: string;
745
766
  icon: string;
746
767
  decimals: number;
768
+ displaySymbol: string;
747
769
  verified: boolean;
770
+ isTest: boolean;
748
771
  price?: number | null | undefined;
749
772
  } | undefined;
750
773
  };
@@ -773,7 +796,9 @@ export declare const v4: Elysia<"/v4", false, {
773
796
  address: string;
774
797
  icon: string;
775
798
  decimals: number;
799
+ displaySymbol: string;
776
800
  verified: boolean;
801
+ isTest: boolean;
777
802
  } & {
778
803
  price?: number | null | undefined;
779
804
  } & {
@@ -806,7 +831,9 @@ export declare const v4: Elysia<"/v4", false, {
806
831
  address: string;
807
832
  icon: string;
808
833
  decimals: number;
834
+ displaySymbol: string;
809
835
  verified: boolean;
836
+ isTest: boolean;
810
837
  } & {
811
838
  price?: number | null | undefined;
812
839
  })[];
@@ -1469,7 +1496,9 @@ export declare const v4: Elysia<"/v4", false, {
1469
1496
  address: string;
1470
1497
  icon: string;
1471
1498
  decimals: number;
1499
+ displaySymbol: string;
1472
1500
  verified: boolean;
1501
+ isTest: boolean;
1473
1502
  price: number | null;
1474
1503
  };
1475
1504
  breakdowns: {
@@ -1488,7 +1517,9 @@ export declare const v4: Elysia<"/v4", false, {
1488
1517
  address: string;
1489
1518
  icon: string;
1490
1519
  decimals: number;
1520
+ displaySymbol: string;
1491
1521
  verified: boolean;
1522
+ isTest: boolean;
1492
1523
  price: number | null;
1493
1524
  }[];
1494
1525
  Protocols: {
@@ -1579,7 +1610,9 @@ export declare const v4: Elysia<"/v4", false, {
1579
1610
  address: string;
1580
1611
  icon: string;
1581
1612
  decimals: number;
1613
+ displaySymbol: string;
1582
1614
  verified: boolean;
1615
+ isTest: boolean;
1583
1616
  price: number | null;
1584
1617
  };
1585
1618
  breakdowns: {
@@ -1598,7 +1631,9 @@ export declare const v4: Elysia<"/v4", false, {
1598
1631
  address: string;
1599
1632
  icon: string;
1600
1633
  decimals: number;
1634
+ displaySymbol: string;
1601
1635
  verified: boolean;
1636
+ isTest: boolean;
1602
1637
  price: number | null;
1603
1638
  }[];
1604
1639
  Protocols: {
@@ -30,7 +30,9 @@ export declare const TokenController: Elysia<"/tokens", false, {
30
30
  address: string;
31
31
  icon: string;
32
32
  decimals: number;
33
+ displaySymbol: string;
33
34
  verified: boolean;
35
+ isTest: boolean;
34
36
  price?: number | null | undefined;
35
37
  } | undefined;
36
38
  };
@@ -59,7 +61,9 @@ export declare const TokenController: Elysia<"/tokens", false, {
59
61
  address: string;
60
62
  icon: string;
61
63
  decimals: number;
64
+ displaySymbol: string;
62
65
  verified: boolean;
66
+ isTest: boolean;
63
67
  } & {
64
68
  price?: number | null | undefined;
65
69
  } & {
@@ -92,7 +96,9 @@ export declare const TokenController: Elysia<"/tokens", false, {
92
96
  address: string;
93
97
  icon: string;
94
98
  decimals: number;
99
+ displaySymbol: string;
95
100
  verified: boolean;
101
+ isTest: boolean;
96
102
  } & {
97
103
  price?: number | null | undefined;
98
104
  })[];
@@ -21,7 +21,9 @@ export declare abstract class TokenService {
21
21
  address: string;
22
22
  icon: string;
23
23
  decimals: number;
24
+ displaySymbol: string;
24
25
  verified: boolean;
26
+ isTest: boolean;
25
27
  } & {
26
28
  price?: number | null | undefined;
27
29
  } & {
@@ -40,7 +42,9 @@ export declare abstract class TokenService {
40
42
  address: string;
41
43
  icon: string;
42
44
  decimals: number;
45
+ displaySymbol: string;
43
46
  verified: boolean;
47
+ isTest: boolean;
44
48
  } & {
45
49
  price?: number | null | undefined;
46
50
  } & {
@@ -56,7 +60,9 @@ export declare abstract class TokenService {
56
60
  address: string;
57
61
  icon: string;
58
62
  decimals: number;
63
+ displaySymbol: string;
59
64
  verified: boolean;
65
+ isTest: boolean;
60
66
  } & {
61
67
  price?: number | null | undefined;
62
68
  }, "id">;
@@ -100,7 +106,9 @@ export declare abstract class TokenService {
100
106
  address: string;
101
107
  icon: string;
102
108
  decimals: number;
109
+ displaySymbol: string;
103
110
  verified: boolean;
111
+ isTest: boolean;
104
112
  } & {
105
113
  price?: number | null | undefined;
106
114
  }) | undefined>;
@@ -117,7 +125,9 @@ export declare abstract class TokenService {
117
125
  address: string;
118
126
  icon: string;
119
127
  decimals: number;
128
+ displaySymbol: string;
120
129
  verified: boolean;
130
+ isTest: boolean;
121
131
  } & {
122
132
  price?: number | null | undefined;
123
133
  }>;
@@ -134,7 +144,9 @@ export declare abstract class TokenService {
134
144
  address: string;
135
145
  icon: string;
136
146
  decimals: number;
147
+ displaySymbol: string;
137
148
  verified: boolean;
149
+ isTest: boolean;
138
150
  } & {
139
151
  price?: number | null | undefined;
140
152
  })[]>;
@@ -98,7 +98,9 @@ export declare const UserController: Elysia<"/users", false, {
98
98
  address: string;
99
99
  icon: string;
100
100
  decimals: number;
101
+ displaySymbol: string;
101
102
  verified: boolean;
103
+ isTest: boolean;
102
104
  price: number | null;
103
105
  };
104
106
  breakdowns: {
@@ -117,7 +119,9 @@ export declare const UserController: Elysia<"/users", false, {
117
119
  address: string;
118
120
  icon: string;
119
121
  decimals: number;
122
+ displaySymbol: string;
120
123
  verified: boolean;
124
+ isTest: boolean;
121
125
  price: number | null;
122
126
  }[];
123
127
  Protocols: {
@@ -208,7 +212,9 @@ export declare const UserController: Elysia<"/users", false, {
208
212
  address: string;
209
213
  icon: string;
210
214
  decimals: number;
215
+ displaySymbol: string;
211
216
  verified: boolean;
217
+ isTest: boolean;
212
218
  price: number | null;
213
219
  };
214
220
  breakdowns: {
@@ -227,7 +233,9 @@ export declare const UserController: Elysia<"/users", false, {
227
233
  address: string;
228
234
  icon: string;
229
235
  decimals: number;
236
+ displaySymbol: string;
230
237
  verified: boolean;
238
+ isTest: boolean;
231
239
  price: number | null;
232
240
  }[];
233
241
  Protocols: {
@@ -125,7 +125,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
125
125
  address: string;
126
126
  icon: string;
127
127
  decimals: number;
128
+ displaySymbol: string;
128
129
  verified: boolean;
130
+ isTest: boolean;
129
131
  price: number | null;
130
132
  };
131
133
  amount: bigint;
@@ -140,7 +142,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
140
142
  address: string;
141
143
  icon: string;
142
144
  decimals: number;
145
+ displaySymbol: string;
143
146
  verified: boolean;
147
+ isTest: boolean;
144
148
  price: number | null;
145
149
  }[];
146
150
  chain: {
@@ -224,7 +228,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
224
228
  address: string;
225
229
  icon: string;
226
230
  decimals: number;
231
+ displaySymbol: string;
227
232
  verified: boolean;
233
+ isTest: boolean;
228
234
  price: number | null;
229
235
  };
230
236
  amount: bigint;
@@ -239,7 +245,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
239
245
  address: string;
240
246
  icon: string;
241
247
  decimals: number;
248
+ displaySymbol: string;
242
249
  verified: boolean;
250
+ isTest: boolean;
243
251
  price: number | null;
244
252
  }[];
245
253
  chain: {
@@ -280,7 +288,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
280
288
  address: string;
281
289
  icon: string;
282
290
  decimals: number;
291
+ displaySymbol: string;
283
292
  verified: boolean;
293
+ isTest: boolean;
284
294
  price: number | null;
285
295
  };
286
296
  distributionChain: {
@@ -333,6 +343,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
333
343
  action?: string | undefined;
334
344
  mainProtocolId?: string | undefined;
335
345
  order?: undefined;
346
+ test?: boolean | undefined;
336
347
  minimumTvl?: number | undefined;
337
348
  };
338
349
  headers: unknown;
@@ -378,7 +389,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
378
389
  address: string;
379
390
  icon: string;
380
391
  decimals: number;
392
+ displaySymbol: string;
381
393
  verified: boolean;
394
+ isTest: boolean;
382
395
  price: number | null;
383
396
  };
384
397
  amount: bigint;
@@ -393,7 +406,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
393
406
  address: string;
394
407
  icon: string;
395
408
  decimals: number;
409
+ displaySymbol: string;
396
410
  verified: boolean;
411
+ isTest: boolean;
397
412
  price: number | null;
398
413
  }[];
399
414
  chain: {
@@ -442,6 +457,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
442
457
  action?: string | undefined;
443
458
  mainProtocolId?: string | undefined;
444
459
  order?: undefined;
460
+ test?: boolean | undefined;
445
461
  minimumTvl?: number | undefined;
446
462
  };
447
463
  headers: unknown;
@@ -472,12 +488,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
472
488
  action?: string | undefined;
473
489
  mainProtocolId?: string | undefined;
474
490
  order?: undefined;
491
+ test?: boolean | undefined;
475
492
  minimumTvl?: number | undefined;
476
493
  };
477
494
  headers: unknown;
478
495
  response: {
479
496
  200: {
480
- sum: File;
497
+ sum: number | null;
481
498
  };
482
499
  };
483
500
  };
@@ -547,6 +564,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
547
564
  campaignId?: string | undefined;
548
565
  opportunityId?: string | undefined;
549
566
  tokenSymbol?: string | undefined;
567
+ test?: boolean | undefined;
550
568
  };
551
569
  headers: unknown;
552
570
  response: {
@@ -565,7 +583,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
565
583
  address: string;
566
584
  icon: string;
567
585
  decimals: number;
586
+ displaySymbol: string;
568
587
  verified: boolean;
588
+ isTest: boolean;
569
589
  price: number | null;
570
590
  };
571
591
  distributionChain: {
@@ -615,6 +635,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
615
635
  campaignId?: string | undefined;
616
636
  opportunityId?: string | undefined;
617
637
  tokenSymbol?: string | undefined;
638
+ test?: boolean | undefined;
618
639
  };
619
640
  headers: unknown;
620
641
  response: {
@@ -768,7 +789,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
768
789
  address: string;
769
790
  icon: string;
770
791
  decimals: number;
792
+ displaySymbol: string;
771
793
  verified: boolean;
794
+ isTest: boolean;
772
795
  price?: number | null | undefined;
773
796
  } | undefined;
774
797
  };
@@ -797,7 +820,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
797
820
  address: string;
798
821
  icon: string;
799
822
  decimals: number;
823
+ displaySymbol: string;
800
824
  verified: boolean;
825
+ isTest: boolean;
801
826
  } & {
802
827
  price?: number | null | undefined;
803
828
  } & {
@@ -830,7 +855,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
830
855
  address: string;
831
856
  icon: string;
832
857
  decimals: number;
858
+ displaySymbol: string;
833
859
  verified: boolean;
860
+ isTest: boolean;
834
861
  } & {
835
862
  price?: number | null | undefined;
836
863
  })[];
@@ -1493,7 +1520,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1493
1520
  address: string;
1494
1521
  icon: string;
1495
1522
  decimals: number;
1523
+ displaySymbol: string;
1496
1524
  verified: boolean;
1525
+ isTest: boolean;
1497
1526
  price: number | null;
1498
1527
  };
1499
1528
  breakdowns: {
@@ -1512,7 +1541,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1512
1541
  address: string;
1513
1542
  icon: string;
1514
1543
  decimals: number;
1544
+ displaySymbol: string;
1515
1545
  verified: boolean;
1546
+ isTest: boolean;
1516
1547
  price: number | null;
1517
1548
  }[];
1518
1549
  Protocols: {
@@ -1603,7 +1634,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1603
1634
  address: string;
1604
1635
  icon: string;
1605
1636
  decimals: number;
1637
+ displaySymbol: string;
1606
1638
  verified: boolean;
1639
+ isTest: boolean;
1607
1640
  price: number | null;
1608
1641
  };
1609
1642
  breakdowns: {
@@ -1622,7 +1655,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1622
1655
  address: string;
1623
1656
  icon: string;
1624
1657
  decimals: number;
1658
+ displaySymbol: string;
1625
1659
  verified: boolean;
1660
+ isTest: boolean;
1626
1661
  price: number | null;
1627
1662
  }[];
1628
1663
  Protocols: {