tornado-oracles/lib/utils.d.ts

10 lines
390 B
TypeScript
Raw Permalink Normal View History

2024-05-12 17:49:53 +00:00
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;