|
|
@ -10,6 +10,7 @@ import { |
|
|
|
} from "../../../../api/client"; |
|
|
|
} from "../../../../api/client"; |
|
|
|
import styled from "styled-components"; |
|
|
|
import styled from "styled-components"; |
|
|
|
import { DisplaySignature, parseSuggestedEvent } from "../../../../web3/parseByteCode"; |
|
|
|
import { DisplaySignature, parseSuggestedEvent } from "../../../../web3/parseByteCode"; |
|
|
|
|
|
|
|
import { TipContent } from "../../../../components/ui"; |
|
|
|
|
|
|
|
|
|
|
|
const TopicsContainer = styled.div` |
|
|
|
const TopicsContainer = styled.div` |
|
|
|
text-align: left; |
|
|
|
text-align: left; |
|
|
@ -66,12 +67,15 @@ const CenteredContainer = styled.div` |
|
|
|
function TxsHashColumn (props: { log: LogWithSignature }) { |
|
|
|
function TxsHashColumn (props: { log: LogWithSignature }) { |
|
|
|
const { log } = props |
|
|
|
const { log } = props |
|
|
|
return <div style={{ width: '140px' }}> |
|
|
|
return <div style={{ width: '140px' }}> |
|
|
|
<Tip content={'Txn Hash'}> |
|
|
|
<Tip |
|
|
|
|
|
|
|
dropProps={{ align: { bottom: "top" }}} |
|
|
|
|
|
|
|
content={<TipContent showArrow={true} message={'Txn Hash'} />} |
|
|
|
|
|
|
|
> |
|
|
|
<Link to={`/tx/${log.transactionHash}`}> |
|
|
|
<Link to={`/tx/${log.transactionHash}`}> |
|
|
|
<LinkText>{log.transactionHash}</LinkText> |
|
|
|
<LinkText>{log.transactionHash}</LinkText> |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
</Tip> |
|
|
|
</Tip> |
|
|
|
<Tip content={'Block number'}> |
|
|
|
<Tip dropProps={{ align: { bottom: "top" }}} content={<TipContent showArrow={true} message={'Block number'} />}> |
|
|
|
<div style={{ display: 'flex', marginTop: '4px' }}> |
|
|
|
<div style={{ display: 'flex', marginTop: '4px' }}> |
|
|
|
# |
|
|
|
# |
|
|
|
<Link to={`/block/${log.blockNumber}`} style={{ display: 'inline-block' }}> |
|
|
|
<Link to={`/block/${log.blockNumber}`} style={{ display: 'inline-block' }}> |
|
|
@ -80,7 +84,10 @@ function TxsHashColumn (props: { log: LogWithSignature }) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</Tip> |
|
|
|
</Tip> |
|
|
|
{log.timestamp && |
|
|
|
{log.timestamp && |
|
|
|
<Tip content={dayjs(log.timestamp).format('MMM-DD-YYYY hh:mm:ss a') }> |
|
|
|
<Tip |
|
|
|
|
|
|
|
dropProps={{ align: { bottom: "top" }}} |
|
|
|
|
|
|
|
content={<TipContent showArrow={true} message={dayjs(log.timestamp).format('MMM-DD-YYYY hh:mm:ss a')} />} |
|
|
|
|
|
|
|
> |
|
|
|
<div style={{ marginTop: '4px' }}>{dayjs(log.timestamp).fromNow()}</div> |
|
|
|
<div style={{ marginTop: '4px' }}>{dayjs(log.timestamp).fromNow()}</div> |
|
|
|
</Tip> |
|
|
|
</Tip> |
|
|
|
} |
|
|
|
} |
|
|
@ -92,7 +99,7 @@ function TxMethod (props: { log: LogWithSignature }) { |
|
|
|
|
|
|
|
|
|
|
|
return <div style={{ width: '140px' }}> |
|
|
|
return <div style={{ width: '140px' }}> |
|
|
|
<Text size="12px"> |
|
|
|
<Text size="12px"> |
|
|
|
<Tip content={'MethodID'}> |
|
|
|
<Tip dropProps={{ align: { bottom: "top" }}} content={<TipContent showArrow={true} message={'MethodID'} />}> |
|
|
|
<NeutralMarker background={"backgroundBack"} width={'100px'}> |
|
|
|
<NeutralMarker background={"backgroundBack"} width={'100px'}> |
|
|
|
<TextEllipsis>{props.log.input.slice(0, 10)}</TextEllipsis> |
|
|
|
<TextEllipsis>{props.log.input.slice(0, 10)}</TextEllipsis> |
|
|
|
</NeutralMarker> |
|
|
|
</NeutralMarker> |
|
|
|