diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-03-24 17:54:22 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-03-24 17:54:22 +0100 |
commit | 4178dcadc6a6a856a754e3a370c22fa342735e42 (patch) | |
tree | 686ff11f152eab5cace57ef55154084475ed3ce5 /src/wxApi.ts | |
parent | df87dc0242caab05cb27623edf000625d1a7f039 (diff) | |
download | wallet-core-4178dcadc6a6a856a754e3a370c22fa342735e42.tar.xz |
add auditor editing
Diffstat (limited to 'src/wxApi.ts')
-rw-r--r-- | src/wxApi.ts | 9 |
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 }); } |