aboutsummaryrefslogtreecommitdiff
path: root/src/wxBackend.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/wxBackend.ts')
-rw-r--r--src/wxBackend.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wxBackend.ts b/src/wxBackend.ts
index ad738acfb..7c3143136 100644
--- a/src/wxBackend.ts
+++ b/src/wxBackend.ts
@@ -204,6 +204,12 @@ function makeHandlers(db: IDBDatabase,
["get-exchanges"]: function (detail, sender) {
return wallet.getExchanges();
},
+ ["get-currencies"]: function (detail, sender) {
+ return wallet.getCurrencies();
+ },
+ ["update-currency"]: function (detail, sender) {
+ return wallet.updateCurrency(detail.currencyRecord);
+ },
["get-reserves"]: function (detail, sender) {
if (typeof detail.exchangeBaseUrl !== "string") {
return Promise.reject(Error("exchangeBaseUrl missing"));