@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
@@ -125,14 +125,16 @@ 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;
132
134
  }[];
133
135
  };
134
136
  id: string;
135
- tokens: {
137
+ tokens: ({
136
138
  symbol: string;
137
139
  name: string | null;
138
140
  id: string;
@@ -141,8 +143,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
141
143
  icon: string;
142
144
  decimals: number;
143
145
  verified: boolean;
144
- price: number | null;
145
- }[];
146
+ isTest: boolean;
147
+ } & {
148
+ price?: number | null | undefined;
149
+ })[];
146
150
  chain: {
147
151
  name: string;
148
152
  id: number;
@@ -224,14 +228,16 @@ 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;
231
237
  }[];
232
238
  };
233
239
  id: string;
234
- tokens: {
240
+ tokens: ({
235
241
  symbol: string;
236
242
  name: string | null;
237
243
  id: string;
@@ -240,8 +246,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
240
246
  icon: string;
241
247
  decimals: number;
242
248
  verified: boolean;
243
- price: number | null;
244
- }[];
249
+ isTest: boolean;
250
+ } & {
251
+ price?: number | null | undefined;
252
+ })[];
245
253
  chain: {
246
254
  name: string;
247
255
  id: number;
@@ -281,7 +289,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
281
289
  icon: string;
282
290
  decimals: number;
283
291
  verified: boolean;
284
- price: number | null;
292
+ isTest: boolean;
293
+ } & {
294
+ price?: number | null | undefined;
285
295
  };
286
296
  distributionChain: {
287
297
  name: string;
@@ -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,14 +389,16 @@ 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;
385
398
  }[];
386
399
  };
387
400
  id: string;
388
- tokens: {
401
+ tokens: ({
389
402
  symbol: string;
390
403
  name: string | null;
391
404
  id: string;
@@ -394,8 +407,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
394
407
  icon: string;
395
408
  decimals: number;
396
409
  verified: boolean;
397
- price: number | null;
398
- }[];
410
+ isTest: boolean;
411
+ } & {
412
+ price?: number | null | undefined;
413
+ })[];
399
414
  chain: {
400
415
  name: string;
401
416
  id: number;
@@ -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,6 +488,7 @@ 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;
@@ -546,6 +563,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
546
563
  mainParameter?: string | undefined;
547
564
  campaignId?: string | undefined;
548
565
  opportunityId?: string | undefined;
566
+ test?: boolean | undefined;
549
567
  tokenSymbol?: string | undefined;
550
568
  };
551
569
  headers: unknown;
@@ -566,7 +584,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
566
584
  icon: string;
567
585
  decimals: number;
568
586
  verified: boolean;
569
- price: number | null;
587
+ isTest: boolean;
588
+ } & {
589
+ price?: number | null | undefined;
570
590
  };
571
591
  distributionChain: {
572
592
  name: string;
@@ -614,6 +634,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
614
634
  mainParameter?: string | undefined;
615
635
  campaignId?: string | undefined;
616
636
  opportunityId?: string | undefined;
637
+ test?: boolean | undefined;
617
638
  tokenSymbol?: string | undefined;
618
639
  };
619
640
  headers: unknown;
@@ -769,6 +790,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
769
790
  icon: string;
770
791
  decimals: number;
771
792
  verified: boolean;
793
+ isTest: boolean;
772
794
  price?: number | null | undefined;
773
795
  } | undefined;
774
796
  };
@@ -798,6 +820,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
798
820
  icon: string;
799
821
  decimals: number;
800
822
  verified: boolean;
823
+ isTest: boolean;
801
824
  } & {
802
825
  price?: number | null | undefined;
803
826
  } & {
@@ -819,10 +842,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
819
842
  chainId?: any;
820
843
  address?: string | undefined;
821
844
  verified?: boolean | undefined;
845
+ test?: boolean | undefined;
822
846
  };
823
847
  headers: unknown;
824
848
  response: {
825
- 200: ({
849
+ 200: {
826
850
  symbol: string;
827
851
  name: string | null;
828
852
  id: string;
@@ -830,10 +854,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
830
854
  address: string;
831
855
  icon: string;
832
856
  decimals: number;
857
+ displaySymbol: string;
833
858
  verified: boolean;
834
- } & {
835
- price?: number | null | undefined;
836
- })[];
859
+ isTest: boolean;
860
+ price: number | null;
861
+ }[];
837
862
  };
838
863
  };
839
864
  };
@@ -850,6 +875,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
850
875
  chainId?: any;
851
876
  address?: string | undefined;
852
877
  verified?: boolean | undefined;
878
+ test?: boolean | undefined;
853
879
  };
854
880
  headers: unknown;
855
881
  response: {
@@ -1493,7 +1519,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1493
1519
  address: string;
1494
1520
  icon: string;
1495
1521
  decimals: number;
1522
+ displaySymbol: string;
1496
1523
  verified: boolean;
1524
+ isTest: boolean;
1497
1525
  price: number | null;
1498
1526
  };
1499
1527
  breakdowns: {
@@ -1512,7 +1540,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1512
1540
  address: string;
1513
1541
  icon: string;
1514
1542
  decimals: number;
1543
+ displaySymbol: string;
1515
1544
  verified: boolean;
1545
+ isTest: boolean;
1516
1546
  price: number | null;
1517
1547
  }[];
1518
1548
  Protocols: {
@@ -1603,7 +1633,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1603
1633
  address: string;
1604
1634
  icon: string;
1605
1635
  decimals: number;
1636
+ displaySymbol: string;
1606
1637
  verified: boolean;
1638
+ isTest: boolean;
1607
1639
  price: number | null;
1608
1640
  };
1609
1641
  breakdowns: {
@@ -1622,7 +1654,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1622
1654
  address: string;
1623
1655
  icon: string;
1624
1656
  decimals: number;
1657
+ displaySymbol: string;
1625
1658
  verified: boolean;
1659
+ isTest: boolean;
1626
1660
  price: number | null;
1627
1661
  }[];
1628
1662
  Protocols: {
@@ -126,14 +126,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
126
126
  address: string;
127
127
  icon: string;
128
128
  decimals: number;
129
+ displaySymbol: string;
129
130
  verified: boolean;
131
+ isTest: boolean;
130
132
  price: number | null;
131
133
  };
132
134
  amount: bigint;
133
135
  }[];
134
136
  };
135
137
  id: string;
136
- tokens: {
138
+ tokens: ({
137
139
  symbol: string;
138
140
  name: string | null;
139
141
  id: string;
@@ -142,8 +144,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
142
144
  icon: string;
143
145
  decimals: number;
144
146
  verified: boolean;
145
- price: number | null;
146
- }[];
147
+ isTest: boolean;
148
+ } & {
149
+ price?: number | null | undefined;
150
+ })[];
147
151
  chain: {
148
152
  name: string;
149
153
  id: number;
@@ -225,14 +229,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
225
229
  address: string;
226
230
  icon: string;
227
231
  decimals: number;
232
+ displaySymbol: string;
228
233
  verified: boolean;
234
+ isTest: boolean;
229
235
  price: number | null;
230
236
  };
231
237
  amount: bigint;
232
238
  }[];
233
239
  };
234
240
  id: string;
235
- tokens: {
241
+ tokens: ({
236
242
  symbol: string;
237
243
  name: string | null;
238
244
  id: string;
@@ -241,8 +247,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
241
247
  icon: string;
242
248
  decimals: number;
243
249
  verified: boolean;
244
- price: number | null;
245
- }[];
250
+ isTest: boolean;
251
+ } & {
252
+ price?: number | null | undefined;
253
+ })[];
246
254
  chain: {
247
255
  name: string;
248
256
  id: number;
@@ -282,7 +290,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
282
290
  icon: string;
283
291
  decimals: number;
284
292
  verified: boolean;
285
- price: number | null;
293
+ isTest: boolean;
294
+ } & {
295
+ price?: number | null | undefined;
286
296
  };
287
297
  distributionChain: {
288
298
  name: string;
@@ -334,6 +344,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
334
344
  action?: string | undefined;
335
345
  mainProtocolId?: string | undefined;
336
346
  order?: undefined;
347
+ test?: boolean | undefined;
337
348
  minimumTvl?: number | undefined;
338
349
  };
339
350
  headers: unknown;
@@ -379,14 +390,16 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
379
390
  address: string;
380
391
  icon: string;
381
392
  decimals: number;
393
+ displaySymbol: string;
382
394
  verified: boolean;
395
+ isTest: boolean;
383
396
  price: number | null;
384
397
  };
385
398
  amount: bigint;
386
399
  }[];
387
400
  };
388
401
  id: string;
389
- tokens: {
402
+ tokens: ({
390
403
  symbol: string;
391
404
  name: string | null;
392
405
  id: string;
@@ -395,8 +408,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
395
408
  icon: string;
396
409
  decimals: number;
397
410
  verified: boolean;
398
- price: number | null;
399
- }[];
411
+ isTest: boolean;
412
+ } & {
413
+ price?: number | null | undefined;
414
+ })[];
400
415
  chain: {
401
416
  name: string;
402
417
  id: number;
@@ -443,6 +458,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
443
458
  action?: string | undefined;
444
459
  mainProtocolId?: string | undefined;
445
460
  order?: undefined;
461
+ test?: boolean | undefined;
446
462
  minimumTvl?: number | undefined;
447
463
  };
448
464
  headers: unknown;
@@ -473,6 +489,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
473
489
  action?: string | undefined;
474
490
  mainProtocolId?: string | undefined;
475
491
  order?: undefined;
492
+ test?: boolean | undefined;
476
493
  minimumTvl?: number | undefined;
477
494
  };
478
495
  headers: unknown;
@@ -547,6 +564,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
547
564
  mainParameter?: string | undefined;
548
565
  campaignId?: string | undefined;
549
566
  opportunityId?: string | undefined;
567
+ test?: boolean | undefined;
550
568
  tokenSymbol?: string | undefined;
551
569
  };
552
570
  headers: unknown;
@@ -567,7 +585,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
567
585
  icon: string;
568
586
  decimals: number;
569
587
  verified: boolean;
570
- price: number | null;
588
+ isTest: boolean;
589
+ } & {
590
+ price?: number | null | undefined;
571
591
  };
572
592
  distributionChain: {
573
593
  name: string;
@@ -615,6 +635,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
615
635
  mainParameter?: string | undefined;
616
636
  campaignId?: string | undefined;
617
637
  opportunityId?: string | undefined;
638
+ test?: boolean | undefined;
618
639
  tokenSymbol?: string | undefined;
619
640
  };
620
641
  headers: unknown;
@@ -770,6 +791,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
770
791
  icon: string;
771
792
  decimals: number;
772
793
  verified: boolean;
794
+ isTest: boolean;
773
795
  price?: number | null | undefined;
774
796
  } | undefined;
775
797
  };
@@ -799,6 +821,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
799
821
  icon: string;
800
822
  decimals: number;
801
823
  verified: boolean;
824
+ isTest: boolean;
802
825
  } & {
803
826
  price?: number | null | undefined;
804
827
  } & {
@@ -820,10 +843,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
820
843
  chainId?: any;
821
844
  address?: string | undefined;
822
845
  verified?: boolean | undefined;
846
+ test?: boolean | undefined;
823
847
  };
824
848
  headers: unknown;
825
849
  response: {
826
- 200: ({
850
+ 200: {
827
851
  symbol: string;
828
852
  name: string | null;
829
853
  id: string;
@@ -831,10 +855,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
831
855
  address: string;
832
856
  icon: string;
833
857
  decimals: number;
858
+ displaySymbol: string;
834
859
  verified: boolean;
835
- } & {
836
- price?: number | null | undefined;
837
- })[];
860
+ isTest: boolean;
861
+ price: number | null;
862
+ }[];
838
863
  };
839
864
  };
840
865
  };
@@ -851,6 +876,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
851
876
  chainId?: any;
852
877
  address?: string | undefined;
853
878
  verified?: boolean | undefined;
879
+ test?: boolean | undefined;
854
880
  };
855
881
  headers: unknown;
856
882
  response: {
@@ -1494,7 +1520,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1494
1520
  address: string;
1495
1521
  icon: string;
1496
1522
  decimals: number;
1523
+ displaySymbol: string;
1497
1524
  verified: boolean;
1525
+ isTest: boolean;
1498
1526
  price: number | null;
1499
1527
  };
1500
1528
  breakdowns: {
@@ -1513,7 +1541,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1513
1541
  address: string;
1514
1542
  icon: string;
1515
1543
  decimals: number;
1544
+ displaySymbol: string;
1516
1545
  verified: boolean;
1546
+ isTest: boolean;
1517
1547
  price: number | null;
1518
1548
  }[];
1519
1549
  Protocols: {
@@ -1604,7 +1634,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1604
1634
  address: string;
1605
1635
  icon: string;
1606
1636
  decimals: number;
1637
+ displaySymbol: string;
1607
1638
  verified: boolean;
1639
+ isTest: boolean;
1608
1640
  price: number | null;
1609
1641
  };
1610
1642
  breakdowns: {
@@ -1623,7 +1655,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1623
1655
  address: string;
1624
1656
  icon: string;
1625
1657
  decimals: number;
1658
+ displaySymbol: string;
1626
1659
  verified: boolean;
1660
+ isTest: boolean;
1627
1661
  price: number | null;
1628
1662
  }[];
1629
1663
  Protocols: {