@drift-labs/sdk 2.28.0-beta.4 → 2.28.0-beta.6

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.
@@ -1,4 +1,9 @@
1
- import { ConfirmOptions, Connection, PublicKey } from '@solana/web3.js';
1
+ import {
2
+ ConfirmOptions,
3
+ Connection,
4
+ PublicKey,
5
+ TransactionVersion,
6
+ } from '@solana/web3.js';
2
7
  import { IWallet } from './types';
3
8
  import { OracleInfo } from './oracles/types';
4
9
  import { BulkAccountLoader } from './accounts/bulkAccountLoader';
@@ -7,7 +12,8 @@ import { DriftEnv } from './config';
7
12
  export type DriftClientConfig = {
8
13
  connection: Connection;
9
14
  wallet: IWallet;
10
- programID: PublicKey;
15
+ env?: DriftEnv;
16
+ programID?: PublicKey;
11
17
  accountSubscription?: DriftClientSubscriptionConfig;
12
18
  opts?: ConfirmOptions;
13
19
  txSenderConfig?: TxSenderConfig;
@@ -17,12 +23,12 @@ export type DriftClientConfig = {
17
23
  spotMarketIndexes?: number[];
18
24
  marketLookupTable?: PublicKey;
19
25
  oracleInfos?: OracleInfo[];
20
- env?: DriftEnv;
21
26
  userStats?: boolean;
22
27
  authority?: PublicKey; // explicitly pass an authority if signer is delegate
23
28
  includeDelegates?: boolean; // flag for whether to load delegate accounts as well
24
29
  authoritySubAccountMap?: Map<string, number[]>; // if passed this will override subAccountIds and includeDelegates
25
30
  skipLoadUsers?: boolean; // if passed to constructor, no user accounts will be loaded. they will load if updateWallet is called afterwards.
31
+ txVersion?: TransactionVersion; // which tx version to use
26
32
  };
27
33
 
28
34
  export type DriftClientSubscriptionConfig =