gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: wallet-core: document API cha


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: document API change, don't wrap response
Date: Wed, 06 Dec 2023 18:46:55 +0100

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

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 0acafda82 wallet-core: document API change, don't wrap response
0acafda82 is described below

commit 0acafda82911f3d61d4eaa9dec2263ae66863097
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Dec 6 18:46:51 2023 +0100

    wallet-core: document API change, don't wrap response
---
 API_CHANGES.md                           | 5 +++++
 packages/taler-util/src/wallet-types.ts  | 4 +---
 packages/taler-wallet-core/src/wallet.ts | 5 +----
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/API_CHANGES.md b/API_CHANGES.md
index 566a17650..8ccce9af6 100644
--- a/API_CHANGES.md
+++ b/API_CHANGES.md
@@ -11,3 +11,8 @@ This files contains all the API changes for the current 
release:
   about errors with a particular conversion account instead of failing the 
whole withdrawal(-info) request.
 - 2023-12-06 dold: added the exchangeBaseUrl to PreparePeerPushCreditResponse, 
allowing the UI
   to check the exchange status for the peer push credit.
+- 2023-12-06 dold: added a new getExchangeEntryForUri request, which allows 
the client to
+  get information about an existing exchange entry with DD48 semantics.
+  The older call "getExchangeDetailedInfo" also computes loads of information
+  for fee comparison and we should eventually rename it to something more 
appropriate
+  (like getExchangeFeeDetailsForUri).
diff --git a/packages/taler-util/src/wallet-types.ts 
b/packages/taler-util/src/wallet-types.ts
index 2a5fa0bf8..45e0860b2 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -1636,9 +1636,7 @@ export const codecForGetExchangeEntryByUrlRequest =
       .property("exchangeBaseUrl", codecForString())
       .build("GetExchangeEntryByUrlRequest");
 
-export interface GetExchangeEntryByUrlResponse {
-  exchangeEntry: ExchangeListItem;
-}
+export type GetExchangeEntryByUrlResponse = ExchangeListItem;
 
 export interface AddExchangeRequest {
   exchangeBaseUrl: string;
diff --git a/packages/taler-wallet-core/src/wallet.ts 
b/packages/taler-wallet-core/src/wallet.ts
index e5e179937..6092830f6 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1177,10 +1177,7 @@ async function dispatchRequestInternal<Op extends 
WalletApiOperation>(
             opRetryRecord?.lastError,
           );
         });
-      const result: GetExchangeEntryByUrlResponse = {
-        exchangeEntry,
-      };
-      return result;
+      return exchangeEntry;
     }
     case WalletApiOperation.ListExchangesForScopedCurrency: {
       const req =

-- 
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]