-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
56 lines (51 loc) · 1.11 KB
/
hardhat.config.ts
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
import 'dotenv/config';
import 'hardhat-deploy';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-waffle';
import 'hardhat-gas-reporter';
import 'solidity-docgen';
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
networks: {
rinkeby: {
url: process.env.PROVIDER_RINKEBY,
chainId: 4,
accounts: process.env.KEYS!.split(",")
},
moonbase: {
url: process.env.PROVIDER_MOONBASE,
chainId: 1287,
accounts: process.env.KEYS!.split(",")
}
},
gasReporter: {
enabled: true,
fast: true,
noColors: true
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_APIKEY,
ropsten: process.env.ETHERSCAN_APIKEY,
rinkeby: process.env.ETHERSCAN_APIKEY,
goerli: process.env.ETHERSCAN_APIKEY,
kovan: process.env.ETHERSCAN_APIKEY,
moonbaseAlpha: process.env.MOONSCAN_APIKEY
}
},
docgen: {
pages: 'files'
}
};