gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: temporary fix for exchange op


From: gnunet
Subject: [taler-wallet-core] branch master updated: temporary fix for exchange operations
Date: Thu, 17 Jun 2021 18:06:29 +0200

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 a4902de8 temporary fix for exchange operations
a4902de8 is described below

commit a4902de89100fbdf904d8238691476a97ff142b3
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jun 17 18:06:13 2021 +0200

    temporary fix for exchange operations
---
 packages/taler-wallet-core/src/common.ts | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/common.ts 
b/packages/taler-wallet-core/src/common.ts
index cbbbb1e3..f1b34a29 100644
--- a/packages/taler-wallet-core/src/common.ts
+++ b/packages/taler-wallet-core/src/common.ts
@@ -24,6 +24,11 @@ import {
 } from "@gnu-taler/taler-util";
 import { CryptoApi, CryptoWorkerFactory } from "./crypto/workers/cryptoApi.js";
 import { ExchangeDetailsRecord, ExchangeRecord, WalletStoresV1 } from 
"./db.js";
+import {
+  getExchangeDetails,
+  getExchangeTrust,
+  updateExchangeFromUrl,
+} from "./operations/exchanges.js";
 import { PendingOperationsResponse } from "./pending-types.js";
 import { AsyncOpMemoMap, AsyncOpMemoSingle } from "./util/asyncMemo.js";
 import { HttpRequestLibrary } from "./util/http.js";
@@ -77,7 +82,7 @@ export interface ExchangeOperations {
 /**
  * Internal state of the wallet.
  */
-export class InternalWalletState {
+export class InternalWalletState implements InternalWalletState {
   memoProcessReserve: AsyncOpMemoMap<void> = new AsyncOpMemoMap();
   memoMakePlanchet: AsyncOpMemoMap<void> = new AsyncOpMemoMap();
   memoGetPending: AsyncOpMemoSingle<PendingOperationsResponse> = new 
AsyncOpMemoSingle();
@@ -96,7 +101,12 @@ export class InternalWalletState {
 
   initCalled: boolean = false;
 
-  exchangeOps: ExchangeOperations;
+  // FIXME:  This should be done in wallet.ts, here we should only give 
declarations
+  exchangeOps: ExchangeOperations = {
+    getExchangeDetails,
+    getExchangeTrust,
+    updateExchangeFromUrl,
+  };
 
   /**
    * Promises that are waiting for a particular resource.

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