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