Skip to content

Commit

Permalink
➕ Add Hemi Test and Main Network Deployments
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Jan 31, 2025
1 parent bdcc188 commit 04a4231
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Etherlink](https://explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Soneium](https://soneium.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Swellchain](https://explorer.swellnetwork.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Hemi](https://explorer.hemi.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down Expand Up @@ -2306,6 +2307,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Etherlink Testnet (Ghostnet)](https://testnet.explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Soneium Sepolia Testnet (Minato)](https://soneium-minato.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Swellchain Sepolia Testnet](https://swell-testnet-explorer.alt.technology/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Hemi Sepolia Testnet](https://testnet.explorer.hemi.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

## Integration With External Tooling

Expand Down
14 changes: 14 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@
"https://explorer.swellnetwork.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Hemi",
"chainId": 43111,
"urls": [
"https://explorer.hemi.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down Expand Up @@ -916,5 +923,12 @@
"urls": [
"https://swell-testnet-explorer.alt.technology/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Hemi Sepolia Testnet",
"chainId": 743111,
"urls": [
"https://testnet.explorer.hemi.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
29 changes: 29 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,16 @@ const config: HardhatUserConfig = {
),
accounts,
},
hemiTestnet: {
chainId: 743111,
url: vars.get("HEMI_TESTNET_URL", "https://testnet.rpc.hemi.network/rpc"),
accounts,
},
hemiMain: {
chainId: 43111,
url: vars.get("HEMI_MAINNET_URL", "https://rpc.hemi.network/rpc"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -1076,6 +1086,9 @@ const config: HardhatUserConfig = {
// For Swellchain testnet & mainnet
swell: vars.get("SWELL_API_KEY", ""),
swellTestnet: vars.get("SWELL_API_KEY", ""),
// For Hemi testnet & mainnet
hemi: vars.get("HEMI_API_KEY", ""),
hemiTestnet: vars.get("HEMI_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1972,6 +1985,22 @@ const config: HardhatUserConfig = {
browserURL: "https://swell-testnet-explorer.alt.technology",
},
},
{
network: "hemi",
chainId: 43111,
urls: {
apiURL: "https://explorer.hemi.xyz/api",
browserURL: "https://explorer.hemi.xyz",
},
},
{
network: "hemiTestnet",
chainId: 743111,
urls: {
apiURL: "https://testnet.explorer.hemi.xyz/api",
browserURL: "https://testnet.explorer.hemi.xyz",
},
},
],
},
};
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@
"deploy:soneiummain": "npx hardhat run --no-compile --network soneiumMain scripts/deploy.ts",
"deploy:swelltestnet": "npx hardhat run --no-compile --network swellTestnet scripts/deploy.ts",
"deploy:swellmain": "npx hardhat run --no-compile --network swellMain scripts/deploy.ts",
"deploy:hemitestnet": "npx hardhat run --no-compile --network hemiTestnet scripts/deploy.ts",
"deploy:hemimain": "npx hardhat run --no-compile --network hemiMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:check:interface": "pnpm -C interface prettier:check",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand Down

0 comments on commit 04a4231

Please sign in to comment.