bdledger-apis/bdchain/api/common.proto

29 lines
835 B
Protocol Buffer
Raw Normal View History

2018-09-06 10:36:06 +00:00
syntax = "proto3";
2018-09-07 02:28:07 +00:00
2018-09-09 11:13:05 +00:00
package bdchain.api;
2018-09-07 04:53:15 +00:00
option go_package = "bdchain/api/grpc/common";
2018-09-11 14:16:43 +00:00
option java_package = "bdchain.api.grpc";
2018-09-11 13:56:25 +00:00
option java_outer_classname = "CommonProto";
2018-09-07 04:53:15 +00:00
option java_multiple_files = true;
2018-09-06 10:36:06 +00:00
2018-10-08 10:36:20 +00:00
message Error {
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.
2018-10-08 13:08:58 +00:00
repeated Error details = 4; // An array of details about specific errors that led to this reported error.
2018-10-08 10:36:20 +00:00
}
2018-10-08 11:20:40 +00:00
message ClientVersionResponse {
Error error = 1;
string version = 2; // 节点客户端版本
}
2018-09-09 11:13:05 +00:00
/* 事务类型 */
enum TransactionType {
2018-09-06 10:36:06 +00:00
RECORD = 0; // 通用数据记录
2018-09-09 11:13:05 +00:00
MESSAGE = 1; // 消息
2018-09-06 10:36:06 +00:00
CONTRACT_CREATION = 2; // 合约创建
CONTRACT_INVOCATION = 3; // 合约调用
}