From 4178dcadc6a6a856a754e3a370c22fa342735e42 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 24 Mar 2017 17:54:22 +0100 Subject: add auditor editing --- src/wxApi.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/wxApi.ts') 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 { return await callBackend("get-exchanges"); } +export async function getCurrencies(): Promise { + return await callBackend("get-currencies"); +} + +export async function updateCurrency(currencyRecord: CurrencyRecord): Promise { + return await callBackend("update-currency", { currencyRecord }); +} + export async function getReserves(exchangeBaseUrl: string): Promise { return await callBackend("get-reserves", { exchangeBaseUrl }); } -- cgit v1.2.3