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
3 changes: 3 additions & 0 deletions packages/assets-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `isDeprecated` option to `AccountTrackerController` constructor ([#9033](https://github.com/MetaMask/core/pull/9033))
- When `isDeprecated()` returns `true`, no network requests are sent and `accountsByChainId` is reset to `{}` at construction and at every entry point (`refresh`, `refreshAddresses`, `_executePoll`, `syncBalanceWithAddresses`, `updateNativeBalances`, and `updateStakedBalances`), so no stale balances remain in state.
- The function is re-evaluated on each entry point so it can be toggled at runtime without reconstructing the controller.
- Add `ARC` support ([#9006](https://github.com/MetaMask/core/pull/9006))
- Add `ARC` in `SupportedTokenDetectionNetworks`
- Add `ARC` in `SUPPORTED_NETWORKS_ACCOUNTS_API_V4`

### Changed

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

## [67.0.0]

### 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',
Comment thread
cursor[bot] marked this conversation as resolved.
BASE: '0x2105',
BASE_TESTNET: '0x14a33',
BSC: '0x38',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const SUPPORTED_CHAIN_IDS: Hex[] = [
CHAIN_IDS.SEI,
CHAIN_IDS.MONAD,
CHAIN_IDS.HYPEREVM,
CHAIN_IDS.ARC,
];

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 @@ -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