-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
started renaming chain's governor to admin
- Loading branch information
Showing
15 changed files
with
75 additions
and
89 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 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
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 |
---|---|---|
|
@@ -11,13 +11,13 @@ import {FeeParams} from "../chain-deps/ZkSyncStateTransitionStorage.sol"; | |
/// @author Matter Labs | ||
/// @custom:security-contact [email protected] | ||
interface IAdmin is IZkSyncStateTransitionBase { | ||
/// @notice Starts the transfer of governor rights. Only the current governor can propose a new pending one. | ||
/// @notice New governor can accept governor rights by calling `acceptGovernor` function. | ||
/// @param _newPendingGovernor Address of the new governor | ||
function setPendingGovernor(address _newPendingGovernor) external; | ||
/// @notice Starts the transfer of admin rights. Only the current admin can propose a new pending one. | ||
/// @notice New admin can accept admin rights by calling `acceptAdmin` function. | ||
/// @param _newPendingAdmin Address of the new admin | ||
function setPendingAdmin(address _newPendingAdmin) external; | ||
|
||
/// @notice Accepts transfer of governor rights. Only pending governor can accept the role. | ||
function acceptGovernor() external; | ||
/// @notice Accepts transfer of admin rights. Only pending admin can accept the role. | ||
function acceptAdmin() external; | ||
|
||
/// @notice Change validator status (active or not active) | ||
/// @param _validator Validator address | ||
|
@@ -42,7 +42,7 @@ interface IAdmin is IZkSyncStateTransitionBase { | |
function upgradeChainFromVersion(uint256 _protocolVersion, Diamond.DiamondCutData calldata _cutData) external; | ||
|
||
/// @notice Executes a proposed governor upgrade | ||
/// @dev Only the current governor can execute the upgrade | ||
/// @dev Only the current admin can execute the upgrade | ||
/// @param _diamondCut The diamond cut parameters to be executed | ||
function executeUpgrade(Diamond.DiamondCutData calldata _diamondCut) external; | ||
|
||
|
@@ -51,7 +51,7 @@ interface IAdmin is IZkSyncStateTransitionBase { | |
function freezeDiamond() external; | ||
|
||
/// @notice Unpause the functionality of all freezable facets & their selectors | ||
/// @dev Both the governor and its owner can unfreeze Diamond Proxy | ||
/// @dev Both the admin and the STM can unfreeze Diamond Proxy | ||
function unfreezeDiamond() external; | ||
|
||
/// @notice Porter availability status changes | ||
|
@@ -60,12 +60,12 @@ interface IAdmin is IZkSyncStateTransitionBase { | |
/// @notice Validator's status changed | ||
event ValidatorStatusUpdate(address indexed validatorAddress, bool isActive); | ||
|
||
/// @notice pendingGovernor is changed | ||
/// @dev Also emitted when new governor is accepted and in this case, `newPendingGovernor` would be zero address | ||
event NewPendingGovernor(address indexed oldPendingGovernor, address indexed newPendingGovernor); | ||
/// @notice pendingAdmin is changed | ||
/// @dev Also emitted when new admin is accepted and in this case, `newPendingAdmin` would be zero address | ||
event NewPendingAdmin(address indexed oldPendingAdmin, address indexed newPendingAdmin); | ||
|
||
/// @notice Governor changed | ||
event NewGovernor(address indexed oldGovernor, address indexed newGovernor); | ||
/// @notice Admin changed | ||
event NewAdmin(address indexed oldAdmin, address indexed newAdmin); | ||
|
||
/// @notice Priority transaction max L2 gas limit changed | ||
event NewPriorityTxMaxGasLimit(uint256 oldPriorityTxMaxGasLimit, uint256 newPriorityTxMaxGasLimit); | ||
|
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.