commit 0acafda82911f3d61d4eaa9dec2263ae66863097
parent dc016078a976e24886173dd81a028b8b3d89a1e2
Author: Florian Dold <florian@dold.me>
Date: Wed, 6 Dec 2023 18:46:51 +0100
wallet-core: document API change, don't wrap response
Diffstat:
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git 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
@@ -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
@@ -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 =