Skip to content

Commit

Permalink
Add DeployMainnet for router file
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Dec 17, 2024
1 parent 8526536 commit 48aa2a9
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {Script} from "forge-std/Script.sol";
import {console} from "forge-std/console.sol";
import {Upgrades} from "openzeppelin-foundry-upgrades/Upgrades.sol";
import {ValidatorOptInRouter} from "../../contracts/validator-registry/ValidatorOptInRouter.sol";
import {MainnetConstants} from "../MainnetConstants.sol";

contract BaseDeploy is Script {
function deployValidatorOptInRouter(
Expand All @@ -32,6 +33,34 @@ contract BaseDeploy is Script {
}
}

/// Temporary stand-in until the mev-commit middleware and symbiotic core, are ready for mainnet.
contract AlwaysFalseMevCommitMiddleware {
function isValidatorOptedIn(bytes calldata) external pure returns (bool) {
return false;
}
}

contract DeployMainnet is BaseDeploy {
address constant public VANILLA_REGISTRY = 0x47afdcB2B089C16CEe354811EA1Bbe0DB7c335E9;
address constant public MEV_COMMIT_AVS = 0xBc77233855e3274E1903771675Eb71E602D9DC2e;
address constant public OWNER = MainnetConstants.PRIMEV_TEAM_MULTISIG;

function run() external {
require(block.chainid == 1, "must deploy on mainnet");
vm.startBroadcast();

AlwaysFalseMevCommitMiddleware alwaysFalseMevCommitMiddleware = new AlwaysFalseMevCommitMiddleware();

deployValidatorOptInRouter(
VANILLA_REGISTRY,
MEV_COMMIT_AVS,
address(alwaysFalseMevCommitMiddleware),
OWNER
);
vm.stopBroadcast();
}
}

contract DeployHolesky is BaseDeploy {
address constant public VANILLA_REGISTRY = 0x87D5F694fAD0b6C8aaBCa96277DE09451E277Bcf;
address constant public MEV_COMMIT_AVS = 0xEDEDB8ed37A43Fd399108A44646B85b780D85DD4;
Expand Down

0 comments on commit 48aa2a9

Please sign in to comment.