You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

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