aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-24 15:43:06 +0200
committerFlorian Dold <florian@dold.me>2021-08-24 15:43:06 +0200
commit4c41e705658cbae6e4558bf29edeb39f474c244a (patch)
tree6e598a6fd1ead8972c0b6cf551c3f3cb8293aec0 /packages/taler-wallet-core/src/db.ts
parenta09359bd3930f2a4550de22bd018122a2c7846e6 (diff)
downloadwallet-core-4c41e705658cbae6e4558bf29edeb39f474c244a.tar.xz
DB schema cleanup
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts52
1 files changed, 3 insertions, 49 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 66d79ebc0..7ea8b9ead 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -46,7 +46,7 @@ import { PayCoinSelection } from "./util/coinSelection.js";
* for all previous versions must be written, which should be
* avoided.
*/
-export const TALER_DB_NAME = "taler-wallet-main-v2";
+export const TALER_DB_NAME = "taler-wallet-main-v3";
/**
* Name of the metadata database. This database is used
@@ -283,7 +283,7 @@ export interface ExchangeTrustRecord {
/**
* Status of a denomination.
*/
-export enum DenominationStatus {
+export enum DenominationVerificationStatus {
/**
* Verification was delayed.
*/
@@ -366,10 +366,8 @@ export interface DenominationRecord {
/**
* Did we verify the signature on the denomination?
- *
- * FIXME: Rename to "verificationStatus"?
*/
- status: DenominationStatus;
+ verificationStatus: DenominationVerificationStatus;
/**
* Was this denomination still offered by the exchange the last time
@@ -591,35 +589,6 @@ export interface PlanchetRecord {
}
/**
- * Planchet for a coin during refresh.
- *
- * FIXME: Not used in DB?
- */
-export interface RefreshPlanchet {
- /**
- * Public key for the coin.
- */
- publicKey: string;
-
- /**
- * Private key for the coin.
- */
- privateKey: string;
-
- /**
- * Blinded public key.
- */
- coinEv: string;
-
- coinEvHash: string;
-
- /**
- * Blinding key used.
- */
- blindingKey: string;
-}
-
-/**
* Status of a coin.
*/
export enum CoinStatus {
@@ -1320,21 +1289,6 @@ export interface WalletBackupConfState {
}
/**
- * FIXME: Eliminate this in favor of DenomSelectionState.
- */
-export interface DenominationSelectionInfo {
- totalCoinValue: AmountJson;
- totalWithdrawCost: AmountJson;
- selectedDenoms: {
- /**
- * How many times do we withdraw this denomination?
- */
- count: number;
- denom: DenominationRecord;
- }[];
-}
-
-/**
* Selected denominations withn some extra info.
*/
export interface DenomSelectionState {