import * as BigNumber from 'bignumber.js' ; import * as truffle from 'truffle-contract' ; import * as Web3 from 'web3' ; export function txPrice ( web3 , log ) { return web3 . eth . getTransaction ( log . tx ) . gasPrice . mul ( log . receipt . gasUsed ) ; }