@drift-labs/sdk 2.95.0-beta.0 → 2.95.0-beta.2
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/VERSION +1 -1
- package/lib/tx/baseTxSender.js +1 -2
- package/lib/types.d.ts +3 -0
- package/lib/types.js +3 -0
- package/package.json +1 -1
- package/src/tx/baseTxSender.ts +1 -2
- package/src/types.ts +3 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.95.0-beta.
|
|
1
|
+
2.95.0-beta.2
|
package/lib/tx/baseTxSender.js
CHANGED
|
@@ -16,8 +16,7 @@ const DEFAULT_TIMEOUT = 35000;
|
|
|
16
16
|
const DEFAULT_TX_LAND_RATE_LOOKBACK_WINDOW_MINUTES = 10;
|
|
17
17
|
const NOT_CONFIRMED_ERROR_CODE = -1001;
|
|
18
18
|
class BaseTxSender {
|
|
19
|
-
constructor({ connection, wallet, opts = anchor_1.AnchorProvider.defaultOptions(), timeout = DEFAULT_TIMEOUT, additionalConnections = new Array(), confirmationStrategy = types_1.ConfirmationStrategy.Combo, additionalTxSenderCallbacks, trackTxLandRate, txHandler, txLandRateLookbackWindowMinutes = DEFAULT_TX_LAND_RATE_LOOKBACK_WINDOW_MINUTES
|
|
20
|
-
60, landRateToFeeFunc, }) {
|
|
19
|
+
constructor({ connection, wallet, opts = anchor_1.AnchorProvider.defaultOptions(), timeout = DEFAULT_TIMEOUT, additionalConnections = new Array(), confirmationStrategy = types_1.ConfirmationStrategy.Combo, additionalTxSenderCallbacks, trackTxLandRate, txHandler, txLandRateLookbackWindowMinutes = DEFAULT_TX_LAND_RATE_LOOKBACK_WINDOW_MINUTES, landRateToFeeFunc, }) {
|
|
21
20
|
this.timeoutCount = 0;
|
|
22
21
|
this.txLandRate = 0;
|
|
23
22
|
this.lastPriorityFeeSuggestion = 1;
|
package/lib/types.d.ts
CHANGED
|
@@ -286,6 +286,9 @@ export declare class OrderActionExplanation {
|
|
|
286
286
|
static readonly ORDER_FILLED_WITH_SERUM: {
|
|
287
287
|
orderFillWithSerum: {};
|
|
288
288
|
};
|
|
289
|
+
static readonly ORDER_FILLED_WITH_OPENBOOK_V2: {
|
|
290
|
+
orderFilledWithOpenbookV2: {};
|
|
291
|
+
};
|
|
289
292
|
static readonly ORDER_FILLED_WITH_PHOENIX: {
|
|
290
293
|
orderFillWithPhoenix: {};
|
|
291
294
|
};
|
package/lib/types.js
CHANGED
|
@@ -188,6 +188,9 @@ OrderActionExplanation.RISK_INCREASING_ORDER = {
|
|
|
188
188
|
OrderActionExplanation.ORDER_FILLED_WITH_SERUM = {
|
|
189
189
|
orderFillWithSerum: {},
|
|
190
190
|
};
|
|
191
|
+
OrderActionExplanation.ORDER_FILLED_WITH_OPENBOOK_V2 = {
|
|
192
|
+
orderFilledWithOpenbookV2: {},
|
|
193
|
+
};
|
|
191
194
|
OrderActionExplanation.ORDER_FILLED_WITH_PHOENIX = {
|
|
192
195
|
orderFillWithPhoenix: {},
|
|
193
196
|
};
|
package/package.json
CHANGED
package/src/tx/baseTxSender.ts
CHANGED
|
@@ -61,8 +61,7 @@ export abstract class BaseTxSender implements TxSender {
|
|
|
61
61
|
additionalTxSenderCallbacks,
|
|
62
62
|
trackTxLandRate,
|
|
63
63
|
txHandler,
|
|
64
|
-
txLandRateLookbackWindowMinutes = DEFAULT_TX_LAND_RATE_LOOKBACK_WINDOW_MINUTES
|
|
65
|
-
60,
|
|
64
|
+
txLandRateLookbackWindowMinutes = DEFAULT_TX_LAND_RATE_LOOKBACK_WINDOW_MINUTES,
|
|
66
65
|
landRateToFeeFunc,
|
|
67
66
|
}: {
|
|
68
67
|
connection: Connection;
|
package/src/types.ts
CHANGED
|
@@ -192,6 +192,9 @@ export class OrderActionExplanation {
|
|
|
192
192
|
static readonly ORDER_FILLED_WITH_SERUM = {
|
|
193
193
|
orderFillWithSerum: {},
|
|
194
194
|
};
|
|
195
|
+
static readonly ORDER_FILLED_WITH_OPENBOOK_V2 = {
|
|
196
|
+
orderFilledWithOpenbookV2: {},
|
|
197
|
+
};
|
|
195
198
|
static readonly ORDER_FILLED_WITH_PHOENIX = {
|
|
196
199
|
orderFillWithPhoenix: {},
|
|
197
200
|
};
|