From b4de48391e91531228f11f4fe34b0d3688a4d25d Mon Sep 17 00:00:00 2001 From: N V Rakesh Reddy Date: Fri, 9 Jan 2026 11:28:13 +0530 Subject: [PATCH] chore(statics): add missing config for megaeth TICKET: WIN-8334 --- modules/sdk-core/src/bitgo/environments.ts | 4 ++-- modules/statics/src/coins/ofcErc20Coins.ts | 16 ++++++++++++++++ modules/statics/src/map.ts | 1 + modules/statics/src/networks.ts | 5 ++--- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/modules/sdk-core/src/bitgo/environments.ts b/modules/sdk-core/src/bitgo/environments.ts index 92be991b96..6da4d4ca1b 100644 --- a/modules/sdk-core/src/bitgo/environments.ts +++ b/modules/sdk-core/src/bitgo/environments.ts @@ -276,7 +276,7 @@ const mainnetBase: EnvironmentTemplate = { baseUrl: 'https://explorer.plume.org', }, megaeth: { - baseUrl: 'https://carrot.megaeth.com/rpc', //TODO: add mainnet url when available + baseUrl: 'https://mainnet.megaeth.com/rpc', }, hbarevm: { baseUrl: 'https://mainnet.mirrornode.hedera.com/api/v1', @@ -442,7 +442,7 @@ const testnetBase: EnvironmentTemplate = { baseUrl: 'https://evm-testnet.flowscan.io', }, megaeth: { - baseUrl: 'https://megaeth-testnet.blockscout.com', + baseUrl: 'https://carrot.megaeth.com/rpc', }, plume: { baseUrl: 'https://testnet-explorer.plume.org', diff --git a/modules/statics/src/coins/ofcErc20Coins.ts b/modules/statics/src/coins/ofcErc20Coins.ts index 42050efc30..de572940cd 100644 --- a/modules/statics/src/coins/ofcErc20Coins.ts +++ b/modules/statics/src/coins/ofcErc20Coins.ts @@ -5162,6 +5162,22 @@ export const tOfcErc20Coins = [ 18, underlyingAssetForSymbol('tmantle:bgerch') ), + + // MegaEth Network tokens + ofcerc20( + '65df2f65-bb7a-4485-b725-a5fb2e6cd281', + 'ofcmegaeth:mega', + 'Mega', + 18, + underlyingAssetForSymbol('megaeth:mega') + ), + ofcerc20( + '7bcafa71-a2f3-4a9e-98e2-4d3f655281f8', + 'ofcmegaeth:weth', + 'Wrapped Ether', + 18, + underlyingAssetForSymbol('megaeth:weth') + ), ]; function underlyingAssetForSymbol(underlyingAssetValue: string): UnderlyingAsset { diff --git a/modules/statics/src/map.ts b/modules/statics/src/map.ts index 2dcdf86777..e72f31c592 100644 --- a/modules/statics/src/map.ts +++ b/modules/statics/src/map.ts @@ -155,6 +155,7 @@ export class CoinMap { 98867: 'tplume', 98866: 'plume', 6342: 'tmegaeth', + 4326: 'megaeth', 295: 'hbarevm', 296: 'thbarevm', 196: 'okb', diff --git a/modules/statics/src/networks.ts b/modules/statics/src/networks.ts index 94cea84813..e239d423d0 100644 --- a/modules/statics/src/networks.ts +++ b/modules/statics/src/networks.ts @@ -2135,7 +2135,6 @@ class FlowTestnet extends Testnet implements EthereumNetwork { nativeCoinOperationHashPrefix = '545'; } -// TODO update MegaETH explorer urls and chainId when available class MegaETH extends Mainnet implements EthereumNetwork { name = 'MegaETH'; family = CoinFamily.MEGAETH; @@ -2148,8 +2147,8 @@ class MegaETH extends Mainnet implements EthereumNetwork { class MegaETHTestnet extends Testnet implements EthereumNetwork { name = 'MegaETHTestnet'; family = CoinFamily.MEGAETH; - explorerUrl = 'https://www.megaexplorer.xyz/tx/'; - accountExplorerUrl = 'https://www.megaexplorer.xyz/address/'; + explorerUrl = 'https://megaeth.blockscout.com/tx/'; + accountExplorerUrl = 'https://megaeth.blockscout.com/address/'; chainId = 6342; nativeCoinOperationHashPrefix = '6342'; }