@caravan/psbt 1.4.0 → 1.4.2
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/dist/index.d.ts +6 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1201,7 +1201,7 @@ var PsbtV2 = class _PsbtV2 extends PsbtV2Maps {
|
|
|
1201
1201
|
// src/psbtv0/psbt.ts
|
|
1202
1202
|
var import_bitcoin4 = require("@caravan/bitcoin");
|
|
1203
1203
|
var import_bitcoinjs_lib_v63 = require("bitcoinjs-lib-v6");
|
|
1204
|
-
var import_address = require("bitcoinjs-lib-v6/src/address");
|
|
1204
|
+
var import_address = require("bitcoinjs-lib-v6/src/address.js");
|
|
1205
1205
|
|
|
1206
1206
|
// vendor/tiny-secp256k1-asmjs/lib/index.js
|
|
1207
1207
|
var lib_exports = {};
|
|
@@ -93787,8 +93787,8 @@ var convertLegacyOutput = (output) => {
|
|
|
93787
93787
|
address: output.address,
|
|
93788
93788
|
value: new import_bignumber.default(output.amountSats).toNumber(),
|
|
93789
93789
|
bip32Derivation: output.bip32Derivation || getBip32Derivation(output.multisig),
|
|
93790
|
-
witnessScript: output.witnessScript,
|
|
93791
|
-
redeemScript: output.redeemScript
|
|
93790
|
+
witnessScript: output.witnessScript || output.multisig?.witness?.output,
|
|
93791
|
+
redeemScript: output.redeemScript || output.multisig?.redeem?.output
|
|
93792
93792
|
};
|
|
93793
93793
|
};
|
|
93794
93794
|
var getWalletConfigFromInput = (input) => {
|
package/dist/index.mjs
CHANGED
|
@@ -1169,7 +1169,7 @@ import {
|
|
|
1169
1169
|
signatureNoSighashType
|
|
1170
1170
|
} from "@caravan/bitcoin";
|
|
1171
1171
|
import { Psbt as Psbt3, Transaction } from "bitcoinjs-lib-v6";
|
|
1172
|
-
import { toOutputScript } from "bitcoinjs-lib-v6/src/address";
|
|
1172
|
+
import { toOutputScript } from "bitcoinjs-lib-v6/src/address.js";
|
|
1173
1173
|
|
|
1174
1174
|
// vendor/tiny-secp256k1-asmjs/lib/index.js
|
|
1175
1175
|
var lib_exports = {};
|
|
@@ -93765,8 +93765,8 @@ var convertLegacyOutput = (output) => {
|
|
|
93765
93765
|
address: output.address,
|
|
93766
93766
|
value: new BigNumber(output.amountSats).toNumber(),
|
|
93767
93767
|
bip32Derivation: output.bip32Derivation || getBip32Derivation(output.multisig),
|
|
93768
|
-
witnessScript: output.witnessScript,
|
|
93769
|
-
redeemScript: output.redeemScript
|
|
93768
|
+
witnessScript: output.witnessScript || output.multisig?.witness?.output,
|
|
93769
|
+
redeemScript: output.redeemScript || output.multisig?.redeem?.output
|
|
93770
93770
|
};
|
|
93771
93771
|
};
|
|
93772
93772
|
var getWalletConfigFromInput = (input) => {
|