@merkl/api 0.19.6 → 0.19.7

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.
Files changed (49) hide show
  1. package/dist/src/eden/index.d.ts +70 -0
  2. package/dist/src/factories/opportunityMetadata/implementations/EventBased.d.ts +1 -1
  3. package/dist/src/factories/opportunityMetadata/implementations/EventBased.js +2 -2
  4. package/dist/src/index.d.ts +14 -0
  5. package/dist/src/libs/campaigns/campaignTypes/AjnaDynamicData.js +7 -7
  6. package/dist/src/libs/campaigns/campaignTypes/AmbientDynamicData.js +7 -5
  7. package/dist/src/libs/campaigns/campaignTypes/BadgerDynamicData.js +8 -5
  8. package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +7 -5
  9. package/dist/src/libs/campaigns/campaignTypes/CompoundDynamicData.js +8 -5
  10. package/dist/src/libs/campaigns/campaignTypes/DolomiteDynamicData.js +9 -6
  11. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +9 -6
  12. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +2 -0
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BunniV2Processor.d.ts +45 -0
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BunniV2Processor.js +87 -0
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/processorMapping.js +2 -0
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +2 -0
  18. package/dist/src/libs/campaigns/campaignTypes/EigenLayerDynamicData.js +9 -6
  19. package/dist/src/libs/campaigns/campaignTypes/EventBasedDynamicData.js +2 -1
  20. package/dist/src/libs/campaigns/campaignTypes/HyperdriveDynamicData.js +9 -6
  21. package/dist/src/libs/campaigns/campaignTypes/MORPHODynamicData.js +8 -5
  22. package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +8 -5
  23. package/dist/src/libs/campaigns/campaignTypes/SILODynamicData.js +8 -5
  24. package/dist/src/libs/campaigns/campaignTypes/UniswapV4DynamicData.js +7 -5
  25. package/dist/src/libs/campaigns/campaignTypes/VestDynamicData.js +8 -5
  26. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +5 -0
  27. package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
  28. package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
  29. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +4 -0
  30. package/dist/src/modules/v4/campaign/campaign.repository.js +2 -1
  31. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +8 -0
  32. package/dist/src/modules/v4/opportunity/opportunity.converter.js +2 -2
  33. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
  34. package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -0
  35. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +1 -1
  36. package/dist/src/modules/v4/opportunity/opportunity.repository.js +14 -10
  37. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +2 -2
  38. package/dist/src/modules/v4/opportunity/opportunity.service.js +4 -4
  39. package/dist/src/modules/v4/router.d.ts +14 -0
  40. package/dist/src/modules/v4/token/token.controller.d.ts +1 -0
  41. package/dist/src/modules/v4/token/token.model.d.ts +1 -0
  42. package/dist/src/modules/v4/token/token.model.js +1 -0
  43. package/dist/src/modules/v4/token/token.service.d.ts +3 -1
  44. package/dist/src/modules/v4/token/token.service.js +18 -0
  45. package/dist/src/utils/decodeCalls.js +7 -1
  46. package/dist/src/utils/encodeCalls.js +19 -1
  47. package/dist/src/utils/generateCardName.js +2 -0
  48. package/dist/tsconfig.package.tsbuildinfo +1 -1
  49. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { tokenType } from "@/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
2
- import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerV3StablePoolInterface, BalancerVaultInterface, BeefyInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveLPTokenInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, ERC4626Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, HourglassERC20TBTInterface, HourglassVedaLockDepositorV2Interface, IonicInterface, LPManagerHelperInterface, LPManagerInterface, LayerBankInterface, LendleInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SpectraYTInterface, SturdyInterface, SymetricAmbientStrategyInterface, SyncSwapClassicPoolInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, } from "@sdk";
2
+ import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerV3StablePoolInterface, BalancerVaultInterface, BeefyInterface, BunniV2HubInterface, BunniV2TokenInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveLPTokenInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, ERC4626Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, HourglassERC20TBTInterface, HourglassVedaLockDepositorV2Interface, IonicInterface, LPManagerHelperInterface, LPManagerInterface, LayerBankInterface, LendleInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SpectraYTInterface, SturdyInterface, SymetricAmbientStrategyInterface, SyncSwapClassicPoolInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, } from "@sdk";
3
3
  export function createCall(target, key, type, metaData) {
4
4
  switch (key) {
5
5
  case "tokens":
@@ -458,6 +458,24 @@ export function createCall(target, key, type, metaData) {
458
458
  callData: BalancerV3StablePoolInterface.encodeFunctionData("getTokenInfo"),
459
459
  target: target,
460
460
  };
461
+ case "hub":
462
+ return {
463
+ allowFailure: true,
464
+ callData: BunniV2TokenInterface.encodeFunctionData("hub"),
465
+ target: target,
466
+ };
467
+ case "poolKey":
468
+ return {
469
+ allowFailure: true,
470
+ callData: BunniV2TokenInterface.encodeFunctionData("poolKey"),
471
+ target: target,
472
+ };
473
+ case "poolState":
474
+ return {
475
+ allowFailure: true,
476
+ callData: BunniV2HubInterface.encodeFunctionData("poolState", [metaData]),
477
+ target: target,
478
+ };
461
479
  default:
462
480
  throw new Error(`Unknown key ${key}`);
463
481
  }
@@ -179,6 +179,8 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""], displ
179
179
  return `Deposit ${typeInfo.symbolUnderlyingToken} into Hourglass`;
180
180
  case tokenType.hanji_liquidity_vault_token:
181
181
  return "Provide Liquidity on Hanji Vault";
182
+ case tokenType.bunniV2:
183
+ return `Provide Liquidity on Bunni V2 ${typeInfo.symbolToken0}-${typeInfo.symbolToken1}`;
182
184
  default:
183
185
  // OVERRIDE
184
186
  switch (typeInfo.tokenAddress) {