aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-06-04 20:16:09 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-06-04 20:16:09 +0200
commit2cf33705c8ef95e04144b2a77cd4a79189136199 (patch)
treeb62b3b83d3b7fb951ba9ec00b676ff333ac73ef1 /src/types.ts
parent2b1e88737f6496fb0ad8790b501edaa1d556d83d (diff)
downloadwallet-core-2cf33705c8ef95e04144b2a77cd4a79189136199.tar.xz
warn about incompatible versions on withdraw
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts13
1 files changed, 13 insertions, 0 deletions
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;
}