aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/internal-wallet-state.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-08-30 16:51:51 +0200
committerFlorian Dold <florian@dold.me>2023-08-30 16:51:51 +0200
commitaba173d8a906fa0ede0c3660bd37b11fb7a6a127 (patch)
tree0957b732b6892236e5ef1fbc9e93cda56b6908e1 /packages/taler-wallet-core/src/internal-wallet-state.ts
parent53613a137df432878d62317e685bd1737dc6a6dc (diff)
downloadwallet-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.ts4
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;