@exodus/balances 13.7.0 → 13.7.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,10 @@
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
+ ## [13.7.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.7.0...@exodus/balances@13.7.1) (2025-03-12)
7
+
8
+ **Note:** Version bump only for package @exodus/balances
9
+
6
10
  ## [13.7.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.6.2...@exodus/balances@13.7.0) (2025-02-27)
7
11
 
8
12
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/balances",
3
- "version": "13.7.0",
3
+ "version": "13.7.1",
4
4
  "description": "Tracks crypto balances across enabled wallet accounts.",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "license": "MIT",
@@ -42,6 +42,7 @@
42
42
  "@exodus/multi-account-redux": "^2.0.1",
43
43
  "@exodus/redux-dependency-injection": "^4.0.3",
44
44
  "@exodus/typeforce": "^1.18.0",
45
+ "@exodus/zod": "^3.24.2",
45
46
  "lodash": "^4.17.21",
46
47
  "make-concurrent": "^4.0.0",
47
48
  "reselect": "^3.0.1"
@@ -55,16 +56,16 @@
55
56
  "@exodus/assets-feature": "^7.0.2",
56
57
  "@exodus/available-assets": "^8.7.0",
57
58
  "@exodus/bitcoin-meta": "^2.0.0",
58
- "@exodus/blockchain-metadata": "^15.8.6",
59
+ "@exodus/blockchain-metadata": "^15.9.0",
59
60
  "@exodus/ethereum-meta": "^2.0.0",
60
61
  "@exodus/fee-data-monitors": "^5.0.4",
61
62
  "@exodus/storage-memory": "^2.2.2",
62
- "@exodus/wallet-accounts": "^17.3.2",
63
+ "@exodus/wallet-accounts": "^17.4.0",
63
64
  "events": "^3.3.0",
64
65
  "redux": "^4.2.1"
65
66
  },
66
67
  "publishConfig": {
67
68
  "access": "public"
68
69
  },
69
- "gitHead": "b85ce886087a09896bff3f9a619a7d99ff705667"
70
+ "gitHead": "d62799ed7e762aeb4e1de92210b4549888285c00"
70
71
  }
package/report/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  import { SafeError } from '@exodus/errors'
2
+ import { memoize } from '@exodus/basic-utils'
3
+ import { z } from '@exodus/zod'
2
4
 
3
5
  const createBalancesReport = ({ enabledWalletAccountsAtom, balancesAtom }) => ({
4
6
  namespace: 'balances',
@@ -32,6 +34,20 @@ const createBalancesReport = ({ enabledWalletAccountsAtom, balancesAtom }) => ({
32
34
  return data
33
35
  }, {})
34
36
  },
37
+ getSchema: memoize(() =>
38
+ z.union([
39
+ z.null(),
40
+ z.object({ error: z.instanceof(SafeError) }).strict(),
41
+ z.record(
42
+ z.string(),
43
+ z
44
+ .object({
45
+ balances: z.record(z.string(), z.string()),
46
+ })
47
+ .strict()
48
+ ),
49
+ ])
50
+ ),
35
51
  })
36
52
 
37
53
  const balancesReportDefinition = {