@ -3,6 +3,7 @@ import Link from 'next/link';
import { PropsWithChildren , ReactNode , useState } from 'react' ;
import { MultiProvider } from '@hyperlane-xyz/sdk' ;
import { isAddress , isZeroish } from '@hyperlane-xyz/utils' ;
import { Spinner } from '../../../components/animations/Spinner' ;
import { ChainLogo } from '../../../components/icons/ChainLogo' ;
@ -48,6 +49,7 @@ export function DestinationTransactionCard({
domainId ,
status ,
transaction ,
duration ,
debugResult ,
isStatusFetching ,
isPiMsg ,
@ -57,6 +59,7 @@ export function DestinationTransactionCard({
domainId : DomainId ;
status : MessageStatus ;
transaction? : MessageTx ;
duration? : string ;
debugResult? : MessageDebugResult ;
isStatusFetching : boolean ;
isPiMsg? : boolean ;
@ -74,6 +77,7 @@ export function DestinationTransactionCard({
transaction = { transaction }
chainId = { chainId }
domainId = { domainId }
duration = { duration }
blur = { blur }
/ >
) ;
@ -190,16 +194,18 @@ function TransactionDetails({
chainId ,
domainId ,
transaction ,
duration ,
blur ,
} : {
chainId : ChainId ;
domainId : DomainId ;
transaction : MessageTx ;
duration? : string ;
blur : boolean ;
} ) {
const multiProvider = useMultiProvider ( ) ;
const { hash , from , timestamp , blockNumber } = transaction ;
const { hash , from , timestamp , blockNumber , mailbox } = transaction ;
const txExplorerLink =
hash && ! new BigNumber ( hash ) . isZero ( )
@ -230,6 +236,16 @@ function TransactionDetails({
showCopy = { true }
blurValue = { blur }
/ >
{ mailbox && isAddress ( mailbox ) && ! isZeroish ( mailbox ) && (
< KeyValueRow
label = "Mailbox:"
labelWidth = "w-16"
display = { mailbox }
displayWidth = "w-60 sm:w-64"
showCopy = { true }
blurValue = { blur }
/ >
) }
{ ! ! timestamp && (
< KeyValueRow
label = "Time:"
@ -247,6 +263,15 @@ function TransactionDetails({
displayWidth = "w-60 sm:w-64"
blurValue = { blur }
/ >
{ duration && (
< KeyValueRow
label = "Duration:"
labelWidth = "w-16"
display = { duration }
displayWidth = "w-60 sm:w-64"
blurValue = { blur }
/ >
) }
{ txExplorerLink && (
< a
className = { ` block ${ styles . textLink } ` }