@merkl/api 0.10.132 → 0.10.133
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/constants.d.ts +1 -0
- package/dist/src/constants.js +1 -0
- package/dist/src/eden/index.d.ts +16 -25
- package/dist/src/index.d.ts +4 -7
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.js +4 -8
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +11 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MaverickBPProcessor.d.ts +50 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MaverickBPProcessor.js +75 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +2 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +2 -0
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -0
- package/dist/src/modules/v4/participate/participate.controller.d.ts +1 -0
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +3 -7
- package/dist/src/modules/v4/protocol/protocol.controller.js +4 -9
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +2 -2
- package/dist/src/modules/v4/protocol/protocol.model.js +4 -1
- package/dist/src/modules/v4/protocol/protocol.service.js +4 -3
- package/dist/src/modules/v4/router.d.ts +4 -7
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +4 -7
- package/dist/src/routes/v3/blacklist.d.ts +4 -7
- package/dist/src/routes/v3/campaigns.d.ts +4 -7
- package/dist/src/routes/v3/campaignsInfo.d.ts +4 -7
- package/dist/src/routes/v3/multiChainPositions.d.ts +4 -7
- package/dist/src/routes/v3/opportunity.d.ts +4 -7
- package/dist/src/routes/v3/positions.d.ts +4 -7
- package/dist/src/routes/v3/rewards.d.ts +4 -7
- package/dist/src/routes/v3/updates.d.ts +4 -7
- package/dist/src/routes/v3/userRewards.d.ts +4 -7
- package/dist/src/utils/decodeCalls.js +3 -1
- package/dist/src/utils/encodeCalls.js +7 -1
- package/dist/src/utils/generateCardName.js +2 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -1
@@ -648,6 +648,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
648
648
|
name: string;
|
649
649
|
url: string;
|
650
650
|
description: string;
|
651
|
+
id: string;
|
651
652
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
652
653
|
icon: string;
|
653
654
|
} | null;
|
@@ -674,6 +675,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
674
675
|
name: string;
|
675
676
|
url: string;
|
676
677
|
description: string;
|
678
|
+
id: string;
|
677
679
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
678
680
|
icon: string;
|
679
681
|
} & {})[] | null;
|
@@ -687,13 +689,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
687
689
|
get: {
|
688
690
|
body: unknown;
|
689
691
|
params: {};
|
690
|
-
query:
|
691
|
-
name?: string | undefined;
|
692
|
-
id?: string[] | undefined;
|
693
|
-
items?: number | undefined;
|
694
|
-
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
695
|
-
page?: number | undefined;
|
696
|
-
};
|
692
|
+
query: unknown;
|
697
693
|
headers: unknown;
|
698
694
|
response: {
|
699
695
|
200: number;
|
@@ -1773,6 +1769,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1773
1769
|
name: string;
|
1774
1770
|
url: string;
|
1775
1771
|
description: string;
|
1772
|
+
id: string;
|
1776
1773
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
1777
1774
|
icon: string;
|
1778
1775
|
} & {})[] | null;
|
@@ -639,6 +639,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
639
639
|
name: string;
|
640
640
|
url: string;
|
641
641
|
description: string;
|
642
|
+
id: string;
|
642
643
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
643
644
|
icon: string;
|
644
645
|
} | null;
|
@@ -665,6 +666,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
665
666
|
name: string;
|
666
667
|
url: string;
|
667
668
|
description: string;
|
669
|
+
id: string;
|
668
670
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
669
671
|
icon: string;
|
670
672
|
} & {})[] | null;
|
@@ -678,13 +680,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
678
680
|
get: {
|
679
681
|
body: unknown;
|
680
682
|
params: {};
|
681
|
-
query:
|
682
|
-
name?: string | undefined;
|
683
|
-
id?: string[] | undefined;
|
684
|
-
items?: number | undefined;
|
685
|
-
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
686
|
-
page?: number | undefined;
|
687
|
-
};
|
683
|
+
query: unknown;
|
688
684
|
headers: unknown;
|
689
685
|
response: {
|
690
686
|
200: number;
|
@@ -1764,6 +1760,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1764
1760
|
name: string;
|
1765
1761
|
url: string;
|
1766
1762
|
description: string;
|
1763
|
+
id: string;
|
1767
1764
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
1768
1765
|
icon: string;
|
1769
1766
|
} & {})[] | null;
|
@@ -644,6 +644,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
644
644
|
name: string;
|
645
645
|
url: string;
|
646
646
|
description: string;
|
647
|
+
id: string;
|
647
648
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
648
649
|
icon: string;
|
649
650
|
} | null;
|
@@ -670,6 +671,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
670
671
|
name: string;
|
671
672
|
url: string;
|
672
673
|
description: string;
|
674
|
+
id: string;
|
673
675
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
674
676
|
icon: string;
|
675
677
|
} & {})[] | null;
|
@@ -683,13 +685,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
683
685
|
get: {
|
684
686
|
body: unknown;
|
685
687
|
params: {};
|
686
|
-
query:
|
687
|
-
name?: string | undefined;
|
688
|
-
id?: string[] | undefined;
|
689
|
-
items?: number | undefined;
|
690
|
-
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
691
|
-
page?: number | undefined;
|
692
|
-
};
|
688
|
+
query: unknown;
|
693
689
|
headers: unknown;
|
694
690
|
response: {
|
695
691
|
200: number;
|
@@ -1769,6 +1765,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1769
1765
|
name: string;
|
1770
1766
|
url: string;
|
1771
1767
|
description: string;
|
1768
|
+
id: string;
|
1772
1769
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
1773
1770
|
icon: string;
|
1774
1771
|
} & {})[] | null;
|
@@ -662,6 +662,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
662
662
|
name: string;
|
663
663
|
url: string;
|
664
664
|
description: string;
|
665
|
+
id: string;
|
665
666
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
666
667
|
icon: string;
|
667
668
|
} | null;
|
@@ -688,6 +689,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
688
689
|
name: string;
|
689
690
|
url: string;
|
690
691
|
description: string;
|
692
|
+
id: string;
|
691
693
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
692
694
|
icon: string;
|
693
695
|
} & {})[] | null;
|
@@ -701,13 +703,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
701
703
|
get: {
|
702
704
|
body: unknown;
|
703
705
|
params: {};
|
704
|
-
query:
|
705
|
-
name?: string | undefined;
|
706
|
-
id?: string[] | undefined;
|
707
|
-
items?: number | undefined;
|
708
|
-
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
709
|
-
page?: number | undefined;
|
710
|
-
};
|
706
|
+
query: unknown;
|
711
707
|
headers: unknown;
|
712
708
|
response: {
|
713
709
|
200: number;
|
@@ -1787,6 +1783,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1787
1783
|
name: string;
|
1788
1784
|
url: string;
|
1789
1785
|
description: string;
|
1786
|
+
id: string;
|
1790
1787
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
1791
1788
|
icon: string;
|
1792
1789
|
} & {})[] | null;
|
@@ -663,6 +663,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
663
663
|
name: string;
|
664
664
|
url: string;
|
665
665
|
description: string;
|
666
|
+
id: string;
|
666
667
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
667
668
|
icon: string;
|
668
669
|
} | null;
|
@@ -689,6 +690,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
689
690
|
name: string;
|
690
691
|
url: string;
|
691
692
|
description: string;
|
693
|
+
id: string;
|
692
694
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
693
695
|
icon: string;
|
694
696
|
} & {})[] | null;
|
@@ -702,13 +704,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
702
704
|
get: {
|
703
705
|
body: unknown;
|
704
706
|
params: {};
|
705
|
-
query:
|
706
|
-
name?: string | undefined;
|
707
|
-
id?: string[] | undefined;
|
708
|
-
items?: number | undefined;
|
709
|
-
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
710
|
-
page?: number | undefined;
|
711
|
-
};
|
707
|
+
query: unknown;
|
712
708
|
headers: unknown;
|
713
709
|
response: {
|
714
710
|
200: number;
|
@@ -1788,6 +1784,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1788
1784
|
name: string;
|
1789
1785
|
url: string;
|
1790
1786
|
description: string;
|
1787
|
+
id: string;
|
1791
1788
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
1792
1789
|
icon: string;
|
1793
1790
|
} & {})[] | null;
|
@@ -645,6 +645,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
645
645
|
name: string;
|
646
646
|
url: string;
|
647
647
|
description: string;
|
648
|
+
id: string;
|
648
649
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
649
650
|
icon: string;
|
650
651
|
} | null;
|
@@ -671,6 +672,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
671
672
|
name: string;
|
672
673
|
url: string;
|
673
674
|
description: string;
|
675
|
+
id: string;
|
674
676
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
675
677
|
icon: string;
|
676
678
|
} & {})[] | null;
|
@@ -684,13 +686,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
684
686
|
get: {
|
685
687
|
body: unknown;
|
686
688
|
params: {};
|
687
|
-
query:
|
688
|
-
name?: string | undefined;
|
689
|
-
id?: string[] | undefined;
|
690
|
-
items?: number | undefined;
|
691
|
-
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
692
|
-
page?: number | undefined;
|
693
|
-
};
|
689
|
+
query: unknown;
|
694
690
|
headers: unknown;
|
695
691
|
response: {
|
696
692
|
200: number;
|
@@ -1770,6 +1766,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1770
1766
|
name: string;
|
1771
1767
|
url: string;
|
1772
1768
|
description: string;
|
1769
|
+
id: string;
|
1773
1770
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
1774
1771
|
icon: string;
|
1775
1772
|
} & {})[] | null;
|
@@ -646,6 +646,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
646
646
|
name: string;
|
647
647
|
url: string;
|
648
648
|
description: string;
|
649
|
+
id: string;
|
649
650
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
650
651
|
icon: string;
|
651
652
|
} | null;
|
@@ -672,6 +673,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
672
673
|
name: string;
|
673
674
|
url: string;
|
674
675
|
description: string;
|
676
|
+
id: string;
|
675
677
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
676
678
|
icon: string;
|
677
679
|
} & {})[] | null;
|
@@ -685,13 +687,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
685
687
|
get: {
|
686
688
|
body: unknown;
|
687
689
|
params: {};
|
688
|
-
query:
|
689
|
-
name?: string | undefined;
|
690
|
-
id?: string[] | undefined;
|
691
|
-
items?: number | undefined;
|
692
|
-
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
693
|
-
page?: number | undefined;
|
694
|
-
};
|
690
|
+
query: unknown;
|
695
691
|
headers: unknown;
|
696
692
|
response: {
|
697
693
|
200: number;
|
@@ -1771,6 +1767,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1771
1767
|
name: string;
|
1772
1768
|
url: string;
|
1773
1769
|
description: string;
|
1770
|
+
id: string;
|
1774
1771
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
1775
1772
|
icon: string;
|
1776
1773
|
} & {})[] | null;
|
@@ -648,6 +648,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
648
648
|
name: string;
|
649
649
|
url: string;
|
650
650
|
description: string;
|
651
|
+
id: string;
|
651
652
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
652
653
|
icon: string;
|
653
654
|
} | null;
|
@@ -674,6 +675,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
674
675
|
name: string;
|
675
676
|
url: string;
|
676
677
|
description: string;
|
678
|
+
id: string;
|
677
679
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
678
680
|
icon: string;
|
679
681
|
} & {})[] | null;
|
@@ -687,13 +689,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
687
689
|
get: {
|
688
690
|
body: unknown;
|
689
691
|
params: {};
|
690
|
-
query:
|
691
|
-
name?: string | undefined;
|
692
|
-
id?: string[] | undefined;
|
693
|
-
items?: number | undefined;
|
694
|
-
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
695
|
-
page?: number | undefined;
|
696
|
-
};
|
692
|
+
query: unknown;
|
697
693
|
headers: unknown;
|
698
694
|
response: {
|
699
695
|
200: number;
|
@@ -1773,6 +1769,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1773
1769
|
name: string;
|
1774
1770
|
url: string;
|
1775
1771
|
description: string;
|
1772
|
+
id: string;
|
1776
1773
|
tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
|
1777
1774
|
icon: string;
|
1778
1775
|
} & {})[] | null;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, RadiantInterface, RfxInterface, SturdyInterface, TorosInterface, UniswapV2PoolInterface, } from "@sdk";
|
1
|
+
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, RadiantInterface, RfxInterface, SturdyInterface, TorosInterface, UniswapV2PoolInterface, } from "@sdk";
|
2
2
|
import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
|
3
3
|
export function decodeCall(calls, index, key, type) {
|
4
4
|
const returnData = calls[index];
|
@@ -164,6 +164,8 @@ export function decodeCall(calls, index, key, type) {
|
|
164
164
|
return PendleInterface.decodeFunctionResult("readTokens", returnData)[0];
|
165
165
|
case "readTokens2":
|
166
166
|
return PendleInterface.decodeFunctionResult("readTokens", returnData)[2];
|
167
|
+
case "boostedPositionInformation":
|
168
|
+
return MaverickBPLensInterface.decodeFunctionResult("boostedPositionInformation", returnData)[0];
|
167
169
|
default:
|
168
170
|
throw new Error(`Key not recognized for ${key}`);
|
169
171
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
|
2
|
-
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, RadiantInterface, RfxDatastoreInterface, SturdyInterface, TorosInterface, UniswapV2PoolInterface, } from "@sdk";
|
2
|
+
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, RadiantInterface, RfxDatastoreInterface, SturdyInterface, TorosInterface, UniswapV2PoolInterface, } from "@sdk";
|
3
3
|
import { fluidInterface } from "src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1";
|
4
4
|
export function createCall(target, key, type, metaData) {
|
5
5
|
switch (key) {
|
@@ -234,6 +234,12 @@ export function createCall(target, key, type, metaData) {
|
|
234
234
|
callData: PendleInterface.encodeFunctionData("readTokens"),
|
235
235
|
target: target,
|
236
236
|
};
|
237
|
+
case "boostedPositionInformation":
|
238
|
+
return {
|
239
|
+
allowFailure: true,
|
240
|
+
callData: MaverickBPLensInterface.encodeFunctionData("boostedPositionInformation", [metaData]),
|
241
|
+
target: target,
|
242
|
+
};
|
237
243
|
default:
|
238
244
|
throw new Error(`Unknown key ${key}`);
|
239
245
|
}
|
@@ -83,6 +83,8 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
|
|
83
83
|
return `Stake ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
|
84
84
|
case tokenType.woofi:
|
85
85
|
return `Supercharge ${typeInfo.symbolUnderlying} on ${typeInfo.protocol}`;
|
86
|
+
case tokenType.maverickBoostedPosition:
|
87
|
+
return `Hold or stake Maverick Boosted Position ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
|
86
88
|
default:
|
87
89
|
return `Hold ${typeInfo.name} (${campaign.campaignParameters.symbolTargetToken})`;
|
88
90
|
}
|