@exodus/bitcoin-api 2.22.0 → 2.22.1
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 +10 -0
- package/package.json +3 -3
- package/src/tx-send/batch-tx.js +8 -11
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.22.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.22.0...@exodus/bitcoin-api@2.22.1) (2024-08-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* pass allowUnconfirmed option through in batch-tx ([#3177](https://github.com/ExodusMovement/assets/issues/3177)) ([d8e073b](https://github.com/ExodusMovement/assets/commit/d8e073b4c66c79dae5808877f5c4d4cc98d93444))
|
|
12
|
+
* update exodus/timer ([#3134](https://github.com/ExodusMovement/assets/issues/3134)) ([e977be5](https://github.com/ExodusMovement/assets/commit/e977be5280c214c1b814409d9461ce6628bb19be))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [2.22.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.21.4...@exodus/bitcoin-api@2.22.0) (2024-08-08)
|
|
7
17
|
|
|
8
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.1",
|
|
4
4
|
"description": "Exodus bitcoin-api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@exodus/key-identifier": "^1.1.1",
|
|
31
31
|
"@exodus/models": "^11.0.0",
|
|
32
32
|
"@exodus/simple-retry": "^0.0.6",
|
|
33
|
-
"@exodus/timer": "^1.
|
|
33
|
+
"@exodus/timer": "^1.1.1",
|
|
34
34
|
"bech32": "^1.1.3",
|
|
35
35
|
"bip32-path": "^0.4.2",
|
|
36
36
|
"bn.js": "^4.12.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"type": "git",
|
|
67
67
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "ceb41116fe6afaa75965a0ce9920e379097f2553"
|
|
70
70
|
}
|
package/src/tx-send/batch-tx.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
1
|
+
// eslint-disable-next-line @exodus/import/no-extraneous-dependencies
|
|
2
2
|
import BIP32 from '@exodus/bip32'
|
|
3
3
|
import { Psbt } from '@exodus/bitcoinjs-lib'
|
|
4
4
|
import BipPath from 'bip32-path'
|
|
@@ -19,13 +19,12 @@ export const getCreateBatchTransaction = ({
|
|
|
19
19
|
getFeeEstimator,
|
|
20
20
|
assetClientInterface,
|
|
21
21
|
changeAddressType,
|
|
22
|
+
allowUnconfirmedRbfEnabledUtxos,
|
|
22
23
|
}) => {
|
|
23
24
|
assert(assetClientInterface, `assetClientInterface must be supplied in sendTx`)
|
|
24
25
|
|
|
25
|
-
return async ({
|
|
26
|
-
const
|
|
27
|
-
const asset = stuff[assetName]
|
|
28
|
-
|
|
26
|
+
return async ({ asset, walletAccount, recipients, options = {} }) => {
|
|
27
|
+
const assetName = asset.name
|
|
29
28
|
const {
|
|
30
29
|
feeData = await assetClientInterface.getFeeConfig({ assetName }),
|
|
31
30
|
taprootInputWitnessSize,
|
|
@@ -57,7 +56,7 @@ export const getCreateBatchTransaction = ({
|
|
|
57
56
|
unconfirmedTxAncestor,
|
|
58
57
|
taprootInputWitnessSize,
|
|
59
58
|
changeAddressType,
|
|
60
|
-
allowUnconfirmedRbfEnabledUtxos
|
|
59
|
+
allowUnconfirmedRbfEnabledUtxos,
|
|
61
60
|
})
|
|
62
61
|
|
|
63
62
|
if (!selectedUtxos) throw new Error('Not enough funds.')
|
|
@@ -76,12 +75,10 @@ export const getCreateBatchTransaction = ({
|
|
|
76
75
|
const addressOpts = {
|
|
77
76
|
walletAccount,
|
|
78
77
|
assetName,
|
|
79
|
-
chainIndex
|
|
80
|
-
addressIndex
|
|
78
|
+
chainIndex,
|
|
79
|
+
addressIndex,
|
|
80
|
+
purpose: utxo.address.meta.purpose ?? 86,
|
|
81
81
|
}
|
|
82
|
-
addressOpts.chainIndex = chainIndex
|
|
83
|
-
addressOpts.addressIndex = addressIndex
|
|
84
|
-
addressOpts.purpose = utxo.address.meta.purpose
|
|
85
82
|
|
|
86
83
|
const [address, xpub] = await Promise.all([
|
|
87
84
|
assetClientInterface.getAddress(addressOpts),
|