@drift-labs/sdk 2.131.0-beta.6 → 2.131.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.
@@ -1,9 +1,9 @@
1
1
  import { OrderSubscriber } from './OrderSubscriber';
2
2
  import { getNonIdleUserFilter, getUserFilter } from '../memcmp';
3
- import { WebSocketProgramAccountSubscriber } from '../accounts/webSocketProgramAccountSubscriber';
4
3
  import { UserAccount } from '../types';
5
4
  import { Commitment, Context, PublicKey } from '@solana/web3.js';
6
5
  import { ResubOpts } from '../accounts/types';
6
+ import { WebSocketProgramAccountSubscriberV2 } from '../accounts/webSocketProgramAccountSubscriberV2';
7
7
 
8
8
  export class WebsocketSubscription {
9
9
  private orderSubscriber: OrderSubscriber;
@@ -12,7 +12,7 @@ export class WebsocketSubscription {
12
12
  private resubOpts?: ResubOpts;
13
13
  private resyncIntervalMs?: number;
14
14
 
15
- private subscriber?: WebSocketProgramAccountSubscriber<UserAccount>;
15
+ private subscriber?: WebSocketProgramAccountSubscriberV2<UserAccount>;
16
16
  private resyncTimeoutId?: ReturnType<typeof setTimeout>;
17
17
 
18
18
  private decoded?: boolean;
@@ -45,7 +45,7 @@ export class WebsocketSubscription {
45
45
  return;
46
46
  }
47
47
 
48
- this.subscriber = new WebSocketProgramAccountSubscriber<UserAccount>(
48
+ this.subscriber = new WebSocketProgramAccountSubscriberV2<UserAccount>(
49
49
  'OrderSubscriber',
50
50
  'User',
51
51
  this.orderSubscriber.driftClient.program,