@merkl/api 0.10.131 → 0.10.133
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/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/blacklist/blacklist.controller.js +2 -6
- package/dist/src/modules/v4/campaign/campaign.controller.js +6 -18
- package/dist/src/modules/v4/chain/chain.controller.js +3 -6
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +1 -4
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +2 -6
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +3 -9
- package/dist/src/modules/v4/participate/participate.controller.d.ts +1 -0
- package/dist/src/modules/v4/participate/participate.controller.js +5 -3
- package/dist/src/modules/v4/price/price.controller.js +11 -21
- 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/modules/v4/status/status.controller.js +6 -18
- package/dist/src/modules/v4/token/token.controller.js +3 -6
- 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 +4 -3
- package/dist/src/modules/v4/apr/apr.controller.d.ts +0 -0
- package/dist/src/modules/v4/apr/apr.controller.js +0 -1
- package/dist/src/modules/v4/tvl/tvl.controller.d.ts +0 -0
- package/dist/src/modules/v4/tvl/tvl.controller.js +0 -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;
|
@@ -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
|
}
|