@exodus/bitcoin-plugin 1.19.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,24 @@
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
+
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)
16
+
17
+
18
+ ### Features
19
+
20
+ * **BTC:** add taprootInputWitnessSize for tx size estimation ([#2737](https://github.com/ExodusMovement/assets/issues/2737)) ([13f727a](https://github.com/ExodusMovement/assets/commit/13f727a836f9fc620628abb6a94a49c1a6774ca5))
21
+
22
+
23
+
6
24
  ## [1.19.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.18.1...@exodus/bitcoin-plugin@1.19.0) (2024-06-20)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-plugin",
3
- "version": "1.19.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.18.4",
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": "b7cc185dce729a04f48833e29c606eeb7b24407b"
67
+ "gitHead": "0dc141fc6a249ac051a5ca591d46cbc81096a4f3"
68
68
  }
@@ -61,6 +61,8 @@ export const createBitcoinAssetFactory =
61
61
  feeDataCustomValues,
62
62
  utxosDescendingOrder = false,
63
63
  omitSupportedPurposes = [],
64
+ defaultOutputType = 'P2WSH',
65
+ changeAddressType = 'P2WPKH',
64
66
  } = Object.create(null),
65
67
  } = Object.create(null)
66
68
  ) => {
@@ -110,7 +112,7 @@ export const createBitcoinAssetFactory =
110
112
  }
111
113
 
112
114
  const getFeeEstimator = getFeeEstimatorFactory({
113
- defaultOutputType: 'P2WSH',
115
+ defaultOutputType,
114
116
  addressApi: address,
115
117
  })
116
118
 
@@ -118,6 +120,7 @@ export const createBitcoinAssetFactory =
118
120
  getFeeEstimator,
119
121
  allowUnconfirmedRbfEnabledUtxos,
120
122
  utxosDescendingOrder,
123
+ changeAddressType,
121
124
  })
122
125
 
123
126
  const feeData = bitcoinFeeDataFactory({
@@ -142,6 +145,7 @@ export const createBitcoinAssetFactory =
142
145
  ordinalsEnabled,
143
146
  utxosDescendingOrder,
144
147
  assetClientInterface,
148
+ changeAddressType,
145
149
  })
146
150
 
147
151
  const baseSendTx = createAndBroadcastTXFactory({
@@ -150,6 +154,7 @@ export const createBitcoinAssetFactory =
150
154
  ordinalsEnabled,
151
155
  utxosDescendingOrder,
152
156
  assetClientInterface,
157
+ changeAddressType,
153
158
  })
154
159
  const inscriptionsService = brc20Enabled
155
160
  ? inscriptionsServiceFactory({