-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
70 lines (62 loc) · 1.34 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
import { HardhatUserConfig, subtask } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-solhint";
import "hardhat-deploy";
import "hardhat-contract-sizer";
import "hardhat-forta";
import "hardhat-gas-reporter"
import {TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS} from 'hardhat/builtin-tasks/task-names'
import { getJsonRpcUrl } from "forta-agent";
/*
subtask(TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS)
.setAction(async (_, __, runSuper) => {
const paths = await runSuper();
return paths.filter((p:any) => {console.log(p)});
});
*/
const config: HardhatUserConfig = {
solidity: {
version:"0.8.17",
settings:{
optimizer:{
enabled: true
}
},
},
etherscan:{
apiKey:'RSQ5H3Q1IN2K8CZMACJSK8AU9PR1F35HF8',
},
networks:{
homestead: {
url:'https://etherscan.io',
gasPrice: 20e8,
gas: 25e6,
},
hardhat:{
forking:{
url: getJsonRpcUrl()
}
}
},
gasReporter: {
enabled:false,
coinmarketcap:'313f8a67-62dd-4bf1-86e6-431538f803a9'
},
namedAccounts: {
deployer: {
default: 0,
1: 0,
},
proposer:{
default:1,
1:1
},
executor: {
default:2,
0:2
}
}
};
export default config;