From 03925b7fd72e8012a728eb00d0c575e087e81108 Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 17:54:25 +0530 Subject: [PATCH 1/2] feat: implement kurtosis package for local setup of karura parachain --- parachain/karura.star | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 parachain/karura.star diff --git a/parachain/karura.star b/parachain/karura.star new file mode 100644 index 0000000..63cfcdc --- /dev/null +++ b/parachain/karura.star @@ -0,0 +1,19 @@ +def run_karura(plan): + exec_command = ["--chain=dev", "--collator", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] + + karura_service_config = ServiceConfig( + image = "acala/karura-node: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 = "karura-node", config = karura_service_config) From c4ccf783f6e3f3f6d0d8595bd7212142cd983f47 Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 18:18:18 +0530 Subject: [PATCH 2/2] refactor: format exec_command to multiple lines --- parachain/karura.star | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/parachain/karura.star b/parachain/karura.star index 63cfcdc..d967809 100644 --- a/parachain/karura.star +++ b/parachain/karura.star @@ -1,5 +1,15 @@ def run_karura(plan): - exec_command = ["--chain=dev", "--collator", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] + exec_command = [ + "--chain=dev", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--tmp", + "--", + "--chain=/app/rococo-local.json", + "--execution=wasm" + ] karura_service_config = ServiceConfig( image = "acala/karura-node:latest",