Skip to content

Commit

Permalink
feat: implement kurtosis package for localnet setup litentry parachain (
Browse files Browse the repository at this point in the history
#23)

* feat: implement kurtosis package for local setup of litentry parachain

* refactor: change file mount output to configs

---------

Co-authored-by: Shreyas S Bhat <[email protected]>
  • Loading branch information
abhiyana and shreyasbhat0 authored Oct 30, 2023
1 parent 9df3671 commit a5676b5
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
3 changes: 2 additions & 1 deletion main.star
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
parachain = import_module("./parachain/parachain.star")
relay_chain = import_module("./relaychain/relay-chain.star")
litentry = import_module("./parachain/litentry.star")

def run(plan, args):
plan.upload_files(src = "./parachain/static_files/configs", name = "configs")
if args["chain-type"] == "local":
relay_chain.spawn_multiple_relay(plan, 2)
parachain.run(plan, args)
litentry.run_litentry(plan)
else:
relay_chain.start_relay_chain(plan, args)
2 changes: 1 addition & 1 deletion parachain/centriguge.star
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def run_centriguge(plan, args):
centifuge_service_config = ServiceConfig(
image = "centrifugeio/centrifuge-chain:test-main-latest",
files = {
"/app": "output",
"/app": "configs",
},
ports = {
"9944": PortSpec(9944, transport_protocol = "TCP"),
Expand Down
2 changes: 1 addition & 1 deletion parachain/integritee.star
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def run_integritee(plan, args):
integritee_service_config = ServiceConfig(
image = "integritee/parachain",
files = {
"/app": "output",
"/app": "configs",
},
ports = {
"9944": PortSpec(9944, transport_protocol = "TCP"),
Expand Down
2 changes: 1 addition & 1 deletion parachain/interlay.star
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def interrelay_run(plan,args):
config= ServiceConfig(
image = "interlayhq/interbtc:latest",
files={
"/app":"output"
"/app":"configs"
},
ports = {
"parachain" : PortSpec(9944, transport_protocol="TCP"),
Expand Down
30 changes: 30 additions & 0 deletions parachain/litentry.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
def run_litentry(plan):
exec_command = [
"--chain=litentry-dev",
"--rpc-port=9933",
"--rpc-external",
"--rpc-cors=all",
"--rpc-methods=unsafe",
"--execution=wasm",
"--tmp",
"--",
"--chain=/app/rococo-local.json",
"--execution=wasm"
]
litentry_service_config = ServiceConfig(
image = "litentry/litentry-parachain:latest",
files = {
"/app":"configs"
},
ports = {
"9944": PortSpec(9944, transport_protocol="TCP"),
"9933": PortSpec(9933, transport_protocol="TCP")
},
public_ports = {
"9944": PortSpec(9432, transport_protocol="TCP"),
"9933": PortSpec(9431, transport_protocol="TCP")

},
cmd = exec_command,
)
plan.add_service(name="litentry-node", config=litentry_service_config)

0 comments on commit a5676b5

Please sign in to comment.