| 368 | } |
| 369 | |
| 370 | function logTokenResults(succeed, failed, totalGas) { |
| 371 | console.log(` |
| 372 | -------------------------------------------- |
| 373 | --------- Token Migration Results ---------- |
| 374 | -------------------------------------------- |
| 375 | Successful migrations: ${succeed.length} |
| 376 | Failed migrations: ${failed.length} |
| 377 | Total gas consumed: ${totalGas} |
| 378 | Total gas cost: ${web3.utils.fromWei((new web3.utils.BN(defaultGasPrice)).mul(totalGas))} ETH |
| 379 | List of failed registrations: |
| 380 | ${failed.map(token => chalk.red(`${token.symbol} at ${token.address}`)).join('\n')} |
| 381 | `); |
| 382 | } |
| 383 | |
| 384 | function logTickerResults(succeed, failed, totalGas) { |
| 385 | console.log(` |