Skip to content

Commit

Permalink
➕ Add Berachain Test and Main Networks
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Feb 7, 2025
1 parent 07fee69 commit 3c96b29
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ The current available networks are:
- `soneiumTestnet`
- `swellTestnet`
- `hemiTestnet`
- `berachainTestnet`
- **EVM-Based Production Networks:**
- `ethMain`
- `bscMain`
Expand Down Expand Up @@ -315,6 +316,7 @@ The current available networks are:
- `soneiumMain`
- `swellMain`
- `hemiMain`
- `berachainMain`

> [!IMPORTANT]
> Note that you must ensure that your deployment account has sufficient funds on **all** target networks.
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"engines": {
"node": ">=14.0.0"
},
"packageManager": "[email protected]",
"scripts": {
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand Down Expand Up @@ -63,5 +64,11 @@
"@nomicfoundation/hardhat-ethers": "^3.0.8",
"ethers": "^6.13.5",
"hardhat": "^2.22.18"
},
"pnpm": {
"onlyBuiltDependencies": [
"keccak",
"secp256k1"
]
}
}
8 changes: 8 additions & 0 deletions src/utils/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ export const networksInfo = {
url: "https://testnet.explorer.hemi.xyz",
chainId: 743111,
},
berachainTestnet: {
url: "https://bartio.beratrail.io",
chainId: 80084,
},
ethMain: { url: "https://etherscan.io", chainId: 1 },
bscMain: { url: "https://bscscan.com", chainId: 56 },
optimismMain: { url: "https://optimistic.etherscan.io", chainId: 10 },
Expand Down Expand Up @@ -280,6 +284,10 @@ export const networksInfo = {
url: "https://explorer.hemi.xyz",
chainId: 43111,
},
berachainMain: {
url: "https://berascan.com",
chainId: 80094,
},
} as const;

// Define a type `SupportedNetwork` that represents the union of all possible network names
Expand Down

0 comments on commit 3c96b29

Please sign in to comment.