-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
60 lines (58 loc) · 1.2 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("./tasks/PrintAccounts");
require("dotenv").config();
const GOERLI_NODE = process.env.GOERLI_NODE;
const PRV_KEY = process.env.PRV_KEY;
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {},
mainnet_fork: {
url: process.env.MAINNET_PROVIDER_URL,
},
localhost: {
url: `http://127.0.0.1:8545`,
timeout: 150000,
},
// kovan: {
// url: KOVAN_NODE,
// accounts: [PRV_KEY],
// },
goerli: {
url: GOERLI_NODE,
accounts: [PRV_KEY],
},
/* rinkeby: {
url: "https://eth-rinkeby.alchemyapi.io/v2/123abc123abc123abc123abc123abcde",
accounts: [privateKey1, privateKey2, ...]
} */
},
/* etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: BSCSCAN_API_KEY,
}, */
solidity: {
compilers: [
{
version: "0.8.0",
},
{
version: "0.8.2",
},
],
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
mocha: {
timeout: 50000,
},
};