@merkl/api 0.10.169 → 0.10.171

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) 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 +147 -45
  9. package/dist/src/index.d.ts +49 -15
  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/TempestVaultProcessor.d.ts +3 -1
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TempestVaultProcessor.js +36 -7
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +3 -0
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +1 -1
  19. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +5 -1
  20. package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
  21. package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
  22. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -0
  23. package/dist/src/modules/v4/campaign/campaign.repository.js +3 -1
  24. package/dist/src/modules/v4/campaign/campaign.service.d.ts +6 -2
  25. package/dist/src/modules/v4/campaign/campaign.service.js +2 -1
  26. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +27 -10
  27. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -1
  28. package/dist/src/modules/v4/opportunity/opportunity.model.js +1 -0
  29. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +26 -4
  30. package/dist/src/modules/v4/opportunity/opportunity.repository.js +2 -0
  31. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +50 -24
  32. package/dist/src/modules/v4/opportunity/opportunity.service.js +2 -1
  33. package/dist/src/modules/v4/price/price.controller.js +1 -1
  34. package/dist/src/modules/v4/price/price.service.d.ts +1 -1
  35. package/dist/src/modules/v4/price/price.service.js +3 -3
  36. package/dist/src/modules/v4/reward/reward.repository.d.ts +4 -0
  37. package/dist/src/modules/v4/reward/reward.service.d.ts +22 -0
  38. package/dist/src/modules/v4/router.d.ts +49 -15
  39. package/dist/src/modules/v4/token/token.controller.d.ts +9 -4
  40. package/dist/src/modules/v4/token/token.model.d.ts +2 -1
  41. package/dist/src/modules/v4/token/token.model.js +1 -0
  42. package/dist/src/modules/v4/token/token.repository.d.ts +13 -1
  43. package/dist/src/modules/v4/token/token.repository.js +2 -0
  44. package/dist/src/modules/v4/token/token.service.d.ts +12 -4
  45. package/dist/src/modules/v4/token/token.service.js +11 -2
  46. package/dist/src/modules/v4/user/user.controller.d.ts +8 -0
  47. package/dist/src/routes/v3/blacklist.d.ts +49 -15
  48. package/dist/src/routes/v3/campaigns.d.ts +49 -15
  49. package/dist/src/routes/v3/campaignsInfo.d.ts +49 -15
  50. package/dist/src/routes/v3/multiChainPositions.d.ts +49 -15
  51. package/dist/src/routes/v3/opportunity.d.ts +49 -15
  52. package/dist/src/routes/v3/positions.d.ts +49 -15
  53. package/dist/src/routes/v3/rewards.d.ts +49 -15
  54. package/dist/src/routes/v3/updates.d.ts +49 -15
  55. package/dist/src/routes/v3/userRewards.d.ts +49 -15
  56. package/dist/src/utils/decodeCalls.js +4 -1
  57. package/dist/src/utils/encodeCalls.js +4 -1
  58. package/dist/src/utils/generateCardName.js +2 -0
  59. package/dist/src/utils/prices/services/erc4626Service.js +7 -1
  60. package/dist/tsconfig.package.tsbuildinfo +1 -1
  61. package/package.json +1 -1
@@ -119,14 +119,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
119
119
  address: string;
120
120
  icon: string;
121
121
  decimals: number;
122
+ displaySymbol: string;
122
123
  verified: boolean;
124
+ isTest: boolean;
123
125
  price: number | null;
124
126
  };
125
127
  amount: bigint;
126
128
  }[];
127
129
  };
128
130
  id: string;
129
- tokens: {
131
+ tokens: ({
130
132
  symbol: string;
131
133
  name: string | null;
132
134
  id: string;
@@ -135,8 +137,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
135
137
  icon: string;
136
138
  decimals: number;
137
139
  verified: boolean;
138
- price: number | null;
139
- }[];
140
+ isTest: boolean;
141
+ } & {
142
+ price?: number | null | undefined;
143
+ })[];
140
144
  chain: {
141
145
  name: string;
142
146
  id: number;
@@ -218,14 +222,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
218
222
  address: string;
219
223
  icon: string;
220
224
  decimals: number;
225
+ displaySymbol: string;
221
226
  verified: boolean;
227
+ isTest: boolean;
222
228
  price: number | null;
223
229
  };
224
230
  amount: bigint;
225
231
  }[];
226
232
  };
227
233
  id: string;
228
- tokens: {
234
+ tokens: ({
229
235
  symbol: string;
230
236
  name: string | null;
231
237
  id: string;
@@ -234,8 +240,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
234
240
  icon: string;
235
241
  decimals: number;
236
242
  verified: boolean;
237
- price: number | null;
238
- }[];
243
+ isTest: boolean;
244
+ } & {
245
+ price?: number | null | undefined;
246
+ })[];
239
247
  chain: {
240
248
  name: string;
241
249
  id: number;
@@ -275,7 +283,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
275
283
  icon: string;
276
284
  decimals: number;
277
285
  verified: boolean;
278
- price: number | null;
286
+ isTest: boolean;
287
+ } & {
288
+ price?: number | null | undefined;
279
289
  };
280
290
  distributionChain: {
281
291
  name: string;
@@ -327,6 +337,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
327
337
  action?: string | undefined;
328
338
  mainProtocolId?: string | undefined;
329
339
  order?: undefined;
340
+ test?: boolean | undefined;
330
341
  minimumTvl?: number | undefined;
331
342
  };
332
343
  headers: unknown;
@@ -372,14 +383,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
372
383
  address: string;
373
384
  icon: string;
374
385
  decimals: number;
386
+ displaySymbol: string;
375
387
  verified: boolean;
388
+ isTest: boolean;
376
389
  price: number | null;
377
390
  };
378
391
  amount: bigint;
379
392
  }[];
380
393
  };
381
394
  id: string;
382
- tokens: {
395
+ tokens: ({
383
396
  symbol: string;
384
397
  name: string | null;
385
398
  id: string;
@@ -388,8 +401,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
388
401
  icon: string;
389
402
  decimals: number;
390
403
  verified: boolean;
391
- price: number | null;
392
- }[];
404
+ isTest: boolean;
405
+ } & {
406
+ price?: number | null | undefined;
407
+ })[];
393
408
  chain: {
394
409
  name: string;
395
410
  id: number;
@@ -436,6 +451,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
436
451
  action?: string | undefined;
437
452
  mainProtocolId?: string | undefined;
438
453
  order?: undefined;
454
+ test?: boolean | undefined;
439
455
  minimumTvl?: number | undefined;
440
456
  };
441
457
  headers: unknown;
@@ -466,6 +482,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
466
482
  action?: string | undefined;
467
483
  mainProtocolId?: string | undefined;
468
484
  order?: undefined;
485
+ test?: boolean | undefined;
469
486
  minimumTvl?: number | undefined;
470
487
  };
471
488
  headers: unknown;
@@ -540,6 +557,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
540
557
  mainParameter?: string | undefined;
541
558
  campaignId?: string | undefined;
542
559
  opportunityId?: string | undefined;
560
+ test?: boolean | undefined;
543
561
  tokenSymbol?: string | undefined;
544
562
  };
545
563
  headers: unknown;
@@ -560,7 +578,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
560
578
  icon: string;
561
579
  decimals: number;
562
580
  verified: boolean;
563
- price: number | null;
581
+ isTest: boolean;
582
+ } & {
583
+ price?: number | null | undefined;
564
584
  };
565
585
  distributionChain: {
566
586
  name: string;
@@ -608,6 +628,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
608
628
  mainParameter?: string | undefined;
609
629
  campaignId?: string | undefined;
610
630
  opportunityId?: string | undefined;
631
+ test?: boolean | undefined;
611
632
  tokenSymbol?: string | undefined;
612
633
  };
613
634
  headers: unknown;
@@ -763,6 +784,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
763
784
  icon: string;
764
785
  decimals: number;
765
786
  verified: boolean;
787
+ isTest: boolean;
766
788
  price?: number | null | undefined;
767
789
  } | undefined;
768
790
  };
@@ -792,6 +814,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
792
814
  icon: string;
793
815
  decimals: number;
794
816
  verified: boolean;
817
+ isTest: boolean;
795
818
  } & {
796
819
  price?: number | null | undefined;
797
820
  } & {
@@ -813,10 +836,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
813
836
  chainId?: any;
814
837
  address?: string | undefined;
815
838
  verified?: boolean | undefined;
839
+ test?: boolean | undefined;
816
840
  };
817
841
  headers: unknown;
818
842
  response: {
819
- 200: ({
843
+ 200: {
820
844
  symbol: string;
821
845
  name: string | null;
822
846
  id: string;
@@ -824,10 +848,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
824
848
  address: string;
825
849
  icon: string;
826
850
  decimals: number;
851
+ displaySymbol: string;
827
852
  verified: boolean;
828
- } & {
829
- price?: number | null | undefined;
830
- })[];
853
+ isTest: boolean;
854
+ price: number | null;
855
+ }[];
831
856
  };
832
857
  };
833
858
  };
@@ -844,6 +869,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
844
869
  chainId?: any;
845
870
  address?: string | undefined;
846
871
  verified?: boolean | undefined;
872
+ test?: boolean | undefined;
847
873
  };
848
874
  headers: unknown;
849
875
  response: {
@@ -1487,7 +1513,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1487
1513
  address: string;
1488
1514
  icon: string;
1489
1515
  decimals: number;
1516
+ displaySymbol: string;
1490
1517
  verified: boolean;
1518
+ isTest: boolean;
1491
1519
  price: number | null;
1492
1520
  };
1493
1521
  breakdowns: {
@@ -1506,7 +1534,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1506
1534
  address: string;
1507
1535
  icon: string;
1508
1536
  decimals: number;
1537
+ displaySymbol: string;
1509
1538
  verified: boolean;
1539
+ isTest: boolean;
1510
1540
  price: number | null;
1511
1541
  }[];
1512
1542
  Protocols: {
@@ -1597,7 +1627,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1597
1627
  address: string;
1598
1628
  icon: string;
1599
1629
  decimals: number;
1630
+ displaySymbol: string;
1600
1631
  verified: boolean;
1632
+ isTest: boolean;
1601
1633
  price: number | null;
1602
1634
  };
1603
1635
  breakdowns: {
@@ -1616,7 +1648,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1616
1648
  address: string;
1617
1649
  icon: string;
1618
1650
  decimals: number;
1651
+ displaySymbol: string;
1619
1652
  verified: boolean;
1653
+ isTest: boolean;
1620
1654
  price: number | null;
1621
1655
  }[];
1622
1656
  Protocols: {
@@ -124,14 +124,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
124
124
  address: string;
125
125
  icon: string;
126
126
  decimals: number;
127
+ displaySymbol: string;
127
128
  verified: boolean;
129
+ isTest: boolean;
128
130
  price: number | null;
129
131
  };
130
132
  amount: bigint;
131
133
  }[];
132
134
  };
133
135
  id: string;
134
- tokens: {
136
+ tokens: ({
135
137
  symbol: string;
136
138
  name: string | null;
137
139
  id: string;
@@ -140,8 +142,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
140
142
  icon: string;
141
143
  decimals: number;
142
144
  verified: boolean;
143
- price: number | null;
144
- }[];
145
+ isTest: boolean;
146
+ } & {
147
+ price?: number | null | undefined;
148
+ })[];
145
149
  chain: {
146
150
  name: string;
147
151
  id: number;
@@ -223,14 +227,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
223
227
  address: string;
224
228
  icon: string;
225
229
  decimals: number;
230
+ displaySymbol: string;
226
231
  verified: boolean;
232
+ isTest: boolean;
227
233
  price: number | null;
228
234
  };
229
235
  amount: bigint;
230
236
  }[];
231
237
  };
232
238
  id: string;
233
- tokens: {
239
+ tokens: ({
234
240
  symbol: string;
235
241
  name: string | null;
236
242
  id: string;
@@ -239,8 +245,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
239
245
  icon: string;
240
246
  decimals: number;
241
247
  verified: boolean;
242
- price: number | null;
243
- }[];
248
+ isTest: boolean;
249
+ } & {
250
+ price?: number | null | undefined;
251
+ })[];
244
252
  chain: {
245
253
  name: string;
246
254
  id: number;
@@ -280,7 +288,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
280
288
  icon: string;
281
289
  decimals: number;
282
290
  verified: boolean;
283
- price: number | null;
291
+ isTest: boolean;
292
+ } & {
293
+ price?: number | null | undefined;
284
294
  };
285
295
  distributionChain: {
286
296
  name: string;
@@ -332,6 +342,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
332
342
  action?: string | undefined;
333
343
  mainProtocolId?: string | undefined;
334
344
  order?: undefined;
345
+ test?: boolean | undefined;
335
346
  minimumTvl?: number | undefined;
336
347
  };
337
348
  headers: unknown;
@@ -377,14 +388,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
377
388
  address: string;
378
389
  icon: string;
379
390
  decimals: number;
391
+ displaySymbol: string;
380
392
  verified: boolean;
393
+ isTest: boolean;
381
394
  price: number | null;
382
395
  };
383
396
  amount: bigint;
384
397
  }[];
385
398
  };
386
399
  id: string;
387
- tokens: {
400
+ tokens: ({
388
401
  symbol: string;
389
402
  name: string | null;
390
403
  id: string;
@@ -393,8 +406,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
393
406
  icon: string;
394
407
  decimals: number;
395
408
  verified: boolean;
396
- price: number | null;
397
- }[];
409
+ isTest: boolean;
410
+ } & {
411
+ price?: number | null | undefined;
412
+ })[];
398
413
  chain: {
399
414
  name: string;
400
415
  id: number;
@@ -441,6 +456,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
441
456
  action?: string | undefined;
442
457
  mainProtocolId?: string | undefined;
443
458
  order?: undefined;
459
+ test?: boolean | undefined;
444
460
  minimumTvl?: number | undefined;
445
461
  };
446
462
  headers: unknown;
@@ -471,6 +487,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
471
487
  action?: string | undefined;
472
488
  mainProtocolId?: string | undefined;
473
489
  order?: undefined;
490
+ test?: boolean | undefined;
474
491
  minimumTvl?: number | undefined;
475
492
  };
476
493
  headers: unknown;
@@ -545,6 +562,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
545
562
  mainParameter?: string | undefined;
546
563
  campaignId?: string | undefined;
547
564
  opportunityId?: string | undefined;
565
+ test?: boolean | undefined;
548
566
  tokenSymbol?: string | undefined;
549
567
  };
550
568
  headers: unknown;
@@ -565,7 +583,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
565
583
  icon: string;
566
584
  decimals: number;
567
585
  verified: boolean;
568
- price: number | null;
586
+ isTest: boolean;
587
+ } & {
588
+ price?: number | null | undefined;
569
589
  };
570
590
  distributionChain: {
571
591
  name: string;
@@ -613,6 +633,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
613
633
  mainParameter?: string | undefined;
614
634
  campaignId?: string | undefined;
615
635
  opportunityId?: string | undefined;
636
+ test?: boolean | undefined;
616
637
  tokenSymbol?: string | undefined;
617
638
  };
618
639
  headers: unknown;
@@ -768,6 +789,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
768
789
  icon: string;
769
790
  decimals: number;
770
791
  verified: boolean;
792
+ isTest: boolean;
771
793
  price?: number | null | undefined;
772
794
  } | undefined;
773
795
  };
@@ -797,6 +819,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
797
819
  icon: string;
798
820
  decimals: number;
799
821
  verified: boolean;
822
+ isTest: boolean;
800
823
  } & {
801
824
  price?: number | null | undefined;
802
825
  } & {
@@ -818,10 +841,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
818
841
  chainId?: any;
819
842
  address?: string | undefined;
820
843
  verified?: boolean | undefined;
844
+ test?: boolean | undefined;
821
845
  };
822
846
  headers: unknown;
823
847
  response: {
824
- 200: ({
848
+ 200: {
825
849
  symbol: string;
826
850
  name: string | null;
827
851
  id: string;
@@ -829,10 +853,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
829
853
  address: string;
830
854
  icon: string;
831
855
  decimals: number;
856
+ displaySymbol: string;
832
857
  verified: boolean;
833
- } & {
834
- price?: number | null | undefined;
835
- })[];
858
+ isTest: boolean;
859
+ price: number | null;
860
+ }[];
836
861
  };
837
862
  };
838
863
  };
@@ -849,6 +874,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
849
874
  chainId?: any;
850
875
  address?: string | undefined;
851
876
  verified?: boolean | undefined;
877
+ test?: boolean | undefined;
852
878
  };
853
879
  headers: unknown;
854
880
  response: {
@@ -1492,7 +1518,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1492
1518
  address: string;
1493
1519
  icon: string;
1494
1520
  decimals: number;
1521
+ displaySymbol: string;
1495
1522
  verified: boolean;
1523
+ isTest: boolean;
1496
1524
  price: number | null;
1497
1525
  };
1498
1526
  breakdowns: {
@@ -1511,7 +1539,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1511
1539
  address: string;
1512
1540
  icon: string;
1513
1541
  decimals: number;
1542
+ displaySymbol: string;
1514
1543
  verified: boolean;
1544
+ isTest: boolean;
1515
1545
  price: number | null;
1516
1546
  }[];
1517
1547
  Protocols: {
@@ -1602,7 +1632,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1602
1632
  address: string;
1603
1633
  icon: string;
1604
1634
  decimals: number;
1635
+ displaySymbol: string;
1605
1636
  verified: boolean;
1637
+ isTest: boolean;
1606
1638
  price: number | null;
1607
1639
  };
1608
1640
  breakdowns: {
@@ -1621,7 +1653,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1621
1653
  address: string;
1622
1654
  icon: string;
1623
1655
  decimals: number;
1656
+ displaySymbol: string;
1624
1657
  verified: boolean;
1658
+ isTest: boolean;
1625
1659
  price: number | null;
1626
1660
  }[];
1627
1661
  Protocols: {