(tokenAddress)
| 18 | } |
| 19 | |
| 20 | async function getInfo(tokenAddress) { |
| 21 | let token = new web3.eth.Contract(securityTokenABI, tokenAddress); |
| 22 | console.log("Token - " + tokenAddress); |
| 23 | console.log("----------------------"); |
| 24 | console.log("Owner: " + await token.methods.owner().call()); |
| 25 | console.log("Name: " + await token.methods.name().call()); |
| 26 | console.log("Symbol: " + await token.methods.symbol().call()); |
| 27 | console.log("Total Supply: " + await token.methods.totalSupply().call()); |
| 28 | console.log("Frozen: " + await token.methods.freeze().call()); |
| 29 | console.log("Investors: " + await token.methods.investorCount().call()); |
| 30 | console.log("Latest Checkpoint: " + await token.methods.currentCheckpointId().call()); |
| 31 | console.log("Finished Issuer Minting: " + await token.methods.finishedIssuerMinting().call()); |
| 32 | console.log("Finished STO Minting: " + await token.methods.finishedSTOMinting().call()); |
| 33 | let gtmRes = await token.methods.modules(2, 0).call(); |
| 34 | let gtmEvents = await getLogsFromEtherscan(gtmRes.moduleAddress, web3.utils.hexToNumber('0x5C5C18'), 'latest', 'LogModifyWhitelist(address,uint256,address,uint256,uint256,uint256,bool)'); |
| 35 | console.log("Count of GeneralTransferManager Events: " + gtmEvents.length); |
| 36 | console.log("Modules Attached (TransferManager):"); |
| 37 | await getModules(2, token); |
| 38 | console.log("Modules Attached (PermissionManager):"); |
| 39 | await getModules(1, token); |
| 40 | console.log("Modules Attached (STO):"); |
| 41 | await getModules(3, token); |
| 42 | console.log("Modules Attached (Checkpoint):"); |
| 43 | await getModules(4, token); |
| 44 | console.log("") |
| 45 | console.log(); |
| 46 | console.log(); |
| 47 | } |
| 48 | |
| 49 | async function getModules(type, token) { |
| 50 | let index = 0; |
no test coverage detected