import React from "react"; import { ParamType, Result } from "@ethersproject/abi"; import DecodedParamRow from "./DecodedParamRow"; import { TransactionData } from "../../types"; import { DevMethod, UserMethod } from "../../useSourcify"; type DecodedParamsTableProps = { args: Result; paramTypes: ParamType[]; txData: TransactionData; hasParamNames?: boolean; userMethod?: UserMethod | undefined; devMethod?: DevMethod | undefined; }; const DecodedParamsTable: React.FC = ({ args, paramTypes, txData, hasParamNames = true, devMethod, }) => ( {!hasParamNames && ( )} {args.map((r, i) => ( ))}
name (index) type value
{paramTypes.length > 0 && paramTypes[0].name !== null ? "Parameter names are estimated." : "Parameter names are not available."}
); export default React.memo(DecodedParamsTable);