Skip to content

Commit

Permalink
hardhat: add sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeinum committed Mar 30, 2024
1 parent 6a8c580 commit a022889
Show file tree
Hide file tree
Showing 2 changed files with 29,823 additions and 77,962 deletions.
20 changes: 15 additions & 5 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import "hardhat-gas-reporter";
import "hardhat-deploy";
import "hardhat-contract-sizer";
import "hardhat-tracer";
import "hardhat-nodemon";
// import "hardhat-nodemon";
import "hardhat-preprocessor";

import "hardhat-output-validator";
Expand All @@ -38,6 +38,7 @@ const MOONBEAM_API_KEY = process.env.MOONBEAM_API_KEY;
const MOONRIVER_API_KEY = process.env.MOONRIVER_API_KEY;
const MNEMONIC = process.env.MNEMONIC;
const ALCHEMY_GOERLI_API = process.env.ALCHEMY_GOERLI_API;
const ALCHEMY_SEPOLIA_API = process.env.ALCHEMY_SEPOLIA_API;
const ALCHEMY_API = process.env.ALCHEMY_API;
const FORK = process.env.FORK;

Expand Down Expand Up @@ -105,20 +106,28 @@ const config: HardhatUserConfig = {
forking:
FORK === "mainnet" && ALCHEMY_API
? {
url: ALCHEMY_API,
}
url: ALCHEMY_API,
}
: FORK && ALCHEMY_GOERLI_API
? {
? {
url: ALCHEMY_GOERLI_API,
}
: undefined,
: undefined,
},
goerli: {
url: `https://goerli.infura.io/v3/${INFURA_KEY}`,
accounts: {
mnemonic,
},
},

sepolia: {
url: ALCHEMY_SEPOLIA_API,
accounts: {
mnemonic,
},
},

rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_KEY}`,
accounts: {
Expand Down Expand Up @@ -166,6 +175,7 @@ const config: HardhatUserConfig = {
mainnet: ETHERSCAN_API_KEY ?? "",
rinkeby: ETHERSCAN_API_KEY ?? "",
goerli: ETHERSCAN_API_KEY ?? "",
sepolia: ETHERSCAN_API_KEY ?? "",
polygon: POLYGONSCAN_API_KEY ?? "",
bsc: BSCSCAN_API_KEY ?? "",
moonbeam: MOONBEAM_API_KEY ?? "",
Expand Down
Loading

0 comments on commit a022889

Please sign in to comment.