@metamask-previews/network-controller 12.1.1-preview.d32a7cc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,261 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [12.1.1]
10
+ ### Added
11
+ - Added an export for NetworkClientId in NetworkController ([#1583](https://github.com/MetaMask/core/pull/1583))
12
+
13
+ ## [12.1.0]
14
+ ### Added
15
+ - Add `getNetworkClientById` ([#1562](https://github.com/MetaMask/core/pull/1562))
16
+ - Add `findNetworkClientIdByChainId` ([#1571](https://github.com/MetaMask/core/pull/1571))
17
+
18
+ ## [12.0.0]
19
+ ### Added
20
+ - Add `NetworksMetadata` type ([#1559](https://github.com/MetaMask/core/pull/1559))
21
+
22
+ ### Changed
23
+ - **BREAKING:** Remove `NetworkDetails` type in favor of `NetworkMetadata` ([#1559](https://github.com/MetaMask/core/pull/1559))
24
+ - This new type includes `NetworkDetails` plus a `status` property
25
+ - **BREAKING:** Add `networksMetadata` to state ([#1559](https://github.com/MetaMask/core/pull/1559))
26
+ - Consumers will need to add a migration. The data for this property can be constructed by looping over the values in `InfuraNetworkType` from `@metamask/controller-utils` plus the network configuration IDs in the state property `networkConfigurations` and setting each value to `{ status: "unknown", EIPS: {} }`.
27
+ - **BREAKING:** Add `selectedNetworkClientId` to state ([#1548](https://github.com/MetaMask/core/pull/1548))
28
+ - Consumers will need to add a migration. This property should be set to either `providerConfig.type` or `providerConfig.id`.
29
+ - Update `getEIP1559Compatibility` to return `undefined` when the latest block is unavailable ([#1457](https://github.com/MetaMask/core/pull/1457))
30
+ - Replace `eth-query` ^2.1.2 with `@metamask/eth-query` ^3.0.1 ([#1546](https://github.com/MetaMask/core/pull/1546))
31
+
32
+ ### Removed
33
+ - **BREAKING:** Remove `networkDetails` from state ([#1559](https://github.com/MetaMask/core/pull/1559))
34
+ - The data in this state property has been merged into the new `networksMetadata` state property; each value in this object contains an `EIPS` property.
35
+
36
+ ## [11.0.0]
37
+ ### Changed
38
+ - **BREAKING**: Require `ticker` to be included in the `providerConfig` state ([#1495](https://github.com/MetaMask/core/pull/1495))
39
+ - This requires a state migration, setting `providerConfig.ticker` to `ETH` if it's missing.
40
+ - Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514))
41
+ - Bump @metamask/eth-json-rpc-infura from 8.1.0 to 8.1.1 ([#1517](https://github.com/MetaMask/core/pull/1517))
42
+ - Remove unnecessary `babel-runtime` dependency ([#1504](https://github.com/MetaMask/core/pull/1504))
43
+
44
+ ## [10.3.1]
45
+ ### Changed
46
+ - Bump `@metamask/eth-json-rpc-infura` dependency from ^8.0.0 to ^8.1.0
47
+ - This extends the types that this package recognizes to include Linea networks
48
+
49
+ ## [10.3.0]
50
+ ### Added
51
+ - Add `getNetworkClientsById` method ([#1439](https://github.com/MetaMask/core/pull/1439))
52
+ - This method returns a registry of available built-in and custom networks, allowing consumers to access multiple networks simultaneously if desired
53
+
54
+ ### Changed
55
+ - Network clients are retained and will no longer be destroyed or recreated whenever the network is initialized or switched ([#1439](https://github.com/MetaMask/core/pull/1439))
56
+ - This means that cached responses for a network will no longer disappear when a different network is selected
57
+ - Update `upsertNetworkConfiguration` to keep the network client registry up to date with changes to the set of network configurations ([#1439](https://github.com/MetaMask/core/pull/1439))
58
+ - If a new network configuration is added, the information in it will be used to create and register a new network client
59
+ - If an existing network configuration is updated, its information will be used to recreate the client for the corresponding network
60
+
61
+ ## [10.2.0]
62
+ ### Added
63
+ - Expose `BlockTracker` type ([#1443](https://github.com/MetaMask/core/pull/1443))
64
+
65
+ ## [10.1.0]
66
+ ### Added
67
+ - Add `loadBackup` method to NetworkController ([#1421](https://github.com/MetaMask/core/pull/1421))
68
+
69
+ ## [10.0.0]
70
+ ### Changed
71
+ - **BREAKING:** Update `getEIP1559Compatibility` to return `false` instead of `true` if the provider has not been initialized yet ([#1404](https://github.com/MetaMask/core/pull/1404))
72
+ - Update `getEIP1559Compatibility` to not hit the current network if it is known that it does not support EIP-1559 ([#1404](https://github.com/MetaMask/core/pull/1404))
73
+ - Update `networkDetails` initial state from `{ EIPS: { 1559: false } }` to `{ EIPS: {} }` ([#1404](https://github.com/MetaMask/core/pull/1404))
74
+ - Update lookupNetwork to unset `networkDetails.EIPS[1559]` in state instead of setting it `false` if either of its requests for the network ID or network details fails ([#1403](https://github.com/MetaMask/core/pull/1403))
75
+
76
+ ## [9.0.0]
77
+ ### Added
78
+ - The events `networkWillChange` and `networkDidChange` are emitted during `setProviderType`, `setActiveNetwork`, `resetConnection`, and `rollbackToPreviousProvider` ([#1336](https://github.com/MetaMask/core/pull/1336))
79
+ - The `networkWillChange` event is emitted before the network is switched (before the network status is cleared),
80
+ - The `networkDidChange` event is emitted after the new provider is setup (but before it has finished initializing).
81
+ - Add `destroy` method ([#1330](https://github.com/MetaMask/core/pull/1330))
82
+ - Add events `infuraIsBlocked` and `infuraIsUnblocked` ([#1264](https://github.com/MetaMask/core/pull/1264))
83
+ - Add `NetworkController:getState` action constant ([#1329](https://github.com/MetaMask/core/pull/1329))
84
+
85
+ ### Changed
86
+ - **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
87
+ - **BREAKING:** The `providerConfig` type and state property have changed. The `chainId` property is now `Hex` rather than a decimal `string` ([#1367](https://github.com/MetaMask/core/pull/1367))
88
+ - This requires a state migration
89
+ - This affects the return value of the `NetworkController:getProviderConfig` and `NetworkController:getState` actions.
90
+ - **BREAKING:** The `NetworkConfiguration` type and the `networkConfigurations` state property have changed. The `chainId` property on each configuration is now `Hex` rather than a decimal `string`. ([#1367](https://github.com/MetaMask/core/pull/1367))
91
+ - This requires a state migration
92
+ - This change affects the `upsertNetworkConfiguration` method, which takes a network configuration as the first parameter
93
+ - This affects the return value of the `NetworkController:getState` action
94
+ - Allow overlapping `lookupNetwork` calls ([#1375](https://github.com/MetaMask/core/pull/1375))
95
+ - `lookupNetwork` no longer uses a mutex, meaning that a lookup can be initiated before the previous one has finished. This allows for faster network switching
96
+ - When there is an overlap in `lookupNetwork` calls, the older one is aborted before events are emitted and before state changes
97
+ - **BREAKING:** Change `networkDetails` format ([#1326](https://github.com/MetaMask/core/pull/1326))
98
+ - Previously `networkDetails` was `{ isEIP1559Compatible: boolean }`, now it is `{ EIPS: { [eipNumber: number]: boolean } }`
99
+ - **BREAKING:** Update NetworkController to use a simpler middleware stack derived from pieces of `eth-json-rpc-middleware` instead of `web3-provider-engine` ([#1116](https://github.com/MetaMask/core/pull/1116))
100
+ - A call to `eth_chainId` on a custom network will now return the `chainId` in the provider config rather than the chain ID returned by the network.
101
+ - A call to `eth_chainId` on a built-in Infura network will now return a hard-coded chain ID rather than the chain ID returned by the network.
102
+ - A call to `net_version` on a built-in Infura network will now return a hard-coded network ID rather than the network ID returned by the network.
103
+ - Previously, RPC requests with an object as the first parameter (e.g. `eth_call`) were "sanitized" (i.e. unknown properties were removed from this first parameter, and any hex strings were normalized). This no longer happens. Instead these requests will pass through to the network unchanged.
104
+ - A call to `eth_getBalance`, `eth_getBlockByNumber`, `eth_getCode`, `eth_getTransactionCount`, or `eth_call` will now be intercepted such that a block tag parameter of `"latest"` will be replaced with the latest known block number before being passed to the network.
105
+ - This substitution makes it more likely that we can return a cached response to the request.
106
+ - Previously, a `eth_getTransactionCount` request with a block tag of `"pending"` would be intercepted and given a result from our nonce cache (if the cache was populated for the given address). This nonce cache was updated upon each call to `eth_sendRawTransaction` based on the nonce of the transaction being sent. The whole nonce cache was also cleared upon a call to `evm_revert`. This no longer happens, and these RPC methods will be passed to the network unchanged.
107
+ - If you were using this to get a suggested next nonce, you can instead use the `nonceTracker` that `@metamask/transaction-controller` exposes
108
+ - A call to `web3_clientVersion` is no longer intercepted to return a static result of `"ProviderEngine/v<version>/javascript"`
109
+ - A call to `net_listening` is no longer intercepted to return a static result of `true`
110
+ - A call to `eth_hashrate` is no longer intercepted to return a static result of `"0x00"`
111
+ - A call to `eth_mining` is no longer intercepted to return a static result of `false`
112
+ - Previously, `eth_subscribe` and `eth_unsubscribe` would never hit the network; instead, the behavior was polyfilled by polling the network for new blocks. Additionally, the `newPendingTransactions` parameter for `eth_subscribe` was unsupported. This polyfill is no longer present, and `eth_subscribe` and `eth_unsubscribe` are passed through to the network unchanged.
113
+ - Consumers wishing to recreate the prior behavior and use the block tracker to power subscriptions may employ the middleware provided by the `eth-json-rpc-filters` package.
114
+ - Previously, `eth_newFilter`, `eth_newBlockFilter`, `eth_newPendingTransactionFilter`, `eth_uninstallFilter`, `eth_getFilterChanges`, and `eth_getFilterLogs` would never hit the network; instead, the behavior was polyfilled by polling the network for new blocks and recording updates for registered filters. This polyfill is no longer present, and these RPC methods are passed through to the network unchanged.
115
+ - Consumers wishing to recreate the prior behavior and use the block tracker to power filters may employ the middleware provided by the `eth-json-rpc-filters` package.
116
+ - Interfacing with a network that exposes a websocket is no longer supported.
117
+ - **BREAKING:** The methods `initializeProvider`, `setActiveNetwork`, and `resetConnection` will now throw if the provider config is of type `rpc` but is missing an RPC URL or a chain ID. ([#1316](https://github.com/MetaMask/core/pull/1316))
118
+ - Previously the chain ID was not required to setup the provider.
119
+ - Previously if the RPC URL was omitted, no error would be thrown but the provider would not be setup.
120
+ - **BREAKING:** The method `setProviderType` will now throw when passed the type `rpc`. ([#1316](https://github.com/MetaMask/core/pull/1316))
121
+ - Previously no error would be thrown but the provider would not be setup.
122
+ - **BREAKING**: Update type of `blockTracker` property exposed by `getProviderAndBlockTracker` from `any` to `SwappableProxy<PollingBlockTracker>` ([#1303](https://github.com/MetaMask/core/pull/1303))
123
+ - **BREAKING:** Rename provider configuration property `rpcTarget` to `rpcUrl` ([#1292](https://github.com/MetaMask/core/pull/1292))
124
+ - **BREAKING:** The network status will now be "blocked" rather than "unavailable" when the user is blocked by Infura ([#1264](https://github.com/MetaMask/core/pull/1264))
125
+ - **BREAKING:** The `infuraProjectId` constructor parameter is now required ([#1276](https://github.com/MetaMask/core/pull/1276))
126
+ - **BREAKING:** The exported `Provider` type has been updated to better reflect the provider type returned by the network controller ([#1266](https://github.com/MetaMask/core/pull/1266))
127
+ - Previously this was set to `any`. Now it returns a type that _mostly_ matches the provider returned (some semi-internal properties are omitted)
128
+ - This affects the exported `ProviderProxy` type as well, which wraps the `Provider` type
129
+ - Support hex and number `net_version` responses ([#1380](https://github.com/MetaMask/core/pull/1380))
130
+ - Bump @metamask/utils from 5.0.1 to 5.0.2 ([#1271](https://github.com/MetaMask/core/pull/1271))
131
+ - Bump dependency `eth-json-rpc-infura` (now `@metamask/eth-json-rpc-infura`) from ^7.0.0 to ^8.0.0. ([#1116](https://github.com/MetaMask/core/pull/1116))
132
+ - Add dependency `eth-json-rpc-middleware` ^11.0.0 ([#1116](https://github.com/MetaMask/core/pull/1116))
133
+ - Add dependency `eth-json-rpc-provider` ^1.0.0 ([#1116](https://github.com/MetaMask/core/pull/1116))
134
+ - Add dependency `eth-block-tracker` ^7.0.0 ([#1116](https://github.com/MetaMask/core/pull/1116))
135
+ - Add dependency `json-rpc-engine` ^6.1.0 ([#1116](https://github.com/MetaMask/core/pull/1116))
136
+
137
+ ### Removed
138
+ - **BREAKING:** Remove `providerConfigChange` event ([#1329](https://github.com/MetaMask/core/pull/1329))
139
+ - Consumers are encouraged to subscribe to `NetworkController:stateChange` with a selector function that returns `providerConfig` if they want to perform an action when `providerConfig` changes.
140
+ - **BREAKING:** The built-in "localhost" network has been removed ([#1313](https://github.com/MetaMask/core/pull/1313))
141
+
142
+ ### Fixed
143
+ - Update network details in `lookupNetwork` even when network ID is unchanged ([#1379](https://github.com/MetaMask/core/pull/1379))
144
+ - Fix error when `rollbackToPreviousProvider` is called when the previous network is a custom network with a missing or invalid `id` ([#1223](https://github.com/MetaMask/core/pull/1223))
145
+ - In that situation, `rollbackToPreviousProvider` used to throw an error. Now it correctly rolls back instead.
146
+
147
+ ## [8.0.0]
148
+ ### Added
149
+ - Implement `resetConnection` method ([#1131](https://github.com/MetaMask/core/pull/1131), [#1235](https://github.com/MetaMask/core/pull/1235), [#1239](https://github.com/MetaMask/core/pull/1239))
150
+
151
+ ### Changed
152
+ - Update EIP-1559 compatibility during network lookup ([#1236](https://github.com/MetaMask/core/pull/1236))
153
+ - EIP-1559 compatibility check is still performed on initialization and after switching networks, like before. This change only impacts direct calls to `lookupNetwork`.
154
+ - `lookupNetwork` is now making two network calls instead of one, ensuring that the `networkDetails` state is up-to-date.
155
+ - **BREAKING:** Replace `network` state with `networkId` and `networkStatus` ([#1196](https://github.com/MetaMask/core/pull/1196))
156
+ - If you were using `network` to access the network ID, use `networkId` instead. It will be set to `null` rather than `loading` if the network is not currently available.
157
+ - If you were using `network` to see if the network was currently available, use `networkStatus` instead. It will be set to `NetworkStatus.Available` if the network is available.
158
+ - When the network is unavailable, we now have two different states to represent that: `unknown` and `unavailable`. `unavailable` means that the network was detected as not available, whereas `unknown` is used for unknown errors and cases where the network status is yet to be determined (e.g. before initialization, or while the network is loading).
159
+ - Use JavaScript private fields rather than `private` TypeScript keyword for internal methods/fields ([#1189](https://github.com/MetaMask/core/pull/1189))
160
+ - Export `BlockTrackerProxy` type ([#1147](https://github.com/MetaMask/core/pull/1147))
161
+ - This is the type of the block tracker returned from the `getProviderAndBlockTracker` method
162
+ - **BREAKING:** Async refactor
163
+ - Make `rollbackToPreviousProvider` async ([#1237](https://github.com/MetaMask/core/pull/1237))
164
+ - Make `upsertNetworkConfiguration` async ([#1192](https://github.com/MetaMask/core/pull/1192))
165
+ - Make `setActiveNetwork` async ([#1190](https://github.com/MetaMask/core/pull/1190))
166
+ - Make `setProviderType` async ([#1191](https://github.com/MetaMask/core/pull/1191))
167
+ - Make `refreshNetwork` async ([#1182](https://github.com/MetaMask/core/pull/1182))
168
+ - Make `initializeProvider` async ([#1180](https://github.com/MetaMask/core/pull/1180))
169
+ - Make `verifyNetwork` async ([#1181](https://github.com/MetaMask/core/pull/1181))
170
+ - Dependency updates
171
+ - deps: bump web3-provider-engine@16.0.3->16.0.5 ([#1212](https://github.com/MetaMask/core/pull/1212))
172
+ - deps: eth-rpc-errors@4.0.0->4.0.2 ([#1215](https://github.com/MetaMask/core/pull/1215))
173
+ - deps: bump @metamask/utils to 5.0.1 ([#1211](https://github.com/MetaMask/core/pull/1211))
174
+
175
+ ### Removed
176
+ - **BREAKING:** Remove `isCustomNetwork` state ([#1199](https://github.com/MetaMask/core/pull/1199))
177
+ - The `providerConfig.type` state will be set to `'rpc'` if the current network is a custom network. Replace all references to the `isCustomNetwork` state by checking the provider config state instead.
178
+
179
+ ## [7.0.0]
180
+ ### Changed
181
+ - **BREAKING:** Replace `providerConfig` setter with a public `initializeProvider` method ([#1133](https://github.com/MetaMask/core/pull/1133))
182
+ - The property `providerConfig` should no longer be set to initialize the provider. That property no longer exists.
183
+ - The method `initializeProvider` must be called instead to initialize the provider after constructing the network controller.
184
+
185
+ ## [6.0.0]
186
+ ### Added
187
+ - Add rollbackToPreviousProvider method ([#1132](https://github.com/MetaMask/core/pull/1132))
188
+
189
+ ### Changed
190
+ - **BREAKING:** Migrate network configurations from `PreferencesController` to `NetworkController` ([#1064](https://github.com/MetaMask/core/pull/1064))
191
+ - Consumers will need to adapt to reading network data from `NetworkConfigurations` state on `NetworkController` rather than `frequentRpcList` on `PreferencesController`.
192
+ - `setRpcTarget` becomes `setActiveNetwork` on `NetworkController` and accepts a `networkConfigurationId` argument rather than an `rpcUrl`.
193
+ - `addToFrequentRpcList` on `PreferencesController` becomes `upsertNetworkConfiguration` on `NetworkController`.
194
+ - `removeFromFrequentRpcList` on `PreferencesController` becomes `removeNetworkConfiguration` on `NetworkController`
195
+ - The `NetworkController` requires a `trackMetaMetricsEvent` callback function argument in its constructor.
196
+ - **BREAKING:** Expose `getProviderAndBlockTracker` instead of `provider` ([#1091](https://github.com/MetaMask/core/pull/1091))
197
+ - This change is breaking because it removes the provider property from `NetworkController`. Instead, a new method `getProviderAndBlockTracker` method is available for accessing the current provider object.
198
+
199
+ ## [5.0.0]
200
+ ### Changed
201
+ - **BREAKING:** Rename `properties` property in state object to `networkDetails` ([#1074](https://github.com/MetaMask/controllers/pull/1074))
202
+
203
+ ### Removed
204
+ - **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
205
+ - Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
206
+
207
+ ## [4.0.0]
208
+ ### Changed
209
+ - **BREAKING:** Update type of state object by renaming `properties` property to `networkDetails` ([#1074](https://github.com/MetaMask/core/pull/1074))
210
+ - Consumers are recommended to add a state migration for this change.
211
+ - **BREAKING:** Rename `NetworkProperties` type to `NetworkDetails` ([#1074](https://github.com/MetaMask/core/pull/1074))
212
+ - Change `getEIP1559Compatibility` to use async await syntax ([#1084](https://github.com/MetaMask/core/pull/1084))
213
+
214
+ ## [3.0.0]
215
+ ### Added
216
+ - Add support for Sepolia as a built-in Infura network ([#1041](https://github.com/MetaMask/controllers/pull/1041))
217
+ - Export types for network controller events and actions ([#1039](https://github.com/MetaMask/core/pull/1039))
218
+
219
+ ### Changed
220
+ - **BREAKING:** Make `lookupNetwork` block on completing the lookup ([#1063](https://github.com/MetaMask/controllers/pull/1063))
221
+ - This function was always `async`, but it would return before completing any async work. Now it will not return until after the network lookup has been completed.
222
+ - Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
223
+ - Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
224
+
225
+ ### Removed
226
+ - **BREAKING:**: Drop support for Ropsten, Rinkeby, and Kovan as built-in Infura networks ([#1041](https://github.com/MetaMask/controllers/pull/1041))
227
+
228
+ ## [2.0.0]
229
+ ### Changed
230
+ - **BREAKING:** Update type of state object by renaming `provider` property to `providerConfig` ([#995](https://github.com/MetaMask/core/pull/995))
231
+ - Consumers are recommended to add a state migration for this change.
232
+ - **BREAKING:** Rename `NetworkController:providerChange` messenger event to `NetworkController:providerConfigChange` ([#995](https://github.com/MetaMask/core/pull/995))
233
+ - Relax dependencies on `@metamask/base-controller` and `@metamask/controller-utils` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
234
+
235
+ ## [1.0.0]
236
+ ### Added
237
+ - Initial release
238
+ - As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely:
239
+ - Everything in `src/network` (minus `NetworkType` and `NetworksChainId`, which were placed in `@metamask/controller-utils`)
240
+
241
+ All changes listed after this point were applied to this package following the monorepo conversion.
242
+
243
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@12.1.1...HEAD
244
+ [12.1.1]: https://github.com/MetaMask/core/compare/@metamask/network-controller@12.1.0...@metamask/network-controller@12.1.1
245
+ [12.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@12.0.0...@metamask/network-controller@12.1.0
246
+ [12.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@11.0.0...@metamask/network-controller@12.0.0
247
+ [11.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@10.3.1...@metamask/network-controller@11.0.0
248
+ [10.3.1]: https://github.com/MetaMask/core/compare/@metamask/network-controller@10.3.0...@metamask/network-controller@10.3.1
249
+ [10.3.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@10.2.0...@metamask/network-controller@10.3.0
250
+ [10.2.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@10.1.0...@metamask/network-controller@10.2.0
251
+ [10.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@10.0.0...@metamask/network-controller@10.1.0
252
+ [10.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@9.0.0...@metamask/network-controller@10.0.0
253
+ [9.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@8.0.0...@metamask/network-controller@9.0.0
254
+ [8.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@7.0.0...@metamask/network-controller@8.0.0
255
+ [7.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@6.0.0...@metamask/network-controller@7.0.0
256
+ [6.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@5.0.0...@metamask/network-controller@6.0.0
257
+ [5.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@4.0.0...@metamask/network-controller@5.0.0
258
+ [4.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@3.0.0...@metamask/network-controller@4.0.0
259
+ [3.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@2.0.0...@metamask/network-controller@3.0.0
260
+ [2.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@1.0.0...@metamask/network-controller@2.0.0
261
+ [1.0.0]: https://github.com/MetaMask/core/releases/tag/@metamask/network-controller@1.0.0
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 MetaMask
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # `@metamask/network-controller`
2
+
3
+ Provides an interface to the currently selected network via a MetaMask-compatible provider object.
4
+
5
+ ## Installation
6
+
7
+ `yarn add @metamask/network-controller`
8
+
9
+ or
10
+
11
+ `npm install @metamask/network-controller`
12
+
13
+ ## Contributing
14
+
15
+ This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/core#readme).