aboutsummaryrefslogtreecommitdiff
path: root/src/wxApi.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/wxApi.ts')
-rw-r--r--src/wxApi.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wxApi.ts b/src/wxApi.ts
index 110ba442f..15e27c2e7 100644
--- a/src/wxApi.ts
+++ b/src/wxApi.ts
@@ -20,7 +20,7 @@ import {
PreCoinRecord,
ReserveCreationInfo,
ExchangeRecord,
- ReserveRecord
+ ReserveRecord, DenominationRecord
} from "./types";
/**
@@ -70,6 +70,10 @@ export async function getPreCoins(exchangeBaseUrl: string): Promise<PreCoinRecor
return await callBackend("get-precoins", { exchangeBaseUrl });
}
+export async function getDenoms(exchangeBaseUrl: string): Promise<DenominationRecord[]> {
+ return await callBackend("get-denoms", { exchangeBaseUrl });
+}
+
export async function refresh(coinPub: string): Promise<void> {
return await callBackend("refresh-coin", { coinPub });
}