Skip to content

Commit f08cfd0

Browse files
committed
➕ Add Hemi Test and Main Networks
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
1 parent 1ac2b35 commit f08cfd0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

hardhat.config.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,18 @@ const config: HardhatUserConfig = {
927927
accounts:
928928
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
929929
},
930+
hemiTestnet: {
931+
chainId: 743111,
932+
url: process.env.HEMI_TESTNET_URL || "",
933+
accounts:
934+
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
935+
},
936+
hemiMain: {
937+
chainId: 43111,
938+
url: process.env.HEMI_MAINNET_URL || "",
939+
accounts:
940+
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
941+
},
930942
},
931943
gasReporter: {
932944
enabled: process.env.REPORT_GAS !== undefined,
@@ -1150,6 +1162,9 @@ const config: HardhatUserConfig = {
11501162
// For Swellchain testnet & mainnet
11511163
swell: process.env.SWELL_API_KEY || "",
11521164
swellTestnet: process.env.SWELL_API_KEY || "",
1165+
// For Hemi testnet & mainnet
1166+
hemi: process.env.HEMI_API_KEY || "",
1167+
hemiTestnet: process.env.HEMI_API_KEY || "",
11531168
},
11541169
customChains: [
11551170
{
@@ -2070,6 +2085,22 @@ const config: HardhatUserConfig = {
20702085
browserURL: "https://swell-testnet-explorer.alt.technology",
20712086
},
20722087
},
2088+
{
2089+
network: "hemi",
2090+
chainId: 43111,
2091+
urls: {
2092+
apiURL: "https://explorer.hemi.xyz/api",
2093+
browserURL: "https://explorer.hemi.xyz",
2094+
},
2095+
},
2096+
{
2097+
network: "hemiTestnet",
2098+
chainId: 743111,
2099+
urls: {
2100+
apiURL: "https://testnet.explorer.hemi.xyz/api",
2101+
browserURL: "https://testnet.explorer.hemi.xyz",
2102+
},
2103+
},
20732104
],
20742105
},
20752106
};

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@
169169
"deploy:soneiummain": "npx hardhat run --network soneiumMain scripts/deploy.ts",
170170
"deploy:swelltestnet": "npx hardhat run --network swellTestnet scripts/deploy.ts",
171171
"deploy:swellmain": "npx hardhat run --network swellMain scripts/deploy.ts",
172+
"deploy:hemitestnet": "npx hardhat run --network hemiTestnet scripts/deploy.ts",
173+
"deploy:hemimain": "npx hardhat run --network hemiMain scripts/deploy.ts",
172174
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
173175
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
174176
"solhint:check": "npx solhint \"contracts/**/*.sol\"",

0 commit comments

Comments
 (0)