From 0759e3606cb65c0253ec93f8fb1b35e6146c185a Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Fri, 27 Oct 2023 23:41:52 +0530 Subject: [PATCH 1/7] chore: implement the kurtosis package to run kylin parachain local --- parachain/kylin.star | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 parachain/kylin.star diff --git a/parachain/kylin.star b/parachain/kylin.star new file mode 100644 index 0000000..f465dff --- /dev/null +++ b/parachain/kylin.star @@ -0,0 +1,17 @@ +def kylin_run(plan,args): + + exec_command = ["--base-path=/kylin/data","--chain=dev","--ws-external","--rpc-external","--rpc-cors=all","--name=parachain-2010-0","--collator","--rpc-methods=unsafe","--force-authoring","--execution=wasm","--alice","--node-key=52194369e4c881e4157b74fd00dff4241e50b8100b823273e25c868a70e5cde8","--","--chain=/app/rococo-local.json","--execution=wasm"] + parachain = plan.add_service( + name="interrelay", + config= ServiceConfig( + # image = "kylinnetworks/kylin-collator:latest", + image = "kylinnetworks/kylin-collator:ro-v0.9.30", + files={ + "/app":"output" + }, + ports = { + "parachain" : PortSpec(9944, transport_protocol="TCP"), + }, + cmd=exec_command + ) + ) \ No newline at end of file From a4aed89cf924c2157a2beefbba808d1c1f4c27df Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Fri, 27 Oct 2023 23:58:23 +0530 Subject: [PATCH 2/7] chore: code clean up --- parachain/kylin.star | 1 - 1 file changed, 1 deletion(-) diff --git a/parachain/kylin.star b/parachain/kylin.star index f465dff..fa2bd8f 100644 --- a/parachain/kylin.star +++ b/parachain/kylin.star @@ -4,7 +4,6 @@ def kylin_run(plan,args): parachain = plan.add_service( name="interrelay", config= ServiceConfig( - # image = "kylinnetworks/kylin-collator:latest", image = "kylinnetworks/kylin-collator:ro-v0.9.30", files={ "/app":"output" From 3ccbbd21d5977f700e2c7372c9545bb3998370cf Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 11:10:52 +0530 Subject: [PATCH 3/7] refactor: change function name from kylin_run to run_kylin --- parachain/kylin.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parachain/kylin.star b/parachain/kylin.star index fa2bd8f..28d0435 100644 --- a/parachain/kylin.star +++ b/parachain/kylin.star @@ -1,4 +1,4 @@ -def kylin_run(plan,args): +def run_kylin(plan,args): exec_command = ["--base-path=/kylin/data","--chain=dev","--ws-external","--rpc-external","--rpc-cors=all","--name=parachain-2010-0","--collator","--rpc-methods=unsafe","--force-authoring","--execution=wasm","--alice","--node-key=52194369e4c881e4157b74fd00dff4241e50b8100b823273e25c868a70e5cde8","--","--chain=/app/rococo-local.json","--execution=wasm"] parachain = plan.add_service( From 15bbd74a181d62ccd2bab23022c9008c65d60042 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 11:54:12 +0530 Subject: [PATCH 4/7] chore: remove unused variable 'parachain' --- parachain/kylin.star | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parachain/kylin.star b/parachain/kylin.star index 28d0435..9e1075a 100644 --- a/parachain/kylin.star +++ b/parachain/kylin.star @@ -1,8 +1,8 @@ def run_kylin(plan,args): exec_command = ["--base-path=/kylin/data","--chain=dev","--ws-external","--rpc-external","--rpc-cors=all","--name=parachain-2010-0","--collator","--rpc-methods=unsafe","--force-authoring","--execution=wasm","--alice","--node-key=52194369e4c881e4157b74fd00dff4241e50b8100b823273e25c868a70e5cde8","--","--chain=/app/rococo-local.json","--execution=wasm"] - parachain = plan.add_service( - name="interrelay", + plan.add_service( + name="kylin", config= ServiceConfig( image = "kylinnetworks/kylin-collator:ro-v0.9.30", files={ From 029c0cc784168ebb07b6d0d1e77cc221db6d0e05 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 12:08:14 +0530 Subject: [PATCH 5/7] style: format code --- parachain/kylin.star | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/parachain/kylin.star b/parachain/kylin.star index 9e1075a..2feafdc 100644 --- a/parachain/kylin.star +++ b/parachain/kylin.star @@ -1,16 +1,15 @@ -def run_kylin(plan,args): - - exec_command = ["--base-path=/kylin/data","--chain=dev","--ws-external","--rpc-external","--rpc-cors=all","--name=parachain-2010-0","--collator","--rpc-methods=unsafe","--force-authoring","--execution=wasm","--alice","--node-key=52194369e4c881e4157b74fd00dff4241e50b8100b823273e25c868a70e5cde8","--","--chain=/app/rococo-local.json","--execution=wasm"] +def run_kylin(plan, args): + exec_command = ["--base-path=/kylin/data", "--chain=dev", "--ws-external", "--rpc-external", "--rpc-cors=all", "--name=parachain-2010-0", "--collator", "--rpc-methods=unsafe", "--force-authoring", "--execution=wasm", "--alice", "--node-key=52194369e4c881e4157b74fd00dff4241e50b8100b823273e25c868a70e5cde8", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] plan.add_service( - name="kylin", - config= ServiceConfig( + name = "kylin", + config = ServiceConfig( image = "kylinnetworks/kylin-collator:ro-v0.9.30", - files={ - "/app":"output" + files = { + "/app": "output", }, ports = { - "parachain" : PortSpec(9944, transport_protocol="TCP"), + "parachain": PortSpec(9944, transport_protocol = "TCP"), }, - cmd=exec_command - ) - ) \ No newline at end of file + cmd = exec_command, + ), + ) From 88174042b580e9a201291eafd058133b67504bac Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 12:36:19 +0530 Subject: [PATCH 6/7] style: code format --- parachain/kylin.star | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/parachain/kylin.star b/parachain/kylin.star index 2feafdc..994c746 100644 --- a/parachain/kylin.star +++ b/parachain/kylin.star @@ -1,5 +1,21 @@ def run_kylin(plan, args): - exec_command = ["--base-path=/kylin/data", "--chain=dev", "--ws-external", "--rpc-external", "--rpc-cors=all", "--name=parachain-2010-0", "--collator", "--rpc-methods=unsafe", "--force-authoring", "--execution=wasm", "--alice", "--node-key=52194369e4c881e4157b74fd00dff4241e50b8100b823273e25c868a70e5cde8", "--", "--chain=/app/rococo-local.json", "--execution=wasm"] + exec_command = [ + "--base-path=/kylin/data", + "--chain=dev", + "--ws-external", + "--rpc-external", + "--rpc-cors=all", + "--name=parachain-2010-0", + "--collator", + "--rpc-methods=unsafe", + "--force-authoring", + "--execution=wasm", + "--alice", + "--node-key=52194369e4c881e4157b74fd00dff4241e50b8100b823273e25c868a70e5cde8", + "--", + "--chain=/app/rococo-local.json", + "--execution=wasm", + ] plan.add_service( name = "kylin", config = ServiceConfig( From b7e6e2641fe3a9b4142db9e5fad716e321258e13 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 12:52:05 +0530 Subject: [PATCH 7/7] fix: fix upload file path --- parachain/kylin.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parachain/kylin.star b/parachain/kylin.star index 994c746..e55b7fe 100644 --- a/parachain/kylin.star +++ b/parachain/kylin.star @@ -21,7 +21,7 @@ def run_kylin(plan, args): config = ServiceConfig( image = "kylinnetworks/kylin-collator:ro-v0.9.30", files = { - "/app": "output", + "/app": "configs", }, ports = { "parachain": PortSpec(9944, transport_protocol = "TCP"),