forked from thenextblock/hardhat-compound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
42 lines (41 loc) · 1008 Bytes
/
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
import * as dotenv from 'dotenv';
dotenv.config();
import '@nomiclabs/hardhat-ethers';
import '@dany-armstrong/hardhat-erc20';
import '@typechain/hardhat';
module.exports = {
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
rinkeby: {
url: process.env.ROPSTEN_URL || '',
// initialBaseFeePerGas: 100,
gasPrice: 3000000000,
// minGasPrice: ethers.utils.parseUnits("50", "gwei").toString(),
// blockGasLimit: 15000000,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
ropsten: {
url: process.env.ROPSTEN_URL || '',
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
},
typechain: {
outDir: 'typechain',
target: 'ethers-v5',
},
solidity: {
compilers: [
{
version: '0.8.10',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
};