-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.js
More file actions
115 lines (111 loc) · 3.28 KB
/
Copy pathhardhat.config.js
File metadata and controls
115 lines (111 loc) · 3.28 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
require("@nomiclabs/hardhat-truffle5");
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-web3");
const fs = require("fs");
// const mnemonic = fs.readFileSync("../.secret").toString().trim();
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
// task("accounts", "Prints the list of accounts", async () => {
// const accounts = await ethers.getSigners();
// for (const account of accounts) {
// console.log(account.address);
// }
// });
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
// networks: {
// hardhat: {
// accounts: { mnemonic: mnemonic },
// },
// kovan: {
// url: `https://kovan.infura.io/v3/6d7d276d251d4f8cb9a66e916ff48508`,
// network_id: 42, // Ropsten's id
// gas: 7000000, // Ropsten has a lower block limit than mainnet
// confirmations: 2, // # of confs to wait between deployments. (default: 0)
// timeoutBlocks: 2000000, // # of blocks before a deployment times out (minimum/default: 50)
// skipDryRun: true,
// accounts: { mnemonic: mnemonic },
// },
// bnb: {
// url: `https://data-seed-prebsc-1-s2.binance.org:8545`,
// network_id: 97,
// confirmations: 2,
// gas: 20000000,
// timeoutBlocks: 20000000,
// skipDryRun: true,
// accounts: { mnemonic: mnemonic },
// },
// bnbMainNet: {
// url: `https://bsc-dataseed.binance.org`,
// network_id: 56,
// confirmations: 1,
// gas: 20000000,
// timeoutBlocks: 20000000,
// skipDryRun: true,
// accounts: { mnemonic: mnemonic },
// },
// ethMainNet: {
// url: `https://mainnet.infura.io/v3/1208f1211f644fa8ad244bb6d36e6575`,
// network_id: 1, // Ropsten's id
// gas: 7000000, // Ropsten has a lower block limit than mainnet
// confirmations: 2, // # of confs to wait between deployments. (default: 0)
// timeoutBlocks: 2000000, // # of blocks before a deployment times out (minimum/default: 50)
// skipDryRun: true,
// accounts: { mnemonic: mnemonic },
// },
// },
solidity: {
compilers: [
{
version: "0.5.16",
settings: {
// See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.4.18",
settings: {
// See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.6",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.12",
settings: {
evmVersion: "istanbul",
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
etherscan: {
apiKey: "Y3QVTPHEE9MRN36I71RGAGBZ35H77VJ8B5", //bnb
// apiKey: "PAJ2TIU2TYP92YT2C53W898IC1YTIJ2KVX",// kovan
},
paths: {
artifacts: "./artifacts",
},
};