bdledger-apis/bdchain/api/common.proto

22 lines
526 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
2018-10-18 04:09:22 +00:00
option go_package = "bdchain/sdk/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 11:20:40 +00:00
message ClientVersionResponse {
string version = 1; // 节点客户端版本
2018-10-08 11:20:40 +00:00
}
2018-09-09 11:13:05 +00:00
/* 事务类型 */
enum TransactionType {
2018-10-08 13:38:12 +00:00
RECORD = 0; // 通用数据记录
MESSAGE = 1; // 消息
CONTRACT_CREATION = 2; // 合约创建
CONTRACT_INVOCATION = 3; // 合约调用
2018-11-27 13:13:44 +00:00
CONTRACT_STATUS = 4; // 合约状态
2018-09-06 10:36:06 +00:00
}