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

feat(protocol): prepare ontake fork to support new params & metadata #17679

Merged
merged 92 commits into from
Jul 4, 2024

Conversation

dantaik
Copy link
Contributor

@dantaik dantaik commented Jun 26, 2024

BEGIN_COMMIT_OVERRIDE
feat(protocol): allow contract proposers to use calldata as well
feat(protocol): add preconfirmation support based on Brecht's PR (with some renaming) to implement #14793
feat(protocol): add proposeBlock2 in TaikoL1.sol and approve2 in GuardianProver.sol to be used post a fork
refactor(protocol): avoid writing livenessBond to storage to remove unnecessary SSTORE and SLOAD.
refactor(protocol): enable AddressManager to cache address(0) without reading from storage
END_COMMIT_OVERRIDE

TODO

  • merge Brecht's preconfirmation changes to this PR.
  • Testing the hardfork and proposeBlock2 function

Copy link

openzeppelin-code bot commented Jun 26, 2024

feat(protocol): prepare ontake fork to support new params & metadata

Generated at commit: 548d8116ff503cf3d9037ba07cad521e0e1a0bc1

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
8
41
53
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@dantaik dantaik changed the title feat(protocol): prepare for a hardfork to support new block parameters feat(protocol): prepare for a hardfork to support new block parameters [Do not merge] Jun 26, 2024
@dantaik dantaik changed the title feat(protocol): prepare for a hardfork to support new block parameters [Do not merge] feat(protocol): prepare for a hardfork to support new params and metadata [Do not merge] Jun 26, 2024
@dantaik dantaik marked this pull request as ready for review June 26, 2024 05:22
@dantaik dantaik marked this pull request as draft June 26, 2024 05:22
@dantaik dantaik requested a review from smtmfft June 26, 2024 05:30
@dantaik dantaik changed the base branch from main to ontake_fork July 2, 2024 03:30
@dantaik dantaik changed the title feat(protocol): prepare 'fuji' fork to support new params and metadata [Do not merge] feat(protocol): prepare ontake fork to support new params & metadata Jul 2, 2024
packages/protocol/contracts/L1/libs/LibProving.sol Outdated Show resolved Hide resolved
Comment on lines +8 to +13
interface IProposerAccess {
/// @notice Checks if a proposer can propose block in the current Ethereum block.
/// @param _proposer The proposer.
/// @return true if the proposer can propose blocks, false otherwise.
function isProposerEligible(address _proposer) external view returns (bool);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can change it later. I think we just care about the permission checking function rather than the registration logics.

@dantaik dantaik changed the base branch from ontake_fork to bond_alt July 4, 2024 01:49
@dantaik dantaik changed the base branch from bond_alt to ontake_fork July 4, 2024 01:56
@dantaik dantaik merged commit 35768ec into ontake_fork Jul 4, 2024
5 checks passed
@dantaik dantaik deleted the plan_for_a_hard_fork branch July 4, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants