lib/network/base-network.js
/**
   * Get web3 provider implementation
   * @param {string} protocol
   */
Get web3 provider implementation
@param {string} protocol
Get web3 provider implementation @param { string } protocol
static Web3Provider(protocol) {
    let Provider = null;
    switch (protocol.toLowerCase()) {
      case 'ipc':
        Provider = Web3.providers.IpcProvider;
        break;
      case 'ws':
        Provider = Web3.providers.WebsocketProvider;
        break;
      case 'http':
      case 'https':
      default:
        Provider = Web3.providers.HttpProvider;
    }
    return Provider;
  }
static Web3Provider ( protocol ) { let Provider = null ; switch ( protocol . toLowerCase ( ) ) { case 'ipc' : Provider = Web3 . providers . IpcProvider ; break ; case 'ws' : Provider = Web3 . providers . WebsocketProvider ; break ; case 'http' : case 'https' : default : Provider = Web3 . providers . HttpProvider ; } return Provider ; }
Get web3 provider implementation
 @param {string} protocol
Get web3 provider implementation @param { string } protocol