From 2cf33705c8ef95e04144b2a77cd4a79189136199 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 4 Jun 2017 20:16:09 +0200 Subject: warn about incompatible versions on withdraw --- src/types.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/types.ts') diff --git a/src/types.ts b/src/types.ts index 7120f64cc..9a7a79aca 100644 --- a/src/types.ts +++ b/src/types.ts @@ -27,6 +27,7 @@ * Imports. */ import { Checkable } from "./checkable"; +import * as LibtoolVersion from "./libtoolVersion"; /** * Non-negative financial amount. Fractional values are expressed as multiples @@ -492,6 +493,11 @@ export interface ExchangeRecord { * Timestamp for last update. */ lastUpdateTime: number; + + /** + * Last observed protocol version. + */ + protocolVersion?: string; } /** @@ -558,6 +564,13 @@ export interface ReserveCreationInfo { * Public keys of trusted auditors for the currency we're withdrawing. */ trustedAuditorPubs: string[]; + /** + * Result of checking the wallet's version + * against the exchange's version. + * + * Older exchanges don't return version information. + */ + versionMatch: LibtoolVersion.VersionMatchResult|undefined; } -- cgit v1.2.3