Skip to content

Commit 97b99aa

Browse files
committed
➕ Add Berachain Test and Main Networks
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
1 parent 96177c7 commit 97b99aa

File tree

5 files changed

+52
-8
lines changed

5 files changed

+52
-8
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Install pnpm
24-
uses: pnpm/action-setup@v3
24+
uses: pnpm/action-setup@v4
2525
with:
2626
version: latest
2727
run_install: false

.github/workflows/test-contracts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v4
2525

2626
- name: Install pnpm
27-
uses: pnpm/action-setup@v3
27+
uses: pnpm/action-setup@v4
2828
with:
2929
version: latest
3030
run_install: false

hardhat.config.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,18 @@ const config: HardhatUserConfig = {
939939
accounts:
940940
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
941941
},
942+
berachainTestnet: {
943+
chainId: 80084,
944+
url: process.env.BERACHAIN_TESTNET_URL || "",
945+
accounts:
946+
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
947+
},
948+
berachainMain: {
949+
chainId: 80094,
950+
url: process.env.BERACHAIN_MAINNET_URL || "",
951+
accounts:
952+
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
953+
},
942954
},
943955
gasReporter: {
944956
enabled: process.env.REPORT_GAS !== undefined,
@@ -1165,6 +1177,9 @@ const config: HardhatUserConfig = {
11651177
// For Hemi testnet & mainnet
11661178
hemi: process.env.HEMI_API_KEY || "",
11671179
hemiTestnet: process.env.HEMI_API_KEY || "",
1180+
// For Berachain testnet & mainnet
1181+
berachain: process.env.BERACHAIN_API_KEY || "",
1182+
berachainTestnet: process.env.BERACHAIN_API_KEY || "",
11681183
},
11691184
customChains: [
11701185
{
@@ -2101,6 +2116,23 @@ const config: HardhatUserConfig = {
21012116
browserURL: "https://testnet.explorer.hemi.xyz",
21022117
},
21032118
},
2119+
{
2120+
network: "berachain",
2121+
chainId: 80094,
2122+
urls: {
2123+
apiURL: "https://api.berascan.com/api",
2124+
browserURL: "https://berascan.com",
2125+
},
2126+
},
2127+
{
2128+
network: "berachainTestnet",
2129+
chainId: 80084,
2130+
urls: {
2131+
apiURL:
2132+
"https://api.routescan.io/v2/network/mainnet/evm/80084/etherscan",
2133+
browserURL: "https://bartio.beratrail.io",
2134+
},
2135+
},
21042136
],
21052137
},
21062138
};

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"name": "create2deployer",
33
"version": "1.0.0",
44
"description": "Helper smart contract to make easier and safer usage of the `CREATE2` EVM opcode.",
5-
"author": "Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>",
6-
"license": "MIT",
75
"keywords": [
86
"create2",
97
"smart-contracts",
@@ -19,6 +17,9 @@
1917
"bugs": {
2018
"url": "https://github.com/pcaversaccio/create2deployer/issues"
2119
},
20+
"author": "pcaversaccio (https://pcaversaccio.com)",
21+
"license": "MIT",
22+
"packageManager": "pnpm@10.2.1",
2223
"scripts": {
2324
"help": "npx hardhat help",
2425
"accounts": "npx hardhat accounts",
@@ -171,6 +172,8 @@
171172
"deploy:swellmain": "npx hardhat run --network swellMain scripts/deploy.ts",
172173
"deploy:hemitestnet": "npx hardhat run --network hemiTestnet scripts/deploy.ts",
173174
"deploy:hemimain": "npx hardhat run --network hemiMain scripts/deploy.ts",
175+
"deploy:berachaintestnet": "npx hardhat run --network berachainTestnet scripts/deploy.ts",
176+
"deploy:berachainmain": "npx hardhat run --network berachainMain scripts/deploy.ts",
174177
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
175178
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
176179
"solhint:check": "npx solhint \"contracts/**/*.sol\"",
@@ -212,5 +215,14 @@
212215
"typescript": "^5.7.3",
213216
"typescript-eslint": "^8.23.0",
214217
"zksync-ethers": "^6.16.0"
218+
},
219+
"pnpm": {
220+
"onlyBuiltDependencies": [
221+
"cpu-features",
222+
"keccak",
223+
"protobufjs",
224+
"secp256k1",
225+
"ssh2"
226+
]
215227
}
216228
}

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)