From 5482a0d8b884c4d30c64211d459ac242bf8616f7 Mon Sep 17 00:00:00 2001 From: Abhishek Harde <47945971+abhiyana@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:20:44 +0530 Subject: [PATCH] feat: implement kurtosis package for local setup of pendulum parachain (#18) * feat: implement kurtosis package for local setup of pendulum parachain * refactor: change config name to pendulum_service_config * refactor: change in exec_command * refactor: format the exec_command --------- Co-authored-by: Shreyas S Bhat <35568964+shreyasbhat0@users.noreply.github.com> --- parachain/pendulum.star | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 parachain/pendulum.star diff --git a/parachain/pendulum.star b/parachain/pendulum.star new file mode 100644 index 0000000..71320dd --- /dev/null +++ b/parachain/pendulum.star @@ -0,0 +1,28 @@ +def run_pendulum(plan): + exec_command = [ + "--chain=dev", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--tmp", + "--", + "--wasm-execution=compiled", + "--chain=/app/rococo-local.json" + ] + pendulum_service_config = ServiceConfig( + image = "pendulumchain/pendulum-collator: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 = "pendulum-node", config = pendulum_service_config)