Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@across-protocol/constants",
"version": "3.1.94",
"version": "3.1.95",
"description": "Export commonly re-used values for Across repositories",
"repository": {
"type": "git",
Expand Down
12 changes: 12 additions & 0 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine w/ METAETH 👍

MODE: 34443,
MONAD: 143,
OPTIMISM: 10,
Expand Down Expand Up @@ -79,6 +80,7 @@ export const PRODUCTION_OFT_EIDs = {
INK: 30339,
MAINNET: 30101,
MONAD: 30390,
MEGAETH: 30398,
OPTIMISM: 30111,
PLASMA: 30383,
POLYGON: 30109,
Expand Down Expand Up @@ -275,6 +277,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: "https://mainnet.megaeth.com/rpc",
blockExplorer: "https://megaeth.blockscout.com",
cctpDomain: CCTP_NO_DOMAIN,
oftEid: PRODUCTION_OFT_EIDs.MEGAETH,
hypDomainId: MAINNET_CHAIN_IDs.MEGAETH,
},
[CHAIN_IDs.MODE]: {
name: "Mode",
family: OP_STACK,
Expand Down
11 changes: 11 additions & 0 deletions src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.LISK]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.LISK_SEPOLIA]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.MAINNET]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
[CHAIN_IDs.MEGAETH]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.MODE]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.MODE_SEPOLIA]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.OPTIMISM]: "0x4200000000000000000000000000000000000006",
Expand Down Expand Up @@ -468,6 +469,15 @@ export const TOKEN_SYMBOLS_MAP = {
},
coingeckoId: "usdh-2",
},
USDM: {
name: "MegaUSD",
symbol: "USDM",
decimals: 18,
addresses: {
[CHAIN_IDs.MAINNET]: "0xEc2AF1C8B110a61fD9C3Fa6a554a031Ca9943926",
[CHAIN_IDs.MEGAETH]: "" // @TODO: This is testnet address, change with mainnet
}
},
USDT: {
name: "Tether USD",
symbol: "USDT",
Expand Down Expand Up @@ -607,6 +617,7 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.LISK]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.LISK_SEPOLIA]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.MAINNET]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
[CHAIN_IDs.MEGAETH]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.MODE]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.MODE_SEPOLIA]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.OPTIMISM]: "0x4200000000000000000000000000000000000006",
Expand Down