diff options
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 6b1fc2f5f..d2c6b8368 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -569,21 +569,6 @@ export interface ExchangeDetailsRecord { */ globalFees: ExchangeGlobalFees[]; - /** - * Etag of the current ToS of the exchange. - */ - tosCurrentEtag: string; - - /** - * Information about ToS acceptance from the user. - */ - tosAccepted: - | { - etag: string; - timestamp: DbPreciseTimestamp; - } - | undefined; - wireInfo: WireInfo; /** @@ -615,8 +600,8 @@ export enum ExchangeEntryDbUpdateStatus { Initial = 1, InitialUpdate = 2, Suspended = 3, - Failed = 4, - OutdatedUpdate = 5, + UnavailableUpdate = 4, + // Reserved 5 for backwards compatibility. Ready = 6, ReadyUpdate = 7, } @@ -660,6 +645,15 @@ export interface ExchangeEntryRecord { updateStatus: ExchangeEntryDbUpdateStatus; /** + * Etag of the current ToS of the exchange. + */ + tosCurrentEtag: string | undefined; + + tosAcceptedEtag: string | undefined; + + tosAcceptedTimestamp: DbPreciseTimestamp | undefined; + + /** * Last time when the exchange /keys info was updated. */ lastUpdate: DbPreciseTimestamp | undefined; |