From 525a7c1a15b5b01dcdcb98e82714d1001608a63f Mon Sep 17 00:00:00 2001 From: abhiyana Date: Fri, 27 Oct 2023 18:08:30 +0530 Subject: [PATCH 1/3] feat: implement kurtosis package for local setup moonbeam parachain --- parachain/moonbeam.star | 18 ++++++++++++++++++ relaychain/relay-chain.star | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 parachain/moonbeam.star diff --git a/parachain/moonbeam.star b/parachain/moonbeam.star new file mode 100644 index 0000000..88f0d80 --- /dev/null +++ b/parachain/moonbeam.star @@ -0,0 +1,18 @@ +def run(plan): + exec_command = ["--chain=dev", "--collator", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp"] + moonbeam_service_config = ServiceConfig( + image = "moonbeamfoundation/moonbeam:sha-32933811", + 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 = moonbeam_service_config) diff --git a/relaychain/relay-chain.star b/relaychain/relay-chain.star index 3d9677b..fb97e1a 100644 --- a/relaychain/relay-chain.star +++ b/relaychain/relay-chain.star @@ -31,7 +31,7 @@ def start_relay_chain_local(plan, name, port): config = ServiceConfig( image = "parity/polkadot:v0.9.31", files = { - "/app": "output", + "/app": "configs", }, ports = { "polkadot": PortSpec(9944, transport_protocol = "TCP"), From adf805fd7938f51034fd745c4e9e3416025378cb Mon Sep 17 00:00:00 2001 From: abhiyana Date: Fri, 27 Oct 2023 18:31:20 +0530 Subject: [PATCH 2/3] feat: implement kurtosis package to local setup for kilt para-chain --- parachain/kilt.star | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 parachain/kilt.star diff --git a/parachain/kilt.star b/parachain/kilt.star new file mode 100644 index 0000000..9bd6306 --- /dev/null +++ b/parachain/kilt.star @@ -0,0 +1,19 @@ +def run_kilt(plan): + exec_command = ["--chain=dev", "--alice", "--rpc-port=9933","--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--execution=wasm", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] + kilt_service_config = ServiceConfig( + image = "kiltprotocol/kilt-node:latest", + files = { + "/app":"config" + }, + 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="kilt-node", config=kilt_service_config) From e66ccc98bc4e2e7ead22897fdc80d4fd7a8d0880 Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 11:27:16 +0530 Subject: [PATCH 3/3] refactor: format code --- parachain/kilt.star | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/parachain/kilt.star b/parachain/kilt.star index 9bd6306..66f0360 100644 --- a/parachain/kilt.star +++ b/parachain/kilt.star @@ -1,5 +1,19 @@ def run_kilt(plan): - exec_command = ["--chain=dev", "--alice", "--rpc-port=9933","--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--execution=wasm", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] + + exec_command = [ + "--chain=dev", + "--alice", + "--rpc-port=9933", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--execution=wasm", + "--tmp", + "--", + "--chain=/app/rococo-local.json", + "--execution=wasm" + ] + kilt_service_config = ServiceConfig( image = "kiltprotocol/kilt-node:latest", files = {