@pancakeswap/v3-sdk 3.7.12 → 3.8.0
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/abi/V3PoolAbi.d.ts +46 -0
- package/dist/abi/V3PoolAbi.d.ts.map +1 -0
- package/dist/entities/pool.d.ts +7 -0
- package/dist/entities/pool.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +78 -0
- package/dist/index.mjs +78 -1
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const v3PoolAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "liquidity";
|
|
4
|
+
readonly outputs: readonly [{
|
|
5
|
+
readonly internalType: "uint128";
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "uint128";
|
|
8
|
+
}];
|
|
9
|
+
readonly stateMutability: "view";
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
}, {
|
|
12
|
+
readonly inputs: readonly [];
|
|
13
|
+
readonly name: "slot0";
|
|
14
|
+
readonly outputs: readonly [{
|
|
15
|
+
readonly internalType: "uint160";
|
|
16
|
+
readonly name: "sqrtPriceX96";
|
|
17
|
+
readonly type: "uint160";
|
|
18
|
+
}, {
|
|
19
|
+
readonly internalType: "int24";
|
|
20
|
+
readonly name: "tick";
|
|
21
|
+
readonly type: "int24";
|
|
22
|
+
}, {
|
|
23
|
+
readonly internalType: "uint16";
|
|
24
|
+
readonly name: "observationIndex";
|
|
25
|
+
readonly type: "uint16";
|
|
26
|
+
}, {
|
|
27
|
+
readonly internalType: "uint16";
|
|
28
|
+
readonly name: "observationCardinality";
|
|
29
|
+
readonly type: "uint16";
|
|
30
|
+
}, {
|
|
31
|
+
readonly internalType: "uint16";
|
|
32
|
+
readonly name: "observationCardinalityNext";
|
|
33
|
+
readonly type: "uint16";
|
|
34
|
+
}, {
|
|
35
|
+
readonly internalType: "uint32";
|
|
36
|
+
readonly name: "feeProtocol";
|
|
37
|
+
readonly type: "uint32";
|
|
38
|
+
}, {
|
|
39
|
+
readonly internalType: "bool";
|
|
40
|
+
readonly name: "unlocked";
|
|
41
|
+
readonly type: "bool";
|
|
42
|
+
}];
|
|
43
|
+
readonly stateMutability: "view";
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
}];
|
|
46
|
+
//# sourceMappingURL=V3PoolAbi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V3PoolAbi.d.ts","sourceRoot":"","sources":["../../src/abi/V3PoolAbi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDZ,CAAA"}
|
package/dist/entities/pool.d.ts
CHANGED
|
@@ -67,6 +67,13 @@ export declare class Pool {
|
|
|
67
67
|
* @returns The input amount and the pool with updated state
|
|
68
68
|
*/
|
|
69
69
|
getInputAmount(outputAmount: CurrencyAmount<Token>, sqrtPriceLimitX96?: bigint): Promise<[CurrencyAmount<Token>, Pool]>;
|
|
70
|
+
/**
|
|
71
|
+
* Given a desired output amount of a token, return the computed input amount and a pool with state updated after the trade
|
|
72
|
+
* @param outputAmount the output amount for which to quote the input amount
|
|
73
|
+
* @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap
|
|
74
|
+
* @returns The input amount and the pool with updated state
|
|
75
|
+
*/
|
|
76
|
+
getInputAmountByExactOut(outputAmount: CurrencyAmount<Token>, sqrtPriceLimitX96?: bigint): Promise<[CurrencyAmount<Token>, Pool]>;
|
|
70
77
|
/**
|
|
71
78
|
* Executes a swap
|
|
72
79
|
* @param zeroForOne Whether the amount in is token0 or token1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/entities/pool.ts"],"names":[],"mapp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CAAC;IAkBzC;;;;;OAKG;IACU,cAAc,CACzB,YAAY,EAAE,cAAc,CAAC,KAAK,CAAC,EACnC,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;IAmBzC;;;;;OAKG;IACU,wBAAwB,CACnC,YAAY,EAAE,cAAc,CAAC,KAAK,CAAC,EACnC,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;IAsBzC;;;;;;;;;OASG;YACW,IAAI;IAsGlB,IAAW,WAAW,IAAI,MAAM,CAE/B;CACF"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AAEvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAG5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AAEvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAG5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -704,6 +704,29 @@ var Pool = class {
|
|
|
704
704
|
new Pool(this.token0, this.token1, this.fee, sqrtRatioX96, liquidity, tickCurrent, this.tickDataProvider)
|
|
705
705
|
];
|
|
706
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* Given a desired output amount of a token, return the computed input amount and a pool with state updated after the trade
|
|
709
|
+
* @param outputAmount the output amount for which to quote the input amount
|
|
710
|
+
* @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap
|
|
711
|
+
* @returns The input amount and the pool with updated state
|
|
712
|
+
*/
|
|
713
|
+
async getInputAmountByExactOut(outputAmount, sqrtPriceLimitX96) {
|
|
714
|
+
invariant9__default.default(outputAmount.currency.isToken && this.involvesToken(outputAmount.currency), "TOKEN");
|
|
715
|
+
const zeroForOne = outputAmount.currency.equals(this.token1);
|
|
716
|
+
const {
|
|
717
|
+
amountSpecifiedRemaining,
|
|
718
|
+
amountCalculated: inputAmount,
|
|
719
|
+
sqrtRatioX96,
|
|
720
|
+
liquidity,
|
|
721
|
+
tickCurrent
|
|
722
|
+
} = await this.swap(zeroForOne, outputAmount.quotient * NEGATIVE_ONE, sqrtPriceLimitX96);
|
|
723
|
+
invariant9__default.default(amountSpecifiedRemaining === 0n, "INSUFFICIENT_LIQUIDITY");
|
|
724
|
+
const inputToken = zeroForOne ? this.token0 : this.token1;
|
|
725
|
+
return [
|
|
726
|
+
sdk.CurrencyAmount.fromRawAmount(inputToken, inputAmount),
|
|
727
|
+
new Pool(this.token0, this.token1, this.fee, sqrtRatioX96, liquidity, tickCurrent, this.tickDataProvider)
|
|
728
|
+
];
|
|
729
|
+
}
|
|
707
730
|
/**
|
|
708
731
|
* Executes a swap
|
|
709
732
|
* @param zeroForOne Whether the amount in is token0 or token1
|
|
@@ -6546,6 +6569,60 @@ var pancakeV3PoolABI = [
|
|
|
6546
6569
|
}
|
|
6547
6570
|
];
|
|
6548
6571
|
|
|
6572
|
+
// src/abi/V3PoolAbi.ts
|
|
6573
|
+
var v3PoolAbi = [
|
|
6574
|
+
{
|
|
6575
|
+
inputs: [],
|
|
6576
|
+
name: "liquidity",
|
|
6577
|
+
outputs: [{ internalType: "uint128", name: "", type: "uint128" }],
|
|
6578
|
+
stateMutability: "view",
|
|
6579
|
+
type: "function"
|
|
6580
|
+
},
|
|
6581
|
+
{
|
|
6582
|
+
inputs: [],
|
|
6583
|
+
name: "slot0",
|
|
6584
|
+
outputs: [
|
|
6585
|
+
{
|
|
6586
|
+
internalType: "uint160",
|
|
6587
|
+
name: "sqrtPriceX96",
|
|
6588
|
+
type: "uint160"
|
|
6589
|
+
},
|
|
6590
|
+
{
|
|
6591
|
+
internalType: "int24",
|
|
6592
|
+
name: "tick",
|
|
6593
|
+
type: "int24"
|
|
6594
|
+
},
|
|
6595
|
+
{
|
|
6596
|
+
internalType: "uint16",
|
|
6597
|
+
name: "observationIndex",
|
|
6598
|
+
type: "uint16"
|
|
6599
|
+
},
|
|
6600
|
+
{
|
|
6601
|
+
internalType: "uint16",
|
|
6602
|
+
name: "observationCardinality",
|
|
6603
|
+
type: "uint16"
|
|
6604
|
+
},
|
|
6605
|
+
{
|
|
6606
|
+
internalType: "uint16",
|
|
6607
|
+
name: "observationCardinalityNext",
|
|
6608
|
+
type: "uint16"
|
|
6609
|
+
},
|
|
6610
|
+
{
|
|
6611
|
+
internalType: "uint32",
|
|
6612
|
+
name: "feeProtocol",
|
|
6613
|
+
type: "uint32"
|
|
6614
|
+
},
|
|
6615
|
+
{
|
|
6616
|
+
internalType: "bool",
|
|
6617
|
+
name: "unlocked",
|
|
6618
|
+
type: "bool"
|
|
6619
|
+
}
|
|
6620
|
+
],
|
|
6621
|
+
stateMutability: "view",
|
|
6622
|
+
type: "function"
|
|
6623
|
+
}
|
|
6624
|
+
];
|
|
6625
|
+
|
|
6549
6626
|
exports.ADDRESS_ZERO = ADDRESS_ZERO;
|
|
6550
6627
|
exports.DEPLOYER_ADDRESSES = DEPLOYER_ADDRESSES;
|
|
6551
6628
|
exports.FACTORY_ADDRESSES = FACTORY_ADDRESSES;
|
|
@@ -6615,4 +6692,5 @@ exports.swapRouterABI = swapRouterABI;
|
|
|
6615
6692
|
exports.tickToPrice = tickToPrice;
|
|
6616
6693
|
exports.toHex = toHex;
|
|
6617
6694
|
exports.tradeComparator = tradeComparator;
|
|
6695
|
+
exports.v3PoolAbi = v3PoolAbi;
|
|
6618
6696
|
exports.v3StakerABI = v3StakerABI;
|
package/dist/index.mjs
CHANGED
|
@@ -698,6 +698,29 @@ var Pool = class {
|
|
|
698
698
|
new Pool(this.token0, this.token1, this.fee, sqrtRatioX96, liquidity, tickCurrent, this.tickDataProvider)
|
|
699
699
|
];
|
|
700
700
|
}
|
|
701
|
+
/**
|
|
702
|
+
* Given a desired output amount of a token, return the computed input amount and a pool with state updated after the trade
|
|
703
|
+
* @param outputAmount the output amount for which to quote the input amount
|
|
704
|
+
* @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap
|
|
705
|
+
* @returns The input amount and the pool with updated state
|
|
706
|
+
*/
|
|
707
|
+
async getInputAmountByExactOut(outputAmount, sqrtPriceLimitX96) {
|
|
708
|
+
invariant9(outputAmount.currency.isToken && this.involvesToken(outputAmount.currency), "TOKEN");
|
|
709
|
+
const zeroForOne = outputAmount.currency.equals(this.token1);
|
|
710
|
+
const {
|
|
711
|
+
amountSpecifiedRemaining,
|
|
712
|
+
amountCalculated: inputAmount,
|
|
713
|
+
sqrtRatioX96,
|
|
714
|
+
liquidity,
|
|
715
|
+
tickCurrent
|
|
716
|
+
} = await this.swap(zeroForOne, outputAmount.quotient * NEGATIVE_ONE, sqrtPriceLimitX96);
|
|
717
|
+
invariant9(amountSpecifiedRemaining === 0n, "INSUFFICIENT_LIQUIDITY");
|
|
718
|
+
const inputToken = zeroForOne ? this.token0 : this.token1;
|
|
719
|
+
return [
|
|
720
|
+
CurrencyAmount.fromRawAmount(inputToken, inputAmount),
|
|
721
|
+
new Pool(this.token0, this.token1, this.fee, sqrtRatioX96, liquidity, tickCurrent, this.tickDataProvider)
|
|
722
|
+
];
|
|
723
|
+
}
|
|
701
724
|
/**
|
|
702
725
|
* Executes a swap
|
|
703
726
|
* @param zeroForOne Whether the amount in is token0 or token1
|
|
@@ -6540,4 +6563,58 @@ var pancakeV3PoolABI = [
|
|
|
6540
6563
|
}
|
|
6541
6564
|
];
|
|
6542
6565
|
|
|
6543
|
-
|
|
6566
|
+
// src/abi/V3PoolAbi.ts
|
|
6567
|
+
var v3PoolAbi = [
|
|
6568
|
+
{
|
|
6569
|
+
inputs: [],
|
|
6570
|
+
name: "liquidity",
|
|
6571
|
+
outputs: [{ internalType: "uint128", name: "", type: "uint128" }],
|
|
6572
|
+
stateMutability: "view",
|
|
6573
|
+
type: "function"
|
|
6574
|
+
},
|
|
6575
|
+
{
|
|
6576
|
+
inputs: [],
|
|
6577
|
+
name: "slot0",
|
|
6578
|
+
outputs: [
|
|
6579
|
+
{
|
|
6580
|
+
internalType: "uint160",
|
|
6581
|
+
name: "sqrtPriceX96",
|
|
6582
|
+
type: "uint160"
|
|
6583
|
+
},
|
|
6584
|
+
{
|
|
6585
|
+
internalType: "int24",
|
|
6586
|
+
name: "tick",
|
|
6587
|
+
type: "int24"
|
|
6588
|
+
},
|
|
6589
|
+
{
|
|
6590
|
+
internalType: "uint16",
|
|
6591
|
+
name: "observationIndex",
|
|
6592
|
+
type: "uint16"
|
|
6593
|
+
},
|
|
6594
|
+
{
|
|
6595
|
+
internalType: "uint16",
|
|
6596
|
+
name: "observationCardinality",
|
|
6597
|
+
type: "uint16"
|
|
6598
|
+
},
|
|
6599
|
+
{
|
|
6600
|
+
internalType: "uint16",
|
|
6601
|
+
name: "observationCardinalityNext",
|
|
6602
|
+
type: "uint16"
|
|
6603
|
+
},
|
|
6604
|
+
{
|
|
6605
|
+
internalType: "uint32",
|
|
6606
|
+
name: "feeProtocol",
|
|
6607
|
+
type: "uint32"
|
|
6608
|
+
},
|
|
6609
|
+
{
|
|
6610
|
+
internalType: "bool",
|
|
6611
|
+
name: "unlocked",
|
|
6612
|
+
type: "bool"
|
|
6613
|
+
}
|
|
6614
|
+
],
|
|
6615
|
+
stateMutability: "view",
|
|
6616
|
+
type: "function"
|
|
6617
|
+
}
|
|
6618
|
+
];
|
|
6619
|
+
|
|
6620
|
+
export { ADDRESS_ZERO, DEPLOYER_ADDRESSES, FACTORY_ADDRESSES, FeeAmount, FeeCalculator, FullMath, LiquidityMath, MasterChefV3, MaxUint128, Multicall, NFT_POSITION_MANAGER_ADDRESSES, NoTickDataProvider, NonfungiblePositionManager, POOL_INIT_CODE_HASHES, Payments, Pool, Position, PositionLibrary, PositionMath, Route, SelfPermit, SqrtPriceMath, Staker, SwapMath, SwapQuoter, SwapRouter, TICK_SPACINGS, Tick, TickLibrary, TickList, TickListDataProvider, TickMath, Trade, computePoolAddress, encodeRouteToPath, encodeSqrtRatioX96, getAmountsAtNewPrice, getAmountsByLiquidityAndPrice, getAverageLiquidity, getDependentAmount, getEstimatedLPFee, getEstimatedLPFeeByAmounts, getEstimatedLPFeeByAmountsWithProtocolFee, getEstimatedLPFeeWithProtocolFee, getLiquidityByAmountsAndPrice, getLiquidityBySingleAmount, getLiquidityFromSqrtRatioX96, getLiquidityFromTick, isMint, isPoolTickInRange, isSorted, masterChefV3ABI, maxLiquidityForAmounts, mostSignificantBit, nearestUsableTick, nonfungiblePositionManagerABI, pancakeV3PoolABI, parseProtocolFees, peripheryPaymentsWithFeeABI, priceToClosestTick, quoterABI, quoterV2ABI, selfPermitABI, sqrtRatioX96ToPrice, subIn256, swapRouterABI, tickToPrice, toHex, tradeComparator, v3PoolAbi, v3StakerABI };
|