@merkl/api 0.10.151 → 0.10.153

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/src/eden/index.d.ts +9 -0
  2. package/dist/src/index.d.ts +3 -0
  3. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
  4. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +4 -0
  5. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MaverickBPProcessor.js +0 -1
  6. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ZkSwapThreePoolProcessor.d.ts +53 -0
  7. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ZkSwapThreePoolProcessor.js +55 -0
  8. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +2 -0
  9. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +2 -0
  10. package/dist/src/modules/v4/cache/cache.repository.js +36 -3
  11. package/dist/src/modules/v4/chainInteraction/chainInteraction.service.d.ts +2 -0
  12. package/dist/src/modules/v4/chainInteraction/chainInteraction.service.js +4 -0
  13. package/dist/src/modules/v4/chainInteraction/index.d.ts +1 -0
  14. package/dist/src/modules/v4/chainInteraction/index.js +1 -0
  15. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -0
  16. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -1
  17. package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -1
  18. package/dist/src/modules/v4/opportunity/opportunity.repository.js +1 -0
  19. package/dist/src/modules/v4/router.d.ts +3 -0
  20. package/dist/src/modules/v4/tracer/index.d.ts +1 -0
  21. package/dist/src/modules/v4/tracer/index.js +1 -0
  22. package/dist/src/modules/v4/tracer/tracer.service.d.ts +3 -0
  23. package/dist/src/modules/v4/tracer/tracer.service.js +30 -0
  24. package/dist/src/routes/v3/ERC20Campaigns.d.ts +3 -0
  25. package/dist/src/routes/v3/blacklist.d.ts +3 -0
  26. package/dist/src/routes/v3/campaigns.d.ts +3 -0
  27. package/dist/src/routes/v3/campaignsInfo.d.ts +3 -0
  28. package/dist/src/routes/v3/multiChainPositions.d.ts +3 -0
  29. package/dist/src/routes/v3/opportunity.d.ts +3 -0
  30. package/dist/src/routes/v3/positions.d.ts +3 -0
  31. package/dist/src/routes/v3/rewards.d.ts +3 -0
  32. package/dist/src/routes/v3/updates.d.ts +3 -0
  33. package/dist/src/routes/v3/userRewards.d.ts +3 -0
  34. package/dist/src/utils/decodeCalls.js +7 -1
  35. package/dist/src/utils/encodeCalls.js +19 -1
  36. package/dist/src/utils/generateCardName.js +3 -1
  37. package/dist/tsconfig.package.tsbuildinfo +1 -1
  38. package/package.json +1 -1
@@ -325,6 +325,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
325
325
  action?: string | undefined;
326
326
  mainProtocolId?: string | undefined;
327
327
  order?: undefined;
328
+ minimumTvl?: number | undefined;
328
329
  };
329
330
  headers: unknown;
330
331
  response: {
@@ -433,6 +434,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
433
434
  action?: string | undefined;
434
435
  mainProtocolId?: string | undefined;
435
436
  order?: undefined;
437
+ minimumTvl?: number | undefined;
436
438
  };
437
439
  headers: unknown;
438
440
  response: {
@@ -462,6 +464,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
462
464
  action?: string | undefined;
463
465
  mainProtocolId?: string | undefined;
464
466
  order?: undefined;
467
+ minimumTvl?: number | undefined;
465
468
  };
466
469
  headers: unknown;
467
470
  response: {
@@ -326,6 +326,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
326
326
  action?: string | undefined;
327
327
  mainProtocolId?: string | undefined;
328
328
  order?: undefined;
329
+ minimumTvl?: number | undefined;
329
330
  };
330
331
  headers: unknown;
331
332
  response: {
@@ -434,6 +435,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
434
435
  action?: string | undefined;
435
436
  mainProtocolId?: string | undefined;
436
437
  order?: undefined;
438
+ minimumTvl?: number | undefined;
437
439
  };
438
440
  headers: unknown;
439
441
  response: {
@@ -463,6 +465,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
463
465
  action?: string | undefined;
464
466
  mainProtocolId?: string | undefined;
465
467
  order?: undefined;
468
+ minimumTvl?: number | undefined;
466
469
  };
467
470
  headers: unknown;
468
471
  response: {
@@ -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
  }