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
e18f48a9
Commit
e18f48a9
authored
Nov 24, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gyani/json-free-render' into gyani/package-module
parents
facffa5e
1abdd588
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
13 deletions
+9
-13
changelog.md
docs/changelog.md
+1
-0
forkmon_launcher.star
src/forkmon/forkmon_launcher.star
+1
-2
grafana_launcher.star
src/grafana/grafana_launcher.star
+2
-4
cl_genesis_data_generator.star
..._data_generator/cl_genesis/cl_genesis_data_generator.star
+2
-2
el_genesis_data_generator.star
..._data_generator/el_genesis/el_genesis_data_generator.star
+2
-2
prometheus_launcher.star
src/prometheus/prometheus_launcher.star
+1
-3
No files found.
docs/changelog.md
View file @
e18f48a9
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
-
Moved away from
`store_files_from_service`
to
`store_service_files`
-
Moved away from
`store_files_from_service`
to
`store_service_files`
-
Removed empty
`ports`
from a few service configs as passing it is now optional
-
Removed empty
`ports`
from a few service configs as passing it is now optional
-
Adjusted to the new render templates config
-
Adjusted to the new render templates config
-
Moved away from passing json string to struct/dict for render templates
# 0.0.1
# 0.0.1
...
...
src/forkmon/forkmon_launcher.star
View file @
e18f48a9
...
@@ -31,9 +31,8 @@ def launch_forkmon(
...
@@ -31,9 +31,8 @@ def launch_forkmon(
all_cl_client_info.append(client_info)
all_cl_client_info.append(client_info)
template_data = new_config_template_data(HTTP_PORT_NUMBER, all_cl_client_info, seconds_per_slot, slots_per_epoch, genesis_unix_timestamp)
template_data = new_config_template_data(HTTP_PORT_NUMBER, all_cl_client_info, seconds_per_slot, slots_per_epoch, genesis_unix_timestamp)
template_data_json = json.encode(template_data)
template_and_data = shared_utils.new_template_and_data(config_template, template_data
_json
)
template_and_data = shared_utils.new_template_and_data(config_template, template_data)
template_and_data_by_rel_dest_filepath = {}
template_and_data_by_rel_dest_filepath = {}
template_and_data_by_rel_dest_filepath[FORKMON_CONFIG_FILENAME] = template_and_data
template_and_data_by_rel_dest_filepath[FORKMON_CONFIG_FILENAME] = template_and_data
...
...
src/grafana/grafana_launcher.star
View file @
e18f48a9
...
@@ -37,12 +37,10 @@ def launch_grafana(datasource_config_template, dashboard_providers_config_templa
...
@@ -37,12 +37,10 @@ def launch_grafana(datasource_config_template, dashboard_providers_config_templa
def get_grafana_config_dir_artifact_uuid(datasource_config_template, dashboard_providers_config_template, prometheus_private_url):
def get_grafana_config_dir_artifact_uuid(datasource_config_template, dashboard_providers_config_template, prometheus_private_url):
datasource_data = new_datasource_config_template_data(prometheus_private_url)
datasource_data = new_datasource_config_template_data(prometheus_private_url)
datasource_data_as_json = json.encode(datasource_data)
datasource_template_and_data = shared_utils.new_template_and_data(datasource_config_template, datasource_data)
datasource_template_and_data = shared_utils.new_template_and_data(datasource_config_template, datasource_data_as_json)
dashboard_providers_data = new_dashboard_providers_config_template_data(GRAFANA_DASHBOARDS_FILEPATH_ON_SERVICE)
dashboard_providers_data = new_dashboard_providers_config_template_data(GRAFANA_DASHBOARDS_FILEPATH_ON_SERVICE)
dashboard_providers_data_json = json.encode(dashboard_providers_data)
dashboard_providers_template_and_data = shared_utils.new_template_and_data(dashboard_providers_config_template, dashboard_providers_data)
dashboard_providers_template_and_data = shared_utils.new_template_and_data(dashboard_providers_config_template, dashboard_providers_data_json)
template_and_data_by_rel_dest_filepath = {}
template_and_data_by_rel_dest_filepath = {}
template_and_data_by_rel_dest_filepath[DATASOURCE_CONFIG_REL_FILEPATH] = datasource_template_and_data
template_and_data_by_rel_dest_filepath[DATASOURCE_CONFIG_REL_FILEPATH] = datasource_template_and_data
...
...
src/participant_network/prelaunch_data_generator/cl_genesis/cl_genesis_data_generator.star
View file @
e18f48a9
...
@@ -34,14 +34,14 @@ def generate_cl_genesis_data(
...
@@ -34,14 +34,14 @@ def generate_cl_genesis_data(
preregistered_validator_keys_mnemonic,
preregistered_validator_keys_mnemonic,
total_num_validator_keys_to_preregister):
total_num_validator_keys_to_preregister):
template_data =
json.encode(
new_cl_genesis_config_template_data(
template_data = new_cl_genesis_config_template_data(
network_id,
network_id,
seconds_per_slot,
seconds_per_slot,
genesis_unix_timestamp,
genesis_unix_timestamp,
total_num_validator_keys_to_preregister,
total_num_validator_keys_to_preregister,
preregistered_validator_keys_mnemonic,
preregistered_validator_keys_mnemonic,
deposit_contract_address,
deposit_contract_address,
)
)
)
genesis_generation_mnemonics_template_and_data = shared_utils.new_template_and_data(genesis_generation_mnemonics_yml_template, template_data)
genesis_generation_mnemonics_template_and_data = shared_utils.new_template_and_data(genesis_generation_mnemonics_yml_template, template_data)
genesis_generation_config_template_and_data = shared_utils.new_template_and_data(genesis_generation_config_yml_template, template_data)
genesis_generation_config_template_and_data = shared_utils.new_template_and_data(genesis_generation_config_yml_template, template_data)
...
...
src/participant_network/prelaunch_data_generator/el_genesis/el_genesis_data_generator.star
View file @
e18f48a9
...
@@ -31,11 +31,11 @@ def generate_el_genesis_data(
...
@@ -31,11 +31,11 @@ def generate_el_genesis_data(
network_id,
network_id,
deposit_contract_address):
deposit_contract_address):
template_data =
json.encode(
genesis_generation_config_template_data(
template_data = genesis_generation_config_template_data(
network_id,
network_id,
deposit_contract_address,
deposit_contract_address,
genesis_unix_timestamp,
genesis_unix_timestamp,
)
)
)
genesis_config_file_template_and_data = shared_utils.new_template_and_data(genesis_generation_config_template, template_data)
genesis_config_file_template_and_data = shared_utils.new_template_and_data(genesis_generation_config_template, template_data)
...
...
src/prometheus/prometheus_launcher.star
View file @
e18f48a9
...
@@ -24,9 +24,7 @@ def launch_prometheus(config_template, cl_client_contexts):
...
@@ -24,9 +24,7 @@ def launch_prometheus(config_template, cl_client_contexts):
all_cl_nodes_metrics_info.extend(client.cl_nodes_metrics_info)
all_cl_nodes_metrics_info.extend(client.cl_nodes_metrics_info)
template_data = new_config_template_data(all_cl_nodes_metrics_info)
template_data = new_config_template_data(all_cl_nodes_metrics_info)
template_data_json = json.encode(template_data)
template_and_data = shared_utils.new_template_and_data(config_template, template_data)
template_and_data = shared_utils.new_template_and_data(config_template, template_data_json)
template_and_data_by_rel_dest_filepath = {}
template_and_data_by_rel_dest_filepath = {}
template_and_data_by_rel_dest_filepath[CONFIG_FILENAME] = template_and_data
template_and_data_by_rel_dest_filepath[CONFIG_FILENAME] = template_and_data
...
...
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