ethers.js/utils/units.d.ts

8 lines
460 B
TypeScript
Raw Normal View History

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