-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
79 lines (78 loc) · 1.6 KB
/
hardhat.config.js
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
require("dotenv").config();
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-web3");
require("hardhat-deploy");
require("hardhat-gas-reporter");
require("@nomiclabs/hardhat-etherscan");
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat:{
live: false,
saveDeployments: true,
tags:["test",],
// Uncomment these lines to use mainnet fork
forking: {
url: process.env.MORALIS_SRV,
blockNumber: 18346862,
},
},
mumbai: {
live: true,
saveDeployments: true,
tags:["tesnet"],
url: process.env.MORALIS_SRV,
accounts: [process.env.MAINNET_PRIVKEY],
}
},
solidity: {
compilers: [
// {
// version: "0.6.7",
// settings: {
// optimizer: {
// enabled: true,
// runs: 200
// }
// }
// },
{
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
],
},
etherscan: {
apiKey: process.env.ETHERSCAN_API,
},
namedAccounts: {
deployer: {
default: 0, // default network
"mumbai": "0x5e4634Ad0897Ec4895A9b10748a11CB6f02007ba", // mumbai network, from env.MAINNET_PRIV
},
admin: {
default: 1,
},
},
paths:{
sources:"./contracts",
tests:"./test",
cache:"./cache",
artifacts:"./artifacts",
deploy: 'scripts',
deployments: 'deployments',
imports: 'imports'
},
mocha: {
timeout: 240000,
},
gasReporter: {
currency: 'MATIC',
gasPrice:5
},
};