Skip to content

Commit

Permalink
add holesky env
Browse files Browse the repository at this point in the history
  • Loading branch information
bytetang committed Jul 5, 2024
1 parent 0b4c531 commit 6b5b875
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -289,6 +292,10 @@ const config: HardhatUserConfig = {
url: ropstenEndpoint,
accounts: [`0x${ropstenPrivateKey}`]
},
holesky: {
url: holeskyEndpoint,
accounts: [`0x${holeskyPrivateKey}`]
},
goerli: {
url: goerliEndpoint,
accounts: [`0x${goerliPrivateKey}`]
Expand Down Expand Up @@ -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 || '',
Expand Down

0 comments on commit 6b5b875

Please sign in to comment.