-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ZKChain Upgrades and Libraries Diff Audit merged fixes (#1050)
Co-authored-by: vladbochok <[email protected]> Co-authored-by: Stanislav Breadless <[email protected]> Co-authored-by: kelemeno <[email protected]> Co-authored-by: Raid Ateir <[email protected]>
- Loading branch information
1 parent
5b57c7f
commit 431d076
Showing
31 changed files
with
135 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,11 @@ pragma solidity 0.8.24; | |
|
||
import {IBridgehub} from "./IBridgehub.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @custom:security-contact [email protected] | ||
/** | ||
* @author Matter Labs | ||
* @notice MessageRoot contract is responsible for storing and aggregating the roots of the batches from different chains into the MessageRoot. | ||
* @custom:security-contact [email protected] | ||
*/ | ||
interface IMessageRoot { | ||
function BRIDGE_HUB() external view returns (IBridgehub); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,9 @@ pragma solidity ^0.8.21; | |
|
||
/** | ||
* @author Matter Labs | ||
* @notice System smart contract that is responsible for deploying other smart contracts on a ZK chain. | ||
* @custom:security-contact [email protected] | ||
* @notice Interface for the contract that is used to deploy contracts on L2. | ||
* @dev Identical interface is defined in L2ContractHelper library. Duplication is for testing purposes only. | ||
*/ | ||
interface IL2ContractDeployer { | ||
/// @notice A struct that describes a forced deployment on an address. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ import {BaseZkSyncUpgrade, ProposedUpgrade} from "./BaseZkSyncUpgrade.sol"; | |
/// @author Matter Labs | ||
/// @custom:security-contact [email protected] | ||
contract DefaultUpgrade is BaseZkSyncUpgrade { | ||
/// @notice The main function that will be called by the upgrade proxy. | ||
/// @notice The main function that will be delegate-called by the chain. | ||
/// @param _proposedUpgrade The upgrade to be executed. | ||
function upgrade(ProposedUpgrade calldata _proposedUpgrade) public override returns (bytes32) { | ||
super.upgrade(_proposedUpgrade); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,13 @@ import {L2ContractHelper} from "../common/libraries/L2ContractHelper.sol"; | |
/// @author Matter Labs | ||
/// @custom:security-contact [email protected] | ||
contract L1GenesisUpgrade is IL1GenesisUpgrade, BaseZkSyncUpgradeGenesis { | ||
/// @notice The main function that will be called by the upgrade proxy. | ||
/// @notice The main function that will be delegate-called by the chain Admin facet. | ||
/// @param _l1GenesisUpgrade the address of the l1 genesis upgrade | ||
/// @param _chainId the chain id | ||
/// @param _protocolVersion the current protocol version | ||
/// @param _l1CtmDeployerAddress the address of the l1 ctm deployer | ||
/// @param _forceDeploymentsData the force deployments data | ||
/// @param _factoryDeps the factory dependencies | ||
function genesisUpgrade( | ||
address _l1GenesisUpgrade, | ||
uint256 _chainId, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.