github.com/evdatsion/aphelion-dpos-bft@v0.32.1/rpc/grpc/types.proto (about)

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