From 060c9adbb7b94d30095f9d2e960543d057dfdd3b Mon Sep 17 00:00:00 2001 From: Aleksa Colovic Date: Thu, 4 Dec 2025 12:26:58 +0100 Subject: [PATCH] feat: Add MegaETH --- package.json | 2 +- src/networks.ts | 12 ++++++++++++ src/tokens.ts | 9 +++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f2b1462..090e3a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@across-protocol/constants", - "version": "3.1.91", + "version": "3.1.92", "description": "Export commonly re-used values for Across repositories", "repository": "https://github.com/across-protocol/constants.git", "author": "hello@umaproject.org", diff --git a/src/networks.ts b/src/networks.ts index 0b18381..dee2da7 100644 --- a/src/networks.ts +++ b/src/networks.ts @@ -40,6 +40,7 @@ export const MAINNET_CHAIN_IDs = { LINEA: 59144, LISK: 1135, MAINNET: 1, + MEGAETH: 4326, // Do we want to go with MEGAETH or MEGA_ETH? MODE: 34443, MONAD: 143, OPTIMISM: 10, @@ -78,6 +79,7 @@ export const PRODUCTION_OFT_EIDs = { HYPEREVM: 30367, MAINNET: 30101, MONAD: 30390, + // @TODO: Add MEGAETH EID OPTIMISM: 30111, PLASMA: 30383, POLYGON: 30109, @@ -274,6 +276,16 @@ export const PRODUCTION_NETWORKS: { [chainId: number]: PublicNetwork } = { oftEid: PRODUCTION_OFT_EIDs.MAINNET, hypDomainId: MAINNET_CHAIN_IDs.MAINNET, }, + [CHAIN_IDs.MEGAETH]: { + name: "MegaETH", + family: OP_STACK, + nativeToken: "ETH", + publicRPC: "", // @TODO: Add MegaETH RPC + blockExplorer: "https://megaeth-testnet-v3.blockscout.com/", // @TODO: Add MegaETH block explorer (this is testnet block explorer) + cctpDomain: CCTP_NO_DOMAIN, + oftEid: OFT_NO_EID, // @TODO: Add MegaETH EID + hypDomainId: MAINNET_CHAIN_IDs.MEGAETH, // @TODO: What is hypDomainId? + }, [CHAIN_IDs.MODE]: { name: "Mode", family: OP_STACK, diff --git a/src/tokens.ts b/src/tokens.ts index 87c48fc..d80ecf7 100644 --- a/src/tokens.ts +++ b/src/tokens.ts @@ -467,6 +467,14 @@ export const TOKEN_SYMBOLS_MAP = { }, coingeckoId: "usdh-2", }, + USDM: { + name: "MegaUSD", + symbol: "USDM", + decimals: 18, + addresses: { + [CHAIN_IDs.MEGAETH]: "0x6651573521BD0852e570ac7D1f530aC022279507" // @TODO: This is testnet address, change with mainnet + } + }, USDT: { name: "Tether USD", symbol: "USDT", @@ -480,6 +488,7 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.LINEA]: "0xA219439258ca9da29E9Cc4cE5596924745e12B93", [CHAIN_IDs.LISK]: "0x05D032ac25d322df992303dCa074EE7392C117b9", [CHAIN_IDs.MAINNET]: "0xdAC17F958D2ee523a2206206994597C13D831ec7", + [CHAIN_IDs.MEGAETH]: "", // @TODO: Add USDT address [CHAIN_IDs.MONAD]: "0xe7cd86e13AC4309349F30B3435a9d337750fC82D", [CHAIN_IDs.MONAD_TESTNET]: "0x88b8E2161DEDC77EF4ab7585569D2415a1C1055D", [CHAIN_IDs.MODE]: "0xf0F161fDA2712DB8b566946122a5af183995e2eD",