@exodus/bitcoin-api 2.17.1 → 2.18.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,15 @@
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
+ ## [2.18.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.17.1...@exodus/bitcoin-api@2.18.0) (2024-06-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * Remove ordinals wallet BTC from total balance ([#2524](https://github.com/ExodusMovement/assets/issues/2524)) ([3674bb1](https://github.com/ExodusMovement/assets/commit/3674bb1852aa50f8a8195da276a5b106d3ae1606))
12
+
13
+
14
+
6
15
  ## [2.17.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.17.0...@exodus/bitcoin-api@2.17.1) (2024-06-12)
7
16
 
8
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-api",
3
- "version": "2.17.1",
3
+ "version": "2.18.0",
4
4
  "description": "Exodus bitcoin-api",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -67,5 +67,5 @@
67
67
  "type": "git",
68
68
  "url": "git+https://github.com/ExodusMovement/assets.git"
69
69
  },
70
- "gitHead": "7882251e138663159eff38925571acadbac1a00f"
70
+ "gitHead": "b2c0bfc107ce9686d2f9a91386ffe2f43e48ed2d"
71
71
  }
package/src/balances.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import assert from 'minimalistic-assert'
2
- import { getOrdinalsUtxos, getUtxos } from './utxos-utils'
2
+ import { getUtxos } from './utxos-utils'
3
3
 
4
4
  // known issue!! fee data is static here!
5
5
  // Hydra's balances's module does not provide it when calling asset.api.getBalances
@@ -14,10 +14,7 @@ export const getBalancesFactory = ({ feeData, getSpendableBalance, ordinalsEnabl
14
14
  assert(accountState, 'accountState is required')
15
15
  assert(txLog, 'txLog is required')
16
16
  const utxos = getUtxos({ asset, accountState })
17
- const unknownBalance = ordinalsEnabled
18
- ? getOrdinalsUtxos({ asset, accountState }).filter((utxo) => !utxo.inscriptions?.length).value
19
- : undefined
20
- const balance = ordinalsEnabled ? utxos.value.add(unknownBalance) : utxos.value
17
+ const balance = utxos.value
21
18
  const spendableBalance = getSpendableBalance({
22
19
  asset,
23
20
  accountState,