-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
53 lines (50 loc) · 1.2 KB
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
require("@nomiclabs/hardhat-waffle")
require("@nomiclabs/hardhat-etherscan")
require("hardhat-deploy")
require("solidity-coverage")
require("hardhat-gas-reporter")
require("hardhat-contract-sizer")
require("dotenv").config()
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const MAINNET_RPC_URL =
process.env.MAINNET_RPC_URL ||
process.env.ALCHEMY_MAINNET_RPC_URL ||
"https://eth-mainnet.alchemyapi.io/v2/<your_key>"
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
// // If you want to do some forking, uncomment this
// forking: {
// url: MAINNET_RPC_URL,
// blockNumber: 15480189
// },
chainId: 31337
},
localhost: {
chainId: 31337,
}
},
contractSizer: {
runOnCompile: false,
only: ["Raffle"],
},
solidity: {
compilers: [
{
version: "0.8.10",
},
{
version: "0.7.0"
},
{
version: "0.8.0"
}
],
},
mocha: {
timeout: 500000, // 500 seconds max for running tests
},
}