diff options
Diffstat (limited to 'packages/taler-wallet-core/src/internal-wallet-state.ts')
-rw-r--r-- | packages/taler-wallet-core/src/internal-wallet-state.ts | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/packages/taler-wallet-core/src/internal-wallet-state.ts b/packages/taler-wallet-core/src/internal-wallet-state.ts index 8c49f8e5e..fdf04a65f 100644 --- a/packages/taler-wallet-core/src/internal-wallet-state.ts +++ b/packages/taler-wallet-core/src/internal-wallet-state.ts @@ -29,8 +29,8 @@ /** * Imports. */ +import { IDBFactory } from "@gnu-taler/idb-bridge"; import { - CancellationToken, CoinRefreshRequest, DenominationInfo, RefreshGroupId, @@ -40,12 +40,7 @@ import { } from "@gnu-taler/taler-util"; import { HttpRequestLibrary } from "@gnu-taler/taler-util/http"; import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js"; -import { - ExchangeDetailsRecord, - ExchangeEntryRecord, - RefreshReasonDetails, - WalletStoresV1, -} from "./db.js"; +import { WalletStoresV1 } from "./db.js"; import { AsyncCondition } from "./util/promiseUtils.js"; import { DbAccess, @@ -54,8 +49,6 @@ import { } from "./util/query.js"; import { TimerGroup } from "./util/timer.js"; import { WalletConfig } from "./wallet-api-types.js"; -import { IDBFactory } from "@gnu-taler/idb-bridge"; -import { ReadyExchangeSummary } from "./index.js"; export const EXCHANGE_COINS_LOCK = "exchange-coins-lock"; export const EXCHANGE_RESERVES_LOCK = "exchange-reserves-lock"; @@ -69,22 +62,6 @@ export interface MerchantInfo { protocolVersionCurrent: number; } -export interface RefreshOperations { - createRefreshGroup( - ws: InternalWalletState, - tx: GetReadWriteAccess<{ - denominations: typeof WalletStoresV1.denominations; - coins: typeof WalletStoresV1.coins; - refreshGroups: typeof WalletStoresV1.refreshGroups; - coinAvailability: typeof WalletStoresV1.coinAvailability; - }>, - currency: string, - oldCoinPubs: CoinRefreshRequest[], - reason: RefreshReason, - reasonDetails?: RefreshReasonDetails, - ): Promise<RefreshGroupId>; -} - export interface RecoupOperations { createRecoupGroup( ws: InternalWalletState, @@ -144,7 +121,6 @@ export interface InternalWalletState { merchantInfoCache: Record<string, MerchantInfo>; recoupOps: RecoupOperations; - refreshOps: RefreshOperations; isTaskLoopRunning: boolean; |