@drift-labs/sdk 2.96.0-beta.26 → 2.96.0-beta.28

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.96.0-beta.26
1
+ 2.96.0-beta.28
@@ -133,12 +133,7 @@ class OrderSubscriber {
133
133
  if (newOrders.length > 0) {
134
134
  this.eventEmitter.emit('orderCreated', userAccount, newOrders, new web3_js_1.PublicKey(key), slot, dataType);
135
135
  }
136
- if (userAccount.hasOpenOrder) {
137
- this.usersAccounts.set(key, { slot, userAccount });
138
- }
139
- else {
140
- this.usersAccounts.delete(key);
141
- }
136
+ this.usersAccounts.set(key, { slot, userAccount });
142
137
  }
143
138
  }
144
139
  /**
@@ -28,7 +28,7 @@ export declare class WhileValidTxSender extends BaseTxSender {
28
28
  retrySleep?: number;
29
29
  additionalConnections?: any;
30
30
  additionalTxSenderCallbacks?: ((base58EncodedTx: string) => void)[];
31
- confirmationStrategy: ConfirmationStrategy;
31
+ confirmationStrategy?: ConfirmationStrategy;
32
32
  txHandler?: TxHandler;
33
33
  trackTxLandRate?: boolean;
34
34
  txLandRateLookbackWindowMinutes?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.96.0-beta.26",
3
+ "version": "2.96.0-beta.28",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -209,11 +209,8 @@ export class OrderSubscriber {
209
209
  dataType
210
210
  );
211
211
  }
212
- if (userAccount.hasOpenOrder) {
213
- this.usersAccounts.set(key, { slot, userAccount });
214
- } else {
215
- this.usersAccounts.delete(key);
216
- }
212
+
213
+ this.usersAccounts.set(key, { slot, userAccount });
217
214
  }
218
215
  }
219
216
 
@@ -75,7 +75,7 @@ export class WhileValidTxSender extends BaseTxSender {
75
75
  retrySleep?: number;
76
76
  additionalConnections?;
77
77
  additionalTxSenderCallbacks?: ((base58EncodedTx: string) => void)[];
78
- confirmationStrategy: ConfirmationStrategy;
78
+ confirmationStrategy?: ConfirmationStrategy;
79
79
  txHandler?: TxHandler;
80
80
  trackTxLandRate?: boolean;
81
81
  txLandRateLookbackWindowMinutes?: number;