aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/wallet-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-04-05 19:13:48 +0200
committerFlorian Dold <florian@dold.me>2024-04-05 19:13:55 +0200
commitf5747b394d14f65d9bee342eb30edf47a36d9751 (patch)
treeb340bb2182d6b002f4a73b0019ab74c41c0b1b98 /packages/taler-util/src/wallet-types.ts
parent90d799ef4d68f9287ce88d00f74dcb5dba99b021 (diff)
downloadwallet-core-f5747b394d14f65d9bee342eb30edf47a36d9751.tar.xz
wallet-core: make scope info mandatory on exchange entry responses
Diffstat (limited to 'packages/taler-util/src/wallet-types.ts')
-rw-r--r--packages/taler-util/src/wallet-types.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index 441da7a87..40c837994 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -462,7 +462,7 @@ export interface GetCurrencySpecificationResponse {
export interface BuiltinExchange {
exchangeBaseUrl: string;
- currencyHint?: string;
+ currencyHint: string;
}
export interface PartialWalletRunConfig {
@@ -1397,7 +1397,7 @@ export interface ShortExchangeListItem {
export interface ExchangeListItem {
exchangeBaseUrl: string;
masterPub: string | undefined;
- currency: string | undefined;
+ currency: string;
paytoUris: string[];
tosStatus: ExchangeTosStatus;
exchangeEntryStatus: ExchangeEntryStatus;
@@ -1415,7 +1415,7 @@ export interface ExchangeListItem {
*/
noFees: boolean;
- scopeInfo: ScopeInfo | undefined;
+ scopeInfo: ScopeInfo;
lastUpdateTimestamp: TalerPreciseTimestamp | undefined;
@@ -1483,7 +1483,7 @@ export const codecForExchangeFullDetails = (): Codec<ExchangeFullDetails> =>
export const codecForExchangeListItem = (): Codec<ExchangeListItem> =>
buildCodecForObject<ExchangeListItem>()
- .property("currency", codecOptional(codecForString()))
+ .property("currency", codecForString())
.property("exchangeBaseUrl", codecForString())
.property("masterPub", codecOptional(codecForString()))
.property("paytoUris", codecForList(codecForString()))