-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into DIVE-190-Localnet-setup-for-Kintsugi-BTC-Kusama
- Loading branch information
Showing
25 changed files
with
228 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
parachain = import_module("./parachain/parachain.star") | ||
relay_chain = import_module("./relaychain/relay-chain.star") | ||
litentry = import_module("./parachain/litentry.star") | ||
clover = import_module("./parachain/clover.star") | ||
|
||
def run(plan, args): | ||
plan.upload_files(src = "./parachain/static_files/configs", name = "configs") | ||
service_details = {"relaychains": {}, "parachains": {}} | ||
if args["chain-type"] == "local": | ||
relay_chain.spawn_multiple_relay(plan, 2) | ||
litentry.run_litentry(plan) | ||
service_details["relaychains"] = relay_chain.start_relay_chains_local(plan, args) | ||
service_details["parachains"] = clover.run_clover(plan) | ||
|
||
else: | ||
relay_chain.start_relay_chain(plan, args) | ||
|
||
return service_details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
def run_altair(plan): | ||
exec_command = [ | ||
"--chain=altair-local", | ||
"--chain=altair-local", | ||
"--rpc-port=9933", | ||
"--rpc-external", | ||
"--rpc-cors=all", | ||
"--rpc-methods=unsafe", | ||
"--execution=wasm", | ||
"--tmp", | ||
"--", | ||
"--chain=/app/rococo-local.json", | ||
"--execution=wasm" | ||
"--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" | ||
"/app": "configs", | ||
}, | ||
ports = { | ||
"9944": PortSpec(9944, transport_protocol="TCP"), | ||
"9933": PortSpec(9933, transport_protocol="TCP") | ||
"ws": PortSpec(9944, transport_protocol = "TCP"), | ||
"rpc": PortSpec(9933, transport_protocol = "TCP"), | ||
}, | ||
public_ports = { | ||
"9944": PortSpec(9432, transport_protocol="TCP"), | ||
"9933": PortSpec(9431, transport_protocol="TCP") | ||
|
||
"ws": PortSpec(9432, transport_protocol = "TCP"), | ||
"rpc": PortSpec(9431, transport_protocol = "TCP"), | ||
}, | ||
cmd = exec_command, | ||
) | ||
plan.add_service(name="altair-node", config=altair_service_config) | ||
plan.add_service(name = "altair-node", config = altair_service_config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
def run_clover(plan): | ||
exec_command = [ | ||
"--chain=dev", | ||
"--rpc-port=9933", | ||
"--rpc-external", | ||
"--rpc-cors=all", | ||
"--rpc-methods=unsafe", | ||
"--execution=wasm", | ||
"--tmp", | ||
"--unsafe-ws-external", | ||
"--", | ||
"--chain=/app/rococo-local.json", | ||
"--execution=wasm" | ||
] | ||
clover_service_config = ServiceConfig( | ||
image = "cloverio/clover-para:v0.1.24", | ||
files = { | ||
"/app":"configs" | ||
}, | ||
ports = { | ||
"ws": PortSpec(9944, transport_protocol="TCP"), | ||
"tcp": PortSpec(9933, transport_protocol="TCP") | ||
}, | ||
cmd = exec_command, | ||
entrypoint=["/opt/clover/bin/clover"] | ||
) | ||
|
||
service_details = plan.add_service(name="clover-node", config=clover_service_config) | ||
|
||
return service_details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
def interrelay_run(plan,args): | ||
|
||
exec_command = [ "bin/sh","-c","/usr/local/bin/interbtc-parachain --chain=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"] | ||
def interrelay_run(plan, args): | ||
exec_command = ["bin/sh", "-c", "/usr/local/bin/interbtc-parachain --chain=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"] | ||
parachain = plan.add_service( | ||
name="interrelay", | ||
config= ServiceConfig( | ||
name = "interrelay", | ||
config = ServiceConfig( | ||
image = "interlayhq/interbtc:latest", | ||
files={ | ||
"/app":"configs" | ||
files = { | ||
"/app": "configs", | ||
}, | ||
ports = { | ||
"parachain" : PortSpec(9944, transport_protocol="TCP"), | ||
"ws": PortSpec(9944, transport_protocol = "TCP"), | ||
}, | ||
entrypoint=exec_command | ||
) | ||
entrypoint = exec_command, | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
def run_kilt(plan): | ||
|
||
exec_command = [ | ||
"--chain=dev", | ||
"--alice", | ||
"--rpc-port=9933", | ||
"--rpc-external", | ||
"--rpc-cors=all", | ||
"--rpc-methods=unsafe", | ||
"--execution=wasm", | ||
"--tmp", | ||
"--", | ||
"--chain=/app/rococo-local.json", | ||
"--execution=wasm" | ||
"--chain=dev", | ||
"--alice", | ||
"--rpc-port=9933", | ||
"--rpc-external", | ||
"--rpc-cors=all", | ||
"--rpc-methods=unsafe", | ||
"--execution=wasm", | ||
"--tmp", | ||
"--", | ||
"--chain=/app/rococo-local.json", | ||
"--execution=wasm", | ||
] | ||
|
||
kilt_service_config = ServiceConfig( | ||
image = "kiltprotocol/kilt-node:latest", | ||
files = { | ||
"/app":"config" | ||
"/app": "config", | ||
}, | ||
ports = { | ||
"9944": PortSpec(9944, transport_protocol="TCP"), | ||
"9933": PortSpec(9933, transport_protocol="TCP") | ||
"ws": PortSpec(9944, transport_protocol = "TCP"), | ||
"rpc": PortSpec(9933, transport_protocol = "TCP"), | ||
}, | ||
public_ports = { | ||
"9944": PortSpec(9432, transport_protocol="TCP"), | ||
"9933": PortSpec(9431, transport_protocol="TCP") | ||
|
||
"ws": PortSpec(9432, transport_protocol = "TCP"), | ||
"rpc": PortSpec(9431, transport_protocol = "TCP"), | ||
}, | ||
cmd = exec_command, | ||
) | ||
plan.add_service(name="kilt-node", config=kilt_service_config) | ||
plan.add_service(name = "kilt-node", config = kilt_service_config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.