Add hardhat-coverage and eth-gas-reporter Hardhat plugins
This commit is contained in:
parent
6a389f1b5d
commit
0045c96940
6
eth-contracts/.gitignore
vendored
6
eth-contracts/.gitignore
vendored
@ -1,4 +1,6 @@
|
|||||||
node_modules
|
node_modules
|
||||||
artifacts/**
|
artifacts
|
||||||
cache
|
cache
|
||||||
dist/**
|
dist
|
||||||
|
coverage
|
||||||
|
coverage.json
|
3
eth-contracts/.solcover.js
Normal file
3
eth-contracts/.solcover.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
module.exports = {
|
||||||
|
skipFiles: ['Timelock.sol', 'Mediator.sol', 'vendor/Ownable.sol']
|
||||||
|
};
|
@ -2,7 +2,8 @@ import { task } from "hardhat/config";
|
|||||||
import "@nomiclabs/hardhat-ethers";
|
import "@nomiclabs/hardhat-ethers";
|
||||||
import "hardhat-tracer";
|
import "hardhat-tracer";
|
||||||
import "@nomiclabs/hardhat-waffle";
|
import "@nomiclabs/hardhat-waffle";
|
||||||
import "hardhat-ethernal";
|
import "solidity-coverage";
|
||||||
|
import "hardhat-gas-reporter";
|
||||||
|
|
||||||
task("accounts", "Prints the list of accounts", async (args, hre) => {
|
task("accounts", "Prints the list of accounts", async (args, hre) => {
|
||||||
const accounts = await hre.ethers.getSigners();
|
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"
|
mnemonic: "test test test test test test test test test test test junk"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
gasReporter: {
|
||||||
|
currency: 'USD',
|
||||||
|
enabled: (process.env.REPORT_GAS) ? true : false
|
||||||
}
|
}
|
||||||
};
|
};
|
10835
eth-contracts/package-lock.json
generated
10835
eth-contracts/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,6 +5,8 @@
|
|||||||
"main": "",
|
"main": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "TS_NODE_FILES=true npx hardhat test",
|
"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"
|
"deployLocal": "TS_NODE_FILES=true npx hardhat --network geth run scripts/deploy.ts"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
@ -19,8 +21,9 @@
|
|||||||
"ethereum-waffle": "^3.3.0",
|
"ethereum-waffle": "^3.3.0",
|
||||||
"ethers": "^5.1.3",
|
"ethers": "^5.1.3",
|
||||||
"hardhat": "^2.1.2",
|
"hardhat": "^2.1.2",
|
||||||
"hardhat-ethernal": "^0.2.3",
|
"hardhat-gas-reporter": "^1.0.4",
|
||||||
"hardhat-tracer": "*",
|
"hardhat-tracer": "*",
|
||||||
|
"solidity-coverage": "^0.7.16",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
"typescript": "^4.2.4"
|
"typescript": "^4.2.4"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user