-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
55 lines (52 loc) · 1.07 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
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import "@nomiclabs/hardhat-waffle";
import "hardhat-deploy";
import "@nomiclabs/hardhat-etherscan";
import "solidity-coverage";
import { HardhatUserConfig } from "hardhat/config";
import networks from "./networks";
import dotenv from "dotenv";
dotenv.config();
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
etherscan: {
apiKey: process.env.API_KEY_ETHERSCAN,
},
gasReporter: {
currency: "USD",
gasPrice: 20,
},
networks: {
hardhat: {
// fix metamask
chainId: 1337,
},
...networks,
},
namedAccounts: {
deployer: 0,
purchaser: 1,
fractionalToken: {
1: '0xfd8D7dBECd5c083dDe2b828F96be5d16D1188235',
4: '0xfd8D7dBECd5c083dDe2b828F96be5d16D1188235'
}
},
solidity: {
version: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 100,
},
},
},
mocha: {
// 2 min timeout
timeout: 1000 * 60 * 2,
},
};
export default config;