@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 +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
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 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
|