@merkl/api 1.5.9 → 1.5.10

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 (39) hide show
  1. package/dist/src/eden/index.d.ts +304 -199
  2. package/dist/src/index.d.ts +304 -199
  3. package/dist/src/jobs/update-dynamic-data.js.map +1 -1
  4. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +0 -28
  5. package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
  6. package/dist/src/modules/v4/campaign/campaign.model.d.ts +0 -9
  7. package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
  8. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +12 -66
  9. package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -5
  10. package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
  11. package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.d.ts +0 -2
  12. package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.d.ts +0 -3
  13. package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +0 -3
  14. package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.d.ts +0 -6
  15. package/dist/src/modules/v4/campaignGroup/campaignGroup.service.d.ts +0 -6
  16. package/dist/src/modules/v4/carousel/carousel.controller.d.ts +208 -48
  17. package/dist/src/modules/v4/carousel/carousel.repository.d.ts +219 -74
  18. package/dist/src/modules/v4/carousel/carousel.repository.js.map +1 -1
  19. package/dist/src/modules/v4/carousel/carousel.service.d.ts +257 -72
  20. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -28
  21. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -14
  22. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +2 -24
  23. package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
  24. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -7
  25. package/dist/src/modules/v4/program/program.controller.d.ts +96 -72
  26. package/dist/src/modules/v4/program/program.formatter.d.ts +4 -1
  27. package/dist/src/modules/v4/program/program.formatter.js.map +1 -1
  28. package/dist/src/modules/v4/program/program.model.d.ts +6 -4
  29. package/dist/src/modules/v4/program/program.model.js.map +1 -1
  30. package/dist/src/modules/v4/program/program.repository.d.ts +306 -82
  31. package/dist/src/modules/v4/program/program.repository.js.map +1 -1
  32. package/dist/src/modules/v4/program/program.service.d.ts +90 -68
  33. package/dist/src/modules/v4/program/program.service.js.map +1 -1
  34. package/dist/src/modules/v4/reward/reward.service.d.ts +0 -7
  35. package/dist/src/modules/v4/router.d.ts +304 -199
  36. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +0 -14
  37. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +0 -7
  38. package/dist/src/modules/v4/user/user.controller.d.ts +0 -7
  39. package/package.json +1 -1
@@ -1368,7 +1368,6 @@ declare const eden: {
1368
1368
  } & {
1369
1369
  id: string;
1370
1370
  slug: string | null;
1371
- programId: string | null;
1372
1371
  };
1373
1372
  } & {
1374
1373
  id: string;
@@ -1425,7 +1424,6 @@ declare const eden: {
1425
1424
  } & {
1426
1425
  id: string;
1427
1426
  slug: string | null;
1428
- programId: string | null;
1429
1427
  };
1430
1428
  } & {
1431
1429
  id: string;
@@ -1976,13 +1974,6 @@ declare const eden: {
1976
1974
  rootCampaignId?: string | undefined;
1977
1975
  parentCampaignId?: string | undefined;
1978
1976
  childCampaignIds?: string[] | undefined;
1979
- program: {
1980
- id: string;
1981
- slug: string | null;
1982
- name: string;
1983
- description?: string | undefined;
1984
- icon?: string | undefined;
1985
- } | null;
1986
1977
  dailyRewardsBreakdown?: {
1987
1978
  campaignId: string;
1988
1979
  value: number;
@@ -2104,13 +2095,6 @@ declare const eden: {
2104
2095
  opportunityId?: string | undefined;
2105
2096
  params: any;
2106
2097
  parentCampaignId?: string | undefined;
2107
- program: {
2108
- id: string;
2109
- slug: string | null;
2110
- name: string;
2111
- description?: string | undefined;
2112
- icon?: string | undefined;
2113
- } | null;
2114
2098
  rewardToken: {
2115
2099
  id: string;
2116
2100
  name: string | null;
@@ -2778,13 +2762,6 @@ declare const eden: {
2778
2762
  rootCampaignId?: string | undefined;
2779
2763
  parentCampaignId?: string | undefined;
2780
2764
  childCampaignIds?: string[] | undefined;
2781
- program: {
2782
- id: string;
2783
- slug: string | null;
2784
- name: string;
2785
- description?: string | undefined;
2786
- icon?: string | undefined;
2787
- } | null;
2788
2765
  dailyRewardsBreakdown?: {
2789
2766
  campaignId: string;
2790
2767
  value: number;
@@ -2906,13 +2883,6 @@ declare const eden: {
2906
2883
  opportunityId?: string | undefined;
2907
2884
  params: any;
2908
2885
  parentCampaignId?: string | undefined;
2909
- program: {
2910
- id: string;
2911
- slug: string | null;
2912
- name: string;
2913
- description?: string | undefined;
2914
- icon?: string | undefined;
2915
- } | null;
2916
2886
  rewardToken: {
2917
2887
  id: string;
2918
2888
  name: string | null;
@@ -4801,6 +4771,28 @@ declare const eden: {
4801
4771
  slug?: string | undefined;
4802
4772
  description: string;
4803
4773
  icon: string;
4774
+ dailyRewards?: number | undefined;
4775
+ liveCampaigns?: number | undefined;
4776
+ opportunities: {
4777
+ id: string;
4778
+ type: string;
4779
+ identifier: string;
4780
+ name?: string | undefined;
4781
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
4782
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
4783
+ description?: string | undefined;
4784
+ howToSteps?: string[] | undefined;
4785
+ protocols?: string[] | undefined;
4786
+ mainProtocol?: string | undefined;
4787
+ depositUrl?: string | undefined;
4788
+ explorerAddress?: string | undefined;
4789
+ tags?: string[] | undefined;
4790
+ chainId: number;
4791
+ apr?: number | undefined;
4792
+ dailyRewards?: number | undefined;
4793
+ tvl?: number | undefined;
4794
+ liveCampaigns?: number | undefined;
4795
+ }[];
4804
4796
  } | undefined;
4805
4797
  chain?: {
4806
4798
  id: number;
@@ -5023,34 +5015,81 @@ declare const eden: {
5023
5015
  liveCampaigns: number;
5024
5016
  }) | null;
5025
5017
  Program: ({
5026
- campaignGroup: ({
5027
- campaigns: {
5018
+ Opportunity: ({
5019
+ ActivePrograms: {
5028
5020
  id: string;
5029
- computeChainId: number;
5030
- distributionChainId: number;
5031
- campaignId: string;
5032
- type: string;
5033
- distributionType: import("@package/databases").DistributionType;
5034
- subType: number | null;
5035
- rewardTokenId: string;
5036
- amount: string;
5037
- opportunityId: string;
5038
- startTimestamp: bigint;
5039
- endTimestamp: bigint;
5040
- params: import("@prisma/client/runtime/client").JsonValue;
5041
- description: string | null;
5042
- dailyRewards: number;
5043
- apr: number;
5044
- creatorAddress: string;
5045
- manualOverrides: import("@package/databases").CampaignManualOverride[];
5046
- createdAt: Date;
5047
- rootCampaignId: string | null;
5048
- parentCampaignId: string | null;
5021
+ slug: string | null;
5022
+ name: string;
5023
+ description: string;
5024
+ icon: string;
5025
+ }[];
5026
+ Chain: {
5027
+ id: number;
5028
+ name: string;
5029
+ icon: string;
5030
+ liveCampaigns: number;
5031
+ endOfDisputePeriod: number;
5032
+ };
5033
+ MainProtocol: {
5034
+ id: string;
5035
+ tags: string[];
5036
+ name: string;
5037
+ description: string;
5038
+ url: string;
5039
+ icon: string;
5040
+ banner: string | null;
5041
+ opportunityBannerLight: string | null;
5042
+ opportunityBannerDark: string | null;
5043
+ } | null;
5044
+ Protocols: {
5045
+ id: string;
5046
+ tags: string[];
5047
+ name: string;
5048
+ description: string;
5049
+ url: string;
5050
+ icon: string;
5051
+ banner: string | null;
5052
+ opportunityBannerLight: string | null;
5053
+ opportunityBannerDark: string | null;
5054
+ }[];
5055
+ Tokens: {
5056
+ id: string;
5057
+ name: string | null;
5058
+ chainId: number;
5059
+ address: string;
5060
+ decimals: number;
5061
+ symbol: string;
5062
+ displaySymbol: string;
5063
+ icon: string;
5064
+ verified: boolean;
5065
+ isTest: boolean;
5066
+ type: import("@package/databases").TokenType;
5067
+ isNative: boolean;
5068
+ price: number | null;
5069
+ updatedAt: number | null;
5070
+ priceSource: string | null;
5049
5071
  }[];
5050
5072
  } & {
5051
5073
  id: string;
5052
- slug: string | null;
5053
- programId: string | null;
5074
+ chainId: number;
5075
+ type: string;
5076
+ identifier: string;
5077
+ name: string;
5078
+ description: string;
5079
+ howToSteps: string[];
5080
+ depositUrl: string | null;
5081
+ explorerAddress: string | null;
5082
+ status: import("@package/databases").Status;
5083
+ action: import("@package/databases").OpportunityAction;
5084
+ mainProtocolId: string | null;
5085
+ tvl: number;
5086
+ apr: number;
5087
+ maxApr: number | null;
5088
+ dailyRewards: number;
5089
+ tags: string[];
5090
+ lastCampaignCreatedAt: Date;
5091
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
5092
+ liveCampaigns: number;
5054
5093
  })[];
5055
5094
  } & {
5056
5095
  id: string;
@@ -5143,6 +5182,28 @@ declare const eden: {
5143
5182
  slug?: string | undefined;
5144
5183
  description: string;
5145
5184
  icon: string;
5185
+ dailyRewards?: number | undefined;
5186
+ liveCampaigns?: number | undefined;
5187
+ opportunities: {
5188
+ id: string;
5189
+ type: string;
5190
+ identifier: string;
5191
+ name?: string | undefined;
5192
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
5193
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
5194
+ description?: string | undefined;
5195
+ howToSteps?: string[] | undefined;
5196
+ protocols?: string[] | undefined;
5197
+ mainProtocol?: string | undefined;
5198
+ depositUrl?: string | undefined;
5199
+ explorerAddress?: string | undefined;
5200
+ tags?: string[] | undefined;
5201
+ chainId: number;
5202
+ apr?: number | undefined;
5203
+ dailyRewards?: number | undefined;
5204
+ tvl?: number | undefined;
5205
+ liveCampaigns?: number | undefined;
5206
+ }[];
5146
5207
  } | undefined;
5147
5208
  chain?: {
5148
5209
  id: number;
@@ -5309,34 +5370,81 @@ declare const eden: {
5309
5370
  liveCampaigns: number;
5310
5371
  }) | null;
5311
5372
  Program: ({
5312
- campaignGroup: ({
5313
- campaigns: {
5373
+ Opportunity: ({
5374
+ ActivePrograms: {
5314
5375
  id: string;
5315
- computeChainId: number;
5316
- distributionChainId: number;
5317
- campaignId: string;
5318
- type: string;
5319
- distributionType: import("@package/databases").DistributionType;
5320
- subType: number | null;
5321
- rewardTokenId: string;
5322
- amount: string;
5323
- opportunityId: string;
5324
- startTimestamp: bigint;
5325
- endTimestamp: bigint;
5326
- params: import("@prisma/client/runtime/client").JsonValue;
5327
- description: string | null;
5328
- dailyRewards: number;
5329
- apr: number;
5330
- creatorAddress: string;
5331
- manualOverrides: import("@package/databases").CampaignManualOverride[];
5332
- createdAt: Date;
5333
- rootCampaignId: string | null;
5334
- parentCampaignId: string | null;
5376
+ slug: string | null;
5377
+ name: string;
5378
+ description: string;
5379
+ icon: string;
5380
+ }[];
5381
+ Chain: {
5382
+ id: number;
5383
+ name: string;
5384
+ icon: string;
5385
+ liveCampaigns: number;
5386
+ endOfDisputePeriod: number;
5387
+ };
5388
+ MainProtocol: {
5389
+ id: string;
5390
+ tags: string[];
5391
+ name: string;
5392
+ description: string;
5393
+ url: string;
5394
+ icon: string;
5395
+ banner: string | null;
5396
+ opportunityBannerLight: string | null;
5397
+ opportunityBannerDark: string | null;
5398
+ } | null;
5399
+ Protocols: {
5400
+ id: string;
5401
+ tags: string[];
5402
+ name: string;
5403
+ description: string;
5404
+ url: string;
5405
+ icon: string;
5406
+ banner: string | null;
5407
+ opportunityBannerLight: string | null;
5408
+ opportunityBannerDark: string | null;
5409
+ }[];
5410
+ Tokens: {
5411
+ id: string;
5412
+ name: string | null;
5413
+ chainId: number;
5414
+ address: string;
5415
+ decimals: number;
5416
+ symbol: string;
5417
+ displaySymbol: string;
5418
+ icon: string;
5419
+ verified: boolean;
5420
+ isTest: boolean;
5421
+ type: import("@package/databases").TokenType;
5422
+ isNative: boolean;
5423
+ price: number | null;
5424
+ updatedAt: number | null;
5425
+ priceSource: string | null;
5335
5426
  }[];
5336
5427
  } & {
5337
5428
  id: string;
5338
- slug: string | null;
5339
- programId: string | null;
5429
+ chainId: number;
5430
+ type: string;
5431
+ identifier: string;
5432
+ name: string;
5433
+ description: string;
5434
+ howToSteps: string[];
5435
+ depositUrl: string | null;
5436
+ explorerAddress: string | null;
5437
+ status: import("@package/databases").Status;
5438
+ action: import("@package/databases").OpportunityAction;
5439
+ mainProtocolId: string | null;
5440
+ tvl: number;
5441
+ apr: number;
5442
+ maxApr: number | null;
5443
+ dailyRewards: number;
5444
+ tags: string[];
5445
+ lastCampaignCreatedAt: Date;
5446
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
5447
+ liveCampaigns: number;
5340
5448
  })[];
5341
5449
  } & {
5342
5450
  id: string;
@@ -5450,6 +5558,28 @@ declare const eden: {
5450
5558
  slug?: string | undefined;
5451
5559
  description: string;
5452
5560
  icon: string;
5561
+ dailyRewards?: number | undefined;
5562
+ liveCampaigns?: number | undefined;
5563
+ opportunities: {
5564
+ id: string;
5565
+ type: string;
5566
+ identifier: string;
5567
+ name?: string | undefined;
5568
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
5569
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
5570
+ description?: string | undefined;
5571
+ howToSteps?: string[] | undefined;
5572
+ protocols?: string[] | undefined;
5573
+ mainProtocol?: string | undefined;
5574
+ depositUrl?: string | undefined;
5575
+ explorerAddress?: string | undefined;
5576
+ tags?: string[] | undefined;
5577
+ chainId: number;
5578
+ apr?: number | undefined;
5579
+ dailyRewards?: number | undefined;
5580
+ tvl?: number | undefined;
5581
+ liveCampaigns?: number | undefined;
5582
+ }[];
5453
5583
  } | undefined;
5454
5584
  chain?: {
5455
5585
  id: number;
@@ -7132,13 +7262,6 @@ declare const eden: {
7132
7262
  rootCampaignId?: string | undefined;
7133
7263
  parentCampaignId?: string | undefined;
7134
7264
  childCampaignIds?: string[] | undefined;
7135
- program: {
7136
- id: string;
7137
- slug: string | null;
7138
- name: string;
7139
- description?: string | undefined;
7140
- icon?: string | undefined;
7141
- } | null;
7142
7265
  dailyRewardsBreakdown?: {
7143
7266
  campaignId: string;
7144
7267
  value: number;
@@ -7531,13 +7654,6 @@ declare const eden: {
7531
7654
  rootCampaignId?: string | undefined;
7532
7655
  parentCampaignId?: string | undefined;
7533
7656
  childCampaignIds?: string[] | undefined;
7534
- program: {
7535
- id: string;
7536
- slug: string | null;
7537
- name: string;
7538
- description?: string | undefined;
7539
- icon?: string | undefined;
7540
- } | null;
7541
7657
  dailyRewardsBreakdown?: {
7542
7658
  campaignId: string;
7543
7659
  value: number;
@@ -8091,13 +8207,6 @@ declare const eden: {
8091
8207
  rootCampaignId?: string | undefined;
8092
8208
  parentCampaignId?: string | undefined;
8093
8209
  childCampaignIds?: string[] | undefined;
8094
- program: {
8095
- id: string;
8096
- slug: string | null;
8097
- name: string;
8098
- description?: string | undefined;
8099
- icon?: string | undefined;
8100
- } | null;
8101
8210
  dailyRewardsBreakdown?: {
8102
8211
  campaignId: string;
8103
8212
  value: number;
@@ -8649,13 +8758,6 @@ declare const eden: {
8649
8758
  rootCampaignId?: string | undefined;
8650
8759
  parentCampaignId?: string | undefined;
8651
8760
  childCampaignIds?: string[] | undefined;
8652
- program: {
8653
- id: string;
8654
- slug: string | null;
8655
- name: string;
8656
- description?: string | undefined;
8657
- icon?: string | undefined;
8658
- } | null;
8659
8761
  dailyRewardsBreakdown?: {
8660
8762
  campaignId: string;
8661
8763
  value: number;
@@ -31529,6 +31631,28 @@ declare const eden: {
31529
31631
  slug?: string | undefined;
31530
31632
  description: string;
31531
31633
  icon: string;
31634
+ dailyRewards?: number | undefined;
31635
+ liveCampaigns?: number | undefined;
31636
+ opportunities: {
31637
+ id: string;
31638
+ type: string;
31639
+ identifier: string;
31640
+ name?: string | undefined;
31641
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
31642
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
31643
+ description?: string | undefined;
31644
+ howToSteps?: string[] | undefined;
31645
+ protocols?: string[] | undefined;
31646
+ mainProtocol?: string | undefined;
31647
+ depositUrl?: string | undefined;
31648
+ explorerAddress?: string | undefined;
31649
+ tags?: string[] | undefined;
31650
+ chainId: number;
31651
+ apr?: number | undefined;
31652
+ dailyRewards?: number | undefined;
31653
+ tvl?: number | undefined;
31654
+ liveCampaigns?: number | undefined;
31655
+ }[];
31532
31656
  };
31533
31657
  422: {
31534
31658
  type: "validation";
@@ -31542,8 +31666,11 @@ declare const eden: {
31542
31666
  }>>;
31543
31667
  patch: (body: {
31544
31668
  slug?: string | undefined;
31545
- campaignsToAdd?: string[] | undefined;
31546
- campaignsToRemove?: string[] | undefined;
31669
+ description?: string | undefined;
31670
+ name?: string | undefined;
31671
+ icon?: string | undefined;
31672
+ opportunitiesToAdd?: string[] | undefined;
31673
+ opportunitiesToRemove?: string[] | undefined;
31547
31674
  }, options: {
31548
31675
  fetch?: RequestInit | undefined;
31549
31676
  headers: {
@@ -31552,17 +31679,33 @@ declare const eden: {
31552
31679
  query?: Record<string, unknown> | undefined;
31553
31680
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
31554
31681
  200: {
31555
- campaignGroup: {
31556
- id: string;
31557
- slug: string | null;
31558
- programId: string | null;
31559
- }[];
31560
- } & {
31561
31682
  id: string;
31562
- slug: string | null;
31563
31683
  name: string;
31684
+ slug?: string | undefined;
31564
31685
  description: string;
31565
31686
  icon: string;
31687
+ dailyRewards?: number | undefined;
31688
+ liveCampaigns?: number | undefined;
31689
+ opportunities: {
31690
+ id: string;
31691
+ type: string;
31692
+ identifier: string;
31693
+ name?: string | undefined;
31694
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
31695
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
31696
+ description?: string | undefined;
31697
+ howToSteps?: string[] | undefined;
31698
+ protocols?: string[] | undefined;
31699
+ mainProtocol?: string | undefined;
31700
+ depositUrl?: string | undefined;
31701
+ explorerAddress?: string | undefined;
31702
+ tags?: string[] | undefined;
31703
+ chainId: number;
31704
+ apr?: number | undefined;
31705
+ dailyRewards?: number | undefined;
31706
+ tvl?: number | undefined;
31707
+ liveCampaigns?: number | undefined;
31708
+ }[];
31566
31709
  };
31567
31710
  422: {
31568
31711
  type: "validation";
@@ -31586,64 +31729,32 @@ declare const eden: {
31586
31729
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
31587
31730
  200: {
31588
31731
  id: string;
31589
- slug: string | null;
31590
31732
  name: string;
31733
+ slug?: string | undefined;
31591
31734
  description: string;
31592
31735
  icon: string;
31593
- liveCampaigns: number;
31594
- dailyRewards: number;
31595
- campaignGroup: ({
31596
- campaigns: ({
31597
- Opportunity: {
31598
- id: string;
31599
- chainId: number;
31600
- type: string;
31601
- identifier: string;
31602
- name: string;
31603
- description: string;
31604
- howToSteps: string[];
31605
- depositUrl: string | null;
31606
- explorerAddress: string | null;
31607
- status: import("@package/databases").Status;
31608
- action: import("@package/databases").OpportunityAction;
31609
- mainProtocolId: string | null;
31610
- tvl: number;
31611
- apr: number;
31612
- maxApr: number | null;
31613
- dailyRewards: number;
31614
- tags: string[];
31615
- lastCampaignCreatedAt: Date;
31616
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
31617
- liveCampaigns: number;
31618
- };
31619
- } & {
31620
- id: string;
31621
- computeChainId: number;
31622
- distributionChainId: number;
31623
- campaignId: string;
31624
- type: string;
31625
- distributionType: import("@package/databases").DistributionType;
31626
- subType: number | null;
31627
- rewardTokenId: string;
31628
- amount: string;
31629
- opportunityId: string;
31630
- startTimestamp: bigint;
31631
- endTimestamp: bigint;
31632
- params: import("@prisma/client/runtime/client").JsonValue;
31633
- description: string | null;
31634
- dailyRewards: number;
31635
- apr: number;
31636
- creatorAddress: string;
31637
- manualOverrides: import("@package/databases").CampaignManualOverride[];
31638
- createdAt: Date;
31639
- rootCampaignId: string | null;
31640
- parentCampaignId: string | null;
31641
- })[];
31642
- } & {
31736
+ dailyRewards?: number | undefined;
31737
+ liveCampaigns?: number | undefined;
31738
+ opportunities: {
31643
31739
  id: string;
31644
- slug: string | null;
31645
- programId: string | null;
31646
- })[];
31740
+ type: string;
31741
+ identifier: string;
31742
+ name?: string | undefined;
31743
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
31744
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
31745
+ description?: string | undefined;
31746
+ howToSteps?: string[] | undefined;
31747
+ protocols?: string[] | undefined;
31748
+ mainProtocol?: string | undefined;
31749
+ depositUrl?: string | undefined;
31750
+ explorerAddress?: string | undefined;
31751
+ tags?: string[] | undefined;
31752
+ chainId: number;
31753
+ apr?: number | undefined;
31754
+ dailyRewards?: number | undefined;
31755
+ tvl?: number | undefined;
31756
+ liveCampaigns?: number | undefined;
31757
+ }[];
31647
31758
  }[];
31648
31759
  422: {
31649
31760
  type: "validation";
@@ -31660,8 +31771,7 @@ declare const eden: {
31660
31771
  name: string;
31661
31772
  description?: string | undefined;
31662
31773
  icon?: string | undefined;
31663
- groupSlug?: string | undefined;
31664
- campaigns?: string[] | undefined;
31774
+ opportunities?: string[] | undefined;
31665
31775
  }, options: {
31666
31776
  fetch?: RequestInit | undefined;
31667
31777
  headers: {
@@ -31670,17 +31780,33 @@ declare const eden: {
31670
31780
  query?: Record<string, unknown> | undefined;
31671
31781
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
31672
31782
  200: {
31673
- campaignGroup: {
31674
- id: string;
31675
- slug: string | null;
31676
- programId: string | null;
31677
- }[];
31678
- } & {
31679
31783
  id: string;
31680
- slug: string | null;
31681
31784
  name: string;
31785
+ slug?: string | undefined;
31682
31786
  description: string;
31683
31787
  icon: string;
31788
+ dailyRewards?: number | undefined;
31789
+ liveCampaigns?: number | undefined;
31790
+ opportunities: {
31791
+ id: string;
31792
+ type: string;
31793
+ identifier: string;
31794
+ name?: string | undefined;
31795
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
31796
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
31797
+ description?: string | undefined;
31798
+ howToSteps?: string[] | undefined;
31799
+ protocols?: string[] | undefined;
31800
+ mainProtocol?: string | undefined;
31801
+ depositUrl?: string | undefined;
31802
+ explorerAddress?: string | undefined;
31803
+ tags?: string[] | undefined;
31804
+ chainId: number;
31805
+ apr?: number | undefined;
31806
+ dailyRewards?: number | undefined;
31807
+ tvl?: number | undefined;
31808
+ liveCampaigns?: number | undefined;
31809
+ }[];
31684
31810
  };
31685
31811
  422: {
31686
31812
  type: "validation";
@@ -34098,13 +34224,6 @@ declare const eden: {
34098
34224
  manualOverrides: import("@package/databases").CampaignManualOverride[];
34099
34225
  opportunityId: string;
34100
34226
  params: import("@prisma/client/runtime/client").JsonValue;
34101
- program: ({
34102
- description: string;
34103
- icon: string;
34104
- id: string;
34105
- name: string;
34106
- slug: string | null;
34107
- } & {}) | null;
34108
34227
  rewardToken: {
34109
34228
  address: string;
34110
34229
  chainId: number;
@@ -34399,13 +34518,6 @@ declare const eden: {
34399
34518
  manualOverrides: import("@package/databases").CampaignManualOverride[];
34400
34519
  opportunityId: string;
34401
34520
  params: import("@prisma/client/runtime/client").JsonValue;
34402
- program: ({
34403
- description: string;
34404
- icon: string;
34405
- id: string;
34406
- name: string;
34407
- slug: string | null;
34408
- } & {}) | null;
34409
34521
  rewardToken: {
34410
34522
  address: string;
34411
34523
  chainId: number;
@@ -35052,13 +35164,6 @@ declare const eden: {
35052
35164
  manualOverrides: import("@package/databases").CampaignManualOverride[];
35053
35165
  opportunityId: string;
35054
35166
  params: import("@prisma/client/runtime/client").JsonValue;
35055
- program: ({
35056
- description: string;
35057
- icon: string;
35058
- id: string;
35059
- name: string;
35060
- slug: string | null;
35061
- } & {}) | null;
35062
35167
  rewardToken: {
35063
35168
  address: string;
35064
35169
  chainId: number;