@exodus/solana-api 3.29.0 → 3.29.1

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,16 @@
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.29.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.29.0...@exodus/solana-api@3.29.1) (2026-02-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: SPL balances regression (#7388)
13
+
14
+
15
+
6
16
  ## [3.29.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.28.0...@exodus/solana-api@3.29.0) (2026-02-03)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.29.0",
3
+ "version": "3.29.1",
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": "d844d6fa5e5eec3c7b279ee5317f676357eb82b2",
52
+ "gitHead": "3679676ff106c29f167cab7f96d3ce8957299f9c",
53
53
  "bugs": {
54
54
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
55
55
  },
@@ -1,5 +1,5 @@
1
1
  import { BaseMonitor } from '@exodus/asset-lib'
2
- import { omitBy } from '@exodus/basic-utils'
2
+ import { mapValues, pickBy } from '@exodus/basic-utils'
3
3
  import lodash from 'lodash'
4
4
  import assert from 'minimalistic-assert'
5
5
  import ms from 'ms'
@@ -294,16 +294,9 @@ export class SolanaClarityMonitor extends BaseMonitor {
294
294
 
295
295
  const ownerChanged = await this.clarityApi.ownerChanged(address, accountInfo)
296
296
 
297
- // we can have splBalances for tokens that are not in our asset list
298
- const clientKnownTokens = omitBy(splBalances, (v, mintAddress) => {
299
- const tokenName = this.clarityApi.tokens.get(mintAddress)?.name
300
- return !this.assets[tokenName]
301
- })
302
- const tokenBalances = Object.fromEntries(
303
- Object.entries(clientKnownTokens).map(([mintAddress, balance]) => {
304
- const tokenName = this.clarityApi.tokens.get(mintAddress)?.name
305
- return [tokenName, this.assets[tokenName].currency.baseUnit(balance)]
306
- })
297
+ const tokenBalances = mapValues(
298
+ pickBy(splBalances, (_balance, name) => this.assets[name]), // filter unknown tokens
299
+ (balance, name) => this.assets[name].currency.baseUnit(balance)
307
300
  )
308
301
 
309
302
  const solBalanceChanged = this.#balanceChanged({