Skip to content

Commit 62cd62e

Browse files
committed
Move from specron to hardhat.
1 parent e5ceb49 commit 62cd62e

15 files changed

+32091
-9671
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
- run: |
2121
npm ci
2222
npm run solhint && npm test
23+
npm run coverage

.gitignore

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,23 @@
22
.vscode
33
node_modules
44
dist
5-
build
5+
build
6+
# Config files,
7+
.idea/
8+
.vscode
9+
# Node.js
10+
node_modules
11+
package.json
12+
package-lock.json
13+
#Hardhat files
14+
bin
15+
cache
16+
artifacts
17+
data/
18+
#Solidity
19+
soljson*
20+
.tmp*
21+
metadata/
22+
#coverage
23+
coverage.json
24+
coverage

hardhat.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
require('@nomiclabs/hardhat-waffle');
2+
require('hardhat-abi-exporter');
3+
require('solidity-coverage');
4+
5+
/**
6+
* @type import('hardhat/config').HardhatUserConfig
7+
*/
8+
module.exports = {
9+
solidity: '0.8.6',
10+
networks: {
11+
hardhat: {
12+
initialBaseFeePerGas: 0 // hardhat london fork error fix for coverage
13+
}
14+
},
15+
paths: {
16+
sources: './src/*',
17+
artifacts: './build',
18+
tests: './src/tests/*'
19+
},
20+
abiExporter: {
21+
path: './data/abi',
22+
clear: true,
23+
flat: true,
24+
}
25+
};

0 commit comments

Comments
 (0)