ethers.js/packages/units/index.d.ts
2019-05-14 18:48:48 -04:00

7 lines
446 B
TypeScript

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;