btc-wallet 0.5.21-beta → 0.5.22-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.
@@ -1,5 +1,7 @@
1
1
  import type { ENV } from '../config';
2
+ import { calculateGasLimit } from '../utils/satoshi';
2
3
  import type { FinalExecutionOutcome, Transaction } from '@near-wallet-selector/core';
4
+ export { calculateGasLimit };
3
5
  type CheckGasTokenDebtReturnType<T extends boolean> = T extends true ? void : {
4
6
  receiver_id: string;
5
7
  amount: string;
@@ -55,4 +57,3 @@ interface WithdrawParams {
55
57
  env?: ENV;
56
58
  }
57
59
  export declare function getWithdrawTransaction({ amount, feeRate, env, }: WithdrawParams): Promise<Transaction>;
58
- export {};
package/dist/index.js CHANGED
@@ -104,6 +104,7 @@ __export(src_exports, {
104
104
  WizzConnector: () => WizzConnector,
105
105
  XverseConnector: () => XverseConnector,
106
106
  btcRpcUrls: () => btcRpcUrls,
107
+ calculateGasLimit: () => calculateGasLimit,
107
108
  checkGasTokenDebt: () => checkGasTokenDebt,
108
109
  checkSatoshiWhitelist: () => checkSatoshiWhitelist,
109
110
  estimateDepositAmount: () => estimateDepositAmount,
@@ -4501,8 +4502,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
4501
4502
  signMessage,
4502
4503
  isSignedIn,
4503
4504
  signAndSendTransaction,
4504
- signAndSendTransactions,
4505
- calculateGasLimit
4505
+ signAndSendTransactions
4506
4506
  };
4507
4507
  const env = metadata.env || options.network.networkId || "mainnet";
4508
4508
  const currentConfig = getWalletConfig(env);
@@ -4791,7 +4791,7 @@ function setupBTCWallet({
4791
4791
 
4792
4792
  // src/index.ts
4793
4793
  var getVersion = () => {
4794
- return "0.5.21-beta";
4794
+ return "0.5.22-beta";
4795
4795
  };
4796
4796
  if (typeof window !== "undefined") {
4797
4797
  window.__BTC_WALLET_VERSION = getVersion();