From d2e13d1f5c870df6d5be1ce339ad94b6d811fa26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Thu, 25 Jul 2024 09:08:28 +0200 Subject: [PATCH] fixup! --- src/status/InvoicePending.tsx | 2 +- src/status/TransactionConfirmed.tsx | 2 +- src/status/TransactionMempool.tsx | 2 +- src/utils/boltzClient.ts | 34 +++++++++++++++-------------- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/status/InvoicePending.tsx b/src/status/InvoicePending.tsx index ddcfc4d6..e4db2f57 100644 --- a/src/status/InvoicePending.tsx +++ b/src/status/InvoicePending.tsx @@ -12,7 +12,7 @@ const InvoicePending = () => {

{t("invoice_pending")}

- + {

{t("tx_confirmed")}

{t("tx_ready_to_claim")}

- + {

{t("tx_in_mempool")}

{t("tx_in_mempool_subline")}

- + hex: txHex, }); +export type LockupTransaction = { + id: string; + hex: string; + timeoutBlockHeight: number; + timeoutEta?: number; +}; + export const getLockupTransaction = async ( asset: string, id: string, @@ -404,16 +404,18 @@ export const getReverseTransaction = (asset: string, id: string) => timeoutBlockHeight: number; }>(`/v2/swap/reverse/${id}/transaction`, asset); +export type SwapStatus = { + status: string; + failureReason?: string; + zeroConfRejected?: boolean; + transaction?: { + id: string; + hex: string; + }; +}; + export const getSwapStatus = (asset: string, id: string) => - fetcher<{ - status: string; - failureReason?: string; - zeroConfRejected?: boolean; - transaction?: { - id: string; - hex: string; - }; - }>(`/v2/swap/${id}`, asset); + fetcher(`/v2/swap/${id}`, asset); export const getChainSwapClaimDetails = (asset: string, id: string) => fetcher<{