@@ -67,7 +67,15 @@ contract AtomicDeployer {
6767 uint256 public slashCancellationPeriod;
6868 bytes32 public genesisStateRoot;
6969
70+ address public deployerOwner;
71+
7072 constructor () {
73+ deployerOwner = msg .sender ;
74+ }
75+
76+ modifier onlyOwner () {
77+ require (msg .sender == deployerOwner);
78+ _;
7179 }
7280
7381 function setParams1 (
@@ -77,7 +85,7 @@ contract AtomicDeployer {
7785 uint32 _votingPeriod ,
7886 uint256 _proposalThreshold ,
7987 uint256 _quorumFraction
80- ) external {
88+ ) external onlyOwner {
8189 stakingImpl = _stakingImpl;
8290 prove = _prove;
8391 votingDelay = _votingDelay;
@@ -93,7 +101,7 @@ contract AtomicDeployer {
93101 address _verifier ,
94102 uint256 _minDepositAmount ,
95103 bytes32 _vkey
96- ) external {
104+ ) external onlyOwner {
97105 vappImpl = _vappImpl;
98106 owner = _owner;
99107 auctioneer = _auctioneer;
@@ -109,7 +117,7 @@ contract AtomicDeployer {
109117 uint256 _unstakePeriod ,
110118 uint256 _slashCancellationPeriod ,
111119 bytes32 _genesisStateRoot
112- ) external {
120+ ) external onlyOwner {
113121 dispenser = _dispenser;
114122 minStakeAmount = _minStakeAmount;
115123 maxUnstakeRequests = _maxUnstakeRequests;
@@ -118,7 +126,7 @@ contract AtomicDeployer {
118126 genesisStateRoot = _genesisStateRoot;
119127 }
120128
121- function deploy (bytes32 salt ) external returns (address , address , address , address ) {
129+ function deploy (bytes32 salt ) external onlyOwner returns (address , address , address , address ) {
122130 address STAKING;
123131 {
124132 STAKING = address (
0 commit comments