-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
62 lines (60 loc) · 1.74 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
60
61
62
// hardhat.config.js
require('@nomiclabs/hardhat-ethers');
require("hardhat-gas-reporter");
require('dotenv').config();
require('hardhat-exposed');
require('solidity-coverage');
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: '0.8.4',
settings: {
optimizer: {
enabled: false,
runs: 1
}
}
},
gasReporter: {
currency: 'USD',
coinmarketcap: process.env.COINMARKETKEY
},
hardhat: {
mocha: {
parallel: true,
}
}
}
// task("accounts", "Prints the list of accounts", async (taskArgs) => {
// const accounts = await ethers.getSigners();
// for (const account of accounts) {
// console.log(account.address);
// }
// });
//
// task("balance", "Prints an account's balance")
// .addParam("account", "The account's address")
// .setAction(async (taskArgs) => {
// const balance = await ethers.provider.getBalance(taskArgs.account);
// console.log(ethers.utils.formatEther(balance), "ETH");
// });
//
// task("trans", "Prints owners erc20 balance")
// .setAction(async (taskArgs, hre) => {
// const [owner] = await ethers.getSigners()
// const MyContract = await ethers.getContractFactory("GLDToken")
// const erc20 = await MyContract.attach("0xe7f1725e7734ce288f8367e1bb143e90bb3f0512") // The deployed contract address);
// const ownerBalance = await erc20.transfer('0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC', 3);
// // const name = await contract.address()
// console.log(ownerBalance)
// });
// task(
// "blockNumber",
// "Prints the current block number",
// async (_, { ethers }) => {
// const test = await ethers.provider.getBlockNumber()
// console.log(test)
// }
// );