@findeth/abi
Version:
A tiny Solidity ABI encoder and decoder
10 lines (9 loc) • 400 B
TypeScript
import { FunctionLike, Parser, SolidityFunction } from '../types';
/**
* Get the encoded function as buffer. It consists of the address (20 bytes) and function selector (4 bytes).
*
* @param input The function-like input.
* @return The function as buffer.
*/
export declare const getFunction: (input: FunctionLike) => Uint8Array;
export declare const fn: Parser<FunctionLike, SolidityFunction>;