@merkl/api 1.4.85 → 1.4.86

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 (149) hide show
  1. package/dist/src/cache/index.d.ts +0 -9
  2. package/dist/src/eden/index.d.ts +154 -140
  3. package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.d.ts +0 -15
  4. package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.d.ts +0 -1
  5. package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +0 -3
  6. package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +0 -5
  7. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +0 -1
  8. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +0 -1
  9. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +0 -1
  10. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +0 -1
  11. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +0 -1
  12. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +0 -1
  13. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +0 -1
  14. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +4 -5
  15. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +0 -1
  16. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +0 -1
  17. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +0 -1
  18. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +4 -5
  19. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +0 -1
  20. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +0 -1
  21. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +0 -1
  22. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +0 -1
  23. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +0 -1
  24. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +0 -1
  25. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +0 -1
  26. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +0 -1
  27. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +0 -1
  28. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +0 -1
  29. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +0 -1
  30. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +4 -5
  31. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +0 -1
  32. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +0 -1
  33. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +0 -1
  34. package/dist/src/engine/implementations/Erc20/subTypes/implementations/penpiePRT/metadata.d.ts +1 -1
  35. package/dist/src/engine/implementations/Erc20/subTypes/implementations/penpiePRT/metadata.js.map +1 -1
  36. package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -2
  37. package/dist/src/engine/implementations/StakingVaults/Equilibria/metadata.d.ts +2 -2
  38. package/dist/src/engine/implementations/StakingVaults/Equilibria/metadata.js.map +1 -1
  39. package/dist/src/engine/implementations/clamm/utils.d.ts +0 -1
  40. package/dist/src/engine/implementations/deprecated_clamm/metadata.d.ts +0 -1
  41. package/dist/src/engine/implementations/uniswapv4/tvl.d.ts +0 -1
  42. package/dist/src/engine/tvl/logStates.d.ts +0 -2
  43. package/dist/src/index.d.ts +154 -172
  44. package/dist/src/jobs/pendings.d.ts +0 -1
  45. package/dist/src/jobs/reward-breakdowns.d.ts +0 -1
  46. package/dist/src/jobs/reward-breakdowns.js.map +1 -1
  47. package/dist/src/jobs/rewards.d.ts +0 -1
  48. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +0 -1
  49. package/dist/src/libs/positions/clamm/thegraph/index.d.ts +0 -10
  50. package/dist/src/libs/positions/index.d.ts +1 -2
  51. package/dist/src/libs/positions/prepareFetch.d.ts +1 -3
  52. package/dist/src/libs/positions/types.d.ts +0 -7
  53. package/dist/src/modules/v4/apr/apr.model.d.ts +0 -2
  54. package/dist/src/modules/v4/bucket/bucket.service.d.ts +0 -7
  55. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +6 -1
  56. package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +0 -2
  57. package/dist/src/modules/v4/campaign/campaign.model.d.ts +0 -3
  58. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -3
  59. package/dist/src/modules/v4/campaign/campaign.service.d.ts +15 -0
  60. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +12 -1
  61. package/dist/src/modules/v4/campaignBatch/campaignBatch.model.d.ts +0 -1
  62. package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +0 -2
  63. package/dist/src/modules/v4/campaignStatus/campaignStatus.model.d.ts +0 -3
  64. package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +2 -2
  65. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +0 -1
  66. package/dist/src/modules/v4/carousel/carousel.controller.d.ts +18 -0
  67. package/dist/src/modules/v4/carousel/carousel.repository.d.ts +27 -0
  68. package/dist/src/modules/v4/carousel/carousel.service.d.ts +27 -0
  69. package/dist/src/modules/v4/chain/chain.controller.d.ts +0 -1
  70. package/dist/src/modules/v4/chain/chain.model.d.ts +0 -3
  71. package/dist/src/modules/v4/claims/claims.controller.d.ts +0 -1
  72. package/dist/src/modules/v4/claims/claims.service.d.ts +0 -1
  73. package/dist/src/modules/v4/clamm/clamm.controller.d.ts +0 -2
  74. package/dist/src/modules/v4/clamm/clamm.service.d.ts +0 -1
  75. package/dist/src/modules/v4/computedValue/computedValue.formatter.d.ts +0 -1
  76. package/dist/src/modules/v4/computedValue/computedValue.model.d.ts +0 -3
  77. package/dist/src/modules/v4/config/config.controller.d.ts +3 -0
  78. package/dist/src/modules/v4/creator/creator.controller.d.ts +0 -1
  79. package/dist/src/modules/v4/creator/creator.model.d.ts +0 -3
  80. package/dist/src/modules/v4/creator/creator.repository.d.ts +0 -1
  81. package/dist/src/modules/v4/creator/creator.service.d.ts +0 -1
  82. package/dist/src/modules/v4/enso/enso.service.d.ts +3 -0
  83. package/dist/src/modules/v4/euler/euler.controller.d.ts +0 -1
  84. package/dist/src/modules/v4/euler/euler.model.d.ts +0 -1
  85. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +0 -1
  86. package/dist/src/modules/v4/github/github.model.d.ts +0 -2
  87. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +3 -1
  88. package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +0 -1
  89. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +0 -1
  90. package/dist/src/modules/v4/node/node.model.d.ts +0 -1
  91. package/dist/src/modules/v4/node/node.service.d.ts +1 -3
  92. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +6 -1
  93. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +9 -0
  94. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -7
  95. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +33 -5
  96. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +21 -9
  97. package/dist/src/modules/v4/payload/payload.controller.d.ts +9 -0
  98. package/dist/src/modules/v4/payload/payload.model.d.ts +2 -5
  99. package/dist/src/modules/v4/payload/payload.service.d.ts +12 -0
  100. package/dist/src/modules/v4/priceSource/priceSource.controller.d.ts +0 -1
  101. package/dist/src/modules/v4/priceSource/priceSource.model.d.ts +0 -2
  102. package/dist/src/modules/v4/priceSource/priceSource.service.d.ts +0 -1
  103. package/dist/src/modules/v4/prisma/index.d.ts +2 -6
  104. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +5789 -5790
  105. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +2 -5
  106. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -94
  107. package/dist/src/modules/v4/programPayload/subPayloads/aave.d.ts +0 -5
  108. package/dist/src/modules/v4/programPayload/subPayloads/bancor.d.ts +0 -26
  109. package/dist/src/modules/v4/programPayload/subPayloads/credix.d.ts +0 -8
  110. package/dist/src/modules/v4/programPayload/subPayloads/drip.d.ts +0 -5
  111. package/dist/src/modules/v4/programPayload/subPayloads/hypurrFi.d.ts +0 -3
  112. package/dist/src/modules/v4/programPayload/subPayloads/nibiru.d.ts +0 -18
  113. package/dist/src/modules/v4/programPayload/subPayloads/tac.d.ts +0 -59
  114. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +12 -1
  115. package/dist/src/modules/v4/protocol/protocol.model.d.ts +0 -3
  116. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +15 -1
  117. package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -1
  118. package/dist/src/modules/v4/referral/referral.controller.d.ts +0 -1
  119. package/dist/src/modules/v4/referral/referral.model.d.ts +0 -1
  120. package/dist/src/modules/v4/reward/reward.controller.d.ts +0 -108
  121. package/dist/src/modules/v4/reward/reward.controller.js.map +1 -1
  122. package/dist/src/modules/v4/reward/reward.model.d.ts +0 -4
  123. package/dist/src/modules/v4/reward/reward.model.js.map +1 -1
  124. package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -1
  125. package/dist/src/modules/v4/reward/reward.repository.js.map +1 -1
  126. package/dist/src/modules/v4/reward/reward.service.d.ts +69 -0
  127. package/dist/src/modules/v4/router.d.ts +5184 -5202
  128. package/dist/src/modules/v4/token/token.controller.d.ts +0 -1
  129. package/dist/src/modules/v4/token/token.model.d.ts +0 -4
  130. package/dist/src/modules/v4/token/token.repository.d.ts +2 -2
  131. package/dist/src/modules/v4/token/token.service.d.ts +2 -2
  132. package/dist/src/modules/v4/transaction/transaction.model.d.ts +0 -1
  133. package/dist/src/modules/v4/turtle/turtle.controller.d.ts +0 -1
  134. package/dist/src/modules/v4/turtle/turtle.service.d.ts +0 -2
  135. package/dist/src/modules/v4/tvl/tvl.model.d.ts +0 -1
  136. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +6 -2
  137. package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +0 -1
  138. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +3 -0
  139. package/dist/src/modules/v4/user/user.controller.d.ts +15 -0
  140. package/dist/src/modules/v4/user/user.model.d.ts +0 -3
  141. package/dist/src/modules/v4/user/user.repository.d.ts +0 -1
  142. package/dist/src/modules/v4/user/user.service.d.ts +0 -1
  143. package/dist/src/plugins/errorHandler.d.ts +0 -1
  144. package/dist/src/routes/v3/blacklist.d.ts +0 -1
  145. package/dist/src/utils/bigintToString.d.ts +0 -3
  146. package/dist/src/utils/execute.d.ts +0 -1
  147. package/dist/src/utils/pagination.d.ts +0 -1
  148. package/dist/src/utils/parseDistributionType.d.ts +20 -20
  149. package/package.json +1 -1
@@ -10,9 +10,6 @@ export declare class Cache {
10
10
  static decoder: TextDecoder;
11
11
  static encoder: TextEncoder;
12
12
  localCache: NodeCache;
13
- /*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
14
- UTILS
15
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
16
13
  static baseKey<T extends CacheKey, Key extends T | NonNullable<CacheArg[T]>>(key: Key): CacheKey;
17
14
  /** @notice Uncompress (if enabled), parsed and typed data from the cache */
18
15
  static uncompress<T extends CacheKey, Key extends T | NonNullable<CacheArg[T]>>(key: Key, value: string): CacheKeys[T]["returns"];
@@ -22,9 +19,6 @@ export declare class Cache {
22
19
  private getManyRaw;
23
20
  private setRaw;
24
21
  private set;
25
- /*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
26
- LOCAL CACHE
27
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
28
22
  /**
29
23
  * @deprecated Local cache is not used anymore
30
24
  */
@@ -37,9 +31,6 @@ export declare class Cache {
37
31
  * @deprecated Local cache is not used anymore
38
32
  */
39
33
  private getLocally;
40
- /*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
41
- PUBLIC OPERATIONS
42
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
43
34
  /**
44
35
  * @returns the uncompressed (if enabled), parsed and typed data from the cache
45
36
  */
@@ -8,7 +8,6 @@ export type { InteractionTarget } from "../modules/v4/interaction/interaction.mo
8
8
  export type { OpportunityDeleteOverrideModel, OpportunityOverrideModel, } from "../modules/v4/opportunity/opportunity.model";
9
9
  export type { BreakdownForCampaignsRaw } from "../modules/v4/reward/reward.model";
10
10
  export declare const MerklApi: typeof treaty<App>;
11
- // Types to export along the Eden type
12
11
  declare const eden: {
13
12
  get: (options?: {
14
13
  fetch?: RequestInit | undefined;
@@ -2206,6 +2205,9 @@ declare const eden: {
2206
2205
  description: string;
2207
2206
  url: string;
2208
2207
  icon: string;
2208
+ banner: string | null;
2209
+ opportunityBannerLight: string | null;
2210
+ opportunityBannerDark: string | null;
2209
2211
  } | undefined;
2210
2212
  activePrograms: {
2211
2213
  icon: string;
@@ -3344,6 +3346,9 @@ declare const eden: {
3344
3346
  description: string;
3345
3347
  url: string;
3346
3348
  icon: string;
3349
+ banner: string | null;
3350
+ opportunityBannerLight: string | null;
3351
+ opportunityBannerDark: string | null;
3347
3352
  } | undefined;
3348
3353
  activePrograms: {
3349
3354
  icon: string;
@@ -3420,6 +3425,9 @@ declare const eden: {
3420
3425
  description: string;
3421
3426
  url: string;
3422
3427
  icon: string;
3428
+ banner: string | null;
3429
+ opportunityBannerLight: string | null;
3430
+ opportunityBannerDark: string | null;
3423
3431
  }[];
3424
3432
  Tokens: {
3425
3433
  id: string;
@@ -3522,6 +3530,9 @@ declare const eden: {
3522
3530
  description: string;
3523
3531
  url: string;
3524
3532
  icon: string;
3533
+ banner: string | null;
3534
+ opportunityBannerLight: string | null;
3535
+ opportunityBannerDark: string | null;
3525
3536
  }[];
3526
3537
  Tokens: {
3527
3538
  id: string;
@@ -3624,6 +3635,9 @@ declare const eden: {
3624
3635
  description: string;
3625
3636
  url: string;
3626
3637
  icon: string;
3638
+ banner: string | null;
3639
+ opportunityBannerLight: string | null;
3640
+ opportunityBannerDark: string | null;
3627
3641
  }[];
3628
3642
  Tokens: {
3629
3643
  id: string;
@@ -4280,6 +4294,9 @@ declare const eden: {
4280
4294
  description: string;
4281
4295
  url: string;
4282
4296
  icon: string;
4297
+ banner: string | null;
4298
+ opportunityBannerLight: string | null;
4299
+ opportunityBannerDark: string | null;
4283
4300
  } | undefined;
4284
4301
  activePrograms: {
4285
4302
  icon: string;
@@ -4936,6 +4953,9 @@ declare const eden: {
4936
4953
  description: string;
4937
4954
  url: string;
4938
4955
  icon: string;
4956
+ banner: string | null;
4957
+ opportunityBannerLight: string | null;
4958
+ opportunityBannerDark: string | null;
4939
4959
  } | null;
4940
4960
  Protocols: {
4941
4961
  id: string;
@@ -4944,6 +4964,9 @@ declare const eden: {
4944
4964
  description: string;
4945
4965
  url: string;
4946
4966
  icon: string;
4967
+ banner: string | null;
4968
+ opportunityBannerLight: string | null;
4969
+ opportunityBannerDark: string | null;
4947
4970
  }[];
4948
4971
  Tokens: {
4949
4972
  id: string;
@@ -5028,6 +5051,9 @@ declare const eden: {
5028
5051
  description: string;
5029
5052
  url: string;
5030
5053
  icon: string;
5054
+ banner: string | null;
5055
+ opportunityBannerLight: string | null;
5056
+ opportunityBannerDark: string | null;
5031
5057
  } | null;
5032
5058
  } & {
5033
5059
  id: string;
@@ -5210,6 +5236,9 @@ declare const eden: {
5210
5236
  description: string;
5211
5237
  url: string;
5212
5238
  icon: string;
5239
+ banner: string | null;
5240
+ opportunityBannerLight: string | null;
5241
+ opportunityBannerDark: string | null;
5213
5242
  } | null;
5214
5243
  Protocols: {
5215
5244
  id: string;
@@ -5218,6 +5247,9 @@ declare const eden: {
5218
5247
  description: string;
5219
5248
  url: string;
5220
5249
  icon: string;
5250
+ banner: string | null;
5251
+ opportunityBannerLight: string | null;
5252
+ opportunityBannerDark: string | null;
5221
5253
  }[];
5222
5254
  Tokens: {
5223
5255
  id: string;
@@ -5302,6 +5334,9 @@ declare const eden: {
5302
5334
  description: string;
5303
5335
  url: string;
5304
5336
  icon: string;
5337
+ banner: string | null;
5338
+ opportunityBannerLight: string | null;
5339
+ opportunityBannerDark: string | null;
5305
5340
  } | null;
5306
5341
  } & {
5307
5342
  id: string;
@@ -5922,6 +5957,9 @@ declare const eden: {
5922
5957
  description: string;
5923
5958
  url: string;
5924
5959
  icon: string;
5960
+ banner: string | null;
5961
+ opportunityBannerLight: string | null;
5962
+ opportunityBannerDark: string | null;
5925
5963
  }[];
5926
5964
  Tokens: {
5927
5965
  id: string;
@@ -6656,10 +6694,13 @@ declare const eden: {
6656
6694
  };
6657
6695
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6658
6696
  200: ({
6697
+ banner: string | null;
6659
6698
  description: string;
6660
6699
  icon: string;
6661
6700
  id: string;
6662
6701
  name: string;
6702
+ opportunityBannerDark: string | null;
6703
+ opportunityBannerLight: string | null;
6663
6704
  tags: string[];
6664
6705
  url: string;
6665
6706
  } & {
@@ -7210,6 +7251,9 @@ declare const eden: {
7210
7251
  description: string;
7211
7252
  url: string;
7212
7253
  icon: string;
7254
+ banner: string | null;
7255
+ opportunityBannerLight: string | null;
7256
+ opportunityBannerDark: string | null;
7213
7257
  }[];
7214
7258
  Tokens: {
7215
7259
  id: string;
@@ -7656,6 +7700,9 @@ declare const eden: {
7656
7700
  description: string;
7657
7701
  url: string;
7658
7702
  icon: string;
7703
+ banner: string | null;
7704
+ opportunityBannerLight: string | null;
7705
+ opportunityBannerDark: string | null;
7659
7706
  }[];
7660
7707
  Tokens: {
7661
7708
  id: string;
@@ -8809,6 +8856,9 @@ declare const eden: {
8809
8856
  description: string;
8810
8857
  url: string;
8811
8858
  icon: string;
8859
+ banner: string | null;
8860
+ opportunityBannerLight: string | null;
8861
+ opportunityBannerDark: string | null;
8812
8862
  }[];
8813
8863
  Tokens: {
8814
8864
  id: string;
@@ -8960,6 +9010,9 @@ declare const eden: {
8960
9010
  description: string;
8961
9011
  url: string;
8962
9012
  icon: string;
9013
+ banner: string | null;
9014
+ opportunityBannerLight: string | null;
9015
+ opportunityBannerDark: string | null;
8963
9016
  }[];
8964
9017
  Tokens: {
8965
9018
  id: string;
@@ -9090,6 +9143,9 @@ declare const eden: {
9090
9143
  description: string;
9091
9144
  url: string;
9092
9145
  icon: string;
9146
+ banner: string | null;
9147
+ opportunityBannerLight: string | null;
9148
+ opportunityBannerDark: string | null;
9093
9149
  }[];
9094
9150
  Tokens: {
9095
9151
  id: string;
@@ -9481,9 +9537,8 @@ declare const eden: {
9481
9537
  blacklist: string[];
9482
9538
  endTimestamp: number;
9483
9539
  url?: string | undefined;
9484
- campaignType: CampaignType.AJNA;
9485
- poolId: string;
9486
- subCampaignType: import("@package/resources/enums").AjnaSubCampaignType;
9540
+ campaignType: CampaignType.M0;
9541
+ markets: string[];
9487
9542
  forwarders: ({
9488
9543
  priority: number;
9489
9544
  sender: string;
@@ -9738,59 +9793,8 @@ declare const eden: {
9738
9793
  blacklist: string[];
9739
9794
  endTimestamp: number;
9740
9795
  url?: string | undefined;
9741
- campaignType: CampaignType.M0;
9742
- markets: string[];
9743
- forwarders: ({
9744
- priority: number;
9745
- sender: string;
9746
- } & ({
9747
- forwarderType: import("@package/resources/enums").IRONCLAD_RELIQUARY;
9748
- } | {
9749
- forwarderType: import("@package/resources/enums").ZKSWAP_FARM;
9750
- } | {
9751
- forwarderType: import("@package/resources/enums").SUPERFORM;
9752
- } | {
9753
- forwarderType: import("@package/resources/enums").SWAP_X_GAUGE;
9754
- } | {
9755
- forwarderType: import("@package/resources/enums").CLAMM;
9756
- type: string | number;
9757
- owner?: string | undefined;
9758
- target: string;
9759
- } | {
9760
- forwarderType: import("@package/resources/enums").ERC20;
9761
- token: string;
9762
- } | {
9763
- forwarderType: import("@package/resources/enums").ERC20PointsDeposits;
9764
- token: string;
9765
- } | {
9766
- forwarderType: import("@package/resources/enums").INCOMING_TRANSFERS;
9767
- token: string;
9768
- senderType: import("@package/resources/enums").ForwarderStandardType;
9769
- owner?: string | undefined;
9770
- } | {
9771
- forwarderType: import("@package/resources/enums").LLAMALEND;
9772
- token: string;
9773
- senderType: import("@package/resources/enums").ForwarderStandardType;
9774
- owner?: string | undefined;
9775
- } | {
9776
- forwarderType: import("@package/resources/enums").LOCKER_PUFFER;
9777
- nftAddress: string;
9778
- owner?: string | undefined;
9779
- } | {
9780
- forwarderType: import("@package/resources/enums").MASTERCHEF;
9781
- poolID: number;
9782
- } | {
9783
- forwarderType: import("@package/resources/enums").MAVERICK_BOOSTED_POSITIONS;
9784
- owner?: string | undefined;
9785
- } | {
9786
- forwarderType: import("@package/resources/enums").SILO;
9787
- type: import("@package/resources/enums").Contango;
9788
- target?: string | undefined;
9789
- } | {
9790
- forwarderType: import("@package/resources/enums").VAULT;
9791
- balanceCallType: import("@package/resources/enums").VaultBalanceCallType;
9792
- callDataKey?: string | undefined;
9793
- }))[];
9796
+ campaignType: CampaignType.AAVE_SUPPLY;
9797
+ targetToken: string;
9794
9798
  } & {
9795
9799
  rewardToken: string;
9796
9800
  amount: string;
@@ -9994,7 +9998,7 @@ declare const eden: {
9994
9998
  blacklist: string[];
9995
9999
  endTimestamp: number;
9996
10000
  url?: string | undefined;
9997
- campaignType: CampaignType.AAVE_SUPPLY;
10001
+ campaignType: CampaignType.AAVE_BORROW;
9998
10002
  targetToken: string;
9999
10003
  } & {
10000
10004
  rewardToken: string;
@@ -10195,12 +10199,9 @@ declare const eden: {
10195
10199
  };
10196
10200
  } | undefined;
10197
10201
  }) | ({
10198
- whitelist: string[];
10199
- blacklist: string[];
10200
- endTimestamp: number;
10202
+ campaignType: CampaignType.JSON_AIRDROP;
10203
+ jsonUrl: string;
10201
10204
  url?: string | undefined;
10202
- campaignType: CampaignType.AAVE_BORROW;
10203
- targetToken: string;
10204
10205
  } & {
10205
10206
  rewardToken: string;
10206
10207
  amount: string;
@@ -10400,9 +10401,64 @@ declare const eden: {
10400
10401
  };
10401
10402
  } | undefined;
10402
10403
  }) | ({
10403
- campaignType: CampaignType.JSON_AIRDROP;
10404
- jsonUrl: string;
10404
+ whitelist: string[];
10405
+ blacklist: string[];
10406
+ endTimestamp: number;
10405
10407
  url?: string | undefined;
10408
+ campaignType: CampaignType.AJNA;
10409
+ poolId: string;
10410
+ subCampaignType: import("@package/resources/enums").AjnaSubCampaignType;
10411
+ forwarders: ({
10412
+ priority: number;
10413
+ sender: string;
10414
+ } & ({
10415
+ forwarderType: import("@package/resources/enums").IRONCLAD_RELIQUARY;
10416
+ } | {
10417
+ forwarderType: import("@package/resources/enums").ZKSWAP_FARM;
10418
+ } | {
10419
+ forwarderType: import("@package/resources/enums").SUPERFORM;
10420
+ } | {
10421
+ forwarderType: import("@package/resources/enums").SWAP_X_GAUGE;
10422
+ } | {
10423
+ forwarderType: import("@package/resources/enums").CLAMM;
10424
+ type: string | number;
10425
+ owner?: string | undefined;
10426
+ target: string;
10427
+ } | {
10428
+ forwarderType: import("@package/resources/enums").ERC20;
10429
+ token: string;
10430
+ } | {
10431
+ forwarderType: import("@package/resources/enums").ERC20PointsDeposits;
10432
+ token: string;
10433
+ } | {
10434
+ forwarderType: import("@package/resources/enums").INCOMING_TRANSFERS;
10435
+ token: string;
10436
+ senderType: import("@package/resources/enums").ForwarderStandardType;
10437
+ owner?: string | undefined;
10438
+ } | {
10439
+ forwarderType: import("@package/resources/enums").LLAMALEND;
10440
+ token: string;
10441
+ senderType: import("@package/resources/enums").ForwarderStandardType;
10442
+ owner?: string | undefined;
10443
+ } | {
10444
+ forwarderType: import("@package/resources/enums").LOCKER_PUFFER;
10445
+ nftAddress: string;
10446
+ owner?: string | undefined;
10447
+ } | {
10448
+ forwarderType: import("@package/resources/enums").MASTERCHEF;
10449
+ poolID: number;
10450
+ } | {
10451
+ forwarderType: import("@package/resources/enums").MAVERICK_BOOSTED_POSITIONS;
10452
+ owner?: string | undefined;
10453
+ } | {
10454
+ forwarderType: import("@package/resources/enums").SILO;
10455
+ type: import("@package/resources/enums").Contango;
10456
+ target?: string | undefined;
10457
+ } | {
10458
+ forwarderType: import("@package/resources/enums").VAULT;
10459
+ balanceCallType: import("@package/resources/enums").VaultBalanceCallType;
10460
+ callDataKey?: string | undefined;
10461
+ }))[];
10406
10462
  } & {
10407
10463
  rewardToken: string;
10408
10464
  amount: string;
@@ -31126,10 +31182,13 @@ declare const eden: {
31126
31182
  query?: Record<string, unknown> | undefined;
31127
31183
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
31128
31184
  200: {
31185
+ banner: string | null;
31129
31186
  description: string;
31130
31187
  icon: string;
31131
31188
  id: string;
31132
31189
  name: string;
31190
+ opportunityBannerDark: string | null;
31191
+ opportunityBannerLight: string | null;
31133
31192
  tags: string[];
31134
31193
  url: string;
31135
31194
  } & {
@@ -31166,6 +31225,9 @@ declare const eden: {
31166
31225
  description: string;
31167
31226
  url: string;
31168
31227
  icon: string;
31228
+ banner: string | null;
31229
+ opportunityBannerLight: string | null;
31230
+ opportunityBannerDark: string | null;
31169
31231
  };
31170
31232
  422: {
31171
31233
  type: "validation";
@@ -31252,6 +31314,9 @@ declare const eden: {
31252
31314
  description: string;
31253
31315
  url: string;
31254
31316
  icon: string;
31317
+ banner: string | null;
31318
+ opportunityBannerLight: string | null;
31319
+ opportunityBannerDark: string | null;
31255
31320
  };
31256
31321
  422: {
31257
31322
  type: "validation";
@@ -31377,6 +31442,9 @@ declare const eden: {
31377
31442
  description: string;
31378
31443
  url: string;
31379
31444
  icon: string;
31445
+ banner: string | null;
31446
+ opportunityBannerLight: string | null;
31447
+ opportunityBannerDark: string | null;
31380
31448
  };
31381
31449
  422: {
31382
31450
  type: "validation";
@@ -31487,53 +31555,6 @@ declare const eden: {
31487
31555
  campaign: ((params: {
31488
31556
  campaignId: string | number;
31489
31557
  }) => {
31490
- get: (options: {
31491
- fetch?: RequestInit | undefined;
31492
- headers?: Record<string, unknown> | undefined;
31493
- query: {
31494
- page?: number | undefined;
31495
- items?: number | undefined;
31496
- };
31497
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
31498
- 200: {
31499
- amount: string;
31500
- claimed: string;
31501
- pending: string;
31502
- recipient: string;
31503
- }[];
31504
- 422: {
31505
- type: "validation";
31506
- on: string;
31507
- summary?: string | undefined;
31508
- message?: string | undefined;
31509
- found?: unknown;
31510
- property?: string | undefined;
31511
- expected?: string | undefined;
31512
- };
31513
- }>>;
31514
- count: {
31515
- get: (options: {
31516
- fetch?: RequestInit | undefined;
31517
- headers?: Record<string, unknown> | undefined;
31518
- query: {
31519
- page?: number | undefined;
31520
- items?: number | undefined;
31521
- };
31522
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
31523
- 200: {
31524
- count: number;
31525
- };
31526
- 422: {
31527
- type: "validation";
31528
- on: string;
31529
- summary?: string | undefined;
31530
- message?: string | undefined;
31531
- found?: unknown;
31532
- property?: string | undefined;
31533
- expected?: string | undefined;
31534
- };
31535
- }>>;
31536
- };
31537
31558
  list: {
31538
31559
  get: (options: {
31539
31560
  fetch?: RequestInit | undefined;
@@ -31558,30 +31579,6 @@ declare const eden: {
31558
31579
  };
31559
31580
  }>>;
31560
31581
  };
31561
- total: {
31562
- get: (options: {
31563
- fetch?: RequestInit | undefined;
31564
- headers?: Record<string, unknown> | undefined;
31565
- query: {
31566
- page?: number | undefined;
31567
- items?: number | undefined;
31568
- };
31569
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
31570
- 200: {
31571
- rewardTokenId: string;
31572
- amount: bigint;
31573
- };
31574
- 422: {
31575
- type: "validation";
31576
- on: string;
31577
- summary?: string | undefined;
31578
- message?: string | undefined;
31579
- found?: unknown;
31580
- property?: string | undefined;
31581
- expected?: string | undefined;
31582
- };
31583
- }>>;
31584
- };
31585
31582
  }) & {};
31586
31583
  count: {
31587
31584
  get: (options: {
@@ -31731,7 +31728,6 @@ declare const eden: {
31731
31728
  chainId: number;
31732
31729
  address: string;
31733
31730
  recipient?: string | undefined;
31734
- campaignIds?: string[] | undefined;
31735
31731
  test?: boolean | undefined;
31736
31732
  };
31737
31733
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -31761,7 +31757,6 @@ declare const eden: {
31761
31757
  chainId: number;
31762
31758
  address: string;
31763
31759
  recipient?: string | undefined;
31764
- campaignIds?: string[] | undefined;
31765
31760
  test?: boolean | undefined;
31766
31761
  };
31767
31762
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -31789,7 +31784,6 @@ declare const eden: {
31789
31784
  chainId: number;
31790
31785
  address: string;
31791
31786
  recipient?: string | undefined;
31792
- campaignIds?: string[] | undefined;
31793
31787
  test?: boolean | undefined;
31794
31788
  };
31795
31789
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -33495,10 +33489,13 @@ declare const eden: {
33495
33489
  mainProtocolId?: string | undefined;
33496
33490
  liveCampaignsForCreator?: number | undefined;
33497
33491
  protocol?: ({
33492
+ banner: string | null;
33498
33493
  description: string;
33499
33494
  icon: string;
33500
33495
  id: string;
33501
33496
  name: string;
33497
+ opportunityBannerDark: string | null;
33498
+ opportunityBannerLight: string | null;
33502
33499
  tags: string[];
33503
33500
  url: string;
33504
33501
  } & {
@@ -33793,10 +33790,13 @@ declare const eden: {
33793
33790
  mainProtocolId?: string | undefined;
33794
33791
  liveCampaignsForCreator?: number | undefined;
33795
33792
  protocol?: ({
33793
+ banner: string | null;
33796
33794
  description: string;
33797
33795
  icon: string;
33798
33796
  id: string;
33799
33797
  name: string;
33798
+ opportunityBannerDark: string | null;
33799
+ opportunityBannerLight: string | null;
33800
33800
  tags: string[];
33801
33801
  url: string;
33802
33802
  } & {
@@ -34202,6 +34202,9 @@ declare const eden: {
34202
34202
  description: string;
34203
34203
  url: string;
34204
34204
  icon: string;
34205
+ banner: string | null;
34206
+ opportunityBannerLight: string | null;
34207
+ opportunityBannerDark: string | null;
34205
34208
  } | null;
34206
34209
  Protocols: {
34207
34210
  id: string;
@@ -34210,6 +34213,9 @@ declare const eden: {
34210
34213
  description: string;
34211
34214
  url: string;
34212
34215
  icon: string;
34216
+ banner: string | null;
34217
+ opportunityBannerLight: string | null;
34218
+ opportunityBannerDark: string | null;
34213
34219
  }[];
34214
34220
  Tokens: {
34215
34221
  id: string;
@@ -34315,6 +34321,9 @@ declare const eden: {
34315
34321
  description: string;
34316
34322
  url: string;
34317
34323
  icon: string;
34324
+ banner: string | null;
34325
+ opportunityBannerLight: string | null;
34326
+ opportunityBannerDark: string | null;
34318
34327
  } | null;
34319
34328
  Protocols: {
34320
34329
  id: string;
@@ -34323,6 +34332,9 @@ declare const eden: {
34323
34332
  description: string;
34324
34333
  url: string;
34325
34334
  icon: string;
34335
+ banner: string | null;
34336
+ opportunityBannerLight: string | null;
34337
+ opportunityBannerDark: string | null;
34326
34338
  }[];
34327
34339
  Tokens: {
34328
34340
  id: string;
@@ -34425,10 +34437,13 @@ declare const eden: {
34425
34437
  mainProtocolId?: string | undefined;
34426
34438
  liveCampaignsForCreator?: number | undefined;
34427
34439
  protocol?: ({
34440
+ banner: string | null;
34428
34441
  description: string;
34429
34442
  icon: string;
34430
34443
  id: string;
34431
34444
  name: string;
34445
+ opportunityBannerDark: string | null;
34446
+ opportunityBannerLight: string | null;
34432
34447
  tags: string[];
34433
34448
  url: string;
34434
34449
  } & {
@@ -35060,7 +35075,6 @@ export type FromPromise<R extends (...args: any) => Promise<{
35060
35075
  data: any;
35061
35076
  }>> = NonNullable<NonNullable<Awaited<ReturnType<R>>["data"]>[number]>;
35062
35077
  type RouteType<V extends ApiModuleVersion, R extends ApiModuleRoute<V>> = Awaited<ReturnType<"get" extends keyof Api[V][R] ? (Api[V][R]["get"] extends (...args: any) => any ? Api[V][R]["get"] : never) : never>>;
35063
- // Exports types shared to the frontend
35064
35078
  export type Opportunity = OpportunityResourceModel;
35065
35079
  export type Protocol = FromPromise<Api["v4"]["protocols"]["get"]>;
35066
35080
  export type Campaign = FromPromise<Api["v4"]["campaigns"]["get"]>;
@@ -7,18 +7,3 @@ export declare class HyperdriveDynamicData implements DynamicDataBuilder<campaig
7
7
  build(chainId: ChainId, campaigns: EngineCampaign<campaignType>[]): Promise<CampaignDynamicData<campaignType>[]>;
8
8
  }
9
9
  export {};
10
- // enum AssetIdPrefix {
11
- // LP = 0,
12
- // Long = 1,
13
- // Short = 2,
14
- // WithdrawalShare = 3,
15
- // }
16
- // function encodeAssetId(prefix: AssetIdPrefix, timestamp: bigint): bigint {
17
- // // Check if the timestamp is within the valid range
18
- // const maxTimestamp = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
19
- // if (timestamp > maxTimestamp) {
20
- // throw new Error("InvalidTimestamp");
21
- // }
22
- // // Encode the asset ID
23
- // return (BigInt(prefix) << BigInt(248)) | timestamp;
24
- // }
@@ -1,3 +1,2 @@
1
1
  import type { JsonRpcProvider } from "@ethersproject/providers";
2
- // Function to find the contract creation transaction
3
2
  export declare function getContractCreationBlock(contractAddress: string, provider: JsonRpcProvider): Promise<number | undefined>;
@@ -1,7 +1,4 @@
1
1
  import type { CampaignType } from "@package/resources/enums";
2
2
  import type { EngineCampaign } from "@package/resources/schemas";
3
3
  export type FixedAprCampaignType = CampaignType.ERC20_FIX_APR | CampaignType.HYPERDRIVELOGFIXPROCESSOR;
4
- // TODO: Enhance APR display for non-dollar denominations when front-end is ready.
5
- // This should handle cases where one or both token price are unavailable, showing the APR as a direct ratio
6
- // (e.g., X reward tokens per Y target tokens) instead of dollar values.
7
4
  export declare function getFixedApr(campaignParameters: EngineCampaign<CampaignType>, priceRewardToken: number, priceTargetToken: number): number;