adapt to protocol changes and improve error handling

This commit is contained in:
Florian Dold 2016-04-22 18:03:56 +02:00
parent f6ba6074b7
commit 52707f87e7
5 changed files with 10 additions and 3 deletions

View File

@ -125,6 +125,7 @@ namespace RpcFunctions {
fee_deposit: (new native.Amount(denom.fee_deposit)).toNbo(),
fee_refresh: (new native.Amount(denom.fee_refresh)).toNbo(),
fee_withdraw: (new native.Amount(denom.fee_withdraw)).toNbo(),
fee_refund: (new native.Amount(denom.fee_refund)).toNbo(),
});
let nativeSig = new native.EddsaSignature();

View File

@ -866,6 +866,7 @@ export interface DenominationKeyValidityPS_args {
fee_withdraw: AmountNbo;
fee_deposit: AmountNbo;
fee_refresh: AmountNbo;
fee_refund: AmountNbo;
denom_hash: HashCode;
}
@ -889,6 +890,7 @@ export class DenominationKeyValidityPS extends SignatureStruct {
["fee_withdraw", AmountNbo],
["fee_deposit", AmountNbo],
["fee_refresh", AmountNbo],
["fee_refund", AmountNbo],
["denom_hash", HashCode]
];
}

View File

@ -75,6 +75,9 @@ export class Denomination {
@Checkable.Value(AmountJson)
fee_refresh: AmountJson;
@Checkable.Value(AmountJson)
fee_refund: AmountJson;
@Checkable.String
stamp_start: string;

View File

@ -2,7 +2,7 @@
"description": "Privacy preserving and transparent payments",
"manifest_version": 2,
"name": "GNU Taler Wallet (git)",
"version": "0.5.19",
"version": "0.5.20",
"applications": {
"gecko": {

View File

@ -121,8 +121,9 @@ class Controller {
console.log("get exchange info rejected");
if (e.hasOwnProperty("httpStatus")) {
this.statusString = `request failed with status ${this.request.status}`;
} else {
this.statusString = `unknown request error`;
} else if (e.hasOwnProperty("errorResponse")) {
let resp = e.errorResponse;
this.statusString = `error: ${resp.error} (${resp.hint})`;
}
m.endComputation();
});