Skip to content

Commit fb8a22c

Browse files
committed
feat: added HyperEVM + BEAM config
1 parent 595e96a commit fb8a22c

File tree

7 files changed

+22
-3
lines changed

7 files changed

+22
-3
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"editor.defaultFormatter": "esbenp.prettier-vscode",
33
"editor.formatOnSave": true,
44
"editor.tabSize": 2,
5-
"json.format.enable": true
5+
"json.format.enable": true,
6+
"cSpell.words": ["hyperevm"]
67
}

constants/chainIds.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"fantom": 112,
99
"beam": 198,
1010
"base": 184,
11+
"hyperevm": 367,
1112

1213
"goerli": 10121,
1314
"sepolia": 10161,

constants/environments.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"optimism",
99
"fantom",
1010
"beam",
11-
"base"
11+
"base",
12+
"hyperevm"
1213
],
1314
"testnet": [
1415
"goerli",

constants/layerzeroEndpoints.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"fantom": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
99
"beam": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
1010
"base": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
11+
"hyperevm": "0x2D61DCDD36F10b22176E0433B86F74567d529aAa",
1112

1213
"goerli": "0xbfD2135BFfbb0B5378b56643c2Df8a87552Bfa23",
1314
"sepolia": "0xae92d5aD7583AD66E49A0c67BAd18F6ba52dDDc1",

constants/tokenConfig.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,11 @@ module.exports = {
217217
withFee: true,
218218
},
219219
},
220+
hyperevm: {
221+
BeamOFT: {
222+
name: "Beam",
223+
symbol: "BEAM",
224+
withFee: true,
225+
},
226+
},
220227
}

hardhat.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const apiKey = {
6666
"imtbl-zkevm": "a",
6767
base: process.env.BASESCAN_API_KEY || "",
6868
"base-testnet": process.env.BASESCAN_API_KEY || "",
69+
hyperevm: process.env.ETHERSCAN_ONLY_API_KEY || "",
6970
}
7071

7172
const apiUrl = {
@@ -88,6 +89,7 @@ const apiUrl = {
8889
"imtbl-zkevm": "https://explorer.immutable.com",
8990
base: "https://api.basescan.org",
9091
"base-testnet": "https://api.sepolia.basescan.org",
92+
hyperevm: "https://api.hyperevmscan.io",
9193
}
9294

9395
// `hardhat-deploy etherscan-verify` network config
@@ -177,6 +179,12 @@ const networks = {
177179
accounts: accounts(),
178180
verify: verifyChain(8453),
179181
},
182+
hyperevm: {
183+
url: "https://rpc.hyperevm.io",
184+
chainId: 999,
185+
accounts: accounts(),
186+
verify: verifyChain(999),
187+
},
180188

181189
// testnets
182190
goerli: {

tasks/setupOFTData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = async function ({ localContract, remoteContract, targetNetwork,
2121
const remoteAddress = getDeploymentAddresses(targetNetwork)[remoteContract]
2222
const remoteAndLocal = hre.ethers.utils.solidityPack(["address", "address"], [remoteAddress, localContractInstance.address])
2323

24-
console.log("Bridge contract address:", localContractInstance.address)
24+
console.log("Bridge contract address:", hre.network.name, localContractInstance.address)
2525
console.log("setTrustedRemote:", remoteChainId, remoteAndLocal)
2626
console.log("setMinDstGas:", remoteChainId, 0, minGas)
2727
console.log("setMinDstGas:", remoteChainId, 1, minGas)

0 commit comments

Comments
 (0)