From 54a9ec2717463232d2bfdc5dae21451c038644aa Mon Sep 17 00:00:00 2001 From: Matthew Sevey <15232757+MSevey@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:48:43 -0400 Subject: [PATCH] chore: update to reference external local-da kurtosis package (#112) --- main.star | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/main.star b/main.star index 5344645..124b564 100644 --- a/main.star +++ b/main.star @@ -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/main.star@v0.3.0") 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(