Skip to content

Commit d92636f

Browse files
committed
prompt sp1 deployment
Signed-off-by: bennett <bennett@umaproject.org>
1 parent ff1e53e commit d92636f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

script/universal/DeploySP1Helios.s.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ contract DeploySP1Helios is Script {
6363
console.log("SP1MockVerifier deployed to:", params.verifier);
6464
}
6565

66+
string memory confirmation = vm.prompt(
67+
"Once Sp1Helios is deployed, you will have 7 days to deploy the UniversalSpokePool and activate it in-protocol. If 7 days passes with no update on this deployment, it will be impossible to make any updates to this contract. Press y/Y to confirm."
68+
);
69+
if (!strEq(confirmation, "y") && !strEq(confirmation, "Y")) {
70+
console.log("Prompt not confirmed. Aborting deployment.");
71+
return address(0);
72+
}
73+
6674
// Deploy the SP1 Helios contract
6775
console.log("Deploying SP1Helios...");
6876
SP1Helios helios = new SP1Helios(params);
@@ -263,4 +271,8 @@ contract DeploySP1Helios is Script {
263271

264272
console.log("Checksum verified successfully");
265273
}
274+
275+
function strEq(string memory a, string memory b) private pure returns (bool) {
276+
return keccak256(bytes(a)) == keccak256(bytes(b));
277+
}
266278
}

script/universal/DeployUniversalSpokePool.s.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ contract DeployUniversalSpokePool is Script, Test, DeploymentUtils {
3838

3939
uint256 heliosAdminBufferUpdateSeconds = 1 days;
4040
address helios = getDeployedAddress("SP1Helios", info.spokeChainId, true);
41+
4142
address l1HubPoolStore = getL1Addresses(info.hubChainId).hubPoolStore;
4243

4344
bool hasCctpDomain = hasCctpDomain(info.spokeChainId);

0 commit comments

Comments
 (0)