tools/setup/branded_token/register.js
async function() {
    const oThis = this
      , existingBrandedTokens = await oThis._loadBrandedTokenConfig()
    ;

    if (existingBrandedTokens[oThis.uuid]) {
      logger.error("* Branded token uuid already registered and present in BT config file");
      process.exit(1);
    }

    existingBrandedTokens[oThis.uuid] = {
      Name: oThis.btName,
      Symbol: oThis.btSymbol,
      ConversionFactor: oThis.btConversionFactor,
      Reserve: oThis.reserveAddress,
      ReservePassphrase: oThis.reservePassphrase,
      UUID: oThis.uuid,
      ERC20: oThis.erc20
    };

    logger.info("* Branded token config:", existingBrandedTokens[oThis.uuid]);

    return tokenHelper.addBrandedToken(existingBrandedTokens);
  }
async function() {
    const oThis = this
      , existingBrandedTokens = await oThis._loadBrandedTokenConfig()
    ;

    if (existingBrandedTokens[oThis.uuid]) {
      logger.error("* Branded token uuid already registered and present in BT config file");
      process.exit(1);
    }

    existingBrandedTokens[oThis.uuid] = {
      Name: oThis.btName,
      Symbol: oThis.btSymbol,
      ConversionFactor: oThis.btConversionFactor,
      Reserve: oThis.reserveAddress,
      ReservePassphrase: oThis.reservePassphrase,
      UUID: oThis.uuid,
      ERC20: oThis.erc20
    };

    logger.info("* Branded token config:", existingBrandedTokens[oThis.uuid]);

    return tokenHelper.addBrandedToken(existingBrandedTokens);
  }
async function ( ) { const oThis = this , existingBrandedTokens = await oThis . _loadBrandedTokenConfig ( ) ; if ( existingBrandedTokens [ oThis . uuid ] ) { logger . error ( "* Branded token uuid already registered and present in BT config file" ) ; process . exit ( 1 ) ; } existingBrandedTokens [ oThis . uuid ] = { Name : oThis . btName , Symbol : oThis . btSymbol , ConversionFactor : oThis . btConversionFactor , Reserve : oThis . reserveAddress , ReservePassphrase : oThis . reservePassphrase , UUID : oThis . uuid , ERC20 : oThis . erc20 } ; logger . info ( "* Branded token config:" , existingBrandedTokens [ oThis . uuid ] ) ; return tokenHelper . addBrandedToken ( existingBrandedTokens ) ; }
Update branded token details

@return {promise<object>} - branded tokens list
@private
Update branded token details