diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-09 19:59:08 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-09 19:59:08 +0100 |
commit | 6415564b9259a4a6a2f6ec9cb934eab3d56a1677 (patch) | |
tree | 577372a635b5503c1ad81b2af8523a839e790bb7 /src/dbTypes.ts | |
parent | 99bccae9fe1588f711e7606dc3c6d7dd4a25675a (diff) | |
download | wallet-core-6415564b9259a4a6a2f6ec9cb934eab3d56a1677.tar.xz |
tos
Diffstat (limited to 'src/dbTypes.ts')
-rw-r--r-- | src/dbTypes.ts | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/dbTypes.ts b/src/dbTypes.ts index 3ffade4e3..e0abf1362 100644 --- a/src/dbTypes.ts +++ b/src/dbTypes.ts @@ -455,9 +455,10 @@ export interface ExchangeDetails { lastUpdateTime: Timestamp; } -export enum ExchangeUpdateStatus { +export const enum ExchangeUpdateStatus { FETCH_KEYS = "fetch_keys", FETCH_WIRE = "fetch_wire", + FETCH_TERMS = "fetch_terms", FINISHED = "finished", } @@ -495,6 +496,26 @@ export interface ExchangeRecord { timestampAdded: Timestamp; /** + * Terms of service text or undefined if not downloaded yet. + */ + termsOfServiceText: string | undefined; + + /** + * ETag for last terms of service download. + */ + termsOfServiceLastEtag: string | undefined; + + /** + * ETag for last terms of service download. + */ + termsOfServiceAcceptedEtag: string | undefined; + + /** + * ETag for last terms of service download. + */ + termsOfServiceAcceptedTimestamp: Timestamp | undefined; + + /** * Time when the update to the exchange has been started or * undefined if no update is in progress. */ |