@exodus/solana-api 3.30.1 → 3.30.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.30.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.30.1...@exodus/solana-api@3.30.2) (2026-03-18)
7
+
8
+ **Note:** Version bump only for package @exodus/solana-api
9
+
10
+
11
+
12
+
13
+
6
14
  ## [3.30.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.30.0...@exodus/solana-api@3.30.1) (2026-03-13)
7
15
 
8
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.30.1",
3
+ "version": "3.30.2",
4
4
  "description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Solana",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -49,7 +49,7 @@
49
49
  "@exodus/assets-testing": "^1.0.0",
50
50
  "@exodus/solana-web3.js": "^1.63.1-exodus.9-rc3"
51
51
  },
52
- "gitHead": "51cc10fa866ae472882aa09353e2425bc7d7031f",
52
+ "gitHead": "e746a88ef78a0e7167587bfa14068ceb494d6fd7",
53
53
  "bugs": {
54
54
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
55
55
  },
@@ -1,4 +1,5 @@
1
1
  import { assetsListToObject } from '@exodus/assets'
2
+ // eslint-disable-next-line @exodus/import/no-deprecated
2
3
  import { isNumberUnit } from '@exodus/currency'
3
4
  import { AccountState } from '@exodus/models'
4
5
  import lodash from 'lodash'
@@ -6,6 +7,7 @@ import lodash from 'lodash'
6
7
  const { isString, reduce } = lodash
7
8
 
8
9
  const parseBalance = (balance, asset) =>
10
+ // eslint-disable-next-line @exodus/import/no-deprecated
9
11
  !isNumberUnit(balance) && isString(balance) ? asset.currency.parse(balance) : balance
10
12
 
11
13
  export const DEFAULT_POOL_ADDRESS = '9QU2QSxhb24FUX3Tu2FpczXjpK3VYrvRudywSZaM29mF' // Everstake
package/src/api.js CHANGED
@@ -471,7 +471,13 @@ export class Api {
471
471
  return value
472
472
  }
473
473
 
474
- async addressHasHistory(address) {
474
+ /**
475
+ * Returns true if the account exists (has not been reclaimed).
476
+ * Accounts may be reclaimed by the rent collector after their balance dropped below the
477
+ * rent-exempt reserve. getAccountInfo only returns the current account state; if the
478
+ * runtime deleted the account, RPC returns null.
479
+ */
480
+ async addressIsActive(address) {
475
481
  const value = await this.getAccountInfo(address)
476
482
  return !!value?.data
477
483
  }
package/src/auth.js CHANGED
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @exodus/import/no-deprecated
1
2
  import { randomBytes } from '@exodus/crypto/randomBytes'
2
3
  import { generateKeyPair } from '@exodus/solana-lib'
3
4
 
@@ -12,6 +13,7 @@ export const getAuthKeyPair = ({ assetName, apiUrl, network }) => {
12
13
  const cacheKey = `auth_keypair:v1:${normalizeServiceUrl(apiUrl)}:${assetName}:${network || 'mainnet'}`
13
14
 
14
15
  if (!authKeyPairCache.has(cacheKey)) {
16
+ // eslint-disable-next-line @exodus/import/no-deprecated
15
17
  const keyPair = generateKeyPair(randomBytes(32))
16
18
  authKeyPairCache.set(cacheKey, {
17
19
  publicKey: keyPair.publicKey.toBuffer().toString('hex'),
package/src/rpc-api.js CHANGED
@@ -243,7 +243,13 @@ export class RpcApi {
243
243
  }
244
244
  }
245
245
 
246
- async addressHasHistory(address) {
246
+ /**
247
+ * Returns true if the account exists (has not been reclaimed).
248
+ * Accounts may be reclaimed by the rent collector after their balance dropped below the
249
+ * rent-exempt reserve. getAccountInfo only returns the current account state; if the
250
+ * runtime deleted the account, RPC returns null.
251
+ */
252
+ async addressIsActive(address) {
247
253
  const value = await this.getAccountInfo(address)
248
254
  return !!value?.data
249
255
  }
package/src/ws-api.js CHANGED
@@ -131,6 +131,9 @@ export class WsApi {
131
131
  await this.connection.start()
132
132
  } else if (this.connection.isOpen) {
133
133
  await this.sendSubscriptions({ address, tokensAddresses })
134
+ } else {
135
+ // Connection exists but is closed (e.g. after app refresh). Restart it.
136
+ await this.connection.start()
134
137
  }
135
138
  }
136
139