-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration to hardhat #914
Migration to hardhat #914
Conversation
# Conflicts: # .circleci/config.yml # package-lock.json # package.json # test/contracts/Synthetix.js
# Conflicts: # .prettierignore
* Restore ability to read contract sizes * Linter fix
* Remove large circleci resource usage * Only use mainnet forks in CI * Built CI
Codecov Report
@@ Coverage Diff @@
## develop #914 +/- ##
===========================================
- Coverage 97.55% 95.66% -1.90%
===========================================
Files 61 75 +14
Lines 4097 5350 +1253
Branches 524 658 +134
===========================================
+ Hits 3997 5118 +1121
- Misses 100 232 +132
Continue to review full report at Codecov.
|
* Update to develop * Lint fixes * Reduce Collateral contract size for hardhat * Bugfix on publish test * Ignore safety checks in CI prod diff tests * Fix unit tests for hardhat * Import dotenv at hardhat entry point * Bugfix on CI * Bugfix on deploy script * Build CI script
// Deterministic account #0 when using `npx hardhat node` | ||
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this a constant instead of hard-coding it twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Twice? Where's the other instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! I see it. It's in Deployer.js
Fixed
🚧 WIP 🚧
(not a draft because of ci tests)
Critical TODOs
smockit
that will allow hardhat compilation cc @kfichter[email protected]
cc @cgewecke (see Testing solidity-coverage hardhat plugin sc-forks/synthetix#2)hardhat-gas-reporter
--use-ovm
not working on compile as@eth-optimism/ovm-toolchain
not supported for hardhat--fail-oversize
support on compileresource: medium
- since reverted to usingresource: large
)Nice to have
@eth-optimism/ovm-toolchain
needs upgrading to support hardhatslither-config.json
has entrybuidler_cache_directory
@nomiclabs/hardhat-truffle5
that uses@nomiclabs/[email protected]
(to prevent truffle emitting event issues Upgrading Web3 >= 1.2.2 trufflesuite/truffle#2688) cc @alcuadrado - should speed up coverage