aboutsummaryrefslogtreecommitdiff
path: root/extension/lib/wallet/types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-02-18 22:50:17 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-02-18 22:50:27 +0100
commit079e764ae6f827b1fa7c12b26f370199fc5e4d48 (patch)
treee938a0868edfaa7bfc7d38b92ed26e978446f142 /extension/lib/wallet/types.ts
parent0f607edbb2146ff82f9dcd71a1fe2905630c0d58 (diff)
downloadwallet-core-079e764ae6f827b1fa7c12b26f370199fc5e4d48.tar.xz
fix #4121 and #4115
Diffstat (limited to 'extension/lib/wallet/types.ts')
-rw-r--r--extension/lib/wallet/types.ts52
1 files changed, 52 insertions, 0 deletions
diff --git a/extension/lib/wallet/types.ts b/extension/lib/wallet/types.ts
index 197aed938..fd4ca8b01 100644
--- a/extension/lib/wallet/types.ts
+++ b/extension/lib/wallet/types.ts
@@ -53,4 +53,56 @@ export class CreateReserveResponse {
reservePub: string;
static checked: (obj: any) => CreateReserveResponse;
+}
+
+
+@Checkable.Class
+export class Denomination {
+ @Checkable.Value(AmountJson)
+ value: AmountJson;
+
+ @Checkable.String
+ denom_pub: string;
+
+ @Checkable.Value(AmountJson)
+ fee_withdraw: AmountJson;
+
+ @Checkable.Value(AmountJson)
+ fee_deposit: AmountJson;
+
+ @Checkable.Value(AmountJson)
+ fee_refresh: AmountJson;
+
+ @Checkable.String
+ stamp_start: string;
+
+ @Checkable.String
+ stamp_expire_withdraw: string;
+
+ @Checkable.String
+ stamp_expire_legal: string;
+
+ @Checkable.String
+ stamp_expire_deposit: string;
+
+ @Checkable.String
+ master_sig: string;
+
+ @Checkable.Optional(Checkable.String)
+ pub_hash: string;
+
+ static checked: (obj: any) => Denomination;
+}
+
+
+export interface IMintInfo {
+ baseUrl: string;
+ masterPublicKey: string;
+ denoms: Denomination[];
+}
+
+export interface ReserveCreationInfo {
+ mintInfo: IMintInfo;
+ selectedDenoms: Denomination[];
+ withdrawFee: AmountJson;
} \ No newline at end of file