Skip to content
Draft
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/assets-controllers/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 `ARC` support ([#9006](https://github.com/MetaMask/core/pull/9006))
- Add `ARC` in `SupportedTokenDetectionNetworks`
- Add `ARC` in `SUPPORTED_NETWORKS_ACCOUNTS_API_V4`

### Changed

- Bump `@metamask/network-enablement-controller` from `^5.2.0` to `^5.3.0` ([#9003](https://github.com/MetaMask/core/pull/9003))
Expand Down
1 change: 1 addition & 0 deletions packages/assets-controllers/src/assetsUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export enum SupportedTokenDetectionNetworks {
Sei = '0x531', // decimal: 1329
MonadMainnet = '0x8f', // decimal: 143
Hyperevm = '0x3e7', // decimal: 999
Arc = '0x13b2', // decimal: 5042
}

/**
Expand Down
1 change: 1 addition & 0 deletions packages/assets-controllers/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const SUPPORTED_NETWORKS_ACCOUNTS_API_V4 = [
'0x531', // 1329
'0x8f', // 143
'0x3e7', // 999 HyperEVM
'0x13b2', // 5042 Arc
];

/** Lowercase ERC-20 address for MetaMask USD (mUSD), same contract on listed chains. */
Expand Down
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 `ARC` network support ([#9006](https://github.com/MetaMask/core/pull/9006))
- Add account address relationship API support
- Add incoming transactions API support

## [66.0.1]

### Changed
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 @@ -110,6 +110,7 @@ const SUPPORTED_CHAIN_IDS_FOR_RELATIONSHIP_API = [
1329, // Sei
143, // Monad
999, // HyperEVM
5042, // Arc
];

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
@@ -1,6 +1,7 @@
export const CHAIN_IDS = {
MAINNET: '0x1',
GOERLI: '0x5',
ARC: '0x13b2',
BASE: '0x2105',
BASE_TESTNET: '0x14a33',
BSC: '0x38',
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 @@ -112,6 +112,12 @@ const HYPEREVM_SWAPS_TOKEN_OBJECT: SwapsTokenObject = {
decimals: 18,
} as const;

const ARC_SWAPS_TOKEN_OBJECT: SwapsTokenObject = {
name: 'USDC',
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 @@ -125,6 +131,7 @@ export const SWAPS_CHAINID_DEFAULT_TOKEN_MAP = {
[CHAIN_IDS.SEI]: SEI_SWAPS_TOKEN_OBJECT,
[CHAIN_IDS.MONAD]: MONAD_SWAPS_TOKEN_OBJECT,
[CHAIN_IDS.HYPEREVM]: HYPEREVM_SWAPS_TOKEN_OBJECT,
[CHAIN_IDS.ARC]: ARC_SWAPS_TOKEN_OBJECT,
} as const;

export const SWAP_TRANSACTION_TYPES = [
Expand Down
Loading