From ffe2e16d87407b69516ca22c1b49fb5f11ba662a Mon Sep 17 00:00:00 2001 From: abhiyana Date: Tue, 31 Oct 2023 18:47:36 +0530 Subject: [PATCH] feat: implement kurtosis package for local setup of turing parachain --- parachain/turing.star | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 parachain/turing.star diff --git a/parachain/turing.star b/parachain/turing.star new file mode 100644 index 0000000..5947f42 --- /dev/null +++ b/parachain/turing.star @@ -0,0 +1,30 @@ +def run_turing(plan): + exec_command = [ + "--chain=turing-dev", + "--rpc-port=9933", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--execution=wasm", + "--tmp", + "--unsafe-ws-external", + "--", + "--chain=/app/rococo-local.json", + "--execution=wasm", + ] + turing_service_config = ServiceConfig( + image = "oaknetwork/turing:latest", + files = { + "/app": "configs", + }, + ports = { + "ws": PortSpec(9944, transport_protocol = "TCP"), + "rpc": PortSpec(9933, transport_protocol = "TCP"), + }, + cmd = exec_command, + ) + + service_details = plan.add_service(name = "turing-node", config = turing_service_config) + + return service_details