diff --git a/parachain/pendulum.star b/parachain/pendulum.star new file mode 100644 index 0000000..71320dd --- /dev/null +++ b/parachain/pendulum.star @@ -0,0 +1,28 @@ +def run_pendulum(plan): + exec_command = [ + "--chain=dev", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--tmp", + "--", + "--wasm-execution=compiled", + "--chain=/app/rococo-local.json" + ] + pendulum_service_config = ServiceConfig( + image = "pendulumchain/pendulum-collator:latest", + files = { + "/app": "configs", + }, + 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 = "pendulum-node", config = pendulum_service_config)