@meteora-ag/dlmm 1.0.42 → 1.0.43
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 +2 -1
- package/dist/index.js +61 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6682,7 +6682,7 @@ var DLMM = class {
|
|
|
6682
6682
|
);
|
|
6683
6683
|
const program = new Program2(
|
|
6684
6684
|
IDL,
|
|
6685
|
-
LBCLMM_PROGRAM_IDS[opt?.cluster ?? "mainnet-beta"],
|
|
6685
|
+
opt?.programId ?? LBCLMM_PROGRAM_IDS[opt?.cluster ?? "mainnet-beta"],
|
|
6686
6686
|
provider
|
|
6687
6687
|
);
|
|
6688
6688
|
return program.account.lbPair.all();
|
|
@@ -6694,7 +6694,11 @@ var DLMM = class {
|
|
|
6694
6694
|
{},
|
|
6695
6695
|
AnchorProvider2.defaultOptions()
|
|
6696
6696
|
);
|
|
6697
|
-
const program = new Program2(
|
|
6697
|
+
const program = new Program2(
|
|
6698
|
+
IDL,
|
|
6699
|
+
opt?.programId ?? LBCLMM_PROGRAM_IDS[cluster],
|
|
6700
|
+
provider
|
|
6701
|
+
);
|
|
6698
6702
|
try {
|
|
6699
6703
|
const [lbPair2Key] = deriveLbPair2(
|
|
6700
6704
|
tokenX,
|
|
@@ -6737,7 +6741,11 @@ var DLMM = class {
|
|
|
6737
6741
|
{},
|
|
6738
6742
|
AnchorProvider2.defaultOptions()
|
|
6739
6743
|
);
|
|
6740
|
-
const program = new Program2(
|
|
6744
|
+
const program = new Program2(
|
|
6745
|
+
IDL,
|
|
6746
|
+
opt?.programId ?? LBCLMM_PROGRAM_IDS[cluster],
|
|
6747
|
+
provider
|
|
6748
|
+
);
|
|
6741
6749
|
const binArrayBitMapExtensionPubkey = deriveBinArrayBitmapExtension(
|
|
6742
6750
|
dlmm,
|
|
6743
6751
|
program.programId
|
|
@@ -6824,7 +6832,11 @@ var DLMM = class {
|
|
|
6824
6832
|
{},
|
|
6825
6833
|
AnchorProvider2.defaultOptions()
|
|
6826
6834
|
);
|
|
6827
|
-
const program = new Program2(
|
|
6835
|
+
const program = new Program2(
|
|
6836
|
+
IDL,
|
|
6837
|
+
opt?.programId ?? LBCLMM_PROGRAM_IDS[cluster],
|
|
6838
|
+
provider
|
|
6839
|
+
);
|
|
6828
6840
|
const binArrayBitMapExtensions = dlmmList.map(
|
|
6829
6841
|
(lbPair) => deriveBinArrayBitmapExtension(lbPair, program.programId)[0]
|
|
6830
6842
|
);
|
|
@@ -6932,7 +6944,7 @@ var DLMM = class {
|
|
|
6932
6944
|
);
|
|
6933
6945
|
const program = new Program2(
|
|
6934
6946
|
IDL,
|
|
6935
|
-
LBCLMM_PROGRAM_IDS[opt?.cluster ?? "mainnet-beta"],
|
|
6947
|
+
opt?.programId ?? LBCLMM_PROGRAM_IDS[opt?.cluster ?? "mainnet-beta"],
|
|
6936
6948
|
provider
|
|
6937
6949
|
);
|
|
6938
6950
|
const presetParameter = await program.account.presetParameter.all();
|
|
@@ -6956,7 +6968,11 @@ var DLMM = class {
|
|
|
6956
6968
|
{},
|
|
6957
6969
|
AnchorProvider2.defaultOptions()
|
|
6958
6970
|
);
|
|
6959
|
-
const program = new Program2(
|
|
6971
|
+
const program = new Program2(
|
|
6972
|
+
IDL,
|
|
6973
|
+
opt?.programId ?? LBCLMM_PROGRAM_IDS[cluster],
|
|
6974
|
+
provider
|
|
6975
|
+
);
|
|
6960
6976
|
const positions = await program.account.position.all([
|
|
6961
6977
|
{
|
|
6962
6978
|
memcmp: {
|
|
@@ -7306,7 +7322,11 @@ var DLMM = class {
|
|
|
7306
7322
|
{},
|
|
7307
7323
|
AnchorProvider2.defaultOptions()
|
|
7308
7324
|
);
|
|
7309
|
-
const program = new Program2(
|
|
7325
|
+
const program = new Program2(
|
|
7326
|
+
IDL,
|
|
7327
|
+
opt?.programId ?? LBCLMM_PROGRAM_IDS[cluster],
|
|
7328
|
+
provider
|
|
7329
|
+
);
|
|
7310
7330
|
const positionsState = await program.account.position.fetchMultiple(
|
|
7311
7331
|
positions
|
|
7312
7332
|
);
|
|
@@ -7360,7 +7380,11 @@ var DLMM = class {
|
|
|
7360
7380
|
{},
|
|
7361
7381
|
AnchorProvider2.defaultOptions()
|
|
7362
7382
|
);
|
|
7363
|
-
const program = new Program2(
|
|
7383
|
+
const program = new Program2(
|
|
7384
|
+
IDL,
|
|
7385
|
+
opt?.programId ?? LBCLMM_PROGRAM_IDS[opt.cluster],
|
|
7386
|
+
provider
|
|
7387
|
+
);
|
|
7364
7388
|
const [lbPair] = derivePermissionLbPair(
|
|
7365
7389
|
baseKey,
|
|
7366
7390
|
tokenX,
|
|
@@ -7405,7 +7429,11 @@ var DLMM = class {
|
|
|
7405
7429
|
{},
|
|
7406
7430
|
AnchorProvider2.defaultOptions()
|
|
7407
7431
|
);
|
|
7408
|
-
const program = new Program2(
|
|
7432
|
+
const program = new Program2(
|
|
7433
|
+
IDL,
|
|
7434
|
+
opt?.programId ?? LBCLMM_PROGRAM_IDS[opt.cluster],
|
|
7435
|
+
provider
|
|
7436
|
+
);
|
|
7409
7437
|
const existsPool = await this.getPairPubkeyIfExists(
|
|
7410
7438
|
connection,
|
|
7411
7439
|
tokenX,
|