Skip to content

Commit 4878c5a

Browse files
committed
Implement interfaces and update IKeyperSetManager
1 parent e8db269 commit 4878c5a

File tree

7 files changed

+4
-104
lines changed

7 files changed

+4
-104
lines changed

src/common/KeyperSet.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
pragma solidity ^0.8.22;
33

44
import "./lib/openzeppelin/contracts/access/Ownable.sol";
5+
import "./intf/IKeyperSet.sol";
56

67
error AlreadyFinalized();
78
error NotRegistered();
89

9-
contract KeyperSet is Ownable {
10+
contract KeyperSet is Ownable, IKeyperSet {
1011
bool finalized;
1112
address[] members;
1213
uint64 threshold;

src/common/KeyperSetManager.sol

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ pragma solidity ^0.8.22;
44
import "./lib/openzeppelin/contracts/utils/math/Math.sol";
55
import "./KeyperSet.sol";
66
import "./lib/RestrictedPausable.sol";
7+
import "./intf/IKeyperSetManager.sol";
78

8-
error KeyperSetNotFinalized();
9-
error AlreadyHaveKeyperSet();
10-
error NoActiveKeyperSet();
119
error AlreadyDeactivated();
1210

13-
contract KeyperSetManager is RestrictedPausable {
11+
contract KeyperSetManager is RestrictedPausable, IKeyperSetManager {
1412
struct KeyperSetData {
1513
uint64 activationBlock;
1614
address contractAddress;

src/gnosh/intf/IKeyBroadcastContract.sol

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/gnosh/intf/IKeyperSet.sol

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/gnosh/intf/IKeyperSetManager.sol

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/gnosh/intf/ISequencer.sol

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/gnosh/intf/IValidatorRegistry.sol

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)