@liquid-af/sdk 0.5.9 → 0.6.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.
@@ -144,24 +144,27 @@ export interface SwapEvent {
144
144
  inputTransferFee: BN;
145
145
  outputTransferFee: BN;
146
146
  baseInput: boolean;
147
- inputMint: PublicKey;
148
- outputMint: PublicKey;
147
+ baseMint: PublicKey;
148
+ quoteMint: PublicKey;
149
149
  lpFee: BN;
150
150
  creatorFee: BN;
151
151
  protocolFee: BN;
152
152
  lpFeeBps: number;
153
153
  creatorFeeBps: number;
154
154
  protocolFeeBps: number;
155
- feeMode: FeeModeAnchor;
155
+ creatorFeeMode: FeeModeAnchor;
156
+ feeRecipient: PublicKey;
156
157
  user: PublicKey;
157
158
  creator: PublicKey;
158
- totalSolVolume: BN;
159
+ totalQuoteVolume: BN;
159
160
  totalTokenVolume: BN;
160
161
  timestamp: BN;
161
162
  cashback: BN;
162
163
  cashbackBps: number;
163
- buybackVaultBalance: BN;
164
164
  baseUiAmountMultiplier: number;
165
+ buybackVaultBalance: BN;
166
+ solPriceUsd: BN;
167
+ marketCapUsd: BN;
165
168
  }
166
169
 
167
170
  /** Event emitted on LP deposit/withdraw */
@@ -8596,7 +8596,7 @@
8596
8596
  "args": []
8597
8597
  },
8598
8598
  {
8599
- "name": "sell_exact_native",
8599
+ "name": "sell_exact_out_native",
8600
8600
  "docs": [
8601
8601
  "Sells tokens on the bonding curve to receive an exact amount of SOL.",
8602
8602
  "",
@@ -8605,14 +8605,14 @@
8605
8605
  "* `max_amount_in` - Maximum tokens willing to sell (slippage protection)."
8606
8606
  ],
8607
8607
  "discriminator": [
8608
- 165,
8609
- 87,
8610
- 245,
8611
- 183,
8612
- 11,
8613
- 70,
8608
+ 12,
8609
+ 37,
8610
+ 246,
8611
+ 175,
8612
+ 240,
8614
8613
  13,
8615
- 41
8614
+ 94,
8615
+ 159
8616
8616
  ],
8617
8617
  "accounts": [
8618
8618
  {
@@ -9557,7 +9557,7 @@
9557
9557
  ]
9558
9558
  },
9559
9559
  {
9560
- "name": "sell_exact_stable",
9560
+ "name": "sell_exact_out_stable",
9561
9561
  "docs": [
9562
9562
  "Sells base tokens on a token-based bonding curve to receive an exact amount of quote tokens.",
9563
9563
  "",
@@ -9566,14 +9566,14 @@
9566
9566
  "* `max_amount_in` - Maximum base tokens willing to sell (slippage protection)."
9567
9567
  ],
9568
9568
  "discriminator": [
9569
- 80,
9570
- 245,
9571
- 179,
9572
- 197,
9573
- 173,
9569
+ 142,
9570
+ 160,
9571
+ 62,
9572
+ 117,
9573
+ 13,
9574
9574
  119,
9575
- 82,
9576
- 23
9575
+ 8,
9576
+ 3
9577
9577
  ],
9578
9578
  "accounts": [
9579
9579
  {
package/src/idl/liquid.ts CHANGED
@@ -8602,7 +8602,7 @@ export type Liquid = {
8602
8602
  "args": []
8603
8603
  },
8604
8604
  {
8605
- "name": "sellExactNative",
8605
+ "name": "sellExactOutNative",
8606
8606
  "docs": [
8607
8607
  "Sells tokens on the bonding curve to receive an exact amount of SOL.",
8608
8608
  "",
@@ -8611,14 +8611,14 @@ export type Liquid = {
8611
8611
  "* `max_amount_in` - Maximum tokens willing to sell (slippage protection)."
8612
8612
  ],
8613
8613
  "discriminator": [
8614
- 165,
8615
- 87,
8616
- 245,
8617
- 183,
8618
- 11,
8619
- 70,
8614
+ 12,
8615
+ 37,
8616
+ 246,
8617
+ 175,
8618
+ 240,
8620
8619
  13,
8621
- 41
8620
+ 94,
8621
+ 159
8622
8622
  ],
8623
8623
  "accounts": [
8624
8624
  {
@@ -9563,7 +9563,7 @@ export type Liquid = {
9563
9563
  ]
9564
9564
  },
9565
9565
  {
9566
- "name": "sellExactStable",
9566
+ "name": "sellExactOutStable",
9567
9567
  "docs": [
9568
9568
  "Sells base tokens on a token-based bonding curve to receive an exact amount of quote tokens.",
9569
9569
  "",
@@ -9572,14 +9572,14 @@ export type Liquid = {
9572
9572
  "* `max_amount_in` - Maximum base tokens willing to sell (slippage protection)."
9573
9573
  ],
9574
9574
  "discriminator": [
9575
- 80,
9576
- 245,
9577
- 179,
9578
- 197,
9579
- 173,
9575
+ 142,
9576
+ 160,
9577
+ 62,
9578
+ 117,
9579
+ 13,
9580
9580
  119,
9581
- 82,
9582
- 23
9581
+ 8,
9582
+ 3
9583
9583
  ],
9584
9584
  "accounts": [
9585
9585
  {
@@ -2578,16 +2578,16 @@
2578
2578
  "type": "bool"
2579
2579
  },
2580
2580
  {
2581
- "name": "input_mint",
2581
+ "name": "base_mint",
2582
2582
  "docs": [
2583
- "Input token mint."
2583
+ "The base (token) mint."
2584
2584
  ],
2585
2585
  "type": "pubkey"
2586
2586
  },
2587
2587
  {
2588
- "name": "output_mint",
2588
+ "name": "quote_mint",
2589
2589
  "docs": [
2590
- "Output token mint."
2590
+ "The quote mint."
2591
2591
  ],
2592
2592
  "type": "pubkey"
2593
2593
  },
@@ -2634,7 +2634,7 @@
2634
2634
  "type": "u16"
2635
2635
  },
2636
2636
  {
2637
- "name": "fee_mode",
2637
+ "name": "creator_fee_mode",
2638
2638
  "docs": [
2639
2639
  "Creator fee routing mode."
2640
2640
  ],
@@ -2644,6 +2644,13 @@
2644
2644
  }
2645
2645
  }
2646
2646
  },
2647
+ {
2648
+ "name": "fee_recipient",
2649
+ "docs": [
2650
+ "Fee recipient."
2651
+ ],
2652
+ "type": "pubkey"
2653
+ },
2647
2654
  {
2648
2655
  "name": "user",
2649
2656
  "docs": [
@@ -2659,9 +2666,9 @@
2659
2666
  "type": "pubkey"
2660
2667
  },
2661
2668
  {
2662
- "name": "total_sol_volume",
2669
+ "name": "total_quote_volume",
2663
2670
  "docs": [
2664
- "Cumulative SOL volume after the trade."
2671
+ "Cumulative quote volume after the trade."
2665
2672
  ],
2666
2673
  "type": "u128"
2667
2674
  },
@@ -2706,6 +2713,20 @@
2706
2713
  "Buyback vault balance after the trade (quote token amount)."
2707
2714
  ],
2708
2715
  "type": "u64"
2716
+ },
2717
+ {
2718
+ "name": "sol_price_usd",
2719
+ "docs": [
2720
+ "SOL/USD price at trade time (6 decimals)."
2721
+ ],
2722
+ "type": "u64"
2723
+ },
2724
+ {
2725
+ "name": "market_cap_usd",
2726
+ "docs": [
2727
+ "Current market cap in USD (6 decimals)."
2728
+ ],
2729
+ "type": "u64"
2709
2730
  }
2710
2731
  ]
2711
2732
  }
@@ -2584,16 +2584,16 @@ export type LiquidEvents = {
2584
2584
  "type": "bool"
2585
2585
  },
2586
2586
  {
2587
- "name": "inputMint",
2587
+ "name": "baseMint",
2588
2588
  "docs": [
2589
- "Input token mint."
2589
+ "The base (token) mint."
2590
2590
  ],
2591
2591
  "type": "pubkey"
2592
2592
  },
2593
2593
  {
2594
- "name": "outputMint",
2594
+ "name": "quoteMint",
2595
2595
  "docs": [
2596
- "Output token mint."
2596
+ "The quote mint."
2597
2597
  ],
2598
2598
  "type": "pubkey"
2599
2599
  },
@@ -2640,7 +2640,7 @@ export type LiquidEvents = {
2640
2640
  "type": "u16"
2641
2641
  },
2642
2642
  {
2643
- "name": "feeMode",
2643
+ "name": "creatorFeeMode",
2644
2644
  "docs": [
2645
2645
  "Creator fee routing mode."
2646
2646
  ],
@@ -2650,6 +2650,13 @@ export type LiquidEvents = {
2650
2650
  }
2651
2651
  }
2652
2652
  },
2653
+ {
2654
+ "name": "feeRecipient",
2655
+ "docs": [
2656
+ "Fee recipient."
2657
+ ],
2658
+ "type": "pubkey"
2659
+ },
2653
2660
  {
2654
2661
  "name": "user",
2655
2662
  "docs": [
@@ -2665,9 +2672,9 @@ export type LiquidEvents = {
2665
2672
  "type": "pubkey"
2666
2673
  },
2667
2674
  {
2668
- "name": "totalSolVolume",
2675
+ "name": "totalQuoteVolume",
2669
2676
  "docs": [
2670
- "Cumulative SOL volume after the trade."
2677
+ "Cumulative quote volume after the trade."
2671
2678
  ],
2672
2679
  "type": "u128"
2673
2680
  },
@@ -2712,6 +2719,20 @@ export type LiquidEvents = {
2712
2719
  "Buyback vault balance after the trade (quote token amount)."
2713
2720
  ],
2714
2721
  "type": "u64"
2722
+ },
2723
+ {
2724
+ "name": "solPriceUsd",
2725
+ "docs": [
2726
+ "SOL/USD price at trade time (6 decimals)."
2727
+ ],
2728
+ "type": "u64"
2729
+ },
2730
+ {
2731
+ "name": "marketCapUsd",
2732
+ "docs": [
2733
+ "Current market cap in USD (6 decimals)."
2734
+ ],
2735
+ "type": "u64"
2715
2736
  }
2716
2737
  ]
2717
2738
  }