-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
44 lines (39 loc) · 1.07 KB
/
hardhat.config.ts
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
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-web3";
import "@nomiclabs/hardhat-solhint";
import "@typechain/hardhat";
import "hardhat-contract-sizer";
import "hardhat-gas-reporter";
import "hardhat-tracer";
import "hardhat-etherscan-abi";
import "solidity-coverage";
import "hardhat-deploy";
import { task } from "hardhat/config";
import { compileSetting } from "./scripts/deployTool";
import { RPCS } from "./scripts/network";
const dotenv = require("dotenv");
dotenv.config();
task("accounts", "Prints the list of accounts", async (taskArgs, bre) => {
const accounts = await bre.ethers.getSigners();
for (const account of accounts) {
let address = await account.getAddress();
console.log(
address,
(await bre.ethers.provider.getBalance(address)).toString()
);
}
});
export default {
networks: RPCS,
etherscan: {
apiKey: process.env.ETHERSCAN_APIKEY,
},
solidity: {
compilers: [compileSetting("0.8.4", 200)],
},
mocha: {
timeout: 200000,
},
};