-
Notifications
You must be signed in to change notification settings - Fork 396
Expand file tree
/
Copy pathProofAggregatorServiceUpgrader.s.sol
More file actions
29 lines (20 loc) · 1.21 KB
/
ProofAggregatorServiceUpgrader.s.sol
File metadata and controls
29 lines (20 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.12;
import {AlignedProofAggregationService} from "../../src/core/AlignedProofAggregationService.sol";
import "forge-std/Script.sol";
import "forge-std/StdJson.sol";
contract AlignedProofAggregationServiceUpgrader is Script {
function run(string memory alignedLayerDeploymentFilePath, string memory proofAggregatorConfigFilePath) external returns (address, address) {
string memory aligned_deployment_file = vm.readFile(alignedLayerDeploymentFilePath);
string memory config_data = vm.readFile(proofAggregatorConfigFilePath);
vm.startBroadcast();
AlignedProofAggregationService proofAggregationServiceProxy = AlignedProofAggregationService(
payable(stdJson.readAddress(aligned_deployment_file, ".addresses.alignedProofAggregationService"))
);
AlignedProofAggregationService newProofAggregatorServiceImplementation = new AlignedProofAggregationService();
// Not link the new implementation to the proxy
// Because this must be executed in the multisig
vm.stopBroadcast();
return (address(proofAggregationServiceProxy), address(newProofAggregatorServiceImplementation));
}
}