@@ -21,7 +21,7 @@ contract PauserRegistryDeployer is ExistingDeploymentParser {
2121 string memory existingDeploymentInfoPath ,
2222 string memory deployConfigPath ,
2323 string memory outputPath
24- ) external {
24+ ) external returns ( address , address ) {
2525 // get info on all the already-deployed contracts
2626 _parseDeployedContracts (existingDeploymentInfoPath);
2727
@@ -68,51 +68,6 @@ contract PauserRegistryDeployer is ExistingDeploymentParser {
6868 vm.stopPrank ();
6969
7070 //write output
71- _writeOutput (config_data, outputPath);
72- }
73-
74- function _writeOutput (string memory config_data , string memory outputPath ) internal {
75- string memory parent_object = "parent object " ;
76-
77- string memory deployed_addresses = "addresses " ;
78-
79- string memory deployed_addresses_output = vm.serializeAddress (
80- deployed_addresses,
81- "pauserRegistry " ,
82- address (pauserRegistry)
83- );
84-
85- string memory chain_info = "chainInfo " ;
86- vm.serializeUint (chain_info, "deploymentBlock " , block .number );
87- string memory chain_info_output = vm.serializeUint (
88- chain_info,
89- "chainId " ,
90- block .chainid
91- );
92-
93- address pauserAddress = stdJson.readAddress (
94- config_data,
95- ".permissions.pauser "
96- );
97- string memory permissions = "permissions " ;
98-
99- string memory permissions_output = vm.serializeAddress (
100- permissions,
101- "alignedLayerPauser " ,
102- pauserAddress
103- );
104-
105- vm.serializeString (parent_object, chain_info, chain_info_output);
106- vm.serializeString (
107- parent_object,
108- deployed_addresses,
109- deployed_addresses_output
110- );
111- string memory finalJson = vm.serializeString (
112- parent_object,
113- permissions,
114- permissions_output
115- );
116- vm.writeJson (finalJson, outputPath);
71+ return (address (pauserRegistry), address (pauser));
11772 }
11873}
0 commit comments