From c493b191a9be4ae9772a87de9da240d8a7cb0c6e Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 12:54:05 +0530 Subject: [PATCH 1/5] feat: implement kurtosis package for local setup of mangata parachain --- parachain/mangata.star | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 parachain/mangata.star diff --git a/parachain/mangata.star b/parachain/mangata.star new file mode 100644 index 0000000..917faf9 --- /dev/null +++ b/parachain/mangata.star @@ -0,0 +1,18 @@ +def run_integritee(plan, args): + exec_command = ["--chain=rococo-local", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] + mangata_service_config = ServiceConfig( + image = "mangatasolutions/mangata-node:ci-e2e-jobs-fix-MGX-785-fast", + files = { + "/app": "output", + }, + 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 = "mangata-node", config = mangata_service_config) From 65ffc844887f6977b6c67cf00029d3bf3de0002a Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 12:56:24 +0530 Subject: [PATCH 2/5] refactor: change runction name from run to run_mangata --- parachain/mangata.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parachain/mangata.star b/parachain/mangata.star index 917faf9..f5ddd56 100644 --- a/parachain/mangata.star +++ b/parachain/mangata.star @@ -1,4 +1,4 @@ -def run_integritee(plan, args): +def run_mangata(plan, args): exec_command = ["--chain=rococo-local", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] mangata_service_config = ServiceConfig( image = "mangatasolutions/mangata-node:ci-e2e-jobs-fix-MGX-785-fast", From a438ed15cae27a0b301be550ff4965c025f3220c Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 12:58:26 +0530 Subject: [PATCH 3/5] refactor: remove args from parameter of run_mangata function --- main.star | 3 ++- parachain/mangata.star | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.star b/main.star index f35b5ff..bb2c7a8 100644 --- a/main.star +++ b/main.star @@ -1,10 +1,11 @@ parachain = import_module("./parachain/parachain.star") relay_chain = import_module("./relaychain/relay-chain.star") +mangata = import_module("./parachain/mangata.star") def run(plan, args): plan.upload_files(src = "./parachain/static_files/configs", name = "configs") if args["chain-type"] == "local": relay_chain.spawn_multiple_relay(plan, 2) - parachain.run(plan, args) + mangata.run_mangata(plan) else: relay_chain.start_relay_chain(plan, args) diff --git a/parachain/mangata.star b/parachain/mangata.star index f5ddd56..60489c6 100644 --- a/parachain/mangata.star +++ b/parachain/mangata.star @@ -1,4 +1,4 @@ -def run_mangata(plan, args): +def run_mangata(plan): exec_command = ["--chain=rococo-local", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] mangata_service_config = ServiceConfig( image = "mangatasolutions/mangata-node:ci-e2e-jobs-fix-MGX-785-fast", From 4f02d1b3380b4f6d286a22c427ac92a308a72cfb Mon Sep 17 00:00:00 2001 From: abhiyana Date: Mon, 30 Oct 2023 13:00:53 +0530 Subject: [PATCH 4/5] refactor: change file mount from output to configs --- parachain/ajuna.star | 2 +- parachain/centriguge.star | 2 +- parachain/integritee.star | 2 +- parachain/interlay.star | 2 +- parachain/mangata.star | 2 +- relaychain/relay-chain.star | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/parachain/ajuna.star b/parachain/ajuna.star index abaa7fd..998ad52 100644 --- a/parachain/ajuna.star +++ b/parachain/ajuna.star @@ -5,7 +5,7 @@ def run_ajuna(plan, args): config = ServiceConfig( image = "ajuna/parachain-bajun:latest", files = { - "/app": "output", + "/app": "configs", }, ports = { "parachain": PortSpec(8846, transport_protocol = "TCP"), diff --git a/parachain/centriguge.star b/parachain/centriguge.star index d0b383c..e0c430b 100644 --- a/parachain/centriguge.star +++ b/parachain/centriguge.star @@ -13,7 +13,7 @@ def run_centriguge(plan, args): centifuge_service_config = ServiceConfig( image = "centrifugeio/centrifuge-chain:test-main-latest", files = { - "/app": "output", + "/app": "configs", }, ports = { "9944": PortSpec(9944, transport_protocol = "TCP"), diff --git a/parachain/integritee.star b/parachain/integritee.star index 953bba7..b9c4331 100644 --- a/parachain/integritee.star +++ b/parachain/integritee.star @@ -3,7 +3,7 @@ def run_integritee(plan, args): integritee_service_config = ServiceConfig( image = "integritee/parachain", files = { - "/app": "output", + "/app": "configs", }, ports = { "9944": PortSpec(9944, transport_protocol = "TCP"), diff --git a/parachain/interlay.star b/parachain/interlay.star index f521e14..619de0e 100644 --- a/parachain/interlay.star +++ b/parachain/interlay.star @@ -6,7 +6,7 @@ def interrelay_run(plan,args): config= ServiceConfig( image = "interlayhq/interbtc:latest", files={ - "/app":"output" + "/app":"configs" }, ports = { "parachain" : PortSpec(9944, transport_protocol="TCP"), diff --git a/parachain/mangata.star b/parachain/mangata.star index 60489c6..c685989 100644 --- a/parachain/mangata.star +++ b/parachain/mangata.star @@ -3,7 +3,7 @@ def run_mangata(plan): mangata_service_config = ServiceConfig( image = "mangatasolutions/mangata-node:ci-e2e-jobs-fix-MGX-785-fast", files = { - "/app": "output", + "/app": "configs", }, ports = { "9944": PortSpec(9944, transport_protocol = "TCP"), 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 b913566437194379611468a0f812b37ece8d8ec3 Mon Sep 17 00:00:00 2001 From: abhiyana Date: Tue, 31 Oct 2023 18:14:54 +0530 Subject: [PATCH 5/5] refactor: change port key value --- parachain/mangata.star | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/parachain/mangata.star b/parachain/mangata.star index c685989..8bfd218 100644 --- a/parachain/mangata.star +++ b/parachain/mangata.star @@ -1,17 +1,23 @@ def run_mangata(plan): - exec_command = ["--chain=rococo-local", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] + exec_command = [ + "--chain=rococo-local", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--unsafe-ws-external", + "--tmp", + "--", + "--chain=/app/rococo-local.json", + "--execution=wasm" + ] mangata_service_config = ServiceConfig( image = "mangatasolutions/mangata-node:ci-e2e-jobs-fix-MGX-785-fast", 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"), + "ws": PortSpec(9944, transport_protocol = "TCP"), + "tcp": PortSpec(9933, transport_protocol = "TCP"), }, cmd = exec_command, )