From a57fcb144d8de40fe50b825d34a27e415ef3fec3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 14 Oct 2022 22:10:03 +0200 Subject: wallet-core: pull out ToS into separate object store --- packages/taler-util/src/backupTypes.ts | 2 -- packages/taler-util/src/walletTypes.ts | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'packages/taler-util') diff --git a/packages/taler-util/src/backupTypes.ts b/packages/taler-util/src/backupTypes.ts index a1506e90f..0270f2586 100644 --- a/packages/taler-util/src/backupTypes.ts +++ b/packages/taler-util/src/backupTypes.ts @@ -1165,8 +1165,6 @@ export interface BackupExchange { currency: string; - protocol_version_range: string; - /** * Time when the pointer to the exchange details * was last updated. diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts index c6063597d..0b2ef1d5f 100644 --- a/packages/taler-util/src/walletTypes.ts +++ b/packages/taler-util/src/walletTypes.ts @@ -620,7 +620,7 @@ export interface KnownBankAccounts { accounts: KnownBankAccountsInfo[]; } -export interface ExchangeTos { +export interface ExchangeTosStatusDetails { acceptedVersion?: string; currentVersion?: string; contentType?: string; @@ -805,7 +805,7 @@ export interface ExchangeFullDetails { exchangeBaseUrl: string; currency: string; paytoUris: string[]; - tos: ExchangeTos; + tos: ExchangeTosStatusDetails; auditors: ExchangeAuditor[]; wireInfo: WireInfo; denomFees: DenomOperationMap; @@ -817,7 +817,7 @@ export interface ExchangeListItem { exchangeBaseUrl: string; currency: string; paytoUris: string[]; - tos: ExchangeTos; + tos: ExchangeTosStatusDetails; } const codecForAuditorDenomSig = (): Codec => @@ -833,8 +833,8 @@ const codecForExchangeAuditor = (): Codec => .property("denomination_keys", codecForList(codecForAuditorDenomSig())) .build("codecForExchangeAuditor"); -const codecForExchangeTos = (): Codec => - buildCodecForObject() +const codecForExchangeTos = (): Codec => + buildCodecForObject() .property("acceptedVersion", codecOptional(codecForString())) .property("currentVersion", codecOptional(codecForString())) .property("contentType", codecOptional(codecForString())) -- cgit v1.2.3