MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / getModules

Function getModules

scripts/tokenInfo-v2.js:80–87  ·  view source on GitHub ↗
(type, token)

Source from the content-addressed store, hash-verified

78}
79
80async 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
89async function getLogsFromEtherscan(_address, _fromBlock, _toBlock, _eventSignature) {
90 let urlDomain = "api";

Callers 1

getInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected