-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
59 lines (51 loc) · 1.32 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
let secrets = require("./secrets");
require("hardhat-gas-reporter");
require("@nomiclabs/hardhat-web3");
require('solidity-coverage');
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
var balance = await web3.eth.getBalance(account.address)
console.log(`${account.address} - ${web3.utils.fromWei(balance, "ether")} ETH`);
}
});
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.11",
networks: {
hardhat: {
},
ropsten: {
url: secrets.ropsten_url,
accounts: [secrets.key]
},
mumbai: {
url: secrets.mumbai_url,
accounts: [secrets.key]
},
binance_testnet: {
url: secrets.binance_testnet_url,
accounts: [secrets.key]
},
arbitrum_testnet: {
url: secrets.arbitrum_testnet_url,
accounts: [secrets.key]
},
},
etherscan: {
apiKey: {
// Ethereum
ropsten: secrets.etherscan_key,
// Polygon
polygonMumbai: secrets.mumbaiscan_key,
// Binance
bscTestnet: secrets.bscscan_key,
// Arbitrum
arbitrumTestnet: secrets.arbiscan_key
}
}
};