@meteora-ag/dlmm 1.0.34 → 1.0.35-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.d.ts CHANGED
@@ -5,7 +5,7 @@ import { PublicKey, TransactionInstruction, Connection, Transaction, Cluster } f
5
5
  import Decimal from 'decimal.js';
6
6
 
7
7
  type LbClmm = {
8
- version: "0.5.1";
8
+ version: "0.6.0";
9
9
  name: "lb_clmm";
10
10
  constants: [
11
11
  {
@@ -21,12 +21,26 @@ type LbClmm = {
21
21
  value: "70";
22
22
  },
23
23
  {
24
- name: "MAX_BIN_PER_POSITION";
24
+ name: "DEFAULT_BIN_PER_POSITION";
25
25
  type: {
26
26
  defined: "usize";
27
27
  };
28
28
  value: "70";
29
29
  },
30
+ {
31
+ name: "MAX_RESIZE_LENGTH";
32
+ type: {
33
+ defined: "usize";
34
+ };
35
+ value: "70";
36
+ },
37
+ {
38
+ name: "POSITION_MAX_LENGTH";
39
+ type: {
40
+ defined: "usize";
41
+ };
42
+ value: "1400";
43
+ },
30
44
  {
31
45
  name: "MIN_BIN_ID";
32
46
  type: "i32";
@@ -404,16 +418,6 @@ type LbClmm = {
404
418
  isMut: false;
405
419
  isSigner: false;
406
420
  },
407
- {
408
- name: "binArrayLower";
409
- isMut: true;
410
- isSigner: false;
411
- },
412
- {
413
- name: "binArrayUpper";
414
- isMut: true;
415
- isSigner: false;
416
- },
417
421
  {
418
422
  name: "sender";
419
423
  isMut: false;
@@ -498,16 +502,6 @@ type LbClmm = {
498
502
  isMut: false;
499
503
  isSigner: false;
500
504
  },
501
- {
502
- name: "binArrayLower";
503
- isMut: true;
504
- isSigner: false;
505
- },
506
- {
507
- name: "binArrayUpper";
508
- isMut: true;
509
- isSigner: false;
510
- },
511
505
  {
512
506
  name: "sender";
513
507
  isMut: false;
@@ -592,16 +586,6 @@ type LbClmm = {
592
586
  isMut: false;
593
587
  isSigner: false;
594
588
  },
595
- {
596
- name: "binArrayLower";
597
- isMut: true;
598
- isSigner: false;
599
- },
600
- {
601
- name: "binArrayUpper";
602
- isMut: true;
603
- isSigner: false;
604
- },
605
589
  {
606
590
  name: "sender";
607
591
  isMut: false;
@@ -671,16 +655,6 @@ type LbClmm = {
671
655
  isMut: false;
672
656
  isSigner: false;
673
657
  },
674
- {
675
- name: "binArrayLower";
676
- isMut: true;
677
- isSigner: false;
678
- },
679
- {
680
- name: "binArrayUpper";
681
- isMut: true;
682
- isSigner: false;
683
- },
684
658
  {
685
659
  name: "sender";
686
660
  isMut: false;
@@ -745,16 +719,6 @@ type LbClmm = {
745
719
  isMut: false;
746
720
  isSigner: false;
747
721
  },
748
- {
749
- name: "binArrayLower";
750
- isMut: true;
751
- isSigner: false;
752
- },
753
- {
754
- name: "binArrayUpper";
755
- isMut: true;
756
- isSigner: false;
757
- },
758
722
  {
759
723
  name: "sender";
760
724
  isMut: false;
@@ -834,16 +798,6 @@ type LbClmm = {
834
798
  isMut: false;
835
799
  isSigner: false;
836
800
  },
837
- {
838
- name: "binArrayLower";
839
- isMut: true;
840
- isSigner: false;
841
- },
842
- {
843
- name: "binArrayUpper";
844
- isMut: true;
845
- isSigner: false;
846
- },
847
801
  {
848
802
  name: "sender";
849
803
  isMut: false;
@@ -1491,16 +1445,6 @@ type LbClmm = {
1491
1445
  isMut: true;
1492
1446
  isSigner: false;
1493
1447
  },
1494
- {
1495
- name: "binArrayLower";
1496
- isMut: true;
1497
- isSigner: false;
1498
- },
1499
- {
1500
- name: "binArrayUpper";
1501
- isMut: true;
1502
- isSigner: false;
1503
- },
1504
1448
  {
1505
1449
  name: "sender";
1506
1450
  isMut: false;
@@ -1541,6 +1485,14 @@ type LbClmm = {
1541
1485
  {
1542
1486
  name: "rewardIndex";
1543
1487
  type: "u64";
1488
+ },
1489
+ {
1490
+ name: "minBinId";
1491
+ type: "i32";
1492
+ },
1493
+ {
1494
+ name: "maxBinId";
1495
+ type: "i32";
1544
1496
  }
1545
1497
  ];
1546
1498
  },
@@ -1557,16 +1509,6 @@ type LbClmm = {
1557
1509
  isMut: true;
1558
1510
  isSigner: false;
1559
1511
  },
1560
- {
1561
- name: "binArrayLower";
1562
- isMut: true;
1563
- isSigner: false;
1564
- },
1565
- {
1566
- name: "binArrayUpper";
1567
- isMut: true;
1568
- isSigner: false;
1569
- },
1570
1512
  {
1571
1513
  name: "sender";
1572
1514
  isMut: false;
@@ -1618,7 +1560,16 @@ type LbClmm = {
1618
1560
  isSigner: false;
1619
1561
  }
1620
1562
  ];
1621
- args: [];
1563
+ args: [
1564
+ {
1565
+ name: "minBinId";
1566
+ type: "i32";
1567
+ },
1568
+ {
1569
+ name: "maxBinId";
1570
+ type: "i32";
1571
+ }
1572
+ ];
1622
1573
  },
1623
1574
  {
1624
1575
  name: "closePosition";
@@ -1628,21 +1579,6 @@ type LbClmm = {
1628
1579
  isMut: true;
1629
1580
  isSigner: false;
1630
1581
  },
1631
- {
1632
- name: "lbPair";
1633
- isMut: true;
1634
- isSigner: false;
1635
- },
1636
- {
1637
- name: "binArrayLower";
1638
- isMut: true;
1639
- isSigner: false;
1640
- },
1641
- {
1642
- name: "binArrayUpper";
1643
- isMut: true;
1644
- isSigner: false;
1645
- },
1646
1582
  {
1647
1583
  name: "sender";
1648
1584
  isMut: false;
@@ -1735,6 +1671,101 @@ type LbClmm = {
1735
1671
  }
1736
1672
  ];
1737
1673
  },
1674
+ {
1675
+ name: "increasePositionLength";
1676
+ accounts: [
1677
+ {
1678
+ name: "funder";
1679
+ isMut: true;
1680
+ isSigner: true;
1681
+ },
1682
+ {
1683
+ name: "lbPair";
1684
+ isMut: false;
1685
+ isSigner: false;
1686
+ },
1687
+ {
1688
+ name: "position";
1689
+ isMut: true;
1690
+ isSigner: false;
1691
+ },
1692
+ {
1693
+ name: "owner";
1694
+ isMut: false;
1695
+ isSigner: true;
1696
+ },
1697
+ {
1698
+ name: "systemProgram";
1699
+ isMut: false;
1700
+ isSigner: false;
1701
+ },
1702
+ {
1703
+ name: "eventAuthority";
1704
+ isMut: false;
1705
+ isSigner: false;
1706
+ },
1707
+ {
1708
+ name: "program";
1709
+ isMut: false;
1710
+ isSigner: false;
1711
+ }
1712
+ ];
1713
+ args: [
1714
+ {
1715
+ name: "lengthToAdd";
1716
+ type: "u16";
1717
+ },
1718
+ {
1719
+ name: "side";
1720
+ type: "u8";
1721
+ }
1722
+ ];
1723
+ },
1724
+ {
1725
+ name: "decreasePositionLength";
1726
+ accounts: [
1727
+ {
1728
+ name: "rentReceiver";
1729
+ isMut: true;
1730
+ isSigner: false;
1731
+ },
1732
+ {
1733
+ name: "position";
1734
+ isMut: true;
1735
+ isSigner: false;
1736
+ },
1737
+ {
1738
+ name: "owner";
1739
+ isMut: false;
1740
+ isSigner: true;
1741
+ },
1742
+ {
1743
+ name: "systemProgram";
1744
+ isMut: false;
1745
+ isSigner: false;
1746
+ },
1747
+ {
1748
+ name: "eventAuthority";
1749
+ isMut: false;
1750
+ isSigner: false;
1751
+ },
1752
+ {
1753
+ name: "program";
1754
+ isMut: false;
1755
+ isSigner: false;
1756
+ }
1757
+ ];
1758
+ args: [
1759
+ {
1760
+ name: "lengthToRemove";
1761
+ type: "u16";
1762
+ },
1763
+ {
1764
+ name: "side";
1765
+ type: "u8";
1766
+ }
1767
+ ];
1768
+ },
1738
1769
  {
1739
1770
  name: "initializePresetParameter";
1740
1771
  accounts: [
@@ -1838,16 +1869,6 @@ type LbClmm = {
1838
1869
  isMut: false;
1839
1870
  isSigner: false;
1840
1871
  },
1841
- {
1842
- name: "binArrayLower";
1843
- isMut: true;
1844
- isSigner: false;
1845
- },
1846
- {
1847
- name: "binArrayUpper";
1848
- isMut: true;
1849
- isSigner: false;
1850
- },
1851
1872
  {
1852
1873
  name: "sender";
1853
1874
  isMut: false;
@@ -1874,7 +1895,16 @@ type LbClmm = {
1874
1895
  isSigner: false;
1875
1896
  }
1876
1897
  ];
1877
- args: [];
1898
+ args: [
1899
+ {
1900
+ name: "minBinId";
1901
+ type: "i32";
1902
+ },
1903
+ {
1904
+ name: "maxBinId";
1905
+ type: "i32";
1906
+ }
1907
+ ];
1878
1908
  },
1879
1909
  {
1880
1910
  name: "togglePairStatus";
@@ -1896,37 +1926,93 @@ type LbClmm = {
1896
1926
  name: "updateWhitelistedWallet";
1897
1927
  accounts: [
1898
1928
  {
1899
- name: "lbPair";
1929
+ name: "lbPair";
1930
+ isMut: true;
1931
+ isSigner: false;
1932
+ },
1933
+ {
1934
+ name: "creator";
1935
+ isMut: false;
1936
+ isSigner: true;
1937
+ }
1938
+ ];
1939
+ args: [
1940
+ {
1941
+ name: "idx";
1942
+ type: "u8";
1943
+ },
1944
+ {
1945
+ name: "wallet";
1946
+ type: "publicKey";
1947
+ }
1948
+ ];
1949
+ },
1950
+ {
1951
+ name: "migratePositionFromV1";
1952
+ accounts: [
1953
+ {
1954
+ name: "positionV3";
1955
+ isMut: true;
1956
+ isSigner: true;
1957
+ },
1958
+ {
1959
+ name: "positionV1";
1960
+ isMut: true;
1961
+ isSigner: false;
1962
+ },
1963
+ {
1964
+ name: "lbPair";
1965
+ isMut: false;
1966
+ isSigner: false;
1967
+ },
1968
+ {
1969
+ name: "binArrayLower";
1970
+ isMut: true;
1971
+ isSigner: false;
1972
+ },
1973
+ {
1974
+ name: "binArrayUpper";
1975
+ isMut: true;
1976
+ isSigner: false;
1977
+ },
1978
+ {
1979
+ name: "owner";
1980
+ isMut: true;
1981
+ isSigner: true;
1982
+ },
1983
+ {
1984
+ name: "systemProgram";
1985
+ isMut: false;
1986
+ isSigner: false;
1987
+ },
1988
+ {
1989
+ name: "rentReceiver";
1900
1990
  isMut: true;
1901
1991
  isSigner: false;
1902
1992
  },
1903
1993
  {
1904
- name: "creator";
1994
+ name: "eventAuthority";
1905
1995
  isMut: false;
1906
- isSigner: true;
1907
- }
1908
- ];
1909
- args: [
1910
- {
1911
- name: "idx";
1912
- type: "u8";
1996
+ isSigner: false;
1913
1997
  },
1914
1998
  {
1915
- name: "wallet";
1916
- type: "publicKey";
1999
+ name: "program";
2000
+ isMut: false;
2001
+ isSigner: false;
1917
2002
  }
1918
2003
  ];
2004
+ args: [];
1919
2005
  },
1920
2006
  {
1921
- name: "migratePosition";
2007
+ name: "migratePositionFromV2";
1922
2008
  accounts: [
1923
2009
  {
1924
- name: "positionV2";
2010
+ name: "positionV3";
1925
2011
  isMut: true;
1926
2012
  isSigner: true;
1927
2013
  },
1928
2014
  {
1929
- name: "positionV1";
2015
+ name: "positionV2";
1930
2016
  isMut: true;
1931
2017
  isSigner: false;
1932
2018
  },
@@ -1997,23 +2083,22 @@ type LbClmm = {
1997
2083
  isMut: true;
1998
2084
  isSigner: false;
1999
2085
  },
2000
- {
2001
- name: "binArrayLower";
2002
- isMut: true;
2003
- isSigner: false;
2004
- },
2005
- {
2006
- name: "binArrayUpper";
2007
- isMut: true;
2008
- isSigner: false;
2009
- },
2010
2086
  {
2011
2087
  name: "owner";
2012
2088
  isMut: false;
2013
2089
  isSigner: true;
2014
2090
  }
2015
2091
  ];
2016
- args: [];
2092
+ args: [
2093
+ {
2094
+ name: "minBinId";
2095
+ type: "i32";
2096
+ },
2097
+ {
2098
+ name: "maxBinId";
2099
+ type: "i32";
2100
+ }
2101
+ ];
2017
2102
  },
2018
2103
  {
2019
2104
  name: "withdrawIneligibleReward";
@@ -2202,16 +2287,6 @@ type LbClmm = {
2202
2287
  isMut: false;
2203
2288
  isSigner: false;
2204
2289
  },
2205
- {
2206
- name: "binArrayLower";
2207
- isMut: true;
2208
- isSigner: false;
2209
- },
2210
- {
2211
- name: "binArrayUpper";
2212
- isMut: true;
2213
- isSigner: false;
2214
- },
2215
2290
  {
2216
2291
  name: "sender";
2217
2292
  isMut: false;
@@ -2287,16 +2362,6 @@ type LbClmm = {
2287
2362
  isMut: false;
2288
2363
  isSigner: false;
2289
2364
  },
2290
- {
2291
- name: "binArrayLower";
2292
- isMut: true;
2293
- isSigner: false;
2294
- },
2295
- {
2296
- name: "binArrayUpper";
2297
- isMut: true;
2298
- isSigner: false;
2299
- },
2300
2365
  {
2301
2366
  name: "sender";
2302
2367
  isMut: false;
@@ -2457,6 +2522,101 @@ type LbClmm = {
2457
2522
  ];
2458
2523
  };
2459
2524
  },
2525
+ {
2526
+ name: "positionV3";
2527
+ type: {
2528
+ kind: "struct";
2529
+ fields: [
2530
+ {
2531
+ name: "lbPair";
2532
+ docs: ["The LB pair of this position"];
2533
+ type: "publicKey";
2534
+ },
2535
+ {
2536
+ name: "owner";
2537
+ docs: [
2538
+ "Owner of the position. Client rely on this to to fetch their positions."
2539
+ ];
2540
+ type: "publicKey";
2541
+ },
2542
+ {
2543
+ name: "lowerBinId";
2544
+ docs: ["Lower bin ID"];
2545
+ type: "i32";
2546
+ },
2547
+ {
2548
+ name: "upperBinId";
2549
+ docs: ["Upper bin ID"];
2550
+ type: "i32";
2551
+ },
2552
+ {
2553
+ name: "lastUpdatedAt";
2554
+ docs: ["Last updated timestamp"];
2555
+ type: "i64";
2556
+ },
2557
+ {
2558
+ name: "totalClaimedFeeXAmount";
2559
+ docs: ["Total claimed token fee X"];
2560
+ type: "u64";
2561
+ },
2562
+ {
2563
+ name: "totalClaimedFeeYAmount";
2564
+ docs: ["Total claimed token fee Y"];
2565
+ type: "u64";
2566
+ },
2567
+ {
2568
+ name: "totalClaimedRewards";
2569
+ docs: ["Total claimed rewards"];
2570
+ type: {
2571
+ array: ["u64", 2];
2572
+ };
2573
+ },
2574
+ {
2575
+ name: "operator";
2576
+ docs: ["Operator of position"];
2577
+ type: "publicKey";
2578
+ },
2579
+ {
2580
+ name: "lockReleaseSlot";
2581
+ docs: ["Slot which the locked liquidity can be withdraw"];
2582
+ type: "u64";
2583
+ },
2584
+ {
2585
+ name: "subjectedToBootstrapLiquidityLocking";
2586
+ docs: [
2587
+ "Is the position subjected to liquidity locking for the launch pool."
2588
+ ];
2589
+ type: "u8";
2590
+ },
2591
+ {
2592
+ name: "padding0";
2593
+ docs: ["Padding"];
2594
+ type: {
2595
+ array: ["u8", 7];
2596
+ };
2597
+ },
2598
+ {
2599
+ name: "feeOwner";
2600
+ docs: [
2601
+ "Address is able to claim fee in this position, only valid for bootstrap_liquidity_position"
2602
+ ];
2603
+ type: "publicKey";
2604
+ },
2605
+ {
2606
+ name: "length";
2607
+ docs: ["Number of bins"];
2608
+ type: "u64";
2609
+ },
2610
+ {
2611
+ name: "reserved";
2612
+ docs: ["Reserved space for future use"];
2613
+ type: {
2614
+ array: ["u8", 128];
2615
+ };
2616
+ }
2617
+ ];
2618
+ };
2619
+ },
2460
2620
  {
2461
2621
  name: "lbPair";
2462
2622
  type: {
@@ -3431,6 +3591,30 @@ type LbClmm = {
3431
3591
  ];
3432
3592
  };
3433
3593
  },
3594
+ {
3595
+ name: "PositionBinData";
3596
+ type: {
3597
+ kind: "struct";
3598
+ fields: [
3599
+ {
3600
+ name: "liquidityShare";
3601
+ type: "u128";
3602
+ },
3603
+ {
3604
+ name: "rewardInfo";
3605
+ type: {
3606
+ defined: "UserRewardInfo";
3607
+ };
3608
+ },
3609
+ {
3610
+ name: "feeInfo";
3611
+ type: {
3612
+ defined: "FeeInfo";
3613
+ };
3614
+ }
3615
+ ];
3616
+ };
3617
+ },
3434
3618
  {
3435
3619
  name: "ProtocolFee";
3436
3620
  type: {
@@ -3756,6 +3940,21 @@ type LbClmm = {
3756
3940
  ];
3757
3941
  };
3758
3942
  },
3943
+ {
3944
+ name: "ResizeSide";
3945
+ docs: ["Side of resize, 0 for lower and 1 for upper"];
3946
+ type: {
3947
+ kind: "enum";
3948
+ variants: [
3949
+ {
3950
+ name: "Lower";
3951
+ },
3952
+ {
3953
+ name: "Upper";
3954
+ }
3955
+ ];
3956
+ };
3957
+ },
3759
3958
  {
3760
3959
  name: "PairType";
3761
3960
  docs: [
@@ -4176,6 +4375,66 @@ type LbClmm = {
4176
4375
  }
4177
4376
  ];
4178
4377
  },
4378
+ {
4379
+ name: "IncreasePositionLength";
4380
+ fields: [
4381
+ {
4382
+ name: "lbPair";
4383
+ type: "publicKey";
4384
+ index: false;
4385
+ },
4386
+ {
4387
+ name: "position";
4388
+ type: "publicKey";
4389
+ index: false;
4390
+ },
4391
+ {
4392
+ name: "owner";
4393
+ type: "publicKey";
4394
+ index: false;
4395
+ },
4396
+ {
4397
+ name: "lengthToAdd";
4398
+ type: "u16";
4399
+ index: false;
4400
+ },
4401
+ {
4402
+ name: "side";
4403
+ type: "u8";
4404
+ index: false;
4405
+ }
4406
+ ];
4407
+ },
4408
+ {
4409
+ name: "DecreasePositionLength";
4410
+ fields: [
4411
+ {
4412
+ name: "lbPair";
4413
+ type: "publicKey";
4414
+ index: false;
4415
+ },
4416
+ {
4417
+ name: "position";
4418
+ type: "publicKey";
4419
+ index: false;
4420
+ },
4421
+ {
4422
+ name: "owner";
4423
+ type: "publicKey";
4424
+ index: false;
4425
+ },
4426
+ {
4427
+ name: "lengthToRemove";
4428
+ type: "u16";
4429
+ index: false;
4430
+ },
4431
+ {
4432
+ name: "side";
4433
+ type: "u8";
4434
+ index: false;
4435
+ }
4436
+ ];
4437
+ },
4179
4438
  {
4180
4439
  name: "FeeParameterUpdate";
4181
4440
  fields: [
@@ -4597,6 +4856,16 @@ type LbClmm = {
4597
4856
  code: 6058;
4598
4857
  name: "BinRangeIsNotEmpty";
4599
4858
  msg: "Bin range is not empty";
4859
+ },
4860
+ {
4861
+ code: 6059;
4862
+ name: "InvalidSide";
4863
+ msg: "Invalid side";
4864
+ },
4865
+ {
4866
+ code: 6060;
4867
+ name: "InvalidResizeLength";
4868
+ msg: "Invalid resize length";
4600
4869
  }
4601
4870
  ];
4602
4871
  };
@@ -4620,6 +4889,8 @@ type Bin = IdlTypes<LbClmm>["Bin"];
4620
4889
  type BinArray = IdlAccounts<LbClmm>["binArray"];
4621
4890
  type BinArrayAccount = ProgramAccount<IdlAccounts<LbClmm>["binArray"]>;
4622
4891
  type Position = IdlAccounts<LbClmm>["position"];
4892
+ type PositionV2 = IdlAccounts<LbClmm>["positionV2"];
4893
+ type PositionV3 = IdlAccounts<LbClmm>["positionV3"];
4623
4894
  type vParameters = IdlAccounts<LbClmm>["lbPair"]["vParameters"];
4624
4895
  type sParameters = IdlAccounts<LbClmm>["lbPair"]["parameters"];
4625
4896
  type InitPermissionPairIx = IdlTypes<LbClmm>["InitPermissionPairIx"];
@@ -4669,7 +4940,8 @@ interface LMRewards {
4669
4940
  }
4670
4941
  declare enum PositionVersion {
4671
4942
  V1 = 0,
4672
- V2 = 1
4943
+ V2 = 1,
4944
+ V3 = 2
4673
4945
  }
4674
4946
  declare enum PairType {
4675
4947
  Permissionless = 0,
@@ -4822,6 +5094,38 @@ declare enum BitmapType {
4822
5094
  U1024 = 0,
4823
5095
  U512 = 1
4824
5096
  }
5097
+ type DynamicPosition = {
5098
+ lbPair: PublicKey;
5099
+ owner: PublicKey;
5100
+ lowerBinId: number;
5101
+ upperBinId: number;
5102
+ lastUpdatedAt: BN;
5103
+ totalClaimedFeeXAmount: BN;
5104
+ totalClaimedFeeYAmount: BN;
5105
+ totalClaimedRewards: BN[];
5106
+ operator: PublicKey;
5107
+ lockReleaseSlot: BN;
5108
+ subjectedToBootstrapLiquidityLocking: number;
5109
+ padding0: number[];
5110
+ feeOwner: PublicKey;
5111
+ length: BN;
5112
+ reserved: number[];
5113
+ positionBinData: [
5114
+ {
5115
+ liquidityShare: BN;
5116
+ feeInfo: {
5117
+ feeXPerTokenComplete: BN;
5118
+ feeYPerTokenComplete: BN;
5119
+ feeXPending: BN;
5120
+ feeYPending: BN;
5121
+ };
5122
+ rewardInfo: {
5123
+ rewardPerTokenCompletes: BN[];
5124
+ rewardPending: BN[];
5125
+ };
5126
+ }
5127
+ ];
5128
+ };
4825
5129
 
4826
5130
  type Opt = {
4827
5131
  cluster: Cluster | "localhost";
@@ -4892,7 +5196,7 @@ declare class DLMM {
4892
5196
  * Pair account, and the value is an object of PositionInfo
4893
5197
  */
4894
5198
  static getAllLbPairPositionsByUser(connection: Connection, userPubKey: PublicKey, opt?: Opt): Promise<Map<string, PositionInfo>>;
4895
- static migratePosition(connection: Connection, positions: PublicKey[], newPositions: PublicKey[], walletPubkey: PublicKey, opt?: Opt): Promise<Transaction[]>;
5199
+ static migratePosition(connection: Connection, positions: PublicKey[], positionsV2: PublicKey[], newPositions: PublicKey[], walletPubkey: PublicKey, opt?: Opt): Promise<Transaction[]>;
4896
5200
  static getPricePerLamport(tokenXDecimal: number, tokenYDecimal: number, price: number): string;
4897
5201
  static getBinIdFromPrice(price: string | number | Decimal, binStep: number, min: boolean): number;
4898
5202
  /** Public methods */
@@ -5054,6 +5358,7 @@ declare class DLMM {
5054
5358
  */
5055
5359
  initializePositionAndAddLiquidityByStrategy({ positionPubKey, totalXAmount, totalYAmount, strategy, user, slippage, }: TInitializePositionAndAddLiquidityParamsByStrategy): Promise<Transaction>;
5056
5360
  /**
5361
+ * @deprecated
5057
5362
  * The function `initializePositionAndAddLiquidityByWeight` function is used to initializes a position and adds liquidity
5058
5363
  * @param {TInitializePositionAndAddLiquidityParams}
5059
5364
  * - `positionPubKey`: The public key of the position account. (usually use `new Keypair()`)
@@ -5258,6 +5563,7 @@ declare class DLMM {
5258
5563
  private static getClaimableLMReward;
5259
5564
  private static getClaimableSwapFee;
5260
5565
  private static processPosition;
5566
+ private static processPositionV3;
5261
5567
  private static getBinsBetweenLowerAndUpperBound;
5262
5568
  private static getPriceOfBinByBinId;
5263
5569
  /** Private method */
@@ -5658,4 +5964,4 @@ declare const MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX = 26;
5658
5964
  declare const MAX_BIN_PER_TX = 69;
5659
5965
  declare const MAX_ACTIVE_BIN_SLIPPAGE = 3;
5660
5966
 
5661
- export { ADMIN, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_SIZE, BIN_ARRAY_FEE, Bin, BinAndAmount, BinArray, BinArrayAccount, BinArrayBitmapExtension, BinArrayBitmapExtensionAccount, BinLiquidity, BinLiquidityDistribution, BinLiquidityReduction, BitmapType, ClmmProgram, DLMMError, EXTENSION_BINARRAY_BITMAP_SIZE, EmissionRate, FEE_PRECISION, FeeInfo, GetOrCreateATAResponse, IAccountsCache, IDL, InitPermissionPairIx, LBCLMM_PROGRAM_IDS, LMRewards, LbClmm, LbPair, LbPairAccount, LbPosition, LiquidityOneSideParameter, LiquidityParameterByStrategy, LiquidityParameterByStrategyOneSide, LiquidityParameterByWeight, MAX_ACTIVE_BIN_SLIPPAGE, MAX_BIN_ARRAY_SIZE, MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX, MAX_BIN_PER_POSITION, MAX_BIN_PER_TX, MAX_CLAIM_ALL_ALLOWED, MAX_FEE_RATE, Network, POSITION_FEE, PRECISION, PairType, Position, PositionBinData, PositionData, PositionInfo, PositionVersion, ProgramStrategyParameter, ProgramStrategyType, SCALE, SCALE_OFFSET, SIMULATION_USER, Strategy, StrategyParameters, StrategyType, SwapFee, SwapParams, SwapQuote, TInitializePositionAndAddLiquidityParams, TInitializePositionAndAddLiquidityParamsByStrategy, TQuoteCreatePositionParams, TokenReserve, autoFillXByStrategy, autoFillXByWeight, autoFillYByStrategy, autoFillYByWeight, binIdToBinArrayIndex, calculateBidAskDistribution, calculateNormalDistribution, calculateSpotDistribution, chunkedFetchMultipleBinArrayBitmapExtensionAccount, chunkedFetchMultiplePoolAccount, chunkedGetMultipleAccountInfos, chunks, computeBudgetIx, computeFee, computeFeeFromAmount, computeProtocolFee, DLMM as default, deriveBinArray, deriveBinArrayBitmapExtension, deriveLbPair, deriveLbPair2, deriveOracle, derivePermissionLbPair, derivePosition, derivePresetParameter, derivePresetParameter2, deriveReserve, findNextBinArrayIndexWithLiquidity, findNextBinArrayWithLiquidity, fromWeightDistributionToAmount, fromWeightDistributionToAmountOneSide, getBaseFee, getBinArrayLowerUpperBinId, getBinFromBinArray, getOrCreateATAInstruction, getOutAmount, getPriceOfBinByBinId, getTokenBalance, getTokenDecimals, getTotalFee, getVariableFee, isBinIdWithinBinArray, isOverflowDefaultBinArrayBitmap, parseLogs, sParameters, swapQuoteAtBin, swapQuoteAtBinWithCap, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountsBothSideByStrategy, toAmountsOneSideByStrategy, toStrategyParameters, toWeightDistribution, unwrapSOLInstruction, vParameters, wrapSOLInstruction };
5967
+ export { ADMIN, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_SIZE, BIN_ARRAY_FEE, Bin, BinAndAmount, BinArray, BinArrayAccount, BinArrayBitmapExtension, BinArrayBitmapExtensionAccount, BinLiquidity, BinLiquidityDistribution, BinLiquidityReduction, BitmapType, ClmmProgram, DLMMError, DynamicPosition, EXTENSION_BINARRAY_BITMAP_SIZE, EmissionRate, FEE_PRECISION, FeeInfo, GetOrCreateATAResponse, IAccountsCache, IDL, InitPermissionPairIx, LBCLMM_PROGRAM_IDS, LMRewards, LbClmm, LbPair, LbPairAccount, LbPosition, LiquidityOneSideParameter, LiquidityParameterByStrategy, LiquidityParameterByStrategyOneSide, LiquidityParameterByWeight, MAX_ACTIVE_BIN_SLIPPAGE, MAX_BIN_ARRAY_SIZE, MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX, MAX_BIN_PER_POSITION, MAX_BIN_PER_TX, MAX_CLAIM_ALL_ALLOWED, MAX_FEE_RATE, Network, POSITION_FEE, PRECISION, PairType, Position, PositionBinData, PositionData, PositionInfo, PositionV2, PositionV3, PositionVersion, ProgramStrategyParameter, ProgramStrategyType, SCALE, SCALE_OFFSET, SIMULATION_USER, Strategy, StrategyParameters, StrategyType, SwapFee, SwapParams, SwapQuote, TInitializePositionAndAddLiquidityParams, TInitializePositionAndAddLiquidityParamsByStrategy, TQuoteCreatePositionParams, TokenReserve, autoFillXByStrategy, autoFillXByWeight, autoFillYByStrategy, autoFillYByWeight, binIdToBinArrayIndex, calculateBidAskDistribution, calculateNormalDistribution, calculateSpotDistribution, chunkedFetchMultipleBinArrayBitmapExtensionAccount, chunkedFetchMultiplePoolAccount, chunkedGetMultipleAccountInfos, chunks, computeBudgetIx, computeFee, computeFeeFromAmount, computeProtocolFee, DLMM as default, deriveBinArray, deriveBinArrayBitmapExtension, deriveLbPair, deriveLbPair2, deriveOracle, derivePermissionLbPair, derivePosition, derivePresetParameter, derivePresetParameter2, deriveReserve, findNextBinArrayIndexWithLiquidity, findNextBinArrayWithLiquidity, fromWeightDistributionToAmount, fromWeightDistributionToAmountOneSide, getBaseFee, getBinArrayLowerUpperBinId, getBinFromBinArray, getOrCreateATAInstruction, getOutAmount, getPriceOfBinByBinId, getTokenBalance, getTokenDecimals, getTotalFee, getVariableFee, isBinIdWithinBinArray, isOverflowDefaultBinArrayBitmap, parseLogs, sParameters, swapQuoteAtBin, swapQuoteAtBinWithCap, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountsBothSideByStrategy, toAmountsOneSideByStrategy, toStrategyParameters, toWeightDistribution, unwrapSOLInstruction, vParameters, wrapSOLInstruction };