From a8bd05298eccf3ac3f89afca4b28856fbb1be82f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Jul 2017 02:17:55 +0200 Subject: Store bank account information for reserve. Fixes #4852. --- src/webex/wxApi.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/webex/wxApi.ts') diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index a064b4133..9d8ba4d1d 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -264,7 +264,7 @@ export function paymentFailed(contractTermsHash: string): Promise { * Get the payment cookie for the current tab, or undefined if no payment * cookie was set. */ -export function getTabCookie(contractTermsHash: string, merchantSig: string): Promise { +export function getTabCookie(): Promise { return callBackend("get-tab-cookie", { }); } @@ -283,6 +283,13 @@ export function checkUpgrade(): Promise { return callBackend("check-upgrade", { }); } +/** + * Create a reserve. + */ +export function createReserve(args: { amount: AmountJson, exchange: string, senderWire?: object }): Promise { + return callBackend("create-reserve", args); +} + /** * Reset database */ -- cgit v1.2.3