@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
@@ -164,6 +164,7 @@ declare const app: Elysia<"", false, {
164
164
  name?: string | undefined;
165
165
  tags?: string[] | undefined;
166
166
  depositUrl?: string | undefined;
167
+ explorerAddress?: string | undefined;
167
168
  protocols?: string[] | undefined;
168
169
  mainProtocol?: string | undefined;
169
170
  type: string;
@@ -192,6 +193,7 @@ declare const app: Elysia<"", false, {
192
193
  action: import("@db/api").$Enums.OpportunityAction;
193
194
  chainId: number;
194
195
  depositUrl: string | null;
196
+ explorerAddress: string | null;
195
197
  mainProtocolId: string | null;
196
198
  tvl: number;
197
199
  apr: number;
@@ -240,6 +242,7 @@ declare const app: Elysia<"", false, {
240
242
  })[];
241
243
  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;
242
244
  depositUrl: any;
245
+ explorerAddress: string | undefined;
243
246
  tags: string[];
244
247
  };
245
248
  };
@@ -276,44 +279,136 @@ declare const app: Elysia<"", false, {
276
279
  };
277
280
  headers: unknown;
278
281
  response: {
279
- 200: {
280
- apr: number;
281
- aprRecord: {
282
+ 200: ({
283
+ protocol?: {
284
+ id: string;
285
+ name: string;
286
+ url: string;
287
+ description: string;
288
+ tags: string[];
289
+ icon: string;
290
+ } | null | undefined;
291
+ depositUrl?: string | undefined;
292
+ explorerAddress?: string | undefined;
293
+ aprRecord?: {
294
+ timestamp: string | bigint;
282
295
  cumulated: number;
283
- timestamp: bigint;
284
296
  breakdowns: {
285
297
  id: number;
286
- type: import("@db/api").$Enums.AprType;
287
- uuid: string;
298
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
288
299
  identifier: string;
289
300
  value: number;
290
301
  aprRecordId: string;
291
302
  }[];
292
- };
293
- tvlRecord: {
294
- id: string;
303
+ } | undefined;
304
+ tvlRecord?: {
295
305
  total: number;
296
- timestamp: bigint;
306
+ timestamp: string | bigint;
297
307
  breakdowns: {
298
308
  id: number;
299
- type: import("@db/api").$Enums.TvlType;
300
- uuid: string;
309
+ type: "TOKEN" | "PROTOCOL";
301
310
  identifier: string;
302
311
  value: number;
303
312
  tvlRecordId: string;
304
313
  }[];
305
- };
306
- rewardsRecord: {
314
+ } | undefined;
315
+ rewardsRecord?: {
307
316
  id: string;
308
317
  total: number;
309
- timestamp: bigint;
318
+ timestamp: string | bigint;
310
319
  breakdowns: {
311
320
  id: number;
312
- uuid: string;
321
+ token: {
322
+ price?: number | null | undefined;
323
+ symbol: string;
324
+ id: string;
325
+ name: string | null;
326
+ icon: string;
327
+ address: string;
328
+ chainId: number;
329
+ decimals: number;
330
+ verified: boolean;
331
+ isTest: boolean;
332
+ };
313
333
  value: number;
314
334
  campaignId: string;
335
+ amount: string | bigint;
315
336
  dailyRewardsRecordId: string;
337
+ }[];
338
+ } | undefined;
339
+ id: string;
340
+ name: string;
341
+ type: string;
342
+ status: string;
343
+ tokens: {
344
+ price?: number | null | undefined;
345
+ symbol: string;
346
+ id: string;
347
+ name: string | null;
348
+ icon: string;
349
+ address: string;
350
+ chainId: number;
351
+ decimals: number;
352
+ verified: boolean;
353
+ isTest: boolean;
354
+ }[];
355
+ tags: string[];
356
+ identifier: string;
357
+ chain: {
358
+ id: number;
359
+ name: string;
360
+ icon: string;
361
+ };
362
+ action: string;
363
+ chainId: number;
364
+ tvl: number;
365
+ apr: number;
366
+ dailyRewards: number;
367
+ } | null)[];
368
+ } | {
369
+ 200: never;
370
+ } | {
371
+ 200: (Response | ({
372
+ protocol?: {
373
+ id: string;
374
+ name: string;
375
+ url: string;
376
+ description: string;
377
+ tags: string[];
378
+ icon: string;
379
+ } | null | undefined;
380
+ depositUrl?: string | undefined;
381
+ explorerAddress?: string | undefined;
382
+ aprRecord?: {
383
+ timestamp: string | bigint;
384
+ cumulated: number;
385
+ breakdowns: {
386
+ id: number;
387
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
388
+ identifier: string;
389
+ value: number;
390
+ aprRecordId: string;
391
+ }[];
392
+ } | undefined;
393
+ tvlRecord?: {
394
+ total: number;
395
+ timestamp: string | bigint;
396
+ breakdowns: {
397
+ id: number;
398
+ type: "TOKEN" | "PROTOCOL";
399
+ identifier: string;
400
+ value: number;
401
+ tvlRecordId: string;
402
+ }[];
403
+ } | undefined;
404
+ rewardsRecord?: {
405
+ id: string;
406
+ total: number;
407
+ timestamp: string | bigint;
408
+ breakdowns: {
409
+ id: number;
316
410
  token: {
411
+ price?: number | null | undefined;
317
412
  symbol: string;
318
413
  id: string;
319
414
  name: string | null;
@@ -321,26 +416,107 @@ declare const app: Elysia<"", false, {
321
416
  address: string;
322
417
  chainId: number;
323
418
  decimals: number;
324
- displaySymbol: string;
325
419
  verified: boolean;
326
420
  isTest: boolean;
327
- isPoint: boolean;
328
- isNative: boolean;
329
- price: number | null;
330
421
  };
331
- amount: bigint;
422
+ value: number;
423
+ campaignId: string;
424
+ amount: string | bigint;
425
+ dailyRewardsRecordId: string;
332
426
  }[];
427
+ } | undefined;
428
+ id: string;
429
+ name: string;
430
+ type: string;
431
+ status: string;
432
+ tokens: {
433
+ price?: number | null | undefined;
434
+ symbol: string;
435
+ id: string;
436
+ name: string | null;
437
+ icon: string;
438
+ address: string;
439
+ chainId: number;
440
+ decimals: number;
441
+ verified: boolean;
442
+ isTest: boolean;
443
+ }[];
444
+ tags: string[];
445
+ identifier: string;
446
+ chain: {
447
+ id: number;
448
+ name: string;
449
+ icon: string;
333
450
  };
334
- campaigns: {
335
- params: any;
336
- chain: {
337
- id: number;
451
+ action: string;
452
+ chainId: number;
453
+ tvl: number;
454
+ apr: number;
455
+ dailyRewards: number;
456
+ } | null)[] | {
457
+ 200: ({
458
+ protocol?: {
459
+ id: string;
338
460
  name: string;
461
+ url: string;
462
+ description: string;
463
+ tags: string[];
339
464
  icon: string;
340
- };
341
- endTimestamp: number;
342
- startTimestamp: number;
343
- rewardToken: {
465
+ } | null | undefined;
466
+ depositUrl?: string | undefined;
467
+ explorerAddress?: string | undefined;
468
+ aprRecord?: {
469
+ timestamp: string | bigint;
470
+ cumulated: number;
471
+ breakdowns: {
472
+ id: number;
473
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
474
+ identifier: string;
475
+ value: number;
476
+ aprRecordId: string;
477
+ }[];
478
+ } | undefined;
479
+ tvlRecord?: {
480
+ total: number;
481
+ timestamp: string | bigint;
482
+ breakdowns: {
483
+ id: number;
484
+ type: "TOKEN" | "PROTOCOL";
485
+ identifier: string;
486
+ value: number;
487
+ tvlRecordId: string;
488
+ }[];
489
+ } | undefined;
490
+ rewardsRecord?: {
491
+ id: string;
492
+ total: number;
493
+ timestamp: string | bigint;
494
+ breakdowns: {
495
+ id: number;
496
+ token: {
497
+ price?: number | null | undefined;
498
+ symbol: string;
499
+ id: string;
500
+ name: string | null;
501
+ icon: string;
502
+ address: string;
503
+ chainId: number;
504
+ decimals: number;
505
+ verified: boolean;
506
+ isTest: boolean;
507
+ };
508
+ value: number;
509
+ campaignId: string;
510
+ amount: string | bigint;
511
+ dailyRewardsRecordId: string;
512
+ }[];
513
+ } | undefined;
514
+ id: string;
515
+ name: string;
516
+ type: string;
517
+ status: string;
518
+ tokens: {
519
+ price?: number | null | undefined;
344
520
  symbol: string;
345
521
  id: string;
346
522
  name: string | null;
@@ -350,59 +526,83 @@ declare const app: Elysia<"", false, {
350
526
  decimals: number;
351
527
  verified: boolean;
352
528
  isTest: boolean;
353
- isPoint: boolean;
354
- isNative: boolean;
355
- } & {
356
- price?: number | null | undefined;
357
- };
358
- distributionChain: {
529
+ }[];
530
+ tags: string[];
531
+ identifier: string;
532
+ chain: {
359
533
  id: number;
360
534
  name: string;
361
535
  icon: string;
362
- } | undefined;
363
- campaignStatus: {
364
- computedUntil: number;
365
- processingStarted: number;
366
- error: string;
367
- status: import("@db/api").$Enums.RunStatus;
368
- details: import("database/api/.generated/runtime/library").JsonValue;
369
- campaignId: string;
370
- } | undefined;
371
- creatorAddress: string;
372
- creator: {
373
- tags: string[];
374
- address: string;
375
- creatorId: string | null;
376
536
  };
377
- createdAt: string;
378
- Opportunity: {
379
- id: string;
380
- name: string;
381
- type: string;
382
- status: import("@db/api").$Enums.Status;
383
- tags: string[];
537
+ action: string;
538
+ chainId: number;
539
+ tvl: number;
540
+ apr: number;
541
+ dailyRewards: number;
542
+ } | null)[];
543
+ }) & ({
544
+ protocol?: {
545
+ id: string;
546
+ name: string;
547
+ url: string;
548
+ description: string;
549
+ tags: string[];
550
+ icon: string;
551
+ } | null | undefined;
552
+ depositUrl?: string | undefined;
553
+ explorerAddress?: string | undefined;
554
+ aprRecord?: {
555
+ timestamp: string | bigint;
556
+ cumulated: number;
557
+ breakdowns: {
558
+ id: number;
559
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
384
560
  identifier: string;
385
- action: import("@db/api").$Enums.OpportunityAction;
386
- chainId: number;
387
- depositUrl: string | null;
388
- mainProtocolId: string | null;
389
- tvl: number;
390
- apr: number;
391
- dailyRewards: number;
392
- };
561
+ value: number;
562
+ aprRecordId: string;
563
+ }[];
564
+ } | undefined;
565
+ tvlRecord?: {
566
+ total: number;
567
+ timestamp: string | bigint;
568
+ breakdowns: {
569
+ id: number;
570
+ type: "TOKEN" | "PROTOCOL";
571
+ identifier: string;
572
+ value: number;
573
+ tvlRecordId: string;
574
+ }[];
575
+ } | undefined;
576
+ rewardsRecord?: {
393
577
  id: string;
394
- type: string;
395
- subType: number | null;
396
- computeChainId: number;
397
- distributionChainId: number;
398
- campaignId: string;
399
- rewardTokenId: string;
400
- amount: string;
401
- opportunityId: string;
402
- }[] | undefined;
578
+ total: number;
579
+ timestamp: string | bigint;
580
+ breakdowns: {
581
+ id: number;
582
+ token: {
583
+ price?: number | null | undefined;
584
+ symbol: string;
585
+ id: string;
586
+ name: string | null;
587
+ icon: string;
588
+ address: string;
589
+ chainId: number;
590
+ decimals: number;
591
+ verified: boolean;
592
+ isTest: boolean;
593
+ };
594
+ value: number;
595
+ campaignId: string;
596
+ amount: string | bigint;
597
+ dailyRewardsRecordId: string;
598
+ }[];
599
+ } | undefined;
403
600
  id: string;
404
- depositUrl: string | undefined;
405
- tokens: ({
601
+ name: string;
602
+ type: string;
603
+ status: string;
604
+ tokens: {
605
+ price?: number | null | undefined;
406
606
  symbol: string;
407
607
  id: string;
408
608
  name: string | null;
@@ -412,34 +612,109 @@ declare const app: Elysia<"", false, {
412
612
  decimals: number;
413
613
  verified: boolean;
414
614
  isTest: boolean;
415
- isPoint: boolean;
416
- isNative: boolean;
417
- } & {
418
- price?: number | null | undefined;
419
- })[];
615
+ }[];
616
+ tags: string[];
617
+ identifier: string;
420
618
  chain: {
421
619
  id: number;
422
620
  name: string;
423
621
  icon: string;
424
622
  };
425
- protocol: {
426
- id: string;
427
- name: string;
428
- url: string;
429
- description: string;
430
- tags: string[];
431
- icon: string;
432
- } | undefined;
433
- name: string;
434
- type: string;
435
- status: import("@db/api").$Enums.Status;
436
- tags: string[];
437
- identifier: string;
438
- action: import("@db/api").$Enums.OpportunityAction;
623
+ action: string;
439
624
  chainId: number;
440
625
  tvl: number;
626
+ apr: number;
441
627
  dailyRewards: number;
442
- }[];
628
+ } | null)[];
629
+ } | {
630
+ 200: {
631
+ 200: ({
632
+ protocol?: {
633
+ id: string;
634
+ name: string;
635
+ url: string;
636
+ description: string;
637
+ tags: string[];
638
+ icon: string;
639
+ } | null | undefined;
640
+ depositUrl?: string | undefined;
641
+ explorerAddress?: string | undefined;
642
+ aprRecord?: {
643
+ timestamp: string | bigint;
644
+ cumulated: number;
645
+ breakdowns: {
646
+ id: number;
647
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
648
+ identifier: string;
649
+ value: number;
650
+ aprRecordId: string;
651
+ }[];
652
+ } | undefined;
653
+ tvlRecord?: {
654
+ total: number;
655
+ timestamp: string | bigint;
656
+ breakdowns: {
657
+ id: number;
658
+ type: "TOKEN" | "PROTOCOL";
659
+ identifier: string;
660
+ value: number;
661
+ tvlRecordId: string;
662
+ }[];
663
+ } | undefined;
664
+ rewardsRecord?: {
665
+ id: string;
666
+ total: number;
667
+ timestamp: string | bigint;
668
+ breakdowns: {
669
+ id: number;
670
+ token: {
671
+ price?: number | null | undefined;
672
+ symbol: string;
673
+ id: string;
674
+ name: string | null;
675
+ icon: string;
676
+ address: string;
677
+ chainId: number;
678
+ decimals: number;
679
+ verified: boolean;
680
+ isTest: boolean;
681
+ };
682
+ value: number;
683
+ campaignId: string;
684
+ amount: string | bigint;
685
+ dailyRewardsRecordId: string;
686
+ }[];
687
+ } | undefined;
688
+ id: string;
689
+ name: string;
690
+ type: string;
691
+ status: string;
692
+ tokens: {
693
+ price?: number | null | undefined;
694
+ symbol: string;
695
+ id: string;
696
+ name: string | null;
697
+ icon: string;
698
+ address: string;
699
+ chainId: number;
700
+ decimals: number;
701
+ verified: boolean;
702
+ isTest: boolean;
703
+ }[];
704
+ tags: string[];
705
+ identifier: string;
706
+ chain: {
707
+ id: number;
708
+ name: string;
709
+ icon: string;
710
+ };
711
+ action: string;
712
+ chainId: number;
713
+ tvl: number;
714
+ apr: number;
715
+ dailyRewards: number;
716
+ } | null)[];
717
+ };
443
718
  };
444
719
  };
445
720
  };
@@ -503,6 +778,7 @@ declare const app: Elysia<"", false, {
503
778
  icon: string;
504
779
  } | null | undefined;
505
780
  depositUrl?: string | undefined;
781
+ explorerAddress?: string | undefined;
506
782
  aprRecord?: {
507
783
  timestamp: string | bigint;
508
784
  cumulated: number;
@@ -633,6 +909,7 @@ declare const app: Elysia<"", false, {
633
909
  icon: string;
634
910
  } | null | undefined;
635
911
  depositUrl?: string | undefined;
912
+ explorerAddress?: string | undefined;
636
913
  aprRecord?: {
637
914
  timestamp: string | bigint;
638
915
  cumulated: number;
@@ -797,6 +1074,7 @@ declare const app: Elysia<"", false, {
797
1074
  icon: string;
798
1075
  } | null | undefined;
799
1076
  depositUrl?: string | undefined;
1077
+ explorerAddress?: string | undefined;
800
1078
  aprRecord?: {
801
1079
  timestamp: string | bigint;
802
1080
  cumulated: number;
@@ -1091,6 +1369,7 @@ declare const app: Elysia<"", false, {
1091
1369
  action: import("@db/api").$Enums.OpportunityAction;
1092
1370
  chainId: number;
1093
1371
  depositUrl: string | null;
1372
+ explorerAddress: string | null;
1094
1373
  mainProtocolId: string | null;
1095
1374
  tvl: number;
1096
1375
  apr: number;
@@ -1313,6 +1592,7 @@ declare const app: Elysia<"", false, {
1313
1592
  })[];
1314
1593
  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;
1315
1594
  depositUrl: any;
1595
+ explorerAddress: string | undefined;
1316
1596
  tags: string[];
1317
1597
  };
1318
1598
  };
@@ -1404,6 +1684,7 @@ declare const app: Elysia<"", false, {
1404
1684
  action: import("@db/api").$Enums.OpportunityAction;
1405
1685
  chainId: number;
1406
1686
  depositUrl: string | null;
1687
+ explorerAddress: string | null;
1407
1688
  mainProtocolId: string | null;
1408
1689
  tvl: number;
1409
1690
  apr: number;
@@ -1486,6 +1767,7 @@ declare const app: Elysia<"", false, {
1486
1767
  action: import("@db/api").$Enums.OpportunityAction;
1487
1768
  chainId: number;
1488
1769
  depositUrl: string | null;
1770
+ explorerAddress: string | null;
1489
1771
  mainProtocolId: string | null;
1490
1772
  tvl: number;
1491
1773
  apr: number;
@@ -1669,6 +1951,7 @@ declare const app: Elysia<"", false, {
1669
1951
  action: import("@db/api").$Enums.OpportunityAction;
1670
1952
  chainId: number;
1671
1953
  depositUrl: string | null;
1954
+ explorerAddress: string | null;
1672
1955
  mainProtocolId: string | null;
1673
1956
  tvl: number;
1674
1957
  apr: number;
@@ -3352,6 +3635,7 @@ declare const app: Elysia<"", false, {
3352
3635
  action: import("@db/api").$Enums.OpportunityAction;
3353
3636
  chainId: number;
3354
3637
  depositUrl: string | null;
3638
+ explorerAddress: string | null;
3355
3639
  mainProtocolId: string | null;
3356
3640
  tvl: number;
3357
3641
  apr: number;
@@ -3469,6 +3753,7 @@ declare const app: Elysia<"", false, {
3469
3753
  action: import("@db/api").$Enums.OpportunityAction;
3470
3754
  chainId: number;
3471
3755
  depositUrl: string | null;
3756
+ explorerAddress: string | null;
3472
3757
  mainProtocolId: string | null;
3473
3758
  tvl: number;
3474
3759
  apr: number;
@@ -64,9 +64,7 @@ const transform = (rewardBreakdowns) => {
64
64
  const rewardTokenId = Bun.hash(`${process.env.CHAIN_ID}${rewardBreakdowns[i].token}`).toString();
65
65
  const rewardId = Bun.hash(`${process.env.ROOT}${rewardBreakdowns[i].recipient}${rewardTokenId}`).toString();
66
66
  const campaignId = Bun.hash(`${process.env.CHAIN_ID}${rewardBreakdowns[i].campaignId}`).toString();
67
- const rewardBreakdownId = Bun.hash(`${rewardId}${campaignId}${rewardBreakdowns[i].reason}`).toString();
68
67
  transformedBreakdowns[i] = {
69
- stringId: rewardBreakdownId,
70
68
  rewardId,
71
69
  protocolId: rewardBreakdowns[i].protocolId ? rewardBreakdowns[i].protocolId : undefined,
72
70
  campaignId,