aboutsummaryrefslogtreecommitdiff
path: root/src/wxApi.ts
diff options
context:
space:
mode:
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 });
}