Skip to content

Commit

Permalink
add homeverse testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhaankar-Sharma committed Jul 13, 2023
1 parent 8557023 commit f1ff757
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/network/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ export enum ChainId {
// HARDHAT TESTNETS
HARDHAT = 31337,
HARDHAT_2 = 31338,

// HOMEVERSE
HOMEVERSE_TESTNET = 40875
}

export interface NetworkConfig {
Expand Down Expand Up @@ -326,6 +329,15 @@ export const networks: Record<ChainId, Omit<NetworkConfig, 'rpcUrl'>> = {
chainId: ChainId.HARDHAT_2,
name: 'hardhat2',
title: 'Hardhat (local testnet)'
},
[ChainId.HOMEVERSE_TESTNET]: {
chainId: ChainId.HOMEVERSE_TESTNET,
name: 'homeverse-testnet',
title: 'Homeverse Testnet',
blockExplorer: {
name: 'Homeverse Explorer (Testnet)',
rootUrl: 'https://explorer.oasys.homeverse.games/'
}
}
}

Expand Down Expand Up @@ -422,6 +434,10 @@ export const allNetworks = validateAndSortNetworks([
...networks[ChainId.BASE_GOERLI],
...genUrls('base-goerli')
},
{
...networks[ChainId.HOMEVERSE_TESTNET],
...genUrls('homeverse-testnet')
},
{
...networks[ChainId.HARDHAT],
rpcUrl: 'http://localhost:8545',
Expand Down

0 comments on commit f1ff757

Please sign in to comment.