Skip to content

Commit

Permalink
feat: add ethereum pkg static ports
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Oct 22, 2024
1 parent 6f7694d commit 27e70a6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/tests/static-ports.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
args:
static_ports:
l1_el_start_port: 59010
l1_cl_start_port: 59020
l1_vc_start_port: 59030
l1_remote_signer_start_port: 59040
l1_additional_services_start_port: 59050

agglayer_start_port: 50000
cdk_node_start_port: 51000
zkevm_bridge_service_start_port: 52000
Expand All @@ -8,9 +14,10 @@ args:
database_start_port: 55000
zkevm_pool_manager_start_port: 56000
zkevm_dac_start_port: 57000

# additional services
arpeggio_start_port: 58010
blutgang_start_port: 58020
erpc_start_port: 58030
panoptichain_start_port: 58040

34 changes: 34 additions & 0 deletions ethereum.star
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ ethereum_package = import_module(


def run(plan, args):
static_port_config = args.get("static_ports")
l1_el_start_port = static_port_config.get("l1_el_start_port", None)
l1_cl_start_port = static_port_config.get("l1_cl_start_port", None)
l1_vc_start_port = static_port_config.get("l1_vc_start_port", None)
l1_remote_signer_start_port = static_port_config.get(
"l1_remote_signer_start_port", None
)
l1_additional_services_start_port = static_port_config.get(
"l1_additional_services_start_port", None
)

ethereum_package.run(
plan,
{
Expand All @@ -23,5 +34,28 @@ def run(plan, args):
"seconds_per_slot": args["l1_seconds_per_slot"],
},
"additional_services": args["l1_additional_services"],
# static ports
"port_publisher": {
"el": {
"enabled": True,
"public_port_start": l1_el_start_port,
},
"cl": {
"enabled": True,
"public_port_start": l1_cl_start_port,
},
"vc": {
"enabled": True,
"public_port_start": l1_vc_start_port,
},
"remote_signer": {
"enabled": True,
"public_port_start": l1_remote_signer_start_port,
},
"additional_services": {
"enabled": True,
"public_port_start": l1_additional_services_start_port,
},
},
},
)

0 comments on commit 27e70a6

Please sign in to comment.