btc-wallet 0.5.42-beta → 0.5.43-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.d.ts CHANGED
@@ -6,4 +6,5 @@ export * from './core/setupBTCWallet/index';
6
6
  export * from './core/btcUtils';
7
7
  export * from './config';
8
8
  export * from './core/setupModal';
9
+ export * from './utils/satoshi';
9
10
  export declare const getVersion: () => string;
package/dist/index.js CHANGED
@@ -94,20 +94,35 @@ __export(src_exports, {
94
94
  btcRpcUrls: () => btcRpcUrls,
95
95
  calculateGasFee: () => calculateGasFee,
96
96
  calculateGasLimit: () => calculateGasLimit,
97
+ calculateGasStrategy: () => calculateGasStrategy,
97
98
  calculateWithdraw: () => calculateWithdraw,
99
+ checkBridgeTransactionStatus: () => checkBridgeTransactionStatus,
100
+ checkBtcTransactionStatus: () => checkBtcTransactionStatus,
101
+ checkGasTokenBalance: () => checkGasTokenBalance,
98
102
  checkGasTokenDebt: () => checkGasTokenDebt,
99
103
  checkSatoshiWhitelist: () => checkSatoshiWhitelist,
104
+ convertTransactionToTxHex: () => convertTransactionToTxHex,
100
105
  estimateDepositAmount: () => estimateDepositAmount,
101
106
  executeBTCDepositAndAction: () => executeBTCDepositAndAction,
107
+ getAccountInfo: () => getAccountInfo,
108
+ getBridgeConfig: () => getBridgeConfig,
102
109
  getBtcBalance: () => getBtcBalance,
103
110
  getBtcGasPrice: () => getBtcGasPrice,
104
111
  getBtcUtxos: () => getBtcUtxos,
105
112
  getCsnaAccountId: () => getCsnaAccountId,
106
113
  getDepositAmount: () => getDepositAmount,
114
+ getNearNonce: () => getNearNonce,
115
+ getNonce: () => getNonce,
116
+ getTokenBalance: () => getTokenBalance,
107
117
  getVersion: () => getVersion,
108
118
  getWalletConfig: () => getWalletConfig,
119
+ getWhitelist: () => getWhitelist,
109
120
  getWithdrawTransaction: () => getWithdrawTransaction,
110
121
  nearRpcUrls: () => nearRpcUrls,
122
+ preReceiveDepositMsg: () => preReceiveDepositMsg,
123
+ receiveDepositMsg: () => receiveDepositMsg,
124
+ receiveTransaction: () => receiveTransaction,
125
+ receiveWithdrawMsg: () => receiveWithdrawMsg,
111
126
  sendBitcoin: () => sendBitcoin,
112
127
  setupBTCWallet: () => setupBTCWallet,
113
128
  setupWalletSelectorModal: () => setupWalletSelectorModal,
@@ -3328,6 +3343,22 @@ function getWhitelist(url) {
3328
3343
  return data;
3329
3344
  });
3330
3345
  }
3346
+ function receiveWithdrawMsg(url, txHash) {
3347
+ return __async(this, null, function* () {
3348
+ const { result_code, result_message, result_data } = yield request(
3349
+ `${url}/v1/receiveWithdrawMsg`,
3350
+ {
3351
+ method: "POST",
3352
+ body: { txHash }
3353
+ }
3354
+ );
3355
+ console.log("receiveWithdrawMsg resp:", { result_code, result_message, result_data });
3356
+ if (result_code !== 0) {
3357
+ throw new Error(result_message);
3358
+ }
3359
+ return result_data;
3360
+ });
3361
+ }
3331
3362
  function getAccountInfo(_0) {
3332
3363
  return __async(this, arguments, function* ({ csna, env }) {
3333
3364
  const config = getWalletConfig(env);
@@ -4917,7 +4948,7 @@ function getGroup(state) {
4917
4948
 
4918
4949
  // src/index.ts
4919
4950
  var getVersion = () => {
4920
- return "0.5.42-beta";
4951
+ return "0.5.43-beta";
4921
4952
  };
4922
4953
  if (typeof window !== "undefined") {
4923
4954
  window.__BTC_WALLET_VERSION = getVersion();