@exodus/bitcoin-plugin 2.2.2 → 2.4.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.4.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.3.0...@exodus/bitcoin-plugin@2.4.0) (2025-11-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* feat: support legacy chain index needed by desktop only (#6630)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [2.3.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.2.2...@exodus/bitcoin-plugin@2.3.0) (2025-10-14)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* feat: add selfSend feature flag (#6621)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [2.2.2](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.2.1...@exodus/bitcoin-plugin@2.2.2) (2025-10-14)
|
|
7
27
|
|
|
8
28
|
**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": "2.
|
|
3
|
+
"version": "2.4.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.2.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": "14f8fec5af3540def38f0537859d49509c58d2e7"
|
|
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
|
|
|
@@ -94,6 +101,7 @@ export const createBitcoinAssetFactory =
|
|
|
94
101
|
multipleAddresses,
|
|
95
102
|
nfts: ordinalsEnabled,
|
|
96
103
|
isTestnet,
|
|
104
|
+
selfSend: true,
|
|
97
105
|
signWithSigner: true,
|
|
98
106
|
signMessageWithSigner: true,
|
|
99
107
|
supportsCustomFees: true,
|
|
@@ -137,7 +145,7 @@ export const createBitcoinAssetFactory =
|
|
|
137
145
|
const getKeyIdentifier = createGetKeyIdentifier({
|
|
138
146
|
bip44,
|
|
139
147
|
allowedPurposes,
|
|
140
|
-
allowedChainIndices: [0, 1,
|
|
148
|
+
...(extraChainIndexEnabled && { allowedChainIndices: [0, 1, extraChainIndex] }),
|
|
141
149
|
assetName: asset.name,
|
|
142
150
|
})
|
|
143
151
|
|
|
@@ -183,6 +191,8 @@ export const createBitcoinAssetFactory =
|
|
|
183
191
|
insightClient,
|
|
184
192
|
ordinalsEnabled,
|
|
185
193
|
ordinalChainIndex,
|
|
194
|
+
extraChainIndex,
|
|
195
|
+
extraChainIndexEnabled,
|
|
186
196
|
apiUrl,
|
|
187
197
|
gapLimit,
|
|
188
198
|
refreshGapLimit,
|