Skip to content

Commit 2a09acf

Browse files
authored
Merge pull request #269 from MoMannn/hardhat
Move from specron to hardhat.
2 parents 417df1b + c47cffc commit 2a09acf

15 files changed

+32092
-9672
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
name: Node.js CI
55

6-
on: push
6+
on: [push, pull_request]
77

88
jobs:
99
build:
@@ -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)