summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/wallet-types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-util/src/wallet-types.ts')
-rw-r--r--packages/taler-util/src/wallet-types.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index 5293fcd55..771d4d1f9 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -79,6 +79,7 @@ import {
TalerProtocolDuration,
TalerProtocolTimestamp,
codecForAbsoluteTime,
+ codecForPreciseTimestamp,
codecForTimestamp,
} from "./time.js";
import {
@@ -1342,6 +1343,8 @@ export interface ExchangeListItem {
scopeInfo: ScopeInfo | undefined;
+ lastUpdateTimestamp: TalerPreciseTimestamp | undefined;
+
/**
* Information about the last error that occurred when trying
* to update the exchange info.
@@ -1414,6 +1417,8 @@ export const codecForExchangeListItem = (): Codec<ExchangeListItem> =>
.property("exchangeUpdateStatus", codecForAny())
.property("ageRestrictionOptions", codecForList(codecForNumber()))
.property("scopeInfo", codecForScopeInfo())
+ .property("lastUpdateErrorInfo", codecForAny())
+ .property("lastUpdateTimestamp", codecOptional(codecForPreciseTimestamp))
.build("ExchangeListItem");
export const codecForExchangesListResponse = (): Codec<ExchangesListResponse> =>