-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(protocol): Additional integration tests, solidity bump, reduce TokenVault contract size #13155
Conversation
…/lints in customError functions
…/lints in customError functions
…n max contract size and failing CICD
|
I believe we should use |
And seems there are some errors in github action ( |
@cyberhorsey I accidentally merged my PR onto yours before fixing test bugs. Please undo the last PR of mine. |
…to addtl_int_tests
…to addtl_int_tests
@dantaik @davidtaikocha I have submitted a PR to fix the repo so it works with |
Codecov Report
@@ Coverage Diff @@
## main #13155 +/- ##
==========================================
+ Coverage 60.95% 61.16% +0.21%
==========================================
Files 115 115
Lines 3391 3394 +3
Branches 460 463 +3
==========================================
+ Hits 2067 2076 +9
+ Misses 1241 1234 -7
- Partials 83 84 +1
*This pull request uses carry forward flags. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I think we can fork the repo under taiko's account. |
OK, done |
This adds some additional integration tests, as well as updates Solidity to 0.8.18 so we can take advantage of the
named mapping parameters
function, which definitely helps readability on some of our more complex mappings, and removes the need for comments. It also fixes the linter/type errors on the new customError handling functions, as well ashardhat-contract-sizer
to get to the bottom of the large contract which is failing our CICD randomly, which turned out to be theTokenVault
, which is almost at24.5kb
max contract size. I got it down to22.7kb
with custom errors refactoring and slight modifications elsewhere, and now it seems to not fail our CICD.However,
solhint
is not ready for named parameter mappings just yet:protofire/solhint#397
I can go ahead and undo those changes if we want to wait for
solhint
to be ready for us before we do this change.@dantaik as well, in solidity
0.9.0
,block.difficulty
will be removed from Solidity, which we use for setting the mixHash when proposing a block.