@exodus/bitcoin-plugin 2.3.0 → 2.5.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 +11 -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.5.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.4.0...@exodus/bitcoin-plugin@2.5.0) (2025-11-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* feat: integrate PSBT support and legacy chain index (#6819)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [2.4.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.3.0...@exodus/bitcoin-plugin@2.4.0) (2025-11-03)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* feat: support legacy chain index needed by desktop only (#6630)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [2.3.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.2.2...@exodus/bitcoin-plugin@2.3.0) (2025-10-14)
|
|
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.5.0",
|
|
4
4
|
"description": "Bitcoin plugin for Exodus SDK powered wallets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@exodus/asset-lib": "^5.0.0",
|
|
26
26
|
"@exodus/bip44-constants": "^195.0.0",
|
|
27
|
-
"@exodus/bitcoin-api": "^4.
|
|
27
|
+
"@exodus/bitcoin-api": "^4.5.0",
|
|
28
28
|
"@exodus/bitcoin-lib": "^2.4.2",
|
|
29
29
|
"@exodus/bitcoin-meta": "^2.0.1",
|
|
30
30
|
"@exodus/bitcoinjs": "^2.0.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"type": "git",
|
|
58
58
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "482aa1dda8d9273c4f1a477ffcef2310f1df9884"
|
|
61
61
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -47,6 +47,8 @@ export const createBitcoinAssetFactory =
|
|
|
47
47
|
allowUnconfirmedRbfEnabledUtxos = false,
|
|
48
48
|
ordinalChainIndex = DEFAULT_ORDINAL_CHAIN_INDEX,
|
|
49
49
|
ordinalsEnabled = false,
|
|
50
|
+
extraChainIndex = 2,
|
|
51
|
+
extraChainIndexEnabled = true, // default is true for ordinals
|
|
50
52
|
gapLimit = 10,
|
|
51
53
|
refreshGapLimit = 25,
|
|
52
54
|
feeDataCustomValues,
|
|
@@ -61,6 +63,11 @@ export const createBitcoinAssetFactory =
|
|
|
61
63
|
assert(asset, 'asset is required')
|
|
62
64
|
assert(typeof ordinalChainIndex === 'number', 'ordinalChainIndex must be a number')
|
|
63
65
|
assert(apiUrl, 'apiUrl is required')
|
|
66
|
+
assert(typeof extraChainIndexEnabled === 'boolean', 'extraChainIndexEnabled must be boolean')
|
|
67
|
+
assert(
|
|
68
|
+
typeof extraChainIndex === 'number' && extraChainIndex > 1,
|
|
69
|
+
'extraChainIndex must be a number greater than 1'
|
|
70
|
+
)
|
|
64
71
|
|
|
65
72
|
const multipleAddresses = true // Indicates multiple addresses are supported. This is not configurable as it also affects address derivation.
|
|
66
73
|
|
|
@@ -127,6 +134,7 @@ export const createBitcoinAssetFactory =
|
|
|
127
134
|
utxosDescendingOrder,
|
|
128
135
|
assetClientInterface,
|
|
129
136
|
changeAddressType,
|
|
137
|
+
allowedPurposes,
|
|
130
138
|
})
|
|
131
139
|
|
|
132
140
|
const prepareForSigning = createPrepareForSigning({
|
|
@@ -138,7 +146,7 @@ export const createBitcoinAssetFactory =
|
|
|
138
146
|
const getKeyIdentifier = createGetKeyIdentifier({
|
|
139
147
|
bip44,
|
|
140
148
|
allowedPurposes,
|
|
141
|
-
allowedChainIndices: [0, 1,
|
|
149
|
+
...(extraChainIndexEnabled && { allowedChainIndices: [0, 1, extraChainIndex] }),
|
|
142
150
|
assetName: asset.name,
|
|
143
151
|
})
|
|
144
152
|
|
|
@@ -184,6 +192,8 @@ export const createBitcoinAssetFactory =
|
|
|
184
192
|
insightClient,
|
|
185
193
|
ordinalsEnabled,
|
|
186
194
|
ordinalChainIndex,
|
|
195
|
+
extraChainIndex,
|
|
196
|
+
extraChainIndexEnabled,
|
|
187
197
|
apiUrl,
|
|
188
198
|
gapLimit,
|
|
189
199
|
refreshGapLimit,
|