Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions packages/preferences-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add support for HYPEREVM (chain ID `0x3e7`) ([#7770](https://github.com/MetaMask/core/pull/7770))
- Add `HYPEREVM` into constant `ETHERSCAN_SUPPORTED_CHAIN_IDS`
- Update default controller state so HYPEREVM (Chain ID `0x3e7`) is automatically enabled in `showIncomingTransactions`

### Changed

- Upgrade `@metamask/utils` from `^11.8.1` to `^11.9.0` ([#7511](https://github.com/MetaMask/core/pull/7511))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ describe('PreferencesController', () => {
"0x1": true,
"0x13881": true,
"0x38": true,
"0x3e7": true,
"0x5": true,
"0x504": true,
"0x505": true,
Expand Down Expand Up @@ -673,6 +674,7 @@ describe('PreferencesController', () => {
"0x1": true,
"0x13881": true,
"0x38": true,
"0x3e7": true,
"0x5": true,
"0x504": true,
"0x505": true,
Expand Down Expand Up @@ -738,6 +740,7 @@ describe('PreferencesController', () => {
"0x1": true,
"0x13881": true,
"0x38": true,
"0x3e7": true,
"0x5": true,
"0x504": true,
"0x505": true,
Expand Down Expand Up @@ -802,6 +805,7 @@ describe('PreferencesController', () => {
"0x1": true,
"0x13881": true,
"0x38": true,
"0x3e7": true,
"0x5": true,
"0x504": true,
"0x505": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ export function getDefaultPreferencesState(): PreferencesState {
[ETHERSCAN_SUPPORTED_CHAIN_IDS.GNOSIS]: true,
[ETHERSCAN_SUPPORTED_CHAIN_IDS.SEI]: true,
[ETHERSCAN_SUPPORTED_CHAIN_IDS.MONAD]: true,
[ETHERSCAN_SUPPORTED_CHAIN_IDS.HYPEREVM]: true,
},
showTestNetworks: false,
useNftDetection: false,
Expand Down
1 change: 1 addition & 0 deletions packages/preferences-controller/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ export const ETHERSCAN_SUPPORTED_CHAIN_IDS = {
GNOSIS: '0x64',
SEI: '0x531',
MONAD: '0x8f',
HYPEREVM: '0x3e7',
} as const;
6 changes: 6 additions & 0 deletions packages/transaction-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add `HYPEREVM` network support ([#7770](https://github.com/MetaMask/core/pull/7770))
- Add account address relationship API support
- Add incoming transactions API support

## [62.12.0]

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const CURSOR_MOCK = '0x456';
const END_TIMESTAMP_MOCK = 123;
const START_TIMESTAMP_MOCK = 456;
const CHAIN_ID_SUPPORTED = 1;
const CHAIN_ID_UNSUPPORTED = 999;
const CHAIN_ID_UNSUPPORTED = 123456789;
const FROM_ADDRESS = '0xSender';
const TO_ADDRESS = '0xRecipient';
const TAG_MOCK = 'test1';
Expand Down
1 change: 1 addition & 0 deletions packages/transaction-controller/src/api/accounts-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const SUPPORTED_CHAIN_IDS_FOR_RELATIONSHIP_API = [
534352, // Scroll
1329, // Sei
143, // Monad
999, // HyperEVM
];

const log = createModuleLogger(projectLogger, 'accounts-api');
Expand Down
1 change: 1 addition & 0 deletions packages/transaction-controller/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const CHAIN_IDS = {
BASE_TESTNET: '0x14a33',
BSC: '0x38',
BSC_TESTNET: '0x61',
HYPEREVM: '0x3e7',
OPTIMISM: '0xa',
OPTIMISM_TESTNET: '0x1a4',
OPBNB: '0xcc',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const SUPPORTED_CHAIN_IDS: Hex[] = [
CHAIN_IDS.SCROLL,
CHAIN_IDS.SEI,
CHAIN_IDS.MONAD,
CHAIN_IDS.HYPEREVM,
];

const log = createModuleLogger(
Expand Down
7 changes: 7 additions & 0 deletions packages/transaction-controller/src/utils/swaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ const MONAD_SWAPS_TOKEN_OBJECT: SwapsTokenObject = {
decimals: 18,
} as const;

const HYPEREVM_SWAPS_TOKEN_OBJECT: SwapsTokenObject = {
name: 'Hyperliquid',
address: DEFAULT_TOKEN_ADDRESS,
decimals: 18,
} as const;

export const SWAPS_CHAINID_DEFAULT_TOKEN_MAP = {
[CHAIN_IDS.MAINNET]: ETH_SWAPS_TOKEN_OBJECT,
[SWAPS_TESTNET_CHAIN_ID]: TEST_ETH_SWAPS_TOKEN_OBJECT,
Expand All @@ -118,6 +124,7 @@ export const SWAPS_CHAINID_DEFAULT_TOKEN_MAP = {
[CHAIN_IDS.ZKSYNC_ERA]: ZKSYNC_ERA_SWAPS_TOKEN_OBJECT,
[CHAIN_IDS.SEI]: SEI_SWAPS_TOKEN_OBJECT,
[CHAIN_IDS.MONAD]: MONAD_SWAPS_TOKEN_OBJECT,
[CHAIN_IDS.HYPEREVM]: HYPEREVM_SWAPS_TOKEN_OBJECT,
} as const;

export const SWAP_TRANSACTION_TYPES = [
Expand Down
Loading