From e77015297037551026497316edd4d07d4c90fd29 Mon Sep 17 00:00:00 2001 From: abhiyana Date: Tue, 14 Nov 2023 00:19:27 +0530 Subject: [PATCH] feat: implement kurtosis package for nodle testnet setup --- parachain/testnet-setup/nodle.star | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 parachain/testnet-setup/nodle.star diff --git a/parachain/testnet-setup/nodle.star b/parachain/testnet-setup/nodle.star new file mode 100644 index 0000000..ccf1111 --- /dev/null +++ b/parachain/testnet-setup/nodle.star @@ -0,0 +1,26 @@ +def run_nodle(plan): + exec_command = [ + "--chain=test", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--unsafe-ws-external", + ] + nodle_service_config = ServiceConfig( + image = "nodlecode/chain:latest", + files = { + "/app": "configs", + }, + ports = { + "ws": PortSpec(9944, transport_protocol = "TCP"), + "rpc": PortSpec(9933, transport_protocol = "TCP"), + }, + public_ports = { + "ws": PortSpec(9432, transport_protocol = "TCP"), + "rpc": PortSpec(9431, transport_protocol = "TCP"), + }, + cmd = exec_command, + entrypoint = ["nodle-parachain"] + ) + plan.add_service(name = "nodle-node", config = nodle_service_config)