import React from "react"; import { Log } from "@ethersproject/abstract-provider"; import { LogDescription } from "@ethersproject/abi"; import DecoratedAddressLink from "../components/DecoratedAddressLink"; import DecodedLog from "./DecodedLog"; import DecodedLogSignature from "./DecodedLogSignature"; import { TransactionData } from "../types"; type LogEntryProps = { txData: TransactionData; log: Log; logDesc: LogDescription | null | undefined; }; const LogEntry: React.FC = ({ txData, log, logDesc }) => (
{log.logIndex}
Address
{logDesc && (
Signature
)} {logDesc && (
Name
)} {log.topics.map((t, i) => (
{i === 0 && "Topics"}
{i} {t}
))}
Data