diff options
author | Florian Dold <florian@dold.me> | 2021-11-23 23:51:12 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-11-23 23:51:12 +0100 |
commit | ae8af3f27c0ed1746c49a7608fe05af24ae8a18b (patch) | |
tree | c28f588071bdd1d4cda2279e62563a3664d79be9 /packages/taler-wallet-core/src/wallet.ts | |
parent | 829a59e1a24d6a99ce7554d28acfd05f21baeaf8 (diff) | |
download | wallet-core-ae8af3f27c0ed1746c49a7608fe05af24ae8a18b.tar.xz |
wallet: tipping protocol change / merchant version info
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 9 |
1 files changed, 9 insertions, 0 deletions
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<void> = new AsyncOpMemoMap(); cryptoApi: CryptoApi; + merchantInfoCache: Record<string, MerchantInfo> = {}; + 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. */ |