@merkl/api 1.20.12 → 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 (92) hide show
  1. package/dist/src/eden/index.d.ts +977 -128
  2. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +114 -59
  3. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.js.map +1 -1
  4. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pendleYT/tvl.js.map +1 -1
  5. package/dist/src/engine/implementations/Exactly/metadata.d.ts +19 -0
  6. package/dist/src/engine/implementations/Exactly/metadata.js.map +1 -0
  7. package/dist/src/engine/implementations/FeeWrapper4626/metadata.d.ts +18 -0
  8. package/dist/src/engine/implementations/FeeWrapper4626/metadata.js.map +1 -0
  9. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +1 -1
  10. package/dist/src/engine/metadata/factory.js.map +1 -1
  11. package/dist/src/guards/PrivateAccess.guard.d.ts +25 -0
  12. package/dist/src/guards/PrivateAccess.guard.js.map +1 -0
  13. package/dist/src/index.d.ts +894 -1
  14. package/dist/src/jobs/claim-etl/load.d.ts +2 -2
  15. package/dist/src/jobs/claim-etl/load.js.map +1 -1
  16. package/dist/src/jobs/claim-etl/types.d.ts +4 -4
  17. package/dist/src/jobs/deposit-credit-etl/load.js.map +1 -1
  18. package/dist/src/jobs/merge-etl/load.js.map +1 -1
  19. package/dist/src/jobs/refresh-materialized-views.js.map +1 -1
  20. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +10 -2
  21. package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
  22. package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +24 -0
  23. package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
  24. package/dist/src/modules/v4/campaign/campaign.model.d.ts +5 -0
  25. package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
  26. package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +29 -29
  27. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +11 -0
  28. package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
  29. package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -1
  30. package/dist/src/modules/v4/chain/chain.model.js.map +1 -1
  31. package/dist/src/modules/v4/claims/claims.model.js.map +1 -1
  32. package/dist/src/modules/v4/credit/credit.controller.d.ts +1 -0
  33. package/dist/src/modules/v4/credit/credit.model.d.ts +1 -0
  34. package/dist/src/modules/v4/credit/credit.model.js.map +1 -1
  35. package/dist/src/modules/v4/credit/credit.repository.js.map +1 -1
  36. package/dist/src/modules/v4/enum/enum.service.d.ts +68 -0
  37. package/dist/src/modules/v4/enum/enum.service.js.map +1 -1
  38. package/dist/src/modules/v4/leaf/leaf.service.d.ts +144 -1
  39. package/dist/src/modules/v4/leaf/leaf.service.js.map +1 -1
  40. package/dist/src/modules/v4/leaf/leafView.repository.d.ts +13 -0
  41. package/dist/src/modules/v4/leaf/leafView.repository.js.map +1 -1
  42. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -0
  43. package/dist/src/modules/v4/opportunity/opportunity.controller.js.map +1 -1
  44. package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
  45. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +48 -48
  46. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +93 -1
  47. package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
  48. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +4 -2
  49. package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
  50. package/dist/src/modules/v4/protocol/protocol.model.js.map +1 -1
  51. package/dist/src/modules/v4/reallocation/reallocation.controller.d.ts +67 -0
  52. package/dist/src/modules/v4/reallocation/reallocation.controller.js.map +1 -0
  53. package/dist/src/modules/v4/reallocation/reallocation.model.d.ts +38 -0
  54. package/dist/src/modules/v4/reallocation/reallocation.model.js.map +1 -0
  55. package/dist/src/modules/v4/reallocation/reallocation.repository.d.ts +25 -0
  56. package/dist/src/modules/v4/reallocation/reallocation.repository.js.map +1 -0
  57. package/dist/src/modules/v4/reallocation/reallocation.service.d.ts +21 -0
  58. package/dist/src/modules/v4/reallocation/reallocation.service.js.map +1 -0
  59. package/dist/src/modules/v4/reward/reward.controller.js.map +1 -1
  60. package/dist/src/modules/v4/reward/reward.model.js.map +1 -1
  61. package/dist/src/modules/v4/router.d.ts +894 -1
  62. package/dist/src/modules/v4/router.js.map +1 -1
  63. package/dist/src/modules/v4/schema/schema.controller.d.ts +141 -0
  64. package/dist/src/modules/v4/schema/schema.controller.js.map +1 -0
  65. package/dist/src/modules/v4/schema/schema.model.d.ts +56 -0
  66. package/dist/src/modules/v4/schema/schema.model.js.map +1 -0
  67. package/dist/src/modules/v4/schema/schema.service.d.ts +20 -0
  68. package/dist/src/modules/v4/schema/schema.service.js.map +1 -0
  69. package/dist/src/modules/v4/slack/slack.service.js.map +1 -1
  70. package/dist/src/modules/v4/token/token.model.js.map +1 -1
  71. package/dist/src/modules/v4/transaction/transaction.service.d.ts +956 -648
  72. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +13 -0
  73. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +14 -0
  74. package/dist/src/modules/v4/user/user.controller.d.ts +733 -0
  75. package/dist/src/modules/v4/user/user.controller.js.map +1 -1
  76. package/dist/src/modules/v4/user/user.model.d.ts +907 -0
  77. package/dist/src/modules/v4/user/user.model.js.map +1 -1
  78. package/dist/src/modules/v4/user/user.pending.test.d.ts +1 -0
  79. package/dist/src/modules/v4/user/user.pending.test.js.map +1 -0
  80. package/dist/src/modules/v4/user/user.service.d.ts +268 -0
  81. package/dist/src/modules/v4/user/user.service.js.map +1 -1
  82. package/dist/src/scripts/extract-stellar-pk.d.ts +1 -0
  83. package/dist/src/scripts/extract-stellar-pk.js.map +1 -0
  84. package/dist/src/scripts/test-reallocations.d.ts +9 -0
  85. package/dist/src/scripts/test-reallocations.js.map +1 -0
  86. package/dist/src/utils/getAPR.d.ts +279 -125
  87. package/dist/src/utils/parseDistributionType.d.ts +244 -90
  88. package/dist/src/utils/providers.d.ts +2 -0
  89. package/dist/src/utils/throw.d.ts +17 -0
  90. package/dist/src/utils/throw.js.map +1 -1
  91. package/dist/tsconfig.tsbuildinfo +1 -1
  92. package/package.json +1 -1
@@ -2434,11 +2434,13 @@ declare const eden: {
2434
2434
  campaigns: ((params: {
2435
2435
  id: string | number;
2436
2436
  }) => {
2437
- get: (options?: {
2437
+ get: (options: {
2438
2438
  fetch?: RequestInit | undefined;
2439
2439
  headers?: Record<string, unknown> | undefined;
2440
- query?: Record<string, unknown> | undefined;
2441
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2440
+ query: {
2441
+ showPrivate?: boolean | undefined;
2442
+ };
2443
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2442
2444
  200: {
2443
2445
  id: string;
2444
2446
  computeChainId: number;
@@ -3925,6 +3927,7 @@ declare const eden: {
3925
3927
  rootCampaignId?: string | undefined;
3926
3928
  parentCampaignId?: string | undefined;
3927
3929
  mainProtocolId?: string | undefined;
3930
+ showPrivate?: boolean | undefined;
3928
3931
  };
3929
3932
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3930
3933
  200: ({
@@ -4249,6 +4252,7 @@ declare const eden: {
4249
4252
  rootCampaignId?: string | undefined;
4250
4253
  parentCampaignId?: string | undefined;
4251
4254
  mainProtocolId?: string | undefined;
4255
+ showPrivate?: boolean | undefined;
4252
4256
  };
4253
4257
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4254
4258
  200: {
@@ -4431,6 +4435,7 @@ declare const eden: {
4431
4435
  rootCampaignId?: string | undefined;
4432
4436
  parentCampaignId?: string | undefined;
4433
4437
  mainProtocolId?: string | undefined;
4438
+ showPrivate?: boolean | undefined;
4434
4439
  };
4435
4440
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4436
4441
  200: number;
@@ -4486,6 +4491,7 @@ declare const eden: {
4486
4491
  rootCampaignId?: string | undefined;
4487
4492
  parentCampaignId?: string | undefined;
4488
4493
  mainProtocolId?: string | undefined;
4494
+ showPrivate?: boolean | undefined;
4489
4495
  };
4490
4496
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4491
4497
  200: {
@@ -4544,6 +4550,7 @@ declare const eden: {
4544
4550
  rootCampaignId?: string | undefined;
4545
4551
  parentCampaignId?: string | undefined;
4546
4552
  mainProtocolId?: string | undefined;
4553
+ showPrivate?: boolean | undefined;
4547
4554
  };
4548
4555
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4549
4556
  200: {
@@ -4602,6 +4609,7 @@ declare const eden: {
4602
4609
  rootCampaignId?: string | undefined;
4603
4610
  parentCampaignId?: string | undefined;
4604
4611
  mainProtocolId?: string | undefined;
4612
+ showPrivate?: boolean | undefined;
4605
4613
  };
4606
4614
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4607
4615
  200: {
@@ -11230,6 +11238,7 @@ declare const eden: {
11230
11238
  query: {
11231
11239
  page?: number | undefined;
11232
11240
  items?: number | undefined;
11241
+ type?: "ADD" | "SUBTRACT" | undefined;
11233
11242
  };
11234
11243
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11235
11244
  200: {
@@ -14030,6 +14039,8 @@ declare const eden: {
14030
14039
  query: {
14031
14040
  page?: number | undefined;
14032
14041
  items?: number | undefined;
14042
+ from?: number | undefined;
14043
+ to?: number | undefined;
14033
14044
  };
14034
14045
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14035
14046
  200: {
@@ -15971,6 +15982,7 @@ declare const eden: {
15971
15982
  rootCampaignId?: string | undefined;
15972
15983
  parentCampaignId?: string | undefined;
15973
15984
  mainProtocolId?: string | undefined;
15985
+ showPrivate?: boolean | undefined;
15974
15986
  };
15975
15987
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
15976
15988
  200: ({
@@ -18912,6 +18924,41 @@ declare const eden: {
18912
18924
  };
18913
18925
  };
18914
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
+ };
18915
18962
  referral: {
18916
18963
  code: {
18917
18964
  get: (options: {
@@ -19389,6 +19436,85 @@ declare const eden: {
19389
19436
  }>>;
19390
19437
  }) & {};
19391
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
+ };
19392
19518
  slack: {
19393
19519
  engine: {
19394
19520
  "campaign-creation-failure": {
@@ -21108,6 +21234,19 @@ declare const eden: {
21108
21234
  symbolCurrency1: string;
21109
21235
  tickSpacing: number;
21110
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;
21111
21250
  480?: Record<string, {
21112
21251
  chainId: number;
21113
21252
  currency0: string;
@@ -22045,6 +22184,7 @@ declare const eden: {
22045
22184
  claimableOnly?: boolean | undefined;
22046
22185
  breakdownPage: number;
22047
22186
  type?: "POINT" | "PRETGE" | "TOKEN" | undefined;
22187
+ showPrivate?: boolean | undefined;
22048
22188
  };
22049
22189
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
22050
22190
  200: {
@@ -22104,38 +22244,55 @@ declare const eden: {
22104
22244
  expected?: string | undefined;
22105
22245
  };
22106
22246
  }>>;
22107
- breakdowns: {
22247
+ "active-opportunities": {
22108
22248
  get: (options: {
22109
22249
  fetch?: RequestInit | undefined;
22110
22250
  headers?: Record<string, unknown> | undefined;
22111
22251
  query: {
22112
- tags?: string | undefined;
22113
- chainIds?: string[] | undefined;
22114
- reloadChainId?: number | undefined;
22115
22252
  test?: boolean | undefined;
22116
- claimableOnly?: boolean | undefined;
22117
22253
  };
22118
22254
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
22119
- 200: (Omit<{
22120
- chain: {
22121
- id: number;
22255
+ 200: {
22256
+ opportunity: {
22257
+ id: string;
22258
+ type: string;
22259
+ identifier: string;
22260
+ chainId: number;
22122
22261
  name: string;
22123
- icon: string;
22124
- liveCampaigns: number;
22125
- endOfDisputePeriod: number;
22126
- explorers?: {
22127
- 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;
22128
22272
  url: string;
22129
- chainId: number;
22273
+ subtitle?: string | undefined;
22274
+ icon?: string | undefined;
22275
+ priority: number;
22130
22276
  }[] | undefined;
22131
- lastClaimsOnchainFetchTimestamp: string | null;
22132
- };
22133
- rewards: {
22134
- root: string;
22135
- distributionChainId: number;
22136
- recipient: string;
22137
- proofs: string[] | never[];
22138
- token: {
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: {
22139
22296
  id: string;
22140
22297
  name: string | null;
22141
22298
  chainId: number;
@@ -22154,72 +22311,407 @@ declare const eden: {
22154
22311
  underlyingTokenId?: string | undefined;
22155
22312
  priceAlertDismissedAt?: number | undefined;
22156
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;
22157
22327
  };
22158
- breakdowns: {
22159
- root: string;
22160
- distributionChainId: number;
22161
- reason: string;
22162
- amount: string;
22163
- claimed: string;
22164
- pending: string;
22165
- campaignStatus: {
22166
- campaignId: string;
22167
- status: import("@package/databases").RunStatus;
22168
- preComputeStatus: import("@package/databases").RunStatus;
22169
- error: string;
22170
- details: string | number | boolean | import("@prisma/client/runtime/client").JsonArray | import("@prisma/client/runtime/client").JsonObject;
22171
- delay: number;
22172
- computedUntil: number;
22173
- createdAt: number;
22174
- processingStarted: number;
22175
- preComputeProcessingStarted: number;
22176
- } | undefined;
22177
- campaignId: string;
22178
- subCampaignId: string | undefined;
22179
- opportunity: {
22180
- ActivePrograms: {
22181
- id: string;
22182
- slug: string | null;
22183
- name: string;
22184
- description: string;
22185
- icon: string;
22186
- }[];
22187
- Chain: {
22188
- id: number;
22189
- name: string;
22190
- icon: string;
22191
- liveCampaigns: number;
22192
- endOfDisputePeriod: number;
22193
- lastClaimsOnchainFetchTimestamp: string | null;
22194
- };
22195
- DepositUrls: {
22196
- id: string;
22197
- title: string;
22198
- url: string;
22199
- subtitle: string | null;
22200
- icon: string | null;
22201
- priority: number;
22202
- opportunityId: string;
22203
- }[];
22204
- MainProtocol: {
22205
- id: string;
22206
- tags: string[];
22207
- name: string;
22208
- description: string;
22209
- url: string;
22210
- icon: string;
22211
- banner: string | null;
22212
- opportunityBannerLight: string | null;
22213
- opportunityBannerDark: string | null;
22214
- } | null;
22215
- Tokens: {
22216
- id: string;
22217
- name: string | null;
22218
- chainId: number;
22219
- address: string;
22220
- decimals: number;
22221
- symbol: string;
22222
- displaySymbol: string;
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;
22646
+ underlyingTokenId?: string | undefined;
22647
+ priceAlertDismissedAt?: number | undefined;
22648
+ priceAlertCount?: number | undefined;
22649
+ };
22650
+ breakdowns: {
22651
+ root: string;
22652
+ distributionChainId: number;
22653
+ reason: string;
22654
+ amount: string;
22655
+ claimed: string;
22656
+ pending: string;
22657
+ campaignStatus: {
22658
+ campaignId: string;
22659
+ status: import("@package/databases").RunStatus;
22660
+ preComputeStatus: import("@package/databases").RunStatus;
22661
+ error: string;
22662
+ details: string | number | boolean | import("@prisma/client/runtime/client").JsonArray | import("@prisma/client/runtime/client").JsonObject;
22663
+ delay: number;
22664
+ computedUntil: number;
22665
+ createdAt: number;
22666
+ processingStarted: number;
22667
+ preComputeProcessingStarted: number;
22668
+ } | undefined;
22669
+ campaignId: string;
22670
+ subCampaignId: string | undefined;
22671
+ opportunity: {
22672
+ ActivePrograms: {
22673
+ id: string;
22674
+ slug: string | null;
22675
+ name: string;
22676
+ description: string;
22677
+ icon: string;
22678
+ }[];
22679
+ Chain: {
22680
+ id: number;
22681
+ name: string;
22682
+ icon: string;
22683
+ liveCampaigns: number;
22684
+ endOfDisputePeriod: number;
22685
+ lastClaimsOnchainFetchTimestamp: string | null;
22686
+ };
22687
+ DepositUrls: {
22688
+ id: string;
22689
+ title: string;
22690
+ url: string;
22691
+ subtitle: string | null;
22692
+ icon: string | null;
22693
+ priority: number;
22694
+ opportunityId: string;
22695
+ }[];
22696
+ MainProtocol: {
22697
+ id: string;
22698
+ tags: string[];
22699
+ name: string;
22700
+ description: string;
22701
+ url: string;
22702
+ icon: string;
22703
+ banner: string | null;
22704
+ opportunityBannerLight: string | null;
22705
+ opportunityBannerDark: string | null;
22706
+ } | null;
22707
+ Tokens: {
22708
+ id: string;
22709
+ name: string | null;
22710
+ chainId: number;
22711
+ address: string;
22712
+ decimals: number;
22713
+ symbol: string;
22714
+ displaySymbol: string;
22223
22715
  icon: string;
22224
22716
  verified: boolean;
22225
22717
  isTest: boolean;
@@ -22399,11 +22891,239 @@ declare const eden: {
22399
22891
  hidden: boolean;
22400
22892
  };
22401
22893
  }[];
22402
- claimed: bigint;
22403
- amount: bigint;
22404
- pending: bigint;
22405
- }, "breakdowns"> & {
22406
- 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: {
22407
23127
  opportunity: {
22408
23128
  id: string;
22409
23129
  type: string;
@@ -22430,6 +23150,7 @@ declare const eden: {
22430
23150
  tvl: number;
22431
23151
  apr: number;
22432
23152
  dailyRewards: number;
23153
+ maxDailyRewards?: number | null | undefined;
22433
23154
  liveCampaigns: number;
22434
23155
  lastCampaignCreatedAt: number;
22435
23156
  earliestCampaignStart?: string | bigint | undefined;
@@ -22441,7 +23162,6 @@ declare const eden: {
22441
23162
  liveCampaignsForCreator?: number | undefined;
22442
23163
  soonCampaignsForCreator?: number | undefined;
22443
23164
  pastCampaignsForCreator?: number | undefined;
22444
- distributedBycreator?: number | undefined;
22445
23165
  distributionType?: string | undefined;
22446
23166
  tokens: {
22447
23167
  id: string;
@@ -22498,8 +23218,8 @@ declare const eden: {
22498
23218
  opportunityBannerDark: string | null;
22499
23219
  } | null | undefined;
22500
23220
  aprRecord?: {
22501
- timestamp: string | bigint;
22502
23221
  cumulated: number;
23222
+ timestamp: string | bigint;
22503
23223
  breakdowns: {
22504
23224
  identifier: string;
22505
23225
  type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
@@ -22511,8 +23231,8 @@ declare const eden: {
22511
23231
  nativeAprRecord?: {
22512
23232
  title: string;
22513
23233
  description?: string | undefined;
22514
- timestamp: string | bigint;
22515
23234
  value: number;
23235
+ timestamp: string | bigint;
22516
23236
  amount?: bigint | undefined;
22517
23237
  rewardToken?: {
22518
23238
  id: string;
@@ -22536,8 +23256,8 @@ declare const eden: {
22536
23256
  } | undefined;
22537
23257
  } | undefined;
22538
23258
  tvlRecord?: {
22539
- timestamp: string | bigint;
22540
23259
  total: number;
23260
+ timestamp: string | bigint;
22541
23261
  breakdowns: {
22542
23262
  identifier: string;
22543
23263
  type: "PROTOCOL" | "TOKEN";
@@ -22577,37 +23297,166 @@ declare const eden: {
22577
23297
  onChainCampaignId?: string | undefined;
22578
23298
  }[];
22579
23299
  } | undefined;
22580
- campaigns?: any[] | undefined;
22581
- };
22582
- claimed: bigint;
22583
- amount: bigint;
22584
- pending: bigint;
22585
- delays?: ({
22586
- computedUntil: number;
22587
- details: import("@prisma/client/runtime/client").JsonValue;
22588
- error: string;
22589
- preComputeProcessingStarted: number;
22590
- preComputeStatus: import("@package/databases").RunStatus;
22591
- processingStarted: number;
22592
- status: import("@package/databases").RunStatus;
22593
23300
  } & {
22594
- delay?: number | undefined;
22595
- })[] | 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
+ }[];
22596
23446
  }[];
22597
- })[];
22598
- distributor: string;
22599
- })[];
22600
- 422: {
22601
- type: "validation";
22602
- on: string;
22603
- summary?: string | undefined;
22604
- message?: string | undefined;
22605
- found?: unknown;
22606
- property?: string | undefined;
22607
- expected?: string | undefined;
22608
- };
22609
- }>>;
22610
- };
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
+ }) & {};
22611
23460
  stats: {
22612
23461
  get: (options: {
22613
23462
  fetch?: RequestInit | undefined;