(investorArray, amountArray, typeArray, rollingPeriodArray, startTimeArray, endTimeTimeArray)
| 1614 | } |
| 1615 | |
| 1616 | function showRestrictionTable(investorArray, amountArray, typeArray, rollingPeriodArray, startTimeArray, endTimeTimeArray) { |
| 1617 | let dataTable = [['Investor', 'Maximum transfer (# or %)', 'Rolling period (days)', 'Start date', 'End date']]; |
| 1618 | for (let i = 0; i < investorArray.length; i++) { |
| 1619 | dataTable.push([ |
| 1620 | investorArray[i], |
| 1621 | typeArray[i] === "0" ? `${web3.utils.fromWei(amountArray[i])} ${tokenSymbol}` : `${fromWeiPercentage(amountArray[i])}%`, |
| 1622 | rollingPeriodArray[i], |
| 1623 | moment.unix(startTimeArray[i]).format('MM/DD/YYYY HH:mm'), |
| 1624 | moment.unix(endTimeTimeArray[i]).format('MM/DD/YYYY HH:mm') |
| 1625 | ]); |
| 1626 | } |
| 1627 | console.log(); |
| 1628 | console.log(table(dataTable)); |
| 1629 | } |
| 1630 | |
| 1631 | function showExemptedAddresses(addresses) { |
| 1632 | console.log("*********** Exepmpted addresses ***********"); |
no test coverage detected