@exodus/bitcoin-plugin 3.1.0 → 3.2.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 +23 -0
- package/package.json +2 -2
- package/src/create-asset.js +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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
|
+
## [3.2.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@3.2.0...@exodus/bitcoin-plugin@3.2.1) (2026-11-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **bitcoin-plugin:** respect rbfEnabled in api.canBumpTx ([#9405](https://github.com/ExodusMovement/assets/issues/9405)) ([95d2a65](https://github.com/ExodusMovement/assets/commit/95d2a658e0f03628c79b1a2d8a255974c0315a5b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [3.2.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@3.1.0...@exodus/bitcoin-plugin@3.2.0) (2026-11-21)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* expose canBumpTx on asset api for bitcoin and evm ([#9395](https://github.com/ExodusMovement/assets/issues/9395)) ([0b92ba0](https://github.com/ExodusMovement/assets/commit/0b92ba09f807e4ababf16714d2aafb933439c05b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **bitcoin:** bypass request queue for mempool broadcasts ([#9398](https://github.com/ExodusMovement/assets/issues/9398)) ([42bb75d](https://github.com/ExodusMovement/assets/commit/42bb75d6705186eade6c1fc1a0cc4fff694880fc))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## [3.1.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@3.0.4...@exodus/bitcoin-plugin@3.1.0) (2026-11-16)
|
|
7
30
|
|
|
8
31
|
**Note:** Version bump only for package @exodus/bitcoin-plugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-plugin",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Bitcoin plugin for Exodus SDK powered wallets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"type": "git",
|
|
54
54
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "520dfeb7650b556c438a18b86a62f1f163ef574b"
|
|
57
57
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BumpType } from '@exodus/asset-lib'
|
|
1
2
|
import { ASSET_FAMILY } from '@exodus/assets'
|
|
2
3
|
import bip44Constants from '@exodus/bip44-constants/by-ticker.js'
|
|
3
4
|
import {
|
|
@@ -158,6 +159,7 @@ export const createBitcoinAssetFactory =
|
|
|
158
159
|
|
|
159
160
|
const features = {
|
|
160
161
|
accountState: true,
|
|
162
|
+
canBumpTx: true,
|
|
161
163
|
family: ASSET_FAMILY.BITCOIN,
|
|
162
164
|
feeMonitor: true,
|
|
163
165
|
feesApi: true,
|
|
@@ -344,6 +346,11 @@ export const createBitcoinAssetFactory =
|
|
|
344
346
|
const api = {
|
|
345
347
|
addressHasHistory,
|
|
346
348
|
broadcastTx: (...args) => insightClient.broadcastTx(...args),
|
|
349
|
+
canBumpTx: ({ txLog, feeData, ...rest }) => {
|
|
350
|
+
assert(feeData, 'feeData must be provided')
|
|
351
|
+
if (!feeData.rbfEnabled) return { bumpType: BumpType.NONE, errorMessage: 'rbf is disabled' }
|
|
352
|
+
return canBumpTx({ ...rest, feeData, txSet: txLog })
|
|
353
|
+
},
|
|
347
354
|
createAccountState: () => accountStateClass,
|
|
348
355
|
createFeeMonitor,
|
|
349
356
|
createHistoryMonitor,
|
|
@@ -384,6 +391,7 @@ export const createBitcoinAssetFactory =
|
|
|
384
391
|
useBip86,
|
|
385
392
|
useMultipleAddresses: multipleAddresses, // @deprecated use api.features.multipleAddresses instead
|
|
386
393
|
insightClient,
|
|
394
|
+
/** @deprecated use `api.canBumpTx` */
|
|
387
395
|
canBumpTx,
|
|
388
396
|
createBatchTx,
|
|
389
397
|
encodeMultisigContract,
|