UNPKG

@metamask/network-controller

Version:

Provides an interface to the currently selected network via a MetaMask-compatible provider object

38 lines 1.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEPRECATED_NETWORKS = exports.INFURA_BLOCKED_KEY = exports.NetworkStatus = void 0; /** * Represents the availability state of the currently selected network. */ var NetworkStatus; (function (NetworkStatus) { /** * The network may or may not be able to receive requests, but either no * attempt has been made to determine this, or an attempt was made but was * unsuccessful. */ NetworkStatus["Unknown"] = "unknown"; /** * The network is able to receive and respond to requests. */ NetworkStatus["Available"] = "available"; /** * The network was unable to receive and respond to requests for unknown * reasons. */ NetworkStatus["Unavailable"] = "unavailable"; /** * The network is not only unavailable, but is also inaccessible for the user * specifically based on their location. This state only applies to Infura * networks. */ NetworkStatus["Blocked"] = "blocked"; })(NetworkStatus || (exports.NetworkStatus = NetworkStatus = {})); exports.INFURA_BLOCKED_KEY = 'countryBlocked'; /** * A set of deprecated network ChainId. * The network controller will exclude those the networks begin as default network, * without the need to remove the network from constant list of controller-utils. */ exports.DEPRECATED_NETWORKS = new Set(['0xe704', '0x5']); //# sourceMappingURL=constants.cjs.map