import Web3 from "web3"; export class Web3Util { static isZero(from) { return Web3.utils.toBN(from).isZero() } static convertEtherToWei(eth: number) { return Web3.utils.toWei(String(eth), "ether"); } static convertWeiToEther(wei: string) { return parseFloat(Web3.utils.fromWei(wei, "ether")); } }