btc-wallet 0.5.95-beta → 0.5.96-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/core/btcUtils.d.ts +4 -2
- package/dist/index.js +11 -2
- package/dist/index.js.map +3 -3
- package/esm/index.js +11 -2
- package/esm/index.js.map +3 -3
- package/package.json +1 -1
package/esm/index.js
CHANGED
|
@@ -3756,6 +3756,7 @@ function getPredictedGasAmount(_0) {
|
|
|
3756
3756
|
import * as bitcoin from "bitcoinjs-lib";
|
|
3757
3757
|
import coinselect from "coinselect";
|
|
3758
3758
|
import * as ecc from "@bitcoinerlab/secp256k1";
|
|
3759
|
+
import bs582 from "bs58";
|
|
3759
3760
|
bitcoin.initEccLib(ecc);
|
|
3760
3761
|
var NEAR_STORAGE_DEPOSIT_AMOUNT = "1250000000000000000000";
|
|
3761
3762
|
var NBTC_STORAGE_DEPOSIT_AMOUNT = 800;
|
|
@@ -3905,7 +3906,14 @@ function signMessage(message) {
|
|
|
3905
3906
|
const { signMessage: signMessage2, getPublicKey } = getBtcProvider();
|
|
3906
3907
|
const publicKey = yield getPublicKey();
|
|
3907
3908
|
const signature = yield signMessage2(message);
|
|
3908
|
-
|
|
3909
|
+
const signatureBase58 = bs582.encode(Buffer.from(signature, "base64"));
|
|
3910
|
+
const publicKeyBase58 = bs582.encode(Buffer.from(publicKey, "hex"));
|
|
3911
|
+
return {
|
|
3912
|
+
signature,
|
|
3913
|
+
publicKey,
|
|
3914
|
+
signatureBase58,
|
|
3915
|
+
publicKeyBase58
|
|
3916
|
+
};
|
|
3909
3917
|
});
|
|
3910
3918
|
}
|
|
3911
3919
|
function estimateDepositAmount(amount, option) {
|
|
@@ -5354,7 +5362,7 @@ function getGroup(state) {
|
|
|
5354
5362
|
|
|
5355
5363
|
// src/index.ts
|
|
5356
5364
|
var getVersion = () => {
|
|
5357
|
-
return "0.5.
|
|
5365
|
+
return "0.5.96-beta";
|
|
5358
5366
|
};
|
|
5359
5367
|
if (typeof window !== "undefined") {
|
|
5360
5368
|
window.__BTC_WALLET_VERSION = getVersion();
|
|
@@ -5377,6 +5385,7 @@ export {
|
|
|
5377
5385
|
btcRpcUrls,
|
|
5378
5386
|
calculateGasFee,
|
|
5379
5387
|
calculateGasLimit,
|
|
5388
|
+
calculateGasStrategy,
|
|
5380
5389
|
calculateWithdraw,
|
|
5381
5390
|
checkBridgeTransactionStatus,
|
|
5382
5391
|
checkGasTokenDebt,
|