summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-11-23 12:57:18 +0100
committerFlorian Dold <florian@dold.me>2023-11-23 12:57:18 +0100
commita0d746ad8d80490f9c2f1e017ff0c6a56b7d435c (patch)
treedc1f8ecebb07325c626ee06d1a7311faf09a0847 /packages/taler-wallet-core/src/db.ts
parent305c513c2bcc2b25fe57cf0ed9723781944f9f3f (diff)
downloadwallet-core-a0d746ad8d80490f9c2f1e017ff0c6a56b7d435c.tar.gz
wallet-core-a0d746ad8d80490f9c2f1e017ff0c6a56b7d435c.tar.bz2
wallet-core-a0d746ad8d80490f9c2f1e017ff0c6a56b7d435c.zip
wallet-core: implement balance flags for UI badges
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;