-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Galileo rollup fee #65
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
Conversation
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.
looks good, just a comment related to keeping the ratio as an input.
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.
Pull Request Overview
This PR adds support for the GALILEO hard fork by introducing a new fee calculation mechanism based on compressed transaction size. The key change is moving from a compression ratio-based penalty system (FEYNMAN) to a direct compressed size-based formula.
- Added
compressed_sizefield toScrollTransactionandScrollTxTrtrait - Implemented
calculate_tx_l1_cost_galileofunction with new fee formula - Updated
calculate_tx_l1_costto handle GALILEO spec ID - Added unit tests for the new GALILEO fee calculation
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/transaction.rs | Added compressed_size field and getter to support GALILEO fee calculations |
| src/l1block.rs | Implemented GALILEO fee calculation logic and added unit tests |
| src/handler.rs | Updated fee calculation calls to pass the new compressed_size parameter |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
lgtm!
261ada5
Spec: https://www.notion.so/scrollzkp/Galileo-Fee-Model-2a07792d22af8051a9e5e987c23c2c6a
L2geth: scroll-tech/go-ethereum#1251