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
12 changes: 12 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @tangled3/react

## 1.17.18

### Patch Changes

- add/megaETH fix

## 1.17.17

### Patch Changes

- add/megaETH chain

## 1.17.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tangled3/react",
"private": false,
"version": "1.17.16",
"version": "1.17.18",
"type": "module",
"license": "MIT",
"main": "./src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/chains/evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export * from './hyperEVM.js';
export * from './hyperliquid.js';
export * from './ink.js';
export * from './jfin.js';
export * from './megaETH.js';
export * from './morph.js';
export * from './nahmii.js';
export * from './nero.js';
Expand Down
28 changes: 28 additions & 0 deletions packages/react/src/chains/evm/megaETH.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { EVMChain } from '../../types/index.js';

export const megaETH: EVMChain = {
id: 6342,
name: 'megaETH',
type: 'evm',
nativeCurrency: {
decimals: 18,
name: 'ETH',
symbol: 'ETH',
},
rpcUrls: {
default: {
http: ['https://carrot.megaeth.com/rpc'],
},
},
blockExplorers: {
default: {
name: 'megaETH explorer',
url: 'https://testnet.megaeth.com',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
},
},
};
3 changes: 2 additions & 1 deletion packages/react/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const CHAIN_ID = {
storyOdyssey: '1516',
monadTestnet: '10143',
romeTestnet: '200018',

megaETH: '6342',
// cosmos
osmosisTestnet: 'osmo-test-5',
alloraTestnet: 'allora-testnet-1',
Expand Down Expand Up @@ -224,6 +224,7 @@ export const CHAIN_DATA: Record<ChainId, ChainData> = {
[CHAIN_ID.storyOdyssey]: chains.storyOdyssey,
[CHAIN_ID.monadTestnet]: chains.monadTestnet,
[CHAIN_ID.romeTestnet]: chains.romeTestnet,
[CHAIN_ID.megaETH]: chains.megaETH,

// cosmos testnets
[CHAIN_ID.osmosisTestnet]: chains.osmosisTestnet,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/utils/getDefaultSupportedChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const getDefaultSupportedChains = (testnet?: boolean): SupportedChainsByType =>
evm.unichainSepolia,
evm.monadTestnet,
evm.romeTestnet,
evm.megaETH,
] as EVMChain[];
supportedChains.cosmos = [cosmos.osmosisTestnet, cosmos.alloraTestnet, cosmos.injectiveTestnet];
supportedChains.solana = [solanaTestnet] as OtherChainData<'solana'>[];
Expand Down
Loading