| 466 | |
| 467 | // Modules a actions |
| 468 | async 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 | |
| 499 | async function pauseModule(modules) { |
| 500 | let options = modules.map(m => `${m.name} (${m.address})`); |