@liquid-af/sdk 1.0.3 → 1.0.5

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.
@@ -6958,8 +6958,7 @@
6958
6958
  "name": "mint",
6959
6959
  "docs": [
6960
6960
  "The token mint."
6961
- ],
6962
- "writable": true
6961
+ ]
6963
6962
  },
6964
6963
  {
6965
6964
  "name": "bonding_curve",
@@ -7190,13 +7189,6 @@
7190
7189
  }
7191
7190
  }
7192
7191
  },
7193
- {
7194
- "name": "bonding_curve_lp_token",
7195
- "docs": [
7196
- "LP token ATA for the bonding curve."
7197
- ],
7198
- "writable": true
7199
- },
7200
7192
  {
7201
7193
  "name": "amm_pool_state",
7202
7194
  "writable": true
@@ -7777,13 +7769,6 @@
7777
7769
  }
7778
7770
  }
7779
7771
  },
7780
- {
7781
- "name": "bonding_curve_lp_token",
7782
- "docs": [
7783
- "LP token ATA for the bonding curve."
7784
- ],
7785
- "writable": true
7786
- },
7787
7772
  {
7788
7773
  "name": "amm_pool_state",
7789
7774
  "writable": true
@@ -12912,141 +12897,136 @@
12912
12897
  },
12913
12898
  {
12914
12899
  "code": 6014,
12915
- "name": "BondingCurveComplete",
12900
+ "name": "CurveComplete",
12916
12901
  "msg": "Bonding curve is complete and trading is halted"
12917
12902
  },
12918
12903
  {
12919
12904
  "code": 6015,
12920
- "name": "CurveComplete",
12921
- "msg": "Curve has already completed trading"
12922
- },
12923
- {
12924
- "code": 6016,
12925
12905
  "name": "CurveNotComplete",
12926
12906
  "msg": "Bonding curve is not complete"
12927
12907
  },
12928
12908
  {
12929
- "code": 6017,
12909
+ "code": 6016,
12930
12910
  "name": "AlreadyMigrated",
12931
12911
  "msg": "Bonding curve has already been migrated"
12932
12912
  },
12933
12913
  {
12934
- "code": 6018,
12914
+ "code": 6017,
12935
12915
  "name": "InsufficientQuoteForMigration",
12936
12916
  "msg": "Insufficient quote reserves for migration"
12937
12917
  },
12938
12918
  {
12939
- "code": 6019,
12919
+ "code": 6018,
12940
12920
  "name": "CreatorFeesRevoked",
12941
12921
  "msg": "Creator fees have been permanently revoked"
12942
12922
  },
12943
12923
  {
12944
- "code": 6020,
12924
+ "code": 6019,
12945
12925
  "name": "CreatorFeesAlreadyRevoked",
12946
12926
  "msg": "Creator fees have already been revoked"
12947
12927
  },
12948
12928
  {
12949
- "code": 6021,
12929
+ "code": 6020,
12950
12930
  "name": "CreatorFeesNotRevoked",
12951
12931
  "msg": "Creator fees have not been revoked - buyback not available"
12952
12932
  },
12953
12933
  {
12954
- "code": 6022,
12934
+ "code": 6021,
12955
12935
  "name": "InvalidFeeAccountInput",
12956
12936
  "msg": "Invalid fee configuration account"
12957
12937
  },
12958
12938
  {
12959
- "code": 6023,
12939
+ "code": 6022,
12960
12940
  "name": "FeeConfigurationAlreadyExists",
12961
12941
  "msg": "A fee configuration already exists. Detach it first before attaching a new one"
12962
12942
  },
12963
12943
  {
12964
- "code": 6024,
12944
+ "code": 6023,
12965
12945
  "name": "IncorrectFeeRecipientsCount",
12966
12946
  "msg": "Incorrect number of protocol fee recipients provided"
12967
12947
  },
12968
12948
  {
12969
- "code": 6025,
12949
+ "code": 6024,
12970
12950
  "name": "InvalidFeeRecipient",
12971
12951
  "msg": "The fee recipient provided is not in the global configuration"
12972
12952
  },
12973
12953
  {
12974
- "code": 6026,
12954
+ "code": 6025,
12975
12955
  "name": "InvalidFeeConfiguration",
12976
12956
  "msg": "Invalid fee configuration. Total must be 10000 bps with no duplicate recipients"
12977
12957
  },
12978
12958
  {
12979
- "code": 6027,
12959
+ "code": 6026,
12980
12960
  "name": "InvalidRemainingAccounts",
12981
12961
  "msg": "Invalid remaining accounts for fee distribution"
12982
12962
  },
12983
12963
  {
12984
- "code": 6028,
12964
+ "code": 6027,
12985
12965
  "name": "FeesMustBeWithdrawn",
12986
12966
  "msg": "Existing creator fees must be fully withdrawn before updating the configuration"
12987
12967
  },
12988
12968
  {
12989
- "code": 6029,
12969
+ "code": 6028,
12990
12970
  "name": "FeeTooHigh",
12991
12971
  "msg": "Individual fee cannot exceed maximum"
12992
12972
  },
12993
12973
  {
12994
- "code": 6030,
12974
+ "code": 6029,
12995
12975
  "name": "InvalidProtocolConfiguration",
12996
12976
  "msg": "Invalid protocol configuration"
12997
12977
  },
12998
12978
  {
12999
- "code": 6031,
12979
+ "code": 6030,
13000
12980
  "name": "TooManyQuoteMints",
13001
12981
  "msg": "Too many quote mints provided"
13002
12982
  },
13003
12983
  {
13004
- "code": 6032,
12984
+ "code": 6031,
13005
12985
  "name": "DuplicateQuoteMint",
13006
12986
  "msg": "Duplicate quote mint provided"
13007
12987
  },
13008
12988
  {
13009
- "code": 6033,
12989
+ "code": 6032,
13010
12990
  "name": "InvalidQuoteMint",
13011
12991
  "msg": "Invalid quote mint - not in whitelist"
13012
12992
  },
13013
12993
  {
13014
- "code": 6034,
12994
+ "code": 6033,
13015
12995
  "name": "InvalidTokenTotalSupply",
13016
12996
  "msg": "Invalid token total supply. Must be greater than initial real token reserves"
13017
12997
  },
13018
12998
  {
13019
- "code": 6035,
12999
+ "code": 6034,
13020
13000
  "name": "InvalidReserves",
13021
13001
  "msg": "Reserve values must be greater than zero"
13022
13002
  },
13023
13003
  {
13024
- "code": 6036,
13004
+ "code": 6035,
13025
13005
  "name": "InvalidCashbackConfiguration",
13026
13006
  "msg": "Invalid cashback configuration"
13027
13007
  },
13028
13008
  {
13029
- "code": 6037,
13009
+ "code": 6036,
13030
13010
  "name": "CannotChangeCashbackMode",
13031
13011
  "msg": "Cannot activate spending mode without existing cashback credits"
13032
13012
  },
13033
13013
  {
13034
- "code": 6038,
13014
+ "code": 6037,
13035
13015
  "name": "ProtocolPaused",
13036
13016
  "msg": "Protocol is paused"
13037
13017
  },
13038
13018
  {
13039
- "code": 6039,
13019
+ "code": 6038,
13040
13020
  "name": "InvalidPriceFeed",
13041
13021
  "msg": "Invalid price feed account"
13042
13022
  },
13043
13023
  {
13044
- "code": 6040,
13024
+ "code": 6039,
13045
13025
  "name": "StalePriceFeed",
13046
13026
  "msg": "Price feed data is stale"
13047
13027
  },
13048
13028
  {
13049
- "code": 6041,
13029
+ "code": 6040,
13050
13030
  "name": "ArithmeticOverflow",
13051
13031
  "msg": "Arithmetic operation resulted in overflow"
13052
13032
  }
@@ -1242,32 +1242,32 @@ export type LiquidEvents = {
1242
1242
  };
1243
1243
  },
1244
1244
  {
1245
- "name": "quoteAmountIn";
1245
+ "name": "bondingCurve";
1246
1246
  "docs": [
1247
- "Amount of quote tokens/SOL used for the buyback."
1247
+ "The bonding curve PDA."
1248
1248
  ];
1249
- "type": "u64";
1249
+ "type": "pubkey";
1250
1250
  },
1251
1251
  {
1252
- "name": "tokensBurned";
1252
+ "name": "executor";
1253
1253
  "docs": [
1254
- "Amount of tokens burned."
1254
+ "The address that triggered the buyback."
1255
1255
  ];
1256
- "type": "u64";
1256
+ "type": "pubkey";
1257
1257
  },
1258
1258
  {
1259
- "name": "bondingCurve";
1259
+ "name": "quoteAmountIn";
1260
1260
  "docs": [
1261
- "The bonding curve PDA."
1261
+ "Amount of quote tokens/SOL used for the buyback."
1262
1262
  ];
1263
- "type": "pubkey";
1263
+ "type": "u64";
1264
1264
  },
1265
1265
  {
1266
- "name": "executor";
1266
+ "name": "tokensBurned";
1267
1267
  "docs": [
1268
- "The address that triggered the buyback."
1268
+ "Amount of tokens burned."
1269
1269
  ];
1270
- "type": "pubkey";
1270
+ "type": "u64";
1271
1271
  },
1272
1272
  {
1273
1273
  "name": "timestamp";
@@ -1849,25 +1849,32 @@ export type LiquidEvents = {
1849
1849
  "type": "pubkey";
1850
1850
  },
1851
1851
  {
1852
- "name": "lpAmountBefore";
1852
+ "name": "baseMint";
1853
1853
  "docs": [
1854
- "LP balance before change."
1854
+ "The base token mint."
1855
1855
  ];
1856
- "type": "u64";
1856
+ "type": "pubkey";
1857
1857
  },
1858
1858
  {
1859
- "name": "baseVaultBefore";
1859
+ "name": "quoteMint";
1860
1860
  "docs": [
1861
- "Pool base vault balance before change."
1861
+ "The quote token mint."
1862
1862
  ];
1863
- "type": "u64";
1863
+ "type": "pubkey";
1864
1864
  },
1865
1865
  {
1866
- "name": "quoteVaultBefore";
1866
+ "name": "user";
1867
1867
  "docs": [
1868
- "Pool quote vault balance before change."
1868
+ "The user who performed the deposit/withdraw."
1869
1869
  ];
1870
- "type": "u64";
1870
+ "type": "pubkey";
1871
+ },
1872
+ {
1873
+ "name": "changeType";
1874
+ "docs": [
1875
+ "0: deposit, 1: withdraw."
1876
+ ];
1877
+ "type": "u8";
1871
1878
  },
1872
1879
  {
1873
1880
  "name": "baseAmount";
@@ -1884,46 +1891,39 @@ export type LiquidEvents = {
1884
1891
  "type": "u64";
1885
1892
  },
1886
1893
  {
1887
- "name": "baseTokenMultiplier";
1888
- "docs": [
1889
- "ScaledUiAmount multiplier for the base token (1.0 if no extension)."
1890
- ];
1891
- "type": "f64";
1892
- },
1893
- {
1894
- "name": "baseTransferFee";
1894
+ "name": "baseVaultBefore";
1895
1895
  "docs": [
1896
- "Transfer fee on base token."
1896
+ "Pool base vault balance before change."
1897
1897
  ];
1898
1898
  "type": "u64";
1899
1899
  },
1900
1900
  {
1901
- "name": "quoteTransferFee";
1901
+ "name": "quoteVaultBefore";
1902
1902
  "docs": [
1903
- "Transfer fee on quote token."
1903
+ "Pool quote vault balance before change."
1904
1904
  ];
1905
1905
  "type": "u64";
1906
1906
  },
1907
1907
  {
1908
- "name": "changeType";
1908
+ "name": "lpAmountBefore";
1909
1909
  "docs": [
1910
- "0: deposit, 1: withdraw."
1910
+ "LP balance before change."
1911
1911
  ];
1912
- "type": "u8";
1912
+ "type": "u64";
1913
1913
  },
1914
1914
  {
1915
- "name": "user";
1915
+ "name": "baseTransferFee";
1916
1916
  "docs": [
1917
- "The user who performed the deposit/withdraw."
1917
+ "Transfer fee on base token."
1918
1918
  ];
1919
- "type": "pubkey";
1919
+ "type": "u64";
1920
1920
  },
1921
1921
  {
1922
- "name": "timestamp";
1922
+ "name": "quoteTransferFee";
1923
1923
  "docs": [
1924
- "Timestamp of the LP change."
1924
+ "Transfer fee on quote token."
1925
1925
  ];
1926
- "type": "i64";
1926
+ "type": "u64";
1927
1927
  },
1928
1928
  {
1929
1929
  "name": "lpSupply";
@@ -1933,18 +1933,11 @@ export type LiquidEvents = {
1933
1933
  "type": "u64";
1934
1934
  },
1935
1935
  {
1936
- "name": "baseMint";
1937
- "docs": [
1938
- "The base token mint."
1939
- ];
1940
- "type": "pubkey";
1941
- },
1942
- {
1943
- "name": "quoteMint";
1936
+ "name": "timestamp";
1944
1937
  "docs": [
1945
- "The quote token mint."
1938
+ "Timestamp of the LP change."
1946
1939
  ];
1947
- "type": "pubkey";
1940
+ "type": "i64";
1948
1941
  }
1949
1942
  ];
1950
1943
  };
@@ -1987,20 +1980,6 @@ export type LiquidEvents = {
1987
1980
  ];
1988
1981
  "type": "pubkey";
1989
1982
  },
1990
- {
1991
- "name": "tokenAmount";
1992
- "docs": [
1993
- "Amount of tokens migrated to AMM."
1994
- ];
1995
- "type": "u64";
1996
- },
1997
- {
1998
- "name": "quoteAmount";
1999
- "docs": [
2000
- "Amount of quote migrated to AMM (SOL or quote token)."
2001
- ];
2002
- "type": "u64";
2003
- },
2004
1983
  {
2005
1984
  "name": "migrator";
2006
1985
  "docs": [
@@ -2016,11 +1995,18 @@ export type LiquidEvents = {
2016
1995
  "type": "pubkey";
2017
1996
  },
2018
1997
  {
2019
- "name": "timestamp";
1998
+ "name": "tokenAmount";
2020
1999
  "docs": [
2021
- "Timestamp of the migration."
2000
+ "Amount of tokens migrated to AMM."
2022
2001
  ];
2023
- "type": "i64";
2002
+ "type": "u64";
2003
+ },
2004
+ {
2005
+ "name": "quoteAmount";
2006
+ "docs": [
2007
+ "Amount of quote migrated to AMM (SOL or quote token)."
2008
+ ];
2009
+ "type": "u64";
2024
2010
  },
2025
2011
  {
2026
2012
  "name": "lpMint";
@@ -2042,6 +2028,13 @@ export type LiquidEvents = {
2042
2028
  "Amount of buyback funds migrated to the AMM buyback vault (0 if none)."
2043
2029
  ];
2044
2030
  "type": "u64";
2031
+ },
2032
+ {
2033
+ "name": "timestamp";
2034
+ "docs": [
2035
+ "Timestamp of the migration."
2036
+ ];
2037
+ "type": "i64";
2045
2038
  }
2046
2039
  ];
2047
2040
  };
@@ -2293,6 +2286,20 @@ export type LiquidEvents = {
2293
2286
  ];
2294
2287
  "type": "pubkey";
2295
2288
  },
2289
+ {
2290
+ "name": "user";
2291
+ "docs": [
2292
+ "User who performed the swap."
2293
+ ];
2294
+ "type": "pubkey";
2295
+ },
2296
+ {
2297
+ "name": "creator";
2298
+ "docs": [
2299
+ "Creator of the token."
2300
+ ];
2301
+ "type": "pubkey";
2302
+ },
2296
2303
  {
2297
2304
  "name": "tradeAmounts";
2298
2305
  "docs": [
@@ -2374,20 +2381,6 @@ export type LiquidEvents = {
2374
2381
  ];
2375
2382
  "type": "u16";
2376
2383
  },
2377
- {
2378
- "name": "cashback";
2379
- "docs": [
2380
- "Cashback earned (positive) or spent (negative) by the user."
2381
- ];
2382
- "type": "i64";
2383
- },
2384
- {
2385
- "name": "cashbackBps";
2386
- "docs": [
2387
- "Cashback basis points from config."
2388
- ];
2389
- "type": "u16";
2390
- },
2391
2384
  {
2392
2385
  "name": "creatorFeeMode";
2393
2386
  "docs": [
@@ -2407,18 +2400,18 @@ export type LiquidEvents = {
2407
2400
  "type": "pubkey";
2408
2401
  },
2409
2402
  {
2410
- "name": "user";
2403
+ "name": "cashback";
2411
2404
  "docs": [
2412
- "User who performed the swap."
2405
+ "Cashback earned (positive) or spent (negative) by the user."
2413
2406
  ];
2414
- "type": "pubkey";
2407
+ "type": "i64";
2415
2408
  },
2416
2409
  {
2417
- "name": "creator";
2410
+ "name": "cashbackBps";
2418
2411
  "docs": [
2419
- "Creator of the token."
2412
+ "Cashback basis points from config."
2420
2413
  ];
2421
- "type": "pubkey";
2414
+ "type": "u16";
2422
2415
  },
2423
2416
  {
2424
2417
  "name": "totalQuoteVolume";
@@ -2435,11 +2428,11 @@ export type LiquidEvents = {
2435
2428
  "type": "u128";
2436
2429
  },
2437
2430
  {
2438
- "name": "timestamp";
2431
+ "name": "buybackVaultBalance";
2439
2432
  "docs": [
2440
- "Timestamp of the trade."
2433
+ "Buyback vault balance after the trade (quote token amount)."
2441
2434
  ];
2442
- "type": "i64";
2435
+ "type": "u64";
2443
2436
  },
2444
2437
  {
2445
2438
  "name": "solPriceUsd";
@@ -2456,18 +2449,11 @@ export type LiquidEvents = {
2456
2449
  "type": "u64";
2457
2450
  },
2458
2451
  {
2459
- "name": "buybackVaultBalance";
2460
- "docs": [
2461
- "Buyback vault balance after the trade (quote token amount)."
2462
- ];
2463
- "type": "u64";
2464
- },
2465
- {
2466
- "name": "baseUiAmountMultiplier";
2452
+ "name": "timestamp";
2467
2453
  "docs": [
2468
- "ScaledUiAmount multiplier for the base token (1.0 if no extension)."
2454
+ "Timestamp of the trade."
2469
2455
  ];
2470
- "type": "f64";
2456
+ "type": "i64";
2471
2457
  }
2472
2458
  ];
2473
2459
  };
@@ -2648,29 +2634,29 @@ export type LiquidEvents = {
2648
2634
  };
2649
2635
  },
2650
2636
  {
2651
- "name": "tradeAmounts";
2637
+ "name": "user";
2652
2638
  "docs": [
2653
- "Trade in and out amounts."
2639
+ "User who performed the trade."
2654
2640
  ];
2655
- "type": {
2656
- "defined": {
2657
- "name": "tradeAmounts";
2658
- };
2659
- };
2641
+ "type": "pubkey";
2660
2642
  },
2661
2643
  {
2662
- "name": "cashback";
2644
+ "name": "creator";
2663
2645
  "docs": [
2664
- "Cashback earned (positive) or spent (negative) by the user."
2646
+ "Creator of the token."
2665
2647
  ];
2666
- "type": "i64";
2648
+ "type": "pubkey";
2667
2649
  },
2668
2650
  {
2669
- "name": "cashbackBps";
2651
+ "name": "tradeAmounts";
2670
2652
  "docs": [
2671
- "Cashback fee basis points."
2653
+ "Trade in and out amounts."
2672
2654
  ];
2673
- "type": "u16";
2655
+ "type": {
2656
+ "defined": {
2657
+ "name": "tradeAmounts";
2658
+ };
2659
+ };
2674
2660
  },
2675
2661
  {
2676
2662
  "name": "creatorFee";
@@ -2700,6 +2686,17 @@ export type LiquidEvents = {
2700
2686
  ];
2701
2687
  "type": "u16";
2702
2688
  },
2689
+ {
2690
+ "name": "creatorFeeMode";
2691
+ "docs": [
2692
+ "Creator fee mode."
2693
+ ];
2694
+ "type": {
2695
+ "defined": {
2696
+ "name": "feeMode";
2697
+ };
2698
+ };
2699
+ },
2703
2700
  {
2704
2701
  "name": "feeRecipient";
2705
2702
  "docs": [
@@ -2754,29 +2751,18 @@ export type LiquidEvents = {
2754
2751
  };
2755
2752
  },
2756
2753
  {
2757
- "name": "user";
2758
- "docs": [
2759
- "User who performed the trade."
2760
- ];
2761
- "type": "pubkey";
2762
- },
2763
- {
2764
- "name": "creator";
2754
+ "name": "cashback";
2765
2755
  "docs": [
2766
- "Creator of the token."
2756
+ "Cashback earned (positive) or spent (negative) by the user."
2767
2757
  ];
2768
- "type": "pubkey";
2758
+ "type": "i64";
2769
2759
  },
2770
2760
  {
2771
- "name": "creatorFeeMode";
2761
+ "name": "cashbackBps";
2772
2762
  "docs": [
2773
- "Creator fee mode."
2763
+ "Cashback fee basis points."
2774
2764
  ];
2775
- "type": {
2776
- "defined": {
2777
- "name": "feeMode";
2778
- };
2779
- };
2765
+ "type": "u16";
2780
2766
  },
2781
2767
  {
2782
2768
  "name": "virtualTokenReserves";
@@ -2821,9 +2807,9 @@ export type LiquidEvents = {
2821
2807
  "type": "u128";
2822
2808
  },
2823
2809
  {
2824
- "name": "marketCapUsd";
2810
+ "name": "buybackVaultBalance";
2825
2811
  "docs": [
2826
- "Current market cap in USD (6 decimals)."
2812
+ "Buyback vault balance after the trade (lamports for native, token amount for stable)."
2827
2813
  ];
2828
2814
  "type": "u64";
2829
2815
  },
@@ -2837,9 +2823,9 @@ export type LiquidEvents = {
2837
2823
  };
2838
2824
  },
2839
2825
  {
2840
- "name": "buybackVaultBalance";
2826
+ "name": "marketCapUsd";
2841
2827
  "docs": [
2842
- "Buyback vault balance after the trade (lamports for native, token amount for stable)."
2828
+ "Current market cap in USD (6 decimals)."
2843
2829
  ];
2844
2830
  "type": "u64";
2845
2831
  },