@liquid-af/sdk 0.6.0 → 0.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liquid-af/sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "TypeScript SDK for the Liquid DeFi protocol on Solana",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -34,7 +34,9 @@ export interface SellAmounts {
34
34
  }
35
35
 
36
36
  /** Trade amounts (buy or sell) */
37
- export type TradeAmounts = { buy: { 0: BuyAmounts } } | { sell: { 0: SellAmounts } };
37
+ export type TradeAmounts =
38
+ | { buy: { 0: BuyAmounts } }
39
+ | { sell: { 0: SellAmounts } };
38
40
 
39
41
  /** Event emitted after a successful bonding curve trade */
40
42
  export interface TradeEvent {
@@ -137,21 +139,21 @@ export interface BondingCurveProtocolUnpausedEvent {
137
139
  /** Event emitted after an AMM swap */
138
140
  export interface SwapEvent {
139
141
  poolId: PublicKey;
140
- inputVaultBefore: BN;
141
- outputVaultBefore: BN;
142
- inputAmount: BN;
143
- outputAmount: BN;
144
- inputTransferFee: BN;
145
- outputTransferFee: BN;
146
- baseInput: boolean;
147
142
  baseMint: PublicKey;
148
143
  quoteMint: PublicKey;
144
+ tradeAmounts: TradeAmounts;
145
+ baseVaultBefore: BN;
146
+ quoteVaultBefore: BN;
147
+ baseTransferFee: BN;
148
+ quoteTransferFee: BN;
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
+ cashback: BN;
156
+ cashbackBps: number;
155
157
  creatorFeeMode: FeeModeAnchor;
156
158
  feeRecipient: PublicKey;
157
159
  user: PublicKey;
@@ -159,12 +161,10 @@ export interface SwapEvent {
159
161
  totalQuoteVolume: BN;
160
162
  totalTokenVolume: BN;
161
163
  timestamp: BN;
162
- cashback: BN;
163
- cashbackBps: number;
164
- baseUiAmountMultiplier: number;
165
- buybackVaultBalance: BN;
166
164
  solPriceUsd: BN;
167
165
  marketCapUsd: BN;
166
+ buybackVaultBalance: BN;
167
+ baseUiAmountMultiplier: number;
168
168
  }
169
169
 
170
170
  /** Event emitted on LP deposit/withdraw */