Skip to content

Commit 521af18

Browse files
authored
Add Moonbeam chain configs (#652)
1 parent d6f7187 commit 521af18

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

packages/network/src/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,7 @@ export const allNetworks = validateAndSortNetworks([
136136
createNetworkConfig(ChainId.ROOT_NETWORK_PORCINI),
137137
createNetworkConfig(ChainId.LAOS),
138138
createNetworkConfig(ChainId.LAOS_SIGMA_TESTNET),
139+
createNetworkConfig(ChainId.MOONBEAM),
140+
createNetworkConfig(ChainId.MOONBASE_ALPHA),
139141
...hardhatNetworks
140142
])

packages/network/src/constants.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ export enum ChainId {
9696
LAOS = 6283,
9797
LAOS_SIGMA_TESTNET = 62850,
9898

99+
// MOONBEAM
100+
MOONBEAM = 1284,
101+
MOONBASE_ALPHA = 1287,
102+
99103
// HARDHAT TESTNETS
100104
HARDHAT = 31337,
101105
HARDHAT_2 = 31338
@@ -996,6 +1000,40 @@ export const networks: Record<ChainId, NetworkMetadata> = {
9961000
decimals: 18
9971001
}
9981002
},
1003+
[ChainId.MOONBEAM]: {
1004+
chainId: ChainId.MOONBEAM,
1005+
type: NetworkType.MAINNET,
1006+
name: 'moonbeam',
1007+
title: 'Moonbeam',
1008+
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.MOONBEAM}.webp`,
1009+
testnet: false,
1010+
blockExplorer: {
1011+
name: 'Moonscan',
1012+
rootUrl: 'https://moonscan.io/'
1013+
},
1014+
nativeToken: {
1015+
symbol: 'GLMR',
1016+
name: 'GLMR',
1017+
decimals: 18
1018+
}
1019+
},
1020+
[ChainId.MOONBASE_ALPHA]: {
1021+
chainId: ChainId.MOONBASE_ALPHA,
1022+
type: NetworkType.TESTNET,
1023+
name: 'moonbase-alpha',
1024+
title: 'Moonbase Alpha',
1025+
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.MOONBASE_ALPHA}.webp`,
1026+
testnet: true,
1027+
blockExplorer: {
1028+
name: 'Moonscan (Moonbase Alpha)',
1029+
rootUrl: 'https://moonbase.moonscan.io/'
1030+
},
1031+
nativeToken: {
1032+
symbol: 'GLMR',
1033+
name: 'GLMR',
1034+
decimals: 18
1035+
}
1036+
},
9991037
[ChainId.HARDHAT]: {
10001038
chainId: ChainId.HARDHAT,
10011039
name: 'hardhat',

0 commit comments

Comments
 (0)