Commit e6a1be1e authored by Andreas Bigger's avatar Andreas Bigger

Deploy cannon's MIPS contract to devnet

parent 6b4e1019
......@@ -25,6 +25,7 @@ import { Constants } from "../src/libraries/Constants.sol";
import { DisputeGameFactory } from "../src/dispute/DisputeGameFactory.sol";
import { FaultDisputeGame } from "../src/dispute/FaultDisputeGame.sol";
import { PreimageOracle } from "../src/cannon/PreimageOracle.sol";
import { MIPS } from "../src/cannon/MIPS.sol";
import { L1ERC721Bridge } from "../src/L1/L1ERC721Bridge.sol";
import { Predeploys } from "../src/libraries/Predeploys.sol";
......@@ -81,6 +82,7 @@ contract Deploy is Deployer {
deployL1ERC721Bridge();
deployDisputeGameFactory();
deployPreimageOracle();
deployMips();
transferAddressManagerOwnership();
......@@ -371,6 +373,18 @@ contract Deploy is Deployer {
return address(0);
}
/// @notice Deploy Mips
function deployMips() broadcast() public returns (address) {
if (block.chainid == 900) {
MIPS mips = new MIPS();
save("Mips", address(mips));
console.log("Mips deployed at %s", address(mips));
return address(mips);
}
return address(0);
}
/// @notice Deploy the SystemConfig
function deploySystemConfig() broadcast() public returns (address) {
bytes32 batcherHash = bytes32(uint256(uint160(cfg.batchSenderAddress())));
......
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