ethers.js/utils/units.d.ts
2018-09-26 16:15:13 -04:00

8 lines
460 B
TypeScript

import { BigNumber } from './bignumber';
import { BigNumberish } from './bignumber';
export declare function commify(value: string | number): string;
export declare function formatUnits(value: BigNumberish, unitType?: string | number): string;
export declare function parseUnits(value: string, unitType?: string | number): BigNumber;
export declare function formatEther(wei: BigNumberish): string;
export declare function parseEther(ether: string): BigNumber;