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

Function addModule

CLI/commands/token_manager.js:468–497  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466
467// Modules a actions
468async function addModule() {
469 let options = ['Permission Manager', 'Transfer Manager', 'Security Token Offering', 'Dividends', 'Burn'];
470 let index = readlineSync.keyInSelect(options, 'What type of module whould you like to add?', { cancel: 'Return' });
471 switch (options[index]) {
472 case 'Permission Manager':
473 console.log(chalk.red(`
474 *********************************
475 This option is not yet available.
476 *********************************`));
477 break;
478 case 'Transfer Manager':
479 await transferManager.addTransferManagerModule(tokenSymbol)
480 break;
481 case 'Security Token Offering':
482 await stoManager.addSTOModule(tokenSymbol)
483 break;
484 case 'Dividends':
485 console.log(chalk.red(`
486 *********************************
487 This option is not yet available.
488 *********************************`));
489 break;
490 case 'Burn':
491 console.log(chalk.red(`
492 *********************************
493 This option is not yet available.
494 *********************************`));
495 break;
496 }
497}
498
499async function pauseModule(modules) {
500 let options = modules.map(m => `${m.name} (${m.address})`);

Callers 1

listModuleOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected