Skip to content

Commit f402538

Browse files
authored
➕ Add Berachain Test and Main Network Deployments (#176)
### 🕓 Changelog Add Berachain test and main network deployments: - [Berachain Testnet (bArtio)](https://bartio.beratrail.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed), - [Berachain](https://berascan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed). #### Verification Compare the `keccak256` hash of the runtime bytecode with the canonical `keccak256` hash of the runtime bytecode [here](https://github.com/pcaversaccio/createx#security-considerations) (`0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f`): ```console ~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://bartio.drpc.org) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.berachain.com) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ``` --------- Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
1 parent 0f27265 commit f402538

File tree

7 files changed

+80
-26
lines changed

7 files changed

+80
-26
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,6 +2240,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
22402240
- [Soneium](https://soneium.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22412241
- [Swellchain](https://explorer.swellnetwork.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22422242
- [Hemi](https://explorer.hemi.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2243+
- [Berachain](https://berascan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22432244

22442245
#### Ethereum Test Networks
22452246

@@ -2308,6 +2309,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
23082309
- [Soneium Sepolia Testnet (Minato)](https://soneium-minato.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23092310
- [Swellchain Sepolia Testnet](https://swell-testnet-explorer.alt.technology/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23102311
- [Hemi Sepolia Testnet](https://testnet.explorer.hemi.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2312+
- [Berachain Testnet (bArtio)](https://bartio.beratrail.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23112313

23122314
## Integration With External Tooling
23132315

deployments/deployments.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,13 @@
473473
"https://explorer.hemi.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
474474
]
475475
},
476+
{
477+
"name": "Berachain",
478+
"chainId": 80094,
479+
"urls": [
480+
"https://berascan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
481+
]
482+
},
476483
{
477484
"name": "Sepolia",
478485
"chainId": 11155111,
@@ -930,5 +937,12 @@
930937
"urls": [
931938
"https://testnet.explorer.hemi.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
932939
]
940+
},
941+
{
942+
"name": "Berachain Testnet (bArtio)",
943+
"chainId": 80084,
944+
"urls": [
945+
"https://bartio.beratrail.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
946+
]
933947
}
934948
]

hardhat.config.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,16 @@ const config: HardhatUserConfig = {
861861
url: vars.get("HEMI_MAINNET_URL", "https://rpc.hemi.network/rpc"),
862862
accounts,
863863
},
864+
berachainTestnet: {
865+
chainId: 80084,
866+
url: vars.get("BERACHAIN_TESTNET_URL", "https://bartio.drpc.org"),
867+
accounts,
868+
},
869+
berachainMain: {
870+
chainId: 80094,
871+
url: vars.get("BERACHAIN_MAINNET_URL", "https://rpc.berachain.com"),
872+
accounts,
873+
},
864874
},
865875
contractSizer: {
866876
alphaSort: true,
@@ -1089,6 +1099,9 @@ const config: HardhatUserConfig = {
10891099
// For Hemi testnet & mainnet
10901100
hemi: vars.get("HEMI_API_KEY", ""),
10911101
hemiTestnet: vars.get("HEMI_API_KEY", ""),
1102+
// For Berachain testnet & mainnet
1103+
berachain: vars.get("BERACHAIN_API_KEY", ""),
1104+
berachainTestnet: vars.get("BERACHAIN_API_KEY", ""),
10921105
},
10931106
customChains: [
10941107
{
@@ -2001,6 +2014,23 @@ const config: HardhatUserConfig = {
20012014
browserURL: "https://testnet.explorer.hemi.xyz",
20022015
},
20032016
},
2017+
{
2018+
network: "berachain",
2019+
chainId: 80094,
2020+
urls: {
2021+
apiURL: "https://api.berascan.com/api",
2022+
browserURL: "https://berascan.com",
2023+
},
2024+
},
2025+
{
2026+
network: "berachainTestnet",
2027+
chainId: 80084,
2028+
urls: {
2029+
apiURL:
2030+
"https://api.routescan.io/v2/network/mainnet/evm/80084/etherscan",
2031+
browserURL: "https://bartio.beratrail.io",
2032+
},
2033+
},
20042034
],
20052035
},
20062036
};

interface/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
},
2121
"author": "pcaversaccio (https://pcaversaccio.com), Matt Solomon (https://mattsolomon.dev)",
2222
"license": "MIT",
23-
"packageManager": "pnpm@10.2.0",
2423
"scripts": {
2524
"dev": "npx next dev",
2625
"build": "npx next build",

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"author": "pcaversaccio (https://pcaversaccio.com), Matt Solomon (https://mattsolomon.dev)",
2323
"license": "AGPL-3.0-only",
24-
"packageManager": "pnpm@10.2.0",
24+
"packageManager": "pnpm@10.2.1",
2525
"scripts": {
2626
"clean": "npx hardhat clean && forge clean",
2727
"test": "forge test --out forge-artifacts",
@@ -178,6 +178,8 @@
178178
"deploy:swellmain": "npx hardhat run --no-compile --network swellMain scripts/deploy.ts",
179179
"deploy:hemitestnet": "npx hardhat run --no-compile --network hemiTestnet scripts/deploy.ts",
180180
"deploy:hemimain": "npx hardhat run --no-compile --network hemiMain scripts/deploy.ts",
181+
"deploy:berachaintestnet": "npx hardhat run --no-compile --network berachainTestnet scripts/deploy.ts",
182+
"deploy:berachainmain": "npx hardhat run --no-compile --network berachainMain scripts/deploy.ts",
181183
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
182184
"prettier:check:interface": "pnpm -C interface prettier:check",
183185
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
@@ -212,5 +214,12 @@
212214
"typechain": "^8.3.2",
213215
"typescript": "^5.7.3",
214216
"typescript-eslint": "^8.23.0"
217+
},
218+
"pnpm": {
219+
"onlyBuiltDependencies": [
220+
"keccak",
221+
"secp256k1",
222+
"sharp"
223+
]
215224
}
216225
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)