@meteora-ag/dlmm 1.4.5 → 1.4.6-rc.1
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 +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14597,11 +14597,19 @@ 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
|
+
} else {
|
|
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);
|
|
14605
14613
|
}
|
|
14606
14614
|
if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _97 => _97[1]])) {
|
|
14607
14615
|
fromBinArray = fromBinArrayPubkey;
|
|
@@ -14615,7 +14623,7 @@ var DLMM = class {
|
|
|
14615
14623
|
binArrayBitmapExtension,
|
|
14616
14624
|
fromBinArray,
|
|
14617
14625
|
toBinArray
|
|
14618
|
-
}).transaction();
|
|
14626
|
+
}).preInstructions(preInstructions).transaction();
|
|
14619
14627
|
return new (0, _web3js.Transaction)({
|
|
14620
14628
|
feePayer: owner,
|
|
14621
14629
|
blockhash,
|