feat(tauri): Allow export of wallet descriptors (#118)

This commit is contained in:
Einliterflasche 2024-10-15 14:22:35 +02:00 committed by GitHub
parent 898c7a2450
commit c91adb3ac8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 141 additions and 11 deletions

View file

@ -21,6 +21,7 @@ import {
TauriDatabaseStateEvent,
TauriTimelockChangeEvent,
GetSwapInfoArgs,
ExportBitcoinWalletResponse,
} from "models/tauriModel";
import {
contextStatusEventReceived,
@ -214,3 +215,7 @@ export async function initializeContext() {
testnet,
});
}
export async function getWalletDescriptor() {
return await invokeNoArgs<ExportBitcoinWalletResponse>("get_wallet_descriptor");
}