-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #67 Example network_params.yaml with altda support: ``` optimism_package: altda_deploy_config: use_altda: true da_commitment_type: KeccakCommitment da_challenge_window: 100 da_resolve_window: 100 da_bond_size: 0 da_resolver_refund_percentage: 0 chains: - participants: - el_type: op-geth cl_type: op-node count: 1 network_params: network: "kurtosis" network_id: "2151908" seconds_per_slot: 2 name: "op-kurtosis" fjord_time_offset: 0 granite_time_offset: 0 fund_dev_accounts: true da_server_params: image: us-docker.pkg.dev/oplabs-tools-artifacts/images/da-server:latest # A list of optional extra params that will be passed to the da-server container for modifying its behaviour cmd: - "da-server" - "--file.path=/home" - "--addr=0.0.0.0" - "--port=3100" - "--log.level=debug" additional_services: - da_server op_contract_deployer_params: image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-deployer:v0.0.11 l1_artifacts_locator: https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-c193a1863182092bc6cb723e523e8313a0f4b6e9c9636513927f1db74c047c15.tar.gz l2_artifacts_locator: https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-c193a1863182092bc6cb723e523e8313a0f4b6e9c9636513927f1db74c047c15.tar.gz global_log_level: "info" global_node_selectors: {} global_tolerations: [] persistent: false ethereum_package: network_params: preset: minimal genesis_delay: 5 additional_preloaded_contracts: ' { "0x4e59b44847b379578588920cA78FbF26c0B4956C": { "balance": "0ETH", "code": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3", "storage": {}, "nonce": "1" } } ' ``` One can also replace da-server with eigenda-proxy by using ``` da_server_params: image: ghcr.io/layr-labs/eigenda-proxy:v1.6.3 # A list of optional extra params that will be passed to the da-server container for modifying its behaviour cmd: - "--memstore.enabled" - "--eigenda.cert-verification-disabled" ```
- Loading branch information
Showing
12 changed files
with
278 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
shared_utils = import_module( | ||
"github.com/ethpandaops/ethereum-package/src/shared_utils/shared_utils.star" | ||
) | ||
constants = import_module( | ||
"github.com/ethpandaops/ethereum-package/src/package_io/constants.star" | ||
) | ||
|
||
# Port IDs | ||
DA_SERVER_HTTP_PORT_ID = "http" | ||
|
||
# Port nums | ||
DA_SERVER_HTTP_PORT_NUM = 3100 | ||
|
||
|
||
def get_used_ports(): | ||
used_ports = { | ||
DA_SERVER_HTTP_PORT_ID: shared_utils.new_port_spec( | ||
DA_SERVER_HTTP_PORT_NUM, | ||
shared_utils.TCP_PROTOCOL, | ||
shared_utils.HTTP_APPLICATION_PROTOCOL, | ||
), | ||
} | ||
return used_ports | ||
|
||
|
||
def launch_da_server( | ||
plan, | ||
service_name, | ||
image, | ||
cmd, | ||
): | ||
config = get_da_server_config( | ||
plan, | ||
service_name, | ||
image, | ||
cmd, | ||
) | ||
|
||
da_server_service = plan.add_service(service_name, config) | ||
|
||
http_url = "http://{0}:{1}".format( | ||
da_server_service.ip_address, DA_SERVER_HTTP_PORT_NUM | ||
) | ||
# da_server_context is passed as argument to op-batcher and op-node(s) | ||
return new_da_server_context( | ||
http_url=http_url, | ||
) | ||
|
||
|
||
def get_da_server_config( | ||
plan, | ||
service_name, | ||
image, | ||
cmd, | ||
): | ||
ports = get_used_ports() | ||
|
||
return ServiceConfig( | ||
image=image, | ||
ports=ports, | ||
cmd=cmd, | ||
private_ip_address_placeholder=constants.PRIVATE_IP_ADDRESS_PLACEHOLDER, | ||
) | ||
|
||
|
||
def disabled_da_server_context(): | ||
return new_da_server_context( | ||
http_url="", | ||
) | ||
|
||
|
||
def new_da_server_context(http_url): | ||
return struct( | ||
enabled=http_url != "", | ||
http_url=http_url, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.