diff --git a/parachain/kilt.star b/parachain/kilt.star new file mode 100644 index 0000000..66f0360 --- /dev/null +++ b/parachain/kilt.star @@ -0,0 +1,33 @@ +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" + ] + + kilt_service_config = ServiceConfig( + image = "kiltprotocol/kilt-node:latest", + files = { + "/app":"config" + }, + 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="kilt-node", config=kilt_service_config)