TC-106 add contracts coverage

This commit is contained in:
Drygin 2022-07-20 14:36:59 +03:00
parent 370e3892a6
commit d6a1df502f
6 changed files with 982 additions and 23 deletions

3
.gitignore vendored
View File

@ -5,3 +5,6 @@ cache
artifacts artifacts
src/types src/types
.vscode .vscode
coverage
coverage.json

View File

@ -6,3 +6,5 @@ cache
cache-ovm cache-ovm
contracts/Verifier*.sol contracts/Verifier*.sol
src/types src/types
coverage
coverage.json

View File

@ -19,6 +19,7 @@ yarn
yarn download yarn download
yarn build yarn build
yarn test yarn test
yarn coverage
``` ```
## Deploy ## Deploy

View File

@ -3,6 +3,7 @@ require('@typechain/hardhat')
require('@nomiclabs/hardhat-ethers') require('@nomiclabs/hardhat-ethers')
require('@nomiclabs/hardhat-waffle') require('@nomiclabs/hardhat-waffle')
require('@nomiclabs/hardhat-etherscan') require('@nomiclabs/hardhat-etherscan')
require('solidity-coverage')
require('dotenv').config() require('dotenv').config()
task('hasher', 'Compile Poseidon hasher', () => { task('hasher', 'Compile Poseidon hasher', () => {

View File

@ -15,6 +15,7 @@
"build": "npm run circuit && npm run compile", "build": "npm run circuit && npm run compile",
"deploy": "npx hardhat run scripts/deploy.js --network optimism", "deploy": "npx hardhat run scripts/deploy.js --network optimism",
"test": "npx hardhat test", "test": "npx hardhat test",
"coverage": "npx hardhat coverage",
"eslint": "eslint --ext .js --ignore-path .gitignore .", "eslint": "eslint --ext .js --ignore-path .gitignore .",
"prettier:check": "prettier --check . --config .prettierrc", "prettier:check": "prettier --check . --config .prettierrc",
"prettier:fix": "prettier --write . --config .prettierrc", "prettier:fix": "prettier --write . --config .prettierrc",
@ -58,6 +59,7 @@
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "^3.4.0",
"prettier": "^2.3.1", "prettier": "^2.3.1",
"prettier-plugin-solidity": "^1.0.0-beta.13", "prettier-plugin-solidity": "^1.0.0-beta.13",
"solhint-plugin-prettier": "^0.0.5" "solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.7.21"
} }
} }

992
yarn.lock

File diff suppressed because it is too large Load Diff