@exodus/bitcoin-plugin 2.11.5 → 2.12.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 +20 -0
- package/package.json +3 -3
- package/src/create-asset.js +5 -0
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.12.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.11.6...@exodus/bitcoin-plugin@2.12.0) (2026-06-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* feat: add optional getHistoricalBalance to asset api (#8247)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [2.11.6](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.11.5...@exodus/bitcoin-plugin@2.11.6) (2026-06-11)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* fix: revert btc mempool ws url to assets-gateway (#8234)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [2.11.5](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.11.4...@exodus/bitcoin-plugin@2.11.5) (2026-06-10)
|
|
7
27
|
|
|
8
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "Bitcoin plugin for Exodus SDK powered wallets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@exodus/asset-lib": "^5.0.0",
|
|
26
26
|
"@exodus/assets": "^11.6.0",
|
|
27
27
|
"@exodus/bip44-constants": "^195.0.0",
|
|
28
|
-
"@exodus/bitcoin-api": "^4.
|
|
28
|
+
"@exodus/bitcoin-api": "^4.16.0",
|
|
29
29
|
"@exodus/bitcoin-lib": "^2.4.2",
|
|
30
30
|
"@exodus/bitcoin-meta": "^2.0.1",
|
|
31
31
|
"@exodus/bitcoinjs": "^2.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"type": "git",
|
|
60
60
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "d57432d4ef29f2dc1bc269d501fd29d9a0063f1c"
|
|
63
63
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
getFeeAsyncFactory,
|
|
18
18
|
getFeeEstimatorFactory,
|
|
19
19
|
GetFeeResolver,
|
|
20
|
+
getHistoricalBalanceFactory,
|
|
20
21
|
InsightAPIClient,
|
|
21
22
|
isValidInscription,
|
|
22
23
|
MempoolRestClient,
|
|
@@ -167,6 +168,7 @@ export const createBitcoinAssetFactory =
|
|
|
167
168
|
family: ASSET_FAMILY.BITCOIN,
|
|
168
169
|
feeMonitor: true,
|
|
169
170
|
feesApi: true,
|
|
171
|
+
historicalBalance: ['bitcoin', 'bitcoinregtest', 'bitcointestnet'].includes(asset.name),
|
|
170
172
|
moveFunds: true,
|
|
171
173
|
multipleAddresses,
|
|
172
174
|
nfts: ordinalsEnabled,
|
|
@@ -197,6 +199,8 @@ export const createBitcoinAssetFactory =
|
|
|
197
199
|
|
|
198
200
|
const getBalances = getBalancesFactory({ feeData, allowUnconfirmedRbfEnabledUtxos })
|
|
199
201
|
|
|
202
|
+
const getHistoricalBalance = getHistoricalBalanceFactory({ assetClientInterface })
|
|
203
|
+
|
|
200
204
|
const createTx = createTxFactory({
|
|
201
205
|
getFeeEstimator,
|
|
202
206
|
allowUnconfirmedRbfEnabledUtxos,
|
|
@@ -356,6 +360,7 @@ export const createBitcoinAssetFactory =
|
|
|
356
360
|
getActivityTxs,
|
|
357
361
|
getBalanceForAddress,
|
|
358
362
|
getBalances,
|
|
363
|
+
...(features.historicalBalance && { getHistoricalBalance }),
|
|
359
364
|
getDefaultAddressPath,
|
|
360
365
|
getFee,
|
|
361
366
|
getFeeAsync,
|
package/src/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export * from './create-asset.js' // for bitcoinregtest and bitcointestnet
|
|
|
6
6
|
|
|
7
7
|
const apiUrl = 'https://bitcoin.a.exodus.io/insight/'
|
|
8
8
|
const mempoolApiUrl = 'https://assets-gateway-clarity-api.a.exodus.io/assets/bitcoinmempool/'
|
|
9
|
-
const mempoolWsUrl = 'wss://bitcoin-
|
|
9
|
+
const mempoolWsUrl = 'wss://assets-gateway-clarity-bitcoin-mempool-ws-proxy.a.exodus.io/ws'
|
|
10
10
|
const clarityApiUrl = 'https://assets-gateway-clarity-api.a.exodus.io/assets/bitcoin/insight/'
|
|
11
11
|
export const createAsset = createBitcoinAssetFactory({
|
|
12
12
|
asset,
|