Skip to content

Commit

Permalink
fixes hardhat config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nijoe1 committed Oct 10, 2024
1 parent fdcae34 commit a268502
Showing 1 changed file with 8 additions and 67 deletions.
75 changes: 8 additions & 67 deletions packages/hardhat/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { HardhatUserConfig } from "hardhat/config";
import { config as dotenvConfig } from "dotenv";
import "@nomicfoundation/hardhat-foundry";
import "@nomicfoundation/hardhat-ethers";
import "@nomicfoundation/hardhat-chai-matchers";
Expand All @@ -8,7 +9,9 @@ import "solidity-coverage";
import "@nomicfoundation/hardhat-verify";
import "hardhat-deploy";
import "hardhat-deploy-ethers";
import "./tasks/verifyContract";

dotenvConfig();
const providerApiKey =
process.env.ALCHEMY_API_KEY || "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF";
// If not set, it uses the hardhat account 0 private key.
Expand All @@ -30,7 +33,7 @@ const config: HardhatUserConfig = {
},
},
},
defaultNetwork: "localhost", // Replace "localhost" with "calibration" or "mainnet" to deploy on Filecoin network
defaultNetwork: "calibration",
namedAccounts: {
deployer: {
// By default, it will take the first Hardhat account as the deployer
Expand All @@ -46,88 +49,26 @@ const config: HardhatUserConfig = {
enabled: process.env.MAINNET_FORKING_ENABLED === "true",
},
},
calibration: {
chainId: 314159,
url: "https://api.calibration.node.glif.io/rpc/v1",
filecoin: {
url: "https://rpc.ankr.com/filecoin",
accounts: [deployerPrivateKey],
},
mainnet: {
chainId: 314,
url: "https://api.node.glif.io",
accounts: [deployerPrivateKey],
},
ethereumMainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${providerApiKey}`,
calibration: {
url: "https://rpc.ankr.com/filecoin_testnet",
accounts: [deployerPrivateKey],
},
sepolia: {
url: `https://eth-sepolia.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
arbitrum: {
url: `https://arb-mainnet.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
arbitrumSepolia: {
url: `https://arb-sepolia.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
optimism: {
url: `https://opt-mainnet.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
optimismSepolia: {
url: `https://opt-sepolia.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
polygon: {
url: `https://polygon-mainnet.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
polygonMumbai: {
url: `https://polygon-mumbai.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
polygonZkEvm: {
url: `https://polygonzkevm-mainnet.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
polygonZkEvmTestnet: {
url: `https://polygonzkevm-testnet.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
gnosis: {
url: "https://rpc.gnosischain.com",
accounts: [deployerPrivateKey],
},
chiado: {
url: "https://rpc.chiadochain.net",
accounts: [deployerPrivateKey],
},
base: {
url: "https://mainnet.base.org",
accounts: [deployerPrivateKey],
},
baseSepolia: {
url: "https://sepolia.base.org",
accounts: [deployerPrivateKey],
},
scrollSepolia: {
url: "https://sepolia-rpc.scroll.io",
accounts: [deployerPrivateKey],
},
scroll: {
url: "https://rpc.scroll.io",
accounts: [deployerPrivateKey],
},
pgn: {
url: "https://rpc.publicgoods.network",
accounts: [deployerPrivateKey],
},
pgnTestnet: {
url: "https://sepolia.publicgoods.network",
accounts: [deployerPrivateKey],
},
},
// configuration for harhdat-verify plugin
etherscan: {
Expand Down

0 comments on commit a268502

Please sign in to comment.