bdledger-apis/bdchain/api/common.proto
2018-10-08 18:36:20 +08:00

23 lines
620 B
Protocol Buffer

syntax = "proto3";
package bdchain.api;
option go_package = "bdchain/api/grpc/common";
option java_package = "bdchain.api.grpc";
option java_outer_classname = "CommonProto";
option java_multiple_files = true;
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.
}
/* 事务类型 */
enum TransactionType {
RECORD = 0; // 通用数据记录
MESSAGE = 1; // 消息
CONTRACT_CREATION = 2; // 合约创建
CONTRACT_INVOCATION = 3; // 合约调用
}