Skip to content
Merged
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/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 `SEI` network support ([#5694](https://github.com/MetaMask/core/pull/5694))
- Add account address relationship API support
- Add incoming transactions API support

## [57.2.0]

### Added
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 @@ -107,6 +107,7 @@ const SUPPORTED_CHAIN_IDS_FOR_RELATIONSHIP_API = [
42161, // Arbitrum
59144, // Linea
534352, // Scroll
1329, // Sei
];

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 @@ -30,6 +30,7 @@ export const CHAIN_IDS = {
SCROLL: '0x82750',
SCROLL_SEPOLIA: '0x8274f',
MEGAETH_TESTNET: '0x18c6',
SEI: '0x531',
} as const;

/** Extract of the Wrapped ERC-20 ABI required for simulation. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const SUPPORTED_CHAIN_IDS: Hex[] = [
CHAIN_IDS.OPTIMISM,
CHAIN_IDS.ARBITRUM,
CHAIN_IDS.SCROLL,
CHAIN_IDS.SEI,
];

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 @@ -94,6 +94,12 @@ const ZKSYNC_ERA_SWAPS_TOKEN_OBJECT: SwapsTokenObject = {
...ETH_SWAPS_TOKEN_OBJECT,
} as const;

const SEI_SWAPS_TOKEN_OBJECT: SwapsTokenObject = {
name: 'Sei',
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 @@ -104,6 +110,7 @@ export const SWAPS_CHAINID_DEFAULT_TOKEN_MAP = {
[CHAIN_IDS.OPTIMISM]: OPTIMISM_SWAPS_TOKEN_OBJECT,
[CHAIN_IDS.ARBITRUM]: ARBITRUM_SWAPS_TOKEN_OBJECT,
[CHAIN_IDS.ZKSYNC_ERA]: ZKSYNC_ERA_SWAPS_TOKEN_OBJECT,
[CHAIN_IDS.SEI]: SEI_SWAPS_TOKEN_OBJECT,
} as const;

export const SWAP_TRANSACTION_TYPES = [
Expand Down
Loading