-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
54 lines (50 loc) · 1.21 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
require("@nomiclabs/hardhat-waffle");
require('babel-register');
require('babel-polyfill');
require("dotenv").config();
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
const privateKey = process.env.PRIVATE_KEY || "";
const privateKeyArray = privateKey.split(',')
const ProjectId = process.env.PROJECT_ID;
module.exports = {
solidity: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 1000000,
}
},
mocha: {
timeout: 100000
},
paths:{
artifacts: "./app/src/build",
tests: "./test",
},
networks:{
// ganache: {
// url: "http://127.0.0.1:8545",
// chainId: 1337,
// accounts: [""]
// },
// hardhat:{
// chainId: 1337,
// // gas: "auto",
// // gasPrice: "auto",
// // blockGasLimit: 100000000429720,
// },
// mumbai:{
// url: `https://polygon-mumbai.g.alchemy.com/v2/${ProjectId}`,
// accounts: privateKeyArray
// }
// rinkeby:{
// url: `https://rinkeby.infura.io/v3/${ProjectId}`,
// accounts: privateKeyArray,
// }
}
};