ethers.js/utils/units.d.ts

8 lines
460 B
TypeScript
Raw Permalink Normal View History

import { BigNumber } from './bignumber';
import { BigNumberish } from './bignumber';
2018-09-26 16:15:13 -04:00
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;
2018-09-26 16:15:13 -04:00
export declare function formatEther(wei: BigNumberish): string;
export declare function parseEther(ether: string): BigNumber;