@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.
- package/dist/events/types.d.ts +14 -13
- package/dist/events/types.d.ts.map +1 -1
- package/dist/idl/liquid.d.ts +2507 -2507
- package/dist/idl/liquid.d.ts.map +1 -1
- package/dist/idl/liquid.json +2507 -2507
- package/dist/idl/liquid_events.d.ts +58 -47
- package/dist/idl/liquid_events.d.ts.map +1 -1
- package/dist/idl/liquid_events.json +58 -47
- package/dist/idl/liquid_fees.d.ts +6 -6
- package/dist/idl/liquid_fees.json +6 -6
- package/dist/idl/liquid_state.d.ts +72 -72
- package/dist/idl/liquid_state.d.ts.map +1 -1
- package/dist/idl/liquid_state.json +72 -72
- package/dist/idl/liquid_swap.d.ts +1765 -801
- package/dist/idl/liquid_swap.d.ts.map +1 -1
- package/dist/idl/liquid_swap.json +1765 -801
- package/dist/instructions/index.d.ts +4 -4
- package/dist/instructions/index.d.ts.map +1 -1
- package/dist/instructions/index.js +3 -3
- package/dist/instructions/index.js.map +1 -1
- package/dist/instructions/liquid-swap.d.ts +40 -0
- package/dist/instructions/liquid-swap.d.ts.map +1 -1
- package/dist/instructions/liquid-swap.js +62 -0
- package/dist/instructions/liquid-swap.js.map +1 -1
- package/dist/instructions/liquid.d.ts +116 -0
- package/dist/instructions/liquid.d.ts.map +1 -1
- package/dist/instructions/liquid.js +176 -0
- package/dist/instructions/liquid.js.map +1 -1
- package/package.json +1 -1
- package/src/events/types.ts +17 -14
- package/src/idl/liquid.json +2507 -2507
- package/src/idl/liquid.ts +2507 -2507
- package/src/idl/liquid_events.json +58 -47
- package/src/idl/liquid_events.ts +58 -47
- package/src/idl/liquid_fees.json +6 -6
- package/src/idl/liquid_fees.ts +6 -6
- package/src/idl/liquid_state.json +72 -72
- package/src/idl/liquid_state.ts +72 -72
- package/src/idl/liquid_swap.json +1765 -801
- package/src/idl/liquid_swap.ts +1765 -801
- package/src/instructions/index.ts +16 -0
- package/src/instructions/liquid-swap.ts +144 -0
- package/src/instructions/liquid.ts +366 -0
package/src/events/types.ts
CHANGED
|
@@ -34,7 +34,9 @@ export interface SellAmounts {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/** Trade amounts (buy or sell) */
|
|
37
|
-
export type TradeAmounts =
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
155
|
+
cashback: BN;
|
|
156
|
+
cashbackBps: number;
|
|
157
|
+
creatorFeeMode: FeeModeAnchor;
|
|
158
|
+
feeRecipient: PublicKey;
|
|
156
159
|
user: PublicKey;
|
|
157
160
|
creator: PublicKey;
|
|
158
|
-
|
|
161
|
+
totalQuoteVolume: BN;
|
|
159
162
|
totalTokenVolume: BN;
|
|
160
163
|
timestamp: BN;
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
solPriceUsd: BN;
|
|
165
|
+
marketCapUsd: BN;
|
|
163
166
|
buybackVaultBalance: BN;
|
|
164
167
|
baseUiAmountMultiplier: number;
|
|
165
168
|
}
|