forked from notional-finance/notional-solidity-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
38 lines (36 loc) · 795 Bytes
/
Copy pathhardhat.config.js
File metadata and controls
38 lines (36 loc) · 795 Bytes
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
require("dotenv/config");
require("@nomiclabs/hardhat-etherscan");
const NETWORKS_KOVAN_URL = process.env.NETWORKS_KOVAN_URL;
const NETWORKS_MAINNET_URL = process.env.NETWORKS_MAINNET_URL;
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY;
module.exports = {
defaultNetwork: "hardhat",
networks: {
kovan: {
url: NETWORKS_KOVAN_URL
},
mainnet: {
url: NETWORKS_MAINNET_URL
},
},
solidity: {
version: "0.7.6",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY
}
}