tornado-oracles/lib/utils.d.ts

10 lines
390 B
TypeScript

import type { BigNumberish } from 'ethers';
export declare const isNode: boolean;
export declare function sleep(ms: number): Promise<unknown>;
/**
* Example:
*
* amountInWei (0.1 ETH) * tokenDecimals (18) * tokenPriceInWei (0.0008) = 125 TOKEN
*/
export declare function convertETHToTokenAmount(amountInWei: BigNumberish, tokenPriceInWei: BigNumberish, tokenDecimals?: number): bigint;