-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
84 lines (75 loc) · 1.75 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
78
79
80
81
82
83
84
const { task } = require('hardhat/config');
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-waffle';
import 'hardhat-typechain';
import { HardhatUserConfig } from 'hardhat/types';
//const walletUtils = require("./walletUtils");
task("accounts", "Prints the list of accounts", async (taskArgs, bre) => {
const accounts = await bre.ethers.getSigners();
for (const account of accounts) {
console.log(await account.getAddress());
}
});
const hhConfig: HardhatUserConfig = {
defaultNetwork: 'hardhat',
networks: {
hardhat: {
blockGasLimit: 100000000,
allowUnlimitedContractSize: true,
accounts: {
count: 200
}
},
local: {
url: `http://localhost:8545`,
blockGasLimit: 100000000,
allowUnlimitedContractSize: true
},
kovan: {
url: `https://kovan.infura.io/v3/${process.env.INFURA}`,
accounts: [process.env.KEY || '0x00']
},
/*
kovan: {
url: `https://kovan.infura.io/v3/d126f392798444609246423b06116c77`,
accounts: walletUtils.makeKeyList(),
chainId:42
},
*/
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA}`,
accounts: [process.env.KEY || '0x00']
}
},
solidity: {
compilers: [
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
}
},
/*{
version: "0.5.16"
}*/
],
settings: {
optimizer: {
enabled: true,
runs: 200,
},
}
},
typechain: {
target: "ethers-v5",
},
};
/*if(process.env.INFURA) {
hhConfig.networks.hardhat.forking = {
url: `https://mainnet.infura.io/v3/${process.env.INFURA}`,
};
}*/
module.exports = hhConfig;