diff --git a/parachain/mainnet-setup/turing.star b/parachain/mainnet-setup/turing.star new file mode 100644 index 0000000..acd6164 --- /dev/null +++ b/parachain/mainnet-setup/turing.star @@ -0,0 +1,26 @@ +def run_turing(plan): + exec_command = [ + "--chain=turing", + "--rpc-port=9933", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--execution=wasm" + ] + turing_service_config = ServiceConfig( + image = "oaknetwork/turing:latest", + files = { + "/app": "configs", + }, + ports = { + "ws": PortSpec(9944, transport_protocol = "TCP"), + "rpc": PortSpec(9933, transport_protocol = "TCP"), + }, + cmd = exec_command, + entrypoint = ["./oak-collator"] + ) + + service_details = plan.add_service(name = "turing-node", config = turing_service_config) + + return service_details