tools/setup/branded_token/register.js
async function() {
    const oThis = this
    ;
    logger.step("** Starting BT proposal");
    logger.info("* Name:", oThis.btName, "Symbol:", oThis.btSymbol, "Conversion Factor:", oThis.btConversionFactor);
    const proposeBTObj = new proposeBrandedToken(
      {name: oThis.btName, symbol: oThis.btSymbol, conversion_factor: oThis.btConversionFactor}
    );
    const proposeBTResponse = await proposeBTObj.perform();
    if (proposeBTResponse.isFailure()) {
      logger.error("* Proposal failed with error:", proposeBTResponse);
      process.exit(1);
    }
    return Promise.resolve(proposeBTResponse);
  }
async function() {
    const oThis = this
    ;
    logger.step("** Starting BT proposal");
    logger.info("* Name:", oThis.btName, "Symbol:", oThis.btSymbol, "Conversion Factor:", oThis.btConversionFactor);
    const proposeBTObj = new proposeBrandedToken(
      {name: oThis.btName, symbol: oThis.btSymbol, conversion_factor: oThis.btConversionFactor}
    );
    const proposeBTResponse = await proposeBTObj.perform();
    if (proposeBTResponse.isFailure()) {
      logger.error("* Proposal failed with error:", proposeBTResponse);
      process.exit(1);
    }
    return Promise.resolve(proposeBTResponse);
  }
async function ( ) { const oThis = this ; logger . step ( "** Starting BT proposal" ) ; logger . info ( "* Name:" , oThis . btName , "Symbol:" , oThis . btSymbol , "Conversion Factor:" , oThis . btConversionFactor ) ; const proposeBTObj = new proposeBrandedToken ( { name : oThis . btName , symbol : oThis . btSymbol , conversion_factor : oThis . btConversionFactor } ) ; const proposeBTResponse = await proposeBTObj . perform ( ) ; if ( proposeBTResponse . isFailure ( ) ) { logger . error ( "* Proposal failed with error:" , proposeBTResponse ) ; process . exit ( 1 ) ; } return Promise . resolve ( proposeBTResponse ) ; }
Start the proposal of branded token

@return {promise<result>}
@private
Start the proposal of branded token