Skip to content

Commit 7e81f06

Browse files
committed
chore(statics): add missing config for megaeth
TICKET: WIN-8334
1 parent 7f44b9d commit 7e81f06

7 files changed

Lines changed: 19 additions & 3 deletions

File tree

.DS_Store

8 KB
Binary file not shown.

examples/.DS_Store

6 KB
Binary file not shown.

modules/.DS_Store

26 KB
Binary file not shown.

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ const mainnetBase: EnvironmentTemplate = {
276276
baseUrl: 'https://explorer.plume.org',
277277
},
278278
megaeth: {
279-
baseUrl: 'https://carrot.megaeth.com/rpc', //TODO: add mainnet url when available
279+
baseUrl: 'https://mainnet.megaeth.com/rpc',
280280
},
281281
hbarevm: {
282282
baseUrl: 'https://mainnet.mirrornode.hedera.com/api/v1',
@@ -442,7 +442,7 @@ const testnetBase: EnvironmentTemplate = {
442442
baseUrl: 'https://evm-testnet.flowscan.io',
443443
},
444444
megaeth: {
445-
baseUrl: 'https://megaeth-testnet.blockscout.com',
445+
baseUrl: 'https://carrot.megaeth.com/rpc',
446446
},
447447
plume: {
448448
baseUrl: 'https://testnet-explorer.plume.org',

modules/statics/src/coins/ofcErc20Coins.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5162,6 +5162,22 @@ export const tOfcErc20Coins = [
51625162
18,
51635163
underlyingAssetForSymbol('tmantle:bgerch')
51645164
),
5165+
5166+
// MegaEth Network tokens
5167+
ofcerc20(
5168+
'65df2f65-bb7a-4485-b725-a5fb2e6cd281',
5169+
'ofcmegaeth:mega',
5170+
'Mega',
5171+
18,
5172+
underlyingAssetForSymbol('megaeth:mega')
5173+
),
5174+
ofcerc20(
5175+
'7bcafa71-a2f3-4a9e-98e2-4d3f655281f8',
5176+
'ofcmegaeth:weth',
5177+
'Wrapped Ether',
5178+
18,
5179+
underlyingAssetForSymbol('megaeth:weth')
5180+
),
51655181
];
51665182

51675183
function underlyingAssetForSymbol(underlyingAssetValue: string): UnderlyingAsset {

modules/statics/src/map.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export class CoinMap {
155155
98867: 'tplume',
156156
98866: 'plume',
157157
6342: 'tmegaeth',
158+
4326: 'megaeth',
158159
295: 'hbarevm',
159160
296: 'thbarevm',
160161
196: 'okb',

modules/statics/src/networks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2135,7 +2135,6 @@ class FlowTestnet extends Testnet implements EthereumNetwork {
21352135
nativeCoinOperationHashPrefix = '545';
21362136
}
21372137

2138-
// TODO update MegaETH explorer urls and chainId when available
21392138
class MegaETH extends Mainnet implements EthereumNetwork {
21402139
name = 'MegaETH';
21412140
family = CoinFamily.MEGAETH;

0 commit comments

Comments
 (0)