Add Monero subaccounts and subaddresses with a QR per address

This commit is contained in:
2026-09-20 00:11:53 +08:00
parent 1a23c730c6
commit caca4321cc
7 changed files with 332 additions and 3 deletions
+10 -3
View File
@@ -7,6 +7,7 @@ enum Route: Equatable {
case dashboard
case send
case receive
case accounts
}
struct SeedBox: Identifiable {
@@ -18,7 +19,8 @@ struct SeedBox: Identifiable {
struct RootView: View {
@EnvironmentObject private var model: AppModel
@Environment(\.scenePhase) private var scenePhase
@State private var route: Route = .home
@State private var route: Route = ProcessInfo.processInfo.arguments.contains("-koinsScreenAccounts")
? .accounts : .home
@State private var seedBox: SeedBox?
var body: some View {
@@ -39,6 +41,8 @@ struct RootView: View {
SendView(route: $route)
case .receive:
ReceiveView(route: $route)
case .accounts:
AccountsView(route: $route)
}
}
.padding(.horizontal, 20)
@@ -159,8 +163,11 @@ struct HomeView: View {
}
if model.chain == .xmr {
SecondaryButton(title: model.syncStatus?.syncing == true ? "Syncing…" : "Sync now") {
Task { await model.startMoneroSync() }
HStack(spacing: 10) {
SecondaryButton(title: model.syncStatus?.syncing == true ? "Syncing…" : "Sync now") {
Task { await model.startMoneroSync() }
}
SecondaryButton(title: "Addresses") { route = .accounts }
}
}