diff options
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 8e436bc75..2a5fa0bf8 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -1305,7 +1305,9 @@ export interface ShortExchangeListItem { exchangeBaseUrl: string; } -// FIXME: This should probably include some error status. +/** + * Info about an exchange entry in the wallet. + */ export interface ExchangeListItem { exchangeBaseUrl: string; currency: string | undefined; @@ -1624,6 +1626,20 @@ export const codecForIntegrationTestV2Args = (): Codec<IntegrationTestV2Args> => .property("corebankApiBaseUrl", codecForString()) .build("IntegrationTestV2Args"); +export interface GetExchangeEntryByUrlRequest { + exchangeBaseUrl: string; +} + +export const codecForGetExchangeEntryByUrlRequest = + (): Codec<GetExchangeEntryByUrlRequest> => + buildCodecForObject<GetExchangeEntryByUrlRequest>() + .property("exchangeBaseUrl", codecForString()) + .build("GetExchangeEntryByUrlRequest"); + +export interface GetExchangeEntryByUrlResponse { + exchangeEntry: ExchangeListItem; +} + export interface AddExchangeRequest { exchangeBaseUrl: string; masterPub?: string; |