import React, { Fragment } from "react"; import { Log } from "@ethersproject/abstract-provider"; import { LogDescription } from "@ethersproject/abi"; import { Tab } from "@headlessui/react"; import AddressHighlighter from "../components/AddressHighlighter"; import DecoratedAddressLink from "../components/DecoratedAddressLink"; import Copy from "../components/Copy"; import ModeTab from "../components/ModeTab"; import DecodedParamsTable from "./DecodedParamsTable"; 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
Decoded Raw
{logDesc && ( <>
Signature
Name
)}
{log.topics.map((t, i) => (
{i === 0 && "Topics"}
{i} {t}
))}
Data