From ae8af3f27c0ed1746c49a7608fe05af24ae8a18b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 23 Nov 2021 23:51:12 +0100 Subject: wallet: tipping protocol change / merchant version info --- packages/taler-wallet-core/src/wallet.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'packages/taler-wallet-core/src/wallet.ts') diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index cd2dd7f1e..44591a268 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -99,6 +99,8 @@ import { import { ExchangeOperations, InternalWalletState, + MerchantInfo, + MerchantOperations, NotificationListener, RecoupOperations, } from "./common.js"; @@ -180,6 +182,7 @@ import { HttpRequestLibrary, readSuccessResponseJsonOrThrow, } from "./util/http.js"; +import { getMerchantInfo } from "./operations/merchants.js"; const builtinAuditors: AuditorTrustRecord[] = [ { @@ -1069,6 +1072,8 @@ class InternalWalletStateImpl implements InternalWalletState { memoProcessDeposit: AsyncOpMemoMap = new AsyncOpMemoMap(); cryptoApi: CryptoApi; + merchantInfoCache: Record = {}; + timerGroup: TimerGroup = new TimerGroup(); latch = new AsyncCondition(); stopped = false; @@ -1088,6 +1093,10 @@ class InternalWalletStateImpl implements InternalWalletState { processRecoupGroup: processRecoupGroup, }; + merchantOps: MerchantOperations = { + getMerchantInfo: getMerchantInfo, + }; + /** * Promises that are waiting for a particular resource. */ -- cgit v1.2.3