github.com/okex/exchain@v1.8.0/libs/tendermint/rpc/grpc/types.proto (about)

     1  syntax = "proto3";
     2  package tendermint.rpc.grpc;
     3  option  go_package = "github.com/tendermint/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  // Generate tests
    13  option (gogoproto.populate_all) = true;
    14  option (gogoproto.equal_all)    = true;
    15  option (gogoproto.testgen_all)  = true;
    16  //----------------------------------------
    17  // Message types
    18  
    19  //----------------------------------------
    20  // Request types
    21  
    22  message RequestPing {}
    23  
    24  message RequestBroadcastTx {
    25    bytes tx = 1;
    26  }
    27  
    28  //----------------------------------------
    29  // Response types
    30  
    31  message ResponsePing {}
    32  
    33  message ResponseBroadcastTx {
    34    tendermint.abci.types.ResponseCheckTx   check_tx   = 1;
    35    tendermint.abci.types.ResponseDeliverTx deliver_tx = 2;
    36  }
    37  
    38  //----------------------------------------
    39  // Service Definition
    40  
    41  service BroadcastAPI {
    42    rpc Ping(RequestPing) returns (ResponsePing);
    43    rpc BroadcastTx(RequestBroadcastTx) returns (ResponseBroadcastTx);
    44  }