Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
3133ada0
Commit
3133ada0
authored
Nov 24, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module -> package
parent
ea410a7d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
81 additions
and
81 deletions
+81
-81
main.star
main.star
+5
-5
parse_input.star
src/package_io/parse_input.star
+0
-0
lighthouse_launcher.star
...articipant_network/cl/lighthouse/lighthouse_launcher.star
+7
-7
lodestar_launcher.star
src/participant_network/cl/lodestar/lodestar_launcher.star
+7
-7
nimbus_launcher.star
src/participant_network/cl/nimbus/nimbus_launcher.star
+7
-7
prysm_launcher.star
src/participant_network/cl/prysm/prysm_launcher.star
+7
-7
teku_launcher.star
src/participant_network/cl/teku/teku_launcher.star
+7
-7
besu_launcher.star
src/participant_network/el/besu/besu_launcher.star
+7
-7
erigon_launcher.star
src/participant_network/el/erigon/erigon_launcher.star
+7
-7
geth_launcher.star
src/participant_network/el/geth/geth_launcher.star
+7
-7
nethermind_launcher.star
...articipant_network/el/nethermind/nethermind_launcher.star
+7
-7
participant_network.star
src/participant_network/participant_network.star
+10
-10
types.proto
types.proto
+3
-3
No files found.
main.star
View file @
3133ada0
participant_network = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/participant_network.star")
participant_network = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/participant_network.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
static_files = import_module("github.com/kurtosis-tech/eth2-module/src/static_files/static_files.star")
static_files = import_module("github.com/kurtosis-tech/eth2-module/src/static_files/static_files.star")
genesis_constants = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/prelaunch_data_generator/genesis_constants/genesis_constants.star")
genesis_constants = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/prelaunch_data_generator/genesis_constants/genesis_constants.star")
...
@@ -10,7 +10,7 @@ prometheus = import_module("github.com/kurtosis-tech/eth2-module/src/prometheus/
...
@@ -10,7 +10,7 @@ prometheus = import_module("github.com/kurtosis-tech/eth2-module/src/prometheus/
grafana =import_module("github.com/kurtosis-tech/eth2-module/src/grafana/grafana_launcher.star")
grafana =import_module("github.com/kurtosis-tech/eth2-module/src/grafana/grafana_launcher.star")
testnet_verifier = import_module("github.com/kurtosis-tech/eth2-module/src/testnet_verifier/testnet_verifier.star")
testnet_verifier = import_module("github.com/kurtosis-tech/eth2-module/src/testnet_verifier/testnet_verifier.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
GRAFANA_USER = "admin"
GRAFANA_USER = "admin"
GRAFANA_PASSWORD = "admin"
GRAFANA_PASSWORD = "admin"
...
@@ -20,7 +20,7 @@ FIRST_NODE_FINALIZATION_FACT = "cl-boot-finalization-fact"
...
@@ -20,7 +20,7 @@ FIRST_NODE_FINALIZATION_FACT = "cl-boot-finalization-fact"
HTTP_PORT_ID_FOR_FACT = "http"
HTTP_PORT_ID_FOR_FACT = "http"
def main(input_args):
def main(input_args):
input_args_with_right_defaults =
modul
e_io.ModuleInput(parse_input.parse_input(input_args))
input_args_with_right_defaults =
packag
e_io.ModuleInput(parse_input.parse_input(input_args))
num_participants = len(input_args_with_right_defaults.participants)
num_participants = len(input_args_with_right_defaults.participants)
network_params = input_args_with_right_defaults.network_params
network_params = input_args_with_right_defaults.network_params
...
@@ -84,12 +84,12 @@ def main(input_args):
...
@@ -84,12 +84,12 @@ def main(input_args):
print("First finalized epoch occurred successfully")
print("First finalized epoch occurred successfully")
grafana_info =
modul
e_io.GrafanaInfo(
grafana_info =
packag
e_io.GrafanaInfo(
dashboard_path = GRAFANA_DASHBOARD_PATH_URL,
dashboard_path = GRAFANA_DASHBOARD_PATH_URL,
user = GRAFANA_USER,
user = GRAFANA_USER,
password = GRAFANA_PASSWORD
password = GRAFANA_PASSWORD
)
)
output =
modul
e_io.ModuleOutput(grafana_info = grafana_info)
output =
packag
e_io.ModuleOutput(grafana_info = grafana_info)
print(output)
print(output)
return output
return output
...
...
src/
modul
e_io/parse_input.star
→
src/
packag
e_io/parse_input.star
View file @
3133ada0
File moved
src/participant_network/cl/lighthouse/lighthouse_launcher.star
View file @
3133ada0
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
mev_boost_context_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star")
mev_boost_context_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
LIGHTHOUSE_BINARY_COMMAND = "lighthouse"
LIGHTHOUSE_BINARY_COMMAND = "lighthouse"
...
@@ -57,11 +57,11 @@ VALIDATOR_USED_PORTS = {
...
@@ -57,11 +57,11 @@ VALIDATOR_USED_PORTS = {
}
}
LIGHTHOUSE_LOG_LEVELS = {
LIGHTHOUSE_LOG_LEVELS = {
modul
e_io.GlobalClientLogLevel.error: "error",
packag
e_io.GlobalClientLogLevel.error: "error",
modul
e_io.GlobalClientLogLevel.warn: "warn",
packag
e_io.GlobalClientLogLevel.warn: "warn",
modul
e_io.GlobalClientLogLevel.info: "info",
packag
e_io.GlobalClientLogLevel.info: "info",
modul
e_io.GlobalClientLogLevel.debug: "debug",
packag
e_io.GlobalClientLogLevel.debug: "debug",
modul
e_io.GlobalClientLogLevel.trace: "trace",
packag
e_io.GlobalClientLogLevel.trace: "trace",
}
}
BEACON_ENR_FACT_NAME = "beacon-enr-fact"
BEACON_ENR_FACT_NAME = "beacon-enr-fact"
...
...
src/participant_network/cl/lodestar/lodestar_launcher.star
View file @
3133ada0
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
mev_boost_context_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star")
mev_boost_context_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
CONSENSUS_DATA_DIRPATH_ON_SERVICE_CONTAINER = "/consensus-data"
CONSENSUS_DATA_DIRPATH_ON_SERVICE_CONTAINER = "/consensus-data"
GENESIS_DATA_MOUNT_DIRPATH_ON_SERVICE_CONTAINER = "/genesis"
GENESIS_DATA_MOUNT_DIRPATH_ON_SERVICE_CONTAINER = "/genesis"
...
@@ -44,11 +44,11 @@ USED_PORTS = {
...
@@ -44,11 +44,11 @@ USED_PORTS = {
LODESTAR_LOG_LEVELS = {
LODESTAR_LOG_LEVELS = {
modul
e_io.GlobalClientLogLevel.error: "error",
packag
e_io.GlobalClientLogLevel.error: "error",
modul
e_io.GlobalClientLogLevel.warn: "warn",
packag
e_io.GlobalClientLogLevel.warn: "warn",
modul
e_io.GlobalClientLogLevel.info: "info",
packag
e_io.GlobalClientLogLevel.info: "info",
modul
e_io.GlobalClientLogLevel.debug: "debug",
packag
e_io.GlobalClientLogLevel.debug: "debug",
modul
e_io.GlobalClientLogLevel.trace: "trace",
packag
e_io.GlobalClientLogLevel.trace: "trace",
}
}
...
...
src/participant_network/cl/nimbus/nimbus_launcher.star
View file @
3133ada0
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
GENESIS_DATA_MOUNTPOINT_ON_CLIENT = "/genesis-data"
GENESIS_DATA_MOUNTPOINT_ON_CLIENT = "/genesis-data"
...
@@ -49,11 +49,11 @@ USED_PORTS = {
...
@@ -49,11 +49,11 @@ USED_PORTS = {
}
}
NIMBUS_LOG_LEVELS = {
NIMBUS_LOG_LEVELS = {
modul
e_io.GlobalClientLogLevel.error: "ERROR",
packag
e_io.GlobalClientLogLevel.error: "ERROR",
modul
e_io.GlobalClientLogLevel.warn: "WARN",
packag
e_io.GlobalClientLogLevel.warn: "WARN",
modul
e_io.GlobalClientLogLevel.info: "INFO",
packag
e_io.GlobalClientLogLevel.info: "INFO",
modul
e_io.GlobalClientLogLevel.debug: "DEBUG",
packag
e_io.GlobalClientLogLevel.debug: "DEBUG",
modul
e_io.GlobalClientLogLevel.trace: "TRACE",
packag
e_io.GlobalClientLogLevel.trace: "TRACE",
}
}
ENR_FACT_NAME = "enr-fact"
ENR_FACT_NAME = "enr-fact"
...
...
src/participant_network/cl/prysm/prysm_launcher.star
View file @
3133ada0
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
mev_boost_context_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star")
mev_boost_context_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
IMAGE_SEPARATOR_DELIMITER = ","
IMAGE_SEPARATOR_DELIMITER = ","
EXPECTED_NUM_IMAGES = 2
EXPECTED_NUM_IMAGES = 2
...
@@ -52,11 +52,11 @@ VALIDATOR_NODE_USED_PORTS = {
...
@@ -52,11 +52,11 @@ VALIDATOR_NODE_USED_PORTS = {
}
}
PRYSM_LOG_LEVELS = {
PRYSM_LOG_LEVELS = {
modul
e_io.GlobalClientLogLevel.error: "error",
packag
e_io.GlobalClientLogLevel.error: "error",
modul
e_io.GlobalClientLogLevel.warn: "warn",
packag
e_io.GlobalClientLogLevel.warn: "warn",
modul
e_io.GlobalClientLogLevel.info: "info",
packag
e_io.GlobalClientLogLevel.info: "info",
modul
e_io.GlobalClientLogLevel.debug: "debug",
packag
e_io.GlobalClientLogLevel.debug: "debug",
modul
e_io.GlobalClientLogLevel.trace: "trace",
packag
e_io.GlobalClientLogLevel.trace: "trace",
}
}
BEACON_ENR_FACT_NAME = "beacon-enr-fact"
BEACON_ENR_FACT_NAME = "beacon-enr-fact"
...
...
src/participant_network/cl/teku/teku_launcher.star
View file @
3133ada0
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star")
mev_boost_context_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star")
mev_boost_context_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
TEKU_BINARY_FILEPATH_IN_IMAGE = "/opt/teku/bin/teku"
TEKU_BINARY_FILEPATH_IN_IMAGE = "/opt/teku/bin/teku"
...
@@ -58,11 +58,11 @@ ENTRYPOINT_ARGS = ["sh", "-c"]
...
@@ -58,11 +58,11 @@ ENTRYPOINT_ARGS = ["sh", "-c"]
TEKU_LOG_LEVELS = {
TEKU_LOG_LEVELS = {
modul
e_io.GlobalClientLogLevel.error: "ERROR",
packag
e_io.GlobalClientLogLevel.error: "ERROR",
modul
e_io.GlobalClientLogLevel.warn: "WARN",
packag
e_io.GlobalClientLogLevel.warn: "WARN",
modul
e_io.GlobalClientLogLevel.info: "INFO",
packag
e_io.GlobalClientLogLevel.info: "INFO",
modul
e_io.GlobalClientLogLevel.debug: "DEBUG",
packag
e_io.GlobalClientLogLevel.debug: "DEBUG",
modul
e_io.GlobalClientLogLevel.trace: "TRACE",
packag
e_io.GlobalClientLogLevel.trace: "TRACE",
}
}
...
...
src/participant_network/el/besu/besu_launcher.star
View file @
3133ada0
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
el_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star")
el_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
# The dirpath of the execution data directory on the client container
# The dirpath of the execution data directory on the client container
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER = "/opt/besu/execution-data"
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER = "/opt/besu/execution-data"
...
@@ -37,11 +37,11 @@ USED_PORTS = {
...
@@ -37,11 +37,11 @@ USED_PORTS = {
ENTRYPOINT_ARGS = ["sh", "-c"]
ENTRYPOINT_ARGS = ["sh", "-c"]
BESU_LOG_LEVELS = {
BESU_LOG_LEVELS = {
modul
e_io.GlobalClientLogLevel.error: "ERROR",
packag
e_io.GlobalClientLogLevel.error: "ERROR",
modul
e_io.GlobalClientLogLevel.warn: "WARN",
packag
e_io.GlobalClientLogLevel.warn: "WARN",
modul
e_io.GlobalClientLogLevel.info: "INFO",
packag
e_io.GlobalClientLogLevel.info: "INFO",
modul
e_io.GlobalClientLogLevel.debug: "DEBUG",
packag
e_io.GlobalClientLogLevel.debug: "DEBUG",
modul
e_io.GlobalClientLogLevel.trace: "TRACE",
packag
e_io.GlobalClientLogLevel.trace: "TRACE",
}
}
ENODE_FACT_NAME = "enode-fact"
ENODE_FACT_NAME = "enode-fact"
...
...
src/participant_network/el/erigon/erigon_launcher.star
View file @
3133ada0
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
el_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star")
el_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
# The dirpath of the execution data directory on the client container
# The dirpath of the execution data directory on the client container
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER = "/home/erigon/execution-data"
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER = "/home/erigon/execution-data"
...
@@ -34,11 +34,11 @@ USED_PORTS = {
...
@@ -34,11 +34,11 @@ USED_PORTS = {
ENTRYPOINT_ARGS = ["sh", "-c"]
ENTRYPOINT_ARGS = ["sh", "-c"]
ERIGON_LOG_LEVELS = {
ERIGON_LOG_LEVELS = {
modul
e_io.GlobalClientLogLevel.error: "1",
packag
e_io.GlobalClientLogLevel.error: "1",
modul
e_io.GlobalClientLogLevel.warn: "2",
packag
e_io.GlobalClientLogLevel.warn: "2",
modul
e_io.GlobalClientLogLevel.info: "3",
packag
e_io.GlobalClientLogLevel.info: "3",
modul
e_io.GlobalClientLogLevel.debug: "4",
packag
e_io.GlobalClientLogLevel.debug: "4",
modul
e_io.GlobalClientLogLevel.trace: "5",
packag
e_io.GlobalClientLogLevel.trace: "5",
}
}
ENR_FACT_NAME = "enr-fact"
ENR_FACT_NAME = "enr-fact"
...
...
src/participant_network/el/geth/geth_launcher.star
View file @
3133ada0
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
el_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star")
el_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
RPC_PORT_NUM = 8545
RPC_PORT_NUM = 8545
...
@@ -48,11 +48,11 @@ ENR_FACT_NAME = "enr-fact"
...
@@ -48,11 +48,11 @@ ENR_FACT_NAME = "enr-fact"
ENODE_FACT_NAME = "enode-fact"
ENODE_FACT_NAME = "enode-fact"
VERBOSITY_LEVELS = {
VERBOSITY_LEVELS = {
modul
e_io.GlobalClientLogLevel.error: "1",
packag
e_io.GlobalClientLogLevel.error: "1",
modul
e_io.GlobalClientLogLevel.warn: "2",
packag
e_io.GlobalClientLogLevel.warn: "2",
modul
e_io.GlobalClientLogLevel.info: "3",
packag
e_io.GlobalClientLogLevel.info: "3",
modul
e_io.GlobalClientLogLevel.debug: "4",
packag
e_io.GlobalClientLogLevel.debug: "4",
modul
e_io.GlobalClientLogLevel.trace: "5",
packag
e_io.GlobalClientLogLevel.trace: "5",
}
}
def launch(
def launch(
...
...
src/participant_network/el/nethermind/nethermind_launcher.star
View file @
3133ada0
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
modul
e_io/parse_input.star")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/
packag
e_io/parse_input.star")
el_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star")
el_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
# The dirpath of the execution data directory on the client container
# The dirpath of the execution data directory on the client container
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER = "/execution-data"
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER = "/execution-data"
...
@@ -32,11 +32,11 @@ USED_PORTS = {
...
@@ -32,11 +32,11 @@ USED_PORTS = {
}
}
NETHERMIND_LOG_LEVELS = {
NETHERMIND_LOG_LEVELS = {
modul
e_io.GlobalClientLogLevel.error: "ERROR",
packag
e_io.GlobalClientLogLevel.error: "ERROR",
modul
e_io.GlobalClientLogLevel.warn: "WARN",
packag
e_io.GlobalClientLogLevel.warn: "WARN",
modul
e_io.GlobalClientLogLevel.info: "INFO",
packag
e_io.GlobalClientLogLevel.info: "INFO",
modul
e_io.GlobalClientLogLevel.debug: "DEBUG",
packag
e_io.GlobalClientLogLevel.debug: "DEBUG",
modul
e_io.GlobalClientLogLevel.trace: "TRACE",
packag
e_io.GlobalClientLogLevel.trace: "TRACE",
}
}
ENODE_FACT_NAME = "enode-fact"
ENODE_FACT_NAME = "enode-fact"
...
...
src/participant_network/participant_network.star
View file @
3133ada0
...
@@ -21,7 +21,7 @@ teku = import_module("github.com/kurtosis-tech/eth2-module/src/participant_netwo
...
@@ -21,7 +21,7 @@ teku = import_module("github.com/kurtosis-tech/eth2-module/src/participant_netwo
genesis_constants = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/prelaunch_data_generator/genesis_constants/genesis_constants.star")
genesis_constants = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/prelaunch_data_generator/genesis_constants/genesis_constants.star")
participant_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/participant.star")
participant_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/participant.star")
modul
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
packag
e_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
CL_CLIENT_SERVICE_ID_PREFIX = "cl-client-"
CL_CLIENT_SERVICE_ID_PREFIX = "cl-client-"
EL_CLIENT_SERVICE_ID_PREFIX = "el-client-"
EL_CLIENT_SERVICE_ID_PREFIX = "el-client-"
...
@@ -78,10 +78,10 @@ def launch_participant_network(participants, network_params, global_log_level):
...
@@ -78,10 +78,10 @@ def launch_participant_network(participants, network_params, global_log_level):
print("Uploaded GETH files succesfully, launching EL participants")
print("Uploaded GETH files succesfully, launching EL participants")
el_launchers = {
el_launchers = {
modul
e_io.ELClientType.geth : {"launcher": geth.new_geth_launcher(network_params.network_id, el_genesis_data, geth_prefunded_keys_artifact_id, genesis_constants.PRE_FUNDED_ACCOUNTS), "launch_method": geth.launch},
packag
e_io.ELClientType.geth : {"launcher": geth.new_geth_launcher(network_params.network_id, el_genesis_data, geth_prefunded_keys_artifact_id, genesis_constants.PRE_FUNDED_ACCOUNTS), "launch_method": geth.launch},
modul
e_io.ELClientType.besu : {"launcher": besu.new_besu_launcher(network_params.network_id, el_genesis_data), "launch_method": besu.launch},
packag
e_io.ELClientType.besu : {"launcher": besu.new_besu_launcher(network_params.network_id, el_genesis_data), "launch_method": besu.launch},
modul
e_io.ELClientType.erigon : {"launcher": erigon.new_erigon_launcher(network_params.network_id, el_genesis_data), "launch_method": erigon.launch},
packag
e_io.ELClientType.erigon : {"launcher": erigon.new_erigon_launcher(network_params.network_id, el_genesis_data), "launch_method": erigon.launch},
modul
e_io.ELClientType.nethermind : {"launcher": nethermind.new_nethermind_launcher(el_genesis_data), "launch_method": nethermind.launch},
packag
e_io.ELClientType.nethermind : {"launcher": nethermind.new_nethermind_launcher(el_genesis_data), "launch_method": nethermind.launch},
}
}
all_el_client_contexts = []
all_el_client_contexts = []
...
@@ -136,11 +136,11 @@ def launch_participant_network(participants, network_params, global_log_level):
...
@@ -136,11 +136,11 @@ def launch_participant_network(participants, network_params, global_log_level):
print("Launching CL network")
print("Launching CL network")
cl_launchers = {
cl_launchers = {
modul
e_io.CLClientType.lighthouse : {"launcher": lighthouse.new_lighthouse_launcher(cl_genesis_data), "launch_method": lighthouse.launch},
packag
e_io.CLClientType.lighthouse : {"launcher": lighthouse.new_lighthouse_launcher(cl_genesis_data), "launch_method": lighthouse.launch},
modul
e_io.CLClientType.lodestar: {"launcher": lodestar.new_lodestar_launcher(cl_genesis_data), "launch_method": lodestar.launch},
packag
e_io.CLClientType.lodestar: {"launcher": lodestar.new_lodestar_launcher(cl_genesis_data), "launch_method": lodestar.launch},
modul
e_io.CLClientType.nimbus: {"launcher": nimbus.new_nimbus_launcher(cl_genesis_data), "launch_method": nimbus.launch},
packag
e_io.CLClientType.nimbus: {"launcher": nimbus.new_nimbus_launcher(cl_genesis_data), "launch_method": nimbus.launch},
modul
e_io.CLClientType.prysm: {"launcher": prysm.new_prysm_launcher(cl_genesis_data, cl_validator_data.prysm_password_relative_filepath, cl_validator_data.prysm_password_artifact_uuid), "launch_method": prysm.launch},
packag
e_io.CLClientType.prysm: {"launcher": prysm.new_prysm_launcher(cl_genesis_data, cl_validator_data.prysm_password_relative_filepath, cl_validator_data.prysm_password_artifact_uuid), "launch_method": prysm.launch},
modul
e_io.CLClientType.teku: {"launcher": teku.new_teku_launcher(cl_genesis_data), "launch_method": teku.launch},
packag
e_io.CLClientType.teku: {"launcher": teku.new_teku_launcher(cl_genesis_data), "launch_method": teku.launch},
}
}
all_cl_client_contexts = []
all_cl_client_contexts = []
...
...
types.proto
View file @
3133ada0
...
@@ -16,15 +16,15 @@ message ModuleInput {
...
@@ -16,15 +16,15 @@ message ModuleInput {
// - only Ethereum network (EL and CL nodes) will be launched. Nothing else (no transaction spammer)
// - only Ethereum network (EL and CL nodes) will be launched. Nothing else (no transaction spammer)
// - params for the CL nodes will be ignored (e.g. CL node image, CL node extra params)
// - params for the CL nodes will be ignored (e.g. CL node image, CL node extra params)
// This is a hack - it's not very elegant - but this is a commonly-requested feature
// This is a hack - it's not very elegant - but this is a commonly-requested feature
// The longterm solution is making the
modul
e trivial to decompose so we don't need flags like this; we're working
// The longterm solution is making the
packag
e trivial to decompose so we don't need flags like this; we're working
// on this at the Kurtosis product level
// on this at the Kurtosis product level
optional
bool
launch_additional_services
=
3
;
optional
bool
launch_additional_services
=
3
;
// If set, the
modul
e will block until a finalized epoch has occurred.
// If set, the
packag
e will block until a finalized epoch has occurred.
// If `waitForVerifications` is set to true, this extra wait will be skipped.
// If `waitForVerifications` is set to true, this extra wait will be skipped.
optional
bool
wait_for_finalization
=
4
;
optional
bool
wait_for_finalization
=
4
;
// If set to true, the
modul
e will block until all verifications have passed
// If set to true, the
packag
e will block until all verifications have passed
optional
bool
wait_for_verifications
=
5
;
optional
bool
wait_for_verifications
=
5
;
// If set, after the merge, this will be the maximum number of epochs wait for the verifications to succeed.
// If set, after the merge, this will be the maximum number of epochs wait for the verifications to succeed.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment