@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.
package/src/idl/liquid.ts CHANGED
@@ -6964,8 +6964,7 @@ export type Liquid = {
6964
6964
  "name": "mint",
6965
6965
  "docs": [
6966
6966
  "The token mint."
6967
- ],
6968
- "writable": true
6967
+ ]
6969
6968
  },
6970
6969
  {
6971
6970
  "name": "bondingCurve",
@@ -7196,13 +7195,6 @@ export type Liquid = {
7196
7195
  }
7197
7196
  }
7198
7197
  },
7199
- {
7200
- "name": "bondingCurveLpToken",
7201
- "docs": [
7202
- "LP token ATA for the bonding curve."
7203
- ],
7204
- "writable": true
7205
- },
7206
7198
  {
7207
7199
  "name": "ammPoolState",
7208
7200
  "writable": true
@@ -7783,13 +7775,6 @@ export type Liquid = {
7783
7775
  }
7784
7776
  }
7785
7777
  },
7786
- {
7787
- "name": "bondingCurveLpToken",
7788
- "docs": [
7789
- "LP token ATA for the bonding curve."
7790
- ],
7791
- "writable": true
7792
- },
7793
7778
  {
7794
7779
  "name": "ammPoolState",
7795
7780
  "writable": true
@@ -12918,141 +12903,136 @@ export type Liquid = {
12918
12903
  },
12919
12904
  {
12920
12905
  "code": 6014,
12921
- "name": "bondingCurveComplete",
12906
+ "name": "curveComplete",
12922
12907
  "msg": "Bonding curve is complete and trading is halted"
12923
12908
  },
12924
12909
  {
12925
12910
  "code": 6015,
12926
- "name": "curveComplete",
12927
- "msg": "Curve has already completed trading"
12928
- },
12929
- {
12930
- "code": 6016,
12931
12911
  "name": "curveNotComplete",
12932
12912
  "msg": "Bonding curve is not complete"
12933
12913
  },
12934
12914
  {
12935
- "code": 6017,
12915
+ "code": 6016,
12936
12916
  "name": "alreadyMigrated",
12937
12917
  "msg": "Bonding curve has already been migrated"
12938
12918
  },
12939
12919
  {
12940
- "code": 6018,
12920
+ "code": 6017,
12941
12921
  "name": "insufficientQuoteForMigration",
12942
12922
  "msg": "Insufficient quote reserves for migration"
12943
12923
  },
12944
12924
  {
12945
- "code": 6019,
12925
+ "code": 6018,
12946
12926
  "name": "creatorFeesRevoked",
12947
12927
  "msg": "Creator fees have been permanently revoked"
12948
12928
  },
12949
12929
  {
12950
- "code": 6020,
12930
+ "code": 6019,
12951
12931
  "name": "creatorFeesAlreadyRevoked",
12952
12932
  "msg": "Creator fees have already been revoked"
12953
12933
  },
12954
12934
  {
12955
- "code": 6021,
12935
+ "code": 6020,
12956
12936
  "name": "creatorFeesNotRevoked",
12957
12937
  "msg": "Creator fees have not been revoked - buyback not available"
12958
12938
  },
12959
12939
  {
12960
- "code": 6022,
12940
+ "code": 6021,
12961
12941
  "name": "invalidFeeAccountInput",
12962
12942
  "msg": "Invalid fee configuration account"
12963
12943
  },
12964
12944
  {
12965
- "code": 6023,
12945
+ "code": 6022,
12966
12946
  "name": "feeConfigurationAlreadyExists",
12967
12947
  "msg": "A fee configuration already exists. Detach it first before attaching a new one"
12968
12948
  },
12969
12949
  {
12970
- "code": 6024,
12950
+ "code": 6023,
12971
12951
  "name": "incorrectFeeRecipientsCount",
12972
12952
  "msg": "Incorrect number of protocol fee recipients provided"
12973
12953
  },
12974
12954
  {
12975
- "code": 6025,
12955
+ "code": 6024,
12976
12956
  "name": "invalidFeeRecipient",
12977
12957
  "msg": "The fee recipient provided is not in the global configuration"
12978
12958
  },
12979
12959
  {
12980
- "code": 6026,
12960
+ "code": 6025,
12981
12961
  "name": "invalidFeeConfiguration",
12982
12962
  "msg": "Invalid fee configuration. Total must be 10000 bps with no duplicate recipients"
12983
12963
  },
12984
12964
  {
12985
- "code": 6027,
12965
+ "code": 6026,
12986
12966
  "name": "invalidRemainingAccounts",
12987
12967
  "msg": "Invalid remaining accounts for fee distribution"
12988
12968
  },
12989
12969
  {
12990
- "code": 6028,
12970
+ "code": 6027,
12991
12971
  "name": "feesMustBeWithdrawn",
12992
12972
  "msg": "Existing creator fees must be fully withdrawn before updating the configuration"
12993
12973
  },
12994
12974
  {
12995
- "code": 6029,
12975
+ "code": 6028,
12996
12976
  "name": "feeTooHigh",
12997
12977
  "msg": "Individual fee cannot exceed maximum"
12998
12978
  },
12999
12979
  {
13000
- "code": 6030,
12980
+ "code": 6029,
13001
12981
  "name": "invalidProtocolConfiguration",
13002
12982
  "msg": "Invalid protocol configuration"
13003
12983
  },
13004
12984
  {
13005
- "code": 6031,
12985
+ "code": 6030,
13006
12986
  "name": "tooManyQuoteMints",
13007
12987
  "msg": "Too many quote mints provided"
13008
12988
  },
13009
12989
  {
13010
- "code": 6032,
12990
+ "code": 6031,
13011
12991
  "name": "duplicateQuoteMint",
13012
12992
  "msg": "Duplicate quote mint provided"
13013
12993
  },
13014
12994
  {
13015
- "code": 6033,
12995
+ "code": 6032,
13016
12996
  "name": "invalidQuoteMint",
13017
12997
  "msg": "Invalid quote mint - not in whitelist"
13018
12998
  },
13019
12999
  {
13020
- "code": 6034,
13000
+ "code": 6033,
13021
13001
  "name": "invalidTokenTotalSupply",
13022
13002
  "msg": "Invalid token total supply. Must be greater than initial real token reserves"
13023
13003
  },
13024
13004
  {
13025
- "code": 6035,
13005
+ "code": 6034,
13026
13006
  "name": "invalidReserves",
13027
13007
  "msg": "Reserve values must be greater than zero"
13028
13008
  },
13029
13009
  {
13030
- "code": 6036,
13010
+ "code": 6035,
13031
13011
  "name": "invalidCashbackConfiguration",
13032
13012
  "msg": "Invalid cashback configuration"
13033
13013
  },
13034
13014
  {
13035
- "code": 6037,
13015
+ "code": 6036,
13036
13016
  "name": "cannotChangeCashbackMode",
13037
13017
  "msg": "Cannot activate spending mode without existing cashback credits"
13038
13018
  },
13039
13019
  {
13040
- "code": 6038,
13020
+ "code": 6037,
13041
13021
  "name": "protocolPaused",
13042
13022
  "msg": "Protocol is paused"
13043
13023
  },
13044
13024
  {
13045
- "code": 6039,
13025
+ "code": 6038,
13046
13026
  "name": "invalidPriceFeed",
13047
13027
  "msg": "Invalid price feed account"
13048
13028
  },
13049
13029
  {
13050
- "code": 6040,
13030
+ "code": 6039,
13051
13031
  "name": "stalePriceFeed",
13052
13032
  "msg": "Price feed data is stale"
13053
13033
  },
13054
13034
  {
13055
- "code": 6041,
13035
+ "code": 6040,
13056
13036
  "name": "arithmeticOverflow",
13057
13037
  "msg": "Arithmetic operation resulted in overflow"
13058
13038
  }
@@ -1236,32 +1236,32 @@
1236
1236
  }
1237
1237
  },
1238
1238
  {
1239
- "name": "quote_amount_in",
1239
+ "name": "bonding_curve",
1240
1240
  "docs": [
1241
- "Amount of quote tokens/SOL used for the buyback."
1241
+ "The bonding curve PDA."
1242
1242
  ],
1243
- "type": "u64"
1243
+ "type": "pubkey"
1244
1244
  },
1245
1245
  {
1246
- "name": "tokens_burned",
1246
+ "name": "executor",
1247
1247
  "docs": [
1248
- "Amount of tokens burned."
1248
+ "The address that triggered the buyback."
1249
1249
  ],
1250
- "type": "u64"
1250
+ "type": "pubkey"
1251
1251
  },
1252
1252
  {
1253
- "name": "bonding_curve",
1253
+ "name": "quote_amount_in",
1254
1254
  "docs": [
1255
- "The bonding curve PDA."
1255
+ "Amount of quote tokens/SOL used for the buyback."
1256
1256
  ],
1257
- "type": "pubkey"
1257
+ "type": "u64"
1258
1258
  },
1259
1259
  {
1260
- "name": "executor",
1260
+ "name": "tokens_burned",
1261
1261
  "docs": [
1262
- "The address that triggered the buyback."
1262
+ "Amount of tokens burned."
1263
1263
  ],
1264
- "type": "pubkey"
1264
+ "type": "u64"
1265
1265
  },
1266
1266
  {
1267
1267
  "name": "timestamp",
@@ -1843,25 +1843,32 @@
1843
1843
  "type": "pubkey"
1844
1844
  },
1845
1845
  {
1846
- "name": "lp_amount_before",
1846
+ "name": "base_mint",
1847
1847
  "docs": [
1848
- "LP balance before change."
1848
+ "The base token mint."
1849
1849
  ],
1850
- "type": "u64"
1850
+ "type": "pubkey"
1851
1851
  },
1852
1852
  {
1853
- "name": "base_vault_before",
1853
+ "name": "quote_mint",
1854
1854
  "docs": [
1855
- "Pool base vault balance before change."
1855
+ "The quote token mint."
1856
1856
  ],
1857
- "type": "u64"
1857
+ "type": "pubkey"
1858
1858
  },
1859
1859
  {
1860
- "name": "quote_vault_before",
1860
+ "name": "user",
1861
1861
  "docs": [
1862
- "Pool quote vault balance before change."
1862
+ "The user who performed the deposit/withdraw."
1863
1863
  ],
1864
- "type": "u64"
1864
+ "type": "pubkey"
1865
+ },
1866
+ {
1867
+ "name": "change_type",
1868
+ "docs": [
1869
+ "0: deposit, 1: withdraw."
1870
+ ],
1871
+ "type": "u8"
1865
1872
  },
1866
1873
  {
1867
1874
  "name": "base_amount",
@@ -1878,46 +1885,39 @@
1878
1885
  "type": "u64"
1879
1886
  },
1880
1887
  {
1881
- "name": "base_token_multiplier",
1882
- "docs": [
1883
- "ScaledUiAmount multiplier for the base token (1.0 if no extension)."
1884
- ],
1885
- "type": "f64"
1886
- },
1887
- {
1888
- "name": "base_transfer_fee",
1888
+ "name": "base_vault_before",
1889
1889
  "docs": [
1890
- "Transfer fee on base token."
1890
+ "Pool base vault balance before change."
1891
1891
  ],
1892
1892
  "type": "u64"
1893
1893
  },
1894
1894
  {
1895
- "name": "quote_transfer_fee",
1895
+ "name": "quote_vault_before",
1896
1896
  "docs": [
1897
- "Transfer fee on quote token."
1897
+ "Pool quote vault balance before change."
1898
1898
  ],
1899
1899
  "type": "u64"
1900
1900
  },
1901
1901
  {
1902
- "name": "change_type",
1902
+ "name": "lp_amount_before",
1903
1903
  "docs": [
1904
- "0: deposit, 1: withdraw."
1904
+ "LP balance before change."
1905
1905
  ],
1906
- "type": "u8"
1906
+ "type": "u64"
1907
1907
  },
1908
1908
  {
1909
- "name": "user",
1909
+ "name": "base_transfer_fee",
1910
1910
  "docs": [
1911
- "The user who performed the deposit/withdraw."
1911
+ "Transfer fee on base token."
1912
1912
  ],
1913
- "type": "pubkey"
1913
+ "type": "u64"
1914
1914
  },
1915
1915
  {
1916
- "name": "timestamp",
1916
+ "name": "quote_transfer_fee",
1917
1917
  "docs": [
1918
- "Timestamp of the LP change."
1918
+ "Transfer fee on quote token."
1919
1919
  ],
1920
- "type": "i64"
1920
+ "type": "u64"
1921
1921
  },
1922
1922
  {
1923
1923
  "name": "lp_supply",
@@ -1927,18 +1927,11 @@
1927
1927
  "type": "u64"
1928
1928
  },
1929
1929
  {
1930
- "name": "base_mint",
1931
- "docs": [
1932
- "The base token mint."
1933
- ],
1934
- "type": "pubkey"
1935
- },
1936
- {
1937
- "name": "quote_mint",
1930
+ "name": "timestamp",
1938
1931
  "docs": [
1939
- "The quote token mint."
1932
+ "Timestamp of the LP change."
1940
1933
  ],
1941
- "type": "pubkey"
1934
+ "type": "i64"
1942
1935
  }
1943
1936
  ]
1944
1937
  }
@@ -1981,20 +1974,6 @@
1981
1974
  ],
1982
1975
  "type": "pubkey"
1983
1976
  },
1984
- {
1985
- "name": "token_amount",
1986
- "docs": [
1987
- "Amount of tokens migrated to AMM."
1988
- ],
1989
- "type": "u64"
1990
- },
1991
- {
1992
- "name": "quote_amount",
1993
- "docs": [
1994
- "Amount of quote migrated to AMM (SOL or quote token)."
1995
- ],
1996
- "type": "u64"
1997
- },
1998
1977
  {
1999
1978
  "name": "migrator",
2000
1979
  "docs": [
@@ -2010,11 +1989,18 @@
2010
1989
  "type": "pubkey"
2011
1990
  },
2012
1991
  {
2013
- "name": "timestamp",
1992
+ "name": "token_amount",
2014
1993
  "docs": [
2015
- "Timestamp of the migration."
1994
+ "Amount of tokens migrated to AMM."
2016
1995
  ],
2017
- "type": "i64"
1996
+ "type": "u64"
1997
+ },
1998
+ {
1999
+ "name": "quote_amount",
2000
+ "docs": [
2001
+ "Amount of quote migrated to AMM (SOL or quote token)."
2002
+ ],
2003
+ "type": "u64"
2018
2004
  },
2019
2005
  {
2020
2006
  "name": "lp_mint",
@@ -2036,6 +2022,13 @@
2036
2022
  "Amount of buyback funds migrated to the AMM buyback vault (0 if none)."
2037
2023
  ],
2038
2024
  "type": "u64"
2025
+ },
2026
+ {
2027
+ "name": "timestamp",
2028
+ "docs": [
2029
+ "Timestamp of the migration."
2030
+ ],
2031
+ "type": "i64"
2039
2032
  }
2040
2033
  ]
2041
2034
  }
@@ -2287,6 +2280,20 @@
2287
2280
  ],
2288
2281
  "type": "pubkey"
2289
2282
  },
2283
+ {
2284
+ "name": "user",
2285
+ "docs": [
2286
+ "User who performed the swap."
2287
+ ],
2288
+ "type": "pubkey"
2289
+ },
2290
+ {
2291
+ "name": "creator",
2292
+ "docs": [
2293
+ "Creator of the token."
2294
+ ],
2295
+ "type": "pubkey"
2296
+ },
2290
2297
  {
2291
2298
  "name": "trade_amounts",
2292
2299
  "docs": [
@@ -2368,20 +2375,6 @@
2368
2375
  ],
2369
2376
  "type": "u16"
2370
2377
  },
2371
- {
2372
- "name": "cashback",
2373
- "docs": [
2374
- "Cashback earned (positive) or spent (negative) by the user."
2375
- ],
2376
- "type": "i64"
2377
- },
2378
- {
2379
- "name": "cashback_bps",
2380
- "docs": [
2381
- "Cashback basis points from config."
2382
- ],
2383
- "type": "u16"
2384
- },
2385
2378
  {
2386
2379
  "name": "creator_fee_mode",
2387
2380
  "docs": [
@@ -2401,18 +2394,18 @@
2401
2394
  "type": "pubkey"
2402
2395
  },
2403
2396
  {
2404
- "name": "user",
2397
+ "name": "cashback",
2405
2398
  "docs": [
2406
- "User who performed the swap."
2399
+ "Cashback earned (positive) or spent (negative) by the user."
2407
2400
  ],
2408
- "type": "pubkey"
2401
+ "type": "i64"
2409
2402
  },
2410
2403
  {
2411
- "name": "creator",
2404
+ "name": "cashback_bps",
2412
2405
  "docs": [
2413
- "Creator of the token."
2406
+ "Cashback basis points from config."
2414
2407
  ],
2415
- "type": "pubkey"
2408
+ "type": "u16"
2416
2409
  },
2417
2410
  {
2418
2411
  "name": "total_quote_volume",
@@ -2429,11 +2422,11 @@
2429
2422
  "type": "u128"
2430
2423
  },
2431
2424
  {
2432
- "name": "timestamp",
2425
+ "name": "buyback_vault_balance",
2433
2426
  "docs": [
2434
- "Timestamp of the trade."
2427
+ "Buyback vault balance after the trade (quote token amount)."
2435
2428
  ],
2436
- "type": "i64"
2429
+ "type": "u64"
2437
2430
  },
2438
2431
  {
2439
2432
  "name": "sol_price_usd",
@@ -2450,18 +2443,11 @@
2450
2443
  "type": "u64"
2451
2444
  },
2452
2445
  {
2453
- "name": "buyback_vault_balance",
2454
- "docs": [
2455
- "Buyback vault balance after the trade (quote token amount)."
2456
- ],
2457
- "type": "u64"
2458
- },
2459
- {
2460
- "name": "base_ui_amount_multiplier",
2446
+ "name": "timestamp",
2461
2447
  "docs": [
2462
- "ScaledUiAmount multiplier for the base token (1.0 if no extension)."
2448
+ "Timestamp of the trade."
2463
2449
  ],
2464
- "type": "f64"
2450
+ "type": "i64"
2465
2451
  }
2466
2452
  ]
2467
2453
  }
@@ -2642,29 +2628,29 @@
2642
2628
  }
2643
2629
  },
2644
2630
  {
2645
- "name": "trade_amounts",
2631
+ "name": "user",
2646
2632
  "docs": [
2647
- "Trade in and out amounts."
2633
+ "User who performed the trade."
2648
2634
  ],
2649
- "type": {
2650
- "defined": {
2651
- "name": "TradeAmounts"
2652
- }
2653
- }
2635
+ "type": "pubkey"
2654
2636
  },
2655
2637
  {
2656
- "name": "cashback",
2638
+ "name": "creator",
2657
2639
  "docs": [
2658
- "Cashback earned (positive) or spent (negative) by the user."
2640
+ "Creator of the token."
2659
2641
  ],
2660
- "type": "i64"
2642
+ "type": "pubkey"
2661
2643
  },
2662
2644
  {
2663
- "name": "cashback_bps",
2645
+ "name": "trade_amounts",
2664
2646
  "docs": [
2665
- "Cashback fee basis points."
2647
+ "Trade in and out amounts."
2666
2648
  ],
2667
- "type": "u16"
2649
+ "type": {
2650
+ "defined": {
2651
+ "name": "TradeAmounts"
2652
+ }
2653
+ }
2668
2654
  },
2669
2655
  {
2670
2656
  "name": "creator_fee",
@@ -2694,6 +2680,17 @@
2694
2680
  ],
2695
2681
  "type": "u16"
2696
2682
  },
2683
+ {
2684
+ "name": "creator_fee_mode",
2685
+ "docs": [
2686
+ "Creator fee mode."
2687
+ ],
2688
+ "type": {
2689
+ "defined": {
2690
+ "name": "FeeMode"
2691
+ }
2692
+ }
2693
+ },
2697
2694
  {
2698
2695
  "name": "fee_recipient",
2699
2696
  "docs": [
@@ -2748,29 +2745,18 @@
2748
2745
  }
2749
2746
  },
2750
2747
  {
2751
- "name": "user",
2752
- "docs": [
2753
- "User who performed the trade."
2754
- ],
2755
- "type": "pubkey"
2756
- },
2757
- {
2758
- "name": "creator",
2748
+ "name": "cashback",
2759
2749
  "docs": [
2760
- "Creator of the token."
2750
+ "Cashback earned (positive) or spent (negative) by the user."
2761
2751
  ],
2762
- "type": "pubkey"
2752
+ "type": "i64"
2763
2753
  },
2764
2754
  {
2765
- "name": "creator_fee_mode",
2755
+ "name": "cashback_bps",
2766
2756
  "docs": [
2767
- "Creator fee mode."
2757
+ "Cashback fee basis points."
2768
2758
  ],
2769
- "type": {
2770
- "defined": {
2771
- "name": "FeeMode"
2772
- }
2773
- }
2759
+ "type": "u16"
2774
2760
  },
2775
2761
  {
2776
2762
  "name": "virtual_token_reserves",
@@ -2815,9 +2801,9 @@
2815
2801
  "type": "u128"
2816
2802
  },
2817
2803
  {
2818
- "name": "market_cap_usd",
2804
+ "name": "buyback_vault_balance",
2819
2805
  "docs": [
2820
- "Current market cap in USD (6 decimals)."
2806
+ "Buyback vault balance after the trade (lamports for native, token amount for stable)."
2821
2807
  ],
2822
2808
  "type": "u64"
2823
2809
  },
@@ -2831,9 +2817,9 @@
2831
2817
  }
2832
2818
  },
2833
2819
  {
2834
- "name": "buyback_vault_balance",
2820
+ "name": "market_cap_usd",
2835
2821
  "docs": [
2836
- "Buyback vault balance after the trade (lamports for native, token amount for stable)."
2822
+ "Current market cap in USD (6 decimals)."
2837
2823
  ],
2838
2824
  "type": "u64"
2839
2825
  },