ethers.js/packages/units/lib/index.d.ts

7 lines
446 B
TypeScript
Raw Permalink Normal View History

2019-05-14 18:48:48 -04:00
import { BigNumber, BigNumberish } from "@ethersproject/bignumber";
export declare function commify(value: string | number): string;
export declare function formatUnits(value: BigNumberish, unitName?: string | BigNumberish): string;
export declare function parseUnits(value: string, unitName?: BigNumberish): BigNumber;
export declare function formatEther(wei: BigNumberish): string;
export declare function parseEther(ether: string): BigNumber;