diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-01 04:05:16 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-01 04:05:16 +0200 |
commit | 4c03a1200eb947a0ed13f78b46fd670601b8cb80 (patch) | |
tree | 16c64421a72000ab19f939ffe492519b013fbafc /src/wxApi.ts | |
parent | bb6d8317a5ff672fccdb0a35e55077521827a48d (diff) | |
download | wallet-core-4c03a1200eb947a0ed13f78b46fd670601b8cb80.tar.xz |
implement payback (with rudimentary UI)
Diffstat (limited to 'src/wxApi.ts')
-rw-r--r-- | src/wxApi.ts | 8 |
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 }); } |