From 3d178809938b9c65593d3b13b41d147bfe2e412a Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 11:39:42 +0530 Subject: [PATCH] feat: implement kurtosis package for local setup of polkadex parachain --- parachain/polkadex.star | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 parachain/polkadex.star diff --git a/parachain/polkadex.star b/parachain/polkadex.star new file mode 100644 index 0000000..864def8 --- /dev/null +++ b/parachain/polkadex.star @@ -0,0 +1,31 @@ +def run_polkadex(plan): + exec_command = [ + "--chain=dev", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--tmp", + "--", + "--execution=wasm", + "--chain=/app/rococo-local.json", + "--port=30345", + "--ws-port=9979" + ] + + polkadex_service_config = ServiceConfig( + image = "polkadex/parachain: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 = "acala-node", config = polkadex_service_config)