@merkl/api 1.5.8 → 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
@@ -652,7 +652,6 @@ declare const app: Elysia<"", {
652
652
  } & {
653
653
  id: string;
654
654
  slug: string | null;
655
- programId: string | null;
656
655
  };
657
656
  } & {
658
657
  id: string;
@@ -718,7 +717,6 @@ declare const app: Elysia<"", {
718
717
  } & {
719
718
  id: string;
720
719
  slug: string | null;
721
- programId: string | null;
722
720
  };
723
721
  } & {
724
722
  id: string;
@@ -1078,13 +1076,6 @@ declare const app: Elysia<"", {
1078
1076
  rootCampaignId?: string | undefined;
1079
1077
  parentCampaignId?: string | undefined;
1080
1078
  childCampaignIds?: string[] | undefined;
1081
- program: {
1082
- id: string;
1083
- slug: string | null;
1084
- name: string;
1085
- description?: string | undefined;
1086
- icon?: string | undefined;
1087
- } | null;
1088
1079
  dailyRewardsBreakdown?: {
1089
1080
  campaignId: string;
1090
1081
  value: number;
@@ -1206,13 +1197,6 @@ declare const app: Elysia<"", {
1206
1197
  opportunityId?: string | undefined;
1207
1198
  params: any;
1208
1199
  parentCampaignId?: string | undefined;
1209
- program: {
1210
- id: string;
1211
- slug: string | null;
1212
- name: string;
1213
- description?: string | undefined;
1214
- icon?: string | undefined;
1215
- } | null;
1216
1200
  rewardToken: {
1217
1201
  id: string;
1218
1202
  name: string | null;
@@ -2017,13 +2001,6 @@ declare const app: Elysia<"", {
2017
2001
  rootCampaignId?: string | undefined;
2018
2002
  parentCampaignId?: string | undefined;
2019
2003
  childCampaignIds?: string[] | undefined;
2020
- program: {
2021
- id: string;
2022
- slug: string | null;
2023
- name: string;
2024
- description?: string | undefined;
2025
- icon?: string | undefined;
2026
- } | null;
2027
2004
  dailyRewardsBreakdown?: {
2028
2005
  campaignId: string;
2029
2006
  value: number;
@@ -2145,13 +2122,6 @@ declare const app: Elysia<"", {
2145
2122
  opportunityId?: string | undefined;
2146
2123
  params: any;
2147
2124
  parentCampaignId?: string | undefined;
2148
- program: {
2149
- id: string;
2150
- slug: string | null;
2151
- name: string;
2152
- description?: string | undefined;
2153
- icon?: string | undefined;
2154
- } | null;
2155
2125
  rewardToken: {
2156
2126
  id: string;
2157
2127
  name: string | null;
@@ -4334,6 +4304,28 @@ declare const app: Elysia<"", {
4334
4304
  slug?: string | undefined;
4335
4305
  description: string;
4336
4306
  icon: string;
4307
+ dailyRewards?: number | undefined;
4308
+ liveCampaigns?: number | undefined;
4309
+ opportunities: {
4310
+ id: string;
4311
+ type: string;
4312
+ identifier: string;
4313
+ name?: string | undefined;
4314
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
4315
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
4316
+ description?: string | undefined;
4317
+ howToSteps?: string[] | undefined;
4318
+ protocols?: string[] | undefined;
4319
+ mainProtocol?: string | undefined;
4320
+ depositUrl?: string | undefined;
4321
+ explorerAddress?: string | undefined;
4322
+ tags?: string[] | undefined;
4323
+ chainId: number;
4324
+ apr?: number | undefined;
4325
+ dailyRewards?: number | undefined;
4326
+ tvl?: number | undefined;
4327
+ liveCampaigns?: number | undefined;
4328
+ }[];
4337
4329
  } | undefined;
4338
4330
  chain?: {
4339
4331
  id: number;
@@ -4424,6 +4416,28 @@ declare const app: Elysia<"", {
4424
4416
  slug?: string | undefined;
4425
4417
  description: string;
4426
4418
  icon: string;
4419
+ dailyRewards?: number | undefined;
4420
+ liveCampaigns?: number | undefined;
4421
+ opportunities: {
4422
+ id: string;
4423
+ type: string;
4424
+ identifier: string;
4425
+ name?: string | undefined;
4426
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
4427
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
4428
+ description?: string | undefined;
4429
+ howToSteps?: string[] | undefined;
4430
+ protocols?: string[] | undefined;
4431
+ mainProtocol?: string | undefined;
4432
+ depositUrl?: string | undefined;
4433
+ explorerAddress?: string | undefined;
4434
+ tags?: string[] | undefined;
4435
+ chainId: number;
4436
+ apr?: number | undefined;
4437
+ dailyRewards?: number | undefined;
4438
+ tvl?: number | undefined;
4439
+ liveCampaigns?: number | undefined;
4440
+ }[];
4427
4441
  } | undefined;
4428
4442
  chain?: {
4429
4443
  id: number;
@@ -4573,34 +4587,81 @@ declare const app: Elysia<"", {
4573
4587
  liveCampaigns: number;
4574
4588
  }) | null;
4575
4589
  Program: ({
4576
- campaignGroup: ({
4577
- campaigns: {
4590
+ Opportunity: ({
4591
+ ActivePrograms: {
4578
4592
  id: string;
4579
- computeChainId: number;
4580
- distributionChainId: number;
4581
- campaignId: string;
4582
- type: string;
4583
- distributionType: import("@package/databases").DistributionType;
4584
- subType: number | null;
4585
- rewardTokenId: string;
4586
- amount: string;
4587
- opportunityId: string;
4588
- startTimestamp: bigint;
4589
- endTimestamp: bigint;
4590
- params: import("@prisma/client/runtime/client").JsonValue;
4591
- description: string | null;
4592
- dailyRewards: number;
4593
- apr: number;
4594
- creatorAddress: string;
4595
- manualOverrides: import("@package/databases").CampaignManualOverride[];
4596
- createdAt: Date;
4597
- rootCampaignId: string | null;
4598
- parentCampaignId: string | null;
4593
+ slug: string | null;
4594
+ name: string;
4595
+ description: string;
4596
+ icon: string;
4597
+ }[];
4598
+ Chain: {
4599
+ id: number;
4600
+ name: string;
4601
+ icon: string;
4602
+ liveCampaigns: number;
4603
+ endOfDisputePeriod: number;
4604
+ };
4605
+ MainProtocol: {
4606
+ id: string;
4607
+ tags: string[];
4608
+ name: string;
4609
+ description: string;
4610
+ url: string;
4611
+ icon: string;
4612
+ banner: string | null;
4613
+ opportunityBannerLight: string | null;
4614
+ opportunityBannerDark: string | null;
4615
+ } | null;
4616
+ Protocols: {
4617
+ id: string;
4618
+ tags: string[];
4619
+ name: string;
4620
+ description: string;
4621
+ url: string;
4622
+ icon: string;
4623
+ banner: string | null;
4624
+ opportunityBannerLight: string | null;
4625
+ opportunityBannerDark: string | null;
4626
+ }[];
4627
+ Tokens: {
4628
+ id: string;
4629
+ name: string | null;
4630
+ chainId: number;
4631
+ address: string;
4632
+ decimals: number;
4633
+ symbol: string;
4634
+ displaySymbol: string;
4635
+ icon: string;
4636
+ verified: boolean;
4637
+ isTest: boolean;
4638
+ type: import("@package/databases").TokenType;
4639
+ isNative: boolean;
4640
+ price: number | null;
4641
+ updatedAt: number | null;
4642
+ priceSource: string | null;
4599
4643
  }[];
4600
4644
  } & {
4601
4645
  id: string;
4602
- slug: string | null;
4603
- programId: string | null;
4646
+ chainId: number;
4647
+ type: string;
4648
+ identifier: string;
4649
+ name: string;
4650
+ description: string;
4651
+ howToSteps: string[];
4652
+ depositUrl: string | null;
4653
+ explorerAddress: string | null;
4654
+ status: import("@package/databases").Status;
4655
+ action: import("@package/databases").OpportunityAction;
4656
+ mainProtocolId: string | null;
4657
+ tvl: number;
4658
+ apr: number;
4659
+ maxApr: number | null;
4660
+ dailyRewards: number;
4661
+ tags: string[];
4662
+ lastCampaignCreatedAt: Date;
4663
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
4664
+ liveCampaigns: number;
4604
4665
  })[];
4605
4666
  } & {
4606
4667
  id: string;
@@ -4721,6 +4782,28 @@ declare const app: Elysia<"", {
4721
4782
  slug?: string | undefined;
4722
4783
  description: string;
4723
4784
  icon: string;
4785
+ dailyRewards?: number | undefined;
4786
+ liveCampaigns?: number | undefined;
4787
+ opportunities: {
4788
+ id: string;
4789
+ type: string;
4790
+ identifier: string;
4791
+ name?: string | undefined;
4792
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
4793
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
4794
+ description?: string | undefined;
4795
+ howToSteps?: string[] | undefined;
4796
+ protocols?: string[] | undefined;
4797
+ mainProtocol?: string | undefined;
4798
+ depositUrl?: string | undefined;
4799
+ explorerAddress?: string | undefined;
4800
+ tags?: string[] | undefined;
4801
+ chainId: number;
4802
+ apr?: number | undefined;
4803
+ dailyRewards?: number | undefined;
4804
+ tvl?: number | undefined;
4805
+ liveCampaigns?: number | undefined;
4806
+ }[];
4724
4807
  } | undefined;
4725
4808
  chain?: {
4726
4809
  id: number;
@@ -4893,34 +4976,81 @@ declare const app: Elysia<"", {
4893
4976
  liveCampaigns: number;
4894
4977
  }) | null;
4895
4978
  Program: ({
4896
- campaignGroup: ({
4897
- campaigns: {
4979
+ Opportunity: ({
4980
+ ActivePrograms: {
4898
4981
  id: string;
4899
- computeChainId: number;
4900
- distributionChainId: number;
4901
- campaignId: string;
4902
- type: string;
4903
- distributionType: import("@package/databases").DistributionType;
4904
- subType: number | null;
4905
- rewardTokenId: string;
4906
- amount: string;
4907
- opportunityId: string;
4908
- startTimestamp: bigint;
4909
- endTimestamp: bigint;
4910
- params: import("@prisma/client/runtime/client").JsonValue;
4911
- description: string | null;
4912
- dailyRewards: number;
4913
- apr: number;
4914
- creatorAddress: string;
4915
- manualOverrides: import("@package/databases").CampaignManualOverride[];
4916
- createdAt: Date;
4917
- rootCampaignId: string | null;
4918
- parentCampaignId: string | null;
4982
+ slug: string | null;
4983
+ name: string;
4984
+ description: string;
4985
+ icon: string;
4986
+ }[];
4987
+ Chain: {
4988
+ id: number;
4989
+ name: string;
4990
+ icon: string;
4991
+ liveCampaigns: number;
4992
+ endOfDisputePeriod: number;
4993
+ };
4994
+ MainProtocol: {
4995
+ id: string;
4996
+ tags: string[];
4997
+ name: string;
4998
+ description: string;
4999
+ url: string;
5000
+ icon: string;
5001
+ banner: string | null;
5002
+ opportunityBannerLight: string | null;
5003
+ opportunityBannerDark: string | null;
5004
+ } | null;
5005
+ Protocols: {
5006
+ id: string;
5007
+ tags: string[];
5008
+ name: string;
5009
+ description: string;
5010
+ url: string;
5011
+ icon: string;
5012
+ banner: string | null;
5013
+ opportunityBannerLight: string | null;
5014
+ opportunityBannerDark: string | null;
5015
+ }[];
5016
+ Tokens: {
5017
+ id: string;
5018
+ name: string | null;
5019
+ chainId: number;
5020
+ address: string;
5021
+ decimals: number;
5022
+ symbol: string;
5023
+ displaySymbol: string;
5024
+ icon: string;
5025
+ verified: boolean;
5026
+ isTest: boolean;
5027
+ type: import("@package/databases").TokenType;
5028
+ isNative: boolean;
5029
+ price: number | null;
5030
+ updatedAt: number | null;
5031
+ priceSource: string | null;
4919
5032
  }[];
4920
5033
  } & {
4921
5034
  id: string;
4922
- slug: string | null;
4923
- programId: string | null;
5035
+ chainId: number;
5036
+ type: string;
5037
+ identifier: string;
5038
+ name: string;
5039
+ description: string;
5040
+ howToSteps: string[];
5041
+ depositUrl: string | null;
5042
+ explorerAddress: string | null;
5043
+ status: import("@package/databases").Status;
5044
+ action: import("@package/databases").OpportunityAction;
5045
+ mainProtocolId: string | null;
5046
+ tvl: number;
5047
+ apr: number;
5048
+ maxApr: number | null;
5049
+ dailyRewards: number;
5050
+ tags: string[];
5051
+ lastCampaignCreatedAt: Date;
5052
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
5053
+ liveCampaigns: number;
4924
5054
  })[];
4925
5055
  } & {
4926
5056
  id: string;
@@ -7264,13 +7394,6 @@ declare const app: Elysia<"", {
7264
7394
  rootCampaignId?: string | undefined;
7265
7395
  parentCampaignId?: string | undefined;
7266
7396
  childCampaignIds?: string[] | undefined;
7267
- program: {
7268
- id: string;
7269
- slug: string | null;
7270
- name: string;
7271
- description?: string | undefined;
7272
- icon?: string | undefined;
7273
- } | null;
7274
7397
  dailyRewardsBreakdown?: {
7275
7398
  campaignId: string;
7276
7399
  value: number;
@@ -7650,13 +7773,6 @@ declare const app: Elysia<"", {
7650
7773
  rootCampaignId?: string | undefined;
7651
7774
  parentCampaignId?: string | undefined;
7652
7775
  childCampaignIds?: string[] | undefined;
7653
- program: {
7654
- id: string;
7655
- slug: string | null;
7656
- name: string;
7657
- description?: string | undefined;
7658
- icon?: string | undefined;
7659
- } | null;
7660
7776
  dailyRewardsBreakdown?: {
7661
7777
  campaignId: string;
7662
7778
  value: number;
@@ -7918,13 +8034,6 @@ declare const app: Elysia<"", {
7918
8034
  rootCampaignId?: string | undefined;
7919
8035
  parentCampaignId?: string | undefined;
7920
8036
  childCampaignIds?: string[] | undefined;
7921
- program: {
7922
- id: string;
7923
- slug: string | null;
7924
- name: string;
7925
- description?: string | undefined;
7926
- icon?: string | undefined;
7927
- } | null;
7928
8037
  dailyRewardsBreakdown?: {
7929
8038
  campaignId: string;
7930
8039
  value: number;
@@ -8329,13 +8438,6 @@ declare const app: Elysia<"", {
8329
8438
  rootCampaignId?: string | undefined;
8330
8439
  parentCampaignId?: string | undefined;
8331
8440
  childCampaignIds?: string[] | undefined;
8332
- program: {
8333
- id: string;
8334
- slug: string | null;
8335
- name: string;
8336
- description?: string | undefined;
8337
- icon?: string | undefined;
8338
- } | null;
8339
8441
  dailyRewardsBreakdown?: {
8340
8442
  campaignId: string;
8341
8443
  value: number;
@@ -9902,64 +10004,32 @@ declare const app: Elysia<"", {
9902
10004
  response: {
9903
10005
  200: {
9904
10006
  id: string;
9905
- slug: string | null;
9906
10007
  name: string;
10008
+ slug?: string | undefined;
9907
10009
  description: string;
9908
10010
  icon: string;
9909
- liveCampaigns: number;
9910
- dailyRewards: number;
9911
- campaignGroup: ({
9912
- campaigns: ({
9913
- Opportunity: {
9914
- id: string;
9915
- chainId: number;
9916
- type: string;
9917
- identifier: string;
9918
- name: string;
9919
- description: string;
9920
- howToSteps: string[];
9921
- depositUrl: string | null;
9922
- explorerAddress: string | null;
9923
- status: import("@package/databases").Status;
9924
- action: import("@package/databases").OpportunityAction;
9925
- mainProtocolId: string | null;
9926
- tvl: number;
9927
- apr: number;
9928
- maxApr: number | null;
9929
- dailyRewards: number;
9930
- tags: string[];
9931
- lastCampaignCreatedAt: Date;
9932
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
9933
- liveCampaigns: number;
9934
- };
9935
- } & {
9936
- id: string;
9937
- computeChainId: number;
9938
- distributionChainId: number;
9939
- campaignId: string;
9940
- type: string;
9941
- distributionType: import("@package/databases").DistributionType;
9942
- subType: number | null;
9943
- rewardTokenId: string;
9944
- amount: string;
9945
- opportunityId: string;
9946
- startTimestamp: bigint;
9947
- endTimestamp: bigint;
9948
- params: import("@prisma/client/runtime/client").JsonValue;
9949
- description: string | null;
9950
- dailyRewards: number;
9951
- apr: number;
9952
- creatorAddress: string;
9953
- manualOverrides: import("@package/databases").CampaignManualOverride[];
9954
- createdAt: Date;
9955
- rootCampaignId: string | null;
9956
- parentCampaignId: string | null;
9957
- })[];
9958
- } & {
10011
+ dailyRewards?: number | undefined;
10012
+ liveCampaigns?: number | undefined;
10013
+ opportunities: {
9959
10014
  id: string;
9960
- slug: string | null;
9961
- programId: string | null;
9962
- })[];
10015
+ type: string;
10016
+ identifier: string;
10017
+ name?: string | undefined;
10018
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
10019
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
10020
+ description?: string | undefined;
10021
+ howToSteps?: string[] | undefined;
10022
+ protocols?: string[] | undefined;
10023
+ mainProtocol?: string | undefined;
10024
+ depositUrl?: string | undefined;
10025
+ explorerAddress?: string | undefined;
10026
+ tags?: string[] | undefined;
10027
+ chainId: number;
10028
+ apr?: number | undefined;
10029
+ dailyRewards?: number | undefined;
10030
+ tvl?: number | undefined;
10031
+ liveCampaigns?: number | undefined;
10032
+ }[];
9963
10033
  }[];
9964
10034
  422: {
9965
10035
  type: "validation";
@@ -9990,6 +10060,28 @@ declare const app: Elysia<"", {
9990
10060
  slug?: string | undefined;
9991
10061
  description: string;
9992
10062
  icon: string;
10063
+ dailyRewards?: number | undefined;
10064
+ liveCampaigns?: number | undefined;
10065
+ opportunities: {
10066
+ id: string;
10067
+ type: string;
10068
+ identifier: string;
10069
+ name?: string | undefined;
10070
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
10071
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
10072
+ description?: string | undefined;
10073
+ howToSteps?: string[] | undefined;
10074
+ protocols?: string[] | undefined;
10075
+ mainProtocol?: string | undefined;
10076
+ depositUrl?: string | undefined;
10077
+ explorerAddress?: string | undefined;
10078
+ tags?: string[] | undefined;
10079
+ chainId: number;
10080
+ apr?: number | undefined;
10081
+ dailyRewards?: number | undefined;
10082
+ tvl?: number | undefined;
10083
+ liveCampaigns?: number | undefined;
10084
+ }[];
9993
10085
  };
9994
10086
  422: {
9995
10087
  type: "validation";
@@ -10026,8 +10118,7 @@ declare const app: Elysia<"", {
10026
10118
  name: string;
10027
10119
  description?: string | undefined;
10028
10120
  icon?: string | undefined;
10029
- groupSlug?: string | undefined;
10030
- campaigns?: string[] | undefined;
10121
+ opportunities?: string[] | undefined;
10031
10122
  };
10032
10123
  params: {};
10033
10124
  query: unknown;
@@ -10036,17 +10127,33 @@ declare const app: Elysia<"", {
10036
10127
  };
10037
10128
  response: {
10038
10129
  200: {
10039
- campaignGroup: {
10040
- id: string;
10041
- slug: string | null;
10042
- programId: string | null;
10043
- }[];
10044
- } & {
10045
10130
  id: string;
10046
- slug: string | null;
10047
10131
  name: string;
10132
+ slug?: string | undefined;
10048
10133
  description: string;
10049
10134
  icon: string;
10135
+ dailyRewards?: number | undefined;
10136
+ liveCampaigns?: number | undefined;
10137
+ opportunities: {
10138
+ id: string;
10139
+ type: string;
10140
+ identifier: string;
10141
+ name?: string | undefined;
10142
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
10143
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
10144
+ description?: string | undefined;
10145
+ howToSteps?: string[] | undefined;
10146
+ protocols?: string[] | undefined;
10147
+ mainProtocol?: string | undefined;
10148
+ depositUrl?: string | undefined;
10149
+ explorerAddress?: string | undefined;
10150
+ tags?: string[] | undefined;
10151
+ chainId: number;
10152
+ apr?: number | undefined;
10153
+ dailyRewards?: number | undefined;
10154
+ tvl?: number | undefined;
10155
+ liveCampaigns?: number | undefined;
10156
+ }[];
10050
10157
  };
10051
10158
  422: {
10052
10159
  type: "validation";
@@ -10066,8 +10173,11 @@ declare const app: Elysia<"", {
10066
10173
  patch: {
10067
10174
  body: {
10068
10175
  slug?: string | undefined;
10069
- campaignsToAdd?: string[] | undefined;
10070
- campaignsToRemove?: string[] | undefined;
10176
+ description?: string | undefined;
10177
+ name?: string | undefined;
10178
+ icon?: string | undefined;
10179
+ opportunitiesToAdd?: string[] | undefined;
10180
+ opportunitiesToRemove?: string[] | undefined;
10071
10181
  };
10072
10182
  params: {
10073
10183
  idOrSlug: string;
@@ -10078,17 +10188,33 @@ declare const app: Elysia<"", {
10078
10188
  };
10079
10189
  response: {
10080
10190
  200: {
10081
- campaignGroup: {
10082
- id: string;
10083
- slug: string | null;
10084
- programId: string | null;
10085
- }[];
10086
- } & {
10087
10191
  id: string;
10088
- slug: string | null;
10089
10192
  name: string;
10193
+ slug?: string | undefined;
10090
10194
  description: string;
10091
10195
  icon: string;
10196
+ dailyRewards?: number | undefined;
10197
+ liveCampaigns?: number | undefined;
10198
+ opportunities: {
10199
+ id: string;
10200
+ type: string;
10201
+ identifier: string;
10202
+ name?: string | undefined;
10203
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
10204
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
10205
+ description?: string | undefined;
10206
+ howToSteps?: string[] | undefined;
10207
+ protocols?: string[] | undefined;
10208
+ mainProtocol?: string | undefined;
10209
+ depositUrl?: string | undefined;
10210
+ explorerAddress?: string | undefined;
10211
+ tags?: string[] | undefined;
10212
+ chainId: number;
10213
+ apr?: number | undefined;
10214
+ dailyRewards?: number | undefined;
10215
+ tvl?: number | undefined;
10216
+ liveCampaigns?: number | undefined;
10217
+ }[];
10092
10218
  };
10093
10219
  422: {
10094
10220
  type: "validation";
@@ -33793,13 +33919,6 @@ declare const app: Elysia<"", {
33793
33919
  manualOverrides: import("@package/databases").CampaignManualOverride[];
33794
33920
  opportunityId: string;
33795
33921
  params: import("@prisma/client/runtime/client").JsonValue;
33796
- program: ({
33797
- description: string;
33798
- icon: string;
33799
- id: string;
33800
- name: string;
33801
- slug: string | null;
33802
- } & {}) | null;
33803
33922
  rewardToken: {
33804
33923
  address: string;
33805
33924
  chainId: number;
@@ -34099,13 +34218,6 @@ declare const app: Elysia<"", {
34099
34218
  manualOverrides: import("@package/databases").CampaignManualOverride[];
34100
34219
  opportunityId: string;
34101
34220
  params: import("@prisma/client/runtime/client").JsonValue;
34102
- program: ({
34103
- description: string;
34104
- icon: string;
34105
- id: string;
34106
- name: string;
34107
- slug: string | null;
34108
- } & {}) | null;
34109
34221
  rewardToken: {
34110
34222
  address: string;
34111
34223
  chainId: number;
@@ -35718,13 +35830,6 @@ declare const app: Elysia<"", {
35718
35830
  manualOverrides: import("@package/databases").CampaignManualOverride[];
35719
35831
  opportunityId: string;
35720
35832
  params: import("@prisma/client/runtime/client").JsonValue;
35721
- program: ({
35722
- description: string;
35723
- icon: string;
35724
- id: string;
35725
- name: string;
35726
- slug: string | null;
35727
- } & {}) | null;
35728
35833
  rewardToken: {
35729
35834
  address: string;
35730
35835
  chainId: number;