@pancakeswap/infinity-sdk 1.0.4 → 1.0.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"addCLLiquidityMulticall.d.ts","sourceRoot":"","sources":["../../../src/functions/clamm/addCLLiquidityMulticall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAShE,eAAO,MAAM,uBAAuB,qMAcjC;IACD,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,gBAAgB,CAAA;IAChC,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,OAAO,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,sBAAsB,EAAE,GAAG,CAAA;IAC3B,sBAAsB,CAAC,EAAE,gBAAgB,CAAA;IACzC,sBAAsB,CAAC,EAAE,gBAAgB,CAAA;CAC1C,kBA2CA,CAAA"}
1
+ {"version":3,"file":"addCLLiquidityMulticall.d.ts","sourceRoot":"","sources":["../../../src/functions/clamm/addCLLiquidityMulticall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAShE,eAAO,MAAM,uBAAuB,qMAcjC;IACD,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,gBAAgB,CAAA;IAChC,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,OAAO,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,sBAAsB,EAAE,GAAG,CAAA;IAC3B,sBAAsB,CAAC,EAAE,gBAAgB,CAAA;IACzC,sBAAsB,CAAC,EAAE,gBAAgB,CAAA;CAC1C,kBA4CA,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Hex } from 'viem';
1
+ import { Address, Hex } from 'viem';
2
2
  import { CLPositionConfig } from '../../../types';
3
- export declare const encodeCLPositionManagerIncreaseLiquidityCalldata: (tokenId: bigint, positionConfig: CLPositionConfig, liquidity: bigint, amount0Max: bigint, amount1Max: bigint, hookData: Hex | undefined, deadline: bigint) => `0x${string}`;
3
+ export declare const encodeCLPositionManagerIncreaseLiquidityCalldata: (tokenId: bigint, positionConfig: CLPositionConfig, liquidity: bigint, amount0Max: bigint, amount1Max: bigint, recipient: Address, hookData: Hex | undefined, deadline: bigint) => `0x${string}`;
4
4
  //# sourceMappingURL=increaseLiquidity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"increaseLiquidity.d.ts","sourceRoot":"","sources":["../../../../src/functions/clamm/calldatas/increaseLiquidity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,eAAO,MAAM,gDAAgD,YAClD,MAAM,kBACC,gBAAgB,aACrB,MAAM,cACL,MAAM,cACN,MAAM,YACR,GAAG,wBACH,MAAM,kBAMjB,CAAA"}
1
+ {"version":3,"file":"increaseLiquidity.d.ts","sourceRoot":"","sources":["../../../../src/functions/clamm/calldatas/increaseLiquidity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAe,MAAM,MAAM,CAAA;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,eAAO,MAAM,gDAAgD,YAClD,MAAM,kBACC,gBAAgB,aACrB,MAAM,cACL,MAAM,cACN,MAAM,aACP,OAAO,YACR,GAAG,wBACH,MAAM,kBAOjB,CAAA"}
package/dist/index.js CHANGED
@@ -716,7 +716,7 @@ var bscHooksList = [
716
716
  },
717
717
  {
718
718
  poolType: "CL" /* CLAMM */,
719
- address: "0x544Ec7F1bA881ff150331e7557b40945e2FC0f3C",
719
+ address: "0xD7059ABd653e87cb124690E2eba175391AC52243",
720
720
  name: "Arbiter MEV Capture",
721
721
  description: `Arbiter hook allows LPs to capture significant part of MEV extracted from pool. This is achieved by introducing auction for MEV actors. Winner can control the pool\u2019s fee, outperform competitors and optimize routing traffic - increasing their and LPs profits as proceeds from auction go to LPs.`,
722
722
  github: "https://github.com/ArbiterFinance/arbiter-contracts/blob/main/src/ArbiterAmAmmPoolCurrencyHook.sol",
@@ -7145,10 +7145,10 @@ var encodeCLPoolDonateCalldata = (poolKey, amount0, amount1, hookData = "0x") =>
7145
7145
  };
7146
7146
 
7147
7147
  // src/functions/clamm/calldatas/increaseLiquidity.ts
7148
- var encodeCLPositionManagerIncreaseLiquidityCalldata = (tokenId, positionConfig, liquidity, amount0Max, amount1Max, hookData = "0x", deadline) => {
7148
+ var encodeCLPositionManagerIncreaseLiquidityCalldata = (tokenId, positionConfig, liquidity, amount0Max, amount1Max, recipient, hookData = "0x", deadline) => {
7149
7149
  const planner = new ActionsPlanner();
7150
7150
  planner.add(0 /* CL_INCREASE_LIQUIDITY */, [tokenId, liquidity, amount0Max, amount1Max, hookData]);
7151
- const calls = planner.finalizeModifyLiquidityWithClose(positionConfig.poolKey);
7151
+ const calls = planner.finalizeModifyLiquidityWithSettlePair(positionConfig.poolKey, recipient);
7152
7152
  return encodeCLPositionModifyLiquidities(calls, deadline);
7153
7153
  };
7154
7154
  var encodeCLPoolInitializeCalldata = (poolKey, sqrtPriceX96) => {
@@ -7253,6 +7253,7 @@ var addCLLiquidityMulticall = ({
7253
7253
  liquidity,
7254
7254
  amount0Max,
7255
7255
  amount1Max,
7256
+ recipient,
7256
7257
  modifyPositionHookData,
7257
7258
  deadline
7258
7259
  )
package/dist/index.mjs CHANGED
@@ -710,7 +710,7 @@ var bscHooksList = [
710
710
  },
711
711
  {
712
712
  poolType: "CL" /* CLAMM */,
713
- address: "0x544Ec7F1bA881ff150331e7557b40945e2FC0f3C",
713
+ address: "0xD7059ABd653e87cb124690E2eba175391AC52243",
714
714
  name: "Arbiter MEV Capture",
715
715
  description: `Arbiter hook allows LPs to capture significant part of MEV extracted from pool. This is achieved by introducing auction for MEV actors. Winner can control the pool\u2019s fee, outperform competitors and optimize routing traffic - increasing their and LPs profits as proceeds from auction go to LPs.`,
716
716
  github: "https://github.com/ArbiterFinance/arbiter-contracts/blob/main/src/ArbiterAmAmmPoolCurrencyHook.sol",
@@ -7139,10 +7139,10 @@ var encodeCLPoolDonateCalldata = (poolKey, amount0, amount1, hookData = "0x") =>
7139
7139
  };
7140
7140
 
7141
7141
  // src/functions/clamm/calldatas/increaseLiquidity.ts
7142
- var encodeCLPositionManagerIncreaseLiquidityCalldata = (tokenId, positionConfig, liquidity, amount0Max, amount1Max, hookData = "0x", deadline) => {
7142
+ var encodeCLPositionManagerIncreaseLiquidityCalldata = (tokenId, positionConfig, liquidity, amount0Max, amount1Max, recipient, hookData = "0x", deadline) => {
7143
7143
  const planner = new ActionsPlanner();
7144
7144
  planner.add(0 /* CL_INCREASE_LIQUIDITY */, [tokenId, liquidity, amount0Max, amount1Max, hookData]);
7145
- const calls = planner.finalizeModifyLiquidityWithClose(positionConfig.poolKey);
7145
+ const calls = planner.finalizeModifyLiquidityWithSettlePair(positionConfig.poolKey, recipient);
7146
7146
  return encodeCLPositionModifyLiquidities(calls, deadline);
7147
7147
  };
7148
7148
  var encodeCLPoolInitializeCalldata = (poolKey, sqrtPriceX96) => {
@@ -7247,6 +7247,7 @@ var addCLLiquidityMulticall = ({
7247
7247
  liquidity,
7248
7248
  amount0Max,
7249
7249
  amount1Max,
7250
+ recipient,
7250
7251
  modifyPositionHookData,
7251
7252
  deadline
7252
7253
  )
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.0.4",
7
+ "version": "1.0.5",
8
8
  "description": "⚒️ An SDK for building applications on top of Pancakeswap Infinity",
9
9
  "files": [
10
10
  "dist"