-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhardhat.config.js
More file actions
47 lines (46 loc) · 943 Bytes
/
hardhat.config.js
File metadata and controls
47 lines (46 loc) · 943 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
39
40
41
42
43
44
45
46
47
const { configs } = require("./cli-config.js");
module.exports = {
defaultNetwork: "ganache",
networks: {
ganache: {
url: "http://127.0.0.1:7545",
network_id: "1337",
accounts: {
count: 10,
initialIndex: 0,
mnemonic: configs.mnemonicOrPrivateKey,
path: "m/44'/60'/0'/0",
},
},
polygon: {
url: configs.ethBlockchainApi,
network_id: 137,
skipDryRun: true,
networkCheckTimeout: 10000,
deploymentPollingInterval: 10000,
},
mainnet: {
url: configs.ethBlockchainApi,
network_id: 1,
skipDryRun: true,
},
},
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
paths: {
tests: "./test",
sources: "./build/contracts",
cache: "./build/cache",
artifacts: "./build/artifacts",
},
mocha: {
timeout: 20000,
},
};