aboutsummaryrefslogtreecommitdiff
path: root/src/wxApi.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-01 04:05:16 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-01 04:05:16 +0200
commit4c03a1200eb947a0ed13f78b46fd670601b8cb80 (patch)
tree16c64421a72000ab19f939ffe492519b013fbafc /src/wxApi.ts
parentbb6d8317a5ff672fccdb0a35e55077521827a48d (diff)
downloadwallet-core-4c03a1200eb947a0ed13f78b46fd670601b8cb80.tar.xz
implement payback (with rudimentary UI)
Diffstat (limited to 'src/wxApi.ts')
-rw-r--r--src/wxApi.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wxApi.ts b/src/wxApi.ts
index bdc02af1b..0f460085e 100644
--- a/src/wxApi.ts
+++ b/src/wxApi.ts
@@ -84,6 +84,14 @@ export async function getReserves(exchangeBaseUrl: string): Promise<ReserveRecor
return await callBackend("get-reserves", { exchangeBaseUrl });
}
+export async function getPaybackReserves(): Promise<ReserveRecord[]> {
+ return await callBackend("get-payback-reserves");
+}
+
+export async function withdrawPaybackReserve(reservePub: string): Promise<ReserveRecord[]> {
+ return await callBackend("withdraw-payback-reserve", { reservePub });
+}
+
export async function getCoins(exchangeBaseUrl: string): Promise<CoinRecord[]> {
return await callBackend("get-coins", { exchangeBaseUrl });
}