@merkl/api 1.0.41 → 1.0.43
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 +4 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -2
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -3
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +26 -3
- package/dist/src/modules/v4/router.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -531,6 +531,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
531
531
|
campaigns?: boolean | undefined;
|
532
532
|
point?: boolean | undefined;
|
533
533
|
test?: boolean | undefined;
|
534
|
+
excludeSubCampaigns?: boolean | undefined;
|
534
535
|
};
|
535
536
|
headers: unknown;
|
536
537
|
response: {
|
@@ -894,6 +895,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
894
895
|
campaigns?: boolean | undefined;
|
895
896
|
point?: boolean | undefined;
|
896
897
|
test?: boolean | undefined;
|
898
|
+
excludeSubCampaigns?: boolean | undefined;
|
897
899
|
};
|
898
900
|
headers: unknown;
|
899
901
|
response: {
|
@@ -10390,6 +10392,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
10390
10392
|
campaigns?: boolean | undefined;
|
10391
10393
|
point?: boolean | undefined;
|
10392
10394
|
test?: boolean | undefined;
|
10395
|
+
excludeSubCampaigns?: boolean | undefined;
|
10393
10396
|
};
|
10394
10397
|
fetch?: RequestInit | undefined;
|
10395
10398
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
@@ -10518,6 +10521,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
10518
10521
|
campaigns?: boolean | undefined;
|
10519
10522
|
point?: boolean | undefined;
|
10520
10523
|
test?: boolean | undefined;
|
10524
|
+
excludeSubCampaigns?: boolean | undefined;
|
10521
10525
|
};
|
10522
10526
|
fetch?: RequestInit | undefined;
|
10523
10527
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
package/dist/src/index.d.ts
CHANGED
@@ -532,6 +532,7 @@ declare const app: Elysia<"", {
|
|
532
532
|
campaigns?: boolean | undefined;
|
533
533
|
point?: boolean | undefined;
|
534
534
|
test?: boolean | undefined;
|
535
|
+
excludeSubCampaigns?: boolean | undefined;
|
535
536
|
};
|
536
537
|
headers: unknown;
|
537
538
|
response: {
|
@@ -895,6 +896,7 @@ declare const app: Elysia<"", {
|
|
895
896
|
campaigns?: boolean | undefined;
|
896
897
|
point?: boolean | undefined;
|
897
898
|
test?: boolean | undefined;
|
899
|
+
excludeSubCampaigns?: boolean | undefined;
|
898
900
|
};
|
899
901
|
headers: unknown;
|
900
902
|
response: {
|
@@ -332,6 +332,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
332
332
|
campaigns?: boolean | undefined;
|
333
333
|
point?: boolean | undefined;
|
334
334
|
test?: boolean | undefined;
|
335
|
+
excludeSubCampaigns?: boolean | undefined;
|
335
336
|
};
|
336
337
|
headers: unknown;
|
337
338
|
response: {
|
@@ -695,6 +696,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
695
696
|
campaigns?: boolean | undefined;
|
696
697
|
point?: boolean | undefined;
|
697
698
|
test?: boolean | undefined;
|
699
|
+
excludeSubCampaigns?: boolean | undefined;
|
698
700
|
};
|
699
701
|
headers: unknown;
|
700
702
|
response: {
|
@@ -402,10 +402,11 @@ export declare const GetOpportunitiesQueryDto: import("@sinclair/typebox").TObje
|
|
402
402
|
page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
403
403
|
items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
404
404
|
}>;
|
405
|
-
export declare const
|
405
|
+
export declare const FindOpportunityDto: import("@sinclair/typebox").TObject<{
|
406
406
|
test: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
407
407
|
point: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
408
408
|
campaigns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
409
|
+
excludeSubCampaigns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
409
410
|
}>;
|
410
411
|
export declare const CreateOpportunityDto: import("@sinclair/typebox").TObject<{
|
411
412
|
chainId: import("@sinclair/typebox").TNumber;
|
@@ -479,7 +480,7 @@ export declare const UpdateOpportunityDto: import("@sinclair/typebox").TObject<{
|
|
479
480
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
480
481
|
}>;
|
481
482
|
export type GetOpportunitiesQueryModel = typeof GetOpportunitiesQueryDto.static;
|
482
|
-
export type
|
483
|
+
export type FindOpportunityModel = typeof FindOpportunityDto.static;
|
483
484
|
export type CreateOpportunityModel = typeof CreateOpportunityDto.static;
|
484
485
|
export type OpportunityAggregateField = typeof OpportunityAggregateFieldDto.static;
|
485
486
|
export type OpportunityResourceModel = typeof OpportunityResourceDto.static;
|
@@ -4,7 +4,7 @@ import type { AprRecord } from "../../../modules/v4/apr/apr.model";
|
|
4
4
|
import type { Campaign } from "../../../modules/v4/campaign/campaign.model";
|
5
5
|
import type { DailyRewardsRecord } from "../../../modules/v4/reward/reward.model";
|
6
6
|
import type { TvlRecord } from "../../../modules/v4/tvl/tvl.model";
|
7
|
-
import type { CreateOpportunityModel, GetOpportunitiesQueryModel, Opportunity } from "./opportunity.model";
|
7
|
+
import type { CreateOpportunityModel, FindOpportunityModel, GetOpportunitiesQueryModel, Opportunity } from "./opportunity.model";
|
8
8
|
export declare abstract class OpportunityRepository {
|
9
9
|
#private;
|
10
10
|
static create(newOpp: CreateOpportunityModel & {
|
@@ -219,7 +219,7 @@ export declare abstract class OpportunityRepository {
|
|
219
219
|
tags: string[];
|
220
220
|
lastCampaignCreatedAt: Date;
|
221
221
|
}) | null>;
|
222
|
-
static findUniqueOrThrow(id: string,
|
222
|
+
static findUniqueOrThrow(id: string, query: FindOpportunityModel): Promise<{
|
223
223
|
Campaigns: {
|
224
224
|
campaignId: string;
|
225
225
|
description: string | null;
|
@@ -3,7 +3,7 @@ import { type OpportunityAction, type OpportunityManualOverride, type Prisma } f
|
|
3
3
|
import type { CampaignWithParams, GetCampaignQueryModel } from "../../../modules/v4/campaign/campaign.model";
|
4
4
|
import type { Protocol } from "../protocol/protocol.model";
|
5
5
|
import type { Token } from "../token/token.model";
|
6
|
-
import type { CreateOpportunityModel, GetOpportunitiesQueryModel, LightOpportunityFromDB, Opportunity, OpportunityOverrideModel, OpportunityResourceModel, OpportunityUnique } from "./opportunity.model";
|
6
|
+
import type { CreateOpportunityModel, FindOpportunityModel, GetOpportunitiesQueryModel, LightOpportunityFromDB, Opportunity, OpportunityOverrideModel, OpportunityResourceModel, OpportunityUnique } from "./opportunity.model";
|
7
7
|
import { OpportunityRepository } from "./opportunity.repository";
|
8
8
|
export declare abstract class OpportunityService {
|
9
9
|
#private;
|
@@ -503,7 +503,7 @@ export declare abstract class OpportunityService {
|
|
503
503
|
icon: string;
|
504
504
|
};
|
505
505
|
}[]>;
|
506
|
-
static getUniqueWithCampaignsOrThrow(opportunityId: string | OpportunityUnique,
|
506
|
+
static getUniqueWithCampaignsOrThrow(opportunityId: string | OpportunityUnique, query: FindOpportunityModel): Promise<{
|
507
507
|
protocol?: {
|
508
508
|
dailyRewards?: number | undefined;
|
509
509
|
numberOfLiveCampaigns?: number | undefined;
|
@@ -670,7 +670,7 @@ export declare abstract class OpportunityService {
|
|
670
670
|
icon: string;
|
671
671
|
};
|
672
672
|
}>;
|
673
|
-
static findUniqueOrThrow(opportunityId: string | OpportunityUnique,
|
673
|
+
static findUniqueOrThrow(opportunityId: string | OpportunityUnique, query: FindOpportunityModel): Promise<OpportunityResourceModel>;
|
674
674
|
/**
|
675
675
|
* Get the list of opportunities satisfying the query
|
676
676
|
* @param query
|
@@ -23,13 +23,17 @@ export declare enum program {
|
|
23
23
|
YieldNest = "YieldNest",
|
24
24
|
TermMax = "TermMax",
|
25
25
|
MorphoUnichain = "MorphoUnichain",
|
26
|
-
Katana = "Katana"
|
26
|
+
Katana = "Katana",
|
27
|
+
Lisk = "Lisk"
|
27
28
|
}
|
28
29
|
export declare enum yieldNestCampaigns {
|
29
30
|
Ethereum_veYND = "Ethereum_veYND",
|
30
31
|
Ink_Curve_ynETHx_ETH = "Ink Curve ynETHx/ETH 0x4daAcF1af85AB4728FCB63901EFc2E984b006D37",
|
31
32
|
Ethereum_YND_WL = "Ethereum YND TEMP Locker and veYND"
|
32
33
|
}
|
34
|
+
export declare enum liskCampaigns {
|
35
|
+
Velodrome_WETH_wstETH_Lisk = "Velodrome WETH/wstETH Lisk 0x9C69E0B64A63aA7daA0B5dc61Df3Cc77ea05BcB3"
|
36
|
+
}
|
33
37
|
export declare enum KatanaCampaigns {
|
34
38
|
Ethereum_kpdUSDC = "Ethereum kpdUSDC 0x7B5A0182E400b241b317e781a4e9dEdFc1429822 9.589041096",
|
35
39
|
Ethereum_kpdUSDT = "Ethereum kpdUSDT 0x48c03B6FfD0008460F8657Db1037C7e09dEedfcb 9.589041096",
|
@@ -219,7 +223,10 @@ export declare enum celoCampaigns {
|
|
219
223
|
UniswapV3_USDT_cJPY_Celo = "UniswapV3 USDT/cGPY Celo 0x04fEAE0d4a3D0051397Ee09314dAD768a37Fb539",
|
220
224
|
UniswapV3_USDT_cCHF_Celo = "UniswapV3 USDT/cCHF Celo 0x1aa2f83357150F811B1010c00020AbE1462feB01",
|
221
225
|
UniswapV3_CHAR_WETH_Celo = "UniswapV3 CHAR/WETH Celo 0x8aB8D851C6B31D8a4d42Fd7d3e47B20861B025F2",
|
222
|
-
UniswapV3_CHAR_ETHIX_Celo = "UniswapV3 CHAR/ETHIX Celo 0xa0572147474e6c64e2e3b4af5fc4587bce492647"
|
226
|
+
UniswapV3_CHAR_ETHIX_Celo = "UniswapV3 CHAR/ETHIX Celo 0xa0572147474e6c64e2e3b4af5fc4587bce492647",
|
227
|
+
UniswapV3_USDT_vEUR_Celo = "UniswapV3 USDT/vEUR Celo 0xf9fE40A3aD409856818af8EB8912A4d79c6cb1d2",
|
228
|
+
UniswapV3_USDT_vGBP_Celo = "UniswapV3 USDT/vGBP Celo 0x8C7545d227140fabB2709eA41E1A927F4e65b946",
|
229
|
+
UniswapV3_USDT_vCHF_Celo = "UniswapV3 USDT/vCHF Celo 0x899f68521196b4db5E3525e8CE1695Efa9b05533"
|
223
230
|
}
|
224
231
|
export declare enum beetsCampaigns {
|
225
232
|
Staked_Sonic_Symphony_Beets = "Staked Sonic Symphony Beets 0x374641076B68371e69D03C417DAc3E5F236c32FA",
|
@@ -546,6 +553,22 @@ export declare enum modeCampaigns {
|
|
546
553
|
Bedrock_Ionic_Supply_ionuniBTC_Mode = "Bedrock Ionic Supply uniBTC 0xa48750877a83f7dec11f722178c317b54a44d142",
|
547
554
|
Bedrock_Ironclad_Supply_uniBTC_Mode = "Bedrock Ironclad Supply uniBTC 0x0F041cf2ae959f39215EFfB50d681Df55D4d90B1"
|
548
555
|
}
|
556
|
+
declare const LiskInterfaceCampaigns: {
|
557
|
+
"Velodrome WETH/wstETH Lisk 0x9C69E0B64A63aA7daA0B5dc61Df3Cc77ea05BcB3": {
|
558
|
+
campaignType: Campaign;
|
559
|
+
computeChainId: ChainId;
|
560
|
+
hooks: never[];
|
561
|
+
poolAddress: string;
|
562
|
+
whitelist: never[];
|
563
|
+
blacklist: never[];
|
564
|
+
url: string;
|
565
|
+
forwarders: never[];
|
566
|
+
isOutOfRangeIncentivized: boolean;
|
567
|
+
weightFees: number;
|
568
|
+
weightToken0: number;
|
569
|
+
weightToken1: number;
|
570
|
+
};
|
571
|
+
};
|
549
572
|
declare const MorphoUnichainInterfaceCampaigns: {
|
550
573
|
"Morpho Supply WETH market wstETH collateral 0x665c97ec413f4371e1c30c71153757e9b9144dfbe4284a3e910f85dedba6527d": {
|
551
574
|
campaignType: Campaign;
|
@@ -2483,6 +2506,6 @@ declare const katanaCampaignsInterface: {
|
|
2483
2506
|
};
|
2484
2507
|
};
|
2485
2508
|
export declare const MerklInterfaceCampaigns: {
|
2486
|
-
[key in program]: typeof PufferInterfaceCampaigns | typeof ZkSyncInterfaceCampaigns | typeof ModeInterfaceCampaigns | typeof VicunaInterfaceCampaigns | typeof SonicmarketInterfaceCampaigns | typeof ReserveInterfaceCampaigns | typeof BeetsInterfaceCampaigns | typeof CeloInterfaceCampaigns | typeof EtherlinkInterfaceCampaigns | typeof SwapxInterfaceCampaigns | typeof AnglesInterfaceCampaigns | typeof RoninInterfaceCampaigns | typeof TACInterfaceCampaigns | typeof HypurrFiSubPayloads | typeof WorldChainInterfaceCampaigns | typeof StableJackInterfaceCampaigns | typeof CornInterfaceCampaigns | typeof GauntletCompoundInterfaceCampaigns | typeof YieldNetCampaigns | typeof TermMaxInterfaceCampaigns | typeof MorphoUnichainInterfaceCampaigns | typeof katanaCampaignsInterface;
|
2509
|
+
[key in program]: typeof PufferInterfaceCampaigns | typeof ZkSyncInterfaceCampaigns | typeof ModeInterfaceCampaigns | typeof VicunaInterfaceCampaigns | typeof SonicmarketInterfaceCampaigns | typeof ReserveInterfaceCampaigns | typeof BeetsInterfaceCampaigns | typeof CeloInterfaceCampaigns | typeof EtherlinkInterfaceCampaigns | typeof SwapxInterfaceCampaigns | typeof AnglesInterfaceCampaigns | typeof RoninInterfaceCampaigns | typeof TACInterfaceCampaigns | typeof HypurrFiSubPayloads | typeof WorldChainInterfaceCampaigns | typeof StableJackInterfaceCampaigns | typeof CornInterfaceCampaigns | typeof GauntletCompoundInterfaceCampaigns | typeof YieldNetCampaigns | typeof TermMaxInterfaceCampaigns | typeof MorphoUnichainInterfaceCampaigns | typeof katanaCampaignsInterface | typeof LiskInterfaceCampaigns;
|
2487
2510
|
};
|
2488
2511
|
export {};
|
@@ -341,6 +341,7 @@ export declare const v4: Elysia<"/v4", {
|
|
341
341
|
campaigns?: boolean | undefined;
|
342
342
|
point?: boolean | undefined;
|
343
343
|
test?: boolean | undefined;
|
344
|
+
excludeSubCampaigns?: boolean | undefined;
|
344
345
|
};
|
345
346
|
headers: unknown;
|
346
347
|
response: {
|
@@ -704,6 +705,7 @@ export declare const v4: Elysia<"/v4", {
|
|
704
705
|
campaigns?: boolean | undefined;
|
705
706
|
point?: boolean | undefined;
|
706
707
|
test?: boolean | undefined;
|
708
|
+
excludeSubCampaigns?: boolean | undefined;
|
707
709
|
};
|
708
710
|
headers: unknown;
|
709
711
|
response: {
|