-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
50 lines (46 loc) · 963 Bytes
/
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
require("@nomiclabs/hardhat-waffle");
require('@nomiclabs/hardhat-ethers');
require('@nomiclabs/hardhat-etherscan');
const { mnemonic } = require('./secrets.json');
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
module.exports = {
defaultNetwork: "mumbai",
networks: {
localhost: {
url: "http://127.0.0.1:7545"
},
hardhat: {
},
mumbai: {
url: "https://rpc-mumbai.maticvigil.com",
// chainId: 137,
// gasPrice: 20000000000,
accounts: {mnemonic: mnemonic}
}
},
etherscan: {
apiKey: //polyscan api
},
solidity: {
version: "0.8.12",
settings: {
optimizer: {
enabled: true
}
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 20000
}
};