aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 0cafae2a1..279b75bf5 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -19,6 +19,7 @@
*/
import {
Event,
+ GlobalIDB,
IDBDatabase,
IDBFactory,
IDBObjectStore,
@@ -326,6 +327,14 @@ export enum WithdrawalGroupStatus {
}
/**
+ * Status range of nonfinal withdrawal groups.
+ */
+export const withdrawalGroupNonfinalRange = GlobalIDB.KeyRange.bound(
+ WithdrawalGroupStatus.PendingRegisteringBank,
+ WithdrawalGroupStatus.PendingAml,
+);
+
+/**
* Extra info about a withdrawal that is used
* with a bank-integrated withdrawal.
*/
@@ -1686,6 +1695,11 @@ export enum DepositOperationStatus {
Aborted = 0x0503_0000,
}
+export const depositOperationNonfinalStatusRange = GlobalIDB.KeyRange.bound(
+ DepositOperationStatus.PendingDeposit,
+ DepositOperationStatus.PendingKyc,
+);
+
export interface DepositTrackingInfo {
// Raw wire transfer identifier of the deposit.
wireTransferId: string;