@pancakeswap/infinity-sdk 1.0.7 → 1.0.9
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,3 +1,4 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
1
2
|
import { type HookData, type PoolType } from '../../types';
|
|
2
3
|
export declare const CL_DYNAMIC_HOOK: HookData;
|
|
3
4
|
export declare const bscHooksList: HookData[];
|
|
@@ -5,4 +6,5 @@ export declare const bscHooksList: HookData[];
|
|
|
5
6
|
* Dynamic hook for each pool type for auto-selection on "Dynamic" fee tier
|
|
6
7
|
*/
|
|
7
8
|
export declare const bscDynamicHooks: Record<PoolType, HookData | undefined>;
|
|
9
|
+
export declare const bscWhitelistLabeledHooks: Address[];
|
|
8
10
|
//# sourceMappingURL=bsc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bsc.d.ts","sourceRoot":"","sources":["../../../src/constants/hooksList/bsc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsC,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG9F,eAAO,MAAM,eAAe,EAAE,QAmB7B,CAAA;AAqBD,eAAO,MAAM,YAAY,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"bsc.d.ts","sourceRoot":"","sources":["../../../src/constants/hooksList/bsc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAsC,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG9F,eAAO,MAAM,eAAe,EAAE,QAmB7B,CAAA;AAqBD,eAAO,MAAM,YAAY,EAAE,QAAQ,EA4MlC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAGlE,CAAA;AAGD,eAAO,MAAM,wBAAwB,EAAE,OAAO,EAI7C,CAAA"}
|
|
@@ -11,6 +11,12 @@ export declare const dynamicHooksList: {
|
|
|
11
11
|
8453: Record<"CL" | "Bin", import("../..").HookData | undefined>;
|
|
12
12
|
11155111: never[];
|
|
13
13
|
};
|
|
14
|
+
export declare const whitelistLabeledHooksList: {
|
|
15
|
+
56: `0x${string}`[];
|
|
16
|
+
97: never[];
|
|
17
|
+
8453: never[];
|
|
18
|
+
11155111: never[];
|
|
19
|
+
};
|
|
14
20
|
export declare function findHook(hook: string, chainId: ChainId): import("../..").HookData | undefined;
|
|
15
21
|
export * from './dynamicFeeHook';
|
|
16
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/hooksList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAK7C,eAAO,MAAM,SAAS;;;;;CAKrB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAA;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,wCAGtD;AAED,cAAc,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/hooksList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAK7C,eAAO,MAAM,SAAS;;;;;CAKrB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAA;AAED,eAAO,MAAM,yBAAyB;;;;;CAKrC,CAAA;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,wCAGtD;AAED,cAAc,kBAAkB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -437,7 +437,7 @@ var INFI_BIN_PROTOCOL_FEE_CONTROLLER_ADDRESSES = {
|
|
|
437
437
|
var INFI_CL_TICK_LENS_ADDRESSES = {
|
|
438
438
|
[chains.ChainId.BSC_TESTNET]: "0x05a732bb9A23256F57f9FdF255212979368Ece39",
|
|
439
439
|
[chains.ChainId.BSC]: "0x8BcF30285413F25032fb983C2bF4deFe29a33f3a",
|
|
440
|
-
[chains.ChainId.BASE]: "
|
|
440
|
+
[chains.ChainId.BASE]: "0x8BcF30285413F25032fb983C2bF4deFe29a33f3a"
|
|
441
441
|
};
|
|
442
442
|
|
|
443
443
|
// src/constants/binPool.ts
|
|
@@ -734,12 +734,35 @@ var bscHooksList = [
|
|
|
734
734
|
hookType: "PerPool" /* PerPool */,
|
|
735
735
|
defaultFee: 500
|
|
736
736
|
// 0.05%
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
address: "0x6AdC560aF85377f9a73d17c658D798c9B39186e8",
|
|
740
|
+
name: "Limit Order",
|
|
741
|
+
poolType: "CL" /* CLAMM */,
|
|
742
|
+
description: "Fee Earning Limit Orders let you set a target price to buy or sell tokens automatically, while earning fees.",
|
|
743
|
+
github: "https://github.com/pancakeswap/limit-order-hook-contract",
|
|
744
|
+
category: ["Order Type" /* OrderType */],
|
|
745
|
+
isVerified: true,
|
|
746
|
+
isUpgradable: false,
|
|
747
|
+
hooksRegistration: {
|
|
748
|
+
beforeInitialize: true,
|
|
749
|
+
afterInitialize: true,
|
|
750
|
+
beforeSwap: true,
|
|
751
|
+
afterSwap: true
|
|
752
|
+
},
|
|
753
|
+
hookType: "Universal" /* Universal */
|
|
737
754
|
}
|
|
738
755
|
];
|
|
739
756
|
var bscDynamicHooks = {
|
|
740
757
|
CL: CL_DYNAMIC_HOOK,
|
|
741
758
|
Bin: void 0
|
|
742
759
|
};
|
|
760
|
+
var bscWhitelistLabeledHooks = [
|
|
761
|
+
"0x9a9B5331ce8d74b2B721291D57DE696E878353fd",
|
|
762
|
+
// IDO TGE
|
|
763
|
+
"0x72e09eBd9b24F47730b651889a4eD984CBa53d90",
|
|
764
|
+
"0x44428C6ce391915D51F963C0Dd395Cd0f95fdFD2"
|
|
765
|
+
];
|
|
743
766
|
var CL_DYNAMIC_HOOK2 = {
|
|
744
767
|
address: CL_DYNAMIC_FEE_HOOKS_BY_CHAIN[chains.ChainId.BSC_TESTNET],
|
|
745
768
|
name: "Dynamic Fees (CLAMM)",
|
|
@@ -844,6 +867,12 @@ var dynamicHooksList4 = {
|
|
|
844
867
|
[chains.ChainId.BASE]: baseDynamicHooks,
|
|
845
868
|
[chains.ChainId.SEPOLIA]: []
|
|
846
869
|
};
|
|
870
|
+
var whitelistLabeledHooksList = {
|
|
871
|
+
[chains.ChainId.BSC]: bscWhitelistLabeledHooks,
|
|
872
|
+
[chains.ChainId.BSC_TESTNET]: [],
|
|
873
|
+
[chains.ChainId.BASE]: [],
|
|
874
|
+
[chains.ChainId.SEPOLIA]: []
|
|
875
|
+
};
|
|
847
876
|
function findHook(hook, chainId) {
|
|
848
877
|
const list = hooksList[chainId];
|
|
849
878
|
return list.find((x) => x.address === hook);
|
|
@@ -6695,10 +6724,10 @@ var addBinLiquidityMulticall = ({
|
|
|
6695
6724
|
if (!isInitialized) {
|
|
6696
6725
|
calls.push(encodeBinPositionManagerInitializePoolCalldata(poolKey, activeIdDesired));
|
|
6697
6726
|
}
|
|
6698
|
-
if (token0Permit2Signature) {
|
|
6727
|
+
if (token0Permit2Signature && token0Permit2Signature.signature !== "0x") {
|
|
6699
6728
|
calls.push(encodePermit2(owner, token0Permit2Signature));
|
|
6700
6729
|
}
|
|
6701
|
-
if (token1Permit2Signature) {
|
|
6730
|
+
if (token1Permit2Signature && token1Permit2Signature.signature !== "0x") {
|
|
6702
6731
|
calls.push(encodePermit2(owner, token1Permit2Signature));
|
|
6703
6732
|
}
|
|
6704
6733
|
const shape = getLiquidityShape({
|
|
@@ -7227,10 +7256,10 @@ var addCLLiquidityMulticall = ({
|
|
|
7227
7256
|
if (!isInitialized) {
|
|
7228
7257
|
calls.push(encodeCLPositionManagerInitializePoolCalldata(positionConfig.poolKey, sqrtPriceX96));
|
|
7229
7258
|
}
|
|
7230
|
-
if (token0Permit2Signature) {
|
|
7259
|
+
if (token0Permit2Signature && token0Permit2Signature.signature !== "0x") {
|
|
7231
7260
|
calls.push(encodePermit2(owner, token0Permit2Signature));
|
|
7232
7261
|
}
|
|
7233
|
-
if (token1Permit2Signature) {
|
|
7262
|
+
if (token1Permit2Signature && token1Permit2Signature.signature !== "0x") {
|
|
7234
7263
|
calls.push(encodePermit2(owner, token1Permit2Signature));
|
|
7235
7264
|
}
|
|
7236
7265
|
if (typeof tokenId === "undefined") {
|
|
@@ -7759,3 +7788,4 @@ exports.poolIdToPoolKey = poolIdToPoolKey;
|
|
|
7759
7788
|
exports.shiftDivRoundDown = shiftDivRoundDown;
|
|
7760
7789
|
exports.shiftDivRoundUp = shiftDivRoundUp;
|
|
7761
7790
|
exports.swap = swap;
|
|
7791
|
+
exports.whitelistLabeledHooksList = whitelistLabeledHooksList;
|
package/dist/index.mjs
CHANGED
|
@@ -431,7 +431,7 @@ var INFI_BIN_PROTOCOL_FEE_CONTROLLER_ADDRESSES = {
|
|
|
431
431
|
var INFI_CL_TICK_LENS_ADDRESSES = {
|
|
432
432
|
[ChainId.BSC_TESTNET]: "0x05a732bb9A23256F57f9FdF255212979368Ece39",
|
|
433
433
|
[ChainId.BSC]: "0x8BcF30285413F25032fb983C2bF4deFe29a33f3a",
|
|
434
|
-
[ChainId.BASE]: "
|
|
434
|
+
[ChainId.BASE]: "0x8BcF30285413F25032fb983C2bF4deFe29a33f3a"
|
|
435
435
|
};
|
|
436
436
|
|
|
437
437
|
// src/constants/binPool.ts
|
|
@@ -728,12 +728,35 @@ var bscHooksList = [
|
|
|
728
728
|
hookType: "PerPool" /* PerPool */,
|
|
729
729
|
defaultFee: 500
|
|
730
730
|
// 0.05%
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
address: "0x6AdC560aF85377f9a73d17c658D798c9B39186e8",
|
|
734
|
+
name: "Limit Order",
|
|
735
|
+
poolType: "CL" /* CLAMM */,
|
|
736
|
+
description: "Fee Earning Limit Orders let you set a target price to buy or sell tokens automatically, while earning fees.",
|
|
737
|
+
github: "https://github.com/pancakeswap/limit-order-hook-contract",
|
|
738
|
+
category: ["Order Type" /* OrderType */],
|
|
739
|
+
isVerified: true,
|
|
740
|
+
isUpgradable: false,
|
|
741
|
+
hooksRegistration: {
|
|
742
|
+
beforeInitialize: true,
|
|
743
|
+
afterInitialize: true,
|
|
744
|
+
beforeSwap: true,
|
|
745
|
+
afterSwap: true
|
|
746
|
+
},
|
|
747
|
+
hookType: "Universal" /* Universal */
|
|
731
748
|
}
|
|
732
749
|
];
|
|
733
750
|
var bscDynamicHooks = {
|
|
734
751
|
CL: CL_DYNAMIC_HOOK,
|
|
735
752
|
Bin: void 0
|
|
736
753
|
};
|
|
754
|
+
var bscWhitelistLabeledHooks = [
|
|
755
|
+
"0x9a9B5331ce8d74b2B721291D57DE696E878353fd",
|
|
756
|
+
// IDO TGE
|
|
757
|
+
"0x72e09eBd9b24F47730b651889a4eD984CBa53d90",
|
|
758
|
+
"0x44428C6ce391915D51F963C0Dd395Cd0f95fdFD2"
|
|
759
|
+
];
|
|
737
760
|
var CL_DYNAMIC_HOOK2 = {
|
|
738
761
|
address: CL_DYNAMIC_FEE_HOOKS_BY_CHAIN[ChainId.BSC_TESTNET],
|
|
739
762
|
name: "Dynamic Fees (CLAMM)",
|
|
@@ -838,6 +861,12 @@ var dynamicHooksList4 = {
|
|
|
838
861
|
[ChainId.BASE]: baseDynamicHooks,
|
|
839
862
|
[ChainId.SEPOLIA]: []
|
|
840
863
|
};
|
|
864
|
+
var whitelistLabeledHooksList = {
|
|
865
|
+
[ChainId.BSC]: bscWhitelistLabeledHooks,
|
|
866
|
+
[ChainId.BSC_TESTNET]: [],
|
|
867
|
+
[ChainId.BASE]: [],
|
|
868
|
+
[ChainId.SEPOLIA]: []
|
|
869
|
+
};
|
|
841
870
|
function findHook(hook, chainId) {
|
|
842
871
|
const list = hooksList[chainId];
|
|
843
872
|
return list.find((x) => x.address === hook);
|
|
@@ -6689,10 +6718,10 @@ var addBinLiquidityMulticall = ({
|
|
|
6689
6718
|
if (!isInitialized) {
|
|
6690
6719
|
calls.push(encodeBinPositionManagerInitializePoolCalldata(poolKey, activeIdDesired));
|
|
6691
6720
|
}
|
|
6692
|
-
if (token0Permit2Signature) {
|
|
6721
|
+
if (token0Permit2Signature && token0Permit2Signature.signature !== "0x") {
|
|
6693
6722
|
calls.push(encodePermit2(owner, token0Permit2Signature));
|
|
6694
6723
|
}
|
|
6695
|
-
if (token1Permit2Signature) {
|
|
6724
|
+
if (token1Permit2Signature && token1Permit2Signature.signature !== "0x") {
|
|
6696
6725
|
calls.push(encodePermit2(owner, token1Permit2Signature));
|
|
6697
6726
|
}
|
|
6698
6727
|
const shape = getLiquidityShape({
|
|
@@ -7221,10 +7250,10 @@ var addCLLiquidityMulticall = ({
|
|
|
7221
7250
|
if (!isInitialized) {
|
|
7222
7251
|
calls.push(encodeCLPositionManagerInitializePoolCalldata(positionConfig.poolKey, sqrtPriceX96));
|
|
7223
7252
|
}
|
|
7224
|
-
if (token0Permit2Signature) {
|
|
7253
|
+
if (token0Permit2Signature && token0Permit2Signature.signature !== "0x") {
|
|
7225
7254
|
calls.push(encodePermit2(owner, token0Permit2Signature));
|
|
7226
7255
|
}
|
|
7227
|
-
if (token1Permit2Signature) {
|
|
7256
|
+
if (token1Permit2Signature && token1Permit2Signature.signature !== "0x") {
|
|
7228
7257
|
calls.push(encodePermit2(owner, token1Permit2Signature));
|
|
7229
7258
|
}
|
|
7230
7259
|
if (typeof tokenId === "undefined") {
|
|
@@ -7608,4 +7637,4 @@ var Pool = class {
|
|
|
7608
7637
|
}
|
|
7609
7638
|
};
|
|
7610
7639
|
|
|
7611
|
-
export { ACTIONS, ACTIONS_ABI, ACTION_CONSTANTS, ActionsPlanner, BASIS_POINT_MAX, BIN_DYNAMIC_FEE_HOOKS_BY_CHAIN, BIN_DYNAMIC_FEE_HOOK_REGISTRATION_BITMAP, BIN_SHAPE_DISTRIBUTION_SUM, BinLiquidityShape, BinMigratorAbi, BinPoolManagerAbi, BinPositionManagerAbi, BinQuoterAbi, CLMigratorAbi, CLPoolManagerAbi, CLPositionManagerAbi, CLQuoterAbi, CL_DYNAMIC_FEE_HOOKS_BY_CHAIN, CL_DYNAMIC_FEE_HOOK_REGISTRATION_BITMAP, DYNAMIC_FEE_FLAG, FARMING_OFFCHAIN_ABI, FARMING_OFFCHAIN_CL_HELPER_ABI, HOOKS_REGISTRATION_OFFSET, HOOK_CATEGORY, HookType, INFINITY_SUPPORTED_CHAINS, INFI_BIN_MIGRATOR_ADDRESSES, INFI_BIN_POOL_MANAGER_ADDRESSES, INFI_BIN_POSITION_MANAGER_ADDRESSES, INFI_BIN_PROTOCOL_FEE_CONTROLLER_ADDRESSES, INFI_BIN_QUOTER_ADDRESSES, INFI_CL_LP_FEES_HELPER_ADDRESSES, INFI_CL_MIGRATOR_ADDRESSES, INFI_CL_POOL_MANAGER_ADDRESSES, INFI_CL_POSITION_MANAGER_ADDRESSES, INFI_CL_PROTOCOL_FEE_CONTROLLER_ADDRESSES, INFI_CL_QUOTER_ADDRESSES, INFI_CL_TICK_LENS_ADDRESSES, INFI_FARMING_DISTRIBUTOR_ADDRESSES, INFI_MIXED_QUOTER_ADDRESSES, INFI_VAULT_ADDRESSES, MAX_BIN_STEP, MAX_PROTOCOL_FEE, MAX_TICK_SPACING, MIN_BIN_STEP, MIN_TICK_SPACING, MixedQuoterAbi, ONE_HUNDRED_PERCENT_FEE, POOL_TYPE, PRECISION, Permit2ForwardAbi, Pool, ProtocolFeeControllerAbi, REAL_ID_SHIFT, SCALE, SCALE_OFFSET, SQUARED_PRECISION, TEN_PERCENT_FEE, TreeMath, VaultAbi, addBinLiquidityMulticall, addCLLiquidityMulticall, binPoolIdToPoolKey, binPoolMintCalldata, binPoolSwapCalldata, clPoolIdToPoolKey, convert128x128ToDecimalPrice, convertBinIdsToRelative, convertDecimalPriceTo128x128, createBinPool, decodeBinPoolParameters, decodeCLPoolParameters, decodeHooksRegistration, decodePoolKey, dynamicHooksList4 as dynamicHooksList, encodeBinPoolParameters, encodeBinPositionManagerAddLiquidityCalldata, encodeBinPositionManagerInitializePoolCalldata, encodeBinPositionManagerRemoveLiquidityCalldata, encodeBinPositionModifyLiquidities, encodeCLPoolDonateCalldata, encodeCLPoolInitializeCalldata, encodeCLPoolModifyLiquidityCalldata, encodeCLPoolParameters, encodeCLPoolSwapCalldata, encodeCLPositionManagerBurnCalldata, encodeCLPositionManagerDecreaseLiquidityCalldata, encodeCLPositionManagerIncreaseLiquidityCalldata, encodeCLPositionManagerInitializePoolCalldata, encodeCLPositionManagerMintCalldata, encodeCLPositionModifyLiquidities, encodeClaimCalldata, encodeHooksRegistration, encodePoolKey, encodePoolParameters, findHook, findHookByAddress, getAddBinParams, getAmounts, getBidAskLiquidityShape, getBinIds, getBinPoolTokenPrice, getCLPool, getCurrencyPriceFromId, getCurveLiquidityShape, getExternalFeeAmt, getFeeAmount, getFeeAmountFrom, getIdFromCurrencyPrice, getIdFromInvertedPrice, getIdFromPrice, getIdSlippage, getInvertedPriceFromId, getIsInitializedByPoolKey, getLiquidityShape, getNextNonEmptyBin, getPool, getPoolId, getPriceFromId, getPriceX128FromId, getSpotLiquidityShape, getSwapIn, getSwapOut, hooksList, isDynamicFeeHook, isDynamicFeeHookForSupportedChains, isInfinitySupported, mulShiftRoundDown, mulShiftRoundUp, parsePoolKey, parseProtocolFees, parseProtocolFeesToNumbers, parseReserveOfBin, poolIdToPoolKey, shiftDivRoundDown, shiftDivRoundUp, swap };
|
|
7640
|
+
export { ACTIONS, ACTIONS_ABI, ACTION_CONSTANTS, ActionsPlanner, BASIS_POINT_MAX, BIN_DYNAMIC_FEE_HOOKS_BY_CHAIN, BIN_DYNAMIC_FEE_HOOK_REGISTRATION_BITMAP, BIN_SHAPE_DISTRIBUTION_SUM, BinLiquidityShape, BinMigratorAbi, BinPoolManagerAbi, BinPositionManagerAbi, BinQuoterAbi, CLMigratorAbi, CLPoolManagerAbi, CLPositionManagerAbi, CLQuoterAbi, CL_DYNAMIC_FEE_HOOKS_BY_CHAIN, CL_DYNAMIC_FEE_HOOK_REGISTRATION_BITMAP, DYNAMIC_FEE_FLAG, FARMING_OFFCHAIN_ABI, FARMING_OFFCHAIN_CL_HELPER_ABI, HOOKS_REGISTRATION_OFFSET, HOOK_CATEGORY, HookType, INFINITY_SUPPORTED_CHAINS, INFI_BIN_MIGRATOR_ADDRESSES, INFI_BIN_POOL_MANAGER_ADDRESSES, INFI_BIN_POSITION_MANAGER_ADDRESSES, INFI_BIN_PROTOCOL_FEE_CONTROLLER_ADDRESSES, INFI_BIN_QUOTER_ADDRESSES, INFI_CL_LP_FEES_HELPER_ADDRESSES, INFI_CL_MIGRATOR_ADDRESSES, INFI_CL_POOL_MANAGER_ADDRESSES, INFI_CL_POSITION_MANAGER_ADDRESSES, INFI_CL_PROTOCOL_FEE_CONTROLLER_ADDRESSES, INFI_CL_QUOTER_ADDRESSES, INFI_CL_TICK_LENS_ADDRESSES, INFI_FARMING_DISTRIBUTOR_ADDRESSES, INFI_MIXED_QUOTER_ADDRESSES, INFI_VAULT_ADDRESSES, MAX_BIN_STEP, MAX_PROTOCOL_FEE, MAX_TICK_SPACING, MIN_BIN_STEP, MIN_TICK_SPACING, MixedQuoterAbi, ONE_HUNDRED_PERCENT_FEE, POOL_TYPE, PRECISION, Permit2ForwardAbi, Pool, ProtocolFeeControllerAbi, REAL_ID_SHIFT, SCALE, SCALE_OFFSET, SQUARED_PRECISION, TEN_PERCENT_FEE, TreeMath, VaultAbi, addBinLiquidityMulticall, addCLLiquidityMulticall, binPoolIdToPoolKey, binPoolMintCalldata, binPoolSwapCalldata, clPoolIdToPoolKey, convert128x128ToDecimalPrice, convertBinIdsToRelative, convertDecimalPriceTo128x128, createBinPool, decodeBinPoolParameters, decodeCLPoolParameters, decodeHooksRegistration, decodePoolKey, dynamicHooksList4 as dynamicHooksList, encodeBinPoolParameters, encodeBinPositionManagerAddLiquidityCalldata, encodeBinPositionManagerInitializePoolCalldata, encodeBinPositionManagerRemoveLiquidityCalldata, encodeBinPositionModifyLiquidities, encodeCLPoolDonateCalldata, encodeCLPoolInitializeCalldata, encodeCLPoolModifyLiquidityCalldata, encodeCLPoolParameters, encodeCLPoolSwapCalldata, encodeCLPositionManagerBurnCalldata, encodeCLPositionManagerDecreaseLiquidityCalldata, encodeCLPositionManagerIncreaseLiquidityCalldata, encodeCLPositionManagerInitializePoolCalldata, encodeCLPositionManagerMintCalldata, encodeCLPositionModifyLiquidities, encodeClaimCalldata, encodeHooksRegistration, encodePoolKey, encodePoolParameters, findHook, findHookByAddress, getAddBinParams, getAmounts, getBidAskLiquidityShape, getBinIds, getBinPoolTokenPrice, getCLPool, getCurrencyPriceFromId, getCurveLiquidityShape, getExternalFeeAmt, getFeeAmount, getFeeAmountFrom, getIdFromCurrencyPrice, getIdFromInvertedPrice, getIdFromPrice, getIdSlippage, getInvertedPriceFromId, getIsInitializedByPoolKey, getLiquidityShape, getNextNonEmptyBin, getPool, getPoolId, getPriceFromId, getPriceX128FromId, getSpotLiquidityShape, getSwapIn, getSwapOut, hooksList, isDynamicFeeHook, isDynamicFeeHookForSupportedChains, isInfinitySupported, mulShiftRoundDown, mulShiftRoundUp, parsePoolKey, parseProtocolFees, parseProtocolFeesToNumbers, parseReserveOfBin, poolIdToPoolKey, shiftDivRoundDown, shiftDivRoundUp, swap, whitelistLabeledHooksList };
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.9",
|
|
8
8
|
"description": "⚒️ An SDK for building applications on top of Pancakeswap Infinity",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"bignumber.js": "^9.0.0",
|
|
22
22
|
"tiny-invariant": "^1.3.3",
|
|
23
|
-
"viem": "2.
|
|
24
|
-
"@pancakeswap/chains": "0.
|
|
25
|
-
"@pancakeswap/swap-sdk-core": "1.
|
|
26
|
-
"@pancakeswap/v3-sdk": "3.
|
|
27
|
-
"@pancakeswap/permit2-sdk": "1.1
|
|
23
|
+
"viem": "2.37.13",
|
|
24
|
+
"@pancakeswap/chains": "0.9.0",
|
|
25
|
+
"@pancakeswap/swap-sdk-core": "1.6.0",
|
|
26
|
+
"@pancakeswap/v3-sdk": "3.10.1",
|
|
27
|
+
"@pancakeswap/permit2-sdk": "1.2.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"tsup": "^6.7.0",
|
|
31
|
-
"@pancakeswap/swap-sdk-evm": "1.1
|
|
32
|
-
"@pancakeswap/utils": "8.0.
|
|
31
|
+
"@pancakeswap/swap-sdk-evm": "1.2.1",
|
|
32
|
+
"@pancakeswap/utils": "8.0.3"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=10"
|