async _initAudiusLibs () {
    const ethWeb3 = await AudiusLibs.Utils.configureWeb3(
      config.get('ethProviderUrl'),
      config.get('ethNetworkId'),
      /* requiresAccount */ false
    )
    if (!ethWeb3) {
      throw new Error('Failed to init audiusLibs due to ethWeb3 configuration error')
    }

    const discoveryProviderWhitelist = config.get('discoveryProviderWhitelist')
      ? new Set(config.get('discoveryProviderWhitelist').split(','))
      : null
    const identityService = config.get('identityService')

    const audiusLibs = new AudiusLibs({
      ethWeb3Config: AudiusLibs.configEthWeb3(
        config.get('ethTokenAddress'),
        config.get('ethRegistryAddress'),
        ethWeb3,
        config.get('ethOwnerWallet')
      ),
      web3Config: AudiusLibs.configInternalWeb3(
        config.get('dataRegistryAddress'),
        [config.get('dataProviderUrl')],
        // TODO - formatting this private key here is not ideal
        config.get('delegatePrivateKey').replace('0x', '')
      ),
      discoveryProviderConfig: AudiusLibs.configDiscoveryProvider(discoveryProviderWhitelist),
      // If an identity service config is present, set up libs with the connection, otherwise do nothing
      identityServiceConfig: identityService ? AudiusLibs.configIdentityService(identityService) : undefined,
      isDebug: config.get('creatorNodeIsDebug'),
      isServer: true,
      enableUserReplicaSetManagerContract: true
    })

    await audiusLibs.init()
    return audiusLibs
  }
/**
   * Creates, initializes, and returns an audiusLibs instance
   *
   * Configures dataWeb3 to be internal to libs, logged in with delegatePrivateKey in order to write chain TX
   */
Creates, initializes, and returns an audiusLibs instance
Configures dataWeb3 to be internal to libs, logged in with delegatePrivateKey in order to write chain TX
Creates initializes and returns an audiusLibs instance Configures dataWeb3 to be internal to libs logged in with delegatePrivateKey in order to write chain TX
async _initAudiusLibs () {
    const ethWeb3 = await AudiusLibs.Utils.configureWeb3(
      config.get('ethProviderUrl'),
      config.get('ethNetworkId'),
       false
    )
    if (!ethWeb3) {
      throw new Error('Failed to init audiusLibs due to ethWeb3 configuration error')
    }
    const discoveryProviderWhitelist = config.get('discoveryProviderWhitelist')
      ? new Set(config.get('discoveryProviderWhitelist').split(','))
      : null
    const identityService = config.get('identityService')
    const audiusLibs = new AudiusLibs({
      ethWeb3Config: AudiusLibs.configEthWeb3(
        config.get('ethTokenAddress'),
        config.get('ethRegistryAddress'),
        ethWeb3,
        config.get('ethOwnerWallet')
      ),
      web3Config: AudiusLibs.configInternalWeb3(
        config.get('dataRegistryAddress'),
        [config.get('dataProviderUrl')],
        config.get('delegatePrivateKey').replace('0x', '')
      ),
      discoveryProviderConfig: AudiusLibs.configDiscoveryProvider(discoveryProviderWhitelist),
      identityServiceConfig: identityService ? AudiusLibs.configIdentityService(identityService) : undefined,
      isDebug: config.get('creatorNodeIsDebug'),
      isServer: true,
      enableUserReplicaSetManagerContract: true
    })
    await audiusLibs.init()
    return audiusLibs
  }
async _initAudiusLibs ( ) { const ethWeb3 = await AudiusLibs . Utils . configureWeb3 ( config . get ( 'ethProviderUrl' ) , config . get ( 'ethNetworkId' ) , false ) if ( ! ethWeb3 ) { throw new Error ( 'Failed to init audiusLibs due to ethWeb3 configuration error' ) } const discoveryProviderWhitelist = config . get ( 'discoveryProviderWhitelist' ) ? new Set ( config . get ( 'discoveryProviderWhitelist' ) . split ( ',' ) ) : null const identityService = config . get ( 'identityService' ) const audiusLibs = new AudiusLibs ( { ethWeb3Config : AudiusLibs . configEthWeb3 ( config . get ( 'ethTokenAddress' ) , config . get ( 'ethRegistryAddress' ) , ethWeb3 , config . get ( 'ethOwnerWallet' ) ) , web3Config : AudiusLibs . configInternalWeb3 ( config . get ( 'dataRegistryAddress' ) , [ config . get ( 'dataProviderUrl' ) ] , config . get ( 'delegatePrivateKey' ) . replace ( '0x' , '' ) ) , discoveryProviderConfig : AudiusLibs . configDiscoveryProvider ( discoveryProviderWhitelist ) , identityServiceConfig : identityService ? AudiusLibs . configIdentityService ( identityService ) : undefined , isDebug : config . get ( 'creatorNodeIsDebug' ) , isServer : true , enableUserReplicaSetManagerContract : true } ) await audiusLibs . init ( ) return audiusLibs }
Creates, initializes, and returns an audiusLibs instance
 Configures dataWeb3 to be internal to libs, logged in with delegatePrivateKey in order to write chain TX
Creates initializes and returns an audiusLibs instance Configures dataWeb3 to be internal to libs logged in with delegatePrivateKey in order to write chain TX
/* requiresAccount */ // TODO - formatting this private key here is not ideal // If an identity service config is present, set up libs with the connection, otherwise do nothing