btc-wallet 0.5.29-beta → 0.5.30-beta
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.js +5 -5
- package/dist/index.js.map +3 -3
- package/esm/index.js +2 -2
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3838,10 +3838,10 @@ function calculateWithdraw(_0) {
|
|
3838
3838
|
}
|
3839
3839
|
|
3840
3840
|
// src/core/btcUtils.ts
|
3841
|
-
var
|
3841
|
+
var bitcoin = __toESM(require("bitcoinjs-lib"), 1);
|
3842
3842
|
var import_coinselect2 = __toESM(require("coinselect"), 1);
|
3843
3843
|
var ecc = __toESM(require("@bitcoinerlab/secp256k1"), 1);
|
3844
|
-
|
3844
|
+
bitcoin.initEccLib(ecc);
|
3845
3845
|
var NEAR_STORAGE_DEPOSIT_AMOUNT = "1250000000000000000000";
|
3846
3846
|
var NBTC_STORAGE_DEPOSIT_AMOUNT = "3000";
|
3847
3847
|
var GAS_LIMIT = "50000000000000";
|
@@ -4203,8 +4203,8 @@ function getWithdrawTransaction(_0) {
|
|
4203
4203
|
`(${inputs.map((item) => item.value).join(" + ")}) - (${outputs.map((item) => item.value).join(" + ")}) = ${gasFee}`
|
4204
4204
|
);
|
4205
4205
|
const network = yield getNetwork();
|
4206
|
-
const btcNetwork = network === "mainnet" ?
|
4207
|
-
const psbt = new
|
4206
|
+
const btcNetwork = network === "mainnet" ? bitcoin.networks.bitcoin : bitcoin.networks.testnet;
|
4207
|
+
const psbt = new bitcoin.Psbt({ network: btcNetwork });
|
4208
4208
|
const btcRpcUrl = yield getBtcRpcUrl();
|
4209
4209
|
yield Promise.all(
|
4210
4210
|
inputs.map((input) => __async(this, null, function* () {
|
@@ -4906,7 +4906,7 @@ function getGroup(state) {
|
|
4906
4906
|
|
4907
4907
|
// src/index.ts
|
4908
4908
|
var getVersion = () => {
|
4909
|
-
return "0.5.
|
4909
|
+
return "0.5.30-beta";
|
4910
4910
|
};
|
4911
4911
|
if (typeof window !== "undefined") {
|
4912
4912
|
window.__BTC_WALLET_VERSION = getVersion();
|