@meteora-ag/dlmm 1.4.4 → 1.4.6-rc.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/index.js CHANGED
@@ -14231,7 +14231,7 @@ var DLMM = class {
14231
14231
  this.lbPair.tokenXMint,
14232
14232
  positionOwner,
14233
14233
  true,
14234
- this.tokenY.owner
14234
+ this.tokenX.owner
14235
14235
  );
14236
14236
  if (shouldSeedPositionOwner) {
14237
14237
  const positionOwnerTokenXAccount = await this.program.provider.connection.getAccountInfo(
@@ -14597,11 +14597,18 @@ var DLMM = class {
14597
14597
  const binArrayAccounts = await this.program.provider.connection.getMultipleAccountsInfo(
14598
14598
  accountsToFetch
14599
14599
  );
14600
+ const preInstructions = [];
14600
14601
  let fromBinArray = null;
14601
14602
  let toBinArray = null;
14602
14603
  let binArrayBitmapExtension = null;
14603
14604
  if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _96 => _96[0]])) {
14604
14605
  binArrayBitmapExtension = binArrayBitMapExtensionPubkey;
14606
+ const initializeBitmapExtensionIx = await this.program.methods.initializeBinArrayBitmapExtension().accounts({
14607
+ binArrayBitmapExtension: binArrayBitMapExtensionPubkey,
14608
+ funder: owner,
14609
+ lbPair: this.pubkey
14610
+ }).instruction();
14611
+ preInstructions.push(initializeBitmapExtensionIx);
14605
14612
  }
14606
14613
  if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _97 => _97[1]])) {
14607
14614
  fromBinArray = fromBinArrayPubkey;
@@ -14615,7 +14622,7 @@ var DLMM = class {
14615
14622
  binArrayBitmapExtension,
14616
14623
  fromBinArray,
14617
14624
  toBinArray
14618
- }).transaction();
14625
+ }).preInstructions(preInstructions).transaction();
14619
14626
  return new (0, _web3js.Transaction)({
14620
14627
  feePayer: owner,
14621
14628
  blockhash,