@drift-labs/sdk 2.85.0-beta.7 → 2.85.0-beta.8

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 CHANGED
@@ -1 +1 @@
1
- 2.85.0-beta.7
1
+ 2.85.0-beta.8
@@ -293,7 +293,7 @@ export declare class DriftClient {
293
293
  * @deprecated use {@link placePerpOrder} or {@link placeAndTakePerpOrder} instead
294
294
  */
295
295
  openPosition(direction: PositionDirection, amount: BN, marketIndex: number, limitPrice?: BN, subAccountId?: number): Promise<TransactionSignature>;
296
- sendSignedTx(tx: Transaction, opts?: ConfirmOptions): Promise<TransactionSignature>;
296
+ sendSignedTx(tx: Transaction | VersionedTransaction, opts?: ConfirmOptions): Promise<TransactionSignature>;
297
297
  prepareMarketOrderTxs(orderParams: OptionalOrderParams, userAccountPublicKey: PublicKey, userAccount: UserAccount, makerInfo?: MakerInfo | MakerInfo[], txParams?: TxParams, bracketOrdersParams?: OptionalOrderParams[], referrerInfo?: ReferrerInfo, cancelExistingOrders?: boolean, settlePnl?: boolean): Promise<{
298
298
  cancelExistingOrdersTx?: Transaction | VersionedTransaction;
299
299
  settlePnlTx?: Transaction | VersionedTransaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.85.0-beta.7",
3
+ "version": "2.85.0-beta.8",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -2770,7 +2770,7 @@ export class DriftClient {
2770
2770
  }
2771
2771
 
2772
2772
  public async sendSignedTx(
2773
- tx: Transaction,
2773
+ tx: Transaction | VersionedTransaction,
2774
2774
  opts?: ConfirmOptions
2775
2775
  ): Promise<TransactionSignature> {
2776
2776
  const { txSig } = await this.sendTransaction(