btc-wallet 0.5.29-beta → 0.5.31-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 +7 -8
- package/dist/index.js.map +3 -3
- package/esm/index.js +4 -5
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/esm/index.js
CHANGED
@@ -3769,13 +3769,12 @@ function calculateWithdraw(_0) {
|
|
3769
3769
|
}
|
3770
3770
|
|
3771
3771
|
// src/core/btcUtils.ts
|
3772
|
-
import bitcoin from "bitcoinjs-lib";
|
3772
|
+
import * as bitcoin from "bitcoinjs-lib";
|
3773
3773
|
import coinselect2 from "coinselect";
|
3774
3774
|
import * as ecc from "@bitcoinerlab/secp256k1";
|
3775
3775
|
bitcoin.initEccLib(ecc);
|
3776
3776
|
var NEAR_STORAGE_DEPOSIT_AMOUNT = "1250000000000000000000";
|
3777
3777
|
var NBTC_STORAGE_DEPOSIT_AMOUNT = "3000";
|
3778
|
-
var GAS_LIMIT = "50000000000000";
|
3779
3778
|
var NEW_ACCOUNT_MIN_DEPOSIT_AMOUNT = "1000";
|
3780
3779
|
function getBtcProvider() {
|
3781
3780
|
if (typeof window === "undefined" || !window.btcContext) {
|
@@ -3999,12 +3998,12 @@ function executeBTCDepositAndAction(_0) {
|
|
3999
3998
|
const debtAction = yield checkGasTokenDebt(csna, env, false);
|
4000
3999
|
if (debtAction) {
|
4001
4000
|
newActions.push(__spreadProps(__spreadValues({}, debtAction), {
|
4002
|
-
gas:
|
4001
|
+
gas: "30000000000000"
|
4003
4002
|
}));
|
4004
4003
|
}
|
4005
4004
|
if (action) {
|
4006
4005
|
newActions.push(__spreadProps(__spreadValues({}, action), {
|
4007
|
-
gas:
|
4006
|
+
gas: "100000000000000"
|
4008
4007
|
}));
|
4009
4008
|
}
|
4010
4009
|
const storageDepositMsg = {};
|
@@ -4839,7 +4838,7 @@ function getGroup(state) {
|
|
4839
4838
|
|
4840
4839
|
// src/index.ts
|
4841
4840
|
var getVersion = () => {
|
4842
|
-
return "0.5.
|
4841
|
+
return "0.5.31-beta";
|
4843
4842
|
};
|
4844
4843
|
if (typeof window !== "undefined") {
|
4845
4844
|
window.__BTC_WALLET_VERSION = getVersion();
|