Keep Monero scan progress across app restarts

This commit is contained in:
2026-09-19 22:17:00 +08:00
parent f4037a188a
commit 807388ea6b
4 changed files with 60 additions and 19 deletions
@@ -158,6 +158,11 @@ final class MoneroService {
_ = try? await invoke(["op": "closeWallet"])
}
/// Writes the wallet file, which is how scan progress survives a restart.
func save() async {
_ = try? await invoke(["op": "saveWallet"])
}
func seed() async throws -> String {
let response = try await invoke(["op": "getSeed"])
return response["mnemonic"] as? String ?? ""