@exodus/bitcoin-plugin 1.21.1 → 1.22.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 +9 -0
- package/package.json +4 -4
- package/src/create-asset.js +10 -0
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.22.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.21.1...@exodus/bitcoin-plugin@1.22.0) (2024-07-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **BTC:** create batch tx from array of recipients ([#2881](https://github.com/ExodusMovement/assets/issues/2881)) ([440d5d5](https://github.com/ExodusMovement/assets/commit/440d5d5879c902ef10ff7644c92a5092bb868872))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [1.21.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.21.0...@exodus/bitcoin-plugin@1.21.1) (2024-07-15)
|
|
7
16
|
|
|
8
17
|
**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": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"description": "Exodus bitcoin-plugin",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@exodus/asset-lib": "^4.1.0",
|
|
24
24
|
"@exodus/basic-utils": "^2.1.0",
|
|
25
|
-
"@exodus/bip32": "^
|
|
25
|
+
"@exodus/bip32": "^3.1.0",
|
|
26
26
|
"@exodus/bip44-constants": "^195.0.0",
|
|
27
|
-
"@exodus/bitcoin-api": "^2.
|
|
27
|
+
"@exodus/bitcoin-api": "^2.21.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": "
|
|
67
|
+
"gitHead": "ba7439e1b8ae182a2a95ffd0ea09b8bc3330f2f6"
|
|
68
68
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -23,8 +23,10 @@ import {
|
|
|
23
23
|
signHardwareFactory,
|
|
24
24
|
signMessage,
|
|
25
25
|
getPrepareSendTransaction,
|
|
26
|
+
getCreateBatchTransaction,
|
|
26
27
|
createEncodeMultisigContract,
|
|
27
28
|
createPrepareForSigning,
|
|
29
|
+
createPsbtToUnsignedTx,
|
|
28
30
|
} from '@exodus/bitcoin-api'
|
|
29
31
|
import { bitcoinFeeDataFactory } from './fee-data'
|
|
30
32
|
import BitcoinFeeMonitor from './fee-monitor'
|
|
@@ -342,7 +344,13 @@ export const createBitcoinAssetFactory =
|
|
|
342
344
|
.filter(txLogFilter)
|
|
343
345
|
}
|
|
344
346
|
|
|
347
|
+
const createBatchTx = getCreateBatchTransaction({
|
|
348
|
+
getFeeEstimator,
|
|
349
|
+
assetClientInterface,
|
|
350
|
+
changeAddressType,
|
|
351
|
+
})
|
|
345
352
|
const encodeMultisigContract = createEncodeMultisigContract({ network: coinInfo.toBitcoinJS() })
|
|
353
|
+
const psbtToUnsignedTx = createPsbtToUnsignedTx({ assetClientInterface, assetName: asset.name })
|
|
346
354
|
|
|
347
355
|
const api = {
|
|
348
356
|
getActivityTxs,
|
|
@@ -390,7 +398,9 @@ export const createBitcoinAssetFactory =
|
|
|
390
398
|
getSpendableBalance,
|
|
391
399
|
inscriptions: inscriptionsService,
|
|
392
400
|
prepareSendTx: baseGetPrepareSendTx,
|
|
401
|
+
createBatchTx,
|
|
393
402
|
encodeMultisigContract,
|
|
403
|
+
psbtToUnsignedTx,
|
|
394
404
|
}
|
|
395
405
|
return overrideCallback({ asset: fullAsset })
|
|
396
406
|
}
|