@merkl/api 0.19.49 → 0.20.1

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 (59) 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 +86 -10
  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 +18 -2
  31. package/dist/src/jobs/reward-breakdowns.js +1 -3
  32. package/dist/src/jobs/update-rpc-calls-cache.d.ts +1 -0
  33. package/dist/src/jobs/update-rpc-calls-cache.js +20 -0
  34. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -0
  35. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +5 -0
  36. package/dist/src/modules/v4/campaign/campaign.service.d.ts +9 -0
  37. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +7 -0
  38. package/dist/src/modules/v4/merklRoot/merklRoot.service.js +15 -1
  39. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +6 -0
  40. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -0
  41. package/dist/src/modules/v4/opportunity/opportunity.model.js +1 -0
  42. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -0
  43. package/dist/src/modules/v4/opportunity/opportunity.repository.js +8 -0
  44. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -0
  45. package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -0
  46. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
  47. package/dist/src/modules/v4/reward/reward.model.d.ts +1 -1
  48. package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -4
  49. package/dist/src/modules/v4/reward/reward.repository.js +0 -1
  50. package/dist/src/modules/v4/reward/reward.service.d.ts +10 -4
  51. package/dist/src/modules/v4/reward/reward.service.js +10 -10
  52. package/dist/src/modules/v4/router.d.ts +18 -2
  53. package/dist/src/modules/v4/token/token.controller.d.ts +6 -2
  54. package/dist/src/modules/v4/token/token.model.d.ts +6 -2
  55. package/dist/src/modules/v4/token/token.model.js +6 -1
  56. package/dist/src/modules/v4/token/token.service.js +2 -1
  57. package/dist/src/modules/v4/user/user.controller.d.ts +2 -0
  58. package/dist/tsconfig.package.tsbuildinfo +1 -1
  59. package/package.json +3 -1
@@ -132,6 +132,7 @@ declare const eden: {
132
132
  })[];
133
133
  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;
134
134
  depositUrl: any;
135
+ explorerAddress: string | undefined;
135
136
  tags: string[];
136
137
  };
137
138
  }>>;
@@ -415,6 +416,7 @@ declare const eden: {
415
416
  action: import("@db/api").$Enums.OpportunityAction;
416
417
  chainId: number;
417
418
  depositUrl: string | null;
419
+ explorerAddress: string | null;
418
420
  mainProtocolId: string | null;
419
421
  tvl: number;
420
422
  apr: number;
@@ -427,6 +429,7 @@ declare const eden: {
427
429
  name?: string | undefined;
428
430
  tags?: string[] | undefined;
429
431
  depositUrl?: string | undefined;
432
+ explorerAddress?: string | undefined;
430
433
  protocols?: string[] | undefined;
431
434
  mainProtocol?: string | undefined;
432
435
  type: string;
@@ -455,6 +458,7 @@ declare const eden: {
455
458
  action: import("@db/api").$Enums.OpportunityAction;
456
459
  chainId: number;
457
460
  depositUrl: string | null;
461
+ explorerAddress: string | null;
458
462
  mainProtocolId: string | null;
459
463
  tvl: number;
460
464
  apr: number;
@@ -596,6 +600,7 @@ declare const eden: {
596
600
  action: import("@db/api").$Enums.OpportunityAction;
597
601
  chainId: number;
598
602
  depositUrl: string | null;
603
+ explorerAddress: string | null;
599
604
  mainProtocolId: string | null;
600
605
  tvl: number;
601
606
  apr: number;
@@ -648,6 +653,7 @@ declare const eden: {
648
653
  identifier: string;
649
654
  action: import("@db/api").$Enums.OpportunityAction;
650
655
  chainId: number;
656
+ explorerAddress: string | null;
651
657
  tvl: number;
652
658
  dailyRewards: number;
653
659
  }[];
@@ -1026,6 +1032,7 @@ declare const eden: {
1026
1032
  action: import("@db/api").$Enums.OpportunityAction;
1027
1033
  chainId: number;
1028
1034
  depositUrl: string | null;
1035
+ explorerAddress: string | null;
1029
1036
  mainProtocolId: string | null;
1030
1037
  tvl: number;
1031
1038
  apr: number;
@@ -1224,6 +1231,7 @@ declare const eden: {
1224
1231
  })[];
1225
1232
  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;
1226
1233
  depositUrl: any;
1234
+ explorerAddress: string | undefined;
1227
1235
  tags: string[];
1228
1236
  };
1229
1237
  }>>;
@@ -1312,6 +1320,7 @@ declare const eden: {
1312
1320
  action: import("@db/api").$Enums.OpportunityAction;
1313
1321
  chainId: number;
1314
1322
  depositUrl: string | null;
1323
+ explorerAddress: string | null;
1315
1324
  mainProtocolId: string | null;
1316
1325
  tvl: number;
1317
1326
  apr: number;
@@ -1893,11 +1902,15 @@ declare const eden: {
1893
1902
  data: {
1894
1903
  properties: {
1895
1904
  "Icon (Required)": {
1896
- files: {
1905
+ files: ({
1897
1906
  file: {
1898
1907
  url: string;
1899
1908
  };
1900
- }[];
1909
+ } | {
1910
+ external: {
1911
+ url: string;
1912
+ };
1913
+ })[];
1901
1914
  };
1902
1915
  "Address (in checksum format) (Required)": {
1903
1916
  rich_text: {
@@ -2658,6 +2671,7 @@ declare const eden: {
2658
2671
  action: import("@db/api").$Enums.OpportunityAction;
2659
2672
  chainId: number;
2660
2673
  depositUrl: string | null;
2674
+ explorerAddress: string | null;
2661
2675
  mainProtocolId: string | null;
2662
2676
  tvl: number;
2663
2677
  apr: number;
@@ -2764,6 +2778,7 @@ declare const eden: {
2764
2778
  action: import("@db/api").$Enums.OpportunityAction;
2765
2779
  chainId: number;
2766
2780
  depositUrl: string | null;
2781
+ explorerAddress: string | null;
2767
2782
  mainProtocolId: string | null;
2768
2783
  tvl: number;
2769
2784
  apr: number;
@@ -3870,6 +3885,7 @@ declare const eden: {
3870
3885
  })[];
3871
3886
  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;
3872
3887
  depositUrl: any;
3888
+ explorerAddress: string | undefined;
3873
3889
  tags: string[];
3874
3890
  };
3875
3891
  }>>;
@@ -4153,6 +4169,7 @@ declare const eden: {
4153
4169
  action: import("@db/api").$Enums.OpportunityAction;
4154
4170
  chainId: number;
4155
4171
  depositUrl: string | null;
4172
+ explorerAddress: string | null;
4156
4173
  mainProtocolId: string | null;
4157
4174
  tvl: number;
4158
4175
  apr: number;
@@ -4165,6 +4182,7 @@ declare const eden: {
4165
4182
  name?: string | undefined;
4166
4183
  tags?: string[] | undefined;
4167
4184
  depositUrl?: string | undefined;
4185
+ explorerAddress?: string | undefined;
4168
4186
  protocols?: string[] | undefined;
4169
4187
  mainProtocol?: string | undefined;
4170
4188
  type: string;
@@ -4193,6 +4211,7 @@ declare const eden: {
4193
4211
  action: import("@db/api").$Enums.OpportunityAction;
4194
4212
  chainId: number;
4195
4213
  depositUrl: string | null;
4214
+ explorerAddress: string | null;
4196
4215
  mainProtocolId: string | null;
4197
4216
  tvl: number;
4198
4217
  apr: number;
@@ -4334,6 +4353,7 @@ declare const eden: {
4334
4353
  action: import("@db/api").$Enums.OpportunityAction;
4335
4354
  chainId: number;
4336
4355
  depositUrl: string | null;
4356
+ explorerAddress: string | null;
4337
4357
  mainProtocolId: string | null;
4338
4358
  tvl: number;
4339
4359
  apr: number;
@@ -4386,6 +4406,7 @@ declare const eden: {
4386
4406
  identifier: string;
4387
4407
  action: import("@db/api").$Enums.OpportunityAction;
4388
4408
  chainId: number;
4409
+ explorerAddress: string | null;
4389
4410
  tvl: number;
4390
4411
  dailyRewards: number;
4391
4412
  }[];
@@ -4764,6 +4785,7 @@ declare const eden: {
4764
4785
  action: import("@db/api").$Enums.OpportunityAction;
4765
4786
  chainId: number;
4766
4787
  depositUrl: string | null;
4788
+ explorerAddress: string | null;
4767
4789
  mainProtocolId: string | null;
4768
4790
  tvl: number;
4769
4791
  apr: number;
@@ -4962,6 +4984,7 @@ declare const eden: {
4962
4984
  })[];
4963
4985
  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;
4964
4986
  depositUrl: any;
4987
+ explorerAddress: string | undefined;
4965
4988
  tags: string[];
4966
4989
  };
4967
4990
  }>>;
@@ -5050,6 +5073,7 @@ declare const eden: {
5050
5073
  action: import("@db/api").$Enums.OpportunityAction;
5051
5074
  chainId: number;
5052
5075
  depositUrl: string | null;
5076
+ explorerAddress: string | null;
5053
5077
  mainProtocolId: string | null;
5054
5078
  tvl: number;
5055
5079
  apr: number;
@@ -5631,11 +5655,15 @@ declare const eden: {
5631
5655
  data: {
5632
5656
  properties: {
5633
5657
  "Icon (Required)": {
5634
- files: {
5658
+ files: ({
5635
5659
  file: {
5636
5660
  url: string;
5637
5661
  };
5638
- }[];
5662
+ } | {
5663
+ external: {
5664
+ url: string;
5665
+ };
5666
+ })[];
5639
5667
  };
5640
5668
  "Address (in checksum format) (Required)": {
5641
5669
  rich_text: {
@@ -6396,6 +6424,7 @@ declare const eden: {
6396
6424
  action: import("@db/api").$Enums.OpportunityAction;
6397
6425
  chainId: number;
6398
6426
  depositUrl: string | null;
6427
+ explorerAddress: string | null;
6399
6428
  mainProtocolId: string | null;
6400
6429
  tvl: number;
6401
6430
  apr: number;
@@ -6502,6 +6531,7 @@ declare const eden: {
6502
6531
  action: import("@db/api").$Enums.OpportunityAction;
6503
6532
  chainId: number;
6504
6533
  depositUrl: string | null;
6534
+ explorerAddress: string | null;
6505
6535
  mainProtocolId: string | null;
6506
6536
  tvl: number;
6507
6537
  apr: number;
@@ -8303,6 +8333,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8303
8333
  name?: string | undefined;
8304
8334
  tags?: string[] | undefined;
8305
8335
  depositUrl?: string | undefined;
8336
+ explorerAddress?: string | undefined;
8306
8337
  protocols?: string[] | undefined;
8307
8338
  mainProtocol?: string | undefined;
8308
8339
  type: string;
@@ -8331,6 +8362,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8331
8362
  action: import("@db/api").$Enums.OpportunityAction;
8332
8363
  chainId: number;
8333
8364
  depositUrl: string | null;
8365
+ explorerAddress: string | null;
8334
8366
  mainProtocolId: string | null;
8335
8367
  tvl: number;
8336
8368
  apr: number;
@@ -8379,6 +8411,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8379
8411
  })[];
8380
8412
  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;
8381
8413
  depositUrl: any;
8414
+ explorerAddress: string | undefined;
8382
8415
  tags: string[];
8383
8416
  };
8384
8417
  };
@@ -8524,6 +8557,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8524
8557
  action: import("@db/api").$Enums.OpportunityAction;
8525
8558
  chainId: number;
8526
8559
  depositUrl: string | null;
8560
+ explorerAddress: string | null;
8527
8561
  mainProtocolId: string | null;
8528
8562
  tvl: number;
8529
8563
  apr: number;
@@ -8576,6 +8610,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8576
8610
  identifier: string;
8577
8611
  action: import("@db/api").$Enums.OpportunityAction;
8578
8612
  chainId: number;
8613
+ explorerAddress: string | null;
8579
8614
  tvl: number;
8580
8615
  dailyRewards: number;
8581
8616
  }[];
@@ -9230,6 +9265,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9230
9265
  action: import("@db/api").$Enums.OpportunityAction;
9231
9266
  chainId: number;
9232
9267
  depositUrl: string | null;
9268
+ explorerAddress: string | null;
9233
9269
  mainProtocolId: string | null;
9234
9270
  tvl: number;
9235
9271
  apr: number;
@@ -9452,6 +9488,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9452
9488
  })[];
9453
9489
  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;
9454
9490
  depositUrl: any;
9491
+ explorerAddress: string | undefined;
9455
9492
  tags: string[];
9456
9493
  };
9457
9494
  };
@@ -9543,6 +9580,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9543
9580
  action: import("@db/api").$Enums.OpportunityAction;
9544
9581
  chainId: number;
9545
9582
  depositUrl: string | null;
9583
+ explorerAddress: string | null;
9546
9584
  mainProtocolId: string | null;
9547
9585
  tvl: number;
9548
9586
  apr: number;
@@ -9625,6 +9663,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9625
9663
  action: import("@db/api").$Enums.OpportunityAction;
9626
9664
  chainId: number;
9627
9665
  depositUrl: string | null;
9666
+ explorerAddress: string | null;
9628
9667
  mainProtocolId: string | null;
9629
9668
  tvl: number;
9630
9669
  apr: number;
@@ -9808,6 +9847,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9808
9847
  action: import("@db/api").$Enums.OpportunityAction;
9809
9848
  chainId: number;
9810
9849
  depositUrl: string | null;
9850
+ explorerAddress: string | null;
9811
9851
  mainProtocolId: string | null;
9812
9852
  tvl: number;
9813
9853
  apr: number;
@@ -10435,11 +10475,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10435
10475
  data: {
10436
10476
  properties: {
10437
10477
  "Icon (Required)": {
10438
- files: {
10478
+ files: ({
10439
10479
  file: {
10440
10480
  url: string;
10441
10481
  };
10442
- }[];
10482
+ } | {
10483
+ external: {
10484
+ url: string;
10485
+ };
10486
+ })[];
10443
10487
  };
10444
10488
  "Address (in checksum format) (Required)": {
10445
10489
  rich_text: {
@@ -11487,6 +11531,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11487
11531
  action: import("@db/api").$Enums.OpportunityAction;
11488
11532
  chainId: number;
11489
11533
  depositUrl: string | null;
11534
+ explorerAddress: string | null;
11490
11535
  mainProtocolId: string | null;
11491
11536
  tvl: number;
11492
11537
  apr: number;
@@ -11604,6 +11649,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11604
11649
  action: import("@db/api").$Enums.OpportunityAction;
11605
11650
  chainId: number;
11606
11651
  depositUrl: string | null;
11652
+ explorerAddress: string | null;
11607
11653
  mainProtocolId: string | null;
11608
11654
  tvl: number;
11609
11655
  apr: number;
@@ -13798,6 +13844,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13798
13844
  })[];
13799
13845
  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;
13800
13846
  depositUrl: any;
13847
+ explorerAddress: string | undefined;
13801
13848
  tags: string[];
13802
13849
  };
13803
13850
  }>>;
@@ -14081,6 +14128,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14081
14128
  action: import("@db/api").$Enums.OpportunityAction;
14082
14129
  chainId: number;
14083
14130
  depositUrl: string | null;
14131
+ explorerAddress: string | null;
14084
14132
  mainProtocolId: string | null;
14085
14133
  tvl: number;
14086
14134
  apr: number;
@@ -14093,6 +14141,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14093
14141
  name?: string | undefined;
14094
14142
  tags?: string[] | undefined;
14095
14143
  depositUrl?: string | undefined;
14144
+ explorerAddress?: string | undefined;
14096
14145
  protocols?: string[] | undefined;
14097
14146
  mainProtocol?: string | undefined;
14098
14147
  type: string;
@@ -14121,6 +14170,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14121
14170
  action: import("@db/api").$Enums.OpportunityAction;
14122
14171
  chainId: number;
14123
14172
  depositUrl: string | null;
14173
+ explorerAddress: string | null;
14124
14174
  mainProtocolId: string | null;
14125
14175
  tvl: number;
14126
14176
  apr: number;
@@ -14262,6 +14312,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14262
14312
  action: import("@db/api").$Enums.OpportunityAction;
14263
14313
  chainId: number;
14264
14314
  depositUrl: string | null;
14315
+ explorerAddress: string | null;
14265
14316
  mainProtocolId: string | null;
14266
14317
  tvl: number;
14267
14318
  apr: number;
@@ -14314,6 +14365,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14314
14365
  identifier: string;
14315
14366
  action: import("@db/api").$Enums.OpportunityAction;
14316
14367
  chainId: number;
14368
+ explorerAddress: string | null;
14317
14369
  tvl: number;
14318
14370
  dailyRewards: number;
14319
14371
  }[];
@@ -14692,6 +14744,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14692
14744
  action: import("@db/api").$Enums.OpportunityAction;
14693
14745
  chainId: number;
14694
14746
  depositUrl: string | null;
14747
+ explorerAddress: string | null;
14695
14748
  mainProtocolId: string | null;
14696
14749
  tvl: number;
14697
14750
  apr: number;
@@ -14890,6 +14943,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14890
14943
  })[];
14891
14944
  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;
14892
14945
  depositUrl: any;
14946
+ explorerAddress: string | undefined;
14893
14947
  tags: string[];
14894
14948
  };
14895
14949
  }>>;
@@ -14978,6 +15032,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14978
15032
  action: import("@db/api").$Enums.OpportunityAction;
14979
15033
  chainId: number;
14980
15034
  depositUrl: string | null;
15035
+ explorerAddress: string | null;
14981
15036
  mainProtocolId: string | null;
14982
15037
  tvl: number;
14983
15038
  apr: number;
@@ -15559,11 +15614,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15559
15614
  data: {
15560
15615
  properties: {
15561
15616
  "Icon (Required)": {
15562
- files: {
15617
+ files: ({
15563
15618
  file: {
15564
15619
  url: string;
15565
15620
  };
15566
- }[];
15621
+ } | {
15622
+ external: {
15623
+ url: string;
15624
+ };
15625
+ })[];
15567
15626
  };
15568
15627
  "Address (in checksum format) (Required)": {
15569
15628
  rich_text: {
@@ -16324,6 +16383,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16324
16383
  action: import("@db/api").$Enums.OpportunityAction;
16325
16384
  chainId: number;
16326
16385
  depositUrl: string | null;
16386
+ explorerAddress: string | null;
16327
16387
  mainProtocolId: string | null;
16328
16388
  tvl: number;
16329
16389
  apr: number;
@@ -16430,6 +16490,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16430
16490
  action: import("@db/api").$Enums.OpportunityAction;
16431
16491
  chainId: number;
16432
16492
  depositUrl: string | null;
16493
+ explorerAddress: string | null;
16433
16494
  mainProtocolId: string | null;
16434
16495
  tvl: number;
16435
16496
  apr: number;
@@ -17536,6 +17597,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17536
17597
  })[];
17537
17598
  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;
17538
17599
  depositUrl: any;
17600
+ explorerAddress: string | undefined;
17539
17601
  tags: string[];
17540
17602
  };
17541
17603
  }>>;
@@ -17819,6 +17881,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17819
17881
  action: import("@db/api").$Enums.OpportunityAction;
17820
17882
  chainId: number;
17821
17883
  depositUrl: string | null;
17884
+ explorerAddress: string | null;
17822
17885
  mainProtocolId: string | null;
17823
17886
  tvl: number;
17824
17887
  apr: number;
@@ -17831,6 +17894,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17831
17894
  name?: string | undefined;
17832
17895
  tags?: string[] | undefined;
17833
17896
  depositUrl?: string | undefined;
17897
+ explorerAddress?: string | undefined;
17834
17898
  protocols?: string[] | undefined;
17835
17899
  mainProtocol?: string | undefined;
17836
17900
  type: string;
@@ -17859,6 +17923,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17859
17923
  action: import("@db/api").$Enums.OpportunityAction;
17860
17924
  chainId: number;
17861
17925
  depositUrl: string | null;
17926
+ explorerAddress: string | null;
17862
17927
  mainProtocolId: string | null;
17863
17928
  tvl: number;
17864
17929
  apr: number;
@@ -18000,6 +18065,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18000
18065
  action: import("@db/api").$Enums.OpportunityAction;
18001
18066
  chainId: number;
18002
18067
  depositUrl: string | null;
18068
+ explorerAddress: string | null;
18003
18069
  mainProtocolId: string | null;
18004
18070
  tvl: number;
18005
18071
  apr: number;
@@ -18052,6 +18118,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18052
18118
  identifier: string;
18053
18119
  action: import("@db/api").$Enums.OpportunityAction;
18054
18120
  chainId: number;
18121
+ explorerAddress: string | null;
18055
18122
  tvl: number;
18056
18123
  dailyRewards: number;
18057
18124
  }[];
@@ -18430,6 +18497,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18430
18497
  action: import("@db/api").$Enums.OpportunityAction;
18431
18498
  chainId: number;
18432
18499
  depositUrl: string | null;
18500
+ explorerAddress: string | null;
18433
18501
  mainProtocolId: string | null;
18434
18502
  tvl: number;
18435
18503
  apr: number;
@@ -18628,6 +18696,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18628
18696
  })[];
18629
18697
  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;
18630
18698
  depositUrl: any;
18699
+ explorerAddress: string | undefined;
18631
18700
  tags: string[];
18632
18701
  };
18633
18702
  }>>;
@@ -18716,6 +18785,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18716
18785
  action: import("@db/api").$Enums.OpportunityAction;
18717
18786
  chainId: number;
18718
18787
  depositUrl: string | null;
18788
+ explorerAddress: string | null;
18719
18789
  mainProtocolId: string | null;
18720
18790
  tvl: number;
18721
18791
  apr: number;
@@ -19297,11 +19367,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
19297
19367
  data: {
19298
19368
  properties: {
19299
19369
  "Icon (Required)": {
19300
- files: {
19370
+ files: ({
19301
19371
  file: {
19302
19372
  url: string;
19303
19373
  };
19304
- }[];
19374
+ } | {
19375
+ external: {
19376
+ url: string;
19377
+ };
19378
+ })[];
19305
19379
  };
19306
19380
  "Address (in checksum format) (Required)": {
19307
19381
  rich_text: {
@@ -20062,6 +20136,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
20062
20136
  action: import("@db/api").$Enums.OpportunityAction;
20063
20137
  chainId: number;
20064
20138
  depositUrl: string | null;
20139
+ explorerAddress: string | null;
20065
20140
  mainProtocolId: string | null;
20066
20141
  tvl: number;
20067
20142
  apr: number;
@@ -20168,6 +20243,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
20168
20243
  action: import("@db/api").$Enums.OpportunityAction;
20169
20244
  chainId: number;
20170
20245
  depositUrl: string | null;
20246
+ explorerAddress: string | null;
20171
20247
  mainProtocolId: string | null;
20172
20248
  tvl: number;
20173
20249
  apr: number;
@@ -37,6 +37,7 @@ export declare class ClammMetadata implements MetadataBuilder<campaignType> {
37
37
  }[];
38
38
  mainProtocol: ProtocolId;
39
39
  depositUrl: string | undefined;
40
+ explorerAddress: `0x${string}`;
40
41
  }>;
41
42
  static generateUrl(computeChainId: ChainId, params: CampaignParameters<campaignType>["campaignParameters"]): string | undefined;
42
43
  }
@@ -97,6 +97,7 @@ export class ClammMetadata {
97
97
  ],
98
98
  mainProtocol: mainProtocolId,
99
99
  depositUrl: ClammMetadata.generateUrl(computeChainId, params),
100
+ explorerAddress: getAddress(params.poolAddress),
100
101
  };
101
102
  }
102
103
  static generateUrl(computeChainId, params) {
@@ -11,6 +11,7 @@ export declare class DolomiteMetadata implements MetadataBuilder<campaignType> {
11
11
  }[];
12
12
  name: string;
13
13
  mainProtocol: ProtocolId;
14
+ explorerAddress: `0x${string}`;
14
15
  }>;
15
16
  }
16
17
  export {};
@@ -1,4 +1,5 @@
1
1
  import { OpportunityAction } from "@db/api";
2
+ import { getAddress } from "viem";
2
3
  export class DolomiteMetadata {
3
4
  async build(computeChainId, params, subType) {
4
5
  const subtypes = [
@@ -12,6 +13,7 @@ export class DolomiteMetadata {
12
13
  tokens: [{ chainId: computeChainId, address: params.targetToken }],
13
14
  name: `${subtype.name} ${params.symbolTargetToken}`,
14
15
  mainProtocol: "dolomite",
16
+ explorerAddress: getAddress(params.targetToken),
15
17
  };
16
18
  }
17
19
  }
@@ -11,6 +11,7 @@ export declare class Erc20Metadata implements MetadataBuilder<campaignType> {
11
11
  }[];
12
12
  mainProtocol: any;
13
13
  depositUrl: any;
14
+ explorerAddress: `0x${string}`;
14
15
  }>;
15
16
  static generateUrl(_computeChainId: ChainId, params: CampaignParameters<campaignType>["campaignParameters"]): any;
16
17
  }
@@ -1,6 +1,7 @@
1
1
  import { dynamicDataBuilderFactory } from "@/engine/dynamicData/factory";
2
2
  import { log } from "@/utils/logger";
3
3
  import { Campaign as CampaignEnum } from "@sdk";
4
+ import { getAddress } from "viem";
4
5
  import { ProtocolService } from "../../../modules/v4/protocol/protocol.service";
5
6
  export class Erc20Metadata {
6
7
  async build(computeChainId, params, _subType, rewardTokenAddress, distributionChainId, campaignId) {
@@ -72,6 +73,7 @@ export class Erc20Metadata {
72
73
  tokens,
73
74
  mainProtocol: mainProtocolId,
74
75
  depositUrl: Erc20Metadata.generateUrl(computeChainId, params),
76
+ explorerAddress: getAddress(params.targetToken),
75
77
  };
76
78
  }
77
79
  static generateUrl(_computeChainId, params) {
@@ -12,6 +12,7 @@ export declare class EulerMetadata implements MetadataBuilder<campaignType> {
12
12
  action: "LEND" | "BORROW";
13
13
  mainProtocol: ProtocolId;
14
14
  depositUrl: string;
15
+ explorerAddress: `0x${string}`;
15
16
  }>;
16
17
  static generateUrl(_computeChainId: ChainId, params: CampaignParameters<campaignType>["campaignParameters"]): string;
17
18
  }