@ethereum-sourcify/contract-call-decoder
Version:
Library to decode Ethereum smart contract calls into human-readable descriptions using ABI and NatSpec
9 lines (8 loc) • 416 B
TypeScript
import { Result } from '@ethersproject/abi';
/**
*
* @param decodedFunctionData response from ethers Interface.decodeFunctionData (mixed typed index array)
* @returns a javascript rappresentation of the arrays / objects / values passed in the calldata
*/
export declare function getValueFromDecodedFunctionData(decodedFunctionData: Result): unknown;
export declare function extractCustomFields(doc: Result): {};