-
Notifications
You must be signed in to change notification settings - Fork 620
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(contracts): bridge costs optimization #1011
Conversation
LCOV of commit
|
change npx hardhat test integration-test/GasOptimizationUpgrade.spec.ts below are example results:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1011 +/- ##
===========================================
+ Coverage 55.78% 55.84% +0.05%
===========================================
Files 144 145 +1
Lines 11067 11031 -36
===========================================
- Hits 6174 6160 -14
+ Misses 4471 4449 -22
Partials 422 422
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Purpose or design rationale of this PR
This PR try to reduce the gas costs for bridging. The following changes are made:
counterpart
,router
,messenger
in gateway from storage variable to immutable variablerollup
andmessageQueue
inL1ScrollMessenger
from storage variable to immutable variablemessageQueue
inScrollChain
from storage variable to immutable variablemessenger
andscrollChain
inL1MessageQueue
from storage variable to immutable variableL1MessageQueueWithGasPriceOracle
to mergeL2GasPriceOracle
andL1MessageQueue
PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:
Deployment tag versioning
Has
tag
incommon/version.go
been updated or have you addedbump-version
label to this PR?Breaking change label
Does this PR have the
breaking-change
label?