@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.
- package/dist/src/eden/index.d.ts +304 -199
- package/dist/src/index.d.ts +304 -199
- package/dist/src/jobs/update-dynamic-data.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +0 -28
- package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +0 -9
- package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +12 -66
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -5
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.d.ts +0 -2
- package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.d.ts +0 -3
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +0 -3
- package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.d.ts +0 -6
- package/dist/src/modules/v4/campaignGroup/campaignGroup.service.d.ts +0 -6
- package/dist/src/modules/v4/carousel/carousel.controller.d.ts +208 -48
- package/dist/src/modules/v4/carousel/carousel.repository.d.ts +219 -74
- package/dist/src/modules/v4/carousel/carousel.repository.js.map +1 -1
- package/dist/src/modules/v4/carousel/carousel.service.d.ts +257 -72
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -28
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -14
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +2 -24
- package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -7
- package/dist/src/modules/v4/program/program.controller.d.ts +96 -72
- package/dist/src/modules/v4/program/program.formatter.d.ts +4 -1
- package/dist/src/modules/v4/program/program.formatter.js.map +1 -1
- package/dist/src/modules/v4/program/program.model.d.ts +6 -4
- package/dist/src/modules/v4/program/program.model.js.map +1 -1
- package/dist/src/modules/v4/program/program.repository.d.ts +306 -82
- package/dist/src/modules/v4/program/program.repository.js.map +1 -1
- package/dist/src/modules/v4/program/program.service.d.ts +90 -68
- package/dist/src/modules/v4/program/program.service.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +0 -7
- package/dist/src/modules/v4/router.d.ts +304 -199
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +0 -14
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +0 -7
- package/dist/src/modules/v4/user/user.controller.d.ts +0 -7
- package/package.json +1 -1
|
@@ -645,7 +645,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
645
645
|
} & {
|
|
646
646
|
id: string;
|
|
647
647
|
slug: string | null;
|
|
648
|
-
programId: string | null;
|
|
649
648
|
};
|
|
650
649
|
} & {
|
|
651
650
|
id: string;
|
|
@@ -711,7 +710,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
711
710
|
} & {
|
|
712
711
|
id: string;
|
|
713
712
|
slug: string | null;
|
|
714
|
-
programId: string | null;
|
|
715
713
|
};
|
|
716
714
|
} & {
|
|
717
715
|
id: string;
|
|
@@ -1071,13 +1069,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
1071
1069
|
rootCampaignId?: string | undefined;
|
|
1072
1070
|
parentCampaignId?: string | undefined;
|
|
1073
1071
|
childCampaignIds?: string[] | undefined;
|
|
1074
|
-
program: {
|
|
1075
|
-
id: string;
|
|
1076
|
-
slug: string | null;
|
|
1077
|
-
name: string;
|
|
1078
|
-
description?: string | undefined;
|
|
1079
|
-
icon?: string | undefined;
|
|
1080
|
-
} | null;
|
|
1081
1072
|
dailyRewardsBreakdown?: {
|
|
1082
1073
|
campaignId: string;
|
|
1083
1074
|
value: number;
|
|
@@ -1199,13 +1190,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
1199
1190
|
opportunityId?: string | undefined;
|
|
1200
1191
|
params: any;
|
|
1201
1192
|
parentCampaignId?: string | undefined;
|
|
1202
|
-
program: {
|
|
1203
|
-
id: string;
|
|
1204
|
-
slug: string | null;
|
|
1205
|
-
name: string;
|
|
1206
|
-
description?: string | undefined;
|
|
1207
|
-
icon?: string | undefined;
|
|
1208
|
-
} | null;
|
|
1209
1193
|
rewardToken: {
|
|
1210
1194
|
id: string;
|
|
1211
1195
|
name: string | null;
|
|
@@ -2010,13 +1994,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
2010
1994
|
rootCampaignId?: string | undefined;
|
|
2011
1995
|
parentCampaignId?: string | undefined;
|
|
2012
1996
|
childCampaignIds?: string[] | undefined;
|
|
2013
|
-
program: {
|
|
2014
|
-
id: string;
|
|
2015
|
-
slug: string | null;
|
|
2016
|
-
name: string;
|
|
2017
|
-
description?: string | undefined;
|
|
2018
|
-
icon?: string | undefined;
|
|
2019
|
-
} | null;
|
|
2020
1997
|
dailyRewardsBreakdown?: {
|
|
2021
1998
|
campaignId: string;
|
|
2022
1999
|
value: number;
|
|
@@ -2138,13 +2115,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
2138
2115
|
opportunityId?: string | undefined;
|
|
2139
2116
|
params: any;
|
|
2140
2117
|
parentCampaignId?: string | undefined;
|
|
2141
|
-
program: {
|
|
2142
|
-
id: string;
|
|
2143
|
-
slug: string | null;
|
|
2144
|
-
name: string;
|
|
2145
|
-
description?: string | undefined;
|
|
2146
|
-
icon?: string | undefined;
|
|
2147
|
-
} | null;
|
|
2148
2118
|
rewardToken: {
|
|
2149
2119
|
id: string;
|
|
2150
2120
|
name: string | null;
|
|
@@ -4327,6 +4297,28 @@ export declare const v4: Elysia<"/v4", {
|
|
|
4327
4297
|
slug?: string | undefined;
|
|
4328
4298
|
description: string;
|
|
4329
4299
|
icon: string;
|
|
4300
|
+
dailyRewards?: number | undefined;
|
|
4301
|
+
liveCampaigns?: number | undefined;
|
|
4302
|
+
opportunities: {
|
|
4303
|
+
id: string;
|
|
4304
|
+
type: string;
|
|
4305
|
+
identifier: string;
|
|
4306
|
+
name?: string | undefined;
|
|
4307
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
4308
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
4309
|
+
description?: string | undefined;
|
|
4310
|
+
howToSteps?: string[] | undefined;
|
|
4311
|
+
protocols?: string[] | undefined;
|
|
4312
|
+
mainProtocol?: string | undefined;
|
|
4313
|
+
depositUrl?: string | undefined;
|
|
4314
|
+
explorerAddress?: string | undefined;
|
|
4315
|
+
tags?: string[] | undefined;
|
|
4316
|
+
chainId: number;
|
|
4317
|
+
apr?: number | undefined;
|
|
4318
|
+
dailyRewards?: number | undefined;
|
|
4319
|
+
tvl?: number | undefined;
|
|
4320
|
+
liveCampaigns?: number | undefined;
|
|
4321
|
+
}[];
|
|
4330
4322
|
} | undefined;
|
|
4331
4323
|
chain?: {
|
|
4332
4324
|
id: number;
|
|
@@ -4417,6 +4409,28 @@ export declare const v4: Elysia<"/v4", {
|
|
|
4417
4409
|
slug?: string | undefined;
|
|
4418
4410
|
description: string;
|
|
4419
4411
|
icon: string;
|
|
4412
|
+
dailyRewards?: number | undefined;
|
|
4413
|
+
liveCampaigns?: number | undefined;
|
|
4414
|
+
opportunities: {
|
|
4415
|
+
id: string;
|
|
4416
|
+
type: string;
|
|
4417
|
+
identifier: string;
|
|
4418
|
+
name?: string | undefined;
|
|
4419
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
4420
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
4421
|
+
description?: string | undefined;
|
|
4422
|
+
howToSteps?: string[] | undefined;
|
|
4423
|
+
protocols?: string[] | undefined;
|
|
4424
|
+
mainProtocol?: string | undefined;
|
|
4425
|
+
depositUrl?: string | undefined;
|
|
4426
|
+
explorerAddress?: string | undefined;
|
|
4427
|
+
tags?: string[] | undefined;
|
|
4428
|
+
chainId: number;
|
|
4429
|
+
apr?: number | undefined;
|
|
4430
|
+
dailyRewards?: number | undefined;
|
|
4431
|
+
tvl?: number | undefined;
|
|
4432
|
+
liveCampaigns?: number | undefined;
|
|
4433
|
+
}[];
|
|
4420
4434
|
} | undefined;
|
|
4421
4435
|
chain?: {
|
|
4422
4436
|
id: number;
|
|
@@ -4566,34 +4580,81 @@ export declare const v4: Elysia<"/v4", {
|
|
|
4566
4580
|
liveCampaigns: number;
|
|
4567
4581
|
}) | null;
|
|
4568
4582
|
Program: ({
|
|
4569
|
-
|
|
4570
|
-
|
|
4583
|
+
Opportunity: ({
|
|
4584
|
+
ActivePrograms: {
|
|
4571
4585
|
id: string;
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4586
|
+
slug: string | null;
|
|
4587
|
+
name: string;
|
|
4588
|
+
description: string;
|
|
4589
|
+
icon: string;
|
|
4590
|
+
}[];
|
|
4591
|
+
Chain: {
|
|
4592
|
+
id: number;
|
|
4593
|
+
name: string;
|
|
4594
|
+
icon: string;
|
|
4595
|
+
liveCampaigns: number;
|
|
4596
|
+
endOfDisputePeriod: number;
|
|
4597
|
+
};
|
|
4598
|
+
MainProtocol: {
|
|
4599
|
+
id: string;
|
|
4600
|
+
tags: string[];
|
|
4601
|
+
name: string;
|
|
4602
|
+
description: string;
|
|
4603
|
+
url: string;
|
|
4604
|
+
icon: string;
|
|
4605
|
+
banner: string | null;
|
|
4606
|
+
opportunityBannerLight: string | null;
|
|
4607
|
+
opportunityBannerDark: string | null;
|
|
4608
|
+
} | null;
|
|
4609
|
+
Protocols: {
|
|
4610
|
+
id: string;
|
|
4611
|
+
tags: string[];
|
|
4612
|
+
name: string;
|
|
4613
|
+
description: string;
|
|
4614
|
+
url: string;
|
|
4615
|
+
icon: string;
|
|
4616
|
+
banner: string | null;
|
|
4617
|
+
opportunityBannerLight: string | null;
|
|
4618
|
+
opportunityBannerDark: string | null;
|
|
4619
|
+
}[];
|
|
4620
|
+
Tokens: {
|
|
4621
|
+
id: string;
|
|
4622
|
+
name: string | null;
|
|
4623
|
+
chainId: number;
|
|
4624
|
+
address: string;
|
|
4625
|
+
decimals: number;
|
|
4626
|
+
symbol: string;
|
|
4627
|
+
displaySymbol: string;
|
|
4628
|
+
icon: string;
|
|
4629
|
+
verified: boolean;
|
|
4630
|
+
isTest: boolean;
|
|
4631
|
+
type: import("@package/databases").TokenType;
|
|
4632
|
+
isNative: boolean;
|
|
4633
|
+
price: number | null;
|
|
4634
|
+
updatedAt: number | null;
|
|
4635
|
+
priceSource: string | null;
|
|
4592
4636
|
}[];
|
|
4593
4637
|
} & {
|
|
4594
4638
|
id: string;
|
|
4595
|
-
|
|
4596
|
-
|
|
4639
|
+
chainId: number;
|
|
4640
|
+
type: string;
|
|
4641
|
+
identifier: string;
|
|
4642
|
+
name: string;
|
|
4643
|
+
description: string;
|
|
4644
|
+
howToSteps: string[];
|
|
4645
|
+
depositUrl: string | null;
|
|
4646
|
+
explorerAddress: string | null;
|
|
4647
|
+
status: import("@package/databases").Status;
|
|
4648
|
+
action: import("@package/databases").OpportunityAction;
|
|
4649
|
+
mainProtocolId: string | null;
|
|
4650
|
+
tvl: number;
|
|
4651
|
+
apr: number;
|
|
4652
|
+
maxApr: number | null;
|
|
4653
|
+
dailyRewards: number;
|
|
4654
|
+
tags: string[];
|
|
4655
|
+
lastCampaignCreatedAt: Date;
|
|
4656
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
4657
|
+
liveCampaigns: number;
|
|
4597
4658
|
})[];
|
|
4598
4659
|
} & {
|
|
4599
4660
|
id: string;
|
|
@@ -4714,6 +4775,28 @@ export declare const v4: Elysia<"/v4", {
|
|
|
4714
4775
|
slug?: string | undefined;
|
|
4715
4776
|
description: string;
|
|
4716
4777
|
icon: string;
|
|
4778
|
+
dailyRewards?: number | undefined;
|
|
4779
|
+
liveCampaigns?: number | undefined;
|
|
4780
|
+
opportunities: {
|
|
4781
|
+
id: string;
|
|
4782
|
+
type: string;
|
|
4783
|
+
identifier: string;
|
|
4784
|
+
name?: string | undefined;
|
|
4785
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
4786
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
4787
|
+
description?: string | undefined;
|
|
4788
|
+
howToSteps?: string[] | undefined;
|
|
4789
|
+
protocols?: string[] | undefined;
|
|
4790
|
+
mainProtocol?: string | undefined;
|
|
4791
|
+
depositUrl?: string | undefined;
|
|
4792
|
+
explorerAddress?: string | undefined;
|
|
4793
|
+
tags?: string[] | undefined;
|
|
4794
|
+
chainId: number;
|
|
4795
|
+
apr?: number | undefined;
|
|
4796
|
+
dailyRewards?: number | undefined;
|
|
4797
|
+
tvl?: number | undefined;
|
|
4798
|
+
liveCampaigns?: number | undefined;
|
|
4799
|
+
}[];
|
|
4717
4800
|
} | undefined;
|
|
4718
4801
|
chain?: {
|
|
4719
4802
|
id: number;
|
|
@@ -4886,34 +4969,81 @@ export declare const v4: Elysia<"/v4", {
|
|
|
4886
4969
|
liveCampaigns: number;
|
|
4887
4970
|
}) | null;
|
|
4888
4971
|
Program: ({
|
|
4889
|
-
|
|
4890
|
-
|
|
4972
|
+
Opportunity: ({
|
|
4973
|
+
ActivePrograms: {
|
|
4891
4974
|
id: string;
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4975
|
+
slug: string | null;
|
|
4976
|
+
name: string;
|
|
4977
|
+
description: string;
|
|
4978
|
+
icon: string;
|
|
4979
|
+
}[];
|
|
4980
|
+
Chain: {
|
|
4981
|
+
id: number;
|
|
4982
|
+
name: string;
|
|
4983
|
+
icon: string;
|
|
4984
|
+
liveCampaigns: number;
|
|
4985
|
+
endOfDisputePeriod: number;
|
|
4986
|
+
};
|
|
4987
|
+
MainProtocol: {
|
|
4988
|
+
id: string;
|
|
4989
|
+
tags: string[];
|
|
4990
|
+
name: string;
|
|
4991
|
+
description: string;
|
|
4992
|
+
url: string;
|
|
4993
|
+
icon: string;
|
|
4994
|
+
banner: string | null;
|
|
4995
|
+
opportunityBannerLight: string | null;
|
|
4996
|
+
opportunityBannerDark: string | null;
|
|
4997
|
+
} | null;
|
|
4998
|
+
Protocols: {
|
|
4999
|
+
id: string;
|
|
5000
|
+
tags: string[];
|
|
5001
|
+
name: string;
|
|
5002
|
+
description: string;
|
|
5003
|
+
url: string;
|
|
5004
|
+
icon: string;
|
|
5005
|
+
banner: string | null;
|
|
5006
|
+
opportunityBannerLight: string | null;
|
|
5007
|
+
opportunityBannerDark: string | null;
|
|
5008
|
+
}[];
|
|
5009
|
+
Tokens: {
|
|
5010
|
+
id: string;
|
|
5011
|
+
name: string | null;
|
|
5012
|
+
chainId: number;
|
|
5013
|
+
address: string;
|
|
5014
|
+
decimals: number;
|
|
5015
|
+
symbol: string;
|
|
5016
|
+
displaySymbol: string;
|
|
5017
|
+
icon: string;
|
|
5018
|
+
verified: boolean;
|
|
5019
|
+
isTest: boolean;
|
|
5020
|
+
type: import("@package/databases").TokenType;
|
|
5021
|
+
isNative: boolean;
|
|
5022
|
+
price: number | null;
|
|
5023
|
+
updatedAt: number | null;
|
|
5024
|
+
priceSource: string | null;
|
|
4912
5025
|
}[];
|
|
4913
5026
|
} & {
|
|
4914
5027
|
id: string;
|
|
4915
|
-
|
|
4916
|
-
|
|
5028
|
+
chainId: number;
|
|
5029
|
+
type: string;
|
|
5030
|
+
identifier: string;
|
|
5031
|
+
name: string;
|
|
5032
|
+
description: string;
|
|
5033
|
+
howToSteps: string[];
|
|
5034
|
+
depositUrl: string | null;
|
|
5035
|
+
explorerAddress: string | null;
|
|
5036
|
+
status: import("@package/databases").Status;
|
|
5037
|
+
action: import("@package/databases").OpportunityAction;
|
|
5038
|
+
mainProtocolId: string | null;
|
|
5039
|
+
tvl: number;
|
|
5040
|
+
apr: number;
|
|
5041
|
+
maxApr: number | null;
|
|
5042
|
+
dailyRewards: number;
|
|
5043
|
+
tags: string[];
|
|
5044
|
+
lastCampaignCreatedAt: Date;
|
|
5045
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
5046
|
+
liveCampaigns: number;
|
|
4917
5047
|
})[];
|
|
4918
5048
|
} & {
|
|
4919
5049
|
id: string;
|
|
@@ -7257,13 +7387,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
7257
7387
|
rootCampaignId?: string | undefined;
|
|
7258
7388
|
parentCampaignId?: string | undefined;
|
|
7259
7389
|
childCampaignIds?: string[] | undefined;
|
|
7260
|
-
program: {
|
|
7261
|
-
id: string;
|
|
7262
|
-
slug: string | null;
|
|
7263
|
-
name: string;
|
|
7264
|
-
description?: string | undefined;
|
|
7265
|
-
icon?: string | undefined;
|
|
7266
|
-
} | null;
|
|
7267
7390
|
dailyRewardsBreakdown?: {
|
|
7268
7391
|
campaignId: string;
|
|
7269
7392
|
value: number;
|
|
@@ -7643,13 +7766,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
7643
7766
|
rootCampaignId?: string | undefined;
|
|
7644
7767
|
parentCampaignId?: string | undefined;
|
|
7645
7768
|
childCampaignIds?: string[] | undefined;
|
|
7646
|
-
program: {
|
|
7647
|
-
id: string;
|
|
7648
|
-
slug: string | null;
|
|
7649
|
-
name: string;
|
|
7650
|
-
description?: string | undefined;
|
|
7651
|
-
icon?: string | undefined;
|
|
7652
|
-
} | null;
|
|
7653
7769
|
dailyRewardsBreakdown?: {
|
|
7654
7770
|
campaignId: string;
|
|
7655
7771
|
value: number;
|
|
@@ -7911,13 +8027,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
7911
8027
|
rootCampaignId?: string | undefined;
|
|
7912
8028
|
parentCampaignId?: string | undefined;
|
|
7913
8029
|
childCampaignIds?: string[] | undefined;
|
|
7914
|
-
program: {
|
|
7915
|
-
id: string;
|
|
7916
|
-
slug: string | null;
|
|
7917
|
-
name: string;
|
|
7918
|
-
description?: string | undefined;
|
|
7919
|
-
icon?: string | undefined;
|
|
7920
|
-
} | null;
|
|
7921
8030
|
dailyRewardsBreakdown?: {
|
|
7922
8031
|
campaignId: string;
|
|
7923
8032
|
value: number;
|
|
@@ -8322,13 +8431,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
8322
8431
|
rootCampaignId?: string | undefined;
|
|
8323
8432
|
parentCampaignId?: string | undefined;
|
|
8324
8433
|
childCampaignIds?: string[] | undefined;
|
|
8325
|
-
program: {
|
|
8326
|
-
id: string;
|
|
8327
|
-
slug: string | null;
|
|
8328
|
-
name: string;
|
|
8329
|
-
description?: string | undefined;
|
|
8330
|
-
icon?: string | undefined;
|
|
8331
|
-
} | null;
|
|
8332
8434
|
dailyRewardsBreakdown?: {
|
|
8333
8435
|
campaignId: string;
|
|
8334
8436
|
value: number;
|
|
@@ -9895,64 +9997,32 @@ export declare const v4: Elysia<"/v4", {
|
|
|
9895
9997
|
response: {
|
|
9896
9998
|
200: {
|
|
9897
9999
|
id: string;
|
|
9898
|
-
slug: string | null;
|
|
9899
10000
|
name: string;
|
|
10001
|
+
slug?: string | undefined;
|
|
9900
10002
|
description: string;
|
|
9901
10003
|
icon: string;
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
campaigns: ({
|
|
9906
|
-
Opportunity: {
|
|
9907
|
-
id: string;
|
|
9908
|
-
chainId: number;
|
|
9909
|
-
type: string;
|
|
9910
|
-
identifier: string;
|
|
9911
|
-
name: string;
|
|
9912
|
-
description: string;
|
|
9913
|
-
howToSteps: string[];
|
|
9914
|
-
depositUrl: string | null;
|
|
9915
|
-
explorerAddress: string | null;
|
|
9916
|
-
status: import("@package/databases").Status;
|
|
9917
|
-
action: import("@package/databases").OpportunityAction;
|
|
9918
|
-
mainProtocolId: string | null;
|
|
9919
|
-
tvl: number;
|
|
9920
|
-
apr: number;
|
|
9921
|
-
maxApr: number | null;
|
|
9922
|
-
dailyRewards: number;
|
|
9923
|
-
tags: string[];
|
|
9924
|
-
lastCampaignCreatedAt: Date;
|
|
9925
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
9926
|
-
liveCampaigns: number;
|
|
9927
|
-
};
|
|
9928
|
-
} & {
|
|
9929
|
-
id: string;
|
|
9930
|
-
computeChainId: number;
|
|
9931
|
-
distributionChainId: number;
|
|
9932
|
-
campaignId: string;
|
|
9933
|
-
type: string;
|
|
9934
|
-
distributionType: import("@package/databases").DistributionType;
|
|
9935
|
-
subType: number | null;
|
|
9936
|
-
rewardTokenId: string;
|
|
9937
|
-
amount: string;
|
|
9938
|
-
opportunityId: string;
|
|
9939
|
-
startTimestamp: bigint;
|
|
9940
|
-
endTimestamp: bigint;
|
|
9941
|
-
params: import("@prisma/client/runtime/client").JsonValue;
|
|
9942
|
-
description: string | null;
|
|
9943
|
-
dailyRewards: number;
|
|
9944
|
-
apr: number;
|
|
9945
|
-
creatorAddress: string;
|
|
9946
|
-
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
9947
|
-
createdAt: Date;
|
|
9948
|
-
rootCampaignId: string | null;
|
|
9949
|
-
parentCampaignId: string | null;
|
|
9950
|
-
})[];
|
|
9951
|
-
} & {
|
|
10004
|
+
dailyRewards?: number | undefined;
|
|
10005
|
+
liveCampaigns?: number | undefined;
|
|
10006
|
+
opportunities: {
|
|
9952
10007
|
id: string;
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
10008
|
+
type: string;
|
|
10009
|
+
identifier: string;
|
|
10010
|
+
name?: string | undefined;
|
|
10011
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
10012
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
10013
|
+
description?: string | undefined;
|
|
10014
|
+
howToSteps?: string[] | undefined;
|
|
10015
|
+
protocols?: string[] | undefined;
|
|
10016
|
+
mainProtocol?: string | undefined;
|
|
10017
|
+
depositUrl?: string | undefined;
|
|
10018
|
+
explorerAddress?: string | undefined;
|
|
10019
|
+
tags?: string[] | undefined;
|
|
10020
|
+
chainId: number;
|
|
10021
|
+
apr?: number | undefined;
|
|
10022
|
+
dailyRewards?: number | undefined;
|
|
10023
|
+
tvl?: number | undefined;
|
|
10024
|
+
liveCampaigns?: number | undefined;
|
|
10025
|
+
}[];
|
|
9956
10026
|
}[];
|
|
9957
10027
|
422: {
|
|
9958
10028
|
type: "validation";
|
|
@@ -9983,6 +10053,28 @@ export declare const v4: Elysia<"/v4", {
|
|
|
9983
10053
|
slug?: string | undefined;
|
|
9984
10054
|
description: string;
|
|
9985
10055
|
icon: string;
|
|
10056
|
+
dailyRewards?: number | undefined;
|
|
10057
|
+
liveCampaigns?: number | undefined;
|
|
10058
|
+
opportunities: {
|
|
10059
|
+
id: string;
|
|
10060
|
+
type: string;
|
|
10061
|
+
identifier: string;
|
|
10062
|
+
name?: string | undefined;
|
|
10063
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
10064
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
10065
|
+
description?: string | undefined;
|
|
10066
|
+
howToSteps?: string[] | undefined;
|
|
10067
|
+
protocols?: string[] | undefined;
|
|
10068
|
+
mainProtocol?: string | undefined;
|
|
10069
|
+
depositUrl?: string | undefined;
|
|
10070
|
+
explorerAddress?: string | undefined;
|
|
10071
|
+
tags?: string[] | undefined;
|
|
10072
|
+
chainId: number;
|
|
10073
|
+
apr?: number | undefined;
|
|
10074
|
+
dailyRewards?: number | undefined;
|
|
10075
|
+
tvl?: number | undefined;
|
|
10076
|
+
liveCampaigns?: number | undefined;
|
|
10077
|
+
}[];
|
|
9986
10078
|
};
|
|
9987
10079
|
422: {
|
|
9988
10080
|
type: "validation";
|
|
@@ -10019,8 +10111,7 @@ export declare const v4: Elysia<"/v4", {
|
|
|
10019
10111
|
name: string;
|
|
10020
10112
|
description?: string | undefined;
|
|
10021
10113
|
icon?: string | undefined;
|
|
10022
|
-
|
|
10023
|
-
campaigns?: string[] | undefined;
|
|
10114
|
+
opportunities?: string[] | undefined;
|
|
10024
10115
|
};
|
|
10025
10116
|
params: {};
|
|
10026
10117
|
query: unknown;
|
|
@@ -10029,17 +10120,33 @@ export declare const v4: Elysia<"/v4", {
|
|
|
10029
10120
|
};
|
|
10030
10121
|
response: {
|
|
10031
10122
|
200: {
|
|
10032
|
-
campaignGroup: {
|
|
10033
|
-
id: string;
|
|
10034
|
-
slug: string | null;
|
|
10035
|
-
programId: string | null;
|
|
10036
|
-
}[];
|
|
10037
|
-
} & {
|
|
10038
10123
|
id: string;
|
|
10039
|
-
slug: string | null;
|
|
10040
10124
|
name: string;
|
|
10125
|
+
slug?: string | undefined;
|
|
10041
10126
|
description: string;
|
|
10042
10127
|
icon: string;
|
|
10128
|
+
dailyRewards?: number | undefined;
|
|
10129
|
+
liveCampaigns?: number | undefined;
|
|
10130
|
+
opportunities: {
|
|
10131
|
+
id: string;
|
|
10132
|
+
type: string;
|
|
10133
|
+
identifier: string;
|
|
10134
|
+
name?: string | undefined;
|
|
10135
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
10136
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
10137
|
+
description?: string | undefined;
|
|
10138
|
+
howToSteps?: string[] | undefined;
|
|
10139
|
+
protocols?: string[] | undefined;
|
|
10140
|
+
mainProtocol?: string | undefined;
|
|
10141
|
+
depositUrl?: string | undefined;
|
|
10142
|
+
explorerAddress?: string | undefined;
|
|
10143
|
+
tags?: string[] | undefined;
|
|
10144
|
+
chainId: number;
|
|
10145
|
+
apr?: number | undefined;
|
|
10146
|
+
dailyRewards?: number | undefined;
|
|
10147
|
+
tvl?: number | undefined;
|
|
10148
|
+
liveCampaigns?: number | undefined;
|
|
10149
|
+
}[];
|
|
10043
10150
|
};
|
|
10044
10151
|
422: {
|
|
10045
10152
|
type: "validation";
|
|
@@ -10059,8 +10166,11 @@ export declare const v4: Elysia<"/v4", {
|
|
|
10059
10166
|
patch: {
|
|
10060
10167
|
body: {
|
|
10061
10168
|
slug?: string | undefined;
|
|
10062
|
-
|
|
10063
|
-
|
|
10169
|
+
description?: string | undefined;
|
|
10170
|
+
name?: string | undefined;
|
|
10171
|
+
icon?: string | undefined;
|
|
10172
|
+
opportunitiesToAdd?: string[] | undefined;
|
|
10173
|
+
opportunitiesToRemove?: string[] | undefined;
|
|
10064
10174
|
};
|
|
10065
10175
|
params: {
|
|
10066
10176
|
idOrSlug: string;
|
|
@@ -10071,17 +10181,33 @@ export declare const v4: Elysia<"/v4", {
|
|
|
10071
10181
|
};
|
|
10072
10182
|
response: {
|
|
10073
10183
|
200: {
|
|
10074
|
-
campaignGroup: {
|
|
10075
|
-
id: string;
|
|
10076
|
-
slug: string | null;
|
|
10077
|
-
programId: string | null;
|
|
10078
|
-
}[];
|
|
10079
|
-
} & {
|
|
10080
10184
|
id: string;
|
|
10081
|
-
slug: string | null;
|
|
10082
10185
|
name: string;
|
|
10186
|
+
slug?: string | undefined;
|
|
10083
10187
|
description: string;
|
|
10084
10188
|
icon: string;
|
|
10189
|
+
dailyRewards?: number | undefined;
|
|
10190
|
+
liveCampaigns?: number | undefined;
|
|
10191
|
+
opportunities: {
|
|
10192
|
+
id: string;
|
|
10193
|
+
type: string;
|
|
10194
|
+
identifier: string;
|
|
10195
|
+
name?: string | undefined;
|
|
10196
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
10197
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
10198
|
+
description?: string | undefined;
|
|
10199
|
+
howToSteps?: string[] | undefined;
|
|
10200
|
+
protocols?: string[] | undefined;
|
|
10201
|
+
mainProtocol?: string | undefined;
|
|
10202
|
+
depositUrl?: string | undefined;
|
|
10203
|
+
explorerAddress?: string | undefined;
|
|
10204
|
+
tags?: string[] | undefined;
|
|
10205
|
+
chainId: number;
|
|
10206
|
+
apr?: number | undefined;
|
|
10207
|
+
dailyRewards?: number | undefined;
|
|
10208
|
+
tvl?: number | undefined;
|
|
10209
|
+
liveCampaigns?: number | undefined;
|
|
10210
|
+
}[];
|
|
10085
10211
|
};
|
|
10086
10212
|
422: {
|
|
10087
10213
|
type: "validation";
|
|
@@ -33786,13 +33912,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
33786
33912
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
33787
33913
|
opportunityId: string;
|
|
33788
33914
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
33789
|
-
program: ({
|
|
33790
|
-
description: string;
|
|
33791
|
-
icon: string;
|
|
33792
|
-
id: string;
|
|
33793
|
-
name: string;
|
|
33794
|
-
slug: string | null;
|
|
33795
|
-
} & {}) | null;
|
|
33796
33915
|
rewardToken: {
|
|
33797
33916
|
address: string;
|
|
33798
33917
|
chainId: number;
|
|
@@ -34092,13 +34211,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
34092
34211
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
34093
34212
|
opportunityId: string;
|
|
34094
34213
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
34095
|
-
program: ({
|
|
34096
|
-
description: string;
|
|
34097
|
-
icon: string;
|
|
34098
|
-
id: string;
|
|
34099
|
-
name: string;
|
|
34100
|
-
slug: string | null;
|
|
34101
|
-
} & {}) | null;
|
|
34102
34214
|
rewardToken: {
|
|
34103
34215
|
address: string;
|
|
34104
34216
|
chainId: number;
|
|
@@ -35711,13 +35823,6 @@ export declare const v4: Elysia<"/v4", {
|
|
|
35711
35823
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
35712
35824
|
opportunityId: string;
|
|
35713
35825
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
35714
|
-
program: ({
|
|
35715
|
-
description: string;
|
|
35716
|
-
icon: string;
|
|
35717
|
-
id: string;
|
|
35718
|
-
name: string;
|
|
35719
|
-
slug: string | null;
|
|
35720
|
-
} & {}) | null;
|
|
35721
35826
|
rewardToken: {
|
|
35722
35827
|
address: string;
|
|
35723
35828
|
chainId: number;
|