Commit a3ea8c3d authored by Mark Tyneway's avatar Mark Tyneway

contracts-bedrock: deploy EAS to optimism goerli

Deploys the EAS and SchemaRegistry contracts to optimism-goerli.
Also makes slight modifications to the deployer and deploy config
contracts for simplicity. In reality, we can remove some fields
from the deploy config parsing that are not required but we first
need better deploy config validation.
parent ad700a71
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -44,14 +44,18 @@ contract DeployConfig is Script {
uint256 public gasPriceOracleScalar;
uint256 public eip1559Denominator;
uint256 public eip1559Elasticity;
uint256 public l2GenesisRegolithTimeOffset;
uint256 public faultGameAbsolutePrestate;
uint256 public faultGameMaxDepth;
uint256 public faultGameMaxDuration;
constructor(string memory _path) {
console.log("DeployConfig: reading file %s", _path);
_json = vm.readFile(_path);
try vm.readFile(_path) returns (string memory data) {
_json = data;
} catch {
console.log("Warning: unable to read config. Do not deploy unless you are not using config.");
return;
}
finalSystemOwner = stdJson.readAddress(_json, "$.finalSystemOwner");
controller = stdJson.readAddress(_json, "$.controller");
......@@ -84,7 +88,6 @@ contract DeployConfig is Script {
gasPriceOracleScalar = stdJson.readUint(_json, "$.gasPriceOracleScalar");
eip1559Denominator = stdJson.readUint(_json, "$.eip1559Denominator");
eip1559Elasticity = stdJson.readUint(_json, "$.eip1559Elasticity");
l2GenesisRegolithTimeOffset = stdJson.readUint(_json, "$.l2GenesisRegolithTimeOffset");
if (block.chainid == 900) {
faultGameAbsolutePrestate = stdJson.readUint(_json, "$.faultGameAbsolutePrestate");
......
......@@ -97,6 +97,7 @@ abstract contract Deployer is Script {
function sync() public {
Deployment[] memory deployments = _getTempDeployments();
console.log("Syncing %s deployments", deployments.length);
console.log("Using deployment artifact %s", deployPath);
for (uint256 i; i < deployments.length; i++) {
address addr = deployments[i].addr;
......
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