@merkl/api 1.20.0 → 1.20.21

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 (163) hide show
  1. package/dist/src/constants.d.ts +2 -0
  2. package/dist/src/constants.js.map +1 -1
  3. package/dist/src/eden/index.d.ts +1104 -72
  4. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +153 -63
  5. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.js.map +1 -1
  6. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pendleYT/tvl.js.map +1 -1
  7. package/dist/src/engine/implementations/EulerMultiBorrowFromCollateral/metadata.d.ts +25 -0
  8. package/dist/src/engine/implementations/EulerMultiBorrowFromCollateral/metadata.js.map +1 -0
  9. package/dist/src/engine/implementations/Exactly/metadata.d.ts +19 -0
  10. package/dist/src/engine/implementations/Exactly/metadata.js.map +1 -0
  11. package/dist/src/engine/implementations/FeeWrapper4626/metadata.d.ts +18 -0
  12. package/dist/src/engine/implementations/FeeWrapper4626/metadata.js.map +1 -0
  13. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +1 -1
  14. package/dist/src/engine/metadata/factory.js.map +1 -1
  15. package/dist/src/engine/tvl/factory.js.map +1 -1
  16. package/dist/src/guards/{KeyStoreAuth.guard.d.ts → KeyValueStoreAuth.guard.d.ts} +4 -4
  17. package/dist/src/guards/KeyValueStoreAuth.guard.js.map +1 -0
  18. package/dist/src/guards/PrivateAccess.guard.d.ts +25 -0
  19. package/dist/src/guards/PrivateAccess.guard.js.map +1 -0
  20. package/dist/src/index.d.ts +1143 -2
  21. package/dist/src/index.js.map +1 -1
  22. package/dist/src/jobs/claim-etl/load.d.ts +2 -2
  23. package/dist/src/jobs/claim-etl/load.js.map +1 -1
  24. package/dist/src/jobs/claim-etl/types.d.ts +5 -5
  25. package/dist/src/jobs/deposit-credit-etl/load.js.map +1 -1
  26. package/dist/src/jobs/merge-etl/load.js.map +1 -1
  27. package/dist/src/jobs/refresh-materialized-views.js.map +1 -1
  28. package/dist/src/jobs/sync-campaigns-to-hubspot.js.map +1 -1
  29. package/dist/src/modules/graphql/context.d.ts +14 -0
  30. package/dist/src/modules/graphql/context.js.map +1 -0
  31. package/dist/src/modules/graphql/errors.d.ts +7 -0
  32. package/dist/src/modules/graphql/errors.js.map +1 -0
  33. package/dist/src/modules/graphql/guards.d.ts +26 -0
  34. package/dist/src/modules/graphql/guards.js.map +1 -0
  35. package/dist/src/modules/graphql/resolvers.d.ts +593 -0
  36. package/dist/src/modules/graphql/resolvers.js.map +1 -0
  37. package/dist/src/modules/graphql/router.d.ts +87 -0
  38. package/dist/src/modules/graphql/router.js.map +1 -0
  39. package/dist/src/modules/graphql/scalars.d.ts +3 -0
  40. package/dist/src/modules/graphql/scalars.js.map +1 -0
  41. package/dist/src/modules/graphql/schema.d.ts +2 -0
  42. package/dist/src/modules/graphql/schema.js.map +1 -0
  43. package/dist/src/modules/graphql/translator.d.ts +25 -0
  44. package/dist/src/modules/graphql/translator.js.map +1 -0
  45. package/dist/src/modules/graphql/yoga.d.ts +2 -0
  46. package/dist/src/modules/graphql/yoga.js.map +1 -0
  47. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +10 -2
  48. package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
  49. package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +24 -0
  50. package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
  51. package/dist/src/modules/v4/campaign/campaign.model.d.ts +5 -0
  52. package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
  53. package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +6 -6
  54. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +11 -0
  55. package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
  56. package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -1
  57. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +1 -1
  58. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.js.map +1 -1
  59. package/dist/src/modules/v4/chain/chain.model.js.map +1 -1
  60. package/dist/src/modules/v4/claims/claims.model.js.map +1 -1
  61. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +29 -0
  62. package/dist/src/modules/v4/computedValue/computedValue.controller.js.map +1 -1
  63. package/dist/src/modules/v4/computedValue/computedValue.model.d.ts +5 -0
  64. package/dist/src/modules/v4/computedValue/computedValue.model.js.map +1 -1
  65. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -1
  66. package/dist/src/modules/v4/computedValue/computedValue.repository.js.map +1 -1
  67. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -1
  68. package/dist/src/modules/v4/computedValue/computedValue.service.js.map +1 -1
  69. package/dist/src/modules/v4/credit/credit.controller.d.ts +98 -0
  70. package/dist/src/modules/v4/credit/credit.controller.js.map +1 -1
  71. package/dist/src/modules/v4/credit/credit.model.d.ts +5 -0
  72. package/dist/src/modules/v4/credit/credit.model.js.map +1 -1
  73. package/dist/src/modules/v4/credit/credit.repository.d.ts +21 -1
  74. package/dist/src/modules/v4/credit/credit.repository.js.map +1 -1
  75. package/dist/src/modules/v4/credit/credit.service.d.ts +20 -1
  76. package/dist/src/modules/v4/credit/credit.service.js.map +1 -1
  77. package/dist/src/modules/v4/enum/enum.service.d.ts +68 -0
  78. package/dist/src/modules/v4/enum/enum.service.js.map +1 -1
  79. package/dist/src/modules/v4/historical/historical.controller.js.map +1 -1
  80. package/dist/src/modules/v4/historical/historical.service.js.map +1 -1
  81. package/dist/src/modules/v4/{keyStore/keyStore.controller.d.ts → keyValueStore/keyValueStore.controller.d.ts} +1 -1
  82. package/dist/src/modules/v4/keyValueStore/keyValueStore.controller.js.map +1 -0
  83. package/dist/src/modules/v4/keyValueStore/keyValueStore.formatter.d.ts +27 -0
  84. package/dist/src/modules/v4/keyValueStore/keyValueStore.formatter.js.map +1 -0
  85. package/dist/src/modules/v4/keyValueStore/keyValueStore.model.js.map +1 -0
  86. package/dist/src/modules/v4/{keyStore/keyStore.repository.d.ts → keyValueStore/keyValueStore.repository.d.ts} +1 -1
  87. package/dist/src/modules/v4/keyValueStore/keyValueStore.repository.js.map +1 -0
  88. package/dist/src/modules/v4/{keyStore/keyStore.service.d.ts → keyValueStore/keyValueStore.service.d.ts} +1 -1
  89. package/dist/src/modules/v4/keyValueStore/keyValueStore.service.js.map +1 -0
  90. package/dist/src/modules/v4/leaf/latestCompute.repository.js.map +1 -1
  91. package/dist/src/modules/v4/leaf/leaf.model.d.ts +0 -95
  92. package/dist/src/modules/v4/leaf/leaf.repository.d.ts +98 -124
  93. package/dist/src/modules/v4/leaf/leaf.repository.js.map +1 -1
  94. package/dist/src/modules/v4/leaf/leaf.service.d.ts +84 -514
  95. package/dist/src/modules/v4/leaf/leaf.service.js.map +1 -1
  96. package/dist/src/modules/v4/leaf/leafTemp.repository.js.map +1 -1
  97. package/dist/src/modules/v4/leaf/leafView.repository.d.ts +3 -17
  98. package/dist/src/modules/v4/leaf/leafView.repository.js.map +1 -1
  99. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -0
  100. package/dist/src/modules/v4/opportunity/opportunity.controller.js.map +1 -1
  101. package/dist/src/modules/v4/opportunity/opportunity.formatter.js.map +1 -1
  102. package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
  103. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +7 -7
  104. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +573 -1
  105. package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
  106. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +4 -2
  107. package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
  108. package/dist/src/modules/v4/programPayload/subPayloads/ethena.d.ts +48 -48
  109. package/dist/src/modules/v4/protocol/protocol.model.js.map +1 -1
  110. package/dist/src/modules/v4/reallocation/reallocation.controller.d.ts +67 -0
  111. package/dist/src/modules/v4/reallocation/reallocation.controller.js.map +1 -0
  112. package/dist/src/modules/v4/reallocation/reallocation.model.d.ts +38 -0
  113. package/dist/src/modules/v4/reallocation/reallocation.model.js.map +1 -0
  114. package/dist/src/modules/v4/reallocation/reallocation.repository.d.ts +25 -0
  115. package/dist/src/modules/v4/reallocation/reallocation.repository.js.map +1 -0
  116. package/dist/src/modules/v4/reallocation/reallocation.service.d.ts +21 -0
  117. package/dist/src/modules/v4/reallocation/reallocation.service.js.map +1 -0
  118. package/dist/src/modules/v4/reward/reward.controller.js.map +1 -1
  119. package/dist/src/modules/v4/reward/reward.model.js.map +1 -1
  120. package/dist/src/modules/v4/reward/reward.service.d.ts +3 -287
  121. package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
  122. package/dist/src/modules/v4/router.d.ts +1100 -2
  123. package/dist/src/modules/v4/router.js.map +1 -1
  124. package/dist/src/modules/v4/schema/schema.controller.d.ts +141 -0
  125. package/dist/src/modules/v4/schema/schema.controller.js.map +1 -0
  126. package/dist/src/modules/v4/schema/schema.model.d.ts +56 -0
  127. package/dist/src/modules/v4/schema/schema.model.js.map +1 -0
  128. package/dist/src/modules/v4/schema/schema.service.d.ts +20 -0
  129. package/dist/src/modules/v4/schema/schema.service.js.map +1 -0
  130. package/dist/src/modules/v4/slack/slack.service.js.map +1 -1
  131. package/dist/src/modules/v4/token/token.model.js.map +1 -1
  132. package/dist/src/modules/v4/transaction/transaction.service.d.ts +1333 -579
  133. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +13 -0
  134. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +14 -0
  135. package/dist/src/modules/v4/user/user.controller.d.ts +812 -0
  136. package/dist/src/modules/v4/user/user.controller.js.map +1 -1
  137. package/dist/src/modules/v4/user/user.model.d.ts +969 -0
  138. package/dist/src/modules/v4/user/user.model.js.map +1 -1
  139. package/dist/src/modules/v4/user/user.pending.test.d.ts +1 -0
  140. package/dist/src/modules/v4/user/user.pending.test.js.map +1 -0
  141. package/dist/src/modules/v4/user/user.service.d.ts +324 -5
  142. package/dist/src/modules/v4/user/user.service.js.map +1 -1
  143. package/dist/src/plugins/errorHandler.d.ts +15 -0
  144. package/dist/src/plugins/errorHandler.js.map +1 -1
  145. package/dist/src/scripts/extract-stellar-pk.d.ts +1 -0
  146. package/dist/src/scripts/extract-stellar-pk.js.map +1 -0
  147. package/dist/src/scripts/test-reallocations.d.ts +9 -0
  148. package/dist/src/scripts/test-reallocations.js.map +1 -0
  149. package/dist/src/utils/getAPR.d.ts +1102 -725
  150. package/dist/src/utils/parseDistributionType.d.ts +476 -99
  151. package/dist/src/utils/providers.d.ts +2 -0
  152. package/dist/src/utils/safeEngineQuery.d.ts +14 -0
  153. package/dist/src/utils/safeEngineQuery.js.map +1 -0
  154. package/dist/src/utils/throw.d.ts +17 -0
  155. package/dist/src/utils/throw.js.map +1 -1
  156. package/dist/tsconfig.tsbuildinfo +1 -1
  157. package/package.json +1 -1
  158. package/dist/src/guards/KeyStoreAuth.guard.js.map +0 -1
  159. package/dist/src/modules/v4/keyStore/keyStore.controller.js.map +0 -1
  160. package/dist/src/modules/v4/keyStore/keyStore.model.js.map +0 -1
  161. package/dist/src/modules/v4/keyStore/keyStore.repository.js.map +0 -1
  162. package/dist/src/modules/v4/keyStore/keyStore.service.js.map +0 -1
  163. /package/dist/src/modules/v4/{keyStore/keyStore.model.d.ts → keyValueStore/keyValueStore.model.d.ts} +0 -0
@@ -56,6 +56,35 @@ declare const eden: {
56
56
  };
57
57
  }>>;
58
58
  };
59
+ graphql: {
60
+ v1: {
61
+ [x: string]: (body?: unknown, options?: {
62
+ fetch?: RequestInit | undefined;
63
+ headers?: Record<string, unknown> | undefined;
64
+ query?: Record<string, unknown> | undefined;
65
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
66
+ 200: Response;
67
+ }>>;
68
+ "*": {
69
+ [x: string]: (body?: unknown, options?: {
70
+ fetch?: RequestInit | undefined;
71
+ headers?: Record<string, unknown> | undefined;
72
+ query?: Record<string, unknown> | undefined;
73
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
74
+ 200: Response;
75
+ 422: {
76
+ type: "validation";
77
+ on: string;
78
+ summary?: string | undefined;
79
+ message?: string | undefined;
80
+ found?: unknown;
81
+ property?: string | undefined;
82
+ expected?: string | undefined;
83
+ };
84
+ }>>;
85
+ };
86
+ };
87
+ };
59
88
  v1: {
60
89
  allowances: {
61
90
  get: (options: {
@@ -2405,11 +2434,13 @@ declare const eden: {
2405
2434
  campaigns: ((params: {
2406
2435
  id: string | number;
2407
2436
  }) => {
2408
- get: (options?: {
2437
+ get: (options: {
2409
2438
  fetch?: RequestInit | undefined;
2410
2439
  headers?: Record<string, unknown> | undefined;
2411
- query?: Record<string, unknown> | undefined;
2412
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2440
+ query: {
2441
+ showPrivate?: boolean | undefined;
2442
+ };
2443
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2413
2444
  200: {
2414
2445
  id: string;
2415
2446
  computeChainId: number;
@@ -3896,6 +3927,7 @@ declare const eden: {
3896
3927
  rootCampaignId?: string | undefined;
3897
3928
  parentCampaignId?: string | undefined;
3898
3929
  mainProtocolId?: string | undefined;
3930
+ showPrivate?: boolean | undefined;
3899
3931
  };
3900
3932
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3901
3933
  200: ({
@@ -4220,6 +4252,7 @@ declare const eden: {
4220
4252
  rootCampaignId?: string | undefined;
4221
4253
  parentCampaignId?: string | undefined;
4222
4254
  mainProtocolId?: string | undefined;
4255
+ showPrivate?: boolean | undefined;
4223
4256
  };
4224
4257
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4225
4258
  200: {
@@ -4402,6 +4435,7 @@ declare const eden: {
4402
4435
  rootCampaignId?: string | undefined;
4403
4436
  parentCampaignId?: string | undefined;
4404
4437
  mainProtocolId?: string | undefined;
4438
+ showPrivate?: boolean | undefined;
4405
4439
  };
4406
4440
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4407
4441
  200: number;
@@ -4457,6 +4491,7 @@ declare const eden: {
4457
4491
  rootCampaignId?: string | undefined;
4458
4492
  parentCampaignId?: string | undefined;
4459
4493
  mainProtocolId?: string | undefined;
4494
+ showPrivate?: boolean | undefined;
4460
4495
  };
4461
4496
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4462
4497
  200: {
@@ -4515,6 +4550,7 @@ declare const eden: {
4515
4550
  rootCampaignId?: string | undefined;
4516
4551
  parentCampaignId?: string | undefined;
4517
4552
  mainProtocolId?: string | undefined;
4553
+ showPrivate?: boolean | undefined;
4518
4554
  };
4519
4555
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4520
4556
  200: {
@@ -4573,6 +4609,7 @@ declare const eden: {
4573
4609
  rootCampaignId?: string | undefined;
4574
4610
  parentCampaignId?: string | undefined;
4575
4611
  mainProtocolId?: string | undefined;
4612
+ showPrivate?: boolean | undefined;
4576
4613
  };
4577
4614
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4578
4615
  200: {
@@ -6851,7 +6888,7 @@ declare const eden: {
6851
6888
  }) => {
6852
6889
  post: (body: {
6853
6890
  cost: number;
6854
- runKey?: string | undefined;
6891
+ runKey: string;
6855
6892
  }, options: {
6856
6893
  fetch?: RequestInit | undefined;
6857
6894
  headers: {
@@ -11201,6 +11238,7 @@ declare const eden: {
11201
11238
  query: {
11202
11239
  page?: number | undefined;
11203
11240
  items?: number | undefined;
11241
+ type?: "ADD" | "SUBTRACT" | undefined;
11204
11242
  };
11205
11243
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11206
11244
  200: {
@@ -11221,6 +11259,70 @@ declare const eden: {
11221
11259
  expected?: string | undefined;
11222
11260
  };
11223
11261
  }>>;
11262
+ aggregate: {
11263
+ get: (options: {
11264
+ fetch?: RequestInit | undefined;
11265
+ headers?: Record<string, unknown> | undefined;
11266
+ query: {
11267
+ type?: "ADD" | "SUBTRACT" | undefined;
11268
+ };
11269
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11270
+ 200: number;
11271
+ 422: {
11272
+ type: "validation";
11273
+ on: string;
11274
+ summary?: string | undefined;
11275
+ message?: string | undefined;
11276
+ found?: unknown;
11277
+ property?: string | undefined;
11278
+ expected?: string | undefined;
11279
+ };
11280
+ }>>;
11281
+ };
11282
+ breakdowns: {
11283
+ get: (options: {
11284
+ fetch?: RequestInit | undefined;
11285
+ headers?: Record<string, unknown> | undefined;
11286
+ query: {
11287
+ type?: "ADD" | "SUBTRACT" | undefined;
11288
+ };
11289
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11290
+ 200: {
11291
+ category: string;
11292
+ total: number;
11293
+ count: number;
11294
+ }[];
11295
+ 422: {
11296
+ type: "validation";
11297
+ on: string;
11298
+ summary?: string | undefined;
11299
+ message?: string | undefined;
11300
+ found?: unknown;
11301
+ property?: string | undefined;
11302
+ expected?: string | undefined;
11303
+ };
11304
+ }>>;
11305
+ };
11306
+ count: {
11307
+ get: (options: {
11308
+ fetch?: RequestInit | undefined;
11309
+ headers?: Record<string, unknown> | undefined;
11310
+ query: {
11311
+ type?: "ADD" | "SUBTRACT" | undefined;
11312
+ };
11313
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11314
+ 200: number;
11315
+ 422: {
11316
+ type: "validation";
11317
+ on: string;
11318
+ summary?: string | undefined;
11319
+ message?: string | undefined;
11320
+ found?: unknown;
11321
+ property?: string | undefined;
11322
+ expected?: string | undefined;
11323
+ };
11324
+ }>>;
11325
+ };
11224
11326
  };
11225
11327
  }) & {
11226
11328
  post: (body: {
@@ -13937,6 +14039,8 @@ declare const eden: {
13937
14039
  query: {
13938
14040
  page?: number | undefined;
13939
14041
  items?: number | undefined;
14042
+ from?: number | undefined;
14043
+ to?: number | undefined;
13940
14044
  };
13941
14045
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
13942
14046
  200: {
@@ -15878,6 +15982,7 @@ declare const eden: {
15878
15982
  rootCampaignId?: string | undefined;
15879
15983
  parentCampaignId?: string | undefined;
15880
15984
  mainProtocolId?: string | undefined;
15985
+ showPrivate?: boolean | undefined;
15881
15986
  };
15882
15987
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
15883
15988
  200: ({
@@ -18819,6 +18924,41 @@ declare const eden: {
18819
18924
  };
18820
18925
  };
18821
18926
  };
18927
+ reallocations: {
18928
+ breakdown: {
18929
+ get: (options: {
18930
+ fetch?: RequestInit | undefined;
18931
+ headers: {
18932
+ authorization: string;
18933
+ };
18934
+ query: {
18935
+ chainId: number;
18936
+ to?: string[] | undefined;
18937
+ campaignIds?: string[] | undefined;
18938
+ };
18939
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18940
+ 200: {
18941
+ chainId: number;
18942
+ campaignId: string;
18943
+ to: string;
18944
+ tokenAddress: string;
18945
+ tokenSymbol?: string | undefined;
18946
+ tokenDecimals?: number | undefined;
18947
+ amount: string;
18948
+ count: number;
18949
+ }[];
18950
+ 422: {
18951
+ type: "validation";
18952
+ on: string;
18953
+ summary?: string | undefined;
18954
+ message?: string | undefined;
18955
+ found?: unknown;
18956
+ property?: string | undefined;
18957
+ expected?: string | undefined;
18958
+ };
18959
+ }>>;
18960
+ };
18961
+ };
18822
18962
  referral: {
18823
18963
  code: {
18824
18964
  get: (options: {
@@ -19296,6 +19436,85 @@ declare const eden: {
19296
19436
  }>>;
19297
19437
  }) & {};
19298
19438
  };
19439
+ schemas: ((params: {
19440
+ groupName: string | number;
19441
+ }) => {
19442
+ get: (options: {
19443
+ fetch?: RequestInit | undefined;
19444
+ headers: {
19445
+ authorization: string;
19446
+ };
19447
+ query?: Record<string, unknown> | undefined;
19448
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19449
+ 200: {
19450
+ name: string;
19451
+ enumName: string;
19452
+ valueType: "number" | "string";
19453
+ entries: {
19454
+ value: string | number;
19455
+ key: string;
19456
+ description?: string | undefined;
19457
+ }[];
19458
+ };
19459
+ 422: {
19460
+ type: "validation";
19461
+ on: string;
19462
+ summary?: string | undefined;
19463
+ message?: string | undefined;
19464
+ found?: unknown;
19465
+ property?: string | undefined;
19466
+ expected?: string | undefined;
19467
+ };
19468
+ }>>;
19469
+ } & ((params: {
19470
+ typeId: string | number;
19471
+ }) => {
19472
+ get: (options: {
19473
+ fetch?: RequestInit | undefined;
19474
+ headers: {
19475
+ authorization: string;
19476
+ };
19477
+ query?: Record<string, unknown> | undefined;
19478
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19479
+ 200: any;
19480
+ 422: {
19481
+ type: "validation";
19482
+ on: string;
19483
+ summary?: string | undefined;
19484
+ message?: string | undefined;
19485
+ found?: unknown;
19486
+ property?: string | undefined;
19487
+ expected?: string | undefined;
19488
+ };
19489
+ }>>;
19490
+ })) & {
19491
+ get: (options: {
19492
+ fetch?: RequestInit | undefined;
19493
+ headers: {
19494
+ authorization: string;
19495
+ };
19496
+ query?: Record<string, unknown> | undefined;
19497
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19498
+ 200: {
19499
+ groups: {
19500
+ name: string;
19501
+ enumName: string;
19502
+ valueType: "number" | "string";
19503
+ count: number;
19504
+ description: string;
19505
+ }[];
19506
+ };
19507
+ 422: {
19508
+ type: "validation";
19509
+ on: string;
19510
+ summary?: string | undefined;
19511
+ message?: string | undefined;
19512
+ found?: unknown;
19513
+ property?: string | undefined;
19514
+ expected?: string | undefined;
19515
+ };
19516
+ }>>;
19517
+ };
19299
19518
  slack: {
19300
19519
  engine: {
19301
19520
  "campaign-creation-failure": {
@@ -21015,6 +21234,19 @@ declare const eden: {
21015
21234
  symbolCurrency1: string;
21016
21235
  tickSpacing: number;
21017
21236
  }> | undefined;
21237
+ 4663?: Record<string, {
21238
+ chainId: number;
21239
+ currency0: string;
21240
+ currency1: string;
21241
+ decimalsCurrency0: number;
21242
+ decimalsCurrency1: number;
21243
+ hooks: string;
21244
+ lpFee: number;
21245
+ poolId: string;
21246
+ symbolCurrency0: string;
21247
+ symbolCurrency1: string;
21248
+ tickSpacing: number;
21249
+ }> | undefined;
21018
21250
  480?: Record<string, {
21019
21251
  chainId: number;
21020
21252
  currency0: string;
@@ -21952,6 +22184,7 @@ declare const eden: {
21952
22184
  claimableOnly?: boolean | undefined;
21953
22185
  breakdownPage: number;
21954
22186
  type?: "POINT" | "PRETGE" | "TOKEN" | undefined;
22187
+ showPrivate?: boolean | undefined;
21955
22188
  };
21956
22189
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
21957
22190
  200: {
@@ -22011,53 +22244,405 @@ declare const eden: {
22011
22244
  expected?: string | undefined;
22012
22245
  };
22013
22246
  }>>;
22014
- breakdowns: {
22247
+ "active-opportunities": {
22015
22248
  get: (options: {
22016
22249
  fetch?: RequestInit | undefined;
22017
22250
  headers?: Record<string, unknown> | undefined;
22018
22251
  query: {
22019
- tags?: string | undefined;
22020
- chainIds?: string[] | undefined;
22021
- reloadChainId?: number | undefined;
22022
22252
  test?: boolean | undefined;
22023
- claimableOnly?: boolean | undefined;
22024
22253
  };
22025
22254
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
22026
- 200: (Omit<{
22027
- chain: {
22028
- id: number;
22255
+ 200: {
22256
+ opportunity: {
22257
+ id: string;
22258
+ type: string;
22259
+ identifier: string;
22260
+ chainId: number;
22029
22261
  name: string;
22030
- icon: string;
22031
- liveCampaigns: number;
22032
- endOfDisputePeriod: number;
22033
- explorers?: {
22034
- type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
22262
+ description: string;
22263
+ howToSteps: string[];
22264
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
22265
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
22266
+ tags: string[];
22267
+ mainProtocol?: string | undefined;
22268
+ depositUrl?: string | undefined;
22269
+ depositUrls?: {
22270
+ id: string;
22271
+ title: string;
22035
22272
  url: string;
22036
- chainId: number;
22273
+ subtitle?: string | undefined;
22274
+ icon?: string | undefined;
22275
+ priority: number;
22037
22276
  }[] | undefined;
22038
- lastClaimsOnchainFetchTimestamp: string | null;
22039
- };
22040
- rewards: {
22041
- root: string;
22042
- distributionChainId: number;
22043
- recipient: string;
22044
- proofs: string[] | never[];
22045
- token: {
22046
- id: string;
22047
- name: string | null;
22048
- chainId: number;
22049
- address: string;
22050
- decimals: number;
22051
- symbol: string;
22052
- icon: string;
22053
- verified: boolean;
22054
- isNative: boolean;
22055
- isTest: boolean;
22056
- type: "POINT" | "PRETGE" | "TOKEN";
22057
- price?: number | null | undefined;
22058
- updatedAt?: number | null | undefined;
22059
- priceSource?: string | null | undefined;
22060
- displaySymbol?: string | undefined;
22277
+ explorerAddress?: string | undefined;
22278
+ hidden?: boolean | undefined;
22279
+ tvl: number;
22280
+ apr: number;
22281
+ dailyRewards: number;
22282
+ maxDailyRewards?: number | null | undefined;
22283
+ liveCampaigns: number;
22284
+ lastCampaignCreatedAt: number;
22285
+ earliestCampaignStart?: string | bigint | undefined;
22286
+ latestCampaignStart?: string | bigint | undefined;
22287
+ earliestCampaignEnd?: string | bigint | undefined;
22288
+ latestCampaignEnd?: string | bigint | undefined;
22289
+ nativeApr?: number | undefined;
22290
+ maxApr?: number | null | undefined;
22291
+ liveCampaignsForCreator?: number | undefined;
22292
+ soonCampaignsForCreator?: number | undefined;
22293
+ pastCampaignsForCreator?: number | undefined;
22294
+ distributionType?: string | undefined;
22295
+ tokens: {
22296
+ id: string;
22297
+ name: string | null;
22298
+ chainId: number;
22299
+ address: string;
22300
+ decimals: number;
22301
+ symbol: string;
22302
+ icon: string;
22303
+ verified: boolean;
22304
+ isNative: boolean;
22305
+ isTest: boolean;
22306
+ type: "POINT" | "PRETGE" | "TOKEN";
22307
+ price?: number | null | undefined;
22308
+ updatedAt?: number | null | undefined;
22309
+ priceSource?: string | null | undefined;
22310
+ displaySymbol?: string | undefined;
22311
+ underlyingTokenId?: string | undefined;
22312
+ priceAlertDismissedAt?: number | undefined;
22313
+ priceAlertCount?: number | undefined;
22314
+ }[];
22315
+ chain: {
22316
+ id: number;
22317
+ name: string;
22318
+ icon: string;
22319
+ liveCampaigns: number;
22320
+ endOfDisputePeriod: number;
22321
+ explorers?: {
22322
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
22323
+ url: string;
22324
+ chainId: number;
22325
+ }[] | undefined;
22326
+ lastClaimsOnchainFetchTimestamp: string | null;
22327
+ };
22328
+ activePrograms: {
22329
+ id: string;
22330
+ name: string;
22331
+ slug?: string | null | undefined;
22332
+ description?: string | undefined;
22333
+ icon?: string | undefined;
22334
+ }[];
22335
+ protocol?: {
22336
+ id: string;
22337
+ name: string;
22338
+ icon: string;
22339
+ tags: string[];
22340
+ description: string;
22341
+ url: string;
22342
+ dailyRewards?: number | undefined;
22343
+ numberOfLiveCampaigns?: number | undefined;
22344
+ opportunityLiveTags?: string[] | undefined;
22345
+ banner: string | null;
22346
+ opportunityBannerLight: string | null;
22347
+ opportunityBannerDark: string | null;
22348
+ } | null | undefined;
22349
+ aprRecord?: {
22350
+ cumulated: number;
22351
+ timestamp: string | bigint;
22352
+ breakdowns: {
22353
+ identifier: string;
22354
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
22355
+ value: number;
22356
+ timestamp: string | bigint;
22357
+ distributionType?: "AAVE_NET_APR" | "AAVE_V4_NET_APR" | "DUTCH_AUCTION" | "ERC4626_APR" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
22358
+ }[];
22359
+ } | undefined;
22360
+ nativeAprRecord?: {
22361
+ title: string;
22362
+ description?: string | undefined;
22363
+ value: number;
22364
+ timestamp: string | bigint;
22365
+ amount?: bigint | undefined;
22366
+ rewardToken?: {
22367
+ id: string;
22368
+ name: string | null;
22369
+ chainId: number;
22370
+ address: string;
22371
+ decimals: number;
22372
+ symbol: string;
22373
+ icon: string;
22374
+ verified: boolean;
22375
+ isNative: boolean;
22376
+ isTest: boolean;
22377
+ type: "POINT" | "PRETGE" | "TOKEN";
22378
+ price?: number | null | undefined;
22379
+ updatedAt?: number | null | undefined;
22380
+ priceSource?: string | null | undefined;
22381
+ displaySymbol?: string | undefined;
22382
+ underlyingTokenId?: string | undefined;
22383
+ priceAlertDismissedAt?: number | undefined;
22384
+ priceAlertCount?: number | undefined;
22385
+ } | undefined;
22386
+ } | undefined;
22387
+ tvlRecord?: {
22388
+ total: number;
22389
+ timestamp: string | bigint;
22390
+ breakdowns: {
22391
+ identifier: string;
22392
+ type: "PROTOCOL" | "TOKEN";
22393
+ value: number;
22394
+ }[];
22395
+ } | undefined;
22396
+ rewardsRecord?: {
22397
+ total: number;
22398
+ timestamp: string | bigint;
22399
+ breakdowns: {
22400
+ campaignId: string;
22401
+ value: number;
22402
+ maxValue?: number | undefined;
22403
+ timestamp: string | bigint;
22404
+ token: {
22405
+ id: string;
22406
+ name: string | null;
22407
+ chainId: number;
22408
+ address: string;
22409
+ decimals: number;
22410
+ symbol: string;
22411
+ icon: string;
22412
+ verified: boolean;
22413
+ isNative: boolean;
22414
+ isTest: boolean;
22415
+ type: "POINT" | "PRETGE" | "TOKEN";
22416
+ price?: number | null | undefined;
22417
+ updatedAt?: number | null | undefined;
22418
+ priceSource?: string | null | undefined;
22419
+ displaySymbol?: string | undefined;
22420
+ underlyingTokenId?: string | undefined;
22421
+ priceAlertDismissedAt?: number | undefined;
22422
+ priceAlertCount?: number | undefined;
22423
+ };
22424
+ amount: string | bigint;
22425
+ distributionType?: "AAVE_NET_APR" | "AAVE_V4_NET_APR" | "DUTCH_AUCTION" | "ERC4626_APR" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
22426
+ onChainCampaignId?: string | undefined;
22427
+ }[];
22428
+ } | undefined;
22429
+ } & {
22430
+ campaigns?: {
22431
+ id: string;
22432
+ computeChainId: number;
22433
+ distributionChainId: number;
22434
+ campaignId: string;
22435
+ type: string;
22436
+ subType?: number | null | undefined;
22437
+ amount: string;
22438
+ startTimestamp: string | number | bigint;
22439
+ endTimestamp: string | number | bigint;
22440
+ creatorAddress: string;
22441
+ apr?: number | undefined;
22442
+ dailyRewards?: number | undefined;
22443
+ creator?: {
22444
+ address: string;
22445
+ tags?: string[] | undefined;
22446
+ creatorId?: string | null | undefined;
22447
+ } | undefined;
22448
+ params: unknown;
22449
+ description?: string | undefined;
22450
+ chain: {
22451
+ id: number;
22452
+ name: string;
22453
+ icon: string;
22454
+ liveCampaigns: number;
22455
+ endOfDisputePeriod: number;
22456
+ explorers?: {
22457
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
22458
+ url: string;
22459
+ chainId: number;
22460
+ }[] | undefined;
22461
+ lastClaimsOnchainFetchTimestamp: string | null;
22462
+ };
22463
+ rewardTokenId?: string | undefined;
22464
+ rewardToken: {
22465
+ id: string;
22466
+ name: string | null;
22467
+ chainId: number;
22468
+ address: string;
22469
+ decimals: number;
22470
+ symbol: string;
22471
+ icon: string;
22472
+ verified: boolean;
22473
+ isNative: boolean;
22474
+ isTest: boolean;
22475
+ type: "POINT" | "PRETGE" | "TOKEN";
22476
+ price?: number | null | undefined;
22477
+ updatedAt?: number | null | undefined;
22478
+ priceSource?: string | null | undefined;
22479
+ displaySymbol?: string | undefined;
22480
+ underlyingTokenId?: string | undefined;
22481
+ priceAlertDismissedAt?: number | undefined;
22482
+ priceAlertCount?: number | undefined;
22483
+ };
22484
+ opportunityId?: string | undefined;
22485
+ distributionChain?: {
22486
+ id: number;
22487
+ name: string;
22488
+ icon: string;
22489
+ liveCampaigns: number;
22490
+ endOfDisputePeriod: number;
22491
+ explorers?: {
22492
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
22493
+ url: string;
22494
+ chainId: number;
22495
+ }[] | undefined;
22496
+ lastClaimsOnchainFetchTimestamp: string | null;
22497
+ } | undefined;
22498
+ distributionType?: "AAVE_NET_APR" | "AAVE_V4_NET_APR" | "DUTCH_AUCTION" | "ERC4626_APR" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
22499
+ campaignStatus: {
22500
+ campaignId: string;
22501
+ computedUntil: string | number;
22502
+ processingStarted: string | number;
22503
+ status: string;
22504
+ preComputeProcessingStarted: string | number;
22505
+ preComputeStatus: string;
22506
+ delay?: number | undefined;
22507
+ error?: string | undefined;
22508
+ details?: unknown;
22509
+ };
22510
+ createdAt: string;
22511
+ rootCampaignId?: string | null | undefined;
22512
+ parentCampaignId?: string | null | undefined;
22513
+ childCampaignIds?: string[] | undefined;
22514
+ dailyRewardsBreakdown?: {
22515
+ campaignId: string;
22516
+ value: number;
22517
+ maxValue?: number | undefined;
22518
+ timestamp: string | bigint;
22519
+ token: {
22520
+ id: string;
22521
+ name: string | null;
22522
+ chainId: number;
22523
+ address: string;
22524
+ decimals: number;
22525
+ symbol: string;
22526
+ icon: string;
22527
+ verified: boolean;
22528
+ isNative: boolean;
22529
+ isTest: boolean;
22530
+ type: "POINT" | "PRETGE" | "TOKEN";
22531
+ price?: number | null | undefined;
22532
+ updatedAt?: number | null | undefined;
22533
+ priceSource?: string | null | undefined;
22534
+ displaySymbol?: string | undefined;
22535
+ underlyingTokenId?: string | undefined;
22536
+ priceAlertDismissedAt?: number | undefined;
22537
+ priceAlertCount?: number | undefined;
22538
+ };
22539
+ amount: string | bigint;
22540
+ distributionType?: "AAVE_NET_APR" | "AAVE_V4_NET_APR" | "DUTCH_AUCTION" | "ERC4626_APR" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
22541
+ onChainCampaignId?: string | undefined;
22542
+ }[] | undefined;
22543
+ pauseCompute?: string | null | undefined;
22544
+ pausePrecompute?: string | null | undefined;
22545
+ hasOverrides?: boolean | undefined;
22546
+ isPrivate: boolean;
22547
+ campaignEncodingHash?: string | undefined;
22548
+ }[] | undefined;
22549
+ };
22550
+ earnedTokens: {
22551
+ token: {
22552
+ id: string;
22553
+ name: string | null;
22554
+ chainId: number;
22555
+ address: string;
22556
+ decimals: number;
22557
+ symbol: string;
22558
+ icon: string;
22559
+ verified: boolean;
22560
+ isNative: boolean;
22561
+ isTest: boolean;
22562
+ type: "POINT" | "PRETGE" | "TOKEN";
22563
+ price?: number | null | undefined;
22564
+ updatedAt?: number | null | undefined;
22565
+ priceSource?: string | null | undefined;
22566
+ displaySymbol?: string | undefined;
22567
+ underlyingTokenId?: string | undefined;
22568
+ priceAlertDismissedAt?: number | undefined;
22569
+ priceAlertCount?: number | undefined;
22570
+ };
22571
+ amount: string;
22572
+ chain: {
22573
+ id: number;
22574
+ name: string;
22575
+ icon: string;
22576
+ liveCampaigns: number;
22577
+ endOfDisputePeriod: number;
22578
+ explorers?: {
22579
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
22580
+ url: string;
22581
+ chainId: number;
22582
+ }[] | undefined;
22583
+ lastClaimsOnchainFetchTimestamp: string | null;
22584
+ };
22585
+ }[];
22586
+ }[];
22587
+ 422: {
22588
+ type: "validation";
22589
+ on: string;
22590
+ summary?: string | undefined;
22591
+ message?: string | undefined;
22592
+ found?: unknown;
22593
+ property?: string | undefined;
22594
+ expected?: string | undefined;
22595
+ };
22596
+ }>>;
22597
+ };
22598
+ breakdowns: {
22599
+ get: (options: {
22600
+ fetch?: RequestInit | undefined;
22601
+ headers?: Record<string, unknown> | undefined;
22602
+ query: {
22603
+ tags?: string | undefined;
22604
+ chainIds?: string[] | undefined;
22605
+ reloadChainId?: number | undefined;
22606
+ test?: boolean | undefined;
22607
+ claimableOnly?: boolean | undefined;
22608
+ showPrivate?: boolean | undefined;
22609
+ };
22610
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
22611
+ 200: (Omit<{
22612
+ chain: {
22613
+ id: number;
22614
+ name: string;
22615
+ icon: string;
22616
+ liveCampaigns: number;
22617
+ endOfDisputePeriod: number;
22618
+ explorers?: {
22619
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
22620
+ url: string;
22621
+ chainId: number;
22622
+ }[] | undefined;
22623
+ lastClaimsOnchainFetchTimestamp: string | null;
22624
+ };
22625
+ rewards: {
22626
+ root: string;
22627
+ distributionChainId: number;
22628
+ recipient: string;
22629
+ proofs: string[] | never[];
22630
+ token: {
22631
+ id: string;
22632
+ name: string | null;
22633
+ chainId: number;
22634
+ address: string;
22635
+ decimals: number;
22636
+ symbol: string;
22637
+ icon: string;
22638
+ verified: boolean;
22639
+ isNative: boolean;
22640
+ isTest: boolean;
22641
+ type: "POINT" | "PRETGE" | "TOKEN";
22642
+ price?: number | null | undefined;
22643
+ updatedAt?: number | null | undefined;
22644
+ priceSource?: string | null | undefined;
22645
+ displaySymbol?: string | undefined;
22061
22646
  underlyingTokenId?: string | undefined;
22062
22647
  priceAlertDismissedAt?: number | undefined;
22063
22648
  priceAlertCount?: number | undefined;
@@ -22306,11 +22891,239 @@ declare const eden: {
22306
22891
  hidden: boolean;
22307
22892
  };
22308
22893
  }[];
22309
- claimed: bigint;
22310
- amount: bigint;
22311
- pending: bigint;
22312
- }, "breakdowns"> & {
22313
- breakdowns: {
22894
+ claimed: bigint;
22895
+ amount: bigint;
22896
+ pending: bigint;
22897
+ }, "breakdowns"> & {
22898
+ breakdowns: {
22899
+ opportunity: {
22900
+ id: string;
22901
+ type: string;
22902
+ identifier: string;
22903
+ chainId: number;
22904
+ name: string;
22905
+ description: string;
22906
+ howToSteps: string[];
22907
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
22908
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
22909
+ tags: string[];
22910
+ mainProtocol?: string | undefined;
22911
+ depositUrl?: string | undefined;
22912
+ depositUrls?: {
22913
+ id: string;
22914
+ title: string;
22915
+ url: string;
22916
+ subtitle?: string | undefined;
22917
+ icon?: string | undefined;
22918
+ priority: number;
22919
+ }[] | undefined;
22920
+ explorerAddress?: string | undefined;
22921
+ hidden?: boolean | undefined;
22922
+ tvl: number;
22923
+ apr: number;
22924
+ dailyRewards: number;
22925
+ liveCampaigns: number;
22926
+ lastCampaignCreatedAt: number;
22927
+ earliestCampaignStart?: string | bigint | undefined;
22928
+ latestCampaignStart?: string | bigint | undefined;
22929
+ earliestCampaignEnd?: string | bigint | undefined;
22930
+ latestCampaignEnd?: string | bigint | undefined;
22931
+ nativeApr?: number | undefined;
22932
+ maxApr?: number | null | undefined;
22933
+ liveCampaignsForCreator?: number | undefined;
22934
+ soonCampaignsForCreator?: number | undefined;
22935
+ pastCampaignsForCreator?: number | undefined;
22936
+ distributedBycreator?: number | undefined;
22937
+ distributionType?: string | undefined;
22938
+ tokens: {
22939
+ id: string;
22940
+ name: string | null;
22941
+ chainId: number;
22942
+ address: string;
22943
+ decimals: number;
22944
+ symbol: string;
22945
+ icon: string;
22946
+ verified: boolean;
22947
+ isNative: boolean;
22948
+ isTest: boolean;
22949
+ type: "POINT" | "PRETGE" | "TOKEN";
22950
+ price?: number | null | undefined;
22951
+ updatedAt?: number | null | undefined;
22952
+ priceSource?: string | null | undefined;
22953
+ displaySymbol?: string | undefined;
22954
+ underlyingTokenId?: string | undefined;
22955
+ priceAlertDismissedAt?: number | undefined;
22956
+ priceAlertCount?: number | undefined;
22957
+ }[];
22958
+ chain: {
22959
+ id: number;
22960
+ name: string;
22961
+ icon: string;
22962
+ liveCampaigns: number;
22963
+ endOfDisputePeriod: number;
22964
+ explorers?: {
22965
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
22966
+ url: string;
22967
+ chainId: number;
22968
+ }[] | undefined;
22969
+ lastClaimsOnchainFetchTimestamp: string | null;
22970
+ };
22971
+ activePrograms: {
22972
+ id: string;
22973
+ name: string;
22974
+ slug?: string | null | undefined;
22975
+ description?: string | undefined;
22976
+ icon?: string | undefined;
22977
+ }[];
22978
+ protocol?: {
22979
+ id: string;
22980
+ name: string;
22981
+ icon: string;
22982
+ tags: string[];
22983
+ description: string;
22984
+ url: string;
22985
+ dailyRewards?: number | undefined;
22986
+ numberOfLiveCampaigns?: number | undefined;
22987
+ opportunityLiveTags?: string[] | undefined;
22988
+ banner: string | null;
22989
+ opportunityBannerLight: string | null;
22990
+ opportunityBannerDark: string | null;
22991
+ } | null | undefined;
22992
+ aprRecord?: {
22993
+ timestamp: string | bigint;
22994
+ cumulated: number;
22995
+ breakdowns: {
22996
+ identifier: string;
22997
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
22998
+ value: number;
22999
+ timestamp: string | bigint;
23000
+ distributionType?: "AAVE_NET_APR" | "AAVE_V4_NET_APR" | "DUTCH_AUCTION" | "ERC4626_APR" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
23001
+ }[];
23002
+ } | undefined;
23003
+ nativeAprRecord?: {
23004
+ title: string;
23005
+ description?: string | undefined;
23006
+ timestamp: string | bigint;
23007
+ value: number;
23008
+ amount?: bigint | undefined;
23009
+ rewardToken?: {
23010
+ id: string;
23011
+ name: string | null;
23012
+ chainId: number;
23013
+ address: string;
23014
+ decimals: number;
23015
+ symbol: string;
23016
+ icon: string;
23017
+ verified: boolean;
23018
+ isNative: boolean;
23019
+ isTest: boolean;
23020
+ type: "POINT" | "PRETGE" | "TOKEN";
23021
+ price?: number | null | undefined;
23022
+ updatedAt?: number | null | undefined;
23023
+ priceSource?: string | null | undefined;
23024
+ displaySymbol?: string | undefined;
23025
+ underlyingTokenId?: string | undefined;
23026
+ priceAlertDismissedAt?: number | undefined;
23027
+ priceAlertCount?: number | undefined;
23028
+ } | undefined;
23029
+ } | undefined;
23030
+ tvlRecord?: {
23031
+ timestamp: string | bigint;
23032
+ total: number;
23033
+ breakdowns: {
23034
+ identifier: string;
23035
+ type: "PROTOCOL" | "TOKEN";
23036
+ value: number;
23037
+ }[];
23038
+ } | undefined;
23039
+ rewardsRecord?: {
23040
+ total: number;
23041
+ timestamp: string | bigint;
23042
+ breakdowns: {
23043
+ campaignId: string;
23044
+ value: number;
23045
+ maxValue?: number | undefined;
23046
+ timestamp: string | bigint;
23047
+ token: {
23048
+ id: string;
23049
+ name: string | null;
23050
+ chainId: number;
23051
+ address: string;
23052
+ decimals: number;
23053
+ symbol: string;
23054
+ icon: string;
23055
+ verified: boolean;
23056
+ isNative: boolean;
23057
+ isTest: boolean;
23058
+ type: "POINT" | "PRETGE" | "TOKEN";
23059
+ price?: number | null | undefined;
23060
+ updatedAt?: number | null | undefined;
23061
+ priceSource?: string | null | undefined;
23062
+ displaySymbol?: string | undefined;
23063
+ underlyingTokenId?: string | undefined;
23064
+ priceAlertDismissedAt?: number | undefined;
23065
+ priceAlertCount?: number | undefined;
23066
+ };
23067
+ amount: string | bigint;
23068
+ distributionType?: "AAVE_NET_APR" | "AAVE_V4_NET_APR" | "DUTCH_AUCTION" | "ERC4626_APR" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
23069
+ onChainCampaignId?: string | undefined;
23070
+ }[];
23071
+ } | undefined;
23072
+ campaigns?: any[] | undefined;
23073
+ };
23074
+ claimed: bigint;
23075
+ amount: bigint;
23076
+ pending: bigint;
23077
+ delays?: ({
23078
+ computedUntil: number;
23079
+ details: import("@prisma/client/runtime/client").JsonValue;
23080
+ error: string;
23081
+ preComputeProcessingStarted: number;
23082
+ preComputeStatus: import("@package/databases").RunStatus;
23083
+ processingStarted: number;
23084
+ status: import("@package/databases").RunStatus;
23085
+ } & {
23086
+ delay?: number | undefined;
23087
+ })[] | undefined;
23088
+ }[];
23089
+ })[];
23090
+ distributor: string;
23091
+ })[];
23092
+ 422: {
23093
+ type: "validation";
23094
+ on: string;
23095
+ summary?: string | undefined;
23096
+ message?: string | undefined;
23097
+ found?: unknown;
23098
+ property?: string | undefined;
23099
+ expected?: string | undefined;
23100
+ };
23101
+ }>>;
23102
+ };
23103
+ chains: ((params: {
23104
+ chainId: string | number;
23105
+ }) => {
23106
+ breakdowns: {
23107
+ get: (options?: {
23108
+ fetch?: RequestInit | undefined;
23109
+ headers?: Record<string, unknown> | undefined;
23110
+ query?: Record<string, unknown> | undefined;
23111
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
23112
+ 200: {
23113
+ chain: {
23114
+ id: number;
23115
+ name: string;
23116
+ icon: string;
23117
+ liveCampaigns: number;
23118
+ endOfDisputePeriod: number;
23119
+ explorers?: {
23120
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
23121
+ url: string;
23122
+ chainId: number;
23123
+ }[] | undefined;
23124
+ lastClaimsOnchainFetchTimestamp: string | null;
23125
+ };
23126
+ opportunities: {
22314
23127
  opportunity: {
22315
23128
  id: string;
22316
23129
  type: string;
@@ -22337,6 +23150,7 @@ declare const eden: {
22337
23150
  tvl: number;
22338
23151
  apr: number;
22339
23152
  dailyRewards: number;
23153
+ maxDailyRewards?: number | null | undefined;
22340
23154
  liveCampaigns: number;
22341
23155
  lastCampaignCreatedAt: number;
22342
23156
  earliestCampaignStart?: string | bigint | undefined;
@@ -22348,7 +23162,6 @@ declare const eden: {
22348
23162
  liveCampaignsForCreator?: number | undefined;
22349
23163
  soonCampaignsForCreator?: number | undefined;
22350
23164
  pastCampaignsForCreator?: number | undefined;
22351
- distributedBycreator?: number | undefined;
22352
23165
  distributionType?: string | undefined;
22353
23166
  tokens: {
22354
23167
  id: string;
@@ -22405,8 +23218,8 @@ declare const eden: {
22405
23218
  opportunityBannerDark: string | null;
22406
23219
  } | null | undefined;
22407
23220
  aprRecord?: {
22408
- timestamp: string | bigint;
22409
23221
  cumulated: number;
23222
+ timestamp: string | bigint;
22410
23223
  breakdowns: {
22411
23224
  identifier: string;
22412
23225
  type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
@@ -22418,8 +23231,8 @@ declare const eden: {
22418
23231
  nativeAprRecord?: {
22419
23232
  title: string;
22420
23233
  description?: string | undefined;
22421
- timestamp: string | bigint;
22422
23234
  value: number;
23235
+ timestamp: string | bigint;
22423
23236
  amount?: bigint | undefined;
22424
23237
  rewardToken?: {
22425
23238
  id: string;
@@ -22443,8 +23256,8 @@ declare const eden: {
22443
23256
  } | undefined;
22444
23257
  } | undefined;
22445
23258
  tvlRecord?: {
22446
- timestamp: string | bigint;
22447
23259
  total: number;
23260
+ timestamp: string | bigint;
22448
23261
  breakdowns: {
22449
23262
  identifier: string;
22450
23263
  type: "PROTOCOL" | "TOKEN";
@@ -22484,26 +23297,183 @@ declare const eden: {
22484
23297
  onChainCampaignId?: string | undefined;
22485
23298
  }[];
22486
23299
  } | undefined;
22487
- campaigns?: any[] | undefined;
22488
- };
22489
- claimed: bigint;
22490
- amount: bigint;
22491
- pending: bigint;
22492
- delays?: ({
22493
- computedUntil: number;
22494
- details: import("@prisma/client/runtime/client").JsonValue;
22495
- error: string;
22496
- preComputeProcessingStarted: number;
22497
- preComputeStatus: import("@package/databases").RunStatus;
22498
- processingStarted: number;
22499
- status: import("@package/databases").RunStatus;
22500
23300
  } & {
22501
- delay?: number | undefined;
22502
- })[] | undefined;
23301
+ campaigns?: {
23302
+ id: string;
23303
+ computeChainId: number;
23304
+ distributionChainId: number;
23305
+ campaignId: string;
23306
+ type: string;
23307
+ subType?: number | null | undefined;
23308
+ amount: string;
23309
+ startTimestamp: string | number | bigint;
23310
+ endTimestamp: string | number | bigint;
23311
+ creatorAddress: string;
23312
+ apr?: number | undefined;
23313
+ dailyRewards?: number | undefined;
23314
+ creator?: {
23315
+ address: string;
23316
+ tags?: string[] | undefined;
23317
+ creatorId?: string | null | undefined;
23318
+ } | undefined;
23319
+ params: unknown;
23320
+ description?: string | undefined;
23321
+ chain: {
23322
+ id: number;
23323
+ name: string;
23324
+ icon: string;
23325
+ liveCampaigns: number;
23326
+ endOfDisputePeriod: number;
23327
+ explorers?: {
23328
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
23329
+ url: string;
23330
+ chainId: number;
23331
+ }[] | undefined;
23332
+ lastClaimsOnchainFetchTimestamp: string | null;
23333
+ };
23334
+ rewardTokenId?: string | undefined;
23335
+ rewardToken: {
23336
+ id: string;
23337
+ name: string | null;
23338
+ chainId: number;
23339
+ address: string;
23340
+ decimals: number;
23341
+ symbol: string;
23342
+ icon: string;
23343
+ verified: boolean;
23344
+ isNative: boolean;
23345
+ isTest: boolean;
23346
+ type: "POINT" | "PRETGE" | "TOKEN";
23347
+ price?: number | null | undefined;
23348
+ updatedAt?: number | null | undefined;
23349
+ priceSource?: string | null | undefined;
23350
+ displaySymbol?: string | undefined;
23351
+ underlyingTokenId?: string | undefined;
23352
+ priceAlertDismissedAt?: number | undefined;
23353
+ priceAlertCount?: number | undefined;
23354
+ };
23355
+ opportunityId?: string | undefined;
23356
+ distributionChain?: {
23357
+ id: number;
23358
+ name: string;
23359
+ icon: string;
23360
+ liveCampaigns: number;
23361
+ endOfDisputePeriod: number;
23362
+ explorers?: {
23363
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
23364
+ url: string;
23365
+ chainId: number;
23366
+ }[] | undefined;
23367
+ lastClaimsOnchainFetchTimestamp: string | null;
23368
+ } | undefined;
23369
+ distributionType?: "AAVE_NET_APR" | "AAVE_V4_NET_APR" | "DUTCH_AUCTION" | "ERC4626_APR" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
23370
+ campaignStatus: {
23371
+ campaignId: string;
23372
+ computedUntil: string | number;
23373
+ processingStarted: string | number;
23374
+ status: string;
23375
+ preComputeProcessingStarted: string | number;
23376
+ preComputeStatus: string;
23377
+ delay?: number | undefined;
23378
+ error?: string | undefined;
23379
+ details?: unknown;
23380
+ };
23381
+ createdAt: string;
23382
+ rootCampaignId?: string | null | undefined;
23383
+ parentCampaignId?: string | null | undefined;
23384
+ childCampaignIds?: string[] | undefined;
23385
+ dailyRewardsBreakdown?: {
23386
+ campaignId: string;
23387
+ value: number;
23388
+ maxValue?: number | undefined;
23389
+ timestamp: string | bigint;
23390
+ token: {
23391
+ id: string;
23392
+ name: string | null;
23393
+ chainId: number;
23394
+ address: string;
23395
+ decimals: number;
23396
+ symbol: string;
23397
+ icon: string;
23398
+ verified: boolean;
23399
+ isNative: boolean;
23400
+ isTest: boolean;
23401
+ type: "POINT" | "PRETGE" | "TOKEN";
23402
+ price?: number | null | undefined;
23403
+ updatedAt?: number | null | undefined;
23404
+ priceSource?: string | null | undefined;
23405
+ displaySymbol?: string | undefined;
23406
+ underlyingTokenId?: string | undefined;
23407
+ priceAlertDismissedAt?: number | undefined;
23408
+ priceAlertCount?: number | undefined;
23409
+ };
23410
+ amount: string | bigint;
23411
+ distributionType?: "AAVE_NET_APR" | "AAVE_V4_NET_APR" | "DUTCH_AUCTION" | "ERC4626_APR" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
23412
+ onChainCampaignId?: string | undefined;
23413
+ }[] | undefined;
23414
+ pauseCompute?: string | null | undefined;
23415
+ pausePrecompute?: string | null | undefined;
23416
+ hasOverrides?: boolean | undefined;
23417
+ isPrivate: boolean;
23418
+ campaignEncodingHash?: string | undefined;
23419
+ }[] | undefined;
23420
+ };
23421
+ tokens: {
23422
+ token: {
23423
+ id: string;
23424
+ name: string | null;
23425
+ chainId: number;
23426
+ address: string;
23427
+ decimals: number;
23428
+ symbol: string;
23429
+ icon: string;
23430
+ verified: boolean;
23431
+ isNative: boolean;
23432
+ isTest: boolean;
23433
+ type: "POINT" | "PRETGE" | "TOKEN";
23434
+ price?: number | null | undefined;
23435
+ updatedAt?: number | null | undefined;
23436
+ priceSource?: string | null | undefined;
23437
+ displaySymbol?: string | undefined;
23438
+ underlyingTokenId?: string | undefined;
23439
+ priceAlertDismissedAt?: number | undefined;
23440
+ priceAlertCount?: number | undefined;
23441
+ };
23442
+ claimed: string;
23443
+ pending: string;
23444
+ claimable: string;
23445
+ }[];
22503
23446
  }[];
22504
- })[];
22505
- distributor: string;
22506
- })[];
23447
+ };
23448
+ 422: {
23449
+ type: "validation";
23450
+ on: string;
23451
+ summary?: string | undefined;
23452
+ message?: string | undefined;
23453
+ found?: unknown;
23454
+ property?: string | undefined;
23455
+ expected?: string | undefined;
23456
+ };
23457
+ }>>;
23458
+ };
23459
+ }) & {};
23460
+ stats: {
23461
+ get: (options: {
23462
+ fetch?: RequestInit | undefined;
23463
+ headers?: Record<string, unknown> | undefined;
23464
+ query: {
23465
+ chains?: string[] | undefined;
23466
+ tokens?: string[] | undefined;
23467
+ protocols?: string[] | undefined;
23468
+ isTest?: boolean | undefined;
23469
+ isPreTGE?: boolean | undefined;
23470
+ };
23471
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
23472
+ 200: {
23473
+ totalEarnedUSD: string;
23474
+ pendingUSD: string;
23475
+ claimableUSD: string;
23476
+ };
22507
23477
  422: {
22508
23478
  type: "validation";
22509
23479
  on: string;
@@ -22515,7 +23485,7 @@ declare const eden: {
22515
23485
  };
22516
23486
  }>>;
22517
23487
  };
22518
- stats: {
23488
+ summary: {
22519
23489
  get: (options: {
22520
23490
  fetch?: RequestInit | undefined;
22521
23491
  headers?: Record<string, unknown> | undefined;
@@ -22525,13 +23495,53 @@ declare const eden: {
22525
23495
  protocols?: string[] | undefined;
22526
23496
  isTest?: boolean | undefined;
22527
23497
  isPreTGE?: boolean | undefined;
23498
+ reloadChainId?: number | undefined;
22528
23499
  };
22529
23500
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
22530
23501
  200: {
22531
- totalEarnedUSD: string;
23502
+ chain: {
23503
+ id: number;
23504
+ name: string;
23505
+ icon: string;
23506
+ liveCampaigns: number;
23507
+ endOfDisputePeriod: number;
23508
+ explorers?: {
23509
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
23510
+ url: string;
23511
+ chainId: number;
23512
+ }[] | undefined;
23513
+ lastClaimsOnchainFetchTimestamp: string | null;
23514
+ };
23515
+ amountUSD: string;
23516
+ claimedUSD: string;
22532
23517
  pendingUSD: string;
22533
- claimableUSD: string;
22534
- };
23518
+ rewards: {
23519
+ token: {
23520
+ id: string;
23521
+ name: string | null;
23522
+ chainId: number;
23523
+ address: string;
23524
+ decimals: number;
23525
+ symbol: string;
23526
+ icon: string;
23527
+ verified: boolean;
23528
+ isNative: boolean;
23529
+ isTest: boolean;
23530
+ type: "POINT" | "PRETGE" | "TOKEN";
23531
+ price?: number | null | undefined;
23532
+ updatedAt?: number | null | undefined;
23533
+ priceSource?: string | null | undefined;
23534
+ displaySymbol?: string | undefined;
23535
+ underlyingTokenId?: string | undefined;
23536
+ priceAlertDismissedAt?: number | undefined;
23537
+ priceAlertCount?: number | undefined;
23538
+ };
23539
+ amount: string;
23540
+ claimed: string;
23541
+ pending: string;
23542
+ proofs: string[];
23543
+ }[];
23544
+ }[];
22535
23545
  422: {
22536
23546
  type: "validation";
22537
23547
  on: string;
@@ -22769,6 +23779,28 @@ declare const eden: {
22769
23779
  }>>;
22770
23780
  })) & {};
22771
23781
  engine: {
23782
+ apr: {
23783
+ post: (body: {
23784
+ campaignId: string;
23785
+ apr: number;
23786
+ }, options: {
23787
+ fetch?: RequestInit | undefined;
23788
+ headers: {
23789
+ authorization: string;
23790
+ };
23791
+ query?: Record<string, unknown> | undefined;
23792
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
23793
+ 422: {
23794
+ type: "validation";
23795
+ on: string;
23796
+ summary?: string | undefined;
23797
+ message?: string | undefined;
23798
+ found?: unknown;
23799
+ property?: string | undefined;
23800
+ expected?: string | undefined;
23801
+ };
23802
+ }>>;
23803
+ };
22772
23804
  campaign: {
22773
23805
  post: (body: {
22774
23806
  campaignId: string;