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 +1 -0
- package/dist/index.js +32 -1
- package/dist/index.js.map +2 -2
- package/esm/index.js +32 -1
- package/esm/index.js.map +2 -2
- package/package.json +2 -1
package/esm/index.js
CHANGED
@@ -3259,6 +3259,22 @@ function getWhitelist(url) {
|
|
3259
3259
|
return data;
|
3260
3260
|
});
|
3261
3261
|
}
|
3262
|
+
function receiveWithdrawMsg(url, txHash) {
|
3263
|
+
return __async(this, null, function* () {
|
3264
|
+
const { result_code, result_message, result_data } = yield request(
|
3265
|
+
`${url}/v1/receiveWithdrawMsg`,
|
3266
|
+
{
|
3267
|
+
method: "POST",
|
3268
|
+
body: { txHash }
|
3269
|
+
}
|
3270
|
+
);
|
3271
|
+
console.log("receiveWithdrawMsg resp:", { result_code, result_message, result_data });
|
3272
|
+
if (result_code !== 0) {
|
3273
|
+
throw new Error(result_message);
|
3274
|
+
}
|
3275
|
+
return result_data;
|
3276
|
+
});
|
3277
|
+
}
|
3262
3278
|
function getAccountInfo(_0) {
|
3263
3279
|
return __async(this, arguments, function* ({ csna, env }) {
|
3264
3280
|
const config = getWalletConfig(env);
|
@@ -4850,7 +4866,7 @@ function getGroup(state) {
|
|
4850
4866
|
|
4851
4867
|
// src/index.ts
|
4852
4868
|
var getVersion = () => {
|
4853
|
-
return "0.5.
|
4869
|
+
return "0.5.43-beta";
|
4854
4870
|
};
|
4855
4871
|
if (typeof window !== "undefined") {
|
4856
4872
|
window.__BTC_WALLET_VERSION = getVersion();
|
@@ -4872,20 +4888,35 @@ export {
|
|
4872
4888
|
btcRpcUrls,
|
4873
4889
|
calculateGasFee,
|
4874
4890
|
calculateGasLimit,
|
4891
|
+
calculateGasStrategy,
|
4875
4892
|
calculateWithdraw,
|
4893
|
+
checkBridgeTransactionStatus,
|
4894
|
+
checkBtcTransactionStatus,
|
4895
|
+
checkGasTokenBalance,
|
4876
4896
|
checkGasTokenDebt,
|
4877
4897
|
checkSatoshiWhitelist,
|
4898
|
+
convertTransactionToTxHex,
|
4878
4899
|
estimateDepositAmount,
|
4879
4900
|
executeBTCDepositAndAction,
|
4901
|
+
getAccountInfo,
|
4902
|
+
getBridgeConfig,
|
4880
4903
|
getBtcBalance,
|
4881
4904
|
getBtcGasPrice,
|
4882
4905
|
getBtcUtxos,
|
4883
4906
|
getCsnaAccountId,
|
4884
4907
|
getDepositAmount,
|
4908
|
+
getNearNonce,
|
4909
|
+
getNonce,
|
4910
|
+
getTokenBalance,
|
4885
4911
|
getVersion,
|
4886
4912
|
getWalletConfig,
|
4913
|
+
getWhitelist,
|
4887
4914
|
getWithdrawTransaction,
|
4888
4915
|
nearRpcUrls,
|
4916
|
+
preReceiveDepositMsg,
|
4917
|
+
receiveDepositMsg,
|
4918
|
+
receiveTransaction,
|
4919
|
+
receiveWithdrawMsg,
|
4889
4920
|
sendBitcoin,
|
4890
4921
|
setupBTCWallet,
|
4891
4922
|
setupWalletSelectorModal,
|