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.

43 lines
982 B

  1. syntax = "proto3";
  2. package types;
  3. // This file is copied from http://github.com/tendermint/tmsp
  4. //----------------------------------------
  5. // Message types
  6. enum MessageType {
  7. NullMessage = 0x00;
  8. Echo = 0x01;
  9. Flush = 0x02;
  10. Info = 0x03;
  11. SetOption = 0x04;
  12. Exception = 0x05;
  13. AppendTx = 0x11;
  14. CheckTx = 0x12;
  15. GetHash = 0x13;
  16. Query = 0x14;
  17. }
  18. //----------------------------------------
  19. // Request types
  20. message Request {
  21. MessageType type = 1;
  22. bytes data = 2;
  23. string key = 3;
  24. string value = 4;
  25. }
  26. //----------------------------------------
  27. // Response types
  28. message Response {
  29. MessageType type = 1;
  30. bytes data = 2;
  31. uint32 code = 3;
  32. string error = 4;
  33. string log = 5;
  34. }