@liquid-af/sdk 1.0.4 → 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
@@ -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
  },