@exodus/bitcoin-plugin 2.3.0 → 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 CHANGED
@@ -3,6 +3,16 @@
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
+
6
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)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-plugin",
3
- "version": "2.3.0",
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.1.3",
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": "fb6c8780644bc8441d7ee105b533c51c8e18c0f0"
60
+ "gitHead": "14f8fec5af3540def38f0537859d49509c58d2e7"
61
61
  }
@@ -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
 
@@ -138,7 +145,7 @@ export const createBitcoinAssetFactory =
138
145
  const getKeyIdentifier = createGetKeyIdentifier({
139
146
  bip44,
140
147
  allowedPurposes,
141
- allowedChainIndices: [0, 1, 2],
148
+ ...(extraChainIndexEnabled && { allowedChainIndices: [0, 1, extraChainIndex] }),
142
149
  assetName: asset.name,
143
150
  })
144
151
 
@@ -184,6 +191,8 @@ export const createBitcoinAssetFactory =
184
191
  insightClient,
185
192
  ordinalsEnabled,
186
193
  ordinalChainIndex,
194
+ extraChainIndex,
195
+ extraChainIndexEnabled,
187
196
  apiUrl,
188
197
  gapLimit,
189
198
  refreshGapLimit,