dsa-governance/hardhat.config.js
Thrilok kumar f7695cc94c fix
2024-02-06 02:11:01 +05:30

43 lines
916 B
JavaScript

require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("dotenv").config();
const ALCHEMY_ID = process.env.ALCHEMY_ID;
const PRIVATE_KEY = process.env.PRIVATE_KEY;
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
defaultNetwork: "hardhat",
solidity: {
version: "0.7.3",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
networks: {
hardhat: {
forking: {
url: `https://1rpc.io/eth`,
blockNumber: 12308027,
},
blockGasLimit: 12000000,
},
mainnet: {
url: `https://1rpc.io/eth`,
accounts: !PRIVATE_KEY ? [] : [ `0x${PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: process.env.ETHERSCAN
}
};