aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-01-12 15:51:56 +0100
committerFlorian Dold <florian@dold.me>2022-01-12 15:51:56 +0100
commitdc596f1f4d494c3bf9e57253d773205dc0479179 (patch)
tree9c5dc7e51a9c21582819be6ad1779937a8d71378 /packages/taler-wallet-core/src/db.ts
parentdbdad96b27619b8190571b899d3b11dd6af39335 (diff)
downloadwallet-core-dc596f1f4d494c3bf9e57253d773205dc0479179.tar.xz
implement latest recoup protocol
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts15
1 files changed, 8 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 772061fb9..7f6b08e12 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -42,7 +42,6 @@ import {
import { RetryInfo } from "./util/retries.js";
import { PayCoinSelection } from "./util/coinSelection.js";
import { Event, IDBDatabase } from "@gnu-taler/idb-bridge";
-import { PendingTaskInfo } from "./pending-types.js";
/**
* Name of the Taler database. This is effectively the major
@@ -140,7 +139,7 @@ export interface ReserveRecord {
reservePriv: string;
/**
- * The exchange base URL.
+ * The exchange base URL for the reserve.
*/
exchangeBaseUrl: string;
@@ -154,8 +153,6 @@ export interface ReserveRecord {
*/
timestampCreated: Timestamp;
- operationStatus: OperationStatus;
-
/**
* Time when the information about this reserve was posted to the bank.
*
@@ -206,13 +203,17 @@ export interface ReserveRecord {
*/
initialDenomSel: DenomSelectionState;
+ /**
+ * Current status of the reserve.
+ */
reserveStatus: ReserveRecordStatus;
/**
- * Was a reserve query requested? If so, query again instead
- * of going into dormant status.
+ * Is there any work to be done for this reserve?
+ *
+ * FIXME: Technically redundant, since the reserveStatus would indicate this.
*/
- requestedQuery: boolean;
+ operationStatus: OperationStatus;
/**
* Time of the last successful status query.