@merkl/api 0.10.168 → 0.10.170

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) 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/cache/declaration.d.ts +0 -30
  9. package/dist/src/cache/declaration.js +0 -30
  10. package/dist/src/eden/index.d.ts +167 -15
  11. package/dist/src/index.d.ts +59 -5
  12. package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +2 -2
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.js +2 -0
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -1
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleYTProcessor.d.ts +29 -0
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleYTProcessor.js +31 -0
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +3 -0
  19. package/dist/src/libs/positions/clamm/index.d.ts +1 -2
  20. package/dist/src/libs/positions/clamm/index.js +322 -330
  21. package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +1 -1
  22. package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js +1 -1
  23. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +1 -1
  24. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js +2 -2
  25. package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +1 -2
  26. package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +1 -4
  27. package/dist/src/libs/positions/euler/index.js +2 -3
  28. package/dist/src/libs/positions/index.js +1 -1
  29. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +6 -2
  30. package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
  31. package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
  32. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -0
  33. package/dist/src/modules/v4/campaign/campaign.repository.js +2 -1
  34. package/dist/src/modules/v4/campaign/campaign.service.d.ts +10 -5
  35. package/dist/src/modules/v4/campaign/campaign.service.js +10 -2
  36. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +20 -3
  37. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -1
  38. package/dist/src/modules/v4/opportunity/opportunity.model.js +1 -0
  39. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +83 -5
  40. package/dist/src/modules/v4/opportunity/opportunity.repository.js +31 -0
  41. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +162 -8
  42. package/dist/src/modules/v4/opportunity/opportunity.service.js +11 -0
  43. package/dist/src/modules/v4/position/implementations/AjnaPositionFetcher.d.ts +6 -0
  44. package/dist/src/modules/v4/position/implementations/AjnaPositionFetcher.js +90 -0
  45. package/dist/src/modules/v4/position/implementations/BadgerPositionFetcher.d.ts +6 -0
  46. package/dist/src/modules/v4/position/implementations/BadgerPositionFetcher.js +69 -0
  47. package/dist/src/modules/v4/position/implementations/ClammPositionFetcher.d.ts +6 -0
  48. package/dist/src/modules/v4/position/implementations/ClammPositionFetcher.js +71 -0
  49. package/dist/src/modules/v4/position/implementations/DolomitePositionFetcher.d.ts +6 -0
  50. package/dist/src/modules/v4/position/implementations/DolomitePositionFetcher.js +45 -0
  51. package/dist/src/modules/v4/position/implementations/ERC20PositionFetcher.d.ts +6 -0
  52. package/dist/src/modules/v4/position/implementations/ERC20PositionFetcher.js +47 -0
  53. package/dist/src/modules/v4/position/implementations/EulerPositionFetcher.d.ts +6 -0
  54. package/dist/src/modules/v4/position/implementations/EulerPositionFetcher.js +40 -0
  55. package/dist/src/modules/v4/position/index.d.ts +2 -0
  56. package/dist/src/modules/v4/position/index.js +2 -0
  57. package/dist/src/modules/v4/position/position.controller.d.ts +39 -0
  58. package/dist/src/modules/v4/position/position.controller.js +16 -0
  59. package/dist/src/modules/v4/position/position.model.d.ts +25 -0
  60. package/dist/src/modules/v4/position/position.model.js +5 -0
  61. package/dist/src/modules/v4/position/position.repository.d.ts +14 -0
  62. package/dist/src/modules/v4/position/position.repository.js +6 -0
  63. package/dist/src/modules/v4/position/position.service.d.ts +5 -0
  64. package/dist/src/modules/v4/position/position.service.js +34 -0
  65. package/dist/src/modules/v4/price/price.controller.js +1 -1
  66. package/dist/src/modules/v4/price/price.service.d.ts +1 -1
  67. package/dist/src/modules/v4/price/price.service.js +3 -3
  68. package/dist/src/modules/v4/reward/reward.repository.d.ts +4 -0
  69. package/dist/src/modules/v4/reward/reward.service.d.ts +27 -0
  70. package/dist/src/modules/v4/reward/reward.service.js +5 -2
  71. package/dist/src/modules/v4/router.d.ts +59 -5
  72. package/dist/src/modules/v4/router.js +3 -1
  73. package/dist/src/modules/v4/token/token.controller.d.ts +6 -0
  74. package/dist/src/modules/v4/token/token.service.d.ts +12 -0
  75. package/dist/src/modules/v4/user/user.controller.d.ts +8 -0
  76. package/dist/src/routes/v1/prices.js +2 -4
  77. package/dist/src/routes/v3/blacklist.d.ts +59 -5
  78. package/dist/src/routes/v3/campaigns.d.ts +60 -6
  79. package/dist/src/routes/v3/campaignsInfo.d.ts +59 -5
  80. package/dist/src/routes/v3/multiChainPositions.d.ts +59 -5
  81. package/dist/src/routes/v3/opportunity.d.ts +59 -5
  82. package/dist/src/routes/v3/positions.d.ts +59 -5
  83. package/dist/src/routes/v3/recipients.d.ts +6 -2
  84. package/dist/src/routes/v3/recipients.js +14 -8
  85. package/dist/src/routes/v3/rewards.d.ts +59 -5
  86. package/dist/src/routes/v3/updates.d.ts +59 -5
  87. package/dist/src/routes/v3/userRewards.d.ts +59 -5
  88. package/dist/src/utils/decodeCalls.js +4 -1
  89. package/dist/src/utils/encodeCalls.js +4 -1
  90. package/dist/src/utils/generateCardName.js +2 -0
  91. package/dist/src/utils/prices/services/erc4626Service.js +10 -4
  92. package/dist/tsconfig.package.tsbuildinfo +1 -1
  93. package/package.json +1 -1
  94. package/dist/src/libs/reports/campaignReport.d.ts +0 -9
  95. package/dist/src/libs/reports/campaignReport.js +0 -37
  96. package/dist/src/libs/reports/mainParameterRewards.d.ts +0 -3
  97. package/dist/src/libs/reports/mainParameterRewards.js +0 -48
@@ -142,7 +142,9 @@ 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;
@@ -157,7 +159,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
157
159
  address: string;
158
160
  icon: string;
159
161
  decimals: number;
162
+ displaySymbol: string;
160
163
  verified: boolean;
164
+ isTest: boolean;
161
165
  price: number | null;
162
166
  }[];
163
167
  chain: {
@@ -241,7 +245,9 @@ 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;
@@ -256,7 +262,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
256
262
  address: string;
257
263
  icon: string;
258
264
  decimals: number;
265
+ displaySymbol: string;
259
266
  verified: boolean;
267
+ isTest: boolean;
260
268
  price: number | null;
261
269
  }[];
262
270
  chain: {
@@ -282,7 +290,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
282
290
  tvl: number;
283
291
  apr: number;
284
292
  dailyRewards: number;
285
- campaigns: ({
293
+ campaigns: {
286
294
  params: any;
287
295
  chain: {
288
296
  name: string;
@@ -297,7 +305,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
297
305
  address: string;
298
306
  icon: string;
299
307
  decimals: number;
308
+ displaySymbol: string;
300
309
  verified: boolean;
310
+ isTest: boolean;
301
311
  price: number | null;
302
312
  };
303
313
  distributionChain: {
@@ -325,7 +335,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
325
335
  amount: string;
326
336
  opportunityId: string;
327
337
  creatorAddress: string;
328
- } | null)[];
338
+ }[];
329
339
  } | null | undefined;
330
340
  };
331
341
  };
@@ -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,7 +406,9 @@ 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;
@@ -410,7 +423,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
410
423
  address: string;
411
424
  icon: string;
412
425
  decimals: number;
426
+ displaySymbol: string;
413
427
  verified: boolean;
428
+ isTest: boolean;
414
429
  price: number | null;
415
430
  }[];
416
431
  chain: {
@@ -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,12 +505,13 @@ 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;
495
512
  response: {
496
513
  200: {
497
- sum: File;
514
+ sum: number | null;
498
515
  };
499
516
  };
500
517
  };
@@ -564,10 +581,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
564
581
  campaignId?: string | undefined;
565
582
  opportunityId?: string | undefined;
566
583
  tokenSymbol?: string | undefined;
584
+ test?: boolean | undefined;
567
585
  };
568
586
  headers: unknown;
569
587
  response: {
570
- 200: ({
588
+ 200: {
571
589
  params: any;
572
590
  chain: {
573
591
  name: string;
@@ -582,7 +600,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
582
600
  address: string;
583
601
  icon: string;
584
602
  decimals: number;
603
+ displaySymbol: string;
585
604
  verified: boolean;
605
+ isTest: boolean;
586
606
  price: number | null;
587
607
  };
588
608
  distributionChain: {
@@ -610,7 +630,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
610
630
  amount: string;
611
631
  opportunityId: string;
612
632
  creatorAddress: string;
613
- } | null)[];
633
+ }[];
614
634
  };
615
635
  };
616
636
  };
@@ -632,6 +652,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
632
652
  campaignId?: string | undefined;
633
653
  opportunityId?: string | undefined;
634
654
  tokenSymbol?: string | undefined;
655
+ test?: boolean | undefined;
635
656
  };
636
657
  headers: unknown;
637
658
  response: {
@@ -785,7 +806,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
785
806
  address: string;
786
807
  icon: string;
787
808
  decimals: number;
809
+ displaySymbol: string;
788
810
  verified: boolean;
811
+ isTest: boolean;
789
812
  price?: number | null | undefined;
790
813
  } | undefined;
791
814
  };
@@ -814,7 +837,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
814
837
  address: string;
815
838
  icon: string;
816
839
  decimals: number;
840
+ displaySymbol: string;
817
841
  verified: boolean;
842
+ isTest: boolean;
818
843
  } & {
819
844
  price?: number | null | undefined;
820
845
  } & {
@@ -847,7 +872,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
847
872
  address: string;
848
873
  icon: string;
849
874
  decimals: number;
875
+ displaySymbol: string;
850
876
  verified: boolean;
877
+ isTest: boolean;
851
878
  } & {
852
879
  price?: number | null | undefined;
853
880
  })[];
@@ -1510,7 +1537,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1510
1537
  address: string;
1511
1538
  icon: string;
1512
1539
  decimals: number;
1540
+ displaySymbol: string;
1513
1541
  verified: boolean;
1542
+ isTest: boolean;
1514
1543
  price: number | null;
1515
1544
  };
1516
1545
  breakdowns: {
@@ -1529,7 +1558,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1529
1558
  address: string;
1530
1559
  icon: string;
1531
1560
  decimals: number;
1561
+ displaySymbol: string;
1532
1562
  verified: boolean;
1563
+ isTest: boolean;
1533
1564
  price: number | null;
1534
1565
  }[];
1535
1566
  Protocols: {
@@ -1620,7 +1651,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1620
1651
  address: string;
1621
1652
  icon: string;
1622
1653
  decimals: number;
1654
+ displaySymbol: string;
1623
1655
  verified: boolean;
1656
+ isTest: boolean;
1624
1657
  price: number | null;
1625
1658
  };
1626
1659
  breakdowns: {
@@ -1639,7 +1672,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1639
1672
  address: string;
1640
1673
  icon: string;
1641
1674
  decimals: number;
1675
+ displaySymbol: string;
1642
1676
  verified: boolean;
1677
+ isTest: boolean;
1643
1678
  price: number | null;
1644
1679
  }[];
1645
1680
  Protocols: {
@@ -2235,6 +2270,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2235
2270
  };
2236
2271
  };
2237
2272
  };
2273
+ } & {
2274
+ v4: {
2275
+ positions: {
2276
+ index: {
2277
+ get: {
2278
+ body: unknown;
2279
+ params: {};
2280
+ query: {
2281
+ chainId: number;
2282
+ address: string;
2283
+ };
2284
+ headers: unknown;
2285
+ response: {
2286
+ 200: any[];
2287
+ };
2288
+ };
2289
+ };
2290
+ };
2291
+ };
2238
2292
  } & {
2239
2293
  index: {
2240
2294
  get: {
@@ -143,7 +143,9 @@ 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;
@@ -158,7 +160,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
158
160
  address: string;
159
161
  icon: string;
160
162
  decimals: number;
163
+ displaySymbol: string;
161
164
  verified: boolean;
165
+ isTest: boolean;
162
166
  price: number | null;
163
167
  }[];
164
168
  chain: {
@@ -242,7 +246,9 @@ 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;
@@ -257,7 +263,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
257
263
  address: string;
258
264
  icon: string;
259
265
  decimals: number;
266
+ displaySymbol: string;
260
267
  verified: boolean;
268
+ isTest: boolean;
261
269
  price: number | null;
262
270
  }[];
263
271
  chain: {
@@ -283,7 +291,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
283
291
  tvl: number;
284
292
  apr: number;
285
293
  dailyRewards: number;
286
- campaigns: ({
294
+ campaigns: {
287
295
  params: any;
288
296
  chain: {
289
297
  name: string;
@@ -298,7 +306,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
298
306
  address: string;
299
307
  icon: string;
300
308
  decimals: number;
309
+ displaySymbol: string;
301
310
  verified: boolean;
311
+ isTest: boolean;
302
312
  price: number | null;
303
313
  };
304
314
  distributionChain: {
@@ -326,7 +336,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
326
336
  amount: string;
327
337
  opportunityId: string;
328
338
  creatorAddress: string;
329
- } | null)[];
339
+ }[];
330
340
  } | null | undefined;
331
341
  };
332
342
  };
@@ -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,7 +407,9 @@ 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;
@@ -411,7 +424,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
411
424
  address: string;
412
425
  icon: string;
413
426
  decimals: number;
427
+ displaySymbol: string;
414
428
  verified: boolean;
429
+ isTest: boolean;
415
430
  price: number | null;
416
431
  }[];
417
432
  chain: {
@@ -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,12 +506,13 @@ 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;
496
513
  response: {
497
514
  200: {
498
- sum: File;
515
+ sum: number | null;
499
516
  };
500
517
  };
501
518
  };
@@ -565,10 +582,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
565
582
  campaignId?: string | undefined;
566
583
  opportunityId?: string | undefined;
567
584
  tokenSymbol?: string | undefined;
585
+ test?: boolean | undefined;
568
586
  };
569
587
  headers: unknown;
570
588
  response: {
571
- 200: ({
589
+ 200: {
572
590
  params: any;
573
591
  chain: {
574
592
  name: string;
@@ -583,7 +601,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
583
601
  address: string;
584
602
  icon: string;
585
603
  decimals: number;
604
+ displaySymbol: string;
586
605
  verified: boolean;
606
+ isTest: boolean;
587
607
  price: number | null;
588
608
  };
589
609
  distributionChain: {
@@ -611,7 +631,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
611
631
  amount: string;
612
632
  opportunityId: string;
613
633
  creatorAddress: string;
614
- } | null)[];
634
+ }[];
615
635
  };
616
636
  };
617
637
  };
@@ -633,6 +653,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
633
653
  campaignId?: string | undefined;
634
654
  opportunityId?: string | undefined;
635
655
  tokenSymbol?: string | undefined;
656
+ test?: boolean | undefined;
636
657
  };
637
658
  headers: unknown;
638
659
  response: {
@@ -786,7 +807,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
786
807
  address: string;
787
808
  icon: string;
788
809
  decimals: number;
810
+ displaySymbol: string;
789
811
  verified: boolean;
812
+ isTest: boolean;
790
813
  price?: number | null | undefined;
791
814
  } | undefined;
792
815
  };
@@ -815,7 +838,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
815
838
  address: string;
816
839
  icon: string;
817
840
  decimals: number;
841
+ displaySymbol: string;
818
842
  verified: boolean;
843
+ isTest: boolean;
819
844
  } & {
820
845
  price?: number | null | undefined;
821
846
  } & {
@@ -848,7 +873,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
848
873
  address: string;
849
874
  icon: string;
850
875
  decimals: number;
876
+ displaySymbol: string;
851
877
  verified: boolean;
878
+ isTest: boolean;
852
879
  } & {
853
880
  price?: number | null | undefined;
854
881
  })[];
@@ -1511,7 +1538,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1511
1538
  address: string;
1512
1539
  icon: string;
1513
1540
  decimals: number;
1541
+ displaySymbol: string;
1514
1542
  verified: boolean;
1543
+ isTest: boolean;
1515
1544
  price: number | null;
1516
1545
  };
1517
1546
  breakdowns: {
@@ -1530,7 +1559,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1530
1559
  address: string;
1531
1560
  icon: string;
1532
1561
  decimals: number;
1562
+ displaySymbol: string;
1533
1563
  verified: boolean;
1564
+ isTest: boolean;
1534
1565
  price: number | null;
1535
1566
  }[];
1536
1567
  Protocols: {
@@ -1621,7 +1652,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1621
1652
  address: string;
1622
1653
  icon: string;
1623
1654
  decimals: number;
1655
+ displaySymbol: string;
1624
1656
  verified: boolean;
1657
+ isTest: boolean;
1625
1658
  price: number | null;
1626
1659
  };
1627
1660
  breakdowns: {
@@ -1640,7 +1673,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1640
1673
  address: string;
1641
1674
  icon: string;
1642
1675
  decimals: number;
1676
+ displaySymbol: string;
1643
1677
  verified: boolean;
1678
+ isTest: boolean;
1644
1679
  price: number | null;
1645
1680
  }[];
1646
1681
  Protocols: {
@@ -2236,6 +2271,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2236
2271
  };
2237
2272
  };
2238
2273
  };
2274
+ } & {
2275
+ v4: {
2276
+ positions: {
2277
+ index: {
2278
+ get: {
2279
+ body: unknown;
2280
+ params: {};
2281
+ query: {
2282
+ chainId: number;
2283
+ address: string;
2284
+ };
2285
+ headers: unknown;
2286
+ response: {
2287
+ 200: any[];
2288
+ };
2289
+ };
2290
+ };
2291
+ };
2292
+ };
2239
2293
  } & {
2240
2294
  index: {
2241
2295
  get: {
@@ -1,5 +1,4 @@
1
1
  import { type Elysia } from "elysia";
2
- import type { RewardsAmountQueryOutput } from "../../utils/queries/rewardsAmount";
3
2
  declare const _default: (app: Elysia) => Elysia<"", false, {
4
3
  decorator: {};
5
4
  store: {};
@@ -23,7 +22,12 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
23
22
  };
24
23
  headers: unknown;
25
24
  response: {
26
- 200: RewardsAmountQueryOutput;
25
+ 200: {
26
+ recipient: string;
27
+ reason: string;
28
+ rewardToken: string;
29
+ amount: string;
30
+ }[];
27
31
  };
28
32
  };
29
33
  };
@@ -1,16 +1,22 @@
1
- import { getCampaignRewardsWithCache } from "../../libs/reports/campaignReport";
1
+ import { RewardService } from "../../modules/v4/reward";
2
2
  import { t } from "elysia";
3
3
  import checkQueryChainIdValidity from "../../hooks/checkQueryChainIdValidity";
4
- import { merklChainDataWithCache } from "../../libs/merklChainData";
5
4
  export default (app) => app.use(checkQueryChainIdValidity()).get("", async ({ query }) => {
6
5
  const campaignId = query.campaignId;
7
6
  const chainId = query.chainId;
8
- const root = (await merklChainDataWithCache(chainId)).merkleRoot;
9
- let recipients = [];
10
- if (!!root) {
11
- recipients = await getCampaignRewardsWithCache(chainId, root, campaignId);
12
- }
13
- return recipients;
7
+ return (await RewardService.breakdownForCampaign({
8
+ campaignId,
9
+ chainId,
10
+ items: 10_000,
11
+ page: 0,
12
+ })).map(x => {
13
+ return {
14
+ recipient: x.recipient,
15
+ reason: x.reason,
16
+ rewardToken: x.rewardTokenAddress,
17
+ amount: x.amount,
18
+ };
19
+ });
14
20
  }, {
15
21
  query: t.Object({
16
22
  campaignId: t.String(),