-
Notifications
You must be signed in to change notification settings - Fork 3
/
hardhat.config.ts
58 lines (56 loc) · 1.49 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
57
58
import {HardhatUserConfig} from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-gas-reporter";
import {HttpNetworkAccountsUserConfig} from "hardhat/src/types/config";
const config: HardhatUserConfig = {
paths: {
sources: "./contracts/core"
},
solidity: {
version: "0.8.19",
settings: {
evmVersion: "paris",
optimizer: {
enabled: true,
runs: 1000
}
}
},
defaultNetwork: "goerli",
networks: {
hardhat: {},
ganache: {
gas: "auto",
gasPrice: "auto",
gasMultiplier: 1,
url: "http://127.0.0.1:7509",
timeout: 5000,
accounts: [
"0xa796f829b54eeb1866f85dce12fca9ed49eee8c33ff453d0d794bdf61ac878b5",
"0x855e884e693032d5c9e9f045b2215000387ccb55056b8ffecb52a19394842cd9"
]
},
polygon: {
chainId: 137,
gas: "auto",
gasPrice: "auto",
gasMultiplier: 1,
url: "https://rpc.ankr.com/polygon",
timeout: 50000,
accounts: []
},
goerli: {
chainId: 5,
gas: "auto",
gasPrice: 1000000000,
gasMultiplier: 1,
url: "https://rpc.ankr.com/eth_goerli",
timeout: 20000,
accounts: []
}
},
gasReporter: {
enabled: false
}
};
export default config;