Add Monero subaccounts and subaddresses with a QR per address
This commit is contained in:
@@ -66,4 +66,30 @@ enum TransactionPriority: Int {
|
||||
case .high: return "High"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct MoneroSubaddress: Identifiable {
|
||||
let accountIndex: Int
|
||||
let index: Int
|
||||
let address: String
|
||||
let label: String
|
||||
let balance: String
|
||||
let unlocked: String
|
||||
let isUsed: Bool
|
||||
|
||||
var id: String { "\(accountIndex)/\(index)" }
|
||||
}
|
||||
|
||||
struct MoneroAccount: Identifiable {
|
||||
let index: Int
|
||||
let address: String
|
||||
let balance: String
|
||||
let unlocked: String
|
||||
var subaddresses: [MoneroSubaddress]
|
||||
|
||||
var id: Int { index }
|
||||
|
||||
var title: String {
|
||||
index == 0 ? "Primary account" : "Account \(index + 1)"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user