btc-wallet 0.5.73-beta → 0.5.75-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/setupModal.d.ts +1 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +2 -2
- package/esm/index.js +6 -4
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
@@ -4,6 +4,7 @@ import { ENV } from '../config';
|
|
4
4
|
export interface WalletSelectorModalOptions extends _ModalOptions {
|
5
5
|
showChainGroups?: boolean;
|
6
6
|
showWalletUIForNearAccount?: boolean;
|
7
|
+
hideWalletUIForNearWallets?: string[];
|
7
8
|
walletUrl?: string;
|
8
9
|
env?: ENV;
|
9
10
|
draggable?: boolean;
|
package/dist/index.js
CHANGED
@@ -3871,8 +3871,8 @@ function getBtcGasPrice() {
|
|
3871
3871
|
try {
|
3872
3872
|
const btcRpcUrl = yield getBtcRpcUrl();
|
3873
3873
|
const res = yield fetch(`${btcRpcUrl}/v1/fees/recommended`).then((res2) => res2.json());
|
3874
|
-
const feeRate = res.fastestFee;
|
3875
|
-
return feeRate
|
3874
|
+
const feeRate = res.fastestFee ? Number(res.fastestFee) + 1 : defaultFeeRate;
|
3875
|
+
return feeRate;
|
3876
3876
|
} catch (error) {
|
3877
3877
|
return defaultFeeRate;
|
3878
3878
|
}
|
@@ -5193,6 +5193,7 @@ function setupWalletSelectorModal(selector, options) {
|
|
5193
5193
|
const {
|
5194
5194
|
showChainGroups = true,
|
5195
5195
|
showWalletUIForNearAccount = true,
|
5196
|
+
hideWalletUIForNearWallets = ["meteor-wallet-app"],
|
5196
5197
|
env = "mainnet",
|
5197
5198
|
walletUrl,
|
5198
5199
|
draggable = true,
|
@@ -5207,8 +5208,9 @@ function setupWalletSelectorModal(selector, options) {
|
|
5207
5208
|
const walletId = state2.selectedWalletId;
|
5208
5209
|
window.enableCustomWalletSelectorModal = true;
|
5209
5210
|
console.log("setupWalletSelectorModal walletId", walletId);
|
5211
|
+
const showWalletUI = walletId && (walletId === "btc-wallet" || showWalletUIForNearAccount && !hideWalletUIForNearWallets.includes(walletId));
|
5210
5212
|
removeWalletButton();
|
5211
|
-
if (
|
5213
|
+
if (showWalletUI) {
|
5212
5214
|
selector.wallet().then((wallet) => {
|
5213
5215
|
setupWalletButton({
|
5214
5216
|
env,
|
@@ -5311,7 +5313,7 @@ function getGroup(state) {
|
|
5311
5313
|
|
5312
5314
|
// src/index.ts
|
5313
5315
|
var getVersion = () => {
|
5314
|
-
return "0.5.
|
5316
|
+
return "0.5.75-beta";
|
5315
5317
|
};
|
5316
5318
|
if (typeof window !== "undefined") {
|
5317
5319
|
window.__BTC_WALLET_VERSION = getVersion();
|