-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhardhat.config.js
More file actions
58 lines (53 loc) · 1.29 KB
/
Copy pathhardhat.config.js
File metadata and controls
58 lines (53 loc) · 1.29 KB
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
import hardhatToolboxMochaEthersPlugin from "@nomicfoundation/hardhat-toolbox-mocha-ethers";
import { defineConfig } from "hardhat/config";
export default defineConfig({
plugins: [hardhatToolboxMochaEthersPlugin],
defaultNetwork: "hardhat",
networks: {
hardhat: {
type: "edr-simulated",
chainId: 31337,
allowUnlimitedContractSize: true,
hardfork: "cancun", // Supports opcodes emitted by newer Solidity compilers
accounts: {
mnemonic: "test test test test test test test test test test test junk",
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
},
},
solidity: {
compilers: [
{
version: "0.8.15",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
evmVersion: "istanbul",
},
},
{
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
evmVersion: "istanbul",
},
},
],
},
paths: {
sources: "./src/main/resources/contracts",
tests: "./src/main/resources/test",
cache: "./src/main/resources/cache",
artifacts: "./src/main/resources/artifacts",
},
mocha: {
timeout: 3000000,
},
});