aboutsummaryrefslogtreecommitdiff
path: root/src/wxApi.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-03-24 17:54:22 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-03-24 17:54:22 +0100
commit4178dcadc6a6a856a754e3a370c22fa342735e42 (patch)
tree686ff11f152eab5cace57ef55154084475ed3ce5 /src/wxApi.ts
parentdf87dc0242caab05cb27623edf000625d1a7f039 (diff)
downloadwallet-core-4178dcadc6a6a856a754e3a370c22fa342735e42.tar.xz
add auditor editing
Diffstat (limited to 'src/wxApi.ts')
-rw-r--r--src/wxApi.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wxApi.ts b/src/wxApi.ts
index 15e27c2e7..327323648 100644
--- a/src/wxApi.ts
+++ b/src/wxApi.ts
@@ -20,6 +20,7 @@ import {
PreCoinRecord,
ReserveCreationInfo,
ExchangeRecord,
+ CurrencyRecord,
ReserveRecord, DenominationRecord
} from "./types";
@@ -58,6 +59,14 @@ export async function getExchanges(): Promise<ExchangeRecord[]> {
return await callBackend("get-exchanges");
}
+export async function getCurrencies(): Promise<CurrencyRecord[]> {
+ return await callBackend("get-currencies");
+}
+
+export async function updateCurrency(currencyRecord: CurrencyRecord): Promise<void> {
+ return await callBackend("update-currency", { currencyRecord });
+}
+
export async function getReserves(exchangeBaseUrl: string): Promise<ReserveRecord[]> {
return await callBackend("get-reserves", { exchangeBaseUrl });
}