daml/compiler/repl-service/protos/repl_service.proto
Moritz Kiefer 8d81399c0f
Add an experimental DAML script REPL (#4660)
As mentioned in the title, this is still very experimental and needs
more work before we want to advertise it. However, the code is in a
somewhat reasonable shape, there are tests and I think even in the
current state it is already useful. Also this PR is already getting
very large so I don’t want to hold off much longer before merging this.

It is included in the SDK but hidden from `damlc --help` and `daml
--help` until the most pressing issues are addressed (primarily around
making sure that it doesn’t just shut down if you have a type error
and better error messages in general).

changelog_begin
changelog_end
2020-02-24 11:06:27 +01:00

31 lines
632 B
Protocol Buffer

// Copyright (c) 2020 The DAML Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
syntax = "proto3";
option java_multiple_files = true;
option java_package = "com.digitalasset.daml.lf.repl";
option java_outer_classname = "ReplServiceProto";
package replservice;
service ReplService {
rpc LoadPackage (LoadPackageRequest) returns (LoadPackageResponse);
rpc RunScript (RunScriptRequest) returns (RunScriptResponse);
}
message LoadPackageRequest {
bytes package = 1;
}
message LoadPackageResponse {
}
message RunScriptRequest {
bytes daml_lf_1 = 1;
string minor = 2;
}
message RunScriptResponse {
}