gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 13/16: Preparation for Builtin


From: gnunet
Subject: [taler-taler-ios] 13/16: Preparation for Builtin
Date: Thu, 29 Feb 2024 17:19:20 +0100

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit 23f77fbf033b6de93e2a017caf18acce326c1879
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Feb 29 14:44:09 2024 +0100

    Preparation for Builtin
---
 TalerWallet1/Backend/WalletCore.swift               | 2 +-
 TalerWallet1/Model/WalletModel.swift                | 7 +++++++
 TalerWallet1/Views/Transactions/ThreeAmountsV.swift | 1 +
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift 
b/TalerWallet1/Backend/WalletCore.swift
index 7467fac..6e50295 100644
--- 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
index 86cf4e6..49ee759 100644
--- 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
index c7fbbf1..6e61e21 100644
--- 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)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]