btc-wallet 0.3.33 → 0.4.0-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 -3
- package/dist/index.js.map +2 -2
- package/esm/index.js +7 -3
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/esm/index.js
CHANGED
@@ -3537,7 +3537,8 @@ function checkSatoshiWhitelist(btcAccountId, env = "mainnet") {
|
|
3537
3537
|
if (!isWhitelisted) {
|
3538
3538
|
Dialog.alert({
|
3539
3539
|
title: "Account is not whitelisted",
|
3540
|
-
message: `
|
3540
|
+
message: `We're live on beta mainnet! Join the whitelist to on-ramp your BTC in just 24 hours.
|
3541
|
+
Sign up now: <a style="color: #ff7a00; text-decoration: underline;" href="https://forms.gle/rrTP1ZbGU5mRZpHdA" target="_blank">https://forms.gle/rrTP1ZbGU5mRZpHdA</a>`,
|
3541
3542
|
dangerouslyUseHTML: true,
|
3542
3543
|
closable: false
|
3543
3544
|
});
|
@@ -3904,9 +3905,12 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
3904
3905
|
account_id: accountId,
|
3905
3906
|
public_key: publicKey,
|
3906
3907
|
finality: "final"
|
3908
|
+
}).catch((e) => {
|
3909
|
+
console.log("view_access_key error:", e);
|
3910
|
+
return void 0;
|
3907
3911
|
});
|
3908
3912
|
const accessKey = __spreadProps(__spreadValues({}, rawAccessKey), {
|
3909
|
-
nonce: BigInt(rawAccessKey.nonce || 0)
|
3913
|
+
nonce: BigInt((rawAccessKey == null ? void 0 : rawAccessKey.nonce) || 0)
|
3910
3914
|
});
|
3911
3915
|
const nearNonceFromApi = yield getNearNonce(currentConfig.base_url, accountId);
|
3912
3916
|
let nearNonceNumber = accessKey.nonce + BigInt(1);
|
@@ -4002,7 +4006,7 @@ function setupBTCWallet({
|
|
4002
4006
|
|
4003
4007
|
// src/index.ts
|
4004
4008
|
var getVersion = () => {
|
4005
|
-
return "0.
|
4009
|
+
return "0.4.0-beta";
|
4006
4010
|
};
|
4007
4011
|
if (typeof window !== "undefined") {
|
4008
4012
|
window.__BTC_WALLET_VERSION = getVersion();
|