@meteora-ag/dlmm 1.3.10 → 1.3.11

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/index.d.ts CHANGED
@@ -6094,6 +6094,7 @@ declare class DLMM {
6094
6094
  positions: LbPosition[];
6095
6095
  }): Promise<Transaction[]>;
6096
6096
  setActivationPoint(activationPoint: BN): Promise<Transaction>;
6097
+ setPairStatus(enabled: boolean): Promise<Transaction>;
6097
6098
  /**
6098
6099
  * The function `claimSwapFee` is used to claim swap fees for a specific position owned by a specific owner.
6099
6100
  * @param
package/dist/index.js CHANGED
@@ -10586,6 +10586,21 @@ var DLMM = class {
10586
10586
  lastValidBlockHeight
10587
10587
  }).add(setActivationPointTx);
10588
10588
  }
10589
+ async setPairStatus(enabled) {
10590
+ const pairStatus = enabled ? 0 : 1;
10591
+ const tx = await this.program.methods.setPairStatus(pairStatus).accounts(
10592
+ {
10593
+ lbPair: this.pubkey,
10594
+ admin: this.lbPair.creator
10595
+ }
10596
+ ).transaction();
10597
+ const { blockhash, lastValidBlockHeight } = await this.program.provider.connection.getLatestBlockhash("confirmed");
10598
+ return new (0, _web3js.Transaction)({
10599
+ feePayer: this.lbPair.creator,
10600
+ blockhash,
10601
+ lastValidBlockHeight
10602
+ }).add(tx);
10603
+ }
10589
10604
  /**
10590
10605
  * The function `claimSwapFee` is used to claim swap fees for a specific position owned by a specific owner.
10591
10606
  * @param