adapt to protocol changes and improve error handling
This commit is contained in:
parent
f6ba6074b7
commit
52707f87e7
@ -125,6 +125,7 @@ namespace RpcFunctions {
|
|||||||
fee_deposit: (new native.Amount(denom.fee_deposit)).toNbo(),
|
fee_deposit: (new native.Amount(denom.fee_deposit)).toNbo(),
|
||||||
fee_refresh: (new native.Amount(denom.fee_refresh)).toNbo(),
|
fee_refresh: (new native.Amount(denom.fee_refresh)).toNbo(),
|
||||||
fee_withdraw: (new native.Amount(denom.fee_withdraw)).toNbo(),
|
fee_withdraw: (new native.Amount(denom.fee_withdraw)).toNbo(),
|
||||||
|
fee_refund: (new native.Amount(denom.fee_refund)).toNbo(),
|
||||||
});
|
});
|
||||||
|
|
||||||
let nativeSig = new native.EddsaSignature();
|
let nativeSig = new native.EddsaSignature();
|
||||||
|
@ -866,6 +866,7 @@ export interface DenominationKeyValidityPS_args {
|
|||||||
fee_withdraw: AmountNbo;
|
fee_withdraw: AmountNbo;
|
||||||
fee_deposit: AmountNbo;
|
fee_deposit: AmountNbo;
|
||||||
fee_refresh: AmountNbo;
|
fee_refresh: AmountNbo;
|
||||||
|
fee_refund: AmountNbo;
|
||||||
denom_hash: HashCode;
|
denom_hash: HashCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -889,6 +890,7 @@ export class DenominationKeyValidityPS extends SignatureStruct {
|
|||||||
["fee_withdraw", AmountNbo],
|
["fee_withdraw", AmountNbo],
|
||||||
["fee_deposit", AmountNbo],
|
["fee_deposit", AmountNbo],
|
||||||
["fee_refresh", AmountNbo],
|
["fee_refresh", AmountNbo],
|
||||||
|
["fee_refund", AmountNbo],
|
||||||
["denom_hash", HashCode]
|
["denom_hash", HashCode]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,9 @@ export class Denomination {
|
|||||||
@Checkable.Value(AmountJson)
|
@Checkable.Value(AmountJson)
|
||||||
fee_refresh: AmountJson;
|
fee_refresh: AmountJson;
|
||||||
|
|
||||||
|
@Checkable.Value(AmountJson)
|
||||||
|
fee_refund: AmountJson;
|
||||||
|
|
||||||
@Checkable.String
|
@Checkable.String
|
||||||
stamp_start: string;
|
stamp_start: string;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"description": "Privacy preserving and transparent payments",
|
"description": "Privacy preserving and transparent payments",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "GNU Taler Wallet (git)",
|
"name": "GNU Taler Wallet (git)",
|
||||||
"version": "0.5.19",
|
"version": "0.5.20",
|
||||||
|
|
||||||
"applications": {
|
"applications": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
|
@ -121,8 +121,9 @@ class Controller {
|
|||||||
console.log("get exchange info rejected");
|
console.log("get exchange info rejected");
|
||||||
if (e.hasOwnProperty("httpStatus")) {
|
if (e.hasOwnProperty("httpStatus")) {
|
||||||
this.statusString = `request failed with status ${this.request.status}`;
|
this.statusString = `request failed with status ${this.request.status}`;
|
||||||
} else {
|
} else if (e.hasOwnProperty("errorResponse")) {
|
||||||
this.statusString = `unknown request error`;
|
let resp = e.errorResponse;
|
||||||
|
this.statusString = `error: ${resp.error} (${resp.hint})`;
|
||||||
}
|
}
|
||||||
m.endComputation();
|
m.endComputation();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user