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.

44 lines
1.1 KiB

  1. syntax = "proto3";
  2. package tendermint.rpc.grpc;
  3. option go_package = "github.com/tendermint/tendermint/rpc/grpc;coregrpc";
  4. import "third_party/proto/gogoproto/gogo.proto";
  5. import "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. message RequestBroadcastTx {
  20. bytes tx = 1;
  21. }
  22. //----------------------------------------
  23. // Response types
  24. message ResponsePing {}
  25. message ResponseBroadcastTx {
  26. tendermint.abci.types.ResponseCheckTx check_tx = 1;
  27. tendermint.abci.types.ResponseDeliverTx deliver_tx = 2;
  28. }
  29. //----------------------------------------
  30. // Service Definition
  31. service BroadcastAPI {
  32. rpc Ping(RequestPing) returns (ResponsePing);
  33. rpc BroadcastTx(RequestBroadcastTx) returns (ResponseBroadcastTx);
  34. }