@exodus/bitcoin-plugin 1.35.0 → 2.0.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 +22 -0
- package/package.json +3 -3
- package/src/create-asset.js +3 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.0.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.35.1...@exodus/bitcoin-plugin@2.0.0) (2025-07-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* remove deprecated asset.getSpendableBalance and asset.getAvailableBalance (#6013)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
* refactor!: remove deprecated asset.getSpendableBalance and asset.getAvailableBalance (#6013)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [1.35.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.35.0...@exodus/bitcoin-plugin@1.35.1) (2025-07-04)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* fix: use fee data from balances (#6018)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [1.35.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.34.0...@exodus/bitcoin-plugin@1.35.0) (2025-07-03)
|
|
7
29
|
|
|
8
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Bitcoin plugin for Exodus SDK powered wallets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@exodus/asset-lib": "^5.0.0",
|
|
25
25
|
"@exodus/bip44-constants": "^195.0.0",
|
|
26
|
-
"@exodus/bitcoin-api": "^
|
|
26
|
+
"@exodus/bitcoin-api": "^3.0.0",
|
|
27
27
|
"@exodus/bitcoin-lib": "^2.4.2",
|
|
28
28
|
"@exodus/bitcoin-meta": "^2.0.1",
|
|
29
29
|
"@exodus/bitcoinjs": "^1.1.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"type": "git",
|
|
57
57
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "00006973d63f0ea79d60c2f2023805e5b412c321"
|
|
60
60
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -97,6 +97,7 @@ export const createBitcoinAssetFactory =
|
|
|
97
97
|
signWithSigner: true,
|
|
98
98
|
signMessageWithSigner: true,
|
|
99
99
|
supportsCustomFees: true,
|
|
100
|
+
balancesRequireFeeData: true,
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
const getFeeEstimator = getFeeEstimatorFactory({
|
|
@@ -104,7 +105,7 @@ export const createBitcoinAssetFactory =
|
|
|
104
105
|
addressApi: address,
|
|
105
106
|
})
|
|
106
107
|
|
|
107
|
-
const { getFee,
|
|
108
|
+
const { getFee, canBumpTx } = new GetFeeResolver({
|
|
108
109
|
getFeeEstimator,
|
|
109
110
|
allowUnconfirmedRbfEnabledUtxos,
|
|
110
111
|
utxosDescendingOrder,
|
|
@@ -116,11 +117,7 @@ export const createBitcoinAssetFactory =
|
|
|
116
117
|
overrideDefaults: feeDataCustomValues,
|
|
117
118
|
})
|
|
118
119
|
|
|
119
|
-
const getBalances = getBalancesFactory({
|
|
120
|
-
feeData,
|
|
121
|
-
getSpendableBalance,
|
|
122
|
-
ordinalsEnabled,
|
|
123
|
-
})
|
|
120
|
+
const getBalances = getBalancesFactory({ feeData, allowUnconfirmedRbfEnabledUtxos })
|
|
124
121
|
|
|
125
122
|
const baseGetPrepareSendTx = getPrepareSendTransaction({
|
|
126
123
|
getFeeEstimator,
|
|
@@ -295,8 +292,6 @@ export const createBitcoinAssetFactory =
|
|
|
295
292
|
useMultipleAddresses: multipleAddresses, // @deprecated use api.features.multipleAddresses instead
|
|
296
293
|
insightClient,
|
|
297
294
|
canBumpTx,
|
|
298
|
-
getAvailableBalance,
|
|
299
|
-
getSpendableBalance,
|
|
300
295
|
prepareSendTx: baseGetPrepareSendTx,
|
|
301
296
|
createBatchTx,
|
|
302
297
|
encodeMultisigContract,
|