Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/controller-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Add `monad-testnet` to `InfuraNetworkType` ([#7067](https://github.com/MetaMask/core/pull/7067))

### Changed

- Update Monad Testnet Network Client ID ([#7333](https://github.com/MetaMask/core/pull/7333))

## [11.16.0]

### Added
Expand Down
7 changes: 7 additions & 0 deletions packages/controller-utils/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ export const BUILT_IN_NETWORKS = {
blockExplorerUrl: BlockExplorerUrl['monad-testnet'],
},
},
[NetworkType['monad-testnet-infura']]: {
chainId: ChainId['monad-testnet-infura'],
ticker: NetworksTicker['monad-testnet-infura'],
rpcPrefs: {
blockExplorerUrl: BlockExplorerUrl['monad-testnet-infura'],
},
},
[NetworkType['base-mainnet']]: {
chainId: ChainId['base-mainnet'],
ticker: NetworksTicker['base-mainnet'],
Expand Down
8 changes: 7 additions & 1 deletion packages/controller-utils/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const InfuraNetworkType = {
'optimism-mainnet': 'optimism-mainnet',
'polygon-mainnet': 'polygon-mainnet',
'sei-mainnet': 'sei-mainnet',
'monad-testnet': 'monad-testnet',
'monad-testnet-infura': 'monad-testnet-infura',
} as const;

export type InfuraNetworkType =
Expand Down Expand Up @@ -88,6 +88,7 @@ export enum BuiltInNetworkName {
Aurora = 'aurora',
MegaETHTestnet = 'megaeth-testnet',
MonadTestnet = 'monad-testnet',
MonadTestnetInfura = 'monad-testnet-infura',
BaseMainnet = 'base-mainnet',
ArbitrumOne = 'arbitrum-mainnet',
BscMainnet = 'bsc-mainnet',
Expand All @@ -111,6 +112,7 @@ export const ChainId = {
[BuiltInNetworkName.LineaMainnet]: '0xe708', // toHex(59144)
[BuiltInNetworkName.MegaETHTestnet]: '0x18c6', // toHex(6342)
[BuiltInNetworkName.MonadTestnet]: '0x279f', // toHex(10143)
[BuiltInNetworkName.MonadTestnetInfura]: '0x279f', // toHex(10143)
[BuiltInNetworkName.BaseMainnet]: '0x2105', // toHex(8453)
[BuiltInNetworkName.ArbitrumOne]: '0xa4b1', // toHex(42161)
[BuiltInNetworkName.BscMainnet]: '0x38', // toHex(56)
Expand All @@ -132,6 +134,8 @@ export enum NetworksTicker {
'megaeth-testnet' = 'MegaETH',
'monad-testnet' = 'MON',
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
'monad-testnet-infura' = 'MON',
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
'base-mainnet' = 'ETH',
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
'arbitrum-mainnet' = 'ETH',
Expand All @@ -152,6 +156,7 @@ export const BlockExplorerUrl = {
[BuiltInNetworkName.LineaMainnet]: 'https://lineascan.build',
[BuiltInNetworkName.MegaETHTestnet]: 'https://megaexplorer.xyz',
[BuiltInNetworkName.MonadTestnet]: 'https://testnet.monadexplorer.com',
[BuiltInNetworkName.MonadTestnetInfura]: 'https://testnet.monadexplorer.com',
[BuiltInNetworkName.BaseMainnet]: 'https://basescan.org',
[BuiltInNetworkName.ArbitrumOne]: 'https://arbiscan.io',
[BuiltInNetworkName.BscMainnet]: 'https://bscscan.com',
Expand All @@ -171,6 +176,7 @@ export const NetworkNickname = {
[BuiltInNetworkName.LineaMainnet]: 'Linea',
[BuiltInNetworkName.MegaETHTestnet]: 'Mega Testnet',
[BuiltInNetworkName.MonadTestnet]: 'Monad Testnet',
[BuiltInNetworkName.MonadTestnetInfura]: 'Monad Testnet',
[BuiltInNetworkName.BaseMainnet]: 'Base Mainnet',
[BuiltInNetworkName.ArbitrumOne]: 'Arbitrum One',
[BuiltInNetworkName.BscMainnet]: 'BSC Mainnet',
Expand Down
1 change: 1 addition & 0 deletions packages/network-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Update the default set of Infura networks to include Monad Testnet ([#7067](https://github.com/MetaMask/core/pull/7067))
- Update Monad Testnet Network Client Id ([#7333](https://github.com/MetaMask/core/pull/7333))

## [27.0.0]

Expand Down
Loading