commit 23f77fbf033b6de93e2a017caf18acce326c1879
parent db603ba03ef7fe42cb9f9894ec6ffd6d7a96230a
Author: Marc Stibane <marc@taler.net>
Date: Thu, 29 Feb 2024 14:44:09 +0100
Preparation for Builtin
Diffstat:
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift
@@ -112,7 +112,7 @@ extension WalletCore {
// TODO: show error alert
completion(requestId, timeSent, nil, WalletCore.parseFailureError())
}
- } else { // JSON decoding of error message failed
+ } else { // JSON decoding of error message failed
completion(requestId, timeSent, nil, WalletCore.parseFailureError())
}
}
diff --git a/TalerWallet1/Model/WalletModel.swift b/TalerWallet1/Model/WalletModel.swift
@@ -92,6 +92,8 @@ fileprivate struct InitRequest: WalletBackendFormattedRequest {
func operation() -> String { "init" }
func args() -> Args {
let testing = Testing(devModeActive: false) // true, false
+ let builtin = Builtin(exchanges: [])
+// let config = Config(testing: testing, builtin: builtin)
let config = Config(testing: testing)
return Args(persistentStoragePath: persistentStoragePath,
// cryptoWorkerType: "sync",
@@ -106,8 +108,13 @@ fileprivate struct InitRequest: WalletBackendFormattedRequest {
var devModeActive: Bool
// more to come...
}
+ struct Builtin: Encodable {
+ var exchanges: [String]
+ // more to come...
+ }
struct Config: Encodable {
var testing: Testing
+// var builtin: Builtin
}
struct Args: Encodable {
var persistentStoragePath: String
diff --git a/TalerWallet1/Views/Transactions/ThreeAmountsV.swift b/TalerWallet1/Views/Transactions/ThreeAmountsV.swift
@@ -110,6 +110,7 @@ struct ThreeAmountsV: View {
}
if let baseURL {
VStack(alignment: .leading) {
+ // TODO: "Issued by" for withdrawals
Text(minimalistic ? "Payment provider:" : "Using payment service provider:")
.multilineTextAlignment(.leading)
.talerFont(.body)