@exodus/balances 13.15.5 → 13.16.0

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,12 @@
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.16.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.15.5...@exodus/balances@13.16.0) (2026-05-19)
7
+
8
+ ### Features
9
+
10
+ - **balances:** publish balances atom types ([#16631](https://github.com/ExodusMovement/exodus-hydra/issues/16631)) ([826e09d](https://github.com/ExodusMovement/exodus-hydra/commit/826e09d99701b7e2de43f1a7d6c122d656c4b838))
11
+
6
12
  ## [13.15.5](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.15.4...@exodus/balances@13.15.5) (2026-05-13)
7
13
 
8
14
  **Note:** Version bump only for package @exodus/balances
package/index.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ import type { BalanceFieldName, Balances as AssetBalances } from '@exodus/asset-types'
2
+ import type { Atom } from '@exodus/atoms'
3
+ import type NumberUnit from '@exodus/currency'
4
+
5
+ declare const balances: (walletConfig?: Record<string, unknown>) => {
6
+ id: string
7
+ definitions: unknown[]
8
+ }
9
+
10
+ export type Balances = Partial<AssetBalances>
11
+
12
+ type WalletAccountName = string
13
+
14
+ type AssetName = string
15
+
16
+ export type BalancesByAssetSource = Record<WalletAccountName, Record<AssetName, Balances>>
17
+
18
+ export type BalanceChange = {
19
+ from: NumberUnit
20
+ to: NumberUnit
21
+ }
22
+
23
+ export type BalanceChanges = Record<
24
+ WalletAccountName,
25
+ Record<AssetName, Partial<Record<BalanceFieldName, BalanceChange>>>
26
+ >
27
+
28
+ export type BalancesAtomValue = {
29
+ balances: BalancesByAssetSource
30
+ changes?: BalanceChanges
31
+ }
32
+
33
+ export type BalancesAtom = Atom<BalancesAtomValue>
34
+
35
+ export default balances
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/balances",
3
- "version": "13.15.5",
3
+ "version": "13.16.0",
4
4
  "description": "Tracks crypto balances across enabled wallet accounts.",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "license": "MIT",
@@ -13,10 +13,13 @@
13
13
  },
14
14
  "type": "module",
15
15
  "main": "index.js",
16
+ "types": "index.d.ts",
16
17
  "files": [
17
18
  "module",
18
19
  "atoms",
19
20
  "default-config.js",
21
+ "index.d.ts",
22
+ "tsconfig.json",
20
23
  "report",
21
24
  "plugins",
22
25
  "redux",
@@ -33,6 +36,7 @@
33
36
  "url": "https://github.com/ExodusMovement/exodus-hydra/issues?q=is%3Aissue+is%3Aopen+label%3Abalances"
34
37
  },
35
38
  "dependencies": {
39
+ "@exodus/asset-types": "^0.6.0",
36
40
  "@exodus/atoms": "^10.0.0",
37
41
  "@exodus/basic-utils": "^5.0.0",
38
42
  "@exodus/core-selectors": "^4.0.0",
@@ -69,5 +73,5 @@
69
73
  "access": "public",
70
74
  "provenance": false
71
75
  },
72
- "gitHead": "26c6093fc4c0d572e6575b307f492acab9c978e1"
76
+ "gitHead": "135eb6bf020031cc2fb02da2e088767f3614350d"
73
77
  }
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "include": ["index.d.ts"]
4
+ }