Commit 8a0356f1 authored by OptimismBot's avatar OptimismBot Committed by GitHub

Merge pull request #6592 from ethereum-optimism/clabby/ctb/block-oracle-deploy

feat(ctb): Deploy `BlockOracle`
parents 374f9aa6 a7285e38
......@@ -83,6 +83,7 @@ contract Deploy is Deployer {
deployL1StandardBridge();
deployL1ERC721Bridge();
deployDisputeGameFactory();
deployBlockOracle();
deployPreimageOracle();
deployMips();
......@@ -365,6 +366,15 @@ contract Deploy is Deployer {
return address(factory);
}
/// @notice Deploy the BlockOracle
function deployBlockOracle() onlyDevnet broadcast() public returns (address) {
BlockOracle oracle = new BlockOracle();
save("BlockOracle", address(oracle));
console.log("BlockOracle deployed at %s", address(oracle));
return address(oracle);
}
/// @notice Deploy the PreimageOracle
function deployPreimageOracle() onlyDevnet broadcast() public returns (address) {
PreimageOracle preimageOracle = new PreimageOracle();
......@@ -721,7 +731,7 @@ contract Deploy is Deployer {
_gameDuration: Duration.wrap(uint64(cfg.faultGameMaxDuration())),
_vm: faultVm,
_l2oo: L2OutputOracle(mustGetAddress("L2OutputOracleProxy")),
_blockOracle: new BlockOracle()
_blockOracle: BlockOracle(mustGetAddress("BlockOracle"))
}));
console.log("DisputeGameFactory: set `FaultDisputeGame` implementation");
}
......
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