btc-wallet 0.5.67-beta → 0.5.68-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/btcUtils.d.ts +4 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +2 -2
- package/esm/index.js +4 -3
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/dist/core/btcUtils.d.ts
CHANGED
@@ -22,7 +22,10 @@ export declare function getBtcBalance(account?: string): Promise<{
|
|
22
22
|
availableBalance: number;
|
23
23
|
}>;
|
24
24
|
export declare function sendBitcoin(address: string, amount: number, feeRate: number): Promise<string>;
|
25
|
-
export declare function signMessage(message: string): Promise<
|
25
|
+
export declare function signMessage(message: string): Promise<{
|
26
|
+
signature: string;
|
27
|
+
publicKey: string;
|
28
|
+
}>;
|
26
29
|
/** estimate deposit receive amount, deduct protocol fee and repay amount */
|
27
30
|
export declare function estimateDepositAmount(amount: string, option?: {
|
28
31
|
env?: ENV;
|
package/dist/index.js
CHANGED
@@ -3910,9 +3910,10 @@ function sendBitcoin(address, amount, feeRate) {
|
|
3910
3910
|
}
|
3911
3911
|
function signMessage(message) {
|
3912
3912
|
return __async(this, null, function* () {
|
3913
|
-
const { signMessage: signMessage2 } = getBtcProvider();
|
3913
|
+
const { signMessage: signMessage2, getPublicKey } = getBtcProvider();
|
3914
|
+
const publicKey = yield getPublicKey();
|
3914
3915
|
const signature = yield signMessage2(message);
|
3915
|
-
return signature;
|
3916
|
+
return { signature, publicKey };
|
3916
3917
|
});
|
3917
3918
|
}
|
3918
3919
|
function estimateDepositAmount(amount, option) {
|
@@ -5286,7 +5287,7 @@ function getGroup(state) {
|
|
5286
5287
|
|
5287
5288
|
// src/index.ts
|
5288
5289
|
var getVersion = () => {
|
5289
|
-
return "0.5.
|
5290
|
+
return "0.5.68-beta";
|
5290
5291
|
};
|
5291
5292
|
if (typeof window !== "undefined") {
|
5292
5293
|
window.__BTC_WALLET_VERSION = getVersion();
|