btc-wallet 0.3.2 → 0.3.3
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 +1 -15
- package/dist/index.js.map +2 -2
- package/esm/index.js +1 -15
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3063,18 +3063,8 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
3063
3063
|
near_transactions: newTransactions.map((t) => t.txHex),
|
3064
3064
|
gas_token: currentConfig.token,
|
3065
3065
|
gas_limit: "3000",
|
3066
|
-
use_near_pay_gas: false,
|
3067
3066
|
nonce
|
3068
3067
|
};
|
3069
|
-
const nearAccount = yield provider.query({
|
3070
|
-
request_type: "view_account",
|
3071
|
-
account_id: accountId,
|
3072
|
-
finality: "final"
|
3073
|
-
});
|
3074
|
-
const availableBalance = parseFloat(nearAccount.amount) / __pow(10, 24);
|
3075
|
-
if (availableBalance > 0.2) {
|
3076
|
-
intention.use_near_pay_gas = true;
|
3077
|
-
}
|
3078
3068
|
const strIntention = JSON.stringify(intention);
|
3079
3069
|
const signature = yield btcContext.signMessage(strIntention);
|
3080
3070
|
const result = yield uploadBTCTx(currentConfig.base_url, {
|
@@ -3097,10 +3087,6 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
3097
3087
|
const checkAndSetupWalletButton = () => {
|
3098
3088
|
const accountId = state.getAccount();
|
3099
3089
|
const btcContext = window.btcContext;
|
3100
|
-
console.log("checkAndSetupWalletButton:", {
|
3101
|
-
nearAccountId: accountId,
|
3102
|
-
btcAccountId: btcContext.account
|
3103
|
-
});
|
3104
3090
|
if (accountId && btcContext.account) {
|
3105
3091
|
setupWalletButton(network, wallet2, btcContext);
|
3106
3092
|
} else {
|
@@ -3308,7 +3294,7 @@ function executeBurrowSupply(_0) {
|
|
3308
3294
|
|
3309
3295
|
// src/index.ts
|
3310
3296
|
var getVersion = () => {
|
3311
|
-
return "0.3.
|
3297
|
+
return "0.3.3";
|
3312
3298
|
};
|
3313
3299
|
if (typeof window !== "undefined") {
|
3314
3300
|
window.__PARTICLE_BTC_CONNECT_VERSION = getVersion();
|