This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
main.star
46 lines (40 loc) · 1.59 KB
/
main.star
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
participant_network = import_module(
"github.com/kurtosis-tech/eth-network-package/src/participant_network.star"
)
input_parser = import_module(
"github.com/kurtosis-tech/eth-network-package/package_io/input_parser.star"
)
static_files = import_module(
"github.com/kurtosis-tech/eth-network-package/static_files/static_files.star"
)
genesis_constants = import_module(
"github.com/kurtosis-tech/eth-network-package/src/prelaunch_data_generator/genesis_constants/genesis_constants.star"
)
def run(plan, args={}):
args_with_right_defaults = input_parser.get_args_with_default_values(args)
num_participants = len(args_with_right_defaults.participants)
network_params = args_with_right_defaults.network_params
parallel_keystore_generation = args_with_right_defaults.parallel_keystore_generation
plan.print(
"Launching participant network with {0} participants and the following network params {1}".format(
num_participants, network_params
)
)
(
all_participants,
cl_genesis_timestamp,
genesis_validators_root,
) = participant_network.launch_participant_network(
plan,
args_with_right_defaults.participants,
network_params,
args_with_right_defaults.global_client_log_level,
parallel_keystore_generation,
)
plan.print(
"NODE JSON RPC URI: '{0}:{1}'".format(
all_participants[0].el_client_context.ip_addr,
all_participants[0].el_client_context.rpc_port_num,
)
)
return all_participants, cl_genesis_timestamp, genesis_validators_root