Skip to content

Commit

Permalink
feat: migrate truffle to hardhat (#87)
Browse files Browse the repository at this point in the history
* feat: hardhat migration

* fix: fix tests cases

* fix: document store creator test

* fix: eslint errors

* fix: benchmark test

* fix: lint

* fix: post typechain script used in truffle setup

* chore: remove post install

* chore: recover typechain script

* chore: remove truffle config file

* chore: add prepare script

* chore: update package.json

Co-authored-by: Seth <[email protected]>
  • Loading branch information
ryanseee and superical authored Apr 4, 2022
1 parent 6c6d87a commit 85635c6
Show file tree
Hide file tree
Showing 13 changed files with 30,151 additions and 31,182 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
migrations/1_initial_migration.js
dist
dist
src/contracts
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"assert": "readonly",
"web3": "writable"
},
"rules": {
"import/extensions": "off",
"import/no-unresolved": "off"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ yarn-error.log
/build
/types
.DS_STORE
/cache
/artifacts
372 changes: 188 additions & 184 deletions benchmark/GasCostBenchmark.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require("@nomiclabs/hardhat-waffle");
require("hardhat-typechain");
require("@openzeppelin/hardhat-upgrades");

/**
* @type import('hardhat/config').HardhatUserConfig
*/

module.exports = {
solidity: {
version: "0.6.10",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
typechain: {
outDir: "src/contracts",
},
};
Loading

0 comments on commit 85635c6

Please sign in to comment.