@depthhq/sdk 0.1.12 → 0.1.13

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -47904,6 +47904,7 @@ class DepthClient {
47904
47904
  if (!(error instanceof Error) || ![
47905
47905
  "Waiting for maker liquidity",
47906
47906
  "Market is processing another order",
47907
+ "Market account is processing another operation",
47907
47908
  "Waiting for a fresh oracle update",
47908
47909
  "Oracle update is stale"
47909
47910
  ].includes(error.message) || Date.now() >= quoteDeadline)
@@ -47984,6 +47985,7 @@ class DepthClient {
47984
47985
  if (!(error instanceof Error) || ![
47985
47986
  "Waiting for maker liquidity",
47986
47987
  "Market is processing another order",
47988
+ "Market account is processing another operation",
47987
47989
  "Waiting for a fresh oracle update",
47988
47990
  "Oracle update is stale"
47989
47991
  ].includes(error.message) || Date.now() >= until)
@@ -48001,9 +48003,11 @@ class DepthClient {
48001
48003
  if (!app.active || !app.app.equals(appId)) {
48002
48004
  throw new Error("App registration is inactive");
48003
48005
  }
48004
- if (enumName2(account.status) !== "ready" || !account.market.equals(this.marketAddress) || !account.owner.equals(this.options.wallet.publicKey)) {
48006
+ if (!account.market.equals(this.marketAddress) || !account.owner.equals(this.options.wallet.publicKey)) {
48005
48007
  throw new Error("Market account is unavailable");
48006
48008
  }
48009
+ if (enumName2(account.status) !== "ready")
48010
+ throw new Error("Market account is processing another operation");
48007
48011
  if (market.pendingOrders !== 0)
48008
48012
  throw new Error("Market is processing another order");
48009
48013
  if (market.activeQuoteCount === 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depthhq/sdk",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,8 +44,8 @@
44
44
  "@noble/hashes": "1.8.0",
45
45
  "@solana/web3.js": "1.99.0",
46
46
  "buffer": "6.0.3",
47
- "@depthhq/schema": "0.1.2",
48
- "@depthhq/bindings": "0.1.5"
47
+ "@depthhq/bindings": "0.1.5",
48
+ "@depthhq/schema": "0.1.2"
49
49
  },
50
50
  "devDependencies": {
51
51
  "fake-indexeddb": "6.2.4"