@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
@@ -142,14 +142,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
142
142
  address: string;
143
143
  icon: string;
144
144
  decimals: number;
145
+ displaySymbol: string;
145
146
  verified: boolean;
147
+ isTest: boolean;
146
148
  price: number | null;
147
149
  };
148
150
  amount: bigint;
149
151
  }[];
150
152
  };
151
153
  id: string;
152
- tokens: {
154
+ tokens: ({
153
155
  symbol: string;
154
156
  name: string | null;
155
157
  id: string;
@@ -158,8 +160,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
158
160
  icon: string;
159
161
  decimals: number;
160
162
  verified: boolean;
161
- price: number | null;
162
- }[];
163
+ isTest: boolean;
164
+ } & {
165
+ price?: number | null | undefined;
166
+ })[];
163
167
  chain: {
164
168
  name: string;
165
169
  id: number;
@@ -241,14 +245,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
241
245
  address: string;
242
246
  icon: string;
243
247
  decimals: number;
248
+ displaySymbol: string;
244
249
  verified: boolean;
250
+ isTest: boolean;
245
251
  price: number | null;
246
252
  };
247
253
  amount: bigint;
248
254
  }[];
249
255
  };
250
256
  id: string;
251
- tokens: {
257
+ tokens: ({
252
258
  symbol: string;
253
259
  name: string | null;
254
260
  id: string;
@@ -257,8 +263,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
257
263
  icon: string;
258
264
  decimals: number;
259
265
  verified: boolean;
260
- price: number | null;
261
- }[];
266
+ isTest: boolean;
267
+ } & {
268
+ price?: number | null | undefined;
269
+ })[];
262
270
  chain: {
263
271
  name: string;
264
272
  id: number;
@@ -298,7 +306,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
298
306
  icon: string;
299
307
  decimals: number;
300
308
  verified: boolean;
301
- price: number | null;
309
+ isTest: boolean;
310
+ } & {
311
+ price?: number | null | undefined;
302
312
  };
303
313
  distributionChain: {
304
314
  name: string;
@@ -350,6 +360,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
350
360
  action?: string | undefined;
351
361
  mainProtocolId?: string | undefined;
352
362
  order?: undefined;
363
+ test?: boolean | undefined;
353
364
  minimumTvl?: number | undefined;
354
365
  };
355
366
  headers: unknown;
@@ -395,14 +406,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
395
406
  address: string;
396
407
  icon: string;
397
408
  decimals: number;
409
+ displaySymbol: string;
398
410
  verified: boolean;
411
+ isTest: boolean;
399
412
  price: number | null;
400
413
  };
401
414
  amount: bigint;
402
415
  }[];
403
416
  };
404
417
  id: string;
405
- tokens: {
418
+ tokens: ({
406
419
  symbol: string;
407
420
  name: string | null;
408
421
  id: string;
@@ -411,8 +424,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
411
424
  icon: string;
412
425
  decimals: number;
413
426
  verified: boolean;
414
- price: number | null;
415
- }[];
427
+ isTest: boolean;
428
+ } & {
429
+ price?: number | null | undefined;
430
+ })[];
416
431
  chain: {
417
432
  name: string;
418
433
  id: number;
@@ -459,6 +474,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
459
474
  action?: string | undefined;
460
475
  mainProtocolId?: string | undefined;
461
476
  order?: undefined;
477
+ test?: boolean | undefined;
462
478
  minimumTvl?: number | undefined;
463
479
  };
464
480
  headers: unknown;
@@ -489,6 +505,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
489
505
  action?: string | undefined;
490
506
  mainProtocolId?: string | undefined;
491
507
  order?: undefined;
508
+ test?: boolean | undefined;
492
509
  minimumTvl?: number | undefined;
493
510
  };
494
511
  headers: unknown;
@@ -563,6 +580,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
563
580
  mainParameter?: string | undefined;
564
581
  campaignId?: string | undefined;
565
582
  opportunityId?: string | undefined;
583
+ test?: boolean | undefined;
566
584
  tokenSymbol?: string | undefined;
567
585
  };
568
586
  headers: unknown;
@@ -583,7 +601,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
583
601
  icon: string;
584
602
  decimals: number;
585
603
  verified: boolean;
586
- price: number | null;
604
+ isTest: boolean;
605
+ } & {
606
+ price?: number | null | undefined;
587
607
  };
588
608
  distributionChain: {
589
609
  name: string;
@@ -631,6 +651,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
631
651
  mainParameter?: string | undefined;
632
652
  campaignId?: string | undefined;
633
653
  opportunityId?: string | undefined;
654
+ test?: boolean | undefined;
634
655
  tokenSymbol?: string | undefined;
635
656
  };
636
657
  headers: unknown;
@@ -786,6 +807,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
786
807
  icon: string;
787
808
  decimals: number;
788
809
  verified: boolean;
810
+ isTest: boolean;
789
811
  price?: number | null | undefined;
790
812
  } | undefined;
791
813
  };
@@ -815,6 +837,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
815
837
  icon: string;
816
838
  decimals: number;
817
839
  verified: boolean;
840
+ isTest: boolean;
818
841
  } & {
819
842
  price?: number | null | undefined;
820
843
  } & {
@@ -836,10 +859,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
836
859
  chainId?: any;
837
860
  address?: string | undefined;
838
861
  verified?: boolean | undefined;
862
+ test?: boolean | undefined;
839
863
  };
840
864
  headers: unknown;
841
865
  response: {
842
- 200: ({
866
+ 200: {
843
867
  symbol: string;
844
868
  name: string | null;
845
869
  id: string;
@@ -847,10 +871,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
847
871
  address: string;
848
872
  icon: string;
849
873
  decimals: number;
874
+ displaySymbol: string;
850
875
  verified: boolean;
851
- } & {
852
- price?: number | null | undefined;
853
- })[];
876
+ isTest: boolean;
877
+ price: number | null;
878
+ }[];
854
879
  };
855
880
  };
856
881
  };
@@ -867,6 +892,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
867
892
  chainId?: any;
868
893
  address?: string | undefined;
869
894
  verified?: boolean | undefined;
895
+ test?: boolean | undefined;
870
896
  };
871
897
  headers: unknown;
872
898
  response: {
@@ -1510,7 +1536,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1510
1536
  address: string;
1511
1537
  icon: string;
1512
1538
  decimals: number;
1539
+ displaySymbol: string;
1513
1540
  verified: boolean;
1541
+ isTest: boolean;
1514
1542
  price: number | null;
1515
1543
  };
1516
1544
  breakdowns: {
@@ -1529,7 +1557,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1529
1557
  address: string;
1530
1558
  icon: string;
1531
1559
  decimals: number;
1560
+ displaySymbol: string;
1532
1561
  verified: boolean;
1562
+ isTest: boolean;
1533
1563
  price: number | null;
1534
1564
  }[];
1535
1565
  Protocols: {
@@ -1620,7 +1650,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1620
1650
  address: string;
1621
1651
  icon: string;
1622
1652
  decimals: number;
1653
+ displaySymbol: string;
1623
1654
  verified: boolean;
1655
+ isTest: boolean;
1624
1656
  price: number | null;
1625
1657
  };
1626
1658
  breakdowns: {
@@ -1639,7 +1671,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1639
1671
  address: string;
1640
1672
  icon: string;
1641
1673
  decimals: number;
1674
+ displaySymbol: string;
1642
1675
  verified: boolean;
1676
+ isTest: boolean;
1643
1677
  price: number | null;
1644
1678
  }[];
1645
1679
  Protocols: {
@@ -143,14 +143,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
143
143
  address: string;
144
144
  icon: string;
145
145
  decimals: number;
146
+ displaySymbol: string;
146
147
  verified: boolean;
148
+ isTest: boolean;
147
149
  price: number | null;
148
150
  };
149
151
  amount: bigint;
150
152
  }[];
151
153
  };
152
154
  id: string;
153
- tokens: {
155
+ tokens: ({
154
156
  symbol: string;
155
157
  name: string | null;
156
158
  id: string;
@@ -159,8 +161,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
159
161
  icon: string;
160
162
  decimals: number;
161
163
  verified: boolean;
162
- price: number | null;
163
- }[];
164
+ isTest: boolean;
165
+ } & {
166
+ price?: number | null | undefined;
167
+ })[];
164
168
  chain: {
165
169
  name: string;
166
170
  id: number;
@@ -242,14 +246,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
242
246
  address: string;
243
247
  icon: string;
244
248
  decimals: number;
249
+ displaySymbol: string;
245
250
  verified: boolean;
251
+ isTest: boolean;
246
252
  price: number | null;
247
253
  };
248
254
  amount: bigint;
249
255
  }[];
250
256
  };
251
257
  id: string;
252
- tokens: {
258
+ tokens: ({
253
259
  symbol: string;
254
260
  name: string | null;
255
261
  id: string;
@@ -258,8 +264,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
258
264
  icon: string;
259
265
  decimals: number;
260
266
  verified: boolean;
261
- price: number | null;
262
- }[];
267
+ isTest: boolean;
268
+ } & {
269
+ price?: number | null | undefined;
270
+ })[];
263
271
  chain: {
264
272
  name: string;
265
273
  id: number;
@@ -299,7 +307,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
299
307
  icon: string;
300
308
  decimals: number;
301
309
  verified: boolean;
302
- price: number | null;
310
+ isTest: boolean;
311
+ } & {
312
+ price?: number | null | undefined;
303
313
  };
304
314
  distributionChain: {
305
315
  name: string;
@@ -351,6 +361,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
351
361
  action?: string | undefined;
352
362
  mainProtocolId?: string | undefined;
353
363
  order?: undefined;
364
+ test?: boolean | undefined;
354
365
  minimumTvl?: number | undefined;
355
366
  };
356
367
  headers: unknown;
@@ -396,14 +407,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
396
407
  address: string;
397
408
  icon: string;
398
409
  decimals: number;
410
+ displaySymbol: string;
399
411
  verified: boolean;
412
+ isTest: boolean;
400
413
  price: number | null;
401
414
  };
402
415
  amount: bigint;
403
416
  }[];
404
417
  };
405
418
  id: string;
406
- tokens: {
419
+ tokens: ({
407
420
  symbol: string;
408
421
  name: string | null;
409
422
  id: string;
@@ -412,8 +425,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
412
425
  icon: string;
413
426
  decimals: number;
414
427
  verified: boolean;
415
- price: number | null;
416
- }[];
428
+ isTest: boolean;
429
+ } & {
430
+ price?: number | null | undefined;
431
+ })[];
417
432
  chain: {
418
433
  name: string;
419
434
  id: number;
@@ -460,6 +475,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
460
475
  action?: string | undefined;
461
476
  mainProtocolId?: string | undefined;
462
477
  order?: undefined;
478
+ test?: boolean | undefined;
463
479
  minimumTvl?: number | undefined;
464
480
  };
465
481
  headers: unknown;
@@ -490,6 +506,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
490
506
  action?: string | undefined;
491
507
  mainProtocolId?: string | undefined;
492
508
  order?: undefined;
509
+ test?: boolean | undefined;
493
510
  minimumTvl?: number | undefined;
494
511
  };
495
512
  headers: unknown;
@@ -564,6 +581,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
564
581
  mainParameter?: string | undefined;
565
582
  campaignId?: string | undefined;
566
583
  opportunityId?: string | undefined;
584
+ test?: boolean | undefined;
567
585
  tokenSymbol?: string | undefined;
568
586
  };
569
587
  headers: unknown;
@@ -584,7 +602,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
584
602
  icon: string;
585
603
  decimals: number;
586
604
  verified: boolean;
587
- price: number | null;
605
+ isTest: boolean;
606
+ } & {
607
+ price?: number | null | undefined;
588
608
  };
589
609
  distributionChain: {
590
610
  name: string;
@@ -632,6 +652,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
632
652
  mainParameter?: string | undefined;
633
653
  campaignId?: string | undefined;
634
654
  opportunityId?: string | undefined;
655
+ test?: boolean | undefined;
635
656
  tokenSymbol?: string | undefined;
636
657
  };
637
658
  headers: unknown;
@@ -787,6 +808,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
787
808
  icon: string;
788
809
  decimals: number;
789
810
  verified: boolean;
811
+ isTest: boolean;
790
812
  price?: number | null | undefined;
791
813
  } | undefined;
792
814
  };
@@ -816,6 +838,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
816
838
  icon: string;
817
839
  decimals: number;
818
840
  verified: boolean;
841
+ isTest: boolean;
819
842
  } & {
820
843
  price?: number | null | undefined;
821
844
  } & {
@@ -837,10 +860,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
837
860
  chainId?: any;
838
861
  address?: string | undefined;
839
862
  verified?: boolean | undefined;
863
+ test?: boolean | undefined;
840
864
  };
841
865
  headers: unknown;
842
866
  response: {
843
- 200: ({
867
+ 200: {
844
868
  symbol: string;
845
869
  name: string | null;
846
870
  id: string;
@@ -848,10 +872,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
848
872
  address: string;
849
873
  icon: string;
850
874
  decimals: number;
875
+ displaySymbol: string;
851
876
  verified: boolean;
852
- } & {
853
- price?: number | null | undefined;
854
- })[];
877
+ isTest: boolean;
878
+ price: number | null;
879
+ }[];
855
880
  };
856
881
  };
857
882
  };
@@ -868,6 +893,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
868
893
  chainId?: any;
869
894
  address?: string | undefined;
870
895
  verified?: boolean | undefined;
896
+ test?: boolean | undefined;
871
897
  };
872
898
  headers: unknown;
873
899
  response: {
@@ -1511,7 +1537,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1511
1537
  address: string;
1512
1538
  icon: string;
1513
1539
  decimals: number;
1540
+ displaySymbol: string;
1514
1541
  verified: boolean;
1542
+ isTest: boolean;
1515
1543
  price: number | null;
1516
1544
  };
1517
1545
  breakdowns: {
@@ -1530,7 +1558,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1530
1558
  address: string;
1531
1559
  icon: string;
1532
1560
  decimals: number;
1561
+ displaySymbol: string;
1533
1562
  verified: boolean;
1563
+ isTest: boolean;
1534
1564
  price: number | null;
1535
1565
  }[];
1536
1566
  Protocols: {
@@ -1621,7 +1651,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1621
1651
  address: string;
1622
1652
  icon: string;
1623
1653
  decimals: number;
1654
+ displaySymbol: string;
1624
1655
  verified: boolean;
1656
+ isTest: boolean;
1625
1657
  price: number | null;
1626
1658
  };
1627
1659
  breakdowns: {
@@ -1640,7 +1672,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1640
1672
  address: string;
1641
1673
  icon: string;
1642
1674
  decimals: number;
1675
+ displaySymbol: string;
1643
1676
  verified: boolean;
1677
+ isTest: boolean;
1644
1678
  price: number | null;
1645
1679
  }[];
1646
1680
  Protocols: {