@drift-labs/sdk 2.95.0-beta.19 → 2.95.0-beta.20

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.95.0-beta.19
1
+ 2.95.0-beta.20
@@ -83,7 +83,7 @@ class WebSocketDriftClientAccountSubscriber {
83
83
  const perpMarketPublicKeys = this.perpMarketIndexes.map((marketIndex) => (0, pda_1.getPerpMarketPublicKeySync)(this.program.programId, marketIndex));
84
84
  const perpMarketAccountInfos = await connection.getMultipleAccountsInfo(perpMarketPublicKeys);
85
85
  this.initialPerpMarketAccountData = new Map(perpMarketAccountInfos
86
- .filter((accountInfo) => !!accountInfo.data)
86
+ .filter((accountInfo) => !!accountInfo)
87
87
  .map((accountInfo) => {
88
88
  const perpMarket = this.program.coder.accounts.decode('PerpMarket', accountInfo.data);
89
89
  return [perpMarket.marketIndex, perpMarket];
@@ -93,7 +93,7 @@ class WebSocketDriftClientAccountSubscriber {
93
93
  const spotMarketPublicKeys = this.spotMarketIndexes.map((marketIndex) => (0, pda_1.getSpotMarketPublicKeySync)(this.program.programId, marketIndex));
94
94
  const spotMarketAccountInfos = await connection.getMultipleAccountsInfo(spotMarketPublicKeys);
95
95
  this.initialSpotMarketAccountData = new Map(spotMarketAccountInfos
96
- .filter((accountInfo) => !!accountInfo.data)
96
+ .filter((accountInfo) => !!accountInfo)
97
97
  .map((accountInfo) => {
98
98
  const spotMarket = this.program.coder.accounts.decode('SpotMarket', accountInfo.data);
99
99
  return [spotMarket.marketIndex, spotMarket];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.95.0-beta.19",
3
+ "version": "2.95.0-beta.20",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -175,7 +175,7 @@ export class WebSocketDriftClientAccountSubscriber
175
175
  );
176
176
  this.initialPerpMarketAccountData = new Map(
177
177
  perpMarketAccountInfos
178
- .filter((accountInfo) => !!accountInfo.data)
178
+ .filter((accountInfo) => !!accountInfo)
179
179
  .map((accountInfo) => {
180
180
  const perpMarket = this.program.coder.accounts.decode(
181
181
  'PerpMarket',
@@ -195,7 +195,7 @@ export class WebSocketDriftClientAccountSubscriber
195
195
  );
196
196
  this.initialSpotMarketAccountData = new Map(
197
197
  spotMarketAccountInfos
198
- .filter((accountInfo) => !!accountInfo.data)
198
+ .filter((accountInfo) => !!accountInfo)
199
199
  .map((accountInfo) => {
200
200
  const spotMarket = this.program.coder.accounts.decode(
201
201
  'SpotMarket',