From 526f4eba9554f27e33afb0e02d19d870825b038c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 8 Oct 2022 20:56:57 +0200 Subject: wallet-core: Clean up merchant payments DB schema --- .../taler-wallet-core/src/internal-wallet-state.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'packages/taler-wallet-core/src/internal-wallet-state.ts') diff --git a/packages/taler-wallet-core/src/internal-wallet-state.ts b/packages/taler-wallet-core/src/internal-wallet-state.ts index b8415a469..6c7d943cb 100644 --- a/packages/taler-wallet-core/src/internal-wallet-state.ts +++ b/packages/taler-wallet-core/src/internal-wallet-state.ts @@ -37,6 +37,9 @@ import { TalerProtocolTimestamp, CancellationToken, DenominationInfo, + RefreshGroupId, + CoinPublicKey, + RefreshReason, } from "@gnu-taler/taler-util"; import { CryptoDispatcher } from "./crypto/workers/cryptoDispatcher.js"; import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js"; @@ -74,6 +77,20 @@ export interface MerchantOperations { ): Promise; } +export interface RefreshOperations { + createRefreshGroup( + ws: InternalWalletState, + tx: GetReadWriteAccess<{ + denominations: typeof WalletStoresV1.denominations; + coins: typeof WalletStoresV1.coins; + refreshGroups: typeof WalletStoresV1.refreshGroups; + coinAvailability: typeof WalletStoresV1.coinAvailability; + }>, + oldCoinPubs: CoinPublicKey[], + reason: RefreshReason, + ): Promise; +} + /** * Interface for exchange-related operations. */ @@ -172,6 +189,7 @@ export interface InternalWalletState { exchangeOps: ExchangeOperations; recoupOps: RecoupOperations; merchantOps: MerchantOperations; + refreshOps: RefreshOperations; getDenomInfo( ws: InternalWalletState, -- cgit v1.2.3