(type, token)
| 78 | } |
| 79 | |
| 80 | async function getModules(type, token) { |
| 81 | let modules = await token.methods.getModulesByType(type).call(); |
| 82 | for (const m of modules) { |
| 83 | let moduleData = await token.methods.getModule(m).call(); |
| 84 | console.log(" Name: " + web3.utils.toAscii(moduleData[0])); |
| 85 | console.log(" Address: " + m); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | async function getLogsFromEtherscan(_address, _fromBlock, _toBlock, _eventSignature) { |
| 90 | let urlDomain = "api"; |