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.

45 lines
1.0 KiB

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