-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
67 lines (62 loc) · 1.44 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
require("dotenv").config();
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-waffle");
require("hardhat-gas-reporter");
require("solidity-coverage");
// 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 = {
solidity: {
version:"0.8.9",
settings: {
optimizer: {
runs: 100,
enabled: true,
},
},
},
networks: {
hardhat: {
allowUnlimitedContractSize: false,
gas: 28000000,
timeout: 100000000
},
goerli: {
gasPrice: 70000000000,
gas: 30000000,
url: process.env.TESTNET_URL,
accounts: [process.env.TESTNET_PK]
},
// mainnet: {
// gasPrice: 35000000000,
// gas: 2000000,
// url: process.env.MAINNET_URL,
// accounts: [process.env.PROD_PK]
// },
},
gasReporter: {
enabled: true,
currency: "USD",
gasPriceApi: "https://api.etherscan.io/api?module=proxy&action=eth_gasPrice",
coinmarketcap: process.env.COINMARKETCAP_KEY
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_KEY,
goerli: process.env.ETHERSCAN_KEY,
},
customChains: [
{
network: "goerli",
chainId: 5,
urls: {
apiURL: "https://api-goerli.etherscan.io/api",
browserURL: "https://goerli.etherscan.io"
}
}
]
},
};