@meteora-ag/dlmm 1.4.6-rc.4 → 1.4.6
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 +7 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14572,11 +14572,11 @@ var DLMM = class {
|
|
|
14572
14572
|
_nullishCoalesce(_optionalChain([this, 'access', _94 => _94.binArrayBitmapExtension, 'optionalAccess', _95 => _95.account]), () => ( null))
|
|
14573
14573
|
);
|
|
14574
14574
|
const accountsToFetch = [];
|
|
14575
|
-
const binArrayBitMapExtensionPubkey =
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14575
|
+
const [binArrayBitMapExtensionPubkey] = deriveBinArrayBitmapExtension(
|
|
14576
|
+
this.pubkey,
|
|
14577
|
+
this.program.programId
|
|
14578
|
+
);
|
|
14579
|
+
accountsToFetch.push(binArrayBitMapExtensionPubkey);
|
|
14580
14580
|
const [fromBinArrayPubkey] = deriveBinArray(
|
|
14581
14581
|
this.pubkey,
|
|
14582
14582
|
fromBinArrayIndex,
|
|
@@ -14597,22 +14597,12 @@ var DLMM = class {
|
|
|
14597
14597
|
const binArrayAccounts = await this.program.provider.connection.getMultipleAccountsInfo(
|
|
14598
14598
|
accountsToFetch
|
|
14599
14599
|
);
|
|
14600
|
-
const preInstructions = [];
|
|
14601
14600
|
let fromBinArray = null;
|
|
14602
14601
|
let toBinArray = null;
|
|
14603
14602
|
let binArrayBitmapExtension = null;
|
|
14604
|
-
if (
|
|
14603
|
+
if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _96 => _96[0]])) {
|
|
14605
14604
|
binArrayBitmapExtension = binArrayBitMapExtensionPubkey;
|
|
14606
|
-
if (!_optionalChain([binArrayAccounts, 'optionalAccess', _96 => _96[0]])) {
|
|
14607
|
-
const initializeBitmapExtensionIx = await this.program.methods.initializeBinArrayBitmapExtension().accounts({
|
|
14608
|
-
binArrayBitmapExtension: binArrayBitMapExtensionPubkey,
|
|
14609
|
-
funder: owner,
|
|
14610
|
-
lbPair: this.pubkey
|
|
14611
|
-
}).instruction();
|
|
14612
|
-
preInstructions.push(initializeBitmapExtensionIx);
|
|
14613
|
-
}
|
|
14614
14605
|
}
|
|
14615
|
-
console.log({ binArrayBitmapExtension });
|
|
14616
14606
|
if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _97 => _97[1]])) {
|
|
14617
14607
|
fromBinArray = fromBinArrayPubkey;
|
|
14618
14608
|
}
|
|
@@ -14625,7 +14615,7 @@ var DLMM = class {
|
|
|
14625
14615
|
binArrayBitmapExtension,
|
|
14626
14616
|
fromBinArray,
|
|
14627
14617
|
toBinArray
|
|
14628
|
-
}).
|
|
14618
|
+
}).transaction();
|
|
14629
14619
|
return new (0, _web3js.Transaction)({
|
|
14630
14620
|
feePayer: owner,
|
|
14631
14621
|
blockhash,
|