@drift-labs/jit-proxy 0.10.91 → 0.10.92

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.
@@ -23,7 +23,7 @@ export declare abstract class BaseJitter {
23
23
  driftClient: DriftClient;
24
24
  auctionSubscriber: AuctionSubscriber;
25
25
  jitProxyClient: JitProxyClient;
26
- userStatsMap?: UserStatsMap;
26
+ userStatsMap: UserStatsMap;
27
27
  });
28
28
  subscribe(): Promise<void>;
29
29
  createTryFill(taker: UserAccount, takerKey: PublicKey, takerStatsKey: PublicKey, order: Order, orderSignature: string): () => Promise<void>;
@@ -10,16 +10,9 @@ class BaseJitter {
10
10
  this.auctionSubscriber = auctionSubscriber;
11
11
  this.driftClient = driftClient;
12
12
  this.jitProxyClient = jitProxyClient;
13
- this.userStatsMap =
14
- userStatsMap ||
15
- new sdk_1.UserStatsMap(this.driftClient, {
16
- type: 'polling',
17
- accountLoader: new sdk_1.BulkAccountLoader(this.driftClient.connection, 'confirmed', 0),
18
- });
19
13
  }
20
14
  async subscribe() {
21
15
  await this.driftClient.subscribe();
22
- await this.userStatsMap.subscribe();
23
16
  await this.auctionSubscriber.subscribe();
24
17
  this.auctionSubscriber.eventEmitter.on('onAccountUpdate', async (taker, takerKey, slot) => {
25
18
  const takerKeyString = takerKey.toBase58();
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@drift-labs/jit-proxy",
3
- "version": "0.10.91",
3
+ "version": "0.10.92",
4
4
  "scripts": {
5
5
  "clean": "rm -rf lib",
6
6
  "build": "yarn clean && tsc"
7
7
  },
8
8
  "dependencies": {
9
9
  "@coral-xyz/anchor": "^0.26.0",
10
- "@drift-labs/sdk": "2.48.0-beta.2",
10
+ "@drift-labs/sdk": "2.48.0-beta.6",
11
11
  "@solana/web3.js": "1.73.2"
12
12
  },
13
13
  "engines": {
@@ -57,26 +57,15 @@ export abstract class BaseJitter {
57
57
  driftClient: DriftClient;
58
58
  auctionSubscriber: AuctionSubscriber;
59
59
  jitProxyClient: JitProxyClient;
60
- userStatsMap?: UserStatsMap;
60
+ userStatsMap: UserStatsMap;
61
61
  }) {
62
62
  this.auctionSubscriber = auctionSubscriber;
63
63
  this.driftClient = driftClient;
64
64
  this.jitProxyClient = jitProxyClient;
65
- this.userStatsMap =
66
- userStatsMap ||
67
- new UserStatsMap(this.driftClient, {
68
- type: 'polling',
69
- accountLoader: new BulkAccountLoader(
70
- this.driftClient.connection,
71
- 'confirmed',
72
- 0
73
- ),
74
- });
75
65
  }
76
66
 
77
67
  async subscribe(): Promise<void> {
78
68
  await this.driftClient.subscribe();
79
- await this.userStatsMap.subscribe();
80
69
 
81
70
  await this.auctionSubscriber.subscribe();
82
71
  this.auctionSubscriber.eventEmitter.on(