Skip to content

Commit

Permalink
deployed to holesky
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed May 6, 2024
1 parent 277cd6d commit dfd1f61
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
9 changes: 9 additions & 0 deletions deployments/holesky.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"network": "holesky",
"version": "277cd6d",
"factory": "0x415E67D2e2710b246B99492ceC89cC90Af81931a",
"token": "0xb42b86f0163cEA9704DEDE197578c04c3DF67498",
"template": "0x4CD7BeAe668ed7c7803b787ba9B84cE17135646b",
"txHash": "0xcefe2129e6e6dd44bd74801ebadaa9bb47077cd7f9af58cc37c4878d25276233",
"blockNumber": "1487745"
}
15 changes: 15 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ const config: HardhatUserConfig = {
url: 'https://1rpc.io/sepolia',
accounts,
},
holesky: {
url: 'https://1rpc.io/holesky',
accounts,
},
},
gasReporter: {
enabled: process.env.REPORT_GAS === 'true',
Expand All @@ -78,7 +82,18 @@ const config: HardhatUserConfig = {
gnosis: process.env.GNOSISSCAN_API_KEY!,
arbitrumOne: process.env.ARBISCAN_API_KEY!,
sepolia: process.env.ETHERSCAN_API_KEY!,
holesky: process.env.ETHERSCAN_API_KEY!,
},
customChains: [
{
network: 'holesky',
chainId: 17000,
urls: {
apiURL: 'https://api-holesky.etherscan.io/api',
browserURL: 'https://holesky.etherscan.io',
},
},
],
},
typechain: {
outDir: 'types',
Expand Down
6 changes: 4 additions & 2 deletions scripts/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const NETWORK_CURRENCY: Record<number, string> = {
100: 'xDAI',
137: 'MATIC',
42161: 'ETH',
11155111: 'SEPETH',
17000: 'HOLETH',
11155111: 'SepoliaETH',
17000: 'HoleskyETH',
31337: 'HardhatETH',
};

Expand Down Expand Up @@ -67,6 +67,8 @@ export const validateSetup = async (): Promise<SetupValues> => {
throw new Error('Provider not found for network');
}
const { chainId } = await deployer.provider.getNetwork();
console.log('Chain ID:', chainId);
console.log('Network:', NETWORK_NAME[chainId]);
if (!Object.keys(NETWORK_NAME).includes(chainId.toString())) {
throw new Error('Unsupported network');
}
Expand Down

0 comments on commit dfd1f61

Please sign in to comment.