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

Function archiveModule

CLI/commands/token_manager.js:541–550  ·  view source on GitHub ↗
(modules)

Source from the content-addressed store, hash-verified

539}
540
541async function archiveModule(modules) {
542 let options = modules.map(m => `${m.name} (${m.address})`);
543 let index = readlineSync.keyInSelect(options, 'Which module would you like to archive?');
544 if (index != -1) {
545 console.log("\nSelected: ", options[index]);
546 let archiveModuleAction = securityToken.methods.archiveModule(modules[index].address);
547 await common.sendTransaction(archiveModuleAction, { factor: 2 });
548 console.log(chalk.green(`${modules[index].name} has been archived successfully!`));
549 }
550}
551
552async function unarchiveModule(modules) {
553 let options = modules.map(m => `${m.name} (${m.address})`);

Callers 1

listModuleOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected