@crtxio/abi
Version:
A tiny Solidity ABI encoder and decoder
10 lines (9 loc) • 383 B
TypeScript
import { BooleanLike, Parser } from '../types';
/**
* Get a number for a boolean-like value (e.g., strings).
*
* @param value The value to get a boolean for.
* @return The parsed boolean value. This is 1n for truthy values, or 0n for falsy values.
*/
export declare const getBooleanValue: (value: BooleanLike) => bigint;
export declare const bool: Parser<BooleanLike, boolean>;