Commit 870f8399 authored by Maurelian's avatar Maurelian

feat(ctb): Perform deployment using gnosis safe as system owner

temp: Add instrumentation to deploy.sol

fix(ctb): Use correct names for deployments

We deploy a SafeProxy contract as the system owner, it needs to be correctly named
in order to connect it to the source code.

The SafeProxyFactory and Safe (as the singleton) are also now saved.

fix(ctb): Skip HH deployments if deployTx not found

At the moment this only applies to the Safe contract, which is deployed in
a nested create2 call. We don't expect we'll need this artifact as it's not a
core part of the OP Stack.
parent 4eece972
......@@ -115,6 +115,10 @@ abstract contract Deployer is Script {
string memory deploymentName = deployments[i].name;
string memory deployTx = _getDeployTransactionByContractAddress(addr);
if (bytes(deployTx).length == 0) {
console.log("Deploy Tx not found for %s skipping deployment artifact generation", deploymentName);
continue;
}
string memory contractName = _getContractNameFromDeployTransaction(deployTx);
console.log("Syncing deployment %s: contract %s", deploymentName, contractName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment