diff --git a/contracts/README.md b/contracts/README.md index b968b6d87..7fb19dbeb 100644 --- a/contracts/README.md +++ b/contracts/README.md @@ -61,6 +61,7 @@ This changelog tracks deployments of **Hoodi Testnet** contracts. This changelog | MevCommitAVS | `0xdF8649d298ad05f019eE4AdBD6210867B8AB225F` | `13cf068477e6efdbb5c4fe5ce53a11af30bf8b47` in 'main' | | MevCommitMiddleware | `0x8E847EC4a36c8332652aB3b2B7D5c54dE29c7fde` | `13cf068477e6efdbb5c4fe5ce53a11af30bf8b47` in 'main' | | RocketMinipoolRegistry| `0x30d478b02918c4b11731efc4868d848d551e79b2` | `d994896a8b17b131ebda8bbae1a43ddd55c906c1` in 'rocketpool-registry' | +| Reputational VanillaRegistry| `0xf65fea786014a2c4442df57a086298d76bd23abe` | `9ffa6c82f1e516f89c321cd576c3d777f0d5d261` in 'main' | ### Upgrade History diff --git a/contracts/l1-deployer-cli.sh b/contracts/l1-deployer-cli.sh index 1642f984d..100e0b259 100755 --- a/contracts/l1-deployer-cli.sh +++ b/contracts/l1-deployer-cli.sh @@ -2,6 +2,7 @@ deploy_all_flag=false deploy_vanilla_flag=false +deploy_vanilla_rep_flag=false deploy_avs_flag=false deploy_middleware_flag=false deploy_rocketpool_flag=false @@ -24,6 +25,7 @@ help() { echo "Commands (one required):" echo " deploy-all Deploy all components (vanilla, AVS, middleware, opt-in-hub)." echo " deploy-vanilla Deploy and verify the VanillaRegistry contract to L1." + echo " deploy-vanilla-rep Deploy and verify the Reputational VanillaRegistry contract to L1." echo " deploy-avs Deploy and verify the MevCommitAVS contract to L1." echo " deploy-middleware Deploy and verify the MevCommitMiddleware contract to L1." echo " deploy-rocketpool Deploy and verify the RocketMinipoolRegistry contract to L1." @@ -116,6 +118,10 @@ parse_args() { deploy_vanilla_flag=true shift ;; + deploy-vanilla-rep) + deploy_vanilla_rep_flag=true + shift + ;; deploy-avs) deploy_avs_flag=true shift @@ -221,7 +227,7 @@ parse_args() { fi commands_specified=0 - for flag in deploy_all_flag deploy_vanilla_flag deploy_avs_flag deploy_middleware_flag deploy_rocketpool_flag deploy_opt_in_hub_flag deploy_block_rewards_flag deploy_reward_distributor_flag; do + for flag in deploy_all_flag deploy_vanilla_flag deploy_vanilla_rep_flag deploy_avs_flag deploy_middleware_flag deploy_rocketpool_flag deploy_opt_in_hub_flag deploy_block_rewards_flag deploy_reward_distributor_flag; do if [[ "${!flag}" == true ]]; then ((commands_specified++)) fi @@ -273,14 +279,16 @@ get_chain_params() { } check_git_status() { - if ! current_tag=$(git describe --tags --exact-match 2>/dev/null); then - echo "Error: Current commit is not tagged. Please ensure the commit is tagged before deploying." - exit 1 - fi + if [[ ${chain_id:-0} -eq 1 ]]; then + if ! current_tag=$(git describe --tags --exact-match 2>/dev/null); then + echo "Error: Current commit is not tagged. Please ensure the commit is tagged before deploying." + exit 1 + fi - if [[ -n "$(git status --porcelain)" ]]; then - echo "Error: There are uncommitted changes. Please commit or stash them before deploying." - exit 1 + if [[ -n "$(git status --porcelain)" ]]; then + echo "Error: There are uncommitted changes. Please commit or stash them before deploying." + exit 1 + fi fi if [[ "$skip_release_verification_flag" != true ]]; then @@ -392,6 +400,10 @@ deploy_vanilla() { deploy_contract_generic "scripts/validator-registry/DeployVanillaRegistry.s.sol" } +deploy_vanilla_rep() { + deploy_contract_generic "scripts/validator-registry/DeployVanillaReputational.s.sol" +} + deploy_avs() { deploy_contract_generic "scripts/validator-registry/avs/DeployAVS.s.sol" } @@ -428,12 +440,15 @@ main() { if [[ "${deploy_all_flag}" == true ]]; then echo "Deploying all contracts to $chain using $wallet_type..." deploy_vanilla + deploy_vanilla_rep deploy_avs deploy_middleware deploy_rocketpool deploy_opt_in_hub elif [[ "${deploy_vanilla_flag}" == true ]]; then deploy_vanilla + elif [[ "${deploy_vanilla_rep_flag}" == true ]]; then + deploy_vanilla_rep elif [[ "${deploy_avs_flag}" == true ]]; then deploy_avs elif [[ "${deploy_middleware_flag}" == true ]]; then