@merkl/api 1.0.43 → 1.0.45
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 +2331 -2259
- package/dist/src/index.d.ts +794 -800
- package/dist/src/modules/v4/accounting/accounting.model.d.ts +2 -2
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +301 -313
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +83 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +90 -7
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -0
- package/dist/src/modules/v4/creator/creator.model.d.ts +2 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +6 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +733 -733
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -167
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +12 -3
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +2 -2
- package/dist/src/modules/v4/router.d.ts +794 -800
- package/dist/src/modules/v4/token/token.controller.d.ts +2 -2
- package/dist/src/modules/v4/token/token.model.d.ts +2 -2
- package/dist/src/modules/v4/token/token.repository.d.ts +16 -0
- package/dist/src/modules/v4/token/token.service.d.ts +1 -1
- package/dist/src/utils/pagination.d.ts +11 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -503,173 +503,6 @@ export declare abstract class OpportunityService {
|
|
503
503
|
icon: string;
|
504
504
|
};
|
505
505
|
}[]>;
|
506
|
-
static getUniqueWithCampaignsOrThrow(opportunityId: string | OpportunityUnique, query: FindOpportunityModel): Promise<{
|
507
|
-
protocol?: {
|
508
|
-
dailyRewards?: number | undefined;
|
509
|
-
numberOfLiveCampaigns?: number | undefined;
|
510
|
-
opportunityLiveTags?: string[] | undefined;
|
511
|
-
name: string;
|
512
|
-
description: string;
|
513
|
-
id: string;
|
514
|
-
url: string;
|
515
|
-
icon: string;
|
516
|
-
tags: string[];
|
517
|
-
} | null | undefined;
|
518
|
-
depositUrl?: string | undefined;
|
519
|
-
explorerAddress?: string | undefined;
|
520
|
-
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;
|
521
|
-
aprRecord?: {
|
522
|
-
timestamp: string | bigint;
|
523
|
-
cumulated: number;
|
524
|
-
breakdowns: {
|
525
|
-
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;
|
526
|
-
value: number;
|
527
|
-
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
528
|
-
identifier: string;
|
529
|
-
}[];
|
530
|
-
} | undefined;
|
531
|
-
tvlRecord?: {
|
532
|
-
timestamp: string | bigint;
|
533
|
-
total: number;
|
534
|
-
breakdowns: {
|
535
|
-
value: number;
|
536
|
-
type: "TOKEN" | "PROTOCOL";
|
537
|
-
identifier: string;
|
538
|
-
}[];
|
539
|
-
} | undefined;
|
540
|
-
rewardsRecord?: {
|
541
|
-
timestamp: string | bigint;
|
542
|
-
total: number;
|
543
|
-
breakdowns: {
|
544
|
-
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;
|
545
|
-
token: {
|
546
|
-
price?: number | null | undefined;
|
547
|
-
symbol: string;
|
548
|
-
name: string | null;
|
549
|
-
decimals: number;
|
550
|
-
address: string;
|
551
|
-
id: string;
|
552
|
-
chainId: number;
|
553
|
-
icon: string;
|
554
|
-
isNative: boolean;
|
555
|
-
isPoint: boolean;
|
556
|
-
isPreTGE: boolean;
|
557
|
-
isTest: boolean;
|
558
|
-
verified: boolean;
|
559
|
-
};
|
560
|
-
campaignId: string;
|
561
|
-
value: number;
|
562
|
-
amount: string | bigint;
|
563
|
-
}[];
|
564
|
-
} | undefined;
|
565
|
-
name: string;
|
566
|
-
apr: number;
|
567
|
-
tokens: {
|
568
|
-
price?: number | null | undefined;
|
569
|
-
symbol: string;
|
570
|
-
name: string | null;
|
571
|
-
decimals: number;
|
572
|
-
address: string;
|
573
|
-
id: string;
|
574
|
-
chainId: number;
|
575
|
-
icon: string;
|
576
|
-
isNative: boolean;
|
577
|
-
isPoint: boolean;
|
578
|
-
isPreTGE: boolean;
|
579
|
-
isTest: boolean;
|
580
|
-
verified: boolean;
|
581
|
-
}[];
|
582
|
-
tvl: number;
|
583
|
-
description: string;
|
584
|
-
id: string;
|
585
|
-
status: string;
|
586
|
-
chainId: number;
|
587
|
-
campaigns: {
|
588
|
-
description?: string | undefined;
|
589
|
-
creator?: {
|
590
|
-
tags?: string[] | undefined;
|
591
|
-
creatorId?: string | null | undefined;
|
592
|
-
address: string;
|
593
|
-
} | undefined;
|
594
|
-
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;
|
595
|
-
rootCampaignId?: string | undefined;
|
596
|
-
parentCampaignId?: string | undefined;
|
597
|
-
campaignStatus?: {
|
598
|
-
error?: string | undefined;
|
599
|
-
details?: any;
|
600
|
-
campaignId: string;
|
601
|
-
status: string;
|
602
|
-
computedUntil: string | number;
|
603
|
-
processingStarted: string | number;
|
604
|
-
} | undefined;
|
605
|
-
distributionChain?: {
|
606
|
-
explorers?: {
|
607
|
-
chainId: number;
|
608
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
609
|
-
url: string;
|
610
|
-
}[] | undefined;
|
611
|
-
name: string;
|
612
|
-
id: number;
|
613
|
-
icon: string;
|
614
|
-
} | undefined;
|
615
|
-
rewardToken: {
|
616
|
-
price?: number | null | undefined;
|
617
|
-
symbol: string;
|
618
|
-
name: string | null;
|
619
|
-
decimals: number;
|
620
|
-
address: string;
|
621
|
-
id: string;
|
622
|
-
chainId: number;
|
623
|
-
icon: string;
|
624
|
-
isNative: boolean;
|
625
|
-
isPoint: boolean;
|
626
|
-
isPreTGE: boolean;
|
627
|
-
isTest: boolean;
|
628
|
-
verified: boolean;
|
629
|
-
};
|
630
|
-
campaignId: string;
|
631
|
-
id: string;
|
632
|
-
params: any;
|
633
|
-
amount: string;
|
634
|
-
startTimestamp: string | number;
|
635
|
-
type: string;
|
636
|
-
computeChainId: number;
|
637
|
-
distributionChainId: number;
|
638
|
-
endTimestamp: string | number;
|
639
|
-
opportunityId: string;
|
640
|
-
creatorAddress: string;
|
641
|
-
subType: number | null;
|
642
|
-
rewardTokenId: string;
|
643
|
-
createdAt: string;
|
644
|
-
chain: {
|
645
|
-
explorers?: {
|
646
|
-
chainId: number;
|
647
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
648
|
-
url: string;
|
649
|
-
}[] | undefined;
|
650
|
-
name: string;
|
651
|
-
id: number;
|
652
|
-
icon: string;
|
653
|
-
};
|
654
|
-
}[];
|
655
|
-
action: string;
|
656
|
-
type: string;
|
657
|
-
howToSteps: string[];
|
658
|
-
identifier: string;
|
659
|
-
dailyRewards: number;
|
660
|
-
tags: string[];
|
661
|
-
lastCampaignCreatedAt: string;
|
662
|
-
chain: {
|
663
|
-
explorers?: {
|
664
|
-
chainId: number;
|
665
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
666
|
-
url: string;
|
667
|
-
}[] | undefined;
|
668
|
-
name: string;
|
669
|
-
id: number;
|
670
|
-
icon: string;
|
671
|
-
};
|
672
|
-
}>;
|
673
506
|
static findUniqueOrThrow(opportunityId: string | OpportunityUnique, query: FindOpportunityModel): Promise<OpportunityResourceModel>;
|
674
507
|
/**
|
675
508
|
* Get the list of opportunities satisfying the query
|
@@ -24,7 +24,12 @@ export declare enum program {
|
|
24
24
|
TermMax = "TermMax",
|
25
25
|
MorphoUnichain = "MorphoUnichain",
|
26
26
|
Katana = "Katana",
|
27
|
-
Lisk = "Lisk"
|
27
|
+
Lisk = "Lisk",
|
28
|
+
Stability = "Stability"
|
29
|
+
}
|
30
|
+
export declare enum stabilityCampaigns {
|
31
|
+
metaUSD = "metaUSD 0x1111111199558661Bf7Ff27b4F1623dC6b91Aa3e",
|
32
|
+
metaS = "metaS 0x4444444420D9De54d69b3997b7D6A31d2BF63F32"
|
28
33
|
}
|
29
34
|
export declare enum yieldNestCampaigns {
|
30
35
|
Ethereum_veYND = "Ethereum_veYND",
|
@@ -376,7 +381,8 @@ export declare enum pufferCampaigns {
|
|
376
381
|
xpufETH_zircuit = "0x9346A5043C590133FE900aec643D9622EDddBA57",
|
377
382
|
tac_puf_eth = "0x78f314241df1ac151bFD0413EEB51979515f6Abd",
|
378
383
|
pufETH_TermMax = "0xE8a7A6dD9218202996D9cF825426Ab283b3396eD",
|
379
|
-
pufETH_TermMax_Vault = "0xdC4d99aB6c69943b4E17431357AbC5b54B4C2F56"
|
384
|
+
pufETH_TermMax_Vault = "0xdC4d99aB6c69943b4E17431357AbC5b54B4C2F56",
|
385
|
+
pancakeswapv3_puffer_wbnb = "0xDA7630A141dBB6382DDb6409AeA7331da543B0Bb"
|
380
386
|
}
|
381
387
|
export declare enum zkSyncCampaigns {
|
382
388
|
Izumi_Finance_Zk_Weth = "Izumi Finance ZK/WETH 0xd62bc9f19bd94fde9c41df4b6eb6419ea6b8e25c",
|
@@ -2505,7 +2511,10 @@ declare const katanaCampaignsInterface: {
|
|
2505
2511
|
apr: string;
|
2506
2512
|
};
|
2507
2513
|
};
|
2514
|
+
declare const stabilityCampaignsInterface: {
|
2515
|
+
[key in stabilityCampaigns]: partialConfig;
|
2516
|
+
};
|
2508
2517
|
export declare const MerklInterfaceCampaigns: {
|
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;
|
2518
|
+
[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 | typeof stabilityCampaignsInterface;
|
2510
2519
|
};
|
2511
2520
|
export {};
|
@@ -24,8 +24,8 @@ export declare const ProtocolController: Elysia<"/protocols", {
|
|
24
24
|
id?: string | undefined;
|
25
25
|
items?: number | undefined;
|
26
26
|
tags?: string[] | undefined;
|
27
|
-
page?: number | undefined;
|
28
27
|
test?: boolean | undefined;
|
28
|
+
page?: number | undefined;
|
29
29
|
opportunityTag?: string | undefined;
|
30
30
|
};
|
31
31
|
headers: unknown;
|
@@ -63,8 +63,8 @@ export declare const ProtocolController: Elysia<"/protocols", {
|
|
63
63
|
id?: string | undefined;
|
64
64
|
items?: number | undefined;
|
65
65
|
tags?: string[] | undefined;
|
66
|
-
page?: number | undefined;
|
67
66
|
test?: boolean | undefined;
|
67
|
+
page?: number | undefined;
|
68
68
|
opportunityTag?: string | undefined;
|
69
69
|
};
|
70
70
|
headers: unknown;
|