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
4 changes: 2 additions & 2 deletions modules/sdk-core/src/bitgo/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
16 changes: 16 additions & 0 deletions modules/statics/src/coins/ofcErc20Coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions modules/statics/src/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export class CoinMap {
98867: 'tplume',
98866: 'plume',
6342: 'tmegaeth',
4326: 'megaeth',
295: 'hbarevm',
296: 'thbarevm',
196: 'okb',
Expand Down
5 changes: 2 additions & 3 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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';
}
Expand Down