-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
50 lines (48 loc) · 1.27 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-gas-reporter');
require('hardhat-deploy');
require('dotenv').config();
const env = process.env;
module.exports = {
solidity: {
compilers: [{
version: '0.8.4', settings: {
optimizer: {enabled: true},
},
},]
},
defaultNetwork: "hardhat",
networks: {
hardhat: {
live: false,
saveDeployments: true,
tags: ["test", "local"]
},
rinkeby: {
url: `https://eth-rinkeby.alchemyapi.io/v2/${env.ALCHEMY_API_KEY}`,
accounts: [`0x${env.RINKEBY_PRIVATE_KEY}`],
live: true,
saveDeployments: true,
tags: ["test"]
},
mainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${env.ALCHEMY_API_KEY}`,
accounts: [`0x${env.MAINNET_PRIVATE_KEY}`],
live: true,
saveDeployments: true,
tags: ["release"] }
},
etherscan: {
apiKey: `${env.ETHERSCAN_API_KEY}`
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
gasReporter: {
currency: 'USD',
}
};