-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathhardhat.config.js
51 lines (49 loc) · 1.13 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-web3");
require("hardhat-gas-reporter");
require('hardhat-contract-sizer');
require("@nomiclabs/hardhat-etherscan");
require('@openzeppelin/hardhat-upgrades');
require("dotenv").config();
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.7.4",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
paths: {
sources: "./contracts",
tests: "./hardhat-tests",
cache: "./cache",
artifacts: "./artifacts"
},
networks: {
hardhat: {
allowUnlimitedContractSize: false
},
eth: {
url: `https:/mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [`0x${process.env.MAINNET_DEPLOYER}`],
gasPrice: 72e9
},
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [`0x${process.env.TESTNET_DEPLOYER}`],
}
},
mocha: {
timeout: 20000
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCANAPIKEY
}
};