Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/openzeppelin
Submodule openzeppelin updated 465 files
16 changes: 11 additions & 5 deletions script/Deploy.gnosh.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ import "../src/gnosh/ValidatorRegistry.sol";

contract Deploy is Script {
function deployKeyperSetManager(
address deployerAddress
address deployerAddress,
address bootstrapKeyper
) public returns (KeyperSetManager) {
KeyperSetManager ksm = new KeyperSetManager(deployerAddress);

address[] memory bootstrapMembers = new address[](1);
bootstrapMembers[0] = bootstrapKeyper;

// add bootstrap keyper set
KeyperSet fakeKeyperset = new KeyperSet();
fakeKeyperset.setFinalized();
ksm.addKeyperSet(0, address(fakeKeyperset));
KeyperSet bootstrapKeyperset = new KeyperSet();
bootstrapKeyperset.addMembers(bootstrapMembers);
bootstrapKeyperset.setFinalized();
ksm.addKeyperSet(0, address(bootstrapKeyperset));

console.log("KeyperSetManager:", address(ksm));
return ksm;
Expand Down Expand Up @@ -45,11 +50,12 @@ contract Deploy is Script {

function run() external {
uint256 deployKey = vm.envUint("DEPLOY_KEY");
address bootstrapKeyper = vm.envAddress("BOOTSTRAP_KEYPER");
address deployerAddress = vm.addr(deployKey);
console.log("Deployer:", deployerAddress);
vm.startBroadcast(deployKey);

KeyperSetManager ksm = deployKeyperSetManager(deployerAddress);
KeyperSetManager ksm = deployKeyperSetManager(deployerAddress, bootstrapKeyper);
deployKeyBroadcastContract(ksm);
deploySequencer();
deployValidatorRegistry();
Expand Down
4 changes: 3 additions & 1 deletion src/common/KeyperSetManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ contract KeyperSetManager is RestrictedPausable, IKeyperSetManager {
address contractAddress;
}

constructor(address initializer) RestrictedPausable(initializer) {}
constructor(address initializer) RestrictedPausable(initializer) {
initialize(msg.sender, msg.sender);
}

KeyperSetData[] private keyperSets;

Expand Down
Loading