github.com/turingchain2020/turingchain@v1.1.21/types/proto/common.proto (about)

     1  syntax = "proto3";
     2  
     3  package types;
     4  option go_package = "github.com/turingchain2020/turingchain/types";
     5  
     6  message Reply {
     7      bool  isOk = 1;
     8      bytes msg  = 2;
     9  }
    10  
    11  message ReqString {
    12      string data = 1;
    13  }
    14  
    15  message ReplyString {
    16      string data = 1;
    17  }
    18  
    19  message ReplyStrings {
    20      repeated string datas = 1;
    21  }
    22  
    23  message ReqInt {
    24      int64 height = 1;
    25  }
    26  
    27  message Int64 {
    28      int64 data = 1;
    29  }
    30  
    31  message ReqHash {
    32      bytes hash    = 1;
    33      bool  upgrade = 2;
    34  }
    35  
    36  message ReplyHash {
    37      bytes hash = 1;
    38  }
    39  
    40  message ReqNil {}
    41  
    42  message ReqHashes {
    43      repeated bytes hashes = 1;
    44  }
    45  
    46  message ReplyHashes {
    47      repeated bytes hashes = 1;
    48  }
    49  
    50  message KeyValue {
    51      bytes key   = 1;
    52      bytes value = 2;
    53  }
    54  
    55  message TxHash {
    56      string hash = 1;
    57  }
    58  
    59  message TimeStatus {
    60      string ntpTime   = 1;
    61      string localTime = 2;
    62      int64  diff      = 3;
    63  }
    64  
    65  message ReqKey {
    66      bytes key = 1;
    67  }
    68  
    69  message ReqRandHash {
    70      string execName = 1;
    71      int64  height   = 2;
    72      int64  blockNum = 3;
    73      bytes  hash     = 4;
    74  }
    75  
    76  /**
    77   *当前软件版本信息
    78   */
    79  message VersionInfo {
    80      string title   = 1;
    81      string app     = 2;
    82      string turingchain = 3;
    83      string localDb = 4;
    84      int32  chainID = 5;
    85  }