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

EIP4844 L1 Smart Contract Updates #8715

Closed

Conversation

anikaraghu
Copy link
Contributor

Description
Splitting out L1 contract changes in a separate PR since they're fully separate from the L2 contract changes in #8712 .
Adds new scalars to the SystemConfig contract

Tests

Please describe any tests you've added. If you've added no tests, or left important behavior untested, please explain why not.

Additional context

Add any other context about the problem you're solving.

Metadata

  • Fixes #[Link to Issue]

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (79e62bf) 34.57% compared to head (f56d83b) 44.47%.
Report is 9 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8715      +/-   ##
===========================================
+ Coverage    34.57%   44.47%   +9.89%     
===========================================
  Files          167       41     -126     
  Lines         7170     2071    -5099     
  Branches      1213      117    -1096     
===========================================
- Hits          2479      921    -1558     
+ Misses        4539     1104    -3435     
+ Partials       152       46     -106     
Flag Coverage Δ
cannon-go-tests 63.48% <ø> (ø)
chain-mon-tests ?
common-ts-tests ?
contracts-bedrock-tests 2.32% <ø> (-17.92%) ⬇️
contracts-ts-tests ?
core-utils-tests ?
sdk-next-tests ?
sdk-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 132 files with indirect coverage changes

/// block distrubution.
enum UpdateType {
BATCHER,
GAS_CONFIG,
GAS_LIMIT,
UNSAFE_BLOCK_SIGNER
UNSAFE_BLOCK_SIGNER,
FEE_SCALARS_ECOTONE
Copy link
Contributor Author

Choose a reason for hiding this comment

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

went back and forth around keeping the old GAS_CONFIG naming vs this FEE_SCALARS one - if using the Fee Scalar naming instead, we could techincally omit the "ecotone" suffix throughout - open to thoughts

basefeeScalar = _basefeeScalar;
blobBasefeeScalar = _blobBasefeeScalar;

bytes memory data = abi.encode(_basefeeScalar, _blobBasefeeScalar);
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's do encodePacked

@roberto-bayardo
Copy link
Collaborator

Taking over this PR from Anika since she's out for the holidays, will resubmit a new PR with these changes. Feel free to close this one (I don't have permission).

@tynes tynes closed this Dec 21, 2023
@roberto-bayardo
Copy link
Collaborator

Superceded by: #8723

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.

3 participants