From 332135d5afcf1efef4038e713ba8861aca080cb3 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Fri, 27 Oct 2023 15:54:49 +0530 Subject: [PATCH 1/7] chore: Implement manta parachain for polkadot package --- parachain/manta.star | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 parachain/manta.star diff --git a/parachain/manta.star b/parachain/manta.star new file mode 100644 index 0000000..da2acab --- /dev/null +++ b/parachain/manta.star @@ -0,0 +1,17 @@ +def manta_run(plan,args): + + exec_command = [ "bin/sh","-c","/usr/local/bin/manta --chain=manta-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] + parachain = plan.add_service( + name="interrelay", + config= ServiceConfig( + image = "mantanetwork/manta:latest", + files={ + "/app":"output" + }, + ports = { + "parachain" : PortSpec(9944, transport_protocol="TCP"), + }, + entrypoint=exec_command + ) + ) + From 21d06b45ffb3e37bbf28315e92d22e6b1375713e Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Fri, 27 Oct 2023 15:55:31 +0530 Subject: [PATCH 2/7] chore: Implement calamari parachain for polkadot package --- parachain/manta.star | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/parachain/manta.star b/parachain/manta.star index da2acab..d970f29 100644 --- a/parachain/manta.star +++ b/parachain/manta.star @@ -15,3 +15,19 @@ def manta_run(plan,args): ) ) +def calamari_run(plan,args): + + exec_command = [ "bin/sh","-c","/usr/local/bin/manta --chain=calamari-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] + parachain = plan.add_service( + name="interrelay", + config= ServiceConfig( + image = "mantanetwork/manta:latest", + files={ + "/app":"output" + }, + ports = { + "parachain" : PortSpec(9944, transport_protocol="TCP"), + }, + entrypoint=exec_command + ) + ) \ No newline at end of file From 1907fb12b8055132c2221771640cbaef31ca07b9 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 11:07:58 +0530 Subject: [PATCH 3/7] refactor: change function to verb --- parachain/manta.star | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parachain/manta.star b/parachain/manta.star index d970f29..42ff1b1 100644 --- a/parachain/manta.star +++ b/parachain/manta.star @@ -1,4 +1,4 @@ -def manta_run(plan,args): +def run_manta(plan,args): exec_command = [ "bin/sh","-c","/usr/local/bin/manta --chain=manta-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] parachain = plan.add_service( @@ -15,7 +15,7 @@ def manta_run(plan,args): ) ) -def calamari_run(plan,args): +def run_calamari(plan,args): exec_command = [ "bin/sh","-c","/usr/local/bin/manta --chain=calamari-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] parachain = plan.add_service( From ed5043ea158f02a7671abedf15c8565b61fc9291 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 11:35:33 +0530 Subject: [PATCH 4/7] refactor: remove unused variable 'parachain' --- parachain/manta.star | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parachain/manta.star b/parachain/manta.star index 42ff1b1..d7b07aa 100644 --- a/parachain/manta.star +++ b/parachain/manta.star @@ -1,7 +1,7 @@ def run_manta(plan,args): exec_command = [ "bin/sh","-c","/usr/local/bin/manta --chain=manta-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] - parachain = plan.add_service( + plan.add_service( name="interrelay", config= ServiceConfig( image = "mantanetwork/manta:latest", @@ -18,7 +18,7 @@ def run_manta(plan,args): def run_calamari(plan,args): exec_command = [ "bin/sh","-c","/usr/local/bin/manta --chain=calamari-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] - parachain = plan.add_service( + plan.add_service( name="interrelay", config= ServiceConfig( image = "mantanetwork/manta:latest", From 38196660b95fd8ff6cff6f6f29ca41ae14ba572e Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 12:10:57 +0530 Subject: [PATCH 5/7] style: format code --- parachain/manta.star | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/parachain/manta.star b/parachain/manta.star index d7b07aa..a725df1 100644 --- a/parachain/manta.star +++ b/parachain/manta.star @@ -1,33 +1,31 @@ -def run_manta(plan,args): - - exec_command = [ "bin/sh","-c","/usr/local/bin/manta --chain=manta-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] +def run_manta(plan, args): + exec_command = ["bin/sh", "-c", "/usr/local/bin/manta --chain=manta-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] plan.add_service( - name="interrelay", - config= ServiceConfig( + name = "interrelay", + config = ServiceConfig( image = "mantanetwork/manta:latest", - files={ - "/app":"output" + files = { + "/app": "output", }, ports = { - "parachain" : PortSpec(9944, transport_protocol="TCP"), + "parachain": PortSpec(9944, transport_protocol = "TCP"), }, - entrypoint=exec_command - ) + entrypoint = exec_command, + ), ) -def run_calamari(plan,args): - - exec_command = [ "bin/sh","-c","/usr/local/bin/manta --chain=calamari-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] +def run_calamari(plan, args): + exec_command = ["bin/sh", "-c", "/usr/local/bin/manta --chain=calamari-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] plan.add_service( - name="interrelay", - config= ServiceConfig( + name = "interrelay", + config = ServiceConfig( image = "mantanetwork/manta:latest", - files={ - "/app":"output" + files = { + "/app": "output", }, ports = { - "parachain" : PortSpec(9944, transport_protocol="TCP"), + "parachain": PortSpec(9944, transport_protocol = "TCP"), }, - entrypoint=exec_command - ) - ) \ No newline at end of file + entrypoint = exec_command, + ), + ) From 5d988ad0c2c8a453127b202493d2851ba49c4d08 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 12:41:06 +0530 Subject: [PATCH 6/7] style: code format --- parachain/manta.star | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/parachain/manta.star b/parachain/manta.star index a725df1..1757a23 100644 --- a/parachain/manta.star +++ b/parachain/manta.star @@ -1,5 +1,9 @@ def run_manta(plan, args): - exec_command = ["bin/sh", "-c", "/usr/local/bin/manta --chain=manta-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] + exec_command = [ + "bin/sh", + "-c", + "/usr/local/bin/manta --chain=manta-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json", + ] plan.add_service( name = "interrelay", config = ServiceConfig( @@ -15,7 +19,11 @@ def run_manta(plan, args): ) def run_calamari(plan, args): - exec_command = ["bin/sh", "-c", "/usr/local/bin/manta --chain=calamari-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json"] + exec_command = [ + "bin/sh", + "-c", + "/usr/local/bin/manta --chain=calamari-local --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe -- --wasm-execution=compiled --chain=/app/rococo-local.json", + ] plan.add_service( name = "interrelay", config = ServiceConfig( From d17e7c2f784285f83ad6e8cb2334786e252082f4 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 12:53:04 +0530 Subject: [PATCH 7/7] fix: upload file path issue --- parachain/manta.star | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parachain/manta.star b/parachain/manta.star index 1757a23..e0194b5 100644 --- a/parachain/manta.star +++ b/parachain/manta.star @@ -9,7 +9,7 @@ def run_manta(plan, args): config = ServiceConfig( image = "mantanetwork/manta:latest", files = { - "/app": "output", + "/app": "configs", }, ports = { "parachain": PortSpec(9944, transport_protocol = "TCP"), @@ -29,7 +29,7 @@ def run_calamari(plan, args): config = ServiceConfig( image = "mantanetwork/manta:latest", files = { - "/app": "output", + "/app": "configs", }, ports = { "parachain": PortSpec(9944, transport_protocol = "TCP"),