-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity =0.8.24; | ||
|
||
import "@openzeppelin/contracts/access/Ownable.sol"; | ||
|
||
contract SystemConfig is Ownable { | ||
|
||
address public currentSigner; | ||
|
||
constructor(address _owner) { | ||
_transferOwnership(_owner); | ||
} | ||
|
||
/** | ||
* @dev Update the current signer. | ||
* Only the owner can call this function. | ||
* @param _newSigner The address of the new authorized signer. | ||
*/ | ||
function updateSigner(address _newSigner) external onlyOwner { | ||
currentSigner = _newSigner; | ||
} | ||
|
||
/** | ||
* @dev Return the current authorized signer. | ||
* @return The authorized signer address. | ||
*/ | ||
function getSigner() external view returns (address) { | ||
return currentSigner; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.