Skip to content

Commit

Permalink
chore: update to reference external local-da kurtosis package
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey committed Jul 9, 2024
1 parent 34b488b commit b4ae7fd
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions main.star
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
Expand All @@ -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(
Expand Down

0 comments on commit b4ae7fd

Please sign in to comment.