From 6b5b8753323c2ca1d57d30934c90342f2dc4c57f Mon Sep 17 00:00:00 2001 From: jie Date: Fri, 5 Jul 2024 13:09:33 +0800 Subject: [PATCH] add holesky env --- hardhat.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hardhat.config.ts b/hardhat.config.ts index 17d409a6c..6bf02847b 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -251,6 +251,9 @@ const scrollPrivateKey = process.env.SCROLL_PRIVATE_KEY || DEFAULT_PRIVATE_KEY; const zksyncEraEndpoint = process.env.ZKSYNC_ERA_ENDPOINT || DEFAULT_ENDPOINT; const zksyncEraPrivateKey = process.env.ZKSYNC_ERA_PRIVATE_KEY || DEFAULT_PRIVATE_KEY; +const holeskyEndpoint = process.env.HOLESKY_ENDPOINT || DEFAULT_ENDPOINT; +const holeskyPrivateKey = process.env.HOLESKY_PRIVATE_KEY || DEFAULT_PRIVATE_KEY; + // use kmsKeyId if it's not empty, otherwise use privateKey function getNetworkConfig(url: string, kmsKeyId: string, privateKey: string, gasPrice?: number): NetworkUserConfig { const network: NetworkUserConfig = !kmsKeyId @@ -289,6 +292,10 @@ const config: HardhatUserConfig = { url: ropstenEndpoint, accounts: [`0x${ropstenPrivateKey}`] }, + holesky: { + url: holeskyEndpoint, + accounts: [`0x${holeskyPrivateKey}`] + }, goerli: { url: goerliEndpoint, accounts: [`0x${goerliPrivateKey}`] @@ -465,6 +472,7 @@ const config: HardhatUserConfig = { apiKey: { // Testnets goerli: process.env.ETHERSCAN_API_KEY || '', + holesky: process.env.ETHERSCAN_API_KEY || '', avalancheFujiTestnet: process.env.SNOWTRACE_API_KEY || '', bscTestnet: process.env.BSCSCAN_API_KEY || '', arbitrumTestnet: process.env.ARBISCAN_API_KEY || '',