import React from 'react' import { useAbiParser } from '../../../../hooks' import { CallDisplay } from './CallDisplay' export interface GeneralizedCall { address: string data: string value?: string previous?: string current?: string } interface Props { call: GeneralizedCall network: string | undefined } export function Call({ call, network }: Props) { const selector = getSelector(call.data) const { name, parseCallData, parseCallResult } = useAbiParser(selector) return ( ) } function getSelector(data: string) { if (data.startsWith('0x')) { return data.substring(2, 10) } else { return data.substring(2, 8) } }