@drift-labs/sdk 2.85.0-beta.2 → 2.85.0-beta.3
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/driftClient.js +3 -0
- package/package.json +1 -1
- package/src/driftClient.ts +4 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.85.0-beta.
|
|
1
|
+
2.85.0-beta.3
|
package/lib/driftClient.js
CHANGED
|
@@ -2586,6 +2586,9 @@ class DriftClient {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
async placeAndTakePerpWithAdditionalOrders(orderParams, makerInfo, referrerInfo, bracketOrdersParams = new Array(), txParams, subAccountId, cancelExistingOrders, settlePnl, exitEarlyIfSimFails) {
|
|
2588
2588
|
const txsToSign = await this.preparePlaceAndTakePerpOrderWithAdditionalOrders(orderParams, makerInfo, referrerInfo, bracketOrdersParams, txParams, subAccountId, cancelExistingOrders, settlePnl, exitEarlyIfSimFails);
|
|
2589
|
+
if (!txsToSign) {
|
|
2590
|
+
return null;
|
|
2591
|
+
}
|
|
2589
2592
|
const signedTxs = (await this.txHandler.getSignedTransactionMap(txsToSign, this.provider.wallet)).signedTxMap;
|
|
2590
2593
|
const { txSig, slot } = await this.sendTransaction(signedTxs.placeAndTakeTx, [], this.opts, true);
|
|
2591
2594
|
this.perpMarketLastSlotCache.set(orderParams.marketIndex, slot);
|
package/package.json
CHANGED
package/src/driftClient.ts
CHANGED