From 553da649902f71d5ca34c9a6289ab6b1ef0ba7cb Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 20 Nov 2019 19:48:43 +0100 Subject: WIP: simplify DB queries and error handling --- src/webex/wxApi.ts | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'src/webex/wxApi.ts') diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index 39c31ca51..a50672131 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -123,13 +123,6 @@ export function getCurrencies(): Promise { } -/** - * Get information about a specific currency. - */ -export function getCurrency(name: string): Promise { - return callBackend("currency-info", {name}); -} - /** * Get information about a specific exchange. @@ -225,12 +218,6 @@ export function submitPay(contractTermsHash: string, sessionId: string | undefin return callBackend("submit-pay", { contractTermsHash, sessionId }); } -/** - * Hash a contract. Throws if its not a valid contract. - */ -export function hashContract(contract: object): Promise { - return callBackend("hash-contract", { contract }); -} /** * Mark a reserve as confirmed. @@ -284,25 +271,6 @@ export function returnCoins(args: { amount: AmountJson, exchange: string, sender } -/** - * Record an error report and display it in a tabl. - * - * If sameTab is set, the error report will be opened in the current tab, - * otherwise in a new tab. - */ -export function logAndDisplayError(args: any): Promise { - return callBackend("log-and-display-error", args); -} - -/** - * Get an error report from the logging database for the - * given report UID. - */ -export function getReport(reportUid: string): Promise { - return callBackend("get-report", { reportUid }); -} - - /** * Look up a purchase in the wallet database from * the contract terms hash. -- cgit v1.2.3