From c21baaa03c0841161ebd55429a52cd7177ee09d8 Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 17:16:41 +0530 Subject: [PATCH 1/2] feat: implement kurtosis package for local setup altair parachain --- parachain/altair.star | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 parachain/altair.star diff --git a/parachain/altair.star b/parachain/altair.star new file mode 100644 index 0000000..1d6655d --- /dev/null +++ b/parachain/altair.star @@ -0,0 +1,19 @@ +def run_altair(plan): + exec_command = ["--chain=altair-local", "--rpc-port=9933","--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--execution=wasm", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] + altair_service_config = ServiceConfig( + image = "centrifugeio/centrifuge-chain:test-main-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="altair-node", config=altair_service_config) From ebb667a8c87e2647b6e7d12d1a4e4da20ad2f11d Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 18:22:13 +0530 Subject: [PATCH 2/2] refactor: format exec_command to multiple lines --- parachain/altair.star | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/parachain/altair.star b/parachain/altair.star index 1d6655d..a93fc2b 100644 --- a/parachain/altair.star +++ b/parachain/altair.star @@ -1,5 +1,16 @@ def run_altair(plan): - exec_command = ["--chain=altair-local", "--rpc-port=9933","--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--execution=wasm", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] + exec_command = [ + "--chain=altair-local", + "--rpc-port=9933", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--execution=wasm", + "--tmp", + "--", + "--chain=/app/rococo-local.json", + "--execution=wasm" + ] altair_service_config = ServiceConfig( image = "centrifugeio/centrifuge-chain:test-main-latest", files = {