CLI/commands/token_manager.js
async function addModule() {
  let options = ['Permission Manager', 'Transfer Manager', 'Security Token Offering', 'Dividends', 'Burn'];
  let index = readlineSync.keyInSelect(options, 'What type of module would you like to add?', { cancel: 'Return' });
  switch (options[index]) {
    case 'Permission Manager':
      console.log(chalk.red(`
    *********************************
    This option is not yet available.
    *********************************`));
      break;
    case 'Transfer Manager':
      await transferManager.addTransferManagerModule(tokenSymbol)
      break;
    case 'Security Token Offering':
      await stoManager.addSTOModule(tokenSymbol)
      break;
    case 'Dividends':
      console.log(chalk.red(`
    *********************************
    This option is not yet available.
    *********************************`));
      break;
    case 'Burn':
      console.log(chalk.red(`
    *********************************
    This option is not yet available.
    *********************************`));
      break;
  }
}
async function addModule() {
  let options = ['Permission Manager', 'Transfer Manager', 'Security Token Offering', 'Dividends', 'Burn'];
  let index = readlineSync.keyInSelect(options, 'What type of module would you like to add?', { cancel: 'Return' });
  switch (options[index]) {
    case 'Permission Manager':
      console.log(chalk.red(`
    *********************************
    This option is not yet available.
    *********************************`));
      break;
    case 'Transfer Manager':
      await transferManager.addTransferManagerModule(tokenSymbol)
      break;
    case 'Security Token Offering':
      await stoManager.addSTOModule(tokenSymbol)
      break;
    case 'Dividends':
      console.log(chalk.red(`
    *********************************
    This option is not yet available.
    *********************************`));
      break;
    case 'Burn':
      console.log(chalk.red(`
    *********************************
    This option is not yet available.
    *********************************`));
      break;
  }
}
async function addModule ( ) { let options = [ 'Permission Manager' , 'Transfer Manager' , 'Security Token Offering' , 'Dividends' , 'Burn' ] ; let index = readlineSync . keyInSelect ( options , 'What type of module would you like to add?' , { cancel : 'Return' } ) ; switch ( options [ index ] ) { case 'Permission Manager' : console . log ( chalk . red ( ` ` ) ) ; break ; case 'Transfer Manager' : await transferManager . addTransferManagerModule ( tokenSymbol ) break ; case 'Security Token Offering' : await stoManager . addSTOModule ( tokenSymbol ) break ; case 'Dividends' : console . log ( chalk . red ( ` ` ) ) ; break ; case 'Burn' : console . log ( chalk . red ( ` ` ) ) ; break ; } }
Modules a actions
Modules a actions