|
1 | 1 | el_cl_client_launcher = import_module("./el_cl_launcher.star") |
2 | 2 | participant_module = import_module("./participant.star") |
3 | 3 | input_parser = import_module("./package_io/input_parser.star") |
4 | | -_op_batcher_launcher = import_module("./batcher/op-batcher/launcher.star") |
5 | | -_op_conductor_launcher = import_module("./conductor/op-conductor/launcher.star") |
6 | | -_op_proposer_launcher = import_module("./proposer/op-proposer/launcher.star") |
7 | 4 | _proxyd_launcher = import_module("./proxyd/launcher.star") |
8 | 5 | util = import_module("./util.star") |
9 | 6 | _net = import_module("/src/util/net.star") |
@@ -82,101 +79,9 @@ def launch_participant_network( |
82 | 79 | observability_helper=observability_helper, |
83 | 80 | ) |
84 | 81 |
|
85 | | - conductor_context = ( |
86 | | - _op_conductor_launcher.launch( |
87 | | - plan=plan, |
88 | | - params=conductor_params, |
89 | | - network_params=network_params, |
90 | | - deployment_output=deployment_output, |
91 | | - # FIXME We need to plumb the legacy args into the new format so that we make our lives easier when we're switching |
92 | | - el_params=struct( |
93 | | - service_name=all_el_contexts[0].ip_addr, |
94 | | - ports={ |
95 | | - _net.RPC_PORT_NAME: _net.port( |
96 | | - number=all_el_contexts[0].rpc_port_num |
97 | | - ) |
98 | | - }, |
99 | | - ), |
100 | | - cl_params=struct( |
101 | | - service_name=all_cl_contexts[0].ip_addr, |
102 | | - ports={ |
103 | | - _net.RPC_PORT_NAME: _net.port(number=all_cl_contexts[0].http_port) |
104 | | - }, |
105 | | - ), |
106 | | - observability_helper=observability_helper, |
107 | | - ).context |
108 | | - if conductor_params |
109 | | - else None |
110 | | - ) |
111 | | - |
112 | | - batcher_key = util.read_network_config_value( |
113 | | - plan, |
114 | | - deployment_output, |
115 | | - "batcher-{0}".format(network_params.network_id), |
116 | | - ".privateKey", |
117 | | - ) |
118 | | - _op_batcher_launcher.launch( |
119 | | - plan=plan, |
120 | | - params=batcher_params, |
121 | | - # FIXME We need to plumb the legacy args into the new format so that we make our lives easier when we're switching |
122 | | - sequencers_params=[ |
123 | | - struct( |
124 | | - el=struct( |
125 | | - service_name=all_el_contexts[0].ip_addr, |
126 | | - ports={ |
127 | | - _net.RPC_PORT_NAME: _net.port( |
128 | | - number=all_el_contexts[0].rpc_port_num |
129 | | - ) |
130 | | - }, |
131 | | - ), |
132 | | - cl=struct( |
133 | | - service_name=all_cl_contexts[0].ip_addr, |
134 | | - ports={ |
135 | | - _net.RPC_PORT_NAME: _net.port( |
136 | | - number=all_cl_contexts[0].http_port |
137 | | - ) |
138 | | - }, |
139 | | - ), |
140 | | - # Conductor params are not being parsed yet |
141 | | - conductor_params=None, |
142 | | - ) |
143 | | - ], |
144 | | - l1_config_env_vars=l1_config_env_vars, |
145 | | - gs_batcher_private_key=batcher_key, |
146 | | - network_params=network_params, |
147 | | - observability_helper=observability_helper, |
148 | | - da_server_context=da_server_context, |
149 | | - ) |
150 | | - |
151 | | - # We'll grab the game factory address from the deployments |
152 | | - game_factory_address = util.read_network_config_value( |
153 | | - plan, |
154 | | - deployment_output, |
155 | | - "state", |
156 | | - '.opChainDeployments[] | select(.id=="{0}") | .DisputeGameFactoryProxy'.format( |
157 | | - util.to_hex_chain_id(network_params.network_id) |
158 | | - ), |
159 | | - ) |
160 | | - |
161 | | - proposer_key = util.read_network_config_value( |
162 | | - plan, |
163 | | - deployment_output, |
164 | | - "proposer-{0}".format(network_params.network_id), |
165 | | - ".privateKey", |
166 | | - ) |
167 | | - _op_proposer_launcher.launch( |
168 | | - plan=plan, |
169 | | - params=proposer_params, |
170 | | - cl_context=all_cl_contexts[0], |
171 | | - l1_config_env_vars=l1_config_env_vars, |
172 | | - gs_proposer_private_key=proposer_key, |
173 | | - game_factory_address=game_factory_address, |
174 | | - network_params=network_params, |
175 | | - observability_helper=observability_helper, |
176 | | - ) |
177 | | - |
178 | 82 | return struct( |
179 | 83 | name=network_params.name, |
180 | 84 | network_id=network_params.network_id, |
181 | 85 | participants=all_participants, |
| 86 | + da_server_context__hack=da_server_context, |
182 | 87 | ) |
0 commit comments