dsa-governance/hardhat.config.js

44 lines
974 B
JavaScript
Raw Normal View History

2021-03-25 06:57:04 +00:00
require("@nomiclabs/hardhat-ethers");
2021-03-22 07:44:03 +00:00
require("@nomiclabs/hardhat-waffle");
2021-03-25 06:57:04 +00:00
require("@nomiclabs/hardhat-etherscan");
2021-03-22 07:44:03 +00:00
2021-03-25 06:57:04 +00:00
require("dotenv").config();
const ALCHEMY_ID = process.env.ALCHEMY_ID;
2021-03-28 16:14:02 +00:00
const PRIVATE_KEY = process.env.PRIVATE_KEY;
2021-03-22 07:44:03 +00:00
// 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 = {
2021-03-25 06:57:04 +00:00
defaultNetwork: "hardhat",
2021-03-28 16:14:02 +00:00
solidity: {
version: "0.7.3",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
2021-03-27 18:28:21 +00:00
networks: {
hardhat: {
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
blockNumber: 12070498,
},
blockGasLimit: 12000000,
},
2021-03-28 16:14:02 +00:00
kovan: {
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
accounts: [`0x${PRIVATE_KEY}`],
gas: 12500000,
},
2021-03-27 18:28:21 +00:00
},
2021-03-25 06:57:04 +00:00
etherscan: {
apiKey: process.env.ETHERSCAN
}
2021-03-22 07:44:03 +00:00
};