You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@metamask/controller-utils

Package Overview
Dependencies
Maintainers
3
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/controller-utils - npm Package Compare versions

Comparing version
11.14.1
to
11.15.0
+15
-1
CHANGELOG.md

@@ -10,2 +10,15 @@ # Changelog

## [11.15.0]
### Added
- Arbitrum, BSC, Optimism, Polygon, and Sei networks to Infura networks ([#6972](https://github.com/MetaMask/core/pull/6972))
- Add `arbitrum-one`, `bsc-mainnet`, `optimism-mainnet`, `polygon-mainnet`, `sei-mainnet` to `BUILT_IN_NETWORKS`
- Add `arbitrum-one`, `bsc-mainnet`, `optimism-mainnet`, `polygon-mainnet`, `sei-mainnet` to `InfuraNetworkType`
- Add `ArbitrumOne`, `BscMainnet`, `OptimismMainnet`, `PolygonMainnet`, `SeiMainnet` to `BuiltInNetworkName` enum
- Add corresponding chain IDs to `ChainId` type (0xa4b1, 0x38, 0xa, 0x89, 0x531)
- Add `ETG`, `BNB`, `ETH`, `POL`, `SEI` tickers to `NetworksTicker` enum
- Add block explorer URLs to `BlockExplorerUrl` quasi-enum
- Add network nicknames to `NetworkNickname` quasi-enum
## [11.14.1]

@@ -587,3 +600,4 @@

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@11.14.1...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@11.15.0...HEAD
[11.15.0]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@11.14.1...@metamask/controller-utils@11.15.0
[11.14.1]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@11.14.0...@metamask/controller-utils@11.14.1

@@ -590,0 +604,0 @@ [11.14.0]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@11.13.0...@metamask/controller-utils@11.14.0

@@ -122,2 +122,37 @@ "use strict";

},
[types_1.NetworkType['arbitrum-mainnet']]: {
chainId: types_1.ChainId['arbitrum-mainnet'],
ticker: types_1.NetworksTicker['arbitrum-mainnet'],
rpcPrefs: {
blockExplorerUrl: types_1.BlockExplorerUrl['arbitrum-mainnet'],
},
},
[types_1.NetworkType['bsc-mainnet']]: {
chainId: types_1.ChainId['bsc-mainnet'],
ticker: types_1.NetworksTicker['bsc-mainnet'],
rpcPrefs: {
blockExplorerUrl: types_1.BlockExplorerUrl['bsc-mainnet'],
},
},
[types_1.NetworkType['optimism-mainnet']]: {
chainId: types_1.ChainId['optimism-mainnet'],
ticker: types_1.NetworksTicker['optimism-mainnet'],
rpcPrefs: {
blockExplorerUrl: types_1.BlockExplorerUrl['optimism-mainnet'],
},
},
[types_1.NetworkType['polygon-mainnet']]: {
chainId: types_1.ChainId['polygon-mainnet'],
ticker: types_1.NetworksTicker['polygon-mainnet'],
rpcPrefs: {
blockExplorerUrl: types_1.BlockExplorerUrl['polygon-mainnet'],
},
},
[types_1.NetworkType['sei-mainnet']]: {
chainId: types_1.ChainId['sei-mainnet'],
ticker: types_1.NetworksTicker['sei-mainnet'],
rpcPrefs: {
blockExplorerUrl: types_1.BlockExplorerUrl['sei-mainnet'],
},
},
[types_1.NetworkType.rpc]: {

@@ -124,0 +159,0 @@ chainId: undefined,

@@ -112,2 +112,37 @@ import { NetworksTicker, BuiltInNetworkName } from "./types.cjs";

};
readonly "arbitrum-mainnet": {
readonly chainId: "0xa4b1";
readonly ticker: NetworksTicker.mainnet;
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://arbiscan.io";
};
};
readonly "bsc-mainnet": {
readonly chainId: "0x38";
readonly ticker: (typeof NetworksTicker)["bsc-mainnet"];
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://bscscan.com";
};
};
readonly "optimism-mainnet": {
readonly chainId: "0xa";
readonly ticker: NetworksTicker.mainnet;
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://optimistic.etherscan.io";
};
};
readonly "polygon-mainnet": {
readonly chainId: "0x89";
readonly ticker: (typeof NetworksTicker)["polygon-mainnet"];
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://polygonscan.com";
};
};
readonly "sei-mainnet": {
readonly chainId: "0x531";
readonly ticker: (typeof NetworksTicker)["sei-mainnet"];
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://seitrace.com";
};
};
readonly rpc: {

@@ -114,0 +149,0 @@ readonly chainId: undefined;

@@ -112,2 +112,37 @@ import { NetworksTicker, BuiltInNetworkName } from "./types.mjs";

};
readonly "arbitrum-mainnet": {
readonly chainId: "0xa4b1";
readonly ticker: NetworksTicker.mainnet;
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://arbiscan.io";
};
};
readonly "bsc-mainnet": {
readonly chainId: "0x38";
readonly ticker: (typeof NetworksTicker)["bsc-mainnet"];
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://bscscan.com";
};
};
readonly "optimism-mainnet": {
readonly chainId: "0xa";
readonly ticker: NetworksTicker.mainnet;
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://optimistic.etherscan.io";
};
};
readonly "polygon-mainnet": {
readonly chainId: "0x89";
readonly ticker: (typeof NetworksTicker)["polygon-mainnet"];
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://polygonscan.com";
};
};
readonly "sei-mainnet": {
readonly chainId: "0x531";
readonly ticker: (typeof NetworksTicker)["sei-mainnet"];
readonly rpcPrefs: {
readonly blockExplorerUrl: "https://seitrace.com";
};
};
readonly rpc: {

@@ -114,0 +149,0 @@ readonly chainId: undefined;

@@ -119,2 +119,37 @@ import { NetworkType, NetworksTicker, ChainId, BuiltInNetworkName, BlockExplorerUrl } from "./types.mjs";

},
[NetworkType['arbitrum-mainnet']]: {
chainId: ChainId['arbitrum-mainnet'],
ticker: NetworksTicker['arbitrum-mainnet'],
rpcPrefs: {
blockExplorerUrl: BlockExplorerUrl['arbitrum-mainnet'],
},
},
[NetworkType['bsc-mainnet']]: {
chainId: ChainId['bsc-mainnet'],
ticker: NetworksTicker['bsc-mainnet'],
rpcPrefs: {
blockExplorerUrl: BlockExplorerUrl['bsc-mainnet'],
},
},
[NetworkType['optimism-mainnet']]: {
chainId: ChainId['optimism-mainnet'],
ticker: NetworksTicker['optimism-mainnet'],
rpcPrefs: {
blockExplorerUrl: BlockExplorerUrl['optimism-mainnet'],
},
},
[NetworkType['polygon-mainnet']]: {
chainId: ChainId['polygon-mainnet'],
ticker: NetworksTicker['polygon-mainnet'],
rpcPrefs: {
blockExplorerUrl: BlockExplorerUrl['polygon-mainnet'],
},
},
[NetworkType['sei-mainnet']]: {
chainId: ChainId['sei-mainnet'],
ticker: NetworksTicker['sei-mainnet'],
rpcPrefs: {
blockExplorerUrl: BlockExplorerUrl['sei-mainnet'],
},
},
[NetworkType.rpc]: {

@@ -121,0 +156,0 @@ chainId: undefined,

@@ -15,2 +15,7 @@ "use strict";

'base-mainnet': 'base-mainnet',
'arbitrum-mainnet': 'arbitrum-mainnet',
'bsc-mainnet': 'bsc-mainnet',
'optimism-mainnet': 'optimism-mainnet',
'polygon-mainnet': 'polygon-mainnet',
'sei-mainnet': 'sei-mainnet',
};

@@ -71,2 +76,7 @@ /**

BuiltInNetworkName["BaseMainnet"] = "base-mainnet";
BuiltInNetworkName["ArbitrumOne"] = "arbitrum-mainnet";
BuiltInNetworkName["BscMainnet"] = "bsc-mainnet";
BuiltInNetworkName["OptimismMainnet"] = "optimism-mainnet";
BuiltInNetworkName["PolygonMainnet"] = "polygon-mainnet";
BuiltInNetworkName["SeiMainnet"] = "sei-mainnet";
})(BuiltInNetworkName || (exports.BuiltInNetworkName = BuiltInNetworkName = {}));

@@ -88,3 +98,8 @@ /**

[BuiltInNetworkName.MonadTestnet]: '0x279f',
[BuiltInNetworkName.BaseMainnet]: '0x2105', // toHex(8453)
[BuiltInNetworkName.BaseMainnet]: '0x2105',
[BuiltInNetworkName.ArbitrumOne]: '0xa4b1',
[BuiltInNetworkName.BscMainnet]: '0x38',
[BuiltInNetworkName.OptimismMainnet]: '0xa',
[BuiltInNetworkName.PolygonMainnet]: '0x89',
[BuiltInNetworkName.SeiMainnet]: '0x531', // toHex(1329)
};

@@ -105,2 +120,9 @@ var NetworksTicker;

NetworksTicker["base-mainnet"] = "ETH";
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
NetworksTicker["arbitrum-mainnet"] = "ETH";
NetworksTicker["bsc-mainnet"] = "BNB";
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
NetworksTicker["optimism-mainnet"] = "ETH";
NetworksTicker["polygon-mainnet"] = "POL";
NetworksTicker["sei-mainnet"] = "SEI";
NetworksTicker["rpc"] = "";

@@ -118,2 +140,7 @@ })(NetworksTicker || (exports.NetworksTicker = NetworksTicker = {}));

[BuiltInNetworkName.BaseMainnet]: 'https://basescan.org',
[BuiltInNetworkName.ArbitrumOne]: 'https://arbiscan.io',
[BuiltInNetworkName.BscMainnet]: 'https://bscscan.com',
[BuiltInNetworkName.OptimismMainnet]: 'https://optimistic.etherscan.io',
[BuiltInNetworkName.PolygonMainnet]: 'https://polygonscan.com',
[BuiltInNetworkName.SeiMainnet]: 'https://seitrace.com',
};

@@ -130,3 +157,8 @@ exports.NetworkNickname = {

[BuiltInNetworkName.BaseMainnet]: 'Base Mainnet',
[BuiltInNetworkName.ArbitrumOne]: 'Arbitrum One',
[BuiltInNetworkName.BscMainnet]: 'BSC Mainnet',
[BuiltInNetworkName.OptimismMainnet]: 'Optimism Mainnet',
[BuiltInNetworkName.PolygonMainnet]: 'Polygon Mainnet',
[BuiltInNetworkName.SeiMainnet]: 'Sei Mainnet',
};
//# sourceMappingURL=types.cjs.map

@@ -12,2 +12,7 @@ /**

readonly 'base-mainnet': "base-mainnet";
readonly 'arbitrum-mainnet': "arbitrum-mainnet";
readonly 'bsc-mainnet': "bsc-mainnet";
readonly 'optimism-mainnet': "optimism-mainnet";
readonly 'polygon-mainnet': "polygon-mainnet";
readonly 'sei-mainnet': "sei-mainnet";
};

@@ -41,2 +46,7 @@ export type InfuraNetworkType = (typeof InfuraNetworkType)[keyof typeof InfuraNetworkType];

readonly 'base-mainnet': "base-mainnet";
readonly 'arbitrum-mainnet': "arbitrum-mainnet";
readonly 'bsc-mainnet': "bsc-mainnet";
readonly 'optimism-mainnet': "optimism-mainnet";
readonly 'polygon-mainnet': "polygon-mainnet";
readonly 'sei-mainnet': "sei-mainnet";
};

@@ -74,3 +84,8 @@ export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType];

MonadTestnet = "monad-testnet",
BaseMainnet = "base-mainnet"
BaseMainnet = "base-mainnet",
ArbitrumOne = "arbitrum-mainnet",
BscMainnet = "bsc-mainnet",
OptimismMainnet = "optimism-mainnet",
PolygonMainnet = "polygon-mainnet",
SeiMainnet = "sei-mainnet"
}

@@ -93,2 +108,7 @@ /**

readonly "base-mainnet": "0x2105";
readonly "arbitrum-mainnet": "0xa4b1";
readonly "bsc-mainnet": "0x38";
readonly "optimism-mainnet": "0xa";
readonly "polygon-mainnet": "0x89";
readonly "sei-mainnet": "0x531";
};

@@ -106,2 +126,7 @@ export type ChainId = (typeof ChainId)[keyof typeof ChainId];

'base-mainnet' = "ETH",
'arbitrum-mainnet' = "ETH",
'bsc-mainnet' = "BNB",
'optimism-mainnet' = "ETH",
'polygon-mainnet' = "POL",
'sei-mainnet' = "SEI",
rpc = ""

@@ -119,2 +144,7 @@ }

readonly "base-mainnet": "https://basescan.org";
readonly "arbitrum-mainnet": "https://arbiscan.io";
readonly "bsc-mainnet": "https://bscscan.com";
readonly "optimism-mainnet": "https://optimistic.etherscan.io";
readonly "polygon-mainnet": "https://polygonscan.com";
readonly "sei-mainnet": "https://seitrace.com";
};

@@ -132,2 +162,7 @@ export type BlockExplorerUrl = (typeof BlockExplorerUrl)[keyof typeof BlockExplorerUrl];

readonly "base-mainnet": "Base Mainnet";
readonly "arbitrum-mainnet": "Arbitrum One";
readonly "bsc-mainnet": "BSC Mainnet";
readonly "optimism-mainnet": "Optimism Mainnet";
readonly "polygon-mainnet": "Polygon Mainnet";
readonly "sei-mainnet": "Sei Mainnet";
};

@@ -134,0 +169,0 @@ export type NetworkNickname = (typeof NetworkNickname)[keyof typeof NetworkNickname];

@@ -12,2 +12,7 @@ /**

readonly 'base-mainnet': "base-mainnet";
readonly 'arbitrum-mainnet': "arbitrum-mainnet";
readonly 'bsc-mainnet': "bsc-mainnet";
readonly 'optimism-mainnet': "optimism-mainnet";
readonly 'polygon-mainnet': "polygon-mainnet";
readonly 'sei-mainnet': "sei-mainnet";
};

@@ -41,2 +46,7 @@ export type InfuraNetworkType = (typeof InfuraNetworkType)[keyof typeof InfuraNetworkType];

readonly 'base-mainnet': "base-mainnet";
readonly 'arbitrum-mainnet': "arbitrum-mainnet";
readonly 'bsc-mainnet': "bsc-mainnet";
readonly 'optimism-mainnet': "optimism-mainnet";
readonly 'polygon-mainnet': "polygon-mainnet";
readonly 'sei-mainnet': "sei-mainnet";
};

@@ -74,3 +84,8 @@ export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType];

MonadTestnet = "monad-testnet",
BaseMainnet = "base-mainnet"
BaseMainnet = "base-mainnet",
ArbitrumOne = "arbitrum-mainnet",
BscMainnet = "bsc-mainnet",
OptimismMainnet = "optimism-mainnet",
PolygonMainnet = "polygon-mainnet",
SeiMainnet = "sei-mainnet"
}

@@ -93,2 +108,7 @@ /**

readonly "base-mainnet": "0x2105";
readonly "arbitrum-mainnet": "0xa4b1";
readonly "bsc-mainnet": "0x38";
readonly "optimism-mainnet": "0xa";
readonly "polygon-mainnet": "0x89";
readonly "sei-mainnet": "0x531";
};

@@ -106,2 +126,7 @@ export type ChainId = (typeof ChainId)[keyof typeof ChainId];

'base-mainnet' = "ETH",
'arbitrum-mainnet' = "ETH",
'bsc-mainnet' = "BNB",
'optimism-mainnet' = "ETH",
'polygon-mainnet' = "POL",
'sei-mainnet' = "SEI",
rpc = ""

@@ -119,2 +144,7 @@ }

readonly "base-mainnet": "https://basescan.org";
readonly "arbitrum-mainnet": "https://arbiscan.io";
readonly "bsc-mainnet": "https://bscscan.com";
readonly "optimism-mainnet": "https://optimistic.etherscan.io";
readonly "polygon-mainnet": "https://polygonscan.com";
readonly "sei-mainnet": "https://seitrace.com";
};

@@ -132,2 +162,7 @@ export type BlockExplorerUrl = (typeof BlockExplorerUrl)[keyof typeof BlockExplorerUrl];

readonly "base-mainnet": "Base Mainnet";
readonly "arbitrum-mainnet": "Arbitrum One";
readonly "bsc-mainnet": "BSC Mainnet";
readonly "optimism-mainnet": "Optimism Mainnet";
readonly "polygon-mainnet": "Polygon Mainnet";
readonly "sei-mainnet": "Sei Mainnet";
};

@@ -134,0 +169,0 @@ export type NetworkNickname = (typeof NetworkNickname)[keyof typeof NetworkNickname];

@@ -12,2 +12,7 @@ /**

'base-mainnet': 'base-mainnet',
'arbitrum-mainnet': 'arbitrum-mainnet',
'bsc-mainnet': 'bsc-mainnet',
'optimism-mainnet': 'optimism-mainnet',
'polygon-mainnet': 'polygon-mainnet',
'sei-mainnet': 'sei-mainnet',
};

@@ -66,2 +71,7 @@ /**

BuiltInNetworkName["BaseMainnet"] = "base-mainnet";
BuiltInNetworkName["ArbitrumOne"] = "arbitrum-mainnet";
BuiltInNetworkName["BscMainnet"] = "bsc-mainnet";
BuiltInNetworkName["OptimismMainnet"] = "optimism-mainnet";
BuiltInNetworkName["PolygonMainnet"] = "polygon-mainnet";
BuiltInNetworkName["SeiMainnet"] = "sei-mainnet";
})(BuiltInNetworkName || (BuiltInNetworkName = {}));

@@ -83,3 +93,8 @@ /**

[BuiltInNetworkName.MonadTestnet]: '0x279f',
[BuiltInNetworkName.BaseMainnet]: '0x2105', // toHex(8453)
[BuiltInNetworkName.BaseMainnet]: '0x2105',
[BuiltInNetworkName.ArbitrumOne]: '0xa4b1',
[BuiltInNetworkName.BscMainnet]: '0x38',
[BuiltInNetworkName.OptimismMainnet]: '0xa',
[BuiltInNetworkName.PolygonMainnet]: '0x89',
[BuiltInNetworkName.SeiMainnet]: '0x531', // toHex(1329)
};

@@ -100,2 +115,9 @@ export var NetworksTicker;

NetworksTicker["base-mainnet"] = "ETH";
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
NetworksTicker["arbitrum-mainnet"] = "ETH";
NetworksTicker["bsc-mainnet"] = "BNB";
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
NetworksTicker["optimism-mainnet"] = "ETH";
NetworksTicker["polygon-mainnet"] = "POL";
NetworksTicker["sei-mainnet"] = "SEI";
NetworksTicker["rpc"] = "";

@@ -113,2 +135,7 @@ })(NetworksTicker || (NetworksTicker = {}));

[BuiltInNetworkName.BaseMainnet]: 'https://basescan.org',
[BuiltInNetworkName.ArbitrumOne]: 'https://arbiscan.io',
[BuiltInNetworkName.BscMainnet]: 'https://bscscan.com',
[BuiltInNetworkName.OptimismMainnet]: 'https://optimistic.etherscan.io',
[BuiltInNetworkName.PolygonMainnet]: 'https://polygonscan.com',
[BuiltInNetworkName.SeiMainnet]: 'https://seitrace.com',
};

@@ -125,3 +152,8 @@ export const NetworkNickname = {

[BuiltInNetworkName.BaseMainnet]: 'Base Mainnet',
[BuiltInNetworkName.ArbitrumOne]: 'Arbitrum One',
[BuiltInNetworkName.BscMainnet]: 'BSC Mainnet',
[BuiltInNetworkName.OptimismMainnet]: 'Optimism Mainnet',
[BuiltInNetworkName.PolygonMainnet]: 'Polygon Mainnet',
[BuiltInNetworkName.SeiMainnet]: 'Sei Mainnet',
};
//# sourceMappingURL=types.mjs.map
+1
-1
{
"name": "@metamask/controller-utils",
"version": "11.14.1",
"version": "11.15.0",
"description": "Data and convenience functions shared by multiple packages",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet