Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metamask-previews/network-controller

Package Overview
Dependencies
Maintainers
2
Versions
386
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask-previews/network-controller - npm Package Compare versions

Comparing version 13.0.0-preview.1b84247 to 14.0.0-preview.ce06456

21

CHANGELOG.md

@@ -9,2 +9,19 @@ # Changelog

## [14.0.0]
### Added
- Add `NetworkController:getEIP1559Compatibility` controller action ([#1673](https://github.com/MetaMask/core/pull/1673))
### Changed
- **BREAKING:** Rename `get1555CompatibilityWithNetworkClientId` to `get1559CompatibilityWithNetworkClientId` ([#1673](https://github.com/MetaMask/core/pull/1673))
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
- Bump dependency on `@metamask/base-controller` to ^3.2.3
- Bump dependency on `@metamask/controller-utils` to ^5.0.2
### Fixed
- Update linea goerli explorer url ([#1666](https://github.com/MetaMask/core/pull/1666))
## [13.0.1]
### Changed
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
## [13.0.0]

@@ -265,3 +282,5 @@ ### Changed

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@13.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@14.0.0...HEAD
[14.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@13.0.1...@metamask/network-controller@14.0.0
[13.0.1]: https://github.com/MetaMask/core/compare/@metamask/network-controller@13.0.0...@metamask/network-controller@13.0.1
[13.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@12.2.0...@metamask/network-controller@13.0.0

@@ -268,0 +287,0 @@ [12.2.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@12.1.2...@metamask/network-controller@12.2.0

8

dist/NetworkController.d.ts

@@ -194,3 +194,7 @@ import type { RestrictedControllerMessenger } from '@metamask/base-controller';

};
export declare type NetworkControllerActions = NetworkControllerGetStateAction | NetworkControllerGetProviderConfigAction | NetworkControllerGetEthQueryAction | NetworkControllerGetNetworkClientByIdAction;
export declare type NetworkControllerGetEIP1559CompatibilityAction = {
type: `NetworkController:getEIP1559Compatibility`;
handler: NetworkController['getEIP1559Compatibility'];
};
export declare type NetworkControllerActions = NetworkControllerGetStateAction | NetworkControllerGetProviderConfigAction | NetworkControllerGetEthQueryAction | NetworkControllerGetNetworkClientByIdAction | NetworkControllerGetEIP1559CompatibilityAction;
export declare type NetworkControllerMessenger = RestrictedControllerMessenger<typeof name, NetworkControllerActions, NetworkControllerEvents, string, string>;

@@ -301,3 +305,3 @@ export declare type NetworkControllerOptions = {

getEIP1559Compatibility(networkClientId?: NetworkClientId): Promise<boolean | undefined>;
get1555CompatibilityWithNetworkClientId(networkClientId: NetworkClientId): Promise<boolean>;
get1559CompatibilityWithNetworkClientId(networkClientId: NetworkClientId): Promise<boolean>;
/**

@@ -304,0 +308,0 @@ * Re-initializes the provider and block tracker for the current network.

@@ -250,2 +250,3 @@ "use strict";

this.messagingSystem.registerActionHandler(`${this.name}:getNetworkClientById`, this.getNetworkClientById.bind(this));
this.messagingSystem.registerActionHandler(`${this.name}:getEIP1559Compatibility`, this.getEIP1559Compatibility.bind(this));
__classPrivateFieldSet(this, _NetworkController_previousProviderConfig, this.state.providerConfig, "f");

@@ -534,3 +535,3 @@ }

if (networkClientId) {
return this.get1555CompatibilityWithNetworkClientId(networkClientId);
return this.get1559CompatibilityWithNetworkClientId(networkClientId);
}

@@ -554,3 +555,3 @@ if (!__classPrivateFieldGet(this, _NetworkController_ethQuery, "f")) {

}
get1555CompatibilityWithNetworkClientId(networkClientId) {
get1559CompatibilityWithNetworkClientId(networkClientId) {
return __awaiter(this, void 0, void 0, function* () {

@@ -557,0 +558,0 @@ let metadata = this.state.networksMetadata[networkClientId];

{
"name": "@metamask-previews/network-controller",
"version": "13.0.0-preview.1b84247",
"version": "14.0.0-preview.ce06456",
"description": "Provides an interface to the currently selected network via a MetaMask-compatible provider object",

@@ -28,7 +28,8 @@ "keywords": [

"test": "jest",
"test:clean": "jest --clearCache",
"test:watch": "jest --watch"
},
"dependencies": {
"@metamask/base-controller": "^3.2.1",
"@metamask/controller-utils": "^5.0.0",
"@metamask/base-controller": "^3.2.3",
"@metamask/controller-utils": "^5.0.2",
"@metamask/eth-json-rpc-infura": "^8.1.1",

@@ -39,3 +40,3 @@ "@metamask/eth-json-rpc-middleware": "^11.0.2",

"@metamask/swappable-obj-proxy": "^2.1.0",
"@metamask/utils": "^6.2.0",
"@metamask/utils": "^8.1.0",
"async-mutex": "^0.2.6",

@@ -61,5 +62,5 @@ "eth-block-tracker": "^7.0.1",

"ts-jest": "^27.1.4",
"typedoc": "^0.23.15",
"typedoc-plugin-missing-exports": "^0.23.0",
"typescript": "~4.6.3"
"typedoc": "^0.24.8",
"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "~4.8.4"
},

@@ -66,0 +67,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc