@merkl/api 0.20.48 → 0.20.50
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/database/api/.generated/drizzle/schema.d.ts +17 -0
- package/dist/database/api/.generated/drizzle/schema.js +1 -0
- package/dist/database/api/.generated/drizzle/schema.ts +1 -0
- package/dist/database/api/.generated/edge.js +4 -3
- package/dist/database/api/.generated/index-browser.js +9 -0
- package/dist/database/api/.generated/index.d.ts +133 -1
- package/dist/database/api/.generated/index.js +4 -3
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +1 -1
- package/dist/database/api/.generated/wasm.js +9 -0
- package/dist/src/eden/index.d.ts +435 -10
- package/dist/src/index.d.ts +99 -2
- package/dist/src/libs/tokens/balances.js +2 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +93 -1
- package/dist/src/modules/v4/campaign/campaign.controller.js +23 -2
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +15 -0
- package/dist/src/modules/v4/campaign/campaign.model.js +14 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +8 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +28 -1
- package/dist/src/modules/v4/campaign/campaign.service.js +35 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +5 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +14 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +10 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +8 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -0
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
- package/dist/src/modules/v4/reward/reward.model.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +2 -0
- package/dist/src/modules/v4/router.d.ts +99 -2
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -322,4 +322,39 @@ export class CampaignService {
|
|
322
322
|
const dailyAmount = isWithinTimespan ? BigInt(amount) / BigInt(dayspan) : 0n;
|
323
323
|
return dailyAmount;
|
324
324
|
}
|
325
|
+
static createFakeCampaign(body) {
|
326
|
+
return {
|
327
|
+
amount: body.amount ?? (10n ** 18n).toString(),
|
328
|
+
campaignId: body.campaignId ?? "campaignId",
|
329
|
+
computeChainId: body.computeChainId,
|
330
|
+
campaignParameters: body.params,
|
331
|
+
campaignSubType: body.subType ?? 0,
|
332
|
+
campaignType: CampaignEnum[body.type],
|
333
|
+
chainId: body.distributionChainId ?? 0,
|
334
|
+
creator: body.creatorAddress ?? "creator.address",
|
335
|
+
index: 0, // DEPRECATED
|
336
|
+
mainParameter: "opportunityIdentifier",
|
337
|
+
endTimestamp: body.endTimestamp,
|
338
|
+
startTimestamp: body.startTimestamp,
|
339
|
+
rewardToken: body.rewardToken,
|
340
|
+
amm: body.params?.amm,
|
341
|
+
};
|
342
|
+
}
|
343
|
+
static createFakeCampaignEngine(body) {
|
344
|
+
const fakeCampaign = CampaignService.createFakeCampaign(body);
|
345
|
+
return {
|
346
|
+
computeChainId: fakeCampaign.computeChainId,
|
347
|
+
chainId: fakeCampaign.chainId,
|
348
|
+
campaignId: fakeCampaign.campaignId,
|
349
|
+
creator: fakeCampaign.creator,
|
350
|
+
type: fakeCampaign.campaignType,
|
351
|
+
subType: fakeCampaign.campaignSubType,
|
352
|
+
rewardTokenAddress: fakeCampaign.rewardToken,
|
353
|
+
amount: fakeCampaign.amount,
|
354
|
+
opportunityIdentifier: fakeCampaign.mainParameter,
|
355
|
+
startTimestamp: fakeCampaign.startTimestamp.toString(),
|
356
|
+
endTimestamp: fakeCampaign.endTimestamp.toString(),
|
357
|
+
params: JSON.stringify(fakeCampaign.campaignParameters),
|
358
|
+
};
|
359
|
+
}
|
325
360
|
}
|
@@ -262,6 +262,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
262
262
|
price: number | null;
|
263
263
|
};
|
264
264
|
amount: bigint;
|
265
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
265
266
|
}[];
|
266
267
|
};
|
267
268
|
campaigns: {
|
@@ -331,6 +332,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
331
332
|
computeChainId: number;
|
332
333
|
distributionChainId: number;
|
333
334
|
campaignId: string;
|
335
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
334
336
|
rewardTokenId: string;
|
335
337
|
amount: string;
|
336
338
|
opportunityId: string;
|
@@ -438,6 +440,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
438
440
|
tags: string[];
|
439
441
|
icon: string;
|
440
442
|
} | null | undefined;
|
443
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
441
444
|
depositUrl?: string | undefined;
|
442
445
|
explorerAddress?: string | undefined;
|
443
446
|
aprRecord?: {
|
@@ -569,6 +572,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
569
572
|
tags: string[];
|
570
573
|
icon: string;
|
571
574
|
} | null | undefined;
|
575
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
572
576
|
depositUrl?: string | undefined;
|
573
577
|
explorerAddress?: string | undefined;
|
574
578
|
aprRecord?: {
|
@@ -734,6 +738,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
734
738
|
tags: string[];
|
735
739
|
icon: string;
|
736
740
|
} | null | undefined;
|
741
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
737
742
|
depositUrl?: string | undefined;
|
738
743
|
explorerAddress?: string | undefined;
|
739
744
|
aprRecord?: {
|
@@ -42,6 +42,13 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
42
42
|
dailyRewards: import("@sinclair/typebox").TNumber;
|
43
43
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
44
44
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
45
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
46
|
+
DUTCH_AUCTION: "DUTCH_AUCTION";
|
47
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
48
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
49
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
50
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
51
|
+
}>>;
|
45
52
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
46
53
|
id: import("@sinclair/typebox").TString;
|
47
54
|
tokens: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
@@ -156,6 +163,13 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
156
163
|
icon: import("@sinclair/typebox").TString;
|
157
164
|
}>;
|
158
165
|
action: import("@sinclair/typebox").TString;
|
166
|
+
distributionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
167
|
+
DUTCH_AUCTION: "DUTCH_AUCTION";
|
168
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
|
169
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
|
170
|
+
FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
|
171
|
+
FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
|
172
|
+
}>>;
|
159
173
|
chainId: import("@sinclair/typebox").TNumber;
|
160
174
|
depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
161
175
|
explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
@@ -4,7 +4,7 @@ import { ProtocolResourceDto } from "@/modules/v4/protocol/protocol.model";
|
|
4
4
|
import { DailyRewardsRecordResourceDto } from "@/modules/v4/reward/reward.model";
|
5
5
|
import { TokenDto, TokenResourceDto } from "@/modules/v4/token/token.model";
|
6
6
|
import { TvlRecordResourceDto } from "@/modules/v4/tvl/tvl.model";
|
7
|
-
import { OpportunityAction, OpportunityManualOverride, Status } from "@db/api";
|
7
|
+
import { DistributionType, OpportunityAction, OpportunityManualOverride, Status } from "@db/api";
|
8
8
|
import { t } from "elysia";
|
9
9
|
import { ChainResourceDto } from "../chain/chain.model";
|
10
10
|
// ─── DTOs ────────────────────────────────────────────────────────────────────
|
@@ -20,6 +20,7 @@ export const OpportunityResourceDto = t.Object({
|
|
20
20
|
dailyRewards: t.Number(),
|
21
21
|
depositUrl: t.Optional(t.String()),
|
22
22
|
explorerAddress: t.Optional(t.String()),
|
23
|
+
distributionType: t.Optional(t.Enum(DistributionType)),
|
23
24
|
tags: t.Array(t.String()),
|
24
25
|
id: t.String(),
|
25
26
|
tokens: t.Array(TokenResourceDto),
|
@@ -56,6 +56,7 @@ export declare abstract class OpportunityRepository {
|
|
56
56
|
computeChainId: number;
|
57
57
|
distributionChainId: number;
|
58
58
|
campaignId: string;
|
59
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
59
60
|
rewardTokenId: string;
|
60
61
|
amount: string;
|
61
62
|
opportunityId: string;
|
@@ -127,6 +128,7 @@ export declare abstract class OpportunityRepository {
|
|
127
128
|
DailyRewardsRecords: ({
|
128
129
|
DailyRewardsBreakdown: ({
|
129
130
|
Campaign: {
|
131
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
130
132
|
amount: string;
|
131
133
|
startTimestamp: bigint;
|
132
134
|
endTimestamp: bigint;
|
@@ -197,6 +199,7 @@ export declare abstract class OpportunityRepository {
|
|
197
199
|
computeChainId: number;
|
198
200
|
distributionChainId: number;
|
199
201
|
campaignId: string;
|
202
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
200
203
|
rewardTokenId: string;
|
201
204
|
amount: string;
|
202
205
|
opportunityId: string;
|
@@ -268,6 +271,7 @@ export declare abstract class OpportunityRepository {
|
|
268
271
|
DailyRewardsRecords: ({
|
269
272
|
DailyRewardsBreakdown: ({
|
270
273
|
Campaign: {
|
274
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
271
275
|
amount: string;
|
272
276
|
startTimestamp: bigint;
|
273
277
|
endTimestamp: bigint;
|
@@ -396,6 +400,7 @@ export declare abstract class OpportunityRepository {
|
|
396
400
|
computeChainId: number;
|
397
401
|
distributionChainId: number;
|
398
402
|
campaignId: string;
|
403
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
399
404
|
rewardTokenId: string;
|
400
405
|
amount: string;
|
401
406
|
opportunityId: string;
|
@@ -467,6 +472,7 @@ export declare abstract class OpportunityRepository {
|
|
467
472
|
DailyRewardsRecords: ({
|
468
473
|
DailyRewardsBreakdown: ({
|
469
474
|
Campaign: {
|
475
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
470
476
|
amount: string;
|
471
477
|
startTimestamp: bigint;
|
472
478
|
endTimestamp: bigint;
|
@@ -544,6 +550,7 @@ export declare abstract class OpportunityRepository {
|
|
544
550
|
computeChainId: number;
|
545
551
|
distributionChainId: number;
|
546
552
|
campaignId: string;
|
553
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
547
554
|
rewardTokenId: string;
|
548
555
|
amount: string;
|
549
556
|
opportunityId: string;
|
@@ -615,6 +622,7 @@ export declare abstract class OpportunityRepository {
|
|
615
622
|
DailyRewardsRecords: ({
|
616
623
|
DailyRewardsBreakdown: ({
|
617
624
|
Campaign: {
|
625
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
618
626
|
amount: string;
|
619
627
|
startTimestamp: bigint;
|
620
628
|
endTimestamp: bigint;
|
@@ -744,6 +752,7 @@ export declare abstract class OpportunityRepository {
|
|
744
752
|
computeChainId: number;
|
745
753
|
distributionChainId: number;
|
746
754
|
campaignId: string;
|
755
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
747
756
|
rewardTokenId: string;
|
748
757
|
amount: string;
|
749
758
|
opportunityId: string;
|
@@ -815,6 +824,7 @@ export declare abstract class OpportunityRepository {
|
|
815
824
|
DailyRewardsRecords: ({
|
816
825
|
DailyRewardsBreakdown: ({
|
817
826
|
Campaign: {
|
827
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
818
828
|
amount: string;
|
819
829
|
startTimestamp: bigint;
|
820
830
|
endTimestamp: bigint;
|
@@ -141,6 +141,7 @@ export declare abstract class OpportunityService {
|
|
141
141
|
tags: string[];
|
142
142
|
icon: string;
|
143
143
|
} | null | undefined;
|
144
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
144
145
|
depositUrl?: string | undefined;
|
145
146
|
explorerAddress?: string | undefined;
|
146
147
|
aprRecord?: {
|
@@ -278,6 +279,7 @@ export declare abstract class OpportunityService {
|
|
278
279
|
tags: string[];
|
279
280
|
icon: string;
|
280
281
|
} | null | undefined;
|
282
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
281
283
|
depositUrl?: string | undefined;
|
282
284
|
explorerAddress?: string | undefined;
|
283
285
|
aprRecord?: {
|
@@ -462,6 +464,7 @@ export declare abstract class OpportunityService {
|
|
462
464
|
price: number | null;
|
463
465
|
};
|
464
466
|
amount: bigint;
|
467
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
465
468
|
}[];
|
466
469
|
};
|
467
470
|
campaigns: {
|
@@ -531,6 +534,7 @@ export declare abstract class OpportunityService {
|
|
531
534
|
computeChainId: number;
|
532
535
|
distributionChainId: number;
|
533
536
|
campaignId: string;
|
537
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
534
538
|
rewardTokenId: string;
|
535
539
|
amount: string;
|
536
540
|
opportunityId: string;
|
@@ -633,6 +637,7 @@ export declare abstract class OpportunityService {
|
|
633
637
|
price: number | null;
|
634
638
|
};
|
635
639
|
amount: bigint;
|
640
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
636
641
|
}[];
|
637
642
|
};
|
638
643
|
campaigns: {
|
@@ -702,6 +707,7 @@ export declare abstract class OpportunityService {
|
|
702
707
|
computeChainId: number;
|
703
708
|
distributionChainId: number;
|
704
709
|
campaignId: string;
|
710
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
705
711
|
rewardTokenId: string;
|
706
712
|
amount: string;
|
707
713
|
opportunityId: string;
|
@@ -797,6 +803,7 @@ export declare abstract class OpportunityService {
|
|
797
803
|
price: number | null;
|
798
804
|
};
|
799
805
|
amount: bigint;
|
806
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
800
807
|
}[];
|
801
808
|
};
|
802
809
|
campaigns: {
|
@@ -866,6 +873,7 @@ export declare abstract class OpportunityService {
|
|
866
873
|
computeChainId: number;
|
867
874
|
distributionChainId: number;
|
868
875
|
campaignId: string;
|
876
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
869
877
|
rewardTokenId: string;
|
870
878
|
amount: string;
|
871
879
|
opportunityId: string;
|
@@ -206,6 +206,7 @@ export class OpportunityService {
|
|
206
206
|
return {
|
207
207
|
token: Campaign.RewardToken,
|
208
208
|
amount: CampaignService.getDailyAmount(Campaign.startTimestamp, Campaign.endTimestamp, BigInt(Campaign.amount)),
|
209
|
+
distributionType: Campaign.distributionType,
|
209
210
|
...breakdown,
|
210
211
|
};
|
211
212
|
}),
|
@@ -189,10 +189,10 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", false,
|
|
189
189
|
endTimestamp?: number | undefined;
|
190
190
|
blacklist?: string[] | undefined;
|
191
191
|
poolAddress?: string | undefined;
|
192
|
+
contract?: string | undefined;
|
192
193
|
marketId?: string | undefined;
|
193
194
|
strategy?: string | undefined;
|
194
195
|
poolId?: string | undefined;
|
195
|
-
contract?: string | undefined;
|
196
196
|
forwarders?: (string | {})[] | undefined;
|
197
197
|
whitelist?: string[] | undefined;
|
198
198
|
targetToken?: string | undefined;
|
@@ -36,6 +36,7 @@ export declare abstract class ProtocolRepository {
|
|
36
36
|
computeChainId: number;
|
37
37
|
distributionChainId: number;
|
38
38
|
campaignId: string;
|
39
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
39
40
|
rewardTokenId: string;
|
40
41
|
amount: string;
|
41
42
|
opportunityId: string;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { Resource } from "@/modules/v4/prisma";
|
2
|
+
import type { DistributionType } from "@db/api";
|
2
3
|
import { type Token } from "../token/token.model";
|
3
4
|
/**
|
4
5
|
* Rewards Record
|
@@ -34,6 +35,7 @@ export type DailyRewardsRecord = Resource<"DailyRewardsRecord", "opportunityId"
|
|
34
35
|
export type DailyRewardsBreakdown = Resource<"DailyRewardsBreakdown", "id" | "dailyRewardsRecordId", {
|
35
36
|
token: Token["model"];
|
36
37
|
amount: bigint;
|
38
|
+
distributionType: DistributionType;
|
37
39
|
}>;
|
38
40
|
export declare const DailyRewardsBreakdownRecordResourceDto: import("@sinclair/typebox").TObject<{
|
39
41
|
id: import("@sinclair/typebox").TString;
|
@@ -59,6 +59,7 @@ export declare abstract class RewardService {
|
|
59
59
|
price: number | null;
|
60
60
|
};
|
61
61
|
amount: bigint;
|
62
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
62
63
|
}[];
|
63
64
|
};
|
64
65
|
campaigns: {
|
@@ -128,6 +129,7 @@ export declare abstract class RewardService {
|
|
128
129
|
computeChainId: number;
|
129
130
|
distributionChainId: number;
|
130
131
|
campaignId: string;
|
132
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
131
133
|
rewardTokenId: string;
|
132
134
|
amount: string;
|
133
135
|
opportunityId: string;
|
@@ -277,6 +277,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
277
277
|
price: number | null;
|
278
278
|
};
|
279
279
|
amount: bigint;
|
280
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
280
281
|
}[];
|
281
282
|
};
|
282
283
|
campaigns: {
|
@@ -346,6 +347,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
346
347
|
computeChainId: number;
|
347
348
|
distributionChainId: number;
|
348
349
|
campaignId: string;
|
350
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
349
351
|
rewardTokenId: string;
|
350
352
|
amount: string;
|
351
353
|
opportunityId: string;
|
@@ -453,6 +455,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
453
455
|
tags: string[];
|
454
456
|
icon: string;
|
455
457
|
} | null | undefined;
|
458
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
456
459
|
depositUrl?: string | undefined;
|
457
460
|
explorerAddress?: string | undefined;
|
458
461
|
aprRecord?: {
|
@@ -584,6 +587,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
584
587
|
tags: string[];
|
585
588
|
icon: string;
|
586
589
|
} | null | undefined;
|
590
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
587
591
|
depositUrl?: string | undefined;
|
588
592
|
explorerAddress?: string | undefined;
|
589
593
|
aprRecord?: {
|
@@ -749,6 +753,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
749
753
|
tags: string[];
|
750
754
|
icon: string;
|
751
755
|
} | null | undefined;
|
756
|
+
distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
|
752
757
|
depositUrl?: string | undefined;
|
753
758
|
explorerAddress?: string | undefined;
|
754
759
|
aprRecord?: {
|
@@ -1092,6 +1097,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1092
1097
|
computeChainId: number;
|
1093
1098
|
distributionChainId: number;
|
1094
1099
|
campaignId: string;
|
1100
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
1095
1101
|
rewardTokenId: string;
|
1096
1102
|
amount: string;
|
1097
1103
|
opportunityId: string;
|
@@ -1180,6 +1186,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1180
1186
|
computeChainId: number;
|
1181
1187
|
distributionChainId: number;
|
1182
1188
|
campaignId: string;
|
1189
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
1183
1190
|
rewardTokenId: string;
|
1184
1191
|
amount: string;
|
1185
1192
|
opportunityId: string;
|
@@ -1230,11 +1237,42 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1230
1237
|
};
|
1231
1238
|
};
|
1232
1239
|
};
|
1240
|
+
} & {
|
1241
|
+
"dry-run": {
|
1242
|
+
"dynamic-data": {
|
1243
|
+
list: {
|
1244
|
+
post: {
|
1245
|
+
body: string[];
|
1246
|
+
params: {};
|
1247
|
+
query: unknown;
|
1248
|
+
headers: {
|
1249
|
+
authorization: string;
|
1250
|
+
};
|
1251
|
+
response: {
|
1252
|
+
200: unknown[];
|
1253
|
+
};
|
1254
|
+
};
|
1255
|
+
};
|
1256
|
+
};
|
1257
|
+
};
|
1233
1258
|
} & {
|
1234
1259
|
"dry-run": {
|
1235
1260
|
"dynamic-data": {
|
1236
1261
|
post: {
|
1237
|
-
body:
|
1262
|
+
body: {
|
1263
|
+
id?: string | undefined;
|
1264
|
+
subType?: number | undefined;
|
1265
|
+
campaignId?: string | undefined;
|
1266
|
+
amount?: string | undefined;
|
1267
|
+
creatorAddress?: string | undefined;
|
1268
|
+
type: string;
|
1269
|
+
params: any;
|
1270
|
+
computeChainId: number;
|
1271
|
+
distributionChainId: number;
|
1272
|
+
startTimestamp: number;
|
1273
|
+
endTimestamp: number;
|
1274
|
+
rewardToken: string;
|
1275
|
+
};
|
1238
1276
|
params: {};
|
1239
1277
|
query: unknown;
|
1240
1278
|
headers: {
|
@@ -1246,6 +1284,62 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1246
1284
|
};
|
1247
1285
|
};
|
1248
1286
|
};
|
1287
|
+
} & {
|
1288
|
+
"dry-run": {
|
1289
|
+
metadata: {
|
1290
|
+
post: {
|
1291
|
+
body: {
|
1292
|
+
id?: string | undefined;
|
1293
|
+
subType?: number | undefined;
|
1294
|
+
campaignId?: string | undefined;
|
1295
|
+
amount?: string | undefined;
|
1296
|
+
creatorAddress?: string | undefined;
|
1297
|
+
type: string;
|
1298
|
+
params: any;
|
1299
|
+
computeChainId: number;
|
1300
|
+
distributionChainId: number;
|
1301
|
+
startTimestamp: number;
|
1302
|
+
endTimestamp: number;
|
1303
|
+
rewardToken: string;
|
1304
|
+
};
|
1305
|
+
params: {};
|
1306
|
+
query: unknown;
|
1307
|
+
headers: {
|
1308
|
+
authorization: string;
|
1309
|
+
};
|
1310
|
+
response: {
|
1311
|
+
200: {
|
1312
|
+
id: string;
|
1313
|
+
chainId: number;
|
1314
|
+
type: string;
|
1315
|
+
identifier: string;
|
1316
|
+
name: string;
|
1317
|
+
status: "PAST" | "LIVE" | "SOON";
|
1318
|
+
action: any;
|
1319
|
+
tokens: ({
|
1320
|
+
symbol: string;
|
1321
|
+
id: string;
|
1322
|
+
name: string | null;
|
1323
|
+
icon: string;
|
1324
|
+
address: string;
|
1325
|
+
chainId: number;
|
1326
|
+
decimals: number;
|
1327
|
+
verified: boolean;
|
1328
|
+
isTest: boolean;
|
1329
|
+
isPoint: boolean;
|
1330
|
+
isNative: boolean;
|
1331
|
+
} & {
|
1332
|
+
price?: number | null | undefined;
|
1333
|
+
})[];
|
1334
|
+
mainProtocol: "splice" | "morpho" | "quickswap" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
1335
|
+
depositUrl: any;
|
1336
|
+
explorerAddress: string | undefined;
|
1337
|
+
tags: string[];
|
1338
|
+
};
|
1339
|
+
};
|
1340
|
+
};
|
1341
|
+
};
|
1342
|
+
};
|
1249
1343
|
} & {
|
1250
1344
|
"dry-run": {
|
1251
1345
|
metadata: {
|
@@ -1390,6 +1484,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1390
1484
|
computeChainId: number;
|
1391
1485
|
distributionChainId: number;
|
1392
1486
|
campaignId: string;
|
1487
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
1393
1488
|
rewardTokenId: string;
|
1394
1489
|
amount: string;
|
1395
1490
|
opportunityId: string;
|
@@ -1474,6 +1569,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1474
1569
|
computeChainId: number;
|
1475
1570
|
distributionChainId: number;
|
1476
1571
|
campaignId: string;
|
1572
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
1477
1573
|
rewardTokenId: string;
|
1478
1574
|
amount: string;
|
1479
1575
|
opportunityId: string;
|
@@ -1659,6 +1755,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1659
1755
|
computeChainId: number;
|
1660
1756
|
distributionChainId: number;
|
1661
1757
|
campaignId: string;
|
1758
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
1662
1759
|
rewardTokenId: string;
|
1663
1760
|
amount: string;
|
1664
1761
|
opportunityId: string;
|
@@ -4364,10 +4461,10 @@ export declare const v4: Elysia<"/v4", false, {
|
|
4364
4461
|
endTimestamp?: number | undefined;
|
4365
4462
|
blacklist?: string[] | undefined;
|
4366
4463
|
poolAddress?: string | undefined;
|
4464
|
+
contract?: string | undefined;
|
4367
4465
|
marketId?: string | undefined;
|
4368
4466
|
strategy?: string | undefined;
|
4369
4467
|
poolId?: string | undefined;
|
4370
|
-
contract?: string | undefined;
|
4371
4468
|
forwarders?: (string | {})[] | undefined;
|
4372
4469
|
whitelist?: string[] | undefined;
|
4373
4470
|
targetToken?: string | undefined;
|