-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
61 lines (59 loc) · 1.37 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
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import 'solidity-coverage';
import 'hardhat-gas-reporter';
import '@openzeppelin/hardhat-upgrades';
import "hardhat-interface-generator";
import 'solidity-docgen';
require('hardhat-contract-sizer');
require('dotenv').config();
const config = {
solidity: {
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
paths: {
sources: "./contracts/",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
},
defaultNetwork: "hardhat",
gasReporter: {
currency: 'USD',
gasPrice: 100,
enabled: true,
},
networks: {
optimism: {
url: process.env.OPTIMISM_RPC_URL,
// You can get the accounts from a node using `brownie accounts list`
accounts: [process.env.PRIVATE_KEY],
},
opGoerli: {
url: process.env.OPTIMISM_GOERLI_RPC_URL,
accounts: [process.env.PRIVATE_KEY],
},
goerli: {
url: process.env.GOERLI_RPC_URL,
accounts: [process.env.PRIVATE_KEY],
},
},
etherscan: {
apiKey: process.env.OPSCAN_API_KEY,
},
docgen: { pages: "files", templates: "./docs/templates" },
};
export default config;