diff options
author | Florian Dold <florian@dold.me> | 2023-11-23 12:57:18 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-11-23 12:57:18 +0100 |
commit | a0d746ad8d80490f9c2f1e017ff0c6a56b7d435c (patch) | |
tree | dc1f8ecebb07325c626ee06d1a7311faf09a0847 /packages/taler-wallet-core/src/db.ts | |
parent | 305c513c2bcc2b25fe57cf0ed9723781944f9f3f (diff) | |
download | wallet-core-a0d746ad8d80490f9c2f1e017ff0c6a56b7d435c.tar.xz |
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.ts | 14 |
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; |