Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Jun 4, 2024
1 parent 30276ab commit 251962c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 19 deletions.
7 changes: 5 additions & 2 deletions main.star
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
input_parser = import_module("./src/package_io/input_parser.star")
ethereum_package = import_module("github.com/kurtosis-tech/ethereum-package/main.star")
contract_deployer = import_module("./src/contracts/contract_deployer.star")
static_files = import_module("github.com/kurtosis-tech/ethereum-package/src/static_files/static_files.star")
static_files = import_module(
"github.com/kurtosis-tech/ethereum-package/src/static_files/static_files.star"
)
participant_network = import_module("./src/participant_network.star")


def run(plan, args={}):
"""Deploy a Optimism L2 with a local L1.
Expand All @@ -30,7 +33,7 @@ def run(plan, args={}):
first_l1_el_node = all_l1_participants[0].el_context.rpc_http_url
first_l1_cl_node = all_l1_participants[0].cl_context.beacon_http_url
el_cl_data = contract_deployer.launch_contract_deployer(
plan, first_l1_el_node, first_l1_cl_node, priv_key
plan, first_l1_el_node, first_l1_cl_node, priv_key
)

# Parse the values for the args
Expand Down
11 changes: 6 additions & 5 deletions src/el/el_launcher.star
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
constants = import_module("github.com/kurtosis-tech/ethereum-package/src/package_io/constants.star")
shared_utils = import_module("github.com/kurtosis-tech/ethereum-package/src/shared_utils/shared_utils.star")
constants = import_module(
"github.com/kurtosis-tech/ethereum-package/src/package_io/constants.star"
)
shared_utils = import_module(
"github.com/kurtosis-tech/ethereum-package/src/shared_utils/shared_utils.star"
)

op_geth = import_module("./op-geth/op_geth_launcher.star")





def launch(
plan,
jwt_file,
Expand Down
2 changes: 0 additions & 2 deletions src/el/op-geth/op_geth_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ def get_config(
"--rollup.disabletxpoolgossip=true",
]


if len(existing_el_clients) > 0:
cmd.append(
"--bootnodes="
Expand All @@ -222,7 +221,6 @@ def get_config(
)
)


# if len(extra_params) > 0:
# # this is a repeated<proto type>, we convert it into Starlark
# cmd.extend([param for param in extra_params])
Expand Down
8 changes: 4 additions & 4 deletions src/participant.star
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
def new_participant(
el_type,
#cl_type,
# cl_type,
el_context,
#cl_context,
# cl_context,
):
return struct(
el_type=el_type,
#cl_type=cl_type,
# cl_type=cl_type,
el_context=el_context,
#cl_context=cl_context,
# cl_context=cl_context,
)
12 changes: 6 additions & 6 deletions src/participant_network.star
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
el_client_launcher = import_module("./el/el_launcher.star")
#cl_client_launcher = import_module("./cl/cl_launcher.star")
# cl_client_launcher = import_module("./cl/cl_launcher.star")
participant_module = import_module("./participant.star")


def launch_participant_network(
plan,
participants,
jwt_file,
network_params,
el_cl_data,
):

num_participants = len(participants)
# Launch all execution layer clients
all_el_contexts = el_client_launcher.launch(
Expand All @@ -28,16 +28,16 @@ def launch_participant_network(
all_participants = []
for index, participant in enumerate(participants):
el_type = participant.el_type
#cl_type = participant.cl_type
# cl_type = participant.cl_type

el_context = all_el_contexts[index]
#cl_context = all_cl_contexts[index]
# cl_context = all_cl_contexts[index]

participant_entry = participant_module.new_participant(
el_type,
# cl_type,
# cl_type,
el_context,
# cl_context,
# cl_context,
)

all_participants.append(participant_entry)
Expand Down

0 comments on commit 251962c

Please sign in to comment.