UNPKG

489 BTypeScriptView Raw
1import { BigNumber } from './configured_bignumber';
2import { Numberish } from './types';
3/**
4 * Convert a token unit amount to weis. E.g., 10.1 ETH -> 10100000000000000000.
5 */
6export declare function fromTokenUnitAmount(units: Numberish, decimals?: number): BigNumber;
7/**
8 * Convert a wei amount to token units. E.g., 10100000000000000000 -> 10.1 ETH.
9 */
10export declare function toTokenUnitAmount(weis: Numberish, decimals?: number): BigNumber;
11//# sourceMappingURL=token_utils.d.ts.map
\No newline at end of file