Skip to content

Holocene: L1 SystemConfig.sol extensions for setting 1559 params#12439

Closed
roberto-bayardo wants to merge 2 commits intoethereum-optimism:developfrom
roberto-bayardo:holocene-sysconfig
Closed

Holocene: L1 SystemConfig.sol extensions for setting 1559 params#12439
roberto-bayardo wants to merge 2 commits intoethereum-optimism:developfrom
roberto-bayardo:holocene-sysconfig

Conversation

@roberto-bayardo
Copy link
Copy Markdown
Collaborator

Description

Extends the L1 SystemConfig.sol contract with the EIP-1559 parameters + their setters.

@roberto-bayardo
Copy link
Copy Markdown
Collaborator Author

Building on #12418

Keeping in draft until that one is merged.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.42%. Comparing base (9d9dc32) to head (f28e90f).
Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #12439      +/-   ##
===========================================
- Coverage    64.60%   64.42%   -0.19%     
===========================================
  Files           52       52              
  Lines         4371     4371              
===========================================
- Hits          2824     2816       -8     
- Misses        1372     1381       +9     
+ Partials       175      174       -1     
Flag Coverage Δ
cannon-go-tests 64.42% <ø> (-0.19%) ⬇️

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

see 1 file with indirect coverage changes

@roberto-bayardo roberto-bayardo force-pushed the holocene-sysconfig branch 5 times, most recently from 5076e8f to bb65614 Compare October 14, 2024 18:08
emit ConfigUpdate(VERSION, UpdateType.GAS_LIMIT, data);
}

/// @notice Updates the EIP-1559 parameters of the chain. Can only be called by the owner.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good to me! One additional consideration is if we want to do something in initialize like:

if (eip1559Denominator == 0 && eip1559Elasticity == 0) {
  _setEIP1559Params(canyonDefaults);
}

This would sync the L1 state of the system config with the L2 values that are being used

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No strong feelings either way, but slight preference to leaving it 0, mostly because less code?

@roberto-bayardo roberto-bayardo force-pushed the holocene-sysconfig branch 7 times, most recently from 54feb0d to 34dfc06 Compare October 16, 2024 21:26
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