Skip to content

Commit

Permalink
rename the rest of the import modules
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Oct 9, 2024
1 parent 4a7cab1 commit 2b26cb5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 22 deletions.
3 changes: 0 additions & 3 deletions main.star
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
ethereum_package = import_module("github.com/ethpandaops/ethereum-package/main.star")
contract_deployer = import_module("./src/contracts/contract_deployer.star")
static_files = import_module(
"github.com/ethpandaops/ethereum-package/src/static_files/static_files.star"
)
l2_launcher = import_module("./src/l2.star")
wait_for_sync = import_module("./src/wait/wait_for_sync.star")
input_parser = import_module("./src/package_io/input_parser.star")
Expand Down
12 changes: 6 additions & 6 deletions src/batcher/op-batcher/op_batcher_launcher.star
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
shared_utils = import_module(
ethereum_package_shared_utils = import_module(
"github.com/ethpandaops/ethereum-package/src/shared_utils/shared_utils.star"
)

constants = import_module(
ethereum_package_constants = import_module(
"github.com/ethpandaops/ethereum-package/src/package_io/constants.star"
)

Expand All @@ -20,10 +20,10 @@ BATCHER_HTTP_PORT_NUM = 8548

def get_used_ports():
used_ports = {
BATCHER_HTTP_PORT_ID: shared_utils.new_port_spec(
BATCHER_HTTP_PORT_ID: ethereum_package_shared_utils.new_port_spec(
BATCHER_HTTP_PORT_NUM,
shared_utils.TCP_PROTOCOL,
shared_utils.HTTP_APPLICATION_PROTOCOL,
ethereum_package_shared_utils.TCP_PROTOCOL,
ethereum_package_shared_utils.HTTP_APPLICATION_PROTOCOL,
),
}
return used_ports
Expand Down Expand Up @@ -95,5 +95,5 @@ def get_batcher_config(
image=image,
ports=ports,
cmd=cmd,
private_ip_address_placeholder=constants.PRIVATE_IP_ADDRESS_PLACEHOLDER,
private_ip_address_placeholder=ethereum_package_constants.PRIVATE_IP_ADDRESS_PLACEHOLDER,
)
9 changes: 4 additions & 5 deletions src/el_cl_launcher.star
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
constants = import_module(
"github.com/ethpandaops/ethereum-package/src/package_io/constants.star"
)
shared_utils = import_module(
ethereum_package_shared_utils = import_module(
"github.com/ethpandaops/ethereum-package/src/shared_utils/shared_utils.star"
)

Expand Down Expand Up @@ -141,7 +138,9 @@ def launch(
)

# Zero-pad the index using the calculated zfill value
index_str = shared_utils.zfill_custom(index + 1, len(str(len(participants))))
index_str = ethereum_package_shared_utils.zfill_custom(
index + 1, len(str(len(participants)))
)

el_service_name = "op-el-{0}-{1}-{2}-{3}".format(
index_str, el_type, cl_type, l2_services_suffix
Expand Down
4 changes: 2 additions & 2 deletions src/l2.star
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ participant_network = import_module("./participant_network.star")
blockscout = import_module("./blockscout/blockscout_launcher.star")
contract_deployer = import_module("./contracts/contract_deployer.star")
input_parser = import_module("./package_io/input_parser.star")
static_files = import_module(
ethereum_package_static_files = import_module(
"github.com/ethpandaops/ethereum-package/src/static_files/static_files.star"
)
util = import_module("./util.star")
Expand All @@ -29,7 +29,7 @@ def launch_l2(

plan.print("Deploying L2 with name {0}".format(network_params.name))
jwt_file = plan.upload_files(
src=static_files.JWT_PATH_FILEPATH,
src=ethereum_package_static_files.JWT_PATH_FILEPATH,
name="op_jwt_file{0}".format(l2_services_suffix),
)

Expand Down
12 changes: 6 additions & 6 deletions src/proposer/op-proposer/op_proposer_launcher.star
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
shared_utils = import_module(
ethereum_package_shared_utils = import_module(
"github.com/ethpandaops/ethereum-package/src/shared_utils/shared_utils.star"
)

constants = import_module(
ethereum_package_constants = import_module(
"github.com/ethpandaops/ethereum-package/src/package_io/constants.star"
)

Expand All @@ -20,10 +20,10 @@ PROPOSER_HTTP_PORT_NUM = 8560

def get_used_ports():
used_ports = {
PROPOSER_HTTP_PORT_ID: shared_utils.new_port_spec(
PROPOSER_HTTP_PORT_ID: ethereum_package_shared_utils.new_port_spec(
PROPOSER_HTTP_PORT_NUM,
shared_utils.TCP_PROTOCOL,
shared_utils.HTTP_APPLICATION_PROTOCOL,
ethereum_package_shared_utils.TCP_PROTOCOL,
ethereum_package_shared_utils.HTTP_APPLICATION_PROTOCOL,
),
}
return used_ports
Expand Down Expand Up @@ -87,5 +87,5 @@ def get_proposer_config(
image=image,
ports=ports,
cmd=cmd,
private_ip_address_placeholder=constants.PRIVATE_IP_ADDRESS_PLACEHOLDER,
private_ip_address_placeholder=ethereum_package_constants.PRIVATE_IP_ADDRESS_PLACEHOLDER,
)

0 comments on commit 2b26cb5

Please sign in to comment.