From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- src/webex/wxApi.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/webex/wxApi.ts') diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index e5da642f1..fde7b8c35 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -34,6 +34,7 @@ import { ReserveRecord, } from "../dbTypes"; import { + BenchmarkResult, CheckPayResult, ConfirmPayResult, ReserveCreationInfo, @@ -392,3 +393,11 @@ export function acceptRefund(refundUrl: string): Promise { export function abortFailedPayment(contractTermsHash: string) { return callBackend("abort-failed-payment", { contractTermsHash }); } + + +/** + * Abort a failed payment and try to get a refund. + */ +export function benchmarkCrypto(repetitions: number): Promise { + return callBackend("benchmark-crypto", { repetitions }); +} -- cgit v1.2.3