lib/network/truffle-network.js
/**
   * Initialize from truffle config
   * @param {string} truffleConfigFile
   * @param {string} networkId
   */
Initialize from truffle config
@param {string} truffleConfigFile
@param {string} networkId
Initialize from truffle config @param { string } truffleConfigFile @param { string } networkId
static fromTruffleConfigFile(truffleConfigFile, networkId) {
    const config = require(truffleConfigFile);
    return new this(config.networks[networkId]);
  }
static fromTruffleConfigFile ( truffleConfigFile , networkId ) { const config = require ( truffleConfigFile ) ; return new this ( config . networks [ networkId ] ) ; }
Initialize from truffle config
 @param {string} truffleConfigFile
 @param {string} networkId
Initialize from truffle config @param { string } truffleConfigFile @param { string } networkId