-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update to reference external local-da kurtosis package
- Loading branch information
Showing
1 changed file
with
9 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,18 @@ | ||
# This Kurtosis package spins up a minimal GM rollup that connects to a local DA | ||
# This Kurtosis package spins up a minimal GM rollup that connects to a DA node | ||
# | ||
# NOTE: currently this is only connecting to a local DA node | ||
|
||
da_node = import_module("github.com/rollkit/local-da/[email protected]") | ||
|
||
def run(plan): | ||
########## | ||
# local DA | ||
# DA | ||
########## | ||
|
||
# TODO: this can be pulled into the local da repo and then imported here | ||
plan.print("Adding Local DA service") | ||
local_da_port_number = 7980 | ||
local_da_port_spec = PortSpec( | ||
number=local_da_port_number, | ||
transport_protocol="TCP", | ||
application_protocol="http", | ||
) | ||
local_da_ports = { | ||
"jsonrpc": local_da_port_spec, | ||
} | ||
local_da = plan.add_service( | ||
name="local-da", | ||
config=ServiceConfig( | ||
image="ghcr.io/rollkit/local-da:v0.2.1", | ||
ports=local_da_ports, | ||
public_ports=local_da_ports, | ||
), | ||
) | ||
# Set the local DA address for the GM service | ||
# TODO: this would be returned by the local DA package | ||
local_da_address = "http://{0}:{1}".format( | ||
local_da.ip_address, local_da.ports["jsonrpc"].number | ||
da_address = da_node.run( | ||
plan, | ||
) | ||
plan.print("connecting to da layer via {0}".format(da_address)) | ||
|
||
##### | ||
# GM | ||
|
@@ -41,7 +24,7 @@ def run(plan): | |
"rollkit", | ||
"start", | ||
"--rollkit.aggregator", | ||
"--rollkit.da_address {0}".format(local_da_address), | ||
"--rollkit.da_address {0}".format(da_address), | ||
] | ||
gm_port_number = 26657 | ||
gm_port_spec = PortSpec( | ||
|