@exodus/bitcoin-api 4.0.1 → 4.0.3
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/tx-send/index.js +10 -10
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
|
+
## [4.0.3](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@4.0.2...@exodus/bitcoin-api@4.0.3) (2025-09-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: update bip32 to ^4.1.0 (#6406)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [4.0.2](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@4.0.1...@exodus/bitcoin-api@4.0.2) (2025-09-01)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* fix: use buffers to represent digibyte tx values (#6375)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [4.0.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@4.0.0...@exodus/bitcoin-api@4.0.1) (2025-08-28)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @exodus/bitcoin-api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Bitcoin transaction and fee monitors, RPC with the blockchain node, other networking code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@exodus/asset-lib": "^5.0.0",
|
|
24
24
|
"@exodus/basic-utils": "^3.0.1",
|
|
25
|
-
"@exodus/bip32": "^
|
|
25
|
+
"@exodus/bip32": "^4.1.0",
|
|
26
26
|
"@exodus/bip322-js": "^2.1.0",
|
|
27
27
|
"@exodus/bip44-constants": "^195.0.0",
|
|
28
28
|
"@exodus/bitcoin-lib": "^2.4.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"type": "git",
|
|
60
60
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "c5c35fe2145e8bf99e365a989a14134cd87b7ac0"
|
|
63
63
|
}
|
package/src/tx-send/index.js
CHANGED
|
@@ -35,6 +35,8 @@ const ASSETS_SUPPORTED_BIP_174 = new Set([
|
|
|
35
35
|
'vertcoin', // is not available on mobile!
|
|
36
36
|
])
|
|
37
37
|
|
|
38
|
+
const ASSETS_USING_BUFFER_VALUES = new Set(['dogecoin', 'digibyte'])
|
|
39
|
+
|
|
38
40
|
export async function getNonWitnessTxs(asset, utxos, insightClient) {
|
|
39
41
|
const rawTxs = []
|
|
40
42
|
|
|
@@ -704,12 +706,11 @@ export const createAndBroadcastTXFactory =
|
|
|
704
706
|
}
|
|
705
707
|
|
|
706
708
|
export function createInputs(assetName, ...rest) {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
return dogecoinCreateInputs(...rest)
|
|
710
|
-
default:
|
|
711
|
-
return defaultCreateInputs(...rest)
|
|
709
|
+
if (ASSETS_USING_BUFFER_VALUES.has(assetName)) {
|
|
710
|
+
return dogecoinCreateInputs(...rest)
|
|
712
711
|
}
|
|
712
|
+
|
|
713
|
+
return defaultCreateInputs(...rest)
|
|
713
714
|
}
|
|
714
715
|
|
|
715
716
|
function defaultCreateInputs(utxos, rbfEnabled) {
|
|
@@ -726,12 +727,11 @@ function defaultCreateInputs(utxos, rbfEnabled) {
|
|
|
726
727
|
}
|
|
727
728
|
|
|
728
729
|
export function createOutput(assetName, ...rest) {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
return dogecoinCreateOutput(...rest)
|
|
732
|
-
default:
|
|
733
|
-
return defaultCreateOutput(...rest)
|
|
730
|
+
if (ASSETS_USING_BUFFER_VALUES.has(assetName)) {
|
|
731
|
+
return dogecoinCreateOutput(...rest)
|
|
734
732
|
}
|
|
733
|
+
|
|
734
|
+
return defaultCreateOutput(...rest)
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
function defaultCreateOutput(address, sendAmount) {
|