File tree Expand file tree Collapse file tree
contracts/scripts/proof_aggregator_service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11RPC_URL = <RPC_URL>
22PRIVATE_KEY = <YOUR_PRIVATE_KEY>
3+ EXISTING_DEPLOYMENT_INFO_PATH = ./script/output/<NETWORK>/proof_aggregation_service_deployment_output.json
34PROOF_AGGREGATION_SERVICE_CONFIG_PATH = ./script/deploy/config/<NETWORK>/.holesky.config.json
45PROOF_AGGREGATION_SERVICE_OUTPUT_PATH = ./script/output/<NETWORK>/proof-aggregator-service.<NETWORK>.config.json
56ETHERSCAN_API_KEY = <ETHERSCAN_API_KEY>
Original file line number Diff line number Diff line change 1010# Save the output to a variable to later extract the address of the new deployed contract
1111forge_output=$( forge script script/upgrade/ProofAggregatorServiceUpgrader.s.sol \
1212 $EXISTING_DEPLOYMENT_INFO_PATH \
13- $OUTPUT_PATH \
13+ $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH \
1414 --rpc-url $RPC_URL \
1515 --private-key $PRIVATE_KEY \
1616 --broadcast \
@@ -25,14 +25,12 @@ proof_aggregator_service_proxy=$(echo "$forge_output" | awk '/0: address/ {print
2525proof_aggregator_service_implementation=$( echo " $forge_output " | awk ' /1: address/ {print $3}' )
2626
2727# Use the extracted value to replace the batcher payment service values in alignedlayer_deployment_output.json and save it to a temporary file
28- jq --arg proof_aggregator_service_implementation " $proof_aggregator_service_implementation " ' .addresses.alignedProofAggregationServiceImplementation = $proof_aggregator_service_implementation' $OUTPUT_PATH > " $OUTPUT_PATH .temp"
28+ 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"
2929
3030# Replace the original file with the temporary file
31- mv " $OUTPUT_PATH .temp" $OUTPUT_PATH
31+ mv " $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH .temp" $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH
3232
3333# Delete the temporary file
34- rm -f " $OUTPUT_PATH .temp"
34+ rm -f " $PROOF_AGGREGATION_SERVICE_OUTPUT_PATH .temp"
3535
36- data=$( cast calldata " upgradeTo(address)" $batcher_payment_service_implementation )
37-
38- echo " The new Proof Aggregator Service Implementation is $batcher_payment_service_implementation "
36+ echo " The new Proof Aggregator Service Implementation is $proof_aggregator_service_implementation "
You can’t perform that action at this time.
0 commit comments