import { Interface } from "@ethersproject/abi"; import React from "react"; import DecodedFragment from "./DecodedFragment"; type DecodedABIProps = { abi: any[]; }; const DecodedABI: React.FC = ({ abi }) => { const intf = new Interface(abi); return (
{intf.fragments.map((f, i) => ( ))}
); }; export default React.memo(DecodedABI);