@findeth/abi
Version:
A tiny Solidity ABI encoder and decoder
17 lines (16 loc) • 481 B
TypeScript
import { NumberLike, Parser } from '../types';
/**
* Check if a number type is signed.
*
* @param type The type to check.
* @return Whether the type is signed.
*/
export declare const isSigned: (type: string) => boolean;
/**
* Get a number-like value as bigint.
*
* @param value The number-like value to parse.
* @return The value parsed as bigint.
*/
export declare const asNumber: (value: NumberLike) => bigint;
export declare const number: Parser<NumberLike, bigint>;