@merkl/api 0.10.152 → 0.10.153
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 +9 -0
- package/dist/src/index.d.ts +3 -0
- 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/MaverickBPProcessor.js +0 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ZkSwapThreePoolProcessor.d.ts +53 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ZkSwapThreePoolProcessor.js +55 -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/chainInteraction/chainInteraction.service.d.ts +2 -0
- package/dist/src/modules/v4/chainInteraction/chainInteraction.service.js +4 -0
- package/dist/src/modules/v4/chainInteraction/index.d.ts +1 -0
- package/dist/src/modules/v4/chainInteraction/index.js +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +1 -0
- package/dist/src/modules/v4/router.d.ts +3 -0
- package/dist/src/modules/v4/tracer/index.d.ts +1 -0
- package/dist/src/modules/v4/tracer/index.js +1 -0
- package/dist/src/modules/v4/tracer/tracer.service.d.ts +3 -0
- package/dist/src/modules/v4/tracer/tracer.service.js +30 -0
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +3 -0
- package/dist/src/routes/v3/blacklist.d.ts +3 -0
- package/dist/src/routes/v3/campaigns.d.ts +3 -0
- package/dist/src/routes/v3/campaignsInfo.d.ts +3 -0
- package/dist/src/routes/v3/multiChainPositions.d.ts +3 -0
- package/dist/src/routes/v3/opportunity.d.ts +3 -0
- package/dist/src/routes/v3/positions.d.ts +3 -0
- package/dist/src/routes/v3/rewards.d.ts +3 -0
- package/dist/src/routes/v3/updates.d.ts +3 -0
- package/dist/src/routes/v3/userRewards.d.ts +3 -0
- package/dist/src/utils/decodeCalls.js +7 -1
- package/dist/src/utils/encodeCalls.js +19 -1
- package/dist/src/utils/generateCardName.js +3 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -328,6 +328,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
328
328
|
action?: string | undefined;
|
329
329
|
mainProtocolId?: string | undefined;
|
330
330
|
order?: undefined;
|
331
|
+
minimumTvl?: number | undefined;
|
331
332
|
};
|
332
333
|
headers: unknown;
|
333
334
|
response: {
|
@@ -436,6 +437,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
436
437
|
action?: string | undefined;
|
437
438
|
mainProtocolId?: string | undefined;
|
438
439
|
order?: undefined;
|
440
|
+
minimumTvl?: number | undefined;
|
439
441
|
};
|
440
442
|
headers: unknown;
|
441
443
|
response: {
|
@@ -465,6 +467,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
465
467
|
action?: string | undefined;
|
466
468
|
mainProtocolId?: string | undefined;
|
467
469
|
order?: undefined;
|
470
|
+
minimumTvl?: number | undefined;
|
468
471
|
};
|
469
472
|
headers: unknown;
|
470
473
|
response: {
|
@@ -1,4 +1,4 @@
|
|
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";
|
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, 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];
|
@@ -166,6 +166,12 @@ export function decodeCall(calls, index, key, type) {
|
|
166
166
|
return PendleInterface.decodeFunctionResult("readTokens", returnData)[2];
|
167
167
|
case "boostedPositionInformation":
|
168
168
|
return MaverickBPLensInterface.decodeFunctionResult("boostedPositionInformation", returnData)[0];
|
169
|
+
case "coins":
|
170
|
+
return ZFStableSwapThreePoolInterface.decodeFunctionResult("coins", returnData)[0];
|
171
|
+
case "balances":
|
172
|
+
return ZFStableSwapThreePoolInterface.decodeFunctionResult("coins", returnData)[0];
|
173
|
+
case "minter":
|
174
|
+
return ZFStableLPINterface.decodeFunctionResult("minter", returnData)[0];
|
169
175
|
default:
|
170
176
|
throw new Error(`Key not recognized for ${key}`);
|
171
177
|
}
|
@@ -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, MaverickBPLensInterface, 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, 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) {
|
@@ -240,6 +240,24 @@ export function createCall(target, key, type, metaData) {
|
|
240
240
|
callData: MaverickBPLensInterface.encodeFunctionData("boostedPositionInformation", [metaData]),
|
241
241
|
target: target,
|
242
242
|
};
|
243
|
+
case "coins":
|
244
|
+
return {
|
245
|
+
allowFailure: true,
|
246
|
+
callData: ZFStableSwapThreePoolInterface.encodeFunctionData("coins", [metaData]),
|
247
|
+
target: target,
|
248
|
+
};
|
249
|
+
case "balances":
|
250
|
+
return {
|
251
|
+
allowFailure: true,
|
252
|
+
callData: ZFStableSwapThreePoolInterface.encodeFunctionData("balances", [metaData]),
|
253
|
+
target: target,
|
254
|
+
};
|
255
|
+
case "minter":
|
256
|
+
return {
|
257
|
+
allowFailure: true,
|
258
|
+
callData: ZFStableLPINterface.encodeFunctionData("minter"),
|
259
|
+
target: target,
|
260
|
+
};
|
243
261
|
default:
|
244
262
|
throw new Error(`Unknown key ${key}`);
|
245
263
|
}
|
@@ -84,7 +84,9 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
|
|
84
84
|
case tokenType.woofi:
|
85
85
|
return `Supercharge ${typeInfo.symbolUnderlying} on ${typeInfo.protocol}`;
|
86
86
|
case tokenType.maverickBoostedPosition:
|
87
|
-
return `Hold or stake Maverick Boosted Position ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
|
87
|
+
return `Hold (or stake) Maverick Boosted Position ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
|
88
|
+
case tokenType.zkSwapThreePool:
|
89
|
+
return `Hold (or stake) ${campaign.campaignParameters.symbolTargetToken} ${typeInfo.symbolToken0}-${typeInfo.symbolToken1}-${typeInfo.symbolToken2} on ${typeInfo.protocol}`;
|
88
90
|
default:
|
89
91
|
return `Hold ${typeInfo.name} (${campaign.campaignParameters.symbolTargetToken})`;
|
90
92
|
}
|