-
Notifications
You must be signed in to change notification settings - Fork 11
/
hardhat.config.js
55 lines (53 loc) · 1.23 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
require("@nomiclabs/hardhat-truffle5");
require("@nomiclabs/hardhat-ethers");
require('hardhat-contract-sizer');
const testAccounts = {
mnemonic: "test test test test test test test test test test test junk",
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
passphrase: ""
}
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 300
}
}
},
paths: {
artifacts: 'tests/artifacts',
sources: 'tests/contracts/src/contracts',
tests: 'tests/e2e'
},
mocha: {
timeout: 100000000000
},
defaultNetwork: "hardhat_node",
networks: {
hardhat: {
loggingEnabled: true,
chainId: 1337,
accounts: testAccounts,
allowUnlimitedContractSize: true
},
ganache: {
loggingEnabled: true,
chainId: 1337, //event though config says it's 5777
url: "http://127.0.0.1:7545",
accounts: testAccounts,
allowUnlimitedContractSize: true
},
hardhat_node: {
loggingEnabled: true,
chainId: 1337,
url: "http://127.0.0.1:8545",
accounts: testAccounts,
allowUnlimitedContractSize: true
}
}
};