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.

37 lines
1.6 KiB

  1. syntax = "proto3";
  2. package tendermint.types;
  3. option go_package = "github.com/tendermint/tendermint/proto/tendermint/types";
  4. import "gogoproto/gogo.proto";
  5. import "tendermint/types/types.proto";
  6. import "google/protobuf/timestamp.proto";
  7. message CanonicalBlockID {
  8. bytes hash = 1;
  9. CanonicalPartSetHeader part_set_header = 2 [(gogoproto.nullable) = false];
  10. }
  11. message CanonicalPartSetHeader {
  12. uint32 total = 1;
  13. bytes hash = 2;
  14. }
  15. message CanonicalProposal {
  16. SignedMsgType type = 1; // type alias for byte
  17. sfixed64 height = 2; // canonicalization requires fixed size encoding here
  18. sfixed64 round = 3; // canonicalization requires fixed size encoding here
  19. int64 pol_round = 4 [(gogoproto.customname) = "POLRound"];
  20. CanonicalBlockID block_id = 5 [(gogoproto.customname) = "BlockID"];
  21. google.protobuf.Timestamp timestamp = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
  22. string chain_id = 7 [(gogoproto.customname) = "ChainID"];
  23. }
  24. message CanonicalVote {
  25. SignedMsgType type = 1; // type alias for byte
  26. sfixed64 height = 2; // canonicalization requires fixed size encoding here
  27. sfixed64 round = 3; // canonicalization requires fixed size encoding here
  28. CanonicalBlockID block_id = 4 [(gogoproto.customname) = "BlockID"];
  29. google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
  30. string chain_id = 6 [(gogoproto.customname) = "ChainID"];
  31. }