@merkl/api 0.10.180 → 0.10.181
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 +12 -12
- package/dist/src/index.d.ts +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.js +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AuraProcessor.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AuraProcessor.js +12 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleProcessor.js +1 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.d.ts +39 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.js +45 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +2 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.d.ts +2 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +25 -1
- package/dist/src/modules/v4/router.d.ts +4 -4
- package/dist/src/modules/v4/token/token.controller.d.ts +4 -4
- package/dist/src/modules/v4/token/token.service.d.ts +4 -4
- package/dist/src/modules/v4/token/token.service.js +2 -2
- package/dist/src/routes/v3/blacklist.d.ts +4 -4
- package/dist/src/routes/v3/campaigns.d.ts +4 -4
- package/dist/src/routes/v3/campaignsInfo.d.ts +4 -4
- package/dist/src/routes/v3/multiChainPositions.d.ts +4 -4
- package/dist/src/routes/v3/opportunity.d.ts +4 -4
- package/dist/src/routes/v3/positions.d.ts +4 -4
- package/dist/src/routes/v3/rewards.d.ts +4 -4
- package/dist/src/routes/v3/updates.d.ts +4 -4
- package/dist/src/routes/v3/userRewards.d.ts +4 -4
- package/dist/src/utils/decodeCalls.js +5 -1
- package/dist/src/utils/encodeCalls.js +13 -1
- package/dist/src/utils/generateCardName.js +3 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -908,7 +908,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
908
908
|
};
|
909
909
|
headers: unknown;
|
910
910
|
response: {
|
911
|
-
200: {
|
911
|
+
200: ({
|
912
912
|
symbol: string;
|
913
913
|
name: string | null;
|
914
914
|
id: string;
|
@@ -916,11 +916,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
916
916
|
address: string;
|
917
917
|
icon: string;
|
918
918
|
decimals: number;
|
919
|
-
displaySymbol: string;
|
920
919
|
verified: boolean;
|
921
920
|
isTest: boolean;
|
922
|
-
|
923
|
-
|
921
|
+
} & {
|
922
|
+
price?: number | null | undefined;
|
923
|
+
})[];
|
924
924
|
};
|
925
925
|
};
|
926
926
|
};
|
@@ -910,7 +910,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
910
910
|
};
|
911
911
|
headers: unknown;
|
912
912
|
response: {
|
913
|
-
200: {
|
913
|
+
200: ({
|
914
914
|
symbol: string;
|
915
915
|
name: string | null;
|
916
916
|
id: string;
|
@@ -918,11 +918,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
918
918
|
address: string;
|
919
919
|
icon: string;
|
920
920
|
decimals: number;
|
921
|
-
displaySymbol: string;
|
922
921
|
verified: boolean;
|
923
922
|
isTest: boolean;
|
924
|
-
|
925
|
-
|
923
|
+
} & {
|
924
|
+
price?: number | null | undefined;
|
925
|
+
})[];
|
926
926
|
};
|
927
927
|
};
|
928
928
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, DefutureVaultInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
|
1
|
+
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, DefutureVaultInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } 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];
|
@@ -195,8 +195,12 @@ export function decodeCall(calls, index, key, type) {
|
|
195
195
|
default:
|
196
196
|
return SymetricAmbientStrategyInterface.decodeFunctionResult("getPositions", returnData);
|
197
197
|
}
|
198
|
+
case "lockNFT":
|
199
|
+
return VePufferInterface.decodeFunctionResult("lockNFT", returnData)[0];
|
198
200
|
case "tvl":
|
199
201
|
return DefutureVaultInterface.decodeFunctionResult("tvl", returnData)[0];
|
202
|
+
case "eip712DomainName":
|
203
|
+
return MetamorphoInterface.decodeFunctionResult("eip712Domain", returnData)[1];
|
200
204
|
default:
|
201
205
|
throw new Error(`Key not recognized for ${key}`);
|
202
206
|
}
|
@@ -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, DefutureVaultInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
|
2
|
+
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, DefutureVaultInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } 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) {
|
@@ -307,6 +307,18 @@ export function createCall(target, key, type, metaData) {
|
|
307
307
|
callData: DefutureVaultInterface.encodeFunctionData("tvl"),
|
308
308
|
target: target,
|
309
309
|
};
|
310
|
+
case "lockNFT":
|
311
|
+
return {
|
312
|
+
allowFailure: true,
|
313
|
+
callData: VePufferInterface.encodeFunctionData("lockNFT"),
|
314
|
+
target: target,
|
315
|
+
};
|
316
|
+
case "eip712DomainName":
|
317
|
+
return {
|
318
|
+
allowFailure: true,
|
319
|
+
callData: MetamorphoInterface.encodeFunctionData("eip712Domain"),
|
320
|
+
target: target,
|
321
|
+
};
|
310
322
|
default:
|
311
323
|
throw new Error(`Unknown key ${key}`);
|
312
324
|
}
|
@@ -16,7 +16,7 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
|
|
16
16
|
case tokenType.pancakeswap:
|
17
17
|
return `${typeInfo.protocol} ${typeInfo.symbolToken0}/${typeInfo.symbolToken1}`;
|
18
18
|
case tokenType.pendleYT:
|
19
|
-
return `Hold
|
19
|
+
return `Hold ${typeInfo.protocol} ${typeInfo.name}`;
|
20
20
|
case tokenType.pendle:
|
21
21
|
return `Provide ${typeInfo.symbolUnderlyingToken} on ${typeInfo.protocol}`;
|
22
22
|
case tokenType.balancerGauge:
|
@@ -96,6 +96,8 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
|
|
96
96
|
case tokenType.tempestStaking:
|
97
97
|
case tokenType.holdstation:
|
98
98
|
return `Hold vault token ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
|
99
|
+
case tokenType.staking:
|
100
|
+
return `${typeInfo.lockNFT !== undefined ? "Lock" : "Stake"} ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.stakingSymbol}`;
|
99
101
|
default:
|
100
102
|
return `Hold ${typeInfo.name} (${campaign.campaignParameters.symbolTargetToken})`;
|
101
103
|
}
|