You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, if you have your wallet stored as a 64-byte private key in a `wallet.json` file, you can load it using `createKeyPairSignerFromBytes`.
37
+
You can [generate a file system wallet using the Solana CLI](https://docs.solanalabs.com/cli/wallets/file-system) and load it using `createKeyPairSignerFromBytes`.
Copy file name to clipboardExpand all lines: docs/whirlpool/docs/03-Whirlpools SDK/03-Position Management/01-Open Position.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ For more details, refer to our [Environment Setup Guide](../01-Environment%20Set
62
62
4. **Funder**: This can be your wallet, which will fund the pool initialization. If the funder is not specified, the default wallet will be used. You can configure the default wallet through the SDK.
63
63
5. **Create Instructions**: Use the appropriate function to generate the necessary instructions.
Copy file name to clipboardExpand all lines: docs/whirlpool/docs/03-Whirlpools SDK/03-Position Management/03-Adjust Liquidity.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,15 @@ Adjusting liquidity in an existing position can be done as follows:
32
32
5.**Funder**: This can be your wallet, which will fund the pool initialization. If a funder is not specified, the default wallet will be used. You can configure the default wallet through the SDK.
33
33
6.**Create Instructions**: Use the appropriate function to generate the necessary instructions.
Copy file name to clipboardExpand all lines: ts-sdk/whirlpool/src/increaseLiquidity.ts
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -149,21 +149,22 @@ function getIncreaseLiquidityQuote(
149
149
* @param {IncreaseLiquidityQuoteParam} param - The parameters for adding liquidity. Can specify liquidity, Token A, or Token B amounts.
150
150
* @param {number} [slippageToleranceBps=SLIPPAGE_TOLERANCE_BPS] - The maximum acceptable slippage, in basis points (BPS).
151
151
* @param {TransactionSigner} [authority=FUNDER] - The account that authorizes the transaction.
152
-
* @returns {Promise<IncreaseLiquidityInstructions>} - Instructions and quote for increasing liquidity.
152
+
* @returns {Promise<IncreaseLiquidityInstructions>} A promise that resolves to an object containing instructions, quote, position mint address, and initialization costs for increasing liquidity.
153
153
*
154
154
* @example
155
155
* import { increaseLiquidityInstructions } from '@orca-so/whirlpools';
156
-
* import { generateKeyPairSigner, createSolanaRpc, devnet } from '@solana/web3.js';
156
+
* import { generateKeyPairSigner, createSolanaRpc, devnet, lamports } from '@solana/web3.js';
@@ -464,21 +465,22 @@ async function internalOpenPositionInstructions(
464
465
* @param {IncreaseLiquidityQuoteParam} param - The parameters for adding liquidity, where one of `liquidity`, `tokenA`, or `tokenB` must be specified. The SDK will compute the others.
465
466
* @param {number} [slippageToleranceBps=SLIPPAGE_TOLERANCE_BPS] - The maximum acceptable slippage, in basis points (BPS).
466
467
* @param {TransactionSigner} [funder=FUNDER] - The account funding the transaction.
467
-
* @returns {Promise<IncreaseLiquidityInstructions>} - Instructions and quote for opening a full-range position.
468
+
* @returns {Promise<IncreaseLiquidityInstructions>} A promise that resolves to an object containing the instructions, quote, position mint address, and initialization costs for increasing liquidity.
468
469
*
469
470
* @example
470
471
* import { openFullRangePositionInstructions } from '@orca-so/whirlpools';
471
-
* import { generateKeyPairSigner, createSolanaRpc, devnet } from '@solana/web3.js';
472
+
* import { generateKeyPairSigner, createSolanaRpc, devnet, lamports } from '@solana/web3.js';
@@ -530,7 +532,7 @@ export async function openFullRangePositionInstructions(
530
532
* @param {number} [slippageToleranceBps=SLIPPAGE_TOLERANCE_BPS] - The slippage tolerance for adding liquidity, in basis points (BPS).
531
533
* @param {TransactionSigner} [funder=FUNDER] - The account funding the transaction.
532
534
*
533
-
* @returns {Promise<IncreaseLiquidityInstructions>} A promise that resolves to an object containing liquidity information and the list of instructions needed to open the position.
535
+
* @returns {Promise<IncreaseLiquidityInstructions>} A promise that resolves to an object containing instructions, quote, position mint address, and initialization costs for increasing liquidity.
534
536
*
535
537
* @example
536
538
* import { openPositionInstructions } from '@orca-so/whirlpools';
@@ -546,7 +548,7 @@ export async function openFullRangePositionInstructions(
0 commit comments