github.com/franono/tendermint@v0.32.2-0.20200527150959-749313264ce9/rpc/grpc/types.proto (about)

     1  syntax = "proto3";
     2  package tendermint.rpc.grpc;
     3  option  go_package = "github.com/franono/tendermint/rpc/grpc;coregrpc";
     4  
     5  import "third_party/proto/gogoproto/gogo.proto";
     6  import "abci/types/types.proto";
     7  
     8  option (gogoproto.marshaler_all)        = true;
     9  option (gogoproto.unmarshaler_all)      = true;
    10  option (gogoproto.sizer_all)            = true;
    11  option (gogoproto.goproto_registration) = true;
    12  
    13  
    14  //----------------------------------------
    15  // Message types
    16  
    17  //----------------------------------------
    18  // Request types
    19  
    20  message RequestPing {}
    21  
    22  message RequestBroadcastTx {
    23    bytes tx = 1;
    24  }
    25  
    26  //----------------------------------------
    27  // Response types
    28  
    29  message ResponsePing {}
    30  
    31  message ResponseBroadcastTx {
    32    tendermint.abci.types.ResponseCheckTx   check_tx   = 1;
    33    tendermint.abci.types.ResponseDeliverTx deliver_tx = 2;
    34  }
    35  
    36  //----------------------------------------
    37  // Service Definition
    38  
    39  service BroadcastAPI {
    40    rpc Ping(RequestPing) returns (ResponsePing);
    41    rpc BroadcastTx(RequestBroadcastTx) returns (ResponseBroadcastTx);
    42  }