@liquid-af/sdk 0.5.9 → 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.
Files changed (43) hide show
  1. package/dist/events/types.d.ts +14 -13
  2. package/dist/events/types.d.ts.map +1 -1
  3. package/dist/idl/liquid.d.ts +2507 -2507
  4. package/dist/idl/liquid.d.ts.map +1 -1
  5. package/dist/idl/liquid.json +2507 -2507
  6. package/dist/idl/liquid_events.d.ts +58 -47
  7. package/dist/idl/liquid_events.d.ts.map +1 -1
  8. package/dist/idl/liquid_events.json +58 -47
  9. package/dist/idl/liquid_fees.d.ts +6 -6
  10. package/dist/idl/liquid_fees.json +6 -6
  11. package/dist/idl/liquid_state.d.ts +72 -72
  12. package/dist/idl/liquid_state.d.ts.map +1 -1
  13. package/dist/idl/liquid_state.json +72 -72
  14. package/dist/idl/liquid_swap.d.ts +1765 -801
  15. package/dist/idl/liquid_swap.d.ts.map +1 -1
  16. package/dist/idl/liquid_swap.json +1765 -801
  17. package/dist/instructions/index.d.ts +4 -4
  18. package/dist/instructions/index.d.ts.map +1 -1
  19. package/dist/instructions/index.js +3 -3
  20. package/dist/instructions/index.js.map +1 -1
  21. package/dist/instructions/liquid-swap.d.ts +40 -0
  22. package/dist/instructions/liquid-swap.d.ts.map +1 -1
  23. package/dist/instructions/liquid-swap.js +62 -0
  24. package/dist/instructions/liquid-swap.js.map +1 -1
  25. package/dist/instructions/liquid.d.ts +116 -0
  26. package/dist/instructions/liquid.d.ts.map +1 -1
  27. package/dist/instructions/liquid.js +176 -0
  28. package/dist/instructions/liquid.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/events/types.ts +17 -14
  31. package/src/idl/liquid.json +2507 -2507
  32. package/src/idl/liquid.ts +2507 -2507
  33. package/src/idl/liquid_events.json +58 -47
  34. package/src/idl/liquid_events.ts +58 -47
  35. package/src/idl/liquid_fees.json +6 -6
  36. package/src/idl/liquid_fees.ts +6 -6
  37. package/src/idl/liquid_state.json +72 -72
  38. package/src/idl/liquid_state.ts +72 -72
  39. package/src/idl/liquid_swap.json +1765 -801
  40. package/src/idl/liquid_swap.ts +1765 -801
  41. package/src/instructions/index.ts +16 -0
  42. package/src/instructions/liquid-swap.ts +144 -0
  43. package/src/instructions/liquid.ts +366 -0
@@ -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,29 +139,30 @@ 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
- inputMint: PublicKey;
148
- outputMint: PublicKey;
142
+ baseMint: PublicKey;
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
- feeMode: FeeModeAnchor;
155
+ cashback: BN;
156
+ cashbackBps: number;
157
+ creatorFeeMode: FeeModeAnchor;
158
+ feeRecipient: PublicKey;
156
159
  user: PublicKey;
157
160
  creator: PublicKey;
158
- totalSolVolume: BN;
161
+ totalQuoteVolume: BN;
159
162
  totalTokenVolume: BN;
160
163
  timestamp: BN;
161
- cashback: BN;
162
- cashbackBps: number;
164
+ solPriceUsd: BN;
165
+ marketCapUsd: BN;
163
166
  buybackVaultBalance: BN;
164
167
  baseUiAmountMultiplier: number;
165
168
  }