@merkl/api 1.6.0 → 1.6.2

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 (71) hide show
  1. package/dist/src/eden/index.d.ts +777 -427
  2. package/dist/src/engine/implementations/clamm/tvl.abstract.d.ts +1 -1
  3. package/dist/src/index.d.ts +767 -425
  4. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +12 -0
  5. package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
  6. package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
  7. package/dist/src/modules/v4/campaign/campaign.model.d.ts +3 -0
  8. package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
  9. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +22 -2
  10. package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
  11. package/dist/src/modules/v4/campaign/campaign.service.d.ts +18 -6
  12. package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
  13. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +8 -0
  14. package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.d.ts +2 -0
  15. package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.d.ts +2 -0
  16. package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +2 -0
  17. package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.d.ts +4 -0
  18. package/dist/src/modules/v4/campaignGroup/campaignGroup.service.d.ts +4 -0
  19. package/dist/src/modules/v4/campaignStatus/campaignStatus.repository.d.ts +1 -0
  20. package/dist/src/modules/v4/carousel/carousel.controller.d.ts +4 -0
  21. package/dist/src/modules/v4/carousel/carousel.repository.d.ts +6 -0
  22. package/dist/src/modules/v4/carousel/carousel.service.d.ts +6 -0
  23. package/dist/src/modules/v4/clamm/clamm.controller.d.ts +63 -1
  24. package/dist/src/modules/v4/clamm/clamm.controller.js.map +1 -1
  25. package/dist/src/modules/v4/clamm/clamm.service.d.ts +5 -2
  26. package/dist/src/modules/v4/clamm/clamm.service.js.map +1 -1
  27. package/dist/src/modules/v4/config/config.controller.d.ts +2 -0
  28. package/dist/src/modules/v4/config/config.service.d.ts +2 -0
  29. package/dist/src/modules/v4/creator/creator.controller.d.ts +3 -0
  30. package/dist/src/modules/v4/creator/creator.model.d.ts +1 -0
  31. package/dist/src/modules/v4/creator/creator.repository.d.ts +2 -0
  32. package/dist/src/modules/v4/creator/creator.service.d.ts +2 -0
  33. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +118 -0
  34. package/dist/src/modules/v4/opportunity/opportunity.controller.js.map +1 -1
  35. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +4 -0
  36. package/dist/src/modules/v4/opportunity/opportunity.formatter.js.map +1 -1
  37. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +9 -0
  38. package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
  39. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +16 -0
  40. package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
  41. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +16 -0
  42. package/dist/src/modules/v4/override/override.controller.d.ts +126 -3
  43. package/dist/src/modules/v4/override/override.controller.js.map +1 -1
  44. package/dist/src/modules/v4/override/override.model.d.ts +48 -3
  45. package/dist/src/modules/v4/override/override.model.js.map +1 -1
  46. package/dist/src/modules/v4/override/override.repository.d.ts +19 -0
  47. package/dist/src/modules/v4/override/override.repository.js.map +1 -1
  48. package/dist/src/modules/v4/override/override.service.d.ts +72 -5
  49. package/dist/src/modules/v4/override/override.service.js.map +1 -1
  50. package/dist/src/modules/v4/payload/payload.controller.d.ts +418 -421
  51. package/dist/src/modules/v4/payload/payload.controller.js.map +1 -1
  52. package/dist/src/modules/v4/payload/payload.service.d.ts +425 -426
  53. package/dist/src/modules/v4/payload/payload.service.js.map +1 -1
  54. package/dist/src/modules/v4/program/program.repository.d.ts +4 -0
  55. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +2 -0
  56. package/dist/src/modules/v4/reward/reward.repository.d.ts +4 -0
  57. package/dist/src/modules/v4/reward/reward.service.d.ts +19 -0
  58. package/dist/src/modules/v4/router.d.ts +767 -425
  59. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +6 -0
  60. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +3 -0
  61. package/dist/src/modules/v4/user/user.controller.d.ts +5 -0
  62. package/dist/src/scripts/compare-engine-campaigns/campaign-loader.js.map +1 -1
  63. package/dist/src/scripts/compare-engine-campaigns/constants.d.ts +1 -0
  64. package/dist/src/scripts/compare-engine-campaigns/constants.js.map +1 -1
  65. package/dist/src/scripts/compare-engine-campaigns/diff-reporter.js.map +1 -1
  66. package/dist/src/scripts/compare-engine-campaigns/index.js.map +1 -1
  67. package/dist/src/scripts/compare-engine-campaigns/normalizer.d.ts +1 -1
  68. package/dist/src/scripts/compare-engine-campaigns/normalizer.js.map +1 -1
  69. package/dist/src/scripts/recompute-override.js.map +1 -1
  70. package/dist/src/utils/getAPR.d.ts +24 -24
  71. package/package.json +1 -1
@@ -731,6 +731,7 @@ declare const app: Elysia<"", {
731
731
  endTimestamp: bigint;
732
732
  params: import("@prisma/client/runtime/client").JsonValue;
733
733
  description: string | null;
734
+ pauseCompute: boolean;
734
735
  dailyRewards: number;
735
736
  apr: number;
736
737
  creatorAddress: string;
@@ -796,6 +797,7 @@ declare const app: Elysia<"", {
796
797
  endTimestamp: bigint;
797
798
  params: import("@prisma/client/runtime/client").JsonValue;
798
799
  description: string | null;
800
+ pauseCompute: boolean;
799
801
  dailyRewards: number;
800
802
  apr: number;
801
803
  creatorAddress: string;
@@ -1061,6 +1063,7 @@ declare const app: Elysia<"", {
1061
1063
  slug: string | null;
1062
1064
  }[];
1063
1065
  id: string;
1066
+ hidden: true | undefined;
1064
1067
  nativeApr: number | undefined;
1065
1068
  depositUrl: string | undefined;
1066
1069
  explorerAddress: string | undefined;
@@ -1191,6 +1194,7 @@ declare const app: Elysia<"", {
1191
1194
  amount: string | bigint;
1192
1195
  distributionType?: "DUTCH_AUCTION" | "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;
1193
1196
  }[] | undefined;
1197
+ pauseCompute?: boolean | undefined;
1194
1198
  } | {
1195
1199
  Opportunity: {
1196
1200
  id: string;
@@ -1211,6 +1215,7 @@ declare const app: Elysia<"", {
1211
1215
  nativeApr?: number | undefined;
1212
1216
  dailyRewards?: number | undefined;
1213
1217
  tvl?: number | undefined;
1218
+ hidden?: boolean | undefined;
1214
1219
  };
1215
1220
  amount: string;
1216
1221
  apr?: number | undefined;
@@ -1291,6 +1296,7 @@ declare const app: Elysia<"", {
1291
1296
  opportunityId?: string | undefined;
1292
1297
  params: any;
1293
1298
  parentCampaignId?: string | undefined;
1299
+ pauseCompute?: boolean | undefined;
1294
1300
  rewardToken: {
1295
1301
  id: string;
1296
1302
  name: string | null;
@@ -1608,6 +1614,7 @@ declare const app: Elysia<"", {
1608
1614
  description?: string | undefined;
1609
1615
  icon?: string | undefined;
1610
1616
  }[];
1617
+ hidden?: boolean | undefined;
1611
1618
  } | undefined;
1612
1619
  children: {
1613
1620
  chainId: number;
@@ -1753,6 +1760,7 @@ declare const app: Elysia<"", {
1753
1760
  description?: string | undefined;
1754
1761
  icon?: string | undefined;
1755
1762
  }[];
1763
+ hidden?: boolean | undefined;
1756
1764
  }[];
1757
1765
  self: {
1758
1766
  chainId: number;
@@ -1898,6 +1906,7 @@ declare const app: Elysia<"", {
1898
1906
  description?: string | undefined;
1899
1907
  icon?: string | undefined;
1900
1908
  }[];
1909
+ hidden?: boolean | undefined;
1901
1910
  };
1902
1911
  };
1903
1912
  422: {
@@ -2198,6 +2207,7 @@ declare const app: Elysia<"", {
2198
2207
  amount: string | bigint;
2199
2208
  distributionType?: "DUTCH_AUCTION" | "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;
2200
2209
  }[] | undefined;
2210
+ pauseCompute?: boolean | undefined;
2201
2211
  } | {
2202
2212
  Opportunity: {
2203
2213
  id: string;
@@ -2218,6 +2228,7 @@ declare const app: Elysia<"", {
2218
2228
  nativeApr?: number | undefined;
2219
2229
  dailyRewards?: number | undefined;
2220
2230
  tvl?: number | undefined;
2231
+ hidden?: boolean | undefined;
2221
2232
  };
2222
2233
  amount: string;
2223
2234
  apr?: number | undefined;
@@ -2298,6 +2309,7 @@ declare const app: Elysia<"", {
2298
2309
  opportunityId?: string | undefined;
2299
2310
  params: any;
2300
2311
  parentCampaignId?: string | undefined;
2312
+ pauseCompute?: boolean | undefined;
2301
2313
  rewardToken: {
2302
2314
  id: string;
2303
2315
  name: string | null;
@@ -2646,6 +2658,7 @@ declare const app: Elysia<"", {
2646
2658
  patch: {
2647
2659
  body: {
2648
2660
  description?: string | undefined;
2661
+ pauseCompute?: boolean | undefined;
2649
2662
  };
2650
2663
  params: {
2651
2664
  id: string;
@@ -2717,6 +2730,7 @@ declare const app: Elysia<"", {
2717
2730
  slug: string | null;
2718
2731
  }[];
2719
2732
  id: string;
2733
+ hidden: true | undefined;
2720
2734
  nativeApr: number | undefined;
2721
2735
  depositUrl: string | undefined;
2722
2736
  explorerAddress: string | undefined;
@@ -3408,6 +3422,7 @@ declare const app: Elysia<"", {
3408
3422
  endTimestamp: bigint;
3409
3423
  params: import("@prisma/client/runtime/client").JsonValue;
3410
3424
  description: string | null;
3425
+ pauseCompute: boolean;
3411
3426
  dailyRewards: number;
3412
3427
  apr: number;
3413
3428
  creatorAddress: string;
@@ -3573,6 +3588,7 @@ declare const app: Elysia<"", {
3573
3588
  lastCampaignCreatedAt: Date;
3574
3589
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
3575
3590
  liveCampaigns: number;
3591
+ hidden: boolean;
3576
3592
  });
3577
3593
  422: {
3578
3594
  type: "validation";
@@ -4216,6 +4232,7 @@ declare const app: Elysia<"", {
4216
4232
  endTimestamp: bigint;
4217
4233
  params: import("@prisma/client/runtime/client").JsonValue;
4218
4234
  description: string | null;
4235
+ pauseCompute: boolean;
4219
4236
  dailyRewards: number;
4220
4237
  apr: number;
4221
4238
  creatorAddress: string;
@@ -4381,6 +4398,7 @@ declare const app: Elysia<"", {
4381
4398
  lastCampaignCreatedAt: Date;
4382
4399
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
4383
4400
  liveCampaigns: number;
4401
+ hidden: boolean;
4384
4402
  });
4385
4403
  422: {
4386
4404
  type: "validation";
@@ -4466,6 +4484,7 @@ declare const app: Elysia<"", {
4466
4484
  endTimestamp: bigint;
4467
4485
  params: import("@prisma/client/runtime/client").JsonValue;
4468
4486
  description: string | null;
4487
+ pauseCompute: boolean;
4469
4488
  dailyRewards: number;
4470
4489
  apr: number;
4471
4490
  creatorAddress: string;
@@ -4631,6 +4650,7 @@ declare const app: Elysia<"", {
4631
4650
  lastCampaignCreatedAt: Date;
4632
4651
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
4633
4652
  liveCampaigns: number;
4653
+ hidden: boolean;
4634
4654
  });
4635
4655
  422: {
4636
4656
  type: "validation";
@@ -4715,6 +4735,7 @@ declare const app: Elysia<"", {
4715
4735
  endTimestamp: bigint;
4716
4736
  params: import("@prisma/client/runtime/client").JsonValue;
4717
4737
  description: string | null;
4738
+ pauseCompute: boolean;
4718
4739
  dailyRewards: number;
4719
4740
  apr: number;
4720
4741
  creatorAddress: string;
@@ -4880,6 +4901,7 @@ declare const app: Elysia<"", {
4880
4901
  lastCampaignCreatedAt: Date;
4881
4902
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
4882
4903
  liveCampaigns: number;
4904
+ hidden: boolean;
4883
4905
  });
4884
4906
  422: {
4885
4907
  type: "validation";
@@ -5489,6 +5511,7 @@ declare const app: Elysia<"", {
5489
5511
  lastCampaignCreatedAt: Date;
5490
5512
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
5491
5513
  liveCampaigns: number;
5514
+ hidden: boolean;
5492
5515
  }) | null;
5493
5516
  Program: ({
5494
5517
  Opportunity: ({
@@ -5567,6 +5590,7 @@ declare const app: Elysia<"", {
5567
5590
  lastCampaignCreatedAt: Date;
5568
5591
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
5569
5592
  liveCampaigns: number;
5593
+ hidden: boolean;
5570
5594
  })[];
5571
5595
  } & {
5572
5596
  id: string;
@@ -5880,6 +5904,7 @@ declare const app: Elysia<"", {
5880
5904
  lastCampaignCreatedAt: Date;
5881
5905
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
5882
5906
  liveCampaigns: number;
5907
+ hidden: boolean;
5883
5908
  }) | null;
5884
5909
  Program: ({
5885
5910
  Opportunity: ({
@@ -5958,6 +5983,7 @@ declare const app: Elysia<"", {
5958
5983
  lastCampaignCreatedAt: Date;
5959
5984
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
5960
5985
  liveCampaigns: number;
5986
+ hidden: boolean;
5961
5987
  })[];
5962
5988
  } & {
5963
5989
  id: string;
@@ -6403,7 +6429,7 @@ declare const app: Elysia<"", {
6403
6429
  symbolCurrency1: string;
6404
6430
  tickSpacing: number;
6405
6431
  } & {
6406
- protocol: import("@package/resources/enums").HYBRA | import("@package/resources/enums").JAINE | import("@package/resources/enums").KATANA | import("@package/resources/enums").KATANA_ALGEBRA | import("@package/resources/enums").KYO | import("@package/resources/enums").PANCAKESWAP | import("@package/resources/enums").PHARAOH | import("@package/resources/enums").RAMSES | import("@package/resources/enums").UNISWAPV3 | import("@package/resources/enums").UNISWAPV4 | import("@package/resources/enums").VOLTAGE | import("@package/resources/enums").XSWAP;
6432
+ protocol: import("@package/resources/enums").ARTHSWAP | import("@package/resources/enums").KYO | import("@package/resources/enums").NEPTUNE | import("@package/resources/enums").SYNC_SWAP | import("@package/resources/enums").UNISWAPV4 | import("@package/resources/enums").VELODROME | import("@package/resources/enums").HYBRA | import("@package/resources/enums").KATANA | import("@package/resources/enums").KATANA_ALGEBRA | import("@package/resources/enums").UNISWAPV3 | import("@package/resources/enums").XSWAP | import("@package/resources/enums").VOLTAGE | import("@package/resources/enums").JAINE | import("@package/resources/enums").PANCAKESWAP | import("@package/resources/enums").RAMSES | import("@package/resources/enums").PHARAOH | import("@package/resources/enums").AERODROME | import("@package/resources/enums").KITTEN_SWAP;
6407
6433
  }) | ({
6408
6434
  chainId: number;
6409
6435
  currency0: string;
@@ -6434,6 +6460,68 @@ declare const app: Elysia<"", {
6434
6460
  };
6435
6461
  };
6436
6462
  };
6463
+ } & {
6464
+ pools: {
6465
+ protocol: {
6466
+ ":chainId": {
6467
+ ":protocol": {
6468
+ ":poolId?": {
6469
+ get: {
6470
+ body: unknown;
6471
+ params: {
6472
+ chainId: number;
6473
+ poolId?: string | undefined;
6474
+ protocol: never;
6475
+ };
6476
+ query: unknown;
6477
+ headers: unknown;
6478
+ response: {
6479
+ 200: Record<string, ({
6480
+ chainId: number;
6481
+ currency0: string;
6482
+ currency1: string;
6483
+ decimalsCurrency0: number;
6484
+ decimalsCurrency1: number;
6485
+ hooks: string;
6486
+ lpFee: number;
6487
+ poolId: string;
6488
+ symbolCurrency0: string;
6489
+ symbolCurrency1: string;
6490
+ tickSpacing: number;
6491
+ } & {
6492
+ protocol: import("@package/resources/enums").ARTHSWAP | import("@package/resources/enums").KYO | import("@package/resources/enums").NEPTUNE | import("@package/resources/enums").SYNC_SWAP | import("@package/resources/enums").UNISWAPV4 | import("@package/resources/enums").VELODROME | import("@package/resources/enums").HYBRA | import("@package/resources/enums").KATANA | import("@package/resources/enums").KATANA_ALGEBRA | import("@package/resources/enums").UNISWAPV3 | import("@package/resources/enums").XSWAP | import("@package/resources/enums").VOLTAGE | import("@package/resources/enums").JAINE | import("@package/resources/enums").PANCAKESWAP | import("@package/resources/enums").RAMSES | import("@package/resources/enums").PHARAOH | import("@package/resources/enums").AERODROME | import("@package/resources/enums").KITTEN_SWAP;
6493
+ }) | ({
6494
+ chainId: number;
6495
+ currency0: string;
6496
+ currency1: string;
6497
+ decimalsCurrency0: number;
6498
+ decimalsCurrency1: number;
6499
+ hooks: string;
6500
+ lpFee: number;
6501
+ poolId: string;
6502
+ symbolCurrency0: string;
6503
+ symbolCurrency1: string;
6504
+ tickSpacing: number;
6505
+ } & {
6506
+ config: string;
6507
+ protocol: import("@package/resources/enums").EKUBO;
6508
+ })>;
6509
+ 422: {
6510
+ type: "validation";
6511
+ on: string;
6512
+ summary?: string | undefined;
6513
+ message?: string | undefined;
6514
+ found?: unknown;
6515
+ property?: string | undefined;
6516
+ expected?: string | undefined;
6517
+ };
6518
+ };
6519
+ };
6520
+ };
6521
+ };
6522
+ };
6523
+ };
6524
+ };
6437
6525
  };
6438
6526
  } & {
6439
6527
  value: {
@@ -6855,6 +6943,7 @@ declare const app: Elysia<"", {
6855
6943
  endTimestamp: bigint;
6856
6944
  params: import("@prisma/client/runtime/client").JsonValue;
6857
6945
  description: string | null;
6946
+ pauseCompute: boolean;
6858
6947
  dailyRewards: number;
6859
6948
  apr: number;
6860
6949
  creatorAddress: string;
@@ -7020,6 +7109,7 @@ declare const app: Elysia<"", {
7020
7109
  lastCampaignCreatedAt: Date;
7021
7110
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
7022
7111
  liveCampaigns: number;
7112
+ hidden: boolean;
7023
7113
  });
7024
7114
  };
7025
7115
  };
@@ -7709,6 +7799,7 @@ declare const app: Elysia<"", {
7709
7799
  description?: string | undefined;
7710
7800
  icon?: string | undefined;
7711
7801
  }[];
7802
+ hidden?: boolean | undefined;
7712
7803
  } & {
7713
7804
  liveCampaignsForCreator: number;
7714
7805
  distributedBycreator: number;
@@ -7764,6 +7855,7 @@ declare const app: Elysia<"", {
7764
7855
  lastCampaignCreatedAt: Date;
7765
7856
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
7766
7857
  liveCampaigns: number;
7858
+ hidden: boolean;
7767
7859
  };
7768
7860
  } & {
7769
7861
  id: string;
@@ -7780,6 +7872,7 @@ declare const app: Elysia<"", {
7780
7872
  endTimestamp: bigint;
7781
7873
  params: import("@prisma/client/runtime/client").JsonValue;
7782
7874
  description: string | null;
7875
+ pauseCompute: boolean;
7783
7876
  dailyRewards: number;
7784
7877
  apr: number;
7785
7878
  creatorAddress: string;
@@ -8617,6 +8710,7 @@ declare const app: Elysia<"", {
8617
8710
  amount: string | bigint;
8618
8711
  distributionType?: "DUTCH_AUCTION" | "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;
8619
8712
  }[] | undefined;
8713
+ pauseCompute?: boolean | undefined;
8620
8714
  }[];
8621
8715
  chain: {
8622
8716
  id: number;
@@ -8636,6 +8730,7 @@ declare const app: Elysia<"", {
8636
8730
  description: string;
8637
8731
  distributionType?: "DUTCH_AUCTION" | "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;
8638
8732
  explorerAddress?: string | undefined;
8733
+ hidden?: boolean | undefined;
8639
8734
  howToSteps: string[];
8640
8735
  id: string;
8641
8736
  identifier: string;
@@ -8925,6 +9020,7 @@ declare const app: Elysia<"", {
8925
9020
  description?: string | undefined;
8926
9021
  icon?: string | undefined;
8927
9022
  }[];
9023
+ hidden?: boolean | undefined;
8928
9024
  } | {
8929
9025
  action: string;
8930
9026
  activePrograms: {
@@ -9048,6 +9144,7 @@ declare const app: Elysia<"", {
9048
9144
  amount: string | bigint;
9049
9145
  distributionType?: "DUTCH_AUCTION" | "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;
9050
9146
  }[] | undefined;
9147
+ pauseCompute?: boolean | undefined;
9051
9148
  }[];
9052
9149
  chain: {
9053
9150
  id: number;
@@ -9067,6 +9164,7 @@ declare const app: Elysia<"", {
9067
9164
  description: string;
9068
9165
  distributionType?: "DUTCH_AUCTION" | "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;
9069
9166
  explorerAddress?: string | undefined;
9167
+ hidden?: boolean | undefined;
9070
9168
  howToSteps: string[];
9071
9169
  id: string;
9072
9170
  identifier: string;
@@ -9336,6 +9434,7 @@ declare const app: Elysia<"", {
9336
9434
  amount: string | bigint;
9337
9435
  distributionType?: "DUTCH_AUCTION" | "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;
9338
9436
  }[] | undefined;
9437
+ pauseCompute?: boolean | undefined;
9339
9438
  }[];
9340
9439
  chain: {
9341
9440
  id: number;
@@ -9355,6 +9454,7 @@ declare const app: Elysia<"", {
9355
9454
  description: string;
9356
9455
  distributionType?: "DUTCH_AUCTION" | "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;
9357
9456
  explorerAddress?: string | undefined;
9457
+ hidden?: boolean | undefined;
9358
9458
  howToSteps: string[];
9359
9459
  id: string;
9360
9460
  identifier: string;
@@ -9669,6 +9769,7 @@ declare const app: Elysia<"", {
9669
9769
  description?: string | undefined;
9670
9770
  icon?: string | undefined;
9671
9771
  }[];
9772
+ hidden?: boolean | undefined;
9672
9773
  } | {
9673
9774
  action: string;
9674
9775
  activePrograms: {
@@ -9792,6 +9893,7 @@ declare const app: Elysia<"", {
9792
9893
  amount: string | bigint;
9793
9894
  distributionType?: "DUTCH_AUCTION" | "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;
9794
9895
  }[] | undefined;
9896
+ pauseCompute?: boolean | undefined;
9795
9897
  }[];
9796
9898
  chain: {
9797
9899
  id: number;
@@ -9811,6 +9913,7 @@ declare const app: Elysia<"", {
9811
9913
  description: string;
9812
9914
  distributionType?: "DUTCH_AUCTION" | "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;
9813
9915
  explorerAddress?: string | undefined;
9916
+ hidden?: boolean | undefined;
9814
9917
  howToSteps: string[];
9815
9918
  id: string;
9816
9919
  identifier: string;
@@ -10372,6 +10475,7 @@ declare const app: Elysia<"", {
10372
10475
  endTimestamp: bigint;
10373
10476
  params: import("@prisma/client/runtime/client").JsonValue;
10374
10477
  description: string | null;
10478
+ pauseCompute: boolean;
10375
10479
  dailyRewards: number;
10376
10480
  apr: number;
10377
10481
  creatorAddress: string;
@@ -10537,6 +10641,7 @@ declare const app: Elysia<"", {
10537
10641
  lastCampaignCreatedAt: Date;
10538
10642
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
10539
10643
  liveCampaigns: number;
10644
+ hidden: boolean;
10540
10645
  });
10541
10646
  422: {
10542
10647
  type: "validation";
@@ -10557,6 +10662,7 @@ declare const app: Elysia<"", {
10557
10662
  patch: {
10558
10663
  body: {
10559
10664
  tags?: string[] | undefined;
10665
+ hidden?: boolean | undefined;
10560
10666
  };
10561
10667
  params: {
10562
10668
  id: string;
@@ -10586,6 +10692,7 @@ declare const app: Elysia<"", {
10586
10692
  lastCampaignCreatedAt: Date;
10587
10693
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
10588
10694
  liveCampaigns: number;
10695
+ hidden: boolean;
10589
10696
  };
10590
10697
  422: {
10591
10698
  type: "validation";
@@ -10637,6 +10744,7 @@ declare const app: Elysia<"", {
10637
10744
  lastCampaignCreatedAt: Date;
10638
10745
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
10639
10746
  liveCampaigns: number;
10747
+ hidden: boolean;
10640
10748
  };
10641
10749
  422: {
10642
10750
  type: "validation";
@@ -10702,6 +10810,7 @@ declare const app: Elysia<"", {
10702
10810
  lastCampaignCreatedAt: Date;
10703
10811
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
10704
10812
  liveCampaigns: number;
10813
+ hidden: boolean;
10705
10814
  };
10706
10815
  422: {
10707
10816
  type: "validation";
@@ -10784,6 +10893,7 @@ declare const app: Elysia<"", {
10784
10893
  endTimestamp: bigint;
10785
10894
  params: import("@prisma/client/runtime/client").JsonValue;
10786
10895
  description: string | null;
10896
+ pauseCompute: boolean;
10787
10897
  dailyRewards: number;
10788
10898
  apr: number;
10789
10899
  creatorAddress: string;
@@ -10949,6 +11059,7 @@ declare const app: Elysia<"", {
10949
11059
  lastCampaignCreatedAt: Date;
10950
11060
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
10951
11061
  liveCampaigns: number;
11062
+ hidden: boolean;
10952
11063
  });
10953
11064
  422: {
10954
11065
  type: "validation";
@@ -10964,12 +11075,123 @@ declare const app: Elysia<"", {
10964
11075
  };
10965
11076
  };
10966
11077
  };
11078
+ } & {
11079
+ opportunities: {
11080
+ ":id": {
11081
+ hide: {
11082
+ patch: {
11083
+ body: unknown;
11084
+ params: {
11085
+ id: string;
11086
+ };
11087
+ query: unknown;
11088
+ headers: unknown;
11089
+ response: {
11090
+ 200: {
11091
+ id: string;
11092
+ chainId: number;
11093
+ type: string;
11094
+ identifier: string;
11095
+ name: string;
11096
+ description: string;
11097
+ howToSteps: string[];
11098
+ depositUrl: string | null;
11099
+ explorerAddress: string | null;
11100
+ status: import("@package/databases").Status;
11101
+ action: import("@package/databases").OpportunityAction;
11102
+ mainProtocolId: string | null;
11103
+ tvl: number;
11104
+ apr: number;
11105
+ nativeApr: number | null;
11106
+ maxApr: number | null;
11107
+ dailyRewards: number;
11108
+ tags: string[];
11109
+ lastCampaignCreatedAt: Date;
11110
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
11111
+ liveCampaigns: number;
11112
+ hidden: boolean;
11113
+ };
11114
+ 422: {
11115
+ type: "validation";
11116
+ on: string;
11117
+ summary?: string | undefined;
11118
+ message?: string | undefined;
11119
+ found?: unknown;
11120
+ property?: string | undefined;
11121
+ expected?: string | undefined;
11122
+ };
11123
+ };
11124
+ };
11125
+ };
11126
+ };
11127
+ };
11128
+ } & {
11129
+ opportunities: {
11130
+ ":id": {
11131
+ unhide: {
11132
+ patch: {
11133
+ body: unknown;
11134
+ params: {
11135
+ id: string;
11136
+ };
11137
+ query: unknown;
11138
+ headers: unknown;
11139
+ response: {
11140
+ 200: {
11141
+ id: string;
11142
+ chainId: number;
11143
+ type: string;
11144
+ identifier: string;
11145
+ name: string;
11146
+ description: string;
11147
+ howToSteps: string[];
11148
+ depositUrl: string | null;
11149
+ explorerAddress: string | null;
11150
+ status: import("@package/databases").Status;
11151
+ action: import("@package/databases").OpportunityAction;
11152
+ mainProtocolId: string | null;
11153
+ tvl: number;
11154
+ apr: number;
11155
+ nativeApr: number | null;
11156
+ maxApr: number | null;
11157
+ dailyRewards: number;
11158
+ tags: string[];
11159
+ lastCampaignCreatedAt: Date;
11160
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
11161
+ liveCampaigns: number;
11162
+ hidden: boolean;
11163
+ };
11164
+ 422: {
11165
+ type: "validation";
11166
+ on: string;
11167
+ summary?: string | undefined;
11168
+ message?: string | undefined;
11169
+ found?: unknown;
11170
+ property?: string | undefined;
11171
+ expected?: string | undefined;
11172
+ };
11173
+ };
11174
+ };
11175
+ };
11176
+ };
11177
+ };
10967
11178
  } & {
10968
11179
  overrides: {
10969
11180
  post: {
10970
11181
  body: {
10971
11182
  campaignId: string;
10972
- value: any;
11183
+ value: ({
11184
+ type: "insert";
11185
+ path: string;
11186
+ value: any;
11187
+ } | {
11188
+ type: "update";
11189
+ path: string;
11190
+ value: any;
11191
+ } | {
11192
+ type: "delete";
11193
+ path: string;
11194
+ })[];
10973
11195
  message: string;
10974
11196
  signature: string;
10975
11197
  };
@@ -10981,7 +11203,18 @@ declare const app: Elysia<"", {
10981
11203
  response: {
10982
11204
  200: {
10983
11205
  campaignId: string;
10984
- value: any;
11206
+ value: ({
11207
+ type: "insert";
11208
+ path: string;
11209
+ value: any;
11210
+ } | {
11211
+ type: "update";
11212
+ path: string;
11213
+ value: any;
11214
+ } | {
11215
+ type: "delete";
11216
+ path: string;
11217
+ })[];
10985
11218
  signature: string;
10986
11219
  signerAddress: string;
10987
11220
  };
@@ -11010,7 +11243,18 @@ declare const app: Elysia<"", {
11010
11243
  response: {
11011
11244
  200: {
11012
11245
  campaignId: string;
11013
- value: any;
11246
+ value: ({
11247
+ type: "insert";
11248
+ path: string;
11249
+ value: any;
11250
+ } | {
11251
+ type: "update";
11252
+ path: string;
11253
+ value: any;
11254
+ } | {
11255
+ type: "delete";
11256
+ path: string;
11257
+ })[];
11014
11258
  signature: string;
11015
11259
  signerAddress: string;
11016
11260
  };
@@ -11026,6 +11270,96 @@ declare const app: Elysia<"", {
11026
11270
  };
11027
11271
  };
11028
11272
  };
11273
+ } & {
11274
+ diff: {
11275
+ post: {
11276
+ body: {
11277
+ oldConfig: any;
11278
+ newConfig: any;
11279
+ };
11280
+ params: {};
11281
+ query: unknown;
11282
+ headers: {
11283
+ authorization: string;
11284
+ };
11285
+ response: {
11286
+ 200: ({
11287
+ type: "insert";
11288
+ path: string;
11289
+ value: any;
11290
+ } | {
11291
+ type: "update";
11292
+ path: string;
11293
+ value: any;
11294
+ } | {
11295
+ type: "delete";
11296
+ path: string;
11297
+ })[];
11298
+ 422: {
11299
+ type: "validation";
11300
+ on: string;
11301
+ summary?: string | undefined;
11302
+ message?: string | undefined;
11303
+ found?: unknown;
11304
+ property?: string | undefined;
11305
+ expected?: string | undefined;
11306
+ };
11307
+ };
11308
+ };
11309
+ };
11310
+ } & {
11311
+ apply: {
11312
+ post: {
11313
+ body: {
11314
+ config: any;
11315
+ override: any;
11316
+ };
11317
+ params: {};
11318
+ query: unknown;
11319
+ headers: {
11320
+ authorization: string;
11321
+ };
11322
+ response: {
11323
+ 200: any;
11324
+ 422: {
11325
+ type: "validation";
11326
+ on: string;
11327
+ summary?: string | undefined;
11328
+ message?: string | undefined;
11329
+ found?: unknown;
11330
+ property?: string | undefined;
11331
+ expected?: string | undefined;
11332
+ };
11333
+ };
11334
+ };
11335
+ };
11336
+ } & {
11337
+ apply: {
11338
+ ":campaignId": {
11339
+ post: {
11340
+ body: unknown;
11341
+ params: {
11342
+ campaignId: string;
11343
+ };
11344
+ query: unknown;
11345
+ headers: {
11346
+ authorization: string;
11347
+ };
11348
+ response: {
11349
+ 200: any;
11350
+ 422: {
11351
+ type: "validation";
11352
+ on: string;
11353
+ summary?: string | undefined;
11354
+ message?: string | undefined;
11355
+ found?: unknown;
11356
+ property?: string | undefined;
11357
+ expected?: string | undefined;
11358
+ };
11359
+ };
11360
+ };
11361
+ };
11362
+ };
11029
11363
  };
11030
11364
  } & {
11031
11365
  parse: {
@@ -11106,14 +11440,8 @@ declare const app: Elysia<"", {
11106
11440
  headers: unknown;
11107
11441
  response: {
11108
11442
  200: Record<string, {
11109
- tvl?: undefined;
11110
- message: string;
11111
- name: string;
11112
- campaign?: undefined;
11113
- opportunity?: undefined;
11114
- } | {
11115
- message?: undefined;
11116
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11443
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
11444
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11117
11445
  opportunity: ({
11118
11446
  chainId: number;
11119
11447
  type: string;
@@ -11169,6 +11497,7 @@ declare const app: Elysia<"", {
11169
11497
  endTimestamp: bigint;
11170
11498
  params: import("@prisma/client/runtime/client").JsonValue;
11171
11499
  description: string | null;
11500
+ pauseCompute: boolean;
11172
11501
  dailyRewards: number;
11173
11502
  apr: number;
11174
11503
  creatorAddress: string;
@@ -11334,6 +11663,7 @@ declare const app: Elysia<"", {
11334
11663
  lastCampaignCreatedAt: Date;
11335
11664
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
11336
11665
  liveCampaigns: number;
11666
+ hidden: boolean;
11337
11667
  });
11338
11668
  tvl: {
11339
11669
  breakdowns: ({
@@ -11344,7 +11674,6 @@ declare const app: Elysia<"", {
11344
11674
  timestamp: bigint;
11345
11675
  total: number;
11346
11676
  } & {};
11347
- name?: undefined;
11348
11677
  }>;
11349
11678
  422: {
11350
11679
  type: "validation";
@@ -11379,147 +11708,181 @@ declare const app: Elysia<"", {
11379
11708
  authorization: string;
11380
11709
  };
11381
11710
  response: {
11382
- 200: Record<string, {
11383
- tvl?: undefined;
11384
- message: string;
11385
- name: string;
11386
- campaign?: undefined;
11387
- opportunity?: undefined;
11388
- } | {
11389
- message?: undefined;
11390
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11391
- opportunity: ({
11392
- chainId: number;
11393
- type: string;
11394
- identifier: string;
11395
- name?: string | undefined;
11396
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11397
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11398
- description?: string | undefined;
11399
- howToSteps?: string[] | undefined;
11400
- tokens: {
11401
- address: string;
11711
+ 200: {
11712
+ campaigns: Record<string, {
11713
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
11714
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11715
+ opportunity: ({
11402
11716
  chainId: number;
11403
- }[];
11404
- protocols?: string[] | undefined;
11405
- mainProtocol?: string | undefined;
11406
- depositUrl?: string | undefined;
11407
- explorerAddress?: string | undefined;
11408
- tags?: string[] | undefined;
11409
- } & {
11410
- id: string;
11411
- }) | ({
11412
- ActivePrograms: {
11413
- icon: string;
11414
- id: string;
11415
- name: string;
11416
- slug: string | null;
11417
- }[];
11418
- AprRecords: ({
11419
- AprBreakdown: {
11420
- identifier: string;
11421
- timestamp: bigint;
11422
- type: import("@package/databases").AprType;
11423
- value: number;
11717
+ type: string;
11718
+ identifier: string;
11719
+ name?: string | undefined;
11720
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
11721
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11722
+ description?: string | undefined;
11723
+ howToSteps?: string[] | undefined;
11724
+ tokens: {
11725
+ address: string;
11726
+ chainId: number;
11424
11727
  }[];
11728
+ protocols?: string[] | undefined;
11729
+ mainProtocol?: string | undefined;
11730
+ depositUrl?: string | undefined;
11731
+ explorerAddress?: string | undefined;
11732
+ tags?: string[] | undefined;
11425
11733
  } & {
11426
11734
  id: string;
11427
- timestamp: bigint;
11428
- cumulated: number;
11429
- opportunityId: string;
11430
- })[];
11431
- Campaigns: {
11432
- id: string;
11433
- computeChainId: number;
11434
- distributionChainId: number;
11435
- campaignId: string;
11436
- type: string;
11437
- distributionType: import("@package/databases").DistributionType;
11438
- subType: number | null;
11439
- rewardTokenId: string;
11440
- amount: string;
11441
- opportunityId: string;
11442
- startTimestamp: bigint;
11443
- endTimestamp: bigint;
11444
- params: import("@prisma/client/runtime/client").JsonValue;
11445
- description: string | null;
11446
- dailyRewards: number;
11447
- apr: number;
11448
- creatorAddress: string;
11449
- manualOverrides: import("@package/databases").CampaignManualOverride[];
11450
- createdAt: Date;
11451
- rootCampaignId: string | null;
11452
- parentCampaignId: string | null;
11453
- }[];
11454
- Chain: {
11455
- id: number;
11456
- name: string;
11457
- icon: string;
11458
- liveCampaigns: number;
11459
- endOfDisputePeriod: number;
11460
- };
11461
- DailyRewardsRecords: ({
11462
- DailyRewardsBreakdown: ({
11463
- Campaign: {
11464
- CampaignStatus: {
11735
+ }) | ({
11736
+ ActivePrograms: {
11737
+ icon: string;
11738
+ id: string;
11739
+ name: string;
11740
+ slug: string | null;
11741
+ }[];
11742
+ AprRecords: ({
11743
+ AprBreakdown: {
11744
+ identifier: string;
11745
+ timestamp: bigint;
11746
+ type: import("@package/databases").AprType;
11747
+ value: number;
11748
+ }[];
11749
+ } & {
11750
+ id: string;
11751
+ timestamp: bigint;
11752
+ cumulated: number;
11753
+ opportunityId: string;
11754
+ })[];
11755
+ Campaigns: {
11756
+ id: string;
11757
+ computeChainId: number;
11758
+ distributionChainId: number;
11759
+ campaignId: string;
11760
+ type: string;
11761
+ distributionType: import("@package/databases").DistributionType;
11762
+ subType: number | null;
11763
+ rewardTokenId: string;
11764
+ amount: string;
11765
+ opportunityId: string;
11766
+ startTimestamp: bigint;
11767
+ endTimestamp: bigint;
11768
+ params: import("@prisma/client/runtime/client").JsonValue;
11769
+ description: string | null;
11770
+ pauseCompute: boolean;
11771
+ dailyRewards: number;
11772
+ apr: number;
11773
+ creatorAddress: string;
11774
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
11775
+ createdAt: Date;
11776
+ rootCampaignId: string | null;
11777
+ parentCampaignId: string | null;
11778
+ }[];
11779
+ Chain: {
11780
+ id: number;
11781
+ name: string;
11782
+ icon: string;
11783
+ liveCampaigns: number;
11784
+ endOfDisputePeriod: number;
11785
+ };
11786
+ DailyRewardsRecords: ({
11787
+ DailyRewardsBreakdown: ({
11788
+ Campaign: {
11789
+ CampaignStatus: {
11790
+ campaignId: string;
11791
+ computedUntil: bigint;
11792
+ processingStarted: bigint;
11793
+ status: import("@package/databases").RunStatus;
11794
+ preComputeStatus: import("@package/databases").RunStatus;
11795
+ preComputeProcessingStarted: bigint;
11796
+ error: string;
11797
+ details: import("@prisma/client/runtime/client").JsonValue;
11798
+ }[];
11799
+ RewardToken: {
11800
+ id: string;
11801
+ name: string | null;
11802
+ chainId: number;
11803
+ address: string;
11804
+ decimals: number;
11805
+ symbol: string;
11806
+ displaySymbol: string;
11807
+ icon: string;
11808
+ verified: boolean;
11809
+ isTest: boolean;
11810
+ type: import("@package/databases").TokenType;
11811
+ isNative: boolean;
11812
+ price: number | null;
11813
+ updatedAt: number | null;
11814
+ priceSource: string | null;
11815
+ };
11816
+ amount: string;
11465
11817
  campaignId: string;
11466
- computedUntil: bigint;
11467
- processingStarted: bigint;
11468
- status: import("@package/databases").RunStatus;
11469
- preComputeStatus: import("@package/databases").RunStatus;
11470
- preComputeProcessingStarted: bigint;
11471
- error: string;
11472
- details: import("@prisma/client/runtime/client").JsonValue;
11473
- }[];
11474
- RewardToken: {
11475
- id: string;
11476
- name: string | null;
11477
- chainId: number;
11478
- address: string;
11479
- decimals: number;
11480
- symbol: string;
11481
- displaySymbol: string;
11482
- icon: string;
11483
- verified: boolean;
11484
- isTest: boolean;
11485
- type: import("@package/databases").TokenType;
11486
- isNative: boolean;
11487
- price: number | null;
11488
- updatedAt: number | null;
11489
- priceSource: string | null;
11818
+ distributionType: import("@package/databases").DistributionType;
11819
+ endTimestamp: bigint;
11820
+ startTimestamp: bigint;
11490
11821
  };
11491
- amount: string;
11822
+ } & {
11823
+ id: string;
11824
+ value: number;
11825
+ timestamp: bigint;
11492
11826
  campaignId: string;
11493
- distributionType: import("@package/databases").DistributionType;
11494
- endTimestamp: bigint;
11495
- startTimestamp: bigint;
11496
- };
11827
+ dailyRewardsRecordId: string;
11828
+ })[];
11497
11829
  } & {
11498
11830
  id: string;
11499
- value: number;
11500
11831
  timestamp: bigint;
11501
- campaignId: string;
11502
- dailyRewardsRecordId: string;
11832
+ total: number;
11833
+ opportunityId: string;
11503
11834
  })[];
11504
- } & {
11505
- id: string;
11506
- timestamp: bigint;
11507
- total: number;
11508
- opportunityId: string;
11509
- })[];
11510
- MainProtocol: {
11511
- id: string;
11512
- tags: string[];
11513
- name: string;
11514
- description: string;
11515
- url: string;
11516
- icon: string;
11517
- banner: string | null;
11518
- opportunityBannerLight: string | null;
11519
- opportunityBannerDark: string | null;
11520
- } | null;
11521
- NativeAprRecords: ({
11522
- RewardToken: {
11835
+ MainProtocol: {
11836
+ id: string;
11837
+ tags: string[];
11838
+ name: string;
11839
+ description: string;
11840
+ url: string;
11841
+ icon: string;
11842
+ banner: string | null;
11843
+ opportunityBannerLight: string | null;
11844
+ opportunityBannerDark: string | null;
11845
+ } | null;
11846
+ NativeAprRecords: ({
11847
+ RewardToken: {
11848
+ id: string;
11849
+ name: string | null;
11850
+ chainId: number;
11851
+ address: string;
11852
+ decimals: number;
11853
+ symbol: string;
11854
+ displaySymbol: string;
11855
+ icon: string;
11856
+ verified: boolean;
11857
+ isTest: boolean;
11858
+ type: import("@package/databases").TokenType;
11859
+ isNative: boolean;
11860
+ price: number | null;
11861
+ updatedAt: number | null;
11862
+ priceSource: string | null;
11863
+ } | null;
11864
+ } & {
11865
+ id: string;
11866
+ title: string;
11867
+ description: string | null;
11868
+ timestamp: bigint;
11869
+ value: number;
11870
+ amount: bigint | null;
11871
+ rewardTokenId: string | null;
11872
+ opportunityId: string;
11873
+ })[];
11874
+ Protocols: {
11875
+ id: string;
11876
+ tags: string[];
11877
+ name: string;
11878
+ description: string;
11879
+ url: string;
11880
+ icon: string;
11881
+ banner: string | null;
11882
+ opportunityBannerLight: string | null;
11883
+ opportunityBannerDark: string | null;
11884
+ }[];
11885
+ Tokens: {
11523
11886
  id: string;
11524
11887
  name: string | null;
11525
11888
  chainId: number;
@@ -11535,91 +11898,58 @@ declare const app: Elysia<"", {
11535
11898
  price: number | null;
11536
11899
  updatedAt: number | null;
11537
11900
  priceSource: string | null;
11538
- } | null;
11901
+ }[];
11902
+ TvlRecords: ({
11903
+ TvlBreakdown: {
11904
+ identifier: string;
11905
+ type: import("@package/databases").TvlType;
11906
+ value: number;
11907
+ }[];
11908
+ } & {
11909
+ id: string;
11910
+ timestamp: bigint;
11911
+ total: number;
11912
+ opportunityId: string;
11913
+ })[];
11539
11914
  } & {
11540
11915
  id: string;
11541
- title: string;
11542
- description: string | null;
11543
- timestamp: bigint;
11544
- value: number;
11545
- amount: bigint | null;
11546
- rewardTokenId: string | null;
11547
- opportunityId: string;
11548
- })[];
11549
- Protocols: {
11550
- id: string;
11551
- tags: string[];
11916
+ chainId: number;
11917
+ type: string;
11918
+ identifier: string;
11552
11919
  name: string;
11553
11920
  description: string;
11554
- url: string;
11555
- icon: string;
11556
- banner: string | null;
11557
- opportunityBannerLight: string | null;
11558
- opportunityBannerDark: string | null;
11559
- }[];
11560
- Tokens: {
11561
- id: string;
11562
- name: string | null;
11563
- chainId: number;
11564
- address: string;
11565
- decimals: number;
11566
- symbol: string;
11567
- displaySymbol: string;
11568
- icon: string;
11569
- verified: boolean;
11570
- isTest: boolean;
11571
- type: import("@package/databases").TokenType;
11572
- isNative: boolean;
11573
- price: number | null;
11574
- updatedAt: number | null;
11575
- priceSource: string | null;
11576
- }[];
11577
- TvlRecords: ({
11578
- TvlBreakdown: {
11921
+ howToSteps: string[];
11922
+ depositUrl: string | null;
11923
+ explorerAddress: string | null;
11924
+ status: import("@package/databases").Status;
11925
+ action: import("@package/databases").OpportunityAction;
11926
+ mainProtocolId: string | null;
11927
+ tvl: number;
11928
+ apr: number;
11929
+ nativeApr: number | null;
11930
+ maxApr: number | null;
11931
+ dailyRewards: number;
11932
+ tags: string[];
11933
+ lastCampaignCreatedAt: Date;
11934
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
11935
+ liveCampaigns: number;
11936
+ hidden: boolean;
11937
+ });
11938
+ tvl: {
11939
+ breakdowns: ({
11579
11940
  identifier: string;
11580
11941
  type: import("@package/databases").TvlType;
11581
11942
  value: number;
11582
- }[];
11583
- } & {
11584
- id: string;
11943
+ } & {})[];
11585
11944
  timestamp: bigint;
11586
11945
  total: number;
11587
- opportunityId: string;
11588
- })[];
11589
- } & {
11590
- id: string;
11591
- chainId: number;
11592
- type: string;
11593
- identifier: string;
11594
- name: string;
11595
- description: string;
11596
- howToSteps: string[];
11597
- depositUrl: string | null;
11598
- explorerAddress: string | null;
11599
- status: import("@package/databases").Status;
11600
- action: import("@package/databases").OpportunityAction;
11601
- mainProtocolId: string | null;
11602
- tvl: number;
11603
- apr: number;
11604
- nativeApr: number | null;
11605
- maxApr: number | null;
11606
- dailyRewards: number;
11607
- tags: string[];
11608
- lastCampaignCreatedAt: Date;
11609
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11610
- liveCampaigns: number;
11611
- });
11612
- tvl: {
11613
- breakdowns: ({
11614
- identifier: string;
11615
- type: import("@package/databases").TvlType;
11616
- value: number;
11617
- } & {})[];
11618
- timestamp: bigint;
11619
- total: number;
11620
- } & {};
11621
- name?: undefined;
11622
- }>;
11946
+ } & {};
11947
+ }>;
11948
+ errors: {
11949
+ campaignId: string;
11950
+ error: string;
11951
+ }[];
11952
+ };
11623
11953
  422: {
11624
11954
  type: "validation";
11625
11955
  on: string;
@@ -11649,147 +11979,181 @@ declare const app: Elysia<"", {
11649
11979
  authorization: string;
11650
11980
  };
11651
11981
  response: {
11652
- 200: Record<string, {
11653
- tvl?: undefined;
11654
- message: string;
11655
- name: string;
11656
- campaign?: undefined;
11657
- opportunity?: undefined;
11658
- } | {
11659
- message?: undefined;
11660
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11661
- opportunity: ({
11662
- chainId: number;
11663
- type: string;
11664
- identifier: string;
11665
- name?: string | undefined;
11666
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11667
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11668
- description?: string | undefined;
11669
- howToSteps?: string[] | undefined;
11670
- tokens: {
11671
- address: string;
11982
+ 200: {
11983
+ campaigns: Record<string, {
11984
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
11985
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11986
+ opportunity: ({
11672
11987
  chainId: number;
11673
- }[];
11674
- protocols?: string[] | undefined;
11675
- mainProtocol?: string | undefined;
11676
- depositUrl?: string | undefined;
11677
- explorerAddress?: string | undefined;
11678
- tags?: string[] | undefined;
11679
- } & {
11680
- id: string;
11681
- }) | ({
11682
- ActivePrograms: {
11683
- icon: string;
11684
- id: string;
11685
- name: string;
11686
- slug: string | null;
11687
- }[];
11688
- AprRecords: ({
11689
- AprBreakdown: {
11690
- identifier: string;
11691
- timestamp: bigint;
11692
- type: import("@package/databases").AprType;
11693
- value: number;
11988
+ type: string;
11989
+ identifier: string;
11990
+ name?: string | undefined;
11991
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
11992
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11993
+ description?: string | undefined;
11994
+ howToSteps?: string[] | undefined;
11995
+ tokens: {
11996
+ address: string;
11997
+ chainId: number;
11694
11998
  }[];
11999
+ protocols?: string[] | undefined;
12000
+ mainProtocol?: string | undefined;
12001
+ depositUrl?: string | undefined;
12002
+ explorerAddress?: string | undefined;
12003
+ tags?: string[] | undefined;
11695
12004
  } & {
11696
12005
  id: string;
11697
- timestamp: bigint;
11698
- cumulated: number;
11699
- opportunityId: string;
11700
- })[];
11701
- Campaigns: {
11702
- id: string;
11703
- computeChainId: number;
11704
- distributionChainId: number;
11705
- campaignId: string;
11706
- type: string;
11707
- distributionType: import("@package/databases").DistributionType;
11708
- subType: number | null;
11709
- rewardTokenId: string;
11710
- amount: string;
11711
- opportunityId: string;
11712
- startTimestamp: bigint;
11713
- endTimestamp: bigint;
11714
- params: import("@prisma/client/runtime/client").JsonValue;
11715
- description: string | null;
11716
- dailyRewards: number;
11717
- apr: number;
11718
- creatorAddress: string;
11719
- manualOverrides: import("@package/databases").CampaignManualOverride[];
11720
- createdAt: Date;
11721
- rootCampaignId: string | null;
11722
- parentCampaignId: string | null;
11723
- }[];
11724
- Chain: {
11725
- id: number;
11726
- name: string;
11727
- icon: string;
11728
- liveCampaigns: number;
11729
- endOfDisputePeriod: number;
11730
- };
11731
- DailyRewardsRecords: ({
11732
- DailyRewardsBreakdown: ({
11733
- Campaign: {
11734
- CampaignStatus: {
12006
+ }) | ({
12007
+ ActivePrograms: {
12008
+ icon: string;
12009
+ id: string;
12010
+ name: string;
12011
+ slug: string | null;
12012
+ }[];
12013
+ AprRecords: ({
12014
+ AprBreakdown: {
12015
+ identifier: string;
12016
+ timestamp: bigint;
12017
+ type: import("@package/databases").AprType;
12018
+ value: number;
12019
+ }[];
12020
+ } & {
12021
+ id: string;
12022
+ timestamp: bigint;
12023
+ cumulated: number;
12024
+ opportunityId: string;
12025
+ })[];
12026
+ Campaigns: {
12027
+ id: string;
12028
+ computeChainId: number;
12029
+ distributionChainId: number;
12030
+ campaignId: string;
12031
+ type: string;
12032
+ distributionType: import("@package/databases").DistributionType;
12033
+ subType: number | null;
12034
+ rewardTokenId: string;
12035
+ amount: string;
12036
+ opportunityId: string;
12037
+ startTimestamp: bigint;
12038
+ endTimestamp: bigint;
12039
+ params: import("@prisma/client/runtime/client").JsonValue;
12040
+ description: string | null;
12041
+ pauseCompute: boolean;
12042
+ dailyRewards: number;
12043
+ apr: number;
12044
+ creatorAddress: string;
12045
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
12046
+ createdAt: Date;
12047
+ rootCampaignId: string | null;
12048
+ parentCampaignId: string | null;
12049
+ }[];
12050
+ Chain: {
12051
+ id: number;
12052
+ name: string;
12053
+ icon: string;
12054
+ liveCampaigns: number;
12055
+ endOfDisputePeriod: number;
12056
+ };
12057
+ DailyRewardsRecords: ({
12058
+ DailyRewardsBreakdown: ({
12059
+ Campaign: {
12060
+ CampaignStatus: {
12061
+ campaignId: string;
12062
+ computedUntil: bigint;
12063
+ processingStarted: bigint;
12064
+ status: import("@package/databases").RunStatus;
12065
+ preComputeStatus: import("@package/databases").RunStatus;
12066
+ preComputeProcessingStarted: bigint;
12067
+ error: string;
12068
+ details: import("@prisma/client/runtime/client").JsonValue;
12069
+ }[];
12070
+ RewardToken: {
12071
+ id: string;
12072
+ name: string | null;
12073
+ chainId: number;
12074
+ address: string;
12075
+ decimals: number;
12076
+ symbol: string;
12077
+ displaySymbol: string;
12078
+ icon: string;
12079
+ verified: boolean;
12080
+ isTest: boolean;
12081
+ type: import("@package/databases").TokenType;
12082
+ isNative: boolean;
12083
+ price: number | null;
12084
+ updatedAt: number | null;
12085
+ priceSource: string | null;
12086
+ };
12087
+ amount: string;
11735
12088
  campaignId: string;
11736
- computedUntil: bigint;
11737
- processingStarted: bigint;
11738
- status: import("@package/databases").RunStatus;
11739
- preComputeStatus: import("@package/databases").RunStatus;
11740
- preComputeProcessingStarted: bigint;
11741
- error: string;
11742
- details: import("@prisma/client/runtime/client").JsonValue;
11743
- }[];
11744
- RewardToken: {
11745
- id: string;
11746
- name: string | null;
11747
- chainId: number;
11748
- address: string;
11749
- decimals: number;
11750
- symbol: string;
11751
- displaySymbol: string;
11752
- icon: string;
11753
- verified: boolean;
11754
- isTest: boolean;
11755
- type: import("@package/databases").TokenType;
11756
- isNative: boolean;
11757
- price: number | null;
11758
- updatedAt: number | null;
11759
- priceSource: string | null;
12089
+ distributionType: import("@package/databases").DistributionType;
12090
+ endTimestamp: bigint;
12091
+ startTimestamp: bigint;
11760
12092
  };
11761
- amount: string;
12093
+ } & {
12094
+ id: string;
12095
+ value: number;
12096
+ timestamp: bigint;
11762
12097
  campaignId: string;
11763
- distributionType: import("@package/databases").DistributionType;
11764
- endTimestamp: bigint;
11765
- startTimestamp: bigint;
11766
- };
12098
+ dailyRewardsRecordId: string;
12099
+ })[];
11767
12100
  } & {
11768
12101
  id: string;
11769
- value: number;
11770
12102
  timestamp: bigint;
11771
- campaignId: string;
11772
- dailyRewardsRecordId: string;
12103
+ total: number;
12104
+ opportunityId: string;
11773
12105
  })[];
11774
- } & {
11775
- id: string;
11776
- timestamp: bigint;
11777
- total: number;
11778
- opportunityId: string;
11779
- })[];
11780
- MainProtocol: {
11781
- id: string;
11782
- tags: string[];
11783
- name: string;
11784
- description: string;
11785
- url: string;
11786
- icon: string;
11787
- banner: string | null;
11788
- opportunityBannerLight: string | null;
11789
- opportunityBannerDark: string | null;
11790
- } | null;
11791
- NativeAprRecords: ({
11792
- RewardToken: {
12106
+ MainProtocol: {
12107
+ id: string;
12108
+ tags: string[];
12109
+ name: string;
12110
+ description: string;
12111
+ url: string;
12112
+ icon: string;
12113
+ banner: string | null;
12114
+ opportunityBannerLight: string | null;
12115
+ opportunityBannerDark: string | null;
12116
+ } | null;
12117
+ NativeAprRecords: ({
12118
+ RewardToken: {
12119
+ id: string;
12120
+ name: string | null;
12121
+ chainId: number;
12122
+ address: string;
12123
+ decimals: number;
12124
+ symbol: string;
12125
+ displaySymbol: string;
12126
+ icon: string;
12127
+ verified: boolean;
12128
+ isTest: boolean;
12129
+ type: import("@package/databases").TokenType;
12130
+ isNative: boolean;
12131
+ price: number | null;
12132
+ updatedAt: number | null;
12133
+ priceSource: string | null;
12134
+ } | null;
12135
+ } & {
12136
+ id: string;
12137
+ title: string;
12138
+ description: string | null;
12139
+ timestamp: bigint;
12140
+ value: number;
12141
+ amount: bigint | null;
12142
+ rewardTokenId: string | null;
12143
+ opportunityId: string;
12144
+ })[];
12145
+ Protocols: {
12146
+ id: string;
12147
+ tags: string[];
12148
+ name: string;
12149
+ description: string;
12150
+ url: string;
12151
+ icon: string;
12152
+ banner: string | null;
12153
+ opportunityBannerLight: string | null;
12154
+ opportunityBannerDark: string | null;
12155
+ }[];
12156
+ Tokens: {
11793
12157
  id: string;
11794
12158
  name: string | null;
11795
12159
  chainId: number;
@@ -11805,91 +12169,58 @@ declare const app: Elysia<"", {
11805
12169
  price: number | null;
11806
12170
  updatedAt: number | null;
11807
12171
  priceSource: string | null;
11808
- } | null;
12172
+ }[];
12173
+ TvlRecords: ({
12174
+ TvlBreakdown: {
12175
+ identifier: string;
12176
+ type: import("@package/databases").TvlType;
12177
+ value: number;
12178
+ }[];
12179
+ } & {
12180
+ id: string;
12181
+ timestamp: bigint;
12182
+ total: number;
12183
+ opportunityId: string;
12184
+ })[];
11809
12185
  } & {
11810
12186
  id: string;
11811
- title: string;
11812
- description: string | null;
11813
- timestamp: bigint;
11814
- value: number;
11815
- amount: bigint | null;
11816
- rewardTokenId: string | null;
11817
- opportunityId: string;
11818
- })[];
11819
- Protocols: {
11820
- id: string;
11821
- tags: string[];
12187
+ chainId: number;
12188
+ type: string;
12189
+ identifier: string;
11822
12190
  name: string;
11823
12191
  description: string;
11824
- url: string;
11825
- icon: string;
11826
- banner: string | null;
11827
- opportunityBannerLight: string | null;
11828
- opportunityBannerDark: string | null;
11829
- }[];
11830
- Tokens: {
11831
- id: string;
11832
- name: string | null;
11833
- chainId: number;
11834
- address: string;
11835
- decimals: number;
11836
- symbol: string;
11837
- displaySymbol: string;
11838
- icon: string;
11839
- verified: boolean;
11840
- isTest: boolean;
11841
- type: import("@package/databases").TokenType;
11842
- isNative: boolean;
11843
- price: number | null;
11844
- updatedAt: number | null;
11845
- priceSource: string | null;
11846
- }[];
11847
- TvlRecords: ({
11848
- TvlBreakdown: {
12192
+ howToSteps: string[];
12193
+ depositUrl: string | null;
12194
+ explorerAddress: string | null;
12195
+ status: import("@package/databases").Status;
12196
+ action: import("@package/databases").OpportunityAction;
12197
+ mainProtocolId: string | null;
12198
+ tvl: number;
12199
+ apr: number;
12200
+ nativeApr: number | null;
12201
+ maxApr: number | null;
12202
+ dailyRewards: number;
12203
+ tags: string[];
12204
+ lastCampaignCreatedAt: Date;
12205
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
12206
+ liveCampaigns: number;
12207
+ hidden: boolean;
12208
+ });
12209
+ tvl: {
12210
+ breakdowns: ({
11849
12211
  identifier: string;
11850
12212
  type: import("@package/databases").TvlType;
11851
12213
  value: number;
11852
- }[];
11853
- } & {
11854
- id: string;
12214
+ } & {})[];
11855
12215
  timestamp: bigint;
11856
12216
  total: number;
11857
- opportunityId: string;
11858
- })[];
11859
- } & {
11860
- id: string;
11861
- chainId: number;
11862
- type: string;
11863
- identifier: string;
11864
- name: string;
11865
- description: string;
11866
- howToSteps: string[];
11867
- depositUrl: string | null;
11868
- explorerAddress: string | null;
11869
- status: import("@package/databases").Status;
11870
- action: import("@package/databases").OpportunityAction;
11871
- mainProtocolId: string | null;
11872
- tvl: number;
11873
- apr: number;
11874
- nativeApr: number | null;
11875
- maxApr: number | null;
11876
- dailyRewards: number;
11877
- tags: string[];
11878
- lastCampaignCreatedAt: Date;
11879
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11880
- liveCampaigns: number;
11881
- });
11882
- tvl: {
11883
- breakdowns: ({
11884
- identifier: string;
11885
- type: import("@package/databases").TvlType;
11886
- value: number;
11887
- } & {})[];
11888
- timestamp: bigint;
11889
- total: number;
11890
- } & {};
11891
- name?: undefined;
11892
- }>;
12217
+ } & {};
12218
+ }>;
12219
+ errors: {
12220
+ campaignId: string;
12221
+ error: string;
12222
+ }[];
12223
+ };
11893
12224
  422: {
11894
12225
  type: "validation";
11895
12226
  on: string;
@@ -14121,6 +14452,7 @@ declare const app: Elysia<"", {
14121
14452
  liveCampaignsForCreator?: number | undefined;
14122
14453
  distributedBycreator?: number | undefined;
14123
14454
  nativeApr?: number | undefined;
14455
+ hidden?: true | undefined;
14124
14456
  protocol?: ({
14125
14457
  banner: string | null;
14126
14458
  description: string;
@@ -14333,6 +14665,7 @@ declare const app: Elysia<"", {
14333
14665
  mainProtocolId?: string | undefined;
14334
14666
  liveCampaignsForCreator?: number | undefined;
14335
14667
  nativeApr?: number | undefined;
14668
+ hidden?: true | undefined;
14336
14669
  }) | undefined;
14337
14670
  dailyRewards?: number | undefined;
14338
14671
  apr?: number | undefined;
@@ -14340,6 +14673,7 @@ declare const app: Elysia<"", {
14340
14673
  childCampaignIds?: string[] | undefined;
14341
14674
  rootCampaignId?: string | undefined;
14342
14675
  parentCampaignId?: string | undefined;
14676
+ pauseCompute?: true | undefined;
14343
14677
  }, "manualOverrides">[] | undefined;
14344
14678
  };
14345
14679
  }[]>>>;
@@ -14452,6 +14786,7 @@ declare const app: Elysia<"", {
14452
14786
  liveCampaignsForCreator?: number | undefined;
14453
14787
  distributedBycreator?: number | undefined;
14454
14788
  nativeApr?: number | undefined;
14789
+ hidden?: true | undefined;
14455
14790
  protocol?: ({
14456
14791
  banner: string | null;
14457
14792
  description: string;
@@ -14664,6 +14999,7 @@ declare const app: Elysia<"", {
14664
14999
  mainProtocolId?: string | undefined;
14665
15000
  liveCampaignsForCreator?: number | undefined;
14666
15001
  nativeApr?: number | undefined;
15002
+ hidden?: true | undefined;
14667
15003
  }) | undefined;
14668
15004
  dailyRewards?: number | undefined;
14669
15005
  apr?: number | undefined;
@@ -14671,6 +15007,7 @@ declare const app: Elysia<"", {
14671
15007
  childCampaignIds?: string[] | undefined;
14672
15008
  rootCampaignId?: string | undefined;
14673
15009
  parentCampaignId?: string | undefined;
15010
+ pauseCompute?: true | undefined;
14674
15011
  }, "manualOverrides">[] | undefined;
14675
15012
  };
14676
15013
  }[]>>>;
@@ -15939,6 +16276,7 @@ declare const app: Elysia<"", {
15939
16276
  lastCampaignCreatedAt: Date;
15940
16277
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
15941
16278
  liveCampaigns: number;
16279
+ hidden: boolean;
15942
16280
  };
15943
16281
  }[];
15944
16282
  claimed: bigint;
@@ -16064,6 +16402,7 @@ declare const app: Elysia<"", {
16064
16402
  lastCampaignCreatedAt: Date;
16065
16403
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
16066
16404
  liveCampaigns: number;
16405
+ hidden: boolean;
16067
16406
  };
16068
16407
  }[];
16069
16408
  claimed: bigint;
@@ -16128,6 +16467,7 @@ declare const app: Elysia<"", {
16128
16467
  liveCampaignsForCreator?: number | undefined;
16129
16468
  distributedBycreator?: number | undefined;
16130
16469
  nativeApr?: number | undefined;
16470
+ hidden?: true | undefined;
16131
16471
  protocol?: ({
16132
16472
  banner: string | null;
16133
16473
  description: string;
@@ -16340,6 +16680,7 @@ declare const app: Elysia<"", {
16340
16680
  mainProtocolId?: string | undefined;
16341
16681
  liveCampaignsForCreator?: number | undefined;
16342
16682
  nativeApr?: number | undefined;
16683
+ hidden?: true | undefined;
16343
16684
  }) | undefined;
16344
16685
  dailyRewards?: number | undefined;
16345
16686
  apr?: number | undefined;
@@ -16347,6 +16688,7 @@ declare const app: Elysia<"", {
16347
16688
  childCampaignIds?: string[] | undefined;
16348
16689
  rootCampaignId?: string | undefined;
16349
16690
  parentCampaignId?: string | undefined;
16691
+ pauseCompute?: true | undefined;
16350
16692
  }, "manualOverrides">[] | undefined;
16351
16693
  };
16352
16694
  claimed: bigint;