Skip to content

Commit a4db649

Browse files
committed
Add Berachain, Sonic, HyperEVM
1 parent b9c2524 commit a4db649

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

packages/wallet/primitives/src/network.ts

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ export const ChainId = {
130130

131131
// ARC
132132
ARC_TESTNET: 5042002,
133+
134+
// HYPEREVM
135+
HYPEREVM: 999,
136+
137+
// SONIC
138+
SONIC: 146,
139+
140+
// BERACHAIN
141+
BERACHAIN: 80094,
133142
} as const
134143

135144
export type ChainId = (typeof ChainId)[keyof typeof ChainId]
@@ -958,6 +967,61 @@ export const ALL: Network[] = [
958967
decimals: 6,
959968
},
960969
},
970+
971+
{
972+
chainId: ChainId.HYPEREVM,
973+
type: NetworkType.MAINNET,
974+
name: 'hyperevm',
975+
title: 'HyperEVM',
976+
rpcUrl: getRpcUrl('hyperevm'),
977+
logoUrl: getLogoUrl(ChainId.HYPEREVM),
978+
blockExplorer: {
979+
name: 'HyperEVM Explorer',
980+
url: 'https://www.hyperscan.com/',
981+
},
982+
nativeCurrency: {
983+
symbol: 'HYPE',
984+
name: 'HYPE',
985+
decimals: 18,
986+
},
987+
},
988+
989+
{
990+
chainId: ChainId.BERACHAIN,
991+
type: NetworkType.MAINNET,
992+
name: 'berachain',
993+
title: 'Berachain',
994+
rpcUrl: getRpcUrl('berachain'),
995+
logoUrl: getLogoUrl(ChainId.BERACHAIN),
996+
blockExplorer: {
997+
name: 'Berachain Explorer',
998+
url: 'https://berascan.com/',
999+
},
1000+
nativeCurrency: {
1001+
symbol: 'BEAR',
1002+
name: 'BEAR',
1003+
decimals: 18,
1004+
},
1005+
},
1006+
1007+
{
1008+
chainId: ChainId.SONIC,
1009+
type: NetworkType.MAINNET,
1010+
name: 'sonic',
1011+
title: 'Sonic',
1012+
rpcUrl: getRpcUrl('sonic'),
1013+
logoUrl: getLogoUrl(ChainId.SONIC),
1014+
blockExplorer: {
1015+
name: 'Sonic Explorer',
1016+
url: 'https://sonicscan.com/',
1017+
},
1018+
nativeCurrency: {
1019+
symbol: 'S',
1020+
name: 'Sonic',
1021+
decimals: 18,
1022+
},
1023+
},
1024+
9611025
]
9621026

9631027
function getRpcUrl(networkName: string): string {

0 commit comments

Comments
 (0)