Skip to content
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

AUTO-9017: polish chain modules #12105

Merged
merged 10 commits into from
Feb 26, 2024
Merged

AUTO-9017: polish chain modules #12105

merged 10 commits into from
Feb 26, 2024

Conversation

FelixFan1992
Copy link
Contributor

No description provided.

Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@FelixFan1992 FelixFan1992 marked this pull request as ready for review February 21, 2024 21:26
@FelixFan1992 FelixFan1992 requested review from a team as code owners February 21, 2024 21:26
@FelixFan1992 FelixFan1992 requested review from a team, infiloop2 and RyanRHall and removed request for a team February 21, 2024 21:26
/// @dev reference: https://docs.scroll.io/en/developers/transaction-fees-on-scroll/#estimating-the-l1-data-fee
address private constant SCROLL_ORACLE_ADDR = 0x5300000000000000000000000000000000000002;
IScrollL1GasPriceOracle private constant SCROLL_ORACLE = IScrollL1GasPriceOracle(SCROLL_ORACLE_ADDR);

uint256 private constant FIXED_GAS_OVERHEAD = 20000;
uint256 private constant PER_CALLDATA_BYTE_GAS_OVERHEAD = 20;
uint256 private constant FIXED_GAS_OVERHEAD = 15000;
Copy link
Contributor

@infiloop2 infiloop2 Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be 45000 based on sheet? (cost with 0x calldata)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the gas cost calculated by g1 - g2 is about 45K

/// @dev OVM_GASPRICEORACLE_ADDR is the address of the OVM_GasPriceOracle precompile on Optimism.
/// @dev reference: https://community.optimism.io/docs/developers/build/transaction-fees/#estimating-the-l1-data-fee
address private constant OVM_GASPRICEORACLE_ADDR = 0x420000000000000000000000000000000000000F;
OVM_GasPriceOracle private constant OVM_GASPRICEORACLE = OVM_GasPriceOracle(OVM_GASPRICEORACLE_ADDR);

uint256 private constant FIXED_GAS_OVERHEAD = 20000;
uint256 private constant PER_CALLDATA_BYTE_GAS_OVERHEAD = 20;
uint256 private constant FIXED_GAS_OVERHEAD = 30000;
Copy link
Contributor

@infiloop2 infiloop2 Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be 60000 based on sheet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes the gas cost calculated by g1 - g2 is about 60K

@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@FelixFan1992 FelixFan1992 added this pull request to the merge queue Feb 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2024
@FelixFan1992 FelixFan1992 added this pull request to the merge queue Feb 26, 2024
Merged via the queue into develop with commit 02abf2e Feb 26, 2024
109 checks passed
@FelixFan1992 FelixFan1992 deleted the AUTO-9017 branch February 26, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants