Files
bdledger-apis/bdchain/api/common.proto

29 lines
815 B
Protocol Buffer
Raw Normal View History

2018-09-06 18:36:06 +08:00
syntax = "proto3";
2018-09-07 10:28:07 +08:00
2018-09-09 19:13:05 +08:00
package bdchain.api;
2018-09-07 12:53:15 +08:00
option go_package = "bdchain/api/grpc/common";
2018-09-11 22:16:43 +08:00
option java_package = "bdchain.api.grpc";
2018-09-11 21:56:25 +08:00
option java_outer_classname = "CommonProto";
2018-09-07 12:53:15 +08:00
option java_multiple_files = true;
2018-09-06 18:36:06 +08:00
2018-10-08 18:36:20 +08:00
message Error {
2018-10-08 21:38:12 +08:00
string code = 1; // One of a server-defined set of error codes.
string message = 2; // A human-readable representation of the error.
string target = 3; // The target of the error.
repeated Error details = 4; // An array of details about specific errors that led to this reported error.
2018-10-08 18:36:20 +08:00
}
2018-10-08 19:20:40 +08:00
message ClientVersionResponse {
2018-10-08 21:38:12 +08:00
Error error = 1;
string version = 2; // 节点客户端版本
2018-10-08 19:20:40 +08:00
}
2018-09-09 19:13:05 +08:00
/* 事务类型 */
enum TransactionType {
2018-10-08 21:38:12 +08:00
RECORD = 0; // 通用数据记录
MESSAGE = 1; // 消息
CONTRACT_CREATION = 2; // 合约创建
CONTRACT_INVOCATION = 3; // 合约调用
2018-09-06 18:36:06 +08:00
}