@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/dist/events/types.d.ts +9 -11
- package/dist/events/types.d.ts.map +1 -1
- package/dist/idl/liquid.d.ts +2491 -2491
- package/dist/idl/liquid.d.ts.map +1 -1
- package/dist/idl/liquid.json +2491 -2491
- package/dist/idl/liquid_events.d.ts +45 -55
- package/dist/idl/liquid_events.d.ts.map +1 -1
- package/dist/idl/liquid_events.json +45 -55
- 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 +1000 -1018
- package/dist/idl/liquid_swap.d.ts.map +1 -1
- package/dist/idl/liquid_swap.json +1000 -1018
- package/package.json +1 -1
- package/src/events/types.ts +12 -12
- package/src/idl/liquid.json +2491 -2491
- package/src/idl/liquid.ts +2491 -2491
- package/src/idl/liquid_events.json +45 -55
- package/src/idl/liquid_events.ts +45 -55
- 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 +1000 -1018
- package/src/idl/liquid_swap.ts +1000 -1018
package/package.json
CHANGED
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,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 */
|