function BaseProvider(network) {
        var _newTarget = this.constructor;
        var _this = this;
        logger.checkNew(_newTarget, abstract_provider_1.Provider);
        _this = _super.call(this) || this;
        // Events being listened to
        _this._events = [];
        _this._emitted = { block: -2 };
        _this.formatter = _newTarget.getFormatter();
        // If network is any, this Provider allows the underlying
        // network to change dynamically, and we auto-detect the
        // current network
        (0, properties_1.defineReadOnly)(_this, "anyNetwork", (network === "any"));
        if (_this.anyNetwork) {
            network = _this.detectNetwork();
        }
        if (network instanceof Promise) {
            _this._networkPromise = network;
            // Squash any "unhandled promise" errors; that do not need to be handled
            network.catch(function (error) { });
            // Trigger initial network setting (async)
            _this._ready().catch(function (error) { });
        }
        else {
            var knownNetwork = (0, properties_1.getStatic)(_newTarget, "getNetwork")(network);
            if (knownNetwork) {
                (0, properties_1.defineReadOnly)(_this, "_network", knownNetwork);
                _this.emit("network", knownNetwork, null);
            }
            else {
                logger.throwArgumentError("invalid network", "network", network);
            }
        }
        _this._maxInternalBlockNumber = -1024;
        _this._lastBlockNumber = -2;
        _this._pollingInterval = 4000;
        _this._fastQueryDate = 0;
        return _this;
    }
/**
     *  ready
     *
     *  A Promise<Network> that resolves only once the provider is ready.
     *
     *  Sub-classes that call the super with a network without a chainId
     *  MUST set this. Standard named networks have a known chainId.
     *
     */
ready
A Promise that resolves only once the provider is ready.

Sub-classes that call the super with a network without a chainId
MUST set this. Standard named networks have a known chainId.
ready A Promise that resolves only once the provider is ready . Sub - classes that call the super with a network without a chainId MUST set this . Standard named networks have a known chainId .
function BaseProvider(network) {
        var _newTarget = this.constructor;
        var _this = this;
        logger.checkNew(_newTarget, abstract_provider_1.Provider);
        _this = _super.call(this) || this;
        _this._events = [];
        _this._emitted = { block: -2 };
        _this.formatter = _newTarget.getFormatter();
        (0, properties_1.defineReadOnly)(_this, "anyNetwork", (network === "any"));
        if (_this.anyNetwork) {
            network = _this.detectNetwork();
        }
        if (network instanceof Promise) {
            _this._networkPromise = network;
            network.catch(function (error) { });
            _this._ready().catch(function (error) { });
        }
        else {
            var knownNetwork = (0, properties_1.getStatic)(_newTarget, "getNetwork")(network);
            if (knownNetwork) {
                (0, properties_1.defineReadOnly)(_this, "_network", knownNetwork);
                _this.emit("network", knownNetwork, null);
            }
            else {
                logger.throwArgumentError("invalid network", "network", network);
            }
        }
        _this._maxInternalBlockNumber = -1024;
        _this._lastBlockNumber = -2;
        _this._pollingInterval = 4000;
        _this._fastQueryDate = 0;
        return _this;
    }
function BaseProvider ( network ) { var _newTarget = this . constructor ; var _this = this ; logger . checkNew ( _newTarget , abstract_provider_1 . Provider ) ; _this = _super . call ( this ) || this ; _this . _events = [ ] ; _this . _emitted = { block : - 2 } ; _this . formatter = _newTarget . getFormatter ( ) ; ( 0 , properties_1 . defineReadOnly ) ( _this , "anyNetwork" , ( network === "any" ) ) ; if ( _this . anyNetwork ) { network = _this . detectNetwork ( ) ; } if ( network instanceof Promise ) { _this . _networkPromise = network ; network . catch ( function ( error ) { } ) ; _this . _ready ( ) . catch ( function ( error ) { } ) ; } else { var knownNetwork = ( 0 , properties_1 . getStatic ) ( _newTarget , "getNetwork" ) ( network ) ; if ( knownNetwork ) { ( 0 , properties_1 . defineReadOnly ) ( _this , "_network" , knownNetwork ) ; _this . emit ( "network" , knownNetwork , null ) ; } else { logger . throwArgumentError ( "invalid network" , "network" , network ) ; } } _this . _maxInternalBlockNumber = - 1024 ; _this . _lastBlockNumber = - 2 ; _this . _pollingInterval = 4000 ; _this . _fastQueryDate = 0 ; return _this ; }
ready
  A Promise<Network> that resolves only once the provider is ready.
ready A Promise<Network > that resolves only once the provider is ready .
// Events being listened to // If network is any, this Provider allows the underlying // network to change dynamically, and we auto-detect the // current network // Squash any "unhandled promise" errors; that do not need to be handled // Trigger initial network setting (async)