Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement the kurtosis package to run parallel parachain local #7

Merged
merged 6 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions parachain/kylin.star
Original file line number Diff line number Diff line change
@@ -0,0 +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"]
plan.add_service(
name = "kylin",
config = ServiceConfig(
image = "kylinnetworks/kylin-collator:ro-v0.9.30",
files = {
"/app": "output",
},
ports = {
"parachain": PortSpec(9944, transport_protocol = "TCP"),
},
cmd = exec_command,
),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why kylin is here in with parallel ?

16 changes: 16 additions & 0 deletions parachain/parallel.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
def run_parallel(plan,args):

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change function to verb, Please follow a proper naming convention (run_<chain/node name>)

exec_command = [ "--chain=kerria-dev","--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"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formating

plan.add_service(
name="interrelay",
config= ServiceConfig(
image = "parallelfinance/parallel:latest",
files={
"/app":"output"
},
ports = {
"parachain" : PortSpec(9944, transport_protocol="TCP"),
},
cmd=exec_command
)
)