44#
55# MULTISIG=true|false whether the contract is deployed under a multisig account
66#
7- # EXISTING_DEPLOYMENT_INFO_PATH: Path to the proof aggregator deployment output file
8- # - Holesky Stage: ./script/output/holesky/proof_aggregation_service_deployment_output.stage.json
9- # - Holesky Prod: ./script/output/holesky/roof_aggregation_service_deployment_output.json
10- #
117# PROOF_AGGREGATOR_OUTPUT_PATH: Path to the proof aggregator output file
128# - Holesky Stage: ./script/output/holesky/proof_aggregation_service_deployment_output.stage.json
139# - Holesky Prod: ./script/output/holesky/proof_aggregation_service_deployment_output.json
3329
3430# Save the output to a variable to later extract the address of the new deployed contract
3531forge_output=$( forge script script/upgrade/ProofAggregatorServiceUpgrader.s.sol \
36- $EXISTING_DEPLOYMENT_INFO_PATH \
37- $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH \
32+ $PROOF_AGGREGATOR_OUTPUT_PATH \
3833 --rpc-url $RPC_URL \
3934 --private-key $PRIVATE_KEY \
4035 --broadcast \
@@ -49,13 +44,13 @@ proof_aggregator_service_proxy=$(echo "$forge_output" | awk '/0: address/ {print
4944proof_aggregator_service_implementation=$( echo " $forge_output " | awk ' /1: address/ {print $3}' )
5045
5146# Use the extracted value to replace the batcher payment service values in alignedlayer_deployment_output.json and save it to a temporary file
52- jq --arg proof_aggregator_service_implementation " $proof_aggregator_service_implementation " ' .addresses.alignedProofAggregationServiceImplementation = $proof_aggregator_service_implementation' $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH > " $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH .temp"
47+ jq --arg proof_aggregator_service_implementation " $proof_aggregator_service_implementation " ' .addresses.alignedProofAggregationServiceImplementation = $proof_aggregator_service_implementation' $PROOF_AGGREGATOR_OUTPUT_PATH > " $PROOF_AGGREGATOR_OUTPUT_PATH .temp"
5348
5449# Replace the original file with the temporary file
55- mv " $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH .temp" $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH
50+ mv " $PROOF_AGGREGATOR_OUTPUT_PATH .temp" $PROOF_AGGREGATOR_OUTPUT_PATH
5651
5752# Delete the temporary file
58- rm -f " $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH .temp"
53+ rm -f " $PROOF_AGGREGATOR_OUTPUT_PATH .temp"
5954
6055echo " The new Proof Aggregator Service Implementation is $proof_aggregator_service_implementation "
6156
0 commit comments