diff options
author | Florian Dold <florian@dold.me> | 2023-08-30 16:51:51 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-08-30 16:51:51 +0200 |
commit | aba173d8a906fa0ede0c3660bd37b11fb7a6a127 (patch) | |
tree | 0957b732b6892236e5ef1fbc9e93cda56b6908e1 /packages/taler-wallet-core/src/internal-wallet-state.ts | |
parent | 53613a137df432878d62317e685bd1737dc6a6dc (diff) | |
download | wallet-core-aba173d8a906fa0ede0c3660bd37b11fb7a6a127.tar.xz |
wallet-core: open DB inside wallet handle, back up meta DB as well
Diffstat (limited to 'packages/taler-wallet-core/src/internal-wallet-state.ts')
-rw-r--r-- | packages/taler-wallet-core/src/internal-wallet-state.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/internal-wallet-state.ts b/packages/taler-wallet-core/src/internal-wallet-state.ts index 76aee05bd..a189c9cb3 100644 --- a/packages/taler-wallet-core/src/internal-wallet-state.ts +++ b/packages/taler-wallet-core/src/internal-wallet-state.ts @@ -54,6 +54,7 @@ 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"; export const EXCHANGE_COINS_LOCK = "exchange-coins-lock"; export const EXCHANGE_RESERVES_LOCK = "exchange-reserves-lock"; @@ -203,6 +204,9 @@ export interface InternalWalletState { denomPubHash: string, ): Promise<DenominationInfo | undefined>; + ensureWalletDbOpen(): Promise<void>; + + idb: IDBFactory; db: DbAccess<typeof WalletStoresV1>; http: HttpRequestLibrary; |