diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-27 12:05:19 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-27 12:14:26 -0300 |
commit | a4876afca7443c950d994cc21448f2bdc1cb98ee (patch) | |
tree | 0a9cc7161e7f18ff39b1214628eb702bb4ec9299 /packages/taler-util | |
parent | 525a66bcca5ee58814573d3810c0fbc02e937883 (diff) |
adding master pub for UI
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 771d4d1f9..4c87c1ac8 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -1334,6 +1334,7 @@ export interface ShortExchangeListItem { */ export interface ExchangeListItem { exchangeBaseUrl: string; + masterPub: string | undefined; currency: string | undefined; paytoUris: string[]; tosStatus: ExchangeTosStatus; @@ -1409,8 +1410,9 @@ export const codecForExchangeFullDetails = (): Codec<ExchangeFullDetails> => export const codecForExchangeListItem = (): Codec<ExchangeListItem> => buildCodecForObject<ExchangeListItem>() - .property("currency", codecForString()) + .property("currency", codecOptional(codecForString())) .property("exchangeBaseUrl", codecForString()) + .property("masterPub", codecOptional(codecForString())) .property("paytoUris", codecForList(codecForString())) .property("tosStatus", codecForAny()) .property("exchangeEntryStatus", codecForAny()) |