-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
77 lines (76 loc) · 1.41 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/** @type import('hardhat/config').HardhatUserConfig */
import "@nomicfoundation/hardhat-ethers"
import "@nomicfoundation/hardhat-toolbox"
import { HardhatUserConfig } from "hardhat/config";
const settings = {optimizer: {
enabled: true,
runs: 200
}
}
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
// Weth
version: "0.4.18",
settings
},
{
// Dai
version: "0.5.12",
settings
},
{
// Sandwich
version: "0.8.0",
settings
},
{
// UniswapFactory
version: "0.5.16",
settings
},
{
// UniswapV2Router
version:"0.6.6",
settings
}
],
overrides: {
"contracts/Weth.sol": {
version: "0.4.18",
settings
},
"contracts/Dai.sol": {
version: "0.5.12",
settings
},
"contracts/UniswapFactory.sol" : {
version: "0.5.16",
settings
},
"contracts/UniswapV2Router02.sol": {
version: "0.6.6",
settings
},
"contracts/Sandwich.sol": {
version: "0.8.0",
settings
}
}
},
networks: {
private_network: {
url: "http://18.162.116.194:8545",
chainId: 32382,
accounts: ["xxx",
"xxx"
],
gasPrice: 3000000
}
},
mocha: {
timeout: 20000
}
};
export default config;