-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
81 lines (77 loc) · 1.66 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require("dotenv").config();
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-waffle");
require('hardhat-ethernal');
const {
REACT_APP_ETHERSCAN_KEY,
REACT_APP_ALCHEMY_MAINNET,
REACT_APP_ALCHEMY_RINKEBY,
REACT_APP_ALCHEMY_GOERLI,
REACT_APP_ALCHEMY_KOVAN,
REACT_APP_ALCHEMY_ROPSTEN,
RINKEBY_API_URL,
PRIVATE_KEY,
PUBLIC_KEY,
ETHERSCAN_API_KEY
} = process.env;
module.exports = {
solidity: {
compilers: [
{
version: "0.8.0",
optimizer: {
enabled: true,
runs: 200
}
},
{
version: "0.8.6",
settings: {
optimizer: {
runs: 200,
enabled: true,
},
},
},
{
version: "0.6.0",
optimizer: {
enabled: true,
runs: 200
}
},
{
version: "0.6.2",
optimizer: {
enabled: true,
runs: 200
}
},
{
version: "0.7.3",
optimizer: {
enabled: true,
runs: 200
}
},
],
},
defaultNetwork: "hardhat", //"ropsten"
networks: {
hardhat: {},
rinkeby: {
url: "https://eth-rinkeby.alchemyapi.io/v2/ElybgFn6H7hx1EfEsGvMKsD-psxb2gsy",
accounts: ['9dff3c1a8413672e07dbaf4c9ef32f9ad251f90057cd1aa87a396f97272626aa'],
gasMultiplier: 10,
gas: 5000000,
},
},
etherscan: {
apiKey: {
rinkeby: "DXYGH5PDSUKHP5FZQWS6T6FYTCG4U1E7HH", }
},
};