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<{