Add hardhat-coverage and eth-gas-reporter Hardhat plugins

This commit is contained in:
ChronosX88 2021-04-27 22:09:37 +03:00
parent 6a389f1b5d
commit 0045c96940
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
5 changed files with 8579 additions and 2277 deletions

View File

@ -1,4 +1,6 @@
node_modules
artifacts/**
artifacts
cache
dist/**
dist
coverage
coverage.json

View File

@ -0,0 +1,3 @@
module.exports = {
skipFiles: ['Timelock.sol', 'Mediator.sol', 'vendor/Ownable.sol']
};

View File

@ -2,7 +2,8 @@ import { task } from "hardhat/config";
import "@nomiclabs/hardhat-ethers";
import "hardhat-tracer";
import "@nomiclabs/hardhat-waffle";
import "hardhat-ethernal";
import "solidity-coverage";
import "hardhat-gas-reporter";
task("accounts", "Prints the list of accounts", async (args, hre) => {
const accounts = await hre.ethers.getSigners();
@ -21,5 +22,9 @@ export default {
mnemonic: "test test test test test test test test test test test junk"
}
}
},
gasReporter: {
currency: 'USD',
enabled: (process.env.REPORT_GAS) ? true : false
}
};

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,8 @@
"main": "",
"scripts": {
"test": "TS_NODE_FILES=true npx hardhat test",
"test:reportGas": "REPORT_GAS=1 TS_NODE_FILES=true npx hardhat test",
"coverage": "TS_NODE_FILES=true npx hardhat coverage",
"deployLocal": "TS_NODE_FILES=true npx hardhat --network geth run scripts/deploy.ts"
},
"author": "",
@ -19,8 +21,9 @@
"ethereum-waffle": "^3.3.0",
"ethers": "^5.1.3",
"hardhat": "^2.1.2",
"hardhat-ethernal": "^0.2.3",
"hardhat-gas-reporter": "^1.0.4",
"hardhat-tracer": "*",
"solidity-coverage": "^0.7.16",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
},