summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-06-26 12:48:20 +0200
committerFlorian Dold <florian@dold.me>2023-06-26 12:48:20 +0200
commitfca893038dc61267c9861186041e129c88b46da8 (patch)
tree0f7603fca5f426551cf29e4cc6484bb0ae223491 /packages/taler-wallet-core/src/db.ts
parent66432cdd0588836000a8114e360aea537713712c (diff)
downloadwallet-core-fca893038dc61267c9861186041e129c88b46da8.tar.gz
wallet-core-fca893038dc61267c9861186041e129c88b46da8.tar.bz2
wallet-core-fca893038dc61267c9861186041e129c88b46da8.zip
wallet-core: fix deposit tx states, long-poll on kyc
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts26
1 files changed, 16 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 9d0efbc6a..ab2e95c23 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -910,14 +910,6 @@ export enum RefreshOperationStatus {
Failed = 51 /* DORMANT_START + 1 */,
}
-export enum DepositGroupOperationStatus {
- Pending = 10,
- AbortingWithRefresh = 11,
-
- Finished = 50,
- Failed = 51,
-}
-
/**
* Status of a single element of a deposit group.
*/
@@ -1653,11 +1645,15 @@ export interface BackupProviderRecord {
}
export enum DepositOperationStatus {
- Pending = 10,
+ PendingDeposit = 10,
Aborting = 11,
+ PendingTrack = 12,
+ PendingKyc = 13,
- Suspended = 20,
+ SuspendedDeposit = 20,
SuspendedAborting = 21,
+ SuspendedTrack = 22,
+ SuspendedKyc = 23,
Finished = 50,
Failed = 51,
@@ -1737,12 +1733,22 @@ export interface DepositGroupRecord {
*/
abortRefreshGroupId?: string;
+ kycInfo?: DepositKycInfo;
+
// FIXME: Do we need this and should it be in this object store?
trackingState?: {
[signature: string]: DepositTrackingInfo;
};
}
+export interface DepositKycInfo {
+ kycUrl: string;
+ requirementRow: number;
+ paytoHash: string;
+ exchangeBaseUrl: string;
+}
+
+
/**
* Record for a deposits that the wallet observed
* as a result of double spending, but which is not