@merkl/api 0.20.0 → 0.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/database/api/.generated/drizzle/schema.d.ts +28 -28
  2. package/dist/database/api/.generated/drizzle/schema.js +11 -11
  3. package/dist/database/api/.generated/drizzle/schema.ts +11 -11
  4. package/dist/database/api/.generated/edge.js +5 -5
  5. package/dist/database/api/.generated/index-browser.js +2 -2
  6. package/dist/database/api/.generated/index.d.ts +151 -154
  7. package/dist/database/api/.generated/index.js +5 -5
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/schema.prisma +11 -11
  10. package/dist/database/api/.generated/wasm.js +2 -2
  11. package/dist/src/eden/index.d.ts +2088 -667
  12. package/dist/src/engine/opportunityMetadata/implementations/Clamm.d.ts +1 -0
  13. package/dist/src/engine/opportunityMetadata/implementations/Clamm.js +1 -0
  14. package/dist/src/engine/opportunityMetadata/implementations/Dolomite.d.ts +1 -0
  15. package/dist/src/engine/opportunityMetadata/implementations/Dolomite.js +2 -0
  16. package/dist/src/engine/opportunityMetadata/implementations/Erc20.d.ts +1 -0
  17. package/dist/src/engine/opportunityMetadata/implementations/Erc20.js +2 -0
  18. package/dist/src/engine/opportunityMetadata/implementations/Euler.d.ts +1 -0
  19. package/dist/src/engine/opportunityMetadata/implementations/Euler.js +2 -0
  20. package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.d.ts +1 -0
  21. package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.js +2 -0
  22. package/dist/src/engine/opportunityMetadata/implementations/Morpho.d.ts +1 -0
  23. package/dist/src/engine/opportunityMetadata/implementations/Morpho.js +2 -0
  24. package/dist/src/engine/opportunityMetadata/implementations/Radiant.d.ts +1 -0
  25. package/dist/src/engine/opportunityMetadata/implementations/Radiant.js +2 -0
  26. package/dist/src/engine/opportunityMetadata/implementations/Silo.d.ts +1 -0
  27. package/dist/src/engine/opportunityMetadata/implementations/Silo.js +2 -0
  28. package/dist/src/engine/opportunityMetadata/implementations/UniswapV4.d.ts +1 -0
  29. package/dist/src/engine/opportunityMetadata/implementations/UniswapV4.js +2 -0
  30. package/dist/src/index.d.ts +380 -95
  31. package/dist/src/jobs/reward-breakdowns.js +0 -2
  32. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -0
  33. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +5 -0
  34. package/dist/src/modules/v4/campaign/campaign.service.d.ts +9 -0
  35. package/dist/src/modules/v4/merklRoot/merklRoot.service.js +1 -1
  36. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +374 -95
  37. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -0
  38. package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -0
  39. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -0
  40. package/dist/src/modules/v4/opportunity/opportunity.repository.js +8 -0
  41. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +14 -0
  42. package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -0
  43. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
  44. package/dist/src/modules/v4/reward/reward.model.d.ts +1 -1
  45. package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -4
  46. package/dist/src/modules/v4/reward/reward.repository.js +0 -1
  47. package/dist/src/modules/v4/reward/reward.service.d.ts +10 -4
  48. package/dist/src/modules/v4/reward/reward.service.js +1 -1
  49. package/dist/src/modules/v4/router.d.ts +380 -95
  50. package/dist/src/modules/v4/user/user.controller.d.ts +2 -0
  51. package/dist/tsconfig.package.tsbuildinfo +1 -1
  52. package/package.json +2 -1
@@ -222,6 +222,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
222
222
  })[];
223
223
  mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
224
224
  depositUrl: any;
225
+ explorerAddress: string | undefined;
225
226
  tags: string[];
226
227
  };
227
228
  };
@@ -313,6 +314,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
313
314
  action: import("@db/api").$Enums.OpportunityAction;
314
315
  chainId: number;
315
316
  depositUrl: string | null;
317
+ explorerAddress: string | null;
316
318
  mainProtocolId: string | null;
317
319
  tvl: number;
318
320
  apr: number;
@@ -395,6 +397,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
395
397
  action: import("@db/api").$Enums.OpportunityAction;
396
398
  chainId: number;
397
399
  depositUrl: string | null;
400
+ explorerAddress: string | null;
398
401
  mainProtocolId: string | null;
399
402
  tvl: number;
400
403
  apr: number;
@@ -578,6 +581,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
578
581
  action: import("@db/api").$Enums.OpportunityAction;
579
582
  chainId: number;
580
583
  depositUrl: string | null;
584
+ explorerAddress: string | null;
581
585
  mainProtocolId: string | null;
582
586
  tvl: number;
583
587
  apr: number;
@@ -312,6 +312,7 @@ export declare abstract class CampaignRepository {
312
312
  action: import("@db/api").$Enums.OpportunityAction;
313
313
  chainId: number;
314
314
  depositUrl: string | null;
315
+ explorerAddress: string | null;
315
316
  mainProtocolId: string | null;
316
317
  tvl: number;
317
318
  apr: number;
@@ -356,6 +357,7 @@ export declare abstract class CampaignRepository {
356
357
  action: import("@db/api").$Enums.OpportunityAction;
357
358
  chainId: number;
358
359
  depositUrl: string | null;
360
+ explorerAddress: string | null;
359
361
  mainProtocolId: string | null;
360
362
  tvl: number;
361
363
  apr: number;
@@ -416,6 +418,7 @@ export declare abstract class CampaignRepository {
416
418
  action: import("@db/api").$Enums.OpportunityAction;
417
419
  chainId: number;
418
420
  depositUrl: string | null;
421
+ explorerAddress: string | null;
419
422
  mainProtocolId: string | null;
420
423
  tvl: number;
421
424
  apr: number;
@@ -594,6 +597,7 @@ export declare abstract class CampaignRepository {
594
597
  action: import("@db/api").$Enums.OpportunityAction;
595
598
  chainId: number;
596
599
  depositUrl: string | null;
600
+ explorerAddress: string | null;
597
601
  mainProtocolId: string | null;
598
602
  tvl: number;
599
603
  apr: number;
@@ -674,6 +678,7 @@ export declare abstract class CampaignRepository {
674
678
  action: import("@db/api").$Enums.OpportunityAction;
675
679
  chainId: number;
676
680
  depositUrl: string | null;
681
+ explorerAddress: string | null;
677
682
  mainProtocolId: string | null;
678
683
  tvl: number;
679
684
  apr: number;
@@ -19,6 +19,7 @@ export declare abstract class CampaignService {
19
19
  action: import("@db/api").$Enums.OpportunityAction;
20
20
  chainId: number;
21
21
  depositUrl: string | null;
22
+ explorerAddress: string | null;
22
23
  mainProtocolId: string | null;
23
24
  tvl: number;
24
25
  apr: number;
@@ -55,6 +56,7 @@ export declare abstract class CampaignService {
55
56
  action: import("@db/api").$Enums.OpportunityAction;
56
57
  chainId: number;
57
58
  depositUrl: string | null;
59
+ explorerAddress: string | null;
58
60
  mainProtocolId: string | null;
59
61
  tvl: number;
60
62
  apr: number;
@@ -107,6 +109,7 @@ export declare abstract class CampaignService {
107
109
  action: import("@db/api").$Enums.OpportunityAction;
108
110
  chainId: number;
109
111
  depositUrl: string | null;
112
+ explorerAddress: string | null;
110
113
  mainProtocolId: string | null;
111
114
  tvl: number;
112
115
  apr: number;
@@ -239,6 +242,7 @@ export declare abstract class CampaignService {
239
242
  action: import("@db/api").$Enums.OpportunityAction;
240
243
  chainId: number;
241
244
  depositUrl: string | null;
245
+ explorerAddress: string | null;
242
246
  mainProtocolId: string | null;
243
247
  tvl: number;
244
248
  apr: number;
@@ -308,6 +312,7 @@ export declare abstract class CampaignService {
308
312
  action: import("@db/api").$Enums.OpportunityAction;
309
313
  chainId: number;
310
314
  depositUrl: string | null;
315
+ explorerAddress: string | null;
311
316
  mainProtocolId: string | null;
312
317
  tvl: number;
313
318
  apr: number;
@@ -378,6 +383,7 @@ export declare abstract class CampaignService {
378
383
  action: import("@db/api").$Enums.OpportunityAction;
379
384
  chainId: number;
380
385
  depositUrl: string | null;
386
+ explorerAddress: string | null;
381
387
  mainProtocolId: string | null;
382
388
  tvl: number;
383
389
  apr: number;
@@ -448,6 +454,7 @@ export declare abstract class CampaignService {
448
454
  action: import("@db/api").$Enums.OpportunityAction;
449
455
  chainId: number;
450
456
  depositUrl: string | null;
457
+ explorerAddress: string | null;
451
458
  mainProtocolId: string | null;
452
459
  tvl: number;
453
460
  apr: number;
@@ -565,6 +572,7 @@ export declare abstract class CampaignService {
565
572
  action: import("@db/api").$Enums.OpportunityAction;
566
573
  chainId: number;
567
574
  depositUrl: string | null;
575
+ explorerAddress: string | null;
568
576
  mainProtocolId: string | null;
569
577
  tvl: number;
570
578
  apr: number;
@@ -715,6 +723,7 @@ export declare abstract class CampaignService {
715
723
  action: import("@db/api").$Enums.OpportunityAction;
716
724
  chainId: number;
717
725
  depositUrl: string | null;
726
+ explorerAddress: string | null;
718
727
  mainProtocolId: string | null;
719
728
  tvl: number;
720
729
  apr: number;
@@ -39,7 +39,7 @@ export class MerklRootService {
39
39
  }
40
40
  catch (err) {
41
41
  if (err && err instanceof Error && err.message === "DATA_NOT_FOUND")
42
- throw new HttpError(`Failed to fetch data for chain ${chainId}.`, 500);
42
+ throw new HttpError(`Failed to fetch data for chain ${NETWORK_LABELS[chainId]}.`, 500);
43
43
  return await MerklRootRepository.fetch(chainId);
44
44
  }
45
45
  }