Skip to content

Commit

Permalink
Add Moonbeam chain configs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanpince committed Jan 21, 2025
1 parent d6f7187 commit cc239dd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/network/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,7 @@ export const allNetworks = validateAndSortNetworks([
createNetworkConfig(ChainId.ROOT_NETWORK_PORCINI),
createNetworkConfig(ChainId.LAOS),
createNetworkConfig(ChainId.LAOS_SIGMA_TESTNET),
createNetworkConfig(ChainId.MOONBEAM),
createNetworkConfig(ChainId.MOONBASE_ALPHA),
...hardhatNetworks
])
38 changes: 38 additions & 0 deletions packages/network/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ export enum ChainId {
LAOS = 6283,
LAOS_SIGMA_TESTNET = 62850,

// MOONBEAM
MOONBEAM = 1284,
MOONBASE_ALPHA = 1287,

// HARDHAT TESTNETS
HARDHAT = 31337,
HARDHAT_2 = 31338
Expand Down Expand Up @@ -996,6 +1000,40 @@ export const networks: Record<ChainId, NetworkMetadata> = {
decimals: 18
}
},
[ChainId.MOONBEAM]: {
chainId: ChainId.MOONBEAM,
type: NetworkType.MAINNET,
name: 'moonbeam',
title: 'Moonbeam',
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.MOONBEAM}.webp`,
testnet: false,
blockExplorer: {
name: 'Moonscan',
rootUrl: 'https://moonscan.io/'
},
nativeToken: {
symbol: 'GLMR',
name: 'GLMR',
decimals: 18
}
},
[ChainId.MOONBASE_ALPHA]: {
chainId: ChainId.MOONBASE_ALPHA,
type: NetworkType.TESTNET,
name: 'moonbase-alpha',
title: 'Moonbase Alpha',
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.MOONBASE_ALPHA}.webp`,
testnet: true,
blockExplorer: {
name: 'Moonscan (Moonbase Alpha)',
rootUrl: 'https://moonbase.moonscan.io/'
},
nativeToken: {
symbol: 'GLMR',
name: 'GLMR',
decimals: 18
}
},
[ChainId.HARDHAT]: {
chainId: ChainId.HARDHAT,
name: 'hardhat',
Expand Down

0 comments on commit cc239dd

Please sign in to comment.