-
Notifications
You must be signed in to change notification settings - Fork 3
/
hardhat.config.js
54 lines (51 loc) · 1.35 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
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require('@nomiclabs/hardhat-ethers');
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-contract-sizer');
require("hardhat-gas-reporter");
const { alchemyApiKeyRinkeby, alchemyApiKeyMain, privkey, etherScanApiKey } = require('./secrets.json');
module.exports = {
solidity: "0.8.11",
networks: {
rinkeby: {
url: `https://eth-rinkeby.alchemyapi.io/v2/${alchemyApiKeyRinkeby}`,
gasPrice: 5000000000, //5 gwei
timeout: 3600000,
accounts: [`0x${privkey}`]
},
goerli: {
url: `https://eth-goerli.alchemyapi.io/v2/${alchemyApiKeyRinkeby}`,
gasPrice: 5000000000, //5 gwei
timeout: 3600000,
accounts: [`0x${privkey}`]
},
localhost: {
gasPrice: 200000000000, //200 gwei
mining: {
auto: false,
interval: [13000, 16000]
},
},
mainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${alchemyApiKeyMain}`,
gasPrice: 100000000000, //100 gwei
accounts: [`0x${privkey}`]
}
},
etherscan: {
apiKey: `${etherScanApiKey}`
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
gasReporter: {
currency: 'USD',
gasPrice: 35,
coinmarketcap: '04cef6de-97ed-42e1-87f7-14469f3911f3'
},
};