@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
@@ -1832,7 +1832,9 @@ declare const app: Elysia<"", {
1832
1832
  params: {
1833
1833
  id: string;
1834
1834
  };
1835
- query: unknown;
1835
+ query: {
1836
+ showPrivate?: boolean | undefined;
1837
+ };
1836
1838
  headers: unknown;
1837
1839
  response: {
1838
1840
  200: {
@@ -3359,6 +3361,7 @@ declare const app: Elysia<"", {
3359
3361
  rootCampaignId?: string | undefined;
3360
3362
  parentCampaignId?: string | undefined;
3361
3363
  mainProtocolId?: string | undefined;
3364
+ showPrivate?: boolean | undefined;
3362
3365
  };
3363
3366
  headers: unknown;
3364
3367
  response: {
@@ -3688,6 +3691,7 @@ declare const app: Elysia<"", {
3688
3691
  rootCampaignId?: string | undefined;
3689
3692
  parentCampaignId?: string | undefined;
3690
3693
  mainProtocolId?: string | undefined;
3694
+ showPrivate?: boolean | undefined;
3691
3695
  };
3692
3696
  headers: unknown;
3693
3697
  response: {
@@ -3747,6 +3751,7 @@ declare const app: Elysia<"", {
3747
3751
  rootCampaignId?: string | undefined;
3748
3752
  parentCampaignId?: string | undefined;
3749
3753
  mainProtocolId?: string | undefined;
3754
+ showPrivate?: boolean | undefined;
3750
3755
  };
3751
3756
  headers: unknown;
3752
3757
  response: {
@@ -3832,6 +3837,7 @@ declare const app: Elysia<"", {
3832
3837
  rootCampaignId?: string | undefined;
3833
3838
  parentCampaignId?: string | undefined;
3834
3839
  mainProtocolId?: string | undefined;
3840
+ showPrivate?: boolean | undefined;
3835
3841
  };
3836
3842
  headers: {
3837
3843
  authorization: string;
@@ -3897,6 +3903,7 @@ declare const app: Elysia<"", {
3897
3903
  rootCampaignId?: string | undefined;
3898
3904
  parentCampaignId?: string | undefined;
3899
3905
  mainProtocolId?: string | undefined;
3906
+ showPrivate?: boolean | undefined;
3900
3907
  };
3901
3908
  headers: {
3902
3909
  authorization: string;
@@ -3962,6 +3969,7 @@ declare const app: Elysia<"", {
3962
3969
  rootCampaignId?: string | undefined;
3963
3970
  parentCampaignId?: string | undefined;
3964
3971
  mainProtocolId?: string | undefined;
3972
+ showPrivate?: boolean | undefined;
3965
3973
  };
3966
3974
  headers: {
3967
3975
  authorization: string;
@@ -7162,7 +7170,7 @@ declare const app: Elysia<"", {
7162
7170
  post: {
7163
7171
  body: {
7164
7172
  cost: number;
7165
- runKey?: string | undefined;
7173
+ runKey: string;
7166
7174
  };
7167
7175
  params: {
7168
7176
  chainId: number;
@@ -9996,6 +10004,35 @@ declare const app: Elysia<"", {
9996
10004
  };
9997
10005
  };
9998
10006
  };
10007
+ } & {
10008
+ value: {
10009
+ engine: {
10010
+ apr: {
10011
+ post: {
10012
+ body: {
10013
+ campaignId: string;
10014
+ apr: number;
10015
+ };
10016
+ params: {};
10017
+ query: unknown;
10018
+ headers: {
10019
+ authorization: string;
10020
+ };
10021
+ response: {
10022
+ 422: {
10023
+ type: "validation";
10024
+ on: string;
10025
+ summary?: string | undefined;
10026
+ message?: string | undefined;
10027
+ found?: unknown;
10028
+ property?: string | undefined;
10029
+ expected?: string | undefined;
10030
+ };
10031
+ };
10032
+ };
10033
+ };
10034
+ };
10035
+ };
9999
10036
  } & {
10000
10037
  value: {
10001
10038
  engine: {
@@ -12296,6 +12333,7 @@ declare const app: Elysia<"", {
12296
12333
  query: {
12297
12334
  page?: number | undefined;
12298
12335
  items?: number | undefined;
12336
+ type?: "ADD" | "SUBTRACT" | undefined;
12299
12337
  };
12300
12338
  headers: unknown;
12301
12339
  response: {
@@ -12321,6 +12359,103 @@ declare const app: Elysia<"", {
12321
12359
  };
12322
12360
  };
12323
12361
  };
12362
+ } & {
12363
+ credits: {
12364
+ ":creatorId": {
12365
+ operations: {
12366
+ count: {
12367
+ get: {
12368
+ body: unknown;
12369
+ params: {
12370
+ creatorId: string;
12371
+ };
12372
+ query: {
12373
+ type?: "ADD" | "SUBTRACT" | undefined;
12374
+ };
12375
+ headers: unknown;
12376
+ response: {
12377
+ 200: number;
12378
+ 422: {
12379
+ type: "validation";
12380
+ on: string;
12381
+ summary?: string | undefined;
12382
+ message?: string | undefined;
12383
+ found?: unknown;
12384
+ property?: string | undefined;
12385
+ expected?: string | undefined;
12386
+ };
12387
+ };
12388
+ };
12389
+ };
12390
+ };
12391
+ };
12392
+ };
12393
+ } & {
12394
+ credits: {
12395
+ ":creatorId": {
12396
+ operations: {
12397
+ aggregate: {
12398
+ get: {
12399
+ body: unknown;
12400
+ params: {
12401
+ creatorId: string;
12402
+ };
12403
+ query: {
12404
+ type?: "ADD" | "SUBTRACT" | undefined;
12405
+ };
12406
+ headers: unknown;
12407
+ response: {
12408
+ 200: number;
12409
+ 422: {
12410
+ type: "validation";
12411
+ on: string;
12412
+ summary?: string | undefined;
12413
+ message?: string | undefined;
12414
+ found?: unknown;
12415
+ property?: string | undefined;
12416
+ expected?: string | undefined;
12417
+ };
12418
+ };
12419
+ };
12420
+ };
12421
+ };
12422
+ };
12423
+ };
12424
+ } & {
12425
+ credits: {
12426
+ ":creatorId": {
12427
+ operations: {
12428
+ breakdowns: {
12429
+ get: {
12430
+ body: unknown;
12431
+ params: {
12432
+ creatorId: string;
12433
+ };
12434
+ query: {
12435
+ type?: "ADD" | "SUBTRACT" | undefined;
12436
+ };
12437
+ headers: unknown;
12438
+ response: {
12439
+ 200: {
12440
+ category: string;
12441
+ total: number;
12442
+ count: number;
12443
+ }[];
12444
+ 422: {
12445
+ type: "validation";
12446
+ on: string;
12447
+ summary?: string | undefined;
12448
+ message?: string | undefined;
12449
+ found?: unknown;
12450
+ property?: string | undefined;
12451
+ expected?: string | undefined;
12452
+ };
12453
+ };
12454
+ };
12455
+ };
12456
+ };
12457
+ };
12458
+ };
12324
12459
  } & {
12325
12460
  credits: {
12326
12461
  post: {
@@ -14126,6 +14261,7 @@ declare const app: Elysia<"", {
14126
14261
  rootCampaignId?: string | undefined;
14127
14262
  parentCampaignId?: string | undefined;
14128
14263
  mainProtocolId?: string | undefined;
14264
+ showPrivate?: boolean | undefined;
14129
14265
  };
14130
14266
  headers: unknown;
14131
14267
  response: {
@@ -15427,6 +15563,8 @@ declare const app: Elysia<"", {
15427
15563
  query: {
15428
15564
  page?: number | undefined;
15429
15565
  items?: number | undefined;
15566
+ from?: number | undefined;
15567
+ to?: number | undefined;
15430
15568
  };
15431
15569
  headers: unknown;
15432
15570
  response: {
@@ -20381,6 +20519,44 @@ declare const app: Elysia<"", {
20381
20519
  };
20382
20520
  };
20383
20521
  };
20522
+ } & {
20523
+ reallocations: {
20524
+ breakdown: {
20525
+ get: {
20526
+ body: unknown;
20527
+ params: {};
20528
+ query: {
20529
+ chainId: number;
20530
+ to?: string[] | undefined;
20531
+ campaignIds?: string[] | undefined;
20532
+ };
20533
+ headers: {
20534
+ authorization: string;
20535
+ };
20536
+ response: {
20537
+ 200: {
20538
+ chainId: number;
20539
+ campaignId: string;
20540
+ to: string;
20541
+ tokenAddress: string;
20542
+ tokenSymbol?: string | undefined;
20543
+ tokenDecimals?: number | undefined;
20544
+ amount: string;
20545
+ count: number;
20546
+ }[];
20547
+ 422: {
20548
+ type: "validation";
20549
+ on: string;
20550
+ summary?: string | undefined;
20551
+ message?: string | undefined;
20552
+ found?: unknown;
20553
+ property?: string | undefined;
20554
+ expected?: string | undefined;
20555
+ };
20556
+ };
20557
+ };
20558
+ };
20559
+ };
20384
20560
  } & {
20385
20561
  referral: {
20386
20562
  code: {
@@ -20786,6 +20962,103 @@ declare const app: Elysia<"", {
20786
20962
  };
20787
20963
  } & {
20788
20964
  v4: {
20965
+ schemas: {
20966
+ get: {
20967
+ body: unknown;
20968
+ params: {};
20969
+ query: unknown;
20970
+ headers: {
20971
+ authorization: string;
20972
+ };
20973
+ response: {
20974
+ 200: {
20975
+ groups: {
20976
+ name: string;
20977
+ enumName: string;
20978
+ valueType: "number" | "string";
20979
+ count: number;
20980
+ description: string;
20981
+ }[];
20982
+ };
20983
+ 422: {
20984
+ type: "validation";
20985
+ on: string;
20986
+ summary?: string | undefined;
20987
+ message?: string | undefined;
20988
+ found?: unknown;
20989
+ property?: string | undefined;
20990
+ expected?: string | undefined;
20991
+ };
20992
+ };
20993
+ };
20994
+ };
20995
+ } & {
20996
+ schemas: {
20997
+ ":groupName": {
20998
+ get: {
20999
+ body: unknown;
21000
+ params: {
21001
+ groupName: string;
21002
+ };
21003
+ query: unknown;
21004
+ headers: {
21005
+ authorization: string;
21006
+ };
21007
+ response: {
21008
+ 200: {
21009
+ name: string;
21010
+ enumName: string;
21011
+ valueType: "number" | "string";
21012
+ entries: {
21013
+ value: string | number;
21014
+ key: string;
21015
+ description?: string | undefined;
21016
+ }[];
21017
+ };
21018
+ 422: {
21019
+ type: "validation";
21020
+ on: string;
21021
+ summary?: string | undefined;
21022
+ message?: string | undefined;
21023
+ found?: unknown;
21024
+ property?: string | undefined;
21025
+ expected?: string | undefined;
21026
+ };
21027
+ };
21028
+ };
21029
+ };
21030
+ };
21031
+ } & {
21032
+ schemas: {
21033
+ ":groupName": {
21034
+ ":typeId": {
21035
+ get: {
21036
+ body: unknown;
21037
+ params: {
21038
+ groupName: string;
21039
+ typeId: string;
21040
+ };
21041
+ query: unknown;
21042
+ headers: {
21043
+ authorization: string;
21044
+ };
21045
+ response: {
21046
+ 200: any;
21047
+ 422: {
21048
+ type: "validation";
21049
+ on: string;
21050
+ summary?: string | undefined;
21051
+ message?: string | undefined;
21052
+ found?: unknown;
21053
+ property?: string | undefined;
21054
+ expected?: string | undefined;
21055
+ };
21056
+ };
21057
+ };
21058
+ };
21059
+ };
21060
+ };
21061
+ } & {
20789
21062
  "state-description": {
20790
21063
  generate: {
20791
21064
  post: {
@@ -23005,6 +23278,19 @@ declare const app: Elysia<"", {
23005
23278
  symbolCurrency1: string;
23006
23279
  tickSpacing: number;
23007
23280
  }> | undefined;
23281
+ 4663?: Record<string, {
23282
+ chainId: number;
23283
+ currency0: string;
23284
+ currency1: string;
23285
+ decimalsCurrency0: number;
23286
+ decimalsCurrency1: number;
23287
+ hooks: string;
23288
+ lpFee: number;
23289
+ poolId: string;
23290
+ symbolCurrency0: string;
23291
+ symbolCurrency1: string;
23292
+ tickSpacing: number;
23293
+ }> | undefined;
23008
23294
  480?: Record<string, {
23009
23295
  chainId: number;
23010
23296
  currency0: string;
@@ -23476,6 +23762,7 @@ declare const app: Elysia<"", {
23476
23762
  claimableOnly?: boolean | undefined;
23477
23763
  breakdownPage: number;
23478
23764
  type?: "POINT" | "PRETGE" | "TOKEN" | undefined;
23765
+ showPrivate?: boolean | undefined;
23479
23766
  };
23480
23767
  headers: unknown;
23481
23768
  response: {
@@ -23722,6 +24009,816 @@ declare const app: Elysia<"", {
23722
24009
  };
23723
24010
  };
23724
24011
  };
24012
+ } & {
24013
+ users: {
24014
+ ":address": {
24015
+ rewards: {
24016
+ summary: {
24017
+ get: {
24018
+ body: unknown;
24019
+ params: {
24020
+ address: string;
24021
+ };
24022
+ query: {
24023
+ chains?: string[] | undefined;
24024
+ tokens?: string[] | undefined;
24025
+ protocols?: string[] | undefined;
24026
+ isTest?: boolean | undefined;
24027
+ isPreTGE?: boolean | undefined;
24028
+ reloadChainId?: number | undefined;
24029
+ };
24030
+ headers: unknown;
24031
+ response: {
24032
+ 200: {
24033
+ chain: {
24034
+ id: number;
24035
+ name: string;
24036
+ icon: string;
24037
+ liveCampaigns: number;
24038
+ endOfDisputePeriod: number;
24039
+ explorers?: {
24040
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
24041
+ url: string;
24042
+ chainId: number;
24043
+ }[] | undefined;
24044
+ lastClaimsOnchainFetchTimestamp: string | null;
24045
+ };
24046
+ amountUSD: string;
24047
+ claimedUSD: string;
24048
+ pendingUSD: string;
24049
+ rewards: {
24050
+ token: {
24051
+ id: string;
24052
+ name: string | null;
24053
+ chainId: number;
24054
+ address: string;
24055
+ decimals: number;
24056
+ symbol: string;
24057
+ icon: string;
24058
+ verified: boolean;
24059
+ isNative: boolean;
24060
+ isTest: boolean;
24061
+ type: "POINT" | "PRETGE" | "TOKEN";
24062
+ price?: number | null | undefined;
24063
+ updatedAt?: number | null | undefined;
24064
+ priceSource?: string | null | undefined;
24065
+ displaySymbol?: string | undefined;
24066
+ underlyingTokenId?: string | undefined;
24067
+ priceAlertDismissedAt?: number | undefined;
24068
+ priceAlertCount?: number | undefined;
24069
+ };
24070
+ amount: string;
24071
+ claimed: string;
24072
+ pending: string;
24073
+ proofs: string[];
24074
+ }[];
24075
+ }[];
24076
+ 422: {
24077
+ type: "validation";
24078
+ on: string;
24079
+ summary?: string | undefined;
24080
+ message?: string | undefined;
24081
+ found?: unknown;
24082
+ property?: string | undefined;
24083
+ expected?: string | undefined;
24084
+ };
24085
+ };
24086
+ };
24087
+ };
24088
+ };
24089
+ };
24090
+ };
24091
+ } & {
24092
+ users: {
24093
+ ":address": {
24094
+ rewards: {
24095
+ "active-opportunities": {
24096
+ get: {
24097
+ body: unknown;
24098
+ params: {
24099
+ address: string;
24100
+ };
24101
+ query: {
24102
+ test?: boolean | undefined;
24103
+ };
24104
+ headers: unknown;
24105
+ response: {
24106
+ 200: {
24107
+ opportunity: {
24108
+ id: string;
24109
+ type: string;
24110
+ identifier: string;
24111
+ chainId: number;
24112
+ name: string;
24113
+ description: string;
24114
+ howToSteps: string[];
24115
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
24116
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
24117
+ tags: string[];
24118
+ mainProtocol?: string | undefined;
24119
+ depositUrl?: string | undefined;
24120
+ depositUrls?: {
24121
+ id: string;
24122
+ title: string;
24123
+ url: string;
24124
+ subtitle?: string | undefined;
24125
+ icon?: string | undefined;
24126
+ priority: number;
24127
+ }[] | undefined;
24128
+ explorerAddress?: string | undefined;
24129
+ hidden?: boolean | undefined;
24130
+ tvl: number;
24131
+ apr: number;
24132
+ dailyRewards: number;
24133
+ maxDailyRewards?: number | null | undefined;
24134
+ liveCampaigns: number;
24135
+ lastCampaignCreatedAt: number;
24136
+ earliestCampaignStart?: string | bigint | undefined;
24137
+ latestCampaignStart?: string | bigint | undefined;
24138
+ earliestCampaignEnd?: string | bigint | undefined;
24139
+ latestCampaignEnd?: string | bigint | undefined;
24140
+ nativeApr?: number | undefined;
24141
+ maxApr?: number | null | undefined;
24142
+ liveCampaignsForCreator?: number | undefined;
24143
+ soonCampaignsForCreator?: number | undefined;
24144
+ pastCampaignsForCreator?: number | undefined;
24145
+ distributionType?: string | undefined;
24146
+ tokens: {
24147
+ id: string;
24148
+ name: string | null;
24149
+ chainId: number;
24150
+ address: string;
24151
+ decimals: number;
24152
+ symbol: string;
24153
+ icon: string;
24154
+ verified: boolean;
24155
+ isNative: boolean;
24156
+ isTest: boolean;
24157
+ type: "POINT" | "PRETGE" | "TOKEN";
24158
+ price?: number | null | undefined;
24159
+ updatedAt?: number | null | undefined;
24160
+ priceSource?: string | null | undefined;
24161
+ displaySymbol?: string | undefined;
24162
+ underlyingTokenId?: string | undefined;
24163
+ priceAlertDismissedAt?: number | undefined;
24164
+ priceAlertCount?: number | undefined;
24165
+ }[];
24166
+ chain: {
24167
+ id: number;
24168
+ name: string;
24169
+ icon: string;
24170
+ liveCampaigns: number;
24171
+ endOfDisputePeriod: number;
24172
+ explorers?: {
24173
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
24174
+ url: string;
24175
+ chainId: number;
24176
+ }[] | undefined;
24177
+ lastClaimsOnchainFetchTimestamp: string | null;
24178
+ };
24179
+ activePrograms: {
24180
+ id: string;
24181
+ name: string;
24182
+ slug?: string | null | undefined;
24183
+ description?: string | undefined;
24184
+ icon?: string | undefined;
24185
+ }[];
24186
+ protocol?: {
24187
+ id: string;
24188
+ name: string;
24189
+ icon: string;
24190
+ tags: string[];
24191
+ description: string;
24192
+ url: string;
24193
+ dailyRewards?: number | undefined;
24194
+ numberOfLiveCampaigns?: number | undefined;
24195
+ opportunityLiveTags?: string[] | undefined;
24196
+ banner: string | null;
24197
+ opportunityBannerLight: string | null;
24198
+ opportunityBannerDark: string | null;
24199
+ } | null | undefined;
24200
+ aprRecord?: {
24201
+ cumulated: number;
24202
+ timestamp: string | bigint;
24203
+ breakdowns: {
24204
+ identifier: string;
24205
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
24206
+ value: number;
24207
+ timestamp: string | bigint;
24208
+ 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;
24209
+ }[];
24210
+ } | undefined;
24211
+ nativeAprRecord?: {
24212
+ title: string;
24213
+ description?: string | undefined;
24214
+ value: number;
24215
+ timestamp: string | bigint;
24216
+ amount?: bigint | undefined;
24217
+ rewardToken?: {
24218
+ id: string;
24219
+ name: string | null;
24220
+ chainId: number;
24221
+ address: string;
24222
+ decimals: number;
24223
+ symbol: string;
24224
+ icon: string;
24225
+ verified: boolean;
24226
+ isNative: boolean;
24227
+ isTest: boolean;
24228
+ type: "POINT" | "PRETGE" | "TOKEN";
24229
+ price?: number | null | undefined;
24230
+ updatedAt?: number | null | undefined;
24231
+ priceSource?: string | null | undefined;
24232
+ displaySymbol?: string | undefined;
24233
+ underlyingTokenId?: string | undefined;
24234
+ priceAlertDismissedAt?: number | undefined;
24235
+ priceAlertCount?: number | undefined;
24236
+ } | undefined;
24237
+ } | undefined;
24238
+ tvlRecord?: {
24239
+ total: number;
24240
+ timestamp: string | bigint;
24241
+ breakdowns: {
24242
+ identifier: string;
24243
+ type: "PROTOCOL" | "TOKEN";
24244
+ value: number;
24245
+ }[];
24246
+ } | undefined;
24247
+ rewardsRecord?: {
24248
+ total: number;
24249
+ timestamp: string | bigint;
24250
+ breakdowns: {
24251
+ campaignId: string;
24252
+ value: number;
24253
+ maxValue?: number | undefined;
24254
+ timestamp: string | bigint;
24255
+ token: {
24256
+ id: string;
24257
+ name: string | null;
24258
+ chainId: number;
24259
+ address: string;
24260
+ decimals: number;
24261
+ symbol: string;
24262
+ icon: string;
24263
+ verified: boolean;
24264
+ isNative: boolean;
24265
+ isTest: boolean;
24266
+ type: "POINT" | "PRETGE" | "TOKEN";
24267
+ price?: number | null | undefined;
24268
+ updatedAt?: number | null | undefined;
24269
+ priceSource?: string | null | undefined;
24270
+ displaySymbol?: string | undefined;
24271
+ underlyingTokenId?: string | undefined;
24272
+ priceAlertDismissedAt?: number | undefined;
24273
+ priceAlertCount?: number | undefined;
24274
+ };
24275
+ amount: string | bigint;
24276
+ 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;
24277
+ onChainCampaignId?: string | undefined;
24278
+ }[];
24279
+ } | undefined;
24280
+ } & {
24281
+ campaigns?: {
24282
+ id: string;
24283
+ computeChainId: number;
24284
+ distributionChainId: number;
24285
+ campaignId: string;
24286
+ type: string;
24287
+ subType?: number | null | undefined;
24288
+ amount: string;
24289
+ startTimestamp: string | number | bigint;
24290
+ endTimestamp: string | number | bigint;
24291
+ creatorAddress: string;
24292
+ apr?: number | undefined;
24293
+ dailyRewards?: number | undefined;
24294
+ creator?: {
24295
+ address: string;
24296
+ tags?: string[] | undefined;
24297
+ creatorId?: string | null | undefined;
24298
+ } | undefined;
24299
+ params: unknown;
24300
+ description?: string | undefined;
24301
+ chain: {
24302
+ id: number;
24303
+ name: string;
24304
+ icon: string;
24305
+ liveCampaigns: number;
24306
+ endOfDisputePeriod: number;
24307
+ explorers?: {
24308
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
24309
+ url: string;
24310
+ chainId: number;
24311
+ }[] | undefined;
24312
+ lastClaimsOnchainFetchTimestamp: string | null;
24313
+ };
24314
+ rewardTokenId?: string | undefined;
24315
+ rewardToken: {
24316
+ id: string;
24317
+ name: string | null;
24318
+ chainId: number;
24319
+ address: string;
24320
+ decimals: number;
24321
+ symbol: string;
24322
+ icon: string;
24323
+ verified: boolean;
24324
+ isNative: boolean;
24325
+ isTest: boolean;
24326
+ type: "POINT" | "PRETGE" | "TOKEN";
24327
+ price?: number | null | undefined;
24328
+ updatedAt?: number | null | undefined;
24329
+ priceSource?: string | null | undefined;
24330
+ displaySymbol?: string | undefined;
24331
+ underlyingTokenId?: string | undefined;
24332
+ priceAlertDismissedAt?: number | undefined;
24333
+ priceAlertCount?: number | undefined;
24334
+ };
24335
+ opportunityId?: string | undefined;
24336
+ distributionChain?: {
24337
+ id: number;
24338
+ name: string;
24339
+ icon: string;
24340
+ liveCampaigns: number;
24341
+ endOfDisputePeriod: number;
24342
+ explorers?: {
24343
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
24344
+ url: string;
24345
+ chainId: number;
24346
+ }[] | undefined;
24347
+ lastClaimsOnchainFetchTimestamp: string | null;
24348
+ } | undefined;
24349
+ 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;
24350
+ campaignStatus: {
24351
+ campaignId: string;
24352
+ computedUntil: string | number;
24353
+ processingStarted: string | number;
24354
+ status: string;
24355
+ preComputeProcessingStarted: string | number;
24356
+ preComputeStatus: string;
24357
+ delay?: number | undefined;
24358
+ error?: string | undefined;
24359
+ details?: unknown;
24360
+ };
24361
+ createdAt: string;
24362
+ rootCampaignId?: string | null | undefined;
24363
+ parentCampaignId?: string | null | undefined;
24364
+ childCampaignIds?: string[] | undefined;
24365
+ dailyRewardsBreakdown?: {
24366
+ campaignId: string;
24367
+ value: number;
24368
+ maxValue?: number | undefined;
24369
+ timestamp: string | bigint;
24370
+ token: {
24371
+ id: string;
24372
+ name: string | null;
24373
+ chainId: number;
24374
+ address: string;
24375
+ decimals: number;
24376
+ symbol: string;
24377
+ icon: string;
24378
+ verified: boolean;
24379
+ isNative: boolean;
24380
+ isTest: boolean;
24381
+ type: "POINT" | "PRETGE" | "TOKEN";
24382
+ price?: number | null | undefined;
24383
+ updatedAt?: number | null | undefined;
24384
+ priceSource?: string | null | undefined;
24385
+ displaySymbol?: string | undefined;
24386
+ underlyingTokenId?: string | undefined;
24387
+ priceAlertDismissedAt?: number | undefined;
24388
+ priceAlertCount?: number | undefined;
24389
+ };
24390
+ amount: string | bigint;
24391
+ 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;
24392
+ onChainCampaignId?: string | undefined;
24393
+ }[] | undefined;
24394
+ pauseCompute?: string | null | undefined;
24395
+ pausePrecompute?: string | null | undefined;
24396
+ hasOverrides?: boolean | undefined;
24397
+ isPrivate: boolean;
24398
+ campaignEncodingHash?: string | undefined;
24399
+ }[] | undefined;
24400
+ };
24401
+ earnedTokens: {
24402
+ token: {
24403
+ id: string;
24404
+ name: string | null;
24405
+ chainId: number;
24406
+ address: string;
24407
+ decimals: number;
24408
+ symbol: string;
24409
+ icon: string;
24410
+ verified: boolean;
24411
+ isNative: boolean;
24412
+ isTest: boolean;
24413
+ type: "POINT" | "PRETGE" | "TOKEN";
24414
+ price?: number | null | undefined;
24415
+ updatedAt?: number | null | undefined;
24416
+ priceSource?: string | null | undefined;
24417
+ displaySymbol?: string | undefined;
24418
+ underlyingTokenId?: string | undefined;
24419
+ priceAlertDismissedAt?: number | undefined;
24420
+ priceAlertCount?: number | undefined;
24421
+ };
24422
+ amount: string;
24423
+ chain: {
24424
+ id: number;
24425
+ name: string;
24426
+ icon: string;
24427
+ liveCampaigns: number;
24428
+ endOfDisputePeriod: number;
24429
+ explorers?: {
24430
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
24431
+ url: string;
24432
+ chainId: number;
24433
+ }[] | undefined;
24434
+ lastClaimsOnchainFetchTimestamp: string | null;
24435
+ };
24436
+ }[];
24437
+ }[];
24438
+ 422: {
24439
+ type: "validation";
24440
+ on: string;
24441
+ summary?: string | undefined;
24442
+ message?: string | undefined;
24443
+ found?: unknown;
24444
+ property?: string | undefined;
24445
+ expected?: string | undefined;
24446
+ };
24447
+ };
24448
+ };
24449
+ };
24450
+ };
24451
+ };
24452
+ };
24453
+ } & {
24454
+ users: {
24455
+ ":address": {
24456
+ rewards: {
24457
+ chains: {
24458
+ ":chainId": {
24459
+ breakdowns: {
24460
+ get: {
24461
+ body: unknown;
24462
+ params: {
24463
+ address: string;
24464
+ chainId: number;
24465
+ };
24466
+ query: unknown;
24467
+ headers: unknown;
24468
+ response: {
24469
+ 200: {
24470
+ chain: {
24471
+ id: number;
24472
+ name: string;
24473
+ icon: string;
24474
+ liveCampaigns: number;
24475
+ endOfDisputePeriod: number;
24476
+ explorers?: {
24477
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
24478
+ url: string;
24479
+ chainId: number;
24480
+ }[] | undefined;
24481
+ lastClaimsOnchainFetchTimestamp: string | null;
24482
+ };
24483
+ opportunities: {
24484
+ opportunity: {
24485
+ id: string;
24486
+ type: string;
24487
+ identifier: string;
24488
+ chainId: number;
24489
+ name: string;
24490
+ description: string;
24491
+ howToSteps: string[];
24492
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
24493
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
24494
+ tags: string[];
24495
+ mainProtocol?: string | undefined;
24496
+ depositUrl?: string | undefined;
24497
+ depositUrls?: {
24498
+ id: string;
24499
+ title: string;
24500
+ url: string;
24501
+ subtitle?: string | undefined;
24502
+ icon?: string | undefined;
24503
+ priority: number;
24504
+ }[] | undefined;
24505
+ explorerAddress?: string | undefined;
24506
+ hidden?: boolean | undefined;
24507
+ tvl: number;
24508
+ apr: number;
24509
+ dailyRewards: number;
24510
+ maxDailyRewards?: number | null | undefined;
24511
+ liveCampaigns: number;
24512
+ lastCampaignCreatedAt: number;
24513
+ earliestCampaignStart?: string | bigint | undefined;
24514
+ latestCampaignStart?: string | bigint | undefined;
24515
+ earliestCampaignEnd?: string | bigint | undefined;
24516
+ latestCampaignEnd?: string | bigint | undefined;
24517
+ nativeApr?: number | undefined;
24518
+ maxApr?: number | null | undefined;
24519
+ liveCampaignsForCreator?: number | undefined;
24520
+ soonCampaignsForCreator?: number | undefined;
24521
+ pastCampaignsForCreator?: number | undefined;
24522
+ distributionType?: string | undefined;
24523
+ tokens: {
24524
+ id: string;
24525
+ name: string | null;
24526
+ chainId: number;
24527
+ address: string;
24528
+ decimals: number;
24529
+ symbol: string;
24530
+ icon: string;
24531
+ verified: boolean;
24532
+ isNative: boolean;
24533
+ isTest: boolean;
24534
+ type: "POINT" | "PRETGE" | "TOKEN";
24535
+ price?: number | null | undefined;
24536
+ updatedAt?: number | null | undefined;
24537
+ priceSource?: string | null | undefined;
24538
+ displaySymbol?: string | undefined;
24539
+ underlyingTokenId?: string | undefined;
24540
+ priceAlertDismissedAt?: number | undefined;
24541
+ priceAlertCount?: number | undefined;
24542
+ }[];
24543
+ chain: {
24544
+ id: number;
24545
+ name: string;
24546
+ icon: string;
24547
+ liveCampaigns: number;
24548
+ endOfDisputePeriod: number;
24549
+ explorers?: {
24550
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
24551
+ url: string;
24552
+ chainId: number;
24553
+ }[] | undefined;
24554
+ lastClaimsOnchainFetchTimestamp: string | null;
24555
+ };
24556
+ activePrograms: {
24557
+ id: string;
24558
+ name: string;
24559
+ slug?: string | null | undefined;
24560
+ description?: string | undefined;
24561
+ icon?: string | undefined;
24562
+ }[];
24563
+ protocol?: {
24564
+ id: string;
24565
+ name: string;
24566
+ icon: string;
24567
+ tags: string[];
24568
+ description: string;
24569
+ url: string;
24570
+ dailyRewards?: number | undefined;
24571
+ numberOfLiveCampaigns?: number | undefined;
24572
+ opportunityLiveTags?: string[] | undefined;
24573
+ banner: string | null;
24574
+ opportunityBannerLight: string | null;
24575
+ opportunityBannerDark: string | null;
24576
+ } | null | undefined;
24577
+ aprRecord?: {
24578
+ cumulated: number;
24579
+ timestamp: string | bigint;
24580
+ breakdowns: {
24581
+ identifier: string;
24582
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
24583
+ value: number;
24584
+ timestamp: string | bigint;
24585
+ 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;
24586
+ }[];
24587
+ } | undefined;
24588
+ nativeAprRecord?: {
24589
+ title: string;
24590
+ description?: string | undefined;
24591
+ value: number;
24592
+ timestamp: string | bigint;
24593
+ amount?: bigint | undefined;
24594
+ rewardToken?: {
24595
+ id: string;
24596
+ name: string | null;
24597
+ chainId: number;
24598
+ address: string;
24599
+ decimals: number;
24600
+ symbol: string;
24601
+ icon: string;
24602
+ verified: boolean;
24603
+ isNative: boolean;
24604
+ isTest: boolean;
24605
+ type: "POINT" | "PRETGE" | "TOKEN";
24606
+ price?: number | null | undefined;
24607
+ updatedAt?: number | null | undefined;
24608
+ priceSource?: string | null | undefined;
24609
+ displaySymbol?: string | undefined;
24610
+ underlyingTokenId?: string | undefined;
24611
+ priceAlertDismissedAt?: number | undefined;
24612
+ priceAlertCount?: number | undefined;
24613
+ } | undefined;
24614
+ } | undefined;
24615
+ tvlRecord?: {
24616
+ total: number;
24617
+ timestamp: string | bigint;
24618
+ breakdowns: {
24619
+ identifier: string;
24620
+ type: "PROTOCOL" | "TOKEN";
24621
+ value: number;
24622
+ }[];
24623
+ } | undefined;
24624
+ rewardsRecord?: {
24625
+ total: number;
24626
+ timestamp: string | bigint;
24627
+ breakdowns: {
24628
+ campaignId: string;
24629
+ value: number;
24630
+ maxValue?: number | undefined;
24631
+ timestamp: string | bigint;
24632
+ token: {
24633
+ id: string;
24634
+ name: string | null;
24635
+ chainId: number;
24636
+ address: string;
24637
+ decimals: number;
24638
+ symbol: string;
24639
+ icon: string;
24640
+ verified: boolean;
24641
+ isNative: boolean;
24642
+ isTest: boolean;
24643
+ type: "POINT" | "PRETGE" | "TOKEN";
24644
+ price?: number | null | undefined;
24645
+ updatedAt?: number | null | undefined;
24646
+ priceSource?: string | null | undefined;
24647
+ displaySymbol?: string | undefined;
24648
+ underlyingTokenId?: string | undefined;
24649
+ priceAlertDismissedAt?: number | undefined;
24650
+ priceAlertCount?: number | undefined;
24651
+ };
24652
+ amount: string | bigint;
24653
+ 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;
24654
+ onChainCampaignId?: string | undefined;
24655
+ }[];
24656
+ } | undefined;
24657
+ } & {
24658
+ campaigns?: {
24659
+ id: string;
24660
+ computeChainId: number;
24661
+ distributionChainId: number;
24662
+ campaignId: string;
24663
+ type: string;
24664
+ subType?: number | null | undefined;
24665
+ amount: string;
24666
+ startTimestamp: string | number | bigint;
24667
+ endTimestamp: string | number | bigint;
24668
+ creatorAddress: string;
24669
+ apr?: number | undefined;
24670
+ dailyRewards?: number | undefined;
24671
+ creator?: {
24672
+ address: string;
24673
+ tags?: string[] | undefined;
24674
+ creatorId?: string | null | undefined;
24675
+ } | undefined;
24676
+ params: unknown;
24677
+ description?: string | undefined;
24678
+ chain: {
24679
+ id: number;
24680
+ name: string;
24681
+ icon: string;
24682
+ liveCampaigns: number;
24683
+ endOfDisputePeriod: number;
24684
+ explorers?: {
24685
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
24686
+ url: string;
24687
+ chainId: number;
24688
+ }[] | undefined;
24689
+ lastClaimsOnchainFetchTimestamp: string | null;
24690
+ };
24691
+ rewardTokenId?: string | undefined;
24692
+ rewardToken: {
24693
+ id: string;
24694
+ name: string | null;
24695
+ chainId: number;
24696
+ address: string;
24697
+ decimals: number;
24698
+ symbol: string;
24699
+ icon: string;
24700
+ verified: boolean;
24701
+ isNative: boolean;
24702
+ isTest: boolean;
24703
+ type: "POINT" | "PRETGE" | "TOKEN";
24704
+ price?: number | null | undefined;
24705
+ updatedAt?: number | null | undefined;
24706
+ priceSource?: string | null | undefined;
24707
+ displaySymbol?: string | undefined;
24708
+ underlyingTokenId?: string | undefined;
24709
+ priceAlertDismissedAt?: number | undefined;
24710
+ priceAlertCount?: number | undefined;
24711
+ };
24712
+ opportunityId?: string | undefined;
24713
+ distributionChain?: {
24714
+ id: number;
24715
+ name: string;
24716
+ icon: string;
24717
+ liveCampaigns: number;
24718
+ endOfDisputePeriod: number;
24719
+ explorers?: {
24720
+ type: "BLOCKSCOUT" | "ETHERSCAN" | "SOLSCAN";
24721
+ url: string;
24722
+ chainId: number;
24723
+ }[] | undefined;
24724
+ lastClaimsOnchainFetchTimestamp: string | null;
24725
+ } | undefined;
24726
+ 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;
24727
+ campaignStatus: {
24728
+ campaignId: string;
24729
+ computedUntil: string | number;
24730
+ processingStarted: string | number;
24731
+ status: string;
24732
+ preComputeProcessingStarted: string | number;
24733
+ preComputeStatus: string;
24734
+ delay?: number | undefined;
24735
+ error?: string | undefined;
24736
+ details?: unknown;
24737
+ };
24738
+ createdAt: string;
24739
+ rootCampaignId?: string | null | undefined;
24740
+ parentCampaignId?: string | null | undefined;
24741
+ childCampaignIds?: string[] | undefined;
24742
+ dailyRewardsBreakdown?: {
24743
+ campaignId: string;
24744
+ value: number;
24745
+ maxValue?: number | undefined;
24746
+ timestamp: string | bigint;
24747
+ token: {
24748
+ id: string;
24749
+ name: string | null;
24750
+ chainId: number;
24751
+ address: string;
24752
+ decimals: number;
24753
+ symbol: string;
24754
+ icon: string;
24755
+ verified: boolean;
24756
+ isNative: boolean;
24757
+ isTest: boolean;
24758
+ type: "POINT" | "PRETGE" | "TOKEN";
24759
+ price?: number | null | undefined;
24760
+ updatedAt?: number | null | undefined;
24761
+ priceSource?: string | null | undefined;
24762
+ displaySymbol?: string | undefined;
24763
+ underlyingTokenId?: string | undefined;
24764
+ priceAlertDismissedAt?: number | undefined;
24765
+ priceAlertCount?: number | undefined;
24766
+ };
24767
+ amount: string | bigint;
24768
+ 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;
24769
+ onChainCampaignId?: string | undefined;
24770
+ }[] | undefined;
24771
+ pauseCompute?: string | null | undefined;
24772
+ pausePrecompute?: string | null | undefined;
24773
+ hasOverrides?: boolean | undefined;
24774
+ isPrivate: boolean;
24775
+ campaignEncodingHash?: string | undefined;
24776
+ }[] | undefined;
24777
+ };
24778
+ tokens: {
24779
+ token: {
24780
+ id: string;
24781
+ name: string | null;
24782
+ chainId: number;
24783
+ address: string;
24784
+ decimals: number;
24785
+ symbol: string;
24786
+ icon: string;
24787
+ verified: boolean;
24788
+ isNative: boolean;
24789
+ isTest: boolean;
24790
+ type: "POINT" | "PRETGE" | "TOKEN";
24791
+ price?: number | null | undefined;
24792
+ updatedAt?: number | null | undefined;
24793
+ priceSource?: string | null | undefined;
24794
+ displaySymbol?: string | undefined;
24795
+ underlyingTokenId?: string | undefined;
24796
+ priceAlertDismissedAt?: number | undefined;
24797
+ priceAlertCount?: number | undefined;
24798
+ };
24799
+ claimed: string;
24800
+ pending: string;
24801
+ claimable: string;
24802
+ }[];
24803
+ }[];
24804
+ };
24805
+ 422: {
24806
+ type: "validation";
24807
+ on: string;
24808
+ summary?: string | undefined;
24809
+ message?: string | undefined;
24810
+ found?: unknown;
24811
+ property?: string | undefined;
24812
+ expected?: string | undefined;
24813
+ };
24814
+ };
24815
+ };
24816
+ };
24817
+ };
24818
+ };
24819
+ };
24820
+ };
24821
+ };
23725
24822
  } & {
23726
24823
  users: {
23727
24824
  get: {
@@ -23794,6 +24891,7 @@ declare const app: Elysia<"", {
23794
24891
  reloadChainId?: number | undefined;
23795
24892
  test?: boolean | undefined;
23796
24893
  claimableOnly?: boolean | undefined;
24894
+ showPrivate?: boolean | undefined;
23797
24895
  };
23798
24896
  headers: unknown;
23799
24897
  response: {
@@ -24495,6 +25593,49 @@ declare const app: Elysia<"", {
24495
25593
  };
24496
25594
  };
24497
25595
  };
25596
+ } & {
25597
+ graphql: {};
25598
+ } & {
25599
+ graphql: {
25600
+ v1: {
25601
+ [x: string]: {
25602
+ body: unknown;
25603
+ params: {};
25604
+ query: unknown;
25605
+ headers: unknown;
25606
+ response: {
25607
+ 200: Response;
25608
+ };
25609
+ };
25610
+ };
25611
+ };
25612
+ } & {
25613
+ graphql: {
25614
+ v1: {
25615
+ "*": {
25616
+ [x: string]: {
25617
+ body: unknown;
25618
+ params: {
25619
+ "*": string;
25620
+ } & {};
25621
+ query: unknown;
25622
+ headers: unknown;
25623
+ response: {
25624
+ 200: Response;
25625
+ 422: {
25626
+ type: "validation";
25627
+ on: string;
25628
+ summary?: string | undefined;
25629
+ message?: string | undefined;
25630
+ found?: unknown;
25631
+ property?: string | undefined;
25632
+ expected?: string | undefined;
25633
+ };
25634
+ };
25635
+ };
25636
+ };
25637
+ };
25638
+ };
24498
25639
  } & {
24499
25640
  get: {
24500
25641
  body: unknown;