From 35cb2300c375aff106ad6558608c5b9cc6c137e5 Mon Sep 17 00:00:00 2001 From: abhiyana Date: Fri, 10 Nov 2023 13:29:46 +0530 Subject: [PATCH] feat: implement the kurtosis package for polkadex mainnet node setup --- parachain/mainnet-setup/polkadex.star | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 parachain/mainnet-setup/polkadex.star diff --git a/parachain/mainnet-setup/polkadex.star b/parachain/mainnet-setup/polkadex.star new file mode 100644 index 0000000..0bd3e5b --- /dev/null +++ b/parachain/mainnet-setup/polkadex.star @@ -0,0 +1,27 @@ +def run_polkadex(plan): + exec_command = [ + "--chain=mainnet", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--unsafe-ws-external", + ] + + polkadex_service_config = ServiceConfig( + image = "polkadex/parachain: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 = ["/usr/local/bin/parachain-polkadex-node"] + ) + plan.add_service(name = "polkadex-node", config = polkadex_service_config)