dsa-governance/hardhat.config.js

43 lines
916 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: {
2024-02-05 20:41:01 +00:00
url: `https://1rpc.io/eth`,
blockNumber: 12308027,
2021-03-27 18:28:21 +00:00
},
blockGasLimit: 12000000,
},
2024-02-05 20:41:01 +00:00
mainnet: {
url: `https://1rpc.io/eth`,
accounts: !PRIVATE_KEY ? [] : [ `0x${PRIVATE_KEY}`],
2021-03-28 16:14:02 +00:00
},
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
};