diff --git a/parachain/testnet-setup/acala.star b/parachain/testnet-setup/acala.star new file mode 100644 index 0000000..7fa6fc6 --- /dev/null +++ b/parachain/testnet-setup/acala.star @@ -0,0 +1,27 @@ +def run_acala(plan): + + exec_command = [ + "--chain=mandala-latest", + "--collator", + "--rpc-cors=all", + "--rpc-port=9933", + "--rpc-methods=unsafe", + "--unsafe-rpc-external", + "--unsafe-ws-external", + "--tmp", + "--execution=wasm" + ] + + acala_service_config = ServiceConfig( + image = "acala/mandala-node:latest", + files = { + "/app": "configs", + }, + ports = { + "ws": PortSpec(9944, transport_protocol = "TCP"), + "rpc": PortSpec(9933, transport_protocol = "TCP"), + }, + cmd = exec_command, + entrypoint= ["/usr/local/bin/acala"] + ) + plan.add_service(name = "acala-node", config = acala_service_config)