Skip to content

Commit

Permalink
chore: extend unichain mainnet support in the build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
chechu committed Feb 9, 2025
1 parent 98cc062 commit 9ea61d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ ARCHIVE_NODE_ethereum=https://eth-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>
#ARCHIVE_NODE_zksyncmainnet=https://open-platform.nodereal.io/<YOUR_KEY_HERE>/zksync
#ARCHIVE_NODE_opsepolia=https://sepolia.optimism.io
#ARCHIVE_NODE_opmainnet=https://opt-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>
ARCHIVE_NODE_basesepolia=https://sepolia.base.org
ARCHIVE_NODE_basemainnet=https://open-platform.nodereal.io/<YOUR_KEY_HERE>/base
#ARCHIVE_NODE_basesepolia=https://sepolia.base.org
#ARCHIVE_NODE_basemainnet=https://open-platform.nodereal.io/<YOUR_KEY_HERE>/base
#ARCHIVE_NODE_unichainsepolia=https://unichain-sepolia.g.alchemy.com/v2/<YOUR_KEY_HERE>
#ARCHIVE_NODE_unichainsepolia=https://unichain-mainnet.g.alchemy.com/v2/<YOUR_KEY_HERE>

ETHERSCAN_API_KEY=
REPORT_GAS=
9 changes: 9 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ const config: HardhatUserConfig = {
basesepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
basemainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
unichainsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
unichainmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
},
customChains: [
{
Expand Down Expand Up @@ -285,6 +286,14 @@ const config: HardhatUserConfig = {
browserURL: "https://sepolia.uniscan.xyz/",
},
},
{
network: "unichainmainnet",
chainId: 130,
urls: {
apiURL: "https://api.uniscan.xyz/api/",
browserURL: "https://uniscan.xyz/",
},
},
],
},
paths: {
Expand Down
2 changes: 0 additions & 2 deletions helpers/deploy/deploymentUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ export const guardian = async (network: SUPPORTED_NETWORKS): Promise<string> =>
return "0x9831D3A641E8c7F082EEA75b8249c99be9D09a34"; // UNICHAIN SEPOLIA MULTISIG
} else if (network === "unichainmainnet") {
return "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C"; // UNICHAIN MAINNET MULTISIG
} else if (network === "unichainsepolia") {
return "0x9831D3A641E8c7F082EEA75b8249c99be9D09a34"; // UNICHAIN SEPOLIA MULTISIG
}
return deployer;
};
Expand Down

0 comments on commit 9ea61d3

Please sign in to comment.