diff options
author | Florian Dold <florian@dold.me> | 2023-09-08 12:54:31 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-09-08 12:54:37 +0200 |
commit | 2ae952cdfa8f38a650be8e4438c21bace2f24c19 (patch) | |
tree | 2d4b8ec564102f750eb5b1e593bc13a0bdda1d5e /packages/taler-wallet-core/src/db.ts | |
parent | 50b0b324ae67bea01079d6e9a1d684795f5b430f (diff) | |
download | wallet-core-2ae952cdfa8f38a650be8e4438c21bace2f24c19.tar.xz |
wallet-core: remove redundant deposit status field in DB
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 359569055..3db7ae9b5 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -921,8 +921,11 @@ export enum RefreshOperationStatus { * Status of a single element of a deposit group. */ export enum DepositElementStatus { - Unknown = 0x0100_0000, - Accepted = 0x0100_0001, + DepositPending = 0x0100_0000, + /** + * Accepted, but tracking. + */ + Tracking = 0x0100_0001, KycRequired = 0x0100_0002, Wired = 0x0500_0000, RefundSuccess = 0x0503_0000, @@ -1723,10 +1726,8 @@ export interface DepositGroupRecord { /** * The counterparty effective deposit amount. - * - * FIXME: If possible, rename to counterpartyEffectiveDepositAmount. */ - effectiveDepositAmount: AmountString; + counterpartyEffectiveDepositAmount: AmountString; timestampCreated: TalerPreciseTimestamp; @@ -1734,11 +1735,7 @@ export interface DepositGroupRecord { operationStatus: DepositOperationStatus; - // FIXME: Duplication between this and transactionPerCoin! - depositedPerCoin: boolean[]; - - // FIXME: Improve name! - transactionPerCoin: DepositElementStatus[]; + statusPerCoin: DepositElementStatus[]; /** * When the deposit transaction was aborted and |