@exodus/bitcoin-api 2.5.1 → 2.5.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "Exodus bitcoin-api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@scure/btc-signer": "^1.1.0",
|
|
44
44
|
"jest-when": "^3.5.1"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "a75b2bb02cea9bab6146a9a704ef2a191b2d3b49"
|
|
47
47
|
}
|
|
@@ -24,6 +24,7 @@ export class GetFeeResolver {
|
|
|
24
24
|
isSendAll,
|
|
25
25
|
nft, // sending one nft
|
|
26
26
|
brc20, // sending multiple inscriptions ids (as in sending multiple transfer ordinals)
|
|
27
|
+
receiveAddress,
|
|
27
28
|
}) => {
|
|
28
29
|
if (nft) {
|
|
29
30
|
assert(!amount, 'amount must not be provided when nft is provided!!!')
|
|
@@ -43,6 +44,7 @@ export class GetFeeResolver {
|
|
|
43
44
|
accountState,
|
|
44
45
|
txSet,
|
|
45
46
|
feeData,
|
|
47
|
+
receiveAddress,
|
|
46
48
|
amount: brc20 ? undefined : amount,
|
|
47
49
|
customFee,
|
|
48
50
|
isSendAll,
|
|
@@ -78,6 +80,7 @@ export class GetFeeResolver {
|
|
|
78
80
|
accountState,
|
|
79
81
|
txSet,
|
|
80
82
|
feeData,
|
|
83
|
+
receiveAddress,
|
|
81
84
|
amount,
|
|
82
85
|
customFee,
|
|
83
86
|
isSendAll,
|
|
@@ -105,6 +108,7 @@ export class GetFeeResolver {
|
|
|
105
108
|
replaceableTxs,
|
|
106
109
|
amount,
|
|
107
110
|
feeRate: feePerKB,
|
|
111
|
+
receiveAddress,
|
|
108
112
|
inscriptionIds,
|
|
109
113
|
isSendAll: isSendAll,
|
|
110
114
|
getFeeEstimator: this.#getFeeEstimator,
|
|
@@ -111,7 +111,7 @@ export const signTxFactory = ({ assetName, resolvePurpose, keys, coinInfo, netwo
|
|
|
111
111
|
const publicKey = secp256k1.publicKeyCreate(key.privateKey, true)
|
|
112
112
|
return { key, purpose, publicKey }
|
|
113
113
|
}
|
|
114
|
-
const path = addressPathsMap
|
|
114
|
+
const path = getOwnProperty(addressPathsMap, address, 'string')
|
|
115
115
|
assert(hdkeys, 'hdkeys must be provided')
|
|
116
116
|
assert(purpose, `purpose for address ${address} could not be resolved`)
|
|
117
117
|
const hdkey = hdkeys[purpose]
|