From aa078659dffbc45922a8a05c8198beb2589b8922 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Tue, 31 Oct 2023 16:52:01 +0530 Subject: [PATCH 1/2] feat: implement kurtosis package to run subzero parachain locally --- parachain/subzero.star | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 parachain/subzero.star diff --git a/parachain/subzero.star b/parachain/subzero.star new file mode 100644 index 0000000..9b5b05e --- /dev/null +++ b/parachain/subzero.star @@ -0,0 +1,19 @@ +def run_subzero(plan, args): + exec_command = [ + "bin/sh", + "-c", + "/usr/local/bin/subzero --dev --tmp --ws-external --rpc-external --rpc-cors all --rpc-methods unsafe -- --execution wasm --chain /app/rococo-local.json", + ] + plan.add_service( + name = "subzero", + config = ServiceConfig( + image = "playzero/subzero:latest", + files = { + "/app": "configs", + }, + ports = { + "parachain": PortSpec(9944, transport_protocol = "TCP"), + }, + entrypoint = exec_command, + ), + ) From d99f5dd80568128c21b44a8d8a8bec57499cca7f Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Tue, 31 Oct 2023 18:24:26 +0530 Subject: [PATCH 2/2] refactor: change port key to ws --- parachain/subzero.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parachain/subzero.star b/parachain/subzero.star index 9b5b05e..907fe58 100644 --- a/parachain/subzero.star +++ b/parachain/subzero.star @@ -12,7 +12,7 @@ def run_subzero(plan, args): "/app": "configs", }, ports = { - "parachain": PortSpec(9944, transport_protocol = "TCP"), + "ws": PortSpec(9944, transport_protocol = "TCP"), }, entrypoint = exec_command, ),