@stabbleorg/mclmm-sdk 0.2.1 → 0.3.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/lib/index.js CHANGED
@@ -7916,6 +7916,7 @@ var NATIVE_MINT_2022 = new import_web3.PublicKey("9pan9bMn5HatX4EJdBwg9VgCa7Uz5H
7916
7916
  // src/position-manager.ts
7917
7917
  var import_system = require("@solana-program/system");
7918
7918
  var import_decimal4 = __toESM(require("decimal.js"));
7919
+ var TOKEN_ACCOUNT_SIZE = 165n;
7919
7920
  var PositionManager = class {
7920
7921
  constructor(config) {
7921
7922
  this.config = config;
@@ -7939,6 +7940,71 @@ var PositionManager = class {
7939
7940
  (0, import_token4.getSyncNativeInstruction)({ account: ata })
7940
7941
  ];
7941
7942
  }
7943
+ buildUnwrapSolInstruction(params) {
7944
+ const { payer, owner, destination, ata } = params;
7945
+ return [
7946
+ // There's a chance user might have deleted the ATA - create it with idempotent just to be sure.
7947
+ (0, import_token4.getCreateAssociatedTokenIdempotentInstruction)({
7948
+ payer,
7949
+ ata,
7950
+ owner,
7951
+ mint: (0, import_kit53.address)(NATIVE_MINT.toString()),
7952
+ tokenProgram: import_token4.TOKEN_PROGRAM_ADDRESS,
7953
+ systemProgram: SYSTEM_PROGRAM_ID
7954
+ }),
7955
+ (0, import_token4.getCloseAccountInstruction)({
7956
+ account: ata,
7957
+ destination,
7958
+ owner
7959
+ })
7960
+ ];
7961
+ }
7962
+ /**
7963
+ * Build partial unwrap SOL instructions using a temp account:
7964
+ * 1. Create temp account
7965
+ * 2. Initialize as WSOL token account
7966
+ * 3. Transfer specific amount from source ATA to temp
7967
+ * 4. Close temp account (lamports go to destination)
7968
+ */
7969
+ async buildPartialUnwrapSolInstructions(params) {
7970
+ const { payer, sourceAta, destination, amount } = params;
7971
+ const rentExemptLamports = await this.config.rpc.getMinimumBalanceForRentExemption(TOKEN_ACCOUNT_SIZE).send();
7972
+ const tempAccount = await (0, import_kit53.generateKeyPairSigner)();
7973
+ const createTempAccountIx = (0, import_system.getCreateAccountInstruction)({
7974
+ payer,
7975
+ newAccount: tempAccount,
7976
+ lamports: rentExemptLamports,
7977
+ space: TOKEN_ACCOUNT_SIZE,
7978
+ programAddress: import_token4.TOKEN_PROGRAM_ADDRESS
7979
+ });
7980
+ const initTempAccountIx = (0, import_token4.getInitializeAccount3Instruction)({
7981
+ account: tempAccount.address,
7982
+ mint: (0, import_kit53.address)(NATIVE_MINT.toString()),
7983
+ owner: destination
7984
+ });
7985
+ const transferIx = (0, import_token4.getTransferCheckedInstruction)({
7986
+ source: sourceAta,
7987
+ mint: (0, import_kit53.address)(NATIVE_MINT.toString()),
7988
+ destination: tempAccount.address,
7989
+ authority: payer,
7990
+ amount,
7991
+ decimals: 9
7992
+ });
7993
+ const closeIx = (0, import_token4.getCloseAccountInstruction)({
7994
+ account: tempAccount.address,
7995
+ destination,
7996
+ owner: destination
7997
+ });
7998
+ return {
7999
+ instructions: [
8000
+ createTempAccountIx,
8001
+ initTempAccountIx,
8002
+ transferIx,
8003
+ closeIx
8004
+ ],
8005
+ signers: [tempAccount]
8006
+ };
8007
+ }
7942
8008
  /**
7943
8009
  * Make open position from liquidity instructions
7944
8010
  * Use this when you know the exact liquidity amount you want to provide
@@ -8236,6 +8302,7 @@ var PositionManager = class {
8236
8302
  /**
8237
8303
  * Make decrease liquidity V2 instructions
8238
8304
  * @param params - Decrease liquidity parameters
8305
+ * @param params.isNative - Whether to unwrap WSOL to native SOL after decrease
8239
8306
  * @returns Instruction result following Raydium pattern
8240
8307
  */
8241
8308
  async makeDecreaseLiquidityV2Instructions(params) {
@@ -8245,8 +8312,10 @@ var PositionManager = class {
8245
8312
  ownerInfo,
8246
8313
  liquidity,
8247
8314
  amountMinA,
8248
- amountMinB
8315
+ amountMinB,
8316
+ isNative = false
8249
8317
  } = params;
8318
+ const signers = [];
8250
8319
  const [personalPosition] = await PdaUtils.getPositionStatePda(
8251
8320
  ownerPosition.nftMint
8252
8321
  );
@@ -8302,9 +8371,35 @@ var PositionManager = class {
8302
8371
  ...instruction,
8303
8372
  accounts: [...instruction.accounts, ...remAccounts]
8304
8373
  };
8374
+ const instructions = [ixWithRemAccounts];
8375
+ if (isNative) {
8376
+ const destination = ownerInfo.wallet.address;
8377
+ const isFullWithdrawal = liquidity === ownerPosition.liquidity;
8378
+ const isTokenANative = poolState.data.tokenMint0.toString() === NATIVE_MINT.toString();
8379
+ const wsolAta = isTokenANative ? ownerInfo.tokenAccountA : ownerInfo.tokenAccountB;
8380
+ const amount = isTokenANative ? amountMinA : amountMinB;
8381
+ if (isFullWithdrawal) {
8382
+ const unwrapIxs = this.buildUnwrapSolInstruction({
8383
+ payer: ownerInfo.wallet,
8384
+ ata: wsolAta,
8385
+ owner: ownerInfo.wallet.address,
8386
+ destination
8387
+ });
8388
+ instructions.push(...unwrapIxs);
8389
+ } else {
8390
+ const { instructions: partialUnwrapIxs, signers: partialSigners } = await this.buildPartialUnwrapSolInstructions({
8391
+ payer: ownerInfo.wallet,
8392
+ sourceAta: wsolAta,
8393
+ destination,
8394
+ amount
8395
+ });
8396
+ instructions.push(...partialUnwrapIxs);
8397
+ signers.push(...partialSigners);
8398
+ }
8399
+ }
8305
8400
  return {
8306
- instructions: [ixWithRemAccounts],
8307
- signers: [],
8401
+ instructions,
8402
+ signers,
8308
8403
  instructionTypes: ["DecreaseLiquidityV2"],
8309
8404
  address: {
8310
8405
  tickArrayLower,
package/lib/index.mjs CHANGED
@@ -8473,7 +8473,10 @@ import {
8473
8473
  getSyncNativeInstruction,
8474
8474
  findAssociatedTokenPda,
8475
8475
  TOKEN_PROGRAM_ADDRESS as TOKEN_PROGRAM_ADDRESS3,
8476
- getCreateAssociatedTokenIdempotentInstruction
8476
+ getCreateAssociatedTokenIdempotentInstruction,
8477
+ getCloseAccountInstruction,
8478
+ getInitializeAccount3Instruction,
8479
+ getTransferCheckedInstruction
8477
8480
  } from "@solana-program/token";
8478
8481
  import { TOKEN_2022_PROGRAM_ADDRESS as TOKEN_2022_PROGRAM_ADDRESS2 } from "@solana-program/token-2022";
8479
8482
  import BN6 from "bn.js";
@@ -8487,8 +8490,12 @@ var NATIVE_MINT = new PublicKey("So11111111111111111111111111111111111111112");
8487
8490
  var NATIVE_MINT_2022 = new PublicKey("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");
8488
8491
 
8489
8492
  // src/position-manager.ts
8490
- import { getTransferSolInstruction } from "@solana-program/system";
8493
+ import {
8494
+ getTransferSolInstruction,
8495
+ getCreateAccountInstruction
8496
+ } from "@solana-program/system";
8491
8497
  import Decimal4 from "decimal.js";
8498
+ var TOKEN_ACCOUNT_SIZE = 165n;
8492
8499
  var PositionManager = class {
8493
8500
  constructor(config) {
8494
8501
  this.config = config;
@@ -8512,6 +8519,71 @@ var PositionManager = class {
8512
8519
  getSyncNativeInstruction({ account: ata })
8513
8520
  ];
8514
8521
  }
8522
+ buildUnwrapSolInstruction(params) {
8523
+ const { payer, owner, destination, ata } = params;
8524
+ return [
8525
+ // There's a chance user might have deleted the ATA - create it with idempotent just to be sure.
8526
+ getCreateAssociatedTokenIdempotentInstruction({
8527
+ payer,
8528
+ ata,
8529
+ owner,
8530
+ mint: address4(NATIVE_MINT.toString()),
8531
+ tokenProgram: TOKEN_PROGRAM_ADDRESS3,
8532
+ systemProgram: SYSTEM_PROGRAM_ID
8533
+ }),
8534
+ getCloseAccountInstruction({
8535
+ account: ata,
8536
+ destination,
8537
+ owner
8538
+ })
8539
+ ];
8540
+ }
8541
+ /**
8542
+ * Build partial unwrap SOL instructions using a temp account:
8543
+ * 1. Create temp account
8544
+ * 2. Initialize as WSOL token account
8545
+ * 3. Transfer specific amount from source ATA to temp
8546
+ * 4. Close temp account (lamports go to destination)
8547
+ */
8548
+ async buildPartialUnwrapSolInstructions(params) {
8549
+ const { payer, sourceAta, destination, amount } = params;
8550
+ const rentExemptLamports = await this.config.rpc.getMinimumBalanceForRentExemption(TOKEN_ACCOUNT_SIZE).send();
8551
+ const tempAccount = await generateKeyPairSigner();
8552
+ const createTempAccountIx = getCreateAccountInstruction({
8553
+ payer,
8554
+ newAccount: tempAccount,
8555
+ lamports: rentExemptLamports,
8556
+ space: TOKEN_ACCOUNT_SIZE,
8557
+ programAddress: TOKEN_PROGRAM_ADDRESS3
8558
+ });
8559
+ const initTempAccountIx = getInitializeAccount3Instruction({
8560
+ account: tempAccount.address,
8561
+ mint: address4(NATIVE_MINT.toString()),
8562
+ owner: destination
8563
+ });
8564
+ const transferIx = getTransferCheckedInstruction({
8565
+ source: sourceAta,
8566
+ mint: address4(NATIVE_MINT.toString()),
8567
+ destination: tempAccount.address,
8568
+ authority: payer,
8569
+ amount,
8570
+ decimals: 9
8571
+ });
8572
+ const closeIx = getCloseAccountInstruction({
8573
+ account: tempAccount.address,
8574
+ destination,
8575
+ owner: destination
8576
+ });
8577
+ return {
8578
+ instructions: [
8579
+ createTempAccountIx,
8580
+ initTempAccountIx,
8581
+ transferIx,
8582
+ closeIx
8583
+ ],
8584
+ signers: [tempAccount]
8585
+ };
8586
+ }
8515
8587
  /**
8516
8588
  * Make open position from liquidity instructions
8517
8589
  * Use this when you know the exact liquidity amount you want to provide
@@ -8809,6 +8881,7 @@ var PositionManager = class {
8809
8881
  /**
8810
8882
  * Make decrease liquidity V2 instructions
8811
8883
  * @param params - Decrease liquidity parameters
8884
+ * @param params.isNative - Whether to unwrap WSOL to native SOL after decrease
8812
8885
  * @returns Instruction result following Raydium pattern
8813
8886
  */
8814
8887
  async makeDecreaseLiquidityV2Instructions(params) {
@@ -8818,8 +8891,10 @@ var PositionManager = class {
8818
8891
  ownerInfo,
8819
8892
  liquidity,
8820
8893
  amountMinA,
8821
- amountMinB
8894
+ amountMinB,
8895
+ isNative = false
8822
8896
  } = params;
8897
+ const signers = [];
8823
8898
  const [personalPosition] = await PdaUtils.getPositionStatePda(
8824
8899
  ownerPosition.nftMint
8825
8900
  );
@@ -8875,9 +8950,35 @@ var PositionManager = class {
8875
8950
  ...instruction,
8876
8951
  accounts: [...instruction.accounts, ...remAccounts]
8877
8952
  };
8953
+ const instructions = [ixWithRemAccounts];
8954
+ if (isNative) {
8955
+ const destination = ownerInfo.wallet.address;
8956
+ const isFullWithdrawal = liquidity === ownerPosition.liquidity;
8957
+ const isTokenANative = poolState.data.tokenMint0.toString() === NATIVE_MINT.toString();
8958
+ const wsolAta = isTokenANative ? ownerInfo.tokenAccountA : ownerInfo.tokenAccountB;
8959
+ const amount = isTokenANative ? amountMinA : amountMinB;
8960
+ if (isFullWithdrawal) {
8961
+ const unwrapIxs = this.buildUnwrapSolInstruction({
8962
+ payer: ownerInfo.wallet,
8963
+ ata: wsolAta,
8964
+ owner: ownerInfo.wallet.address,
8965
+ destination
8966
+ });
8967
+ instructions.push(...unwrapIxs);
8968
+ } else {
8969
+ const { instructions: partialUnwrapIxs, signers: partialSigners } = await this.buildPartialUnwrapSolInstructions({
8970
+ payer: ownerInfo.wallet,
8971
+ sourceAta: wsolAta,
8972
+ destination,
8973
+ amount
8974
+ });
8975
+ instructions.push(...partialUnwrapIxs);
8976
+ signers.push(...partialSigners);
8977
+ }
8978
+ }
8878
8979
  return {
8879
- instructions: [ixWithRemAccounts],
8880
- signers: [],
8980
+ instructions,
8981
+ signers,
8881
8982
  instructionTypes: ["DecreaseLiquidityV2"],
8882
8983
  address: {
8883
8984
  tickArrayLower,
@@ -5,6 +5,15 @@ export declare class PositionManager {
5
5
  private readonly config;
6
6
  constructor(config: ClmmSdkConfig);
7
7
  private buildWrapSolInstructions;
8
+ private buildUnwrapSolInstruction;
9
+ /**
10
+ * Build partial unwrap SOL instructions using a temp account:
11
+ * 1. Create temp account
12
+ * 2. Initialize as WSOL token account
13
+ * 3. Transfer specific amount from source ATA to temp
14
+ * 4. Close temp account (lamports go to destination)
15
+ */
16
+ private buildPartialUnwrapSolInstructions;
8
17
  /**
9
18
  * Make open position from liquidity instructions
10
19
  * Use this when you know the exact liquidity amount you want to provide
@@ -80,6 +89,7 @@ export declare class PositionManager {
80
89
  /**
81
90
  * Make decrease liquidity V2 instructions
82
91
  * @param params - Decrease liquidity parameters
92
+ * @param params.isNative - Whether to unwrap WSOL to native SOL after decrease
83
93
  * @returns Instruction result following Raydium pattern
84
94
  */
85
95
  makeDecreaseLiquidityV2Instructions(params: {
@@ -93,6 +103,7 @@ export declare class PositionManager {
93
103
  liquidity: bigint;
94
104
  amountMinA: bigint;
95
105
  amountMinB: bigint;
106
+ isNative?: boolean;
96
107
  }): Promise<MakeInstructionResult<{}>>;
97
108
  /**
98
109
  * Make close position instructions
@@ -1 +1 @@
1
- {"version":3,"file":"position-manager.d.ts","sourceRoot":"","sources":["../src/position-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,KAAK,OAAO,EAEZ,KAAK,iBAAiB,EAKvB,MAAM,aAAa,CAAC;AAErB,OAAO,EAOL,qBAAqB,EACrB,SAAS,EACV,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EACV,aAAa,EACb,qBAAqB,EACrB,YAAY,EACb,MAAM,SAAS,CAAC;AAuBjB,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAElD,OAAO,CAAC,wBAAwB;IAyBhC;;;;;OAKG;IACG,yCAAyC,CAAC,MAAM,EAAE;QACtD,WAAW,EAAE,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACzC,SAAS,EAAE;YACT,QAAQ,EAAE,iBAAiB,CAAC;YAC5B,MAAM,EAAE,OAAO,CAAC;YAChB,aAAa,EAAE,OAAO,CAAC;YACvB,aAAa,EAAE,OAAO,CAAC;YACvB,aAAa,CAAC,EAAE,OAAO,CAAC;SACzB,CAAC;QACF,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,YA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C;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,GAAG,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;IAwItC;;;;OAIG;IACG,6BAA6B,CAAC,MAAM,EAAE;QAC1C,aAAa,EAAE,qBAAqB,CAAC;QACrC,SAAS,EAAE;YACT,MAAM,EAAE,iBAAiB,CAAC;SAC3B,CAAC;KACH,GAAG,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;IA6BtC;;;;OAIG;IACG,WAAW,CACf,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;IAuBxC;;;;;OAKG;IACH,kBAAkB,CAChB,QAAQ,EAAE,qBAAqB,EAC/B,IAAI,EAAE,SAAS,GACd,YAAY;IAqEf;;;;OAIG;IACG,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;CAiEtE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stabbleorg/mclmm-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "SDK for Stabble's margin-enabled concentrated liquidity market maker",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",