aboutsummaryrefslogtreecommitdiff
path: root/src/walletTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-11-28 00:46:34 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-11-28 00:46:34 +0100
commit706c07fa1d069290992bd31d53b0c89324992f9c (patch)
tree8114c23cda7547f8475c7d8d579f51f968a97f9d /src/walletTypes.ts
parentc3ca556affe2f514aeb7fd052fe6d626d9319e99 (diff)
downloadwallet-core-706c07fa1d069290992bd31d53b0c89324992f9c.tar.xz
implement JS-only Taler, remove emscripten
Diffstat (limited to 'src/walletTypes.ts')
-rw-r--r--src/walletTypes.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/walletTypes.ts b/src/walletTypes.ts
index a11da029f..b971e300d 100644
--- a/src/walletTypes.ts
+++ b/src/walletTypes.ts
@@ -113,7 +113,7 @@ export interface ReserveCreationInfo {
/**
* The earliest deposit expiration of the selected coins.
*/
- earliestDepositExpiration: number;
+ earliestDepositExpiration: Timestamp;
/**
* Number of currently offered denominations.
@@ -591,11 +591,15 @@ export interface HistoryQuery {
level: number;
}
-export interface Timestamp {
+@Checkable.Class()
+export class Timestamp {
/**
* Timestamp in milliseconds.
*/
+ @Checkable.Number()
t_ms: number;
+
+ static checked: (obj: any) => Timestamp;
}
export interface Duration {