@exodus/bitcoin-plugin 1.20.0 → 1.21.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,15 @@
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
+ ## [1.21.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.20.0...@exodus/bitcoin-plugin@1.21.0) (2024-07-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * **BTC:** add changeAddressType to createAsset config ([#2772](https://github.com/ExodusMovement/assets/issues/2772)) ([d8e38dd](https://github.com/ExodusMovement/assets/commit/d8e38dddfbe59b3e8ff9fc2432049bb512a91c22))
12
+
13
+
14
+
6
15
  ## [1.20.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.19.0...@exodus/bitcoin-plugin@1.20.0) (2024-07-05)
7
16
 
8
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-plugin",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "Exodus bitcoin-plugin",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -24,7 +24,7 @@
24
24
  "@exodus/basic-utils": "^2.1.0",
25
25
  "@exodus/bip32": "^1.1.2",
26
26
  "@exodus/bip44-constants": "^195.0.0",
27
- "@exodus/bitcoin-api": "^2.19.0",
27
+ "@exodus/bitcoin-api": "^2.20.0",
28
28
  "@exodus/bitcoin-lib": "^2.4.0",
29
29
  "@exodus/bitcoin-meta": "^1.0.2",
30
30
  "@exodus/bitcoinjs-lib": "^6.1.5-exodus.2",
@@ -64,5 +64,5 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/ExodusMovement/assets.git"
66
66
  },
67
- "gitHead": "9c3024f69fbda1069a437fb19c43e6f341185c6f"
67
+ "gitHead": "0dc141fc6a249ac051a5ca591d46cbc81096a4f3"
68
68
  }
@@ -62,6 +62,7 @@ export const createBitcoinAssetFactory =
62
62
  utxosDescendingOrder = false,
63
63
  omitSupportedPurposes = [],
64
64
  defaultOutputType = 'P2WSH',
65
+ changeAddressType = 'P2WPKH',
65
66
  } = Object.create(null),
66
67
  } = Object.create(null)
67
68
  ) => {
@@ -119,6 +120,7 @@ export const createBitcoinAssetFactory =
119
120
  getFeeEstimator,
120
121
  allowUnconfirmedRbfEnabledUtxos,
121
122
  utxosDescendingOrder,
123
+ changeAddressType,
122
124
  })
123
125
 
124
126
  const feeData = bitcoinFeeDataFactory({
@@ -143,6 +145,7 @@ export const createBitcoinAssetFactory =
143
145
  ordinalsEnabled,
144
146
  utxosDescendingOrder,
145
147
  assetClientInterface,
148
+ changeAddressType,
146
149
  })
147
150
 
148
151
  const baseSendTx = createAndBroadcastTXFactory({
@@ -151,6 +154,7 @@ export const createBitcoinAssetFactory =
151
154
  ordinalsEnabled,
152
155
  utxosDescendingOrder,
153
156
  assetClientInterface,
157
+ changeAddressType,
154
158
  })
155
159
  const inscriptionsService = brc20Enabled
156
160
  ? inscriptionsServiceFactory({