github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/types/canonical.proto (about)

     1  syntax = "proto3";
     2  package seitendermint.types;
     3  
     4  option go_package = "github.com/ari-anchor/sei-tendermint/proto/tendermint/types";
     5  
     6  import "gogoproto/gogo.proto";
     7  import "tendermint/types/types.proto";
     8  import "google/protobuf/timestamp.proto";
     9  
    10  message CanonicalBlockID {
    11    bytes                  hash            = 1;
    12    CanonicalPartSetHeader part_set_header = 2 [(gogoproto.nullable) = false];
    13  }
    14  
    15  message CanonicalPartSetHeader {
    16    uint32 total = 1;
    17    bytes  hash  = 2;
    18  }
    19  
    20  message CanonicalProposal {
    21    SignedMsgType             type      = 1;  // type alias for byte
    22    sfixed64                  height    = 2;  // canonicalization requires fixed size encoding here
    23    sfixed64                  round     = 3;  // canonicalization requires fixed size encoding here
    24    int64                     pol_round = 4 [(gogoproto.customname) = "POLRound"];
    25    CanonicalBlockID          block_id  = 5 [(gogoproto.customname) = "BlockID"];
    26    google.protobuf.Timestamp timestamp = 6 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
    27    string                    chain_id  = 7 [(gogoproto.customname) = "ChainID"];
    28  }
    29  
    30  message CanonicalVote {
    31    SignedMsgType             type      = 1;  // type alias for byte
    32    sfixed64                  height    = 2;  // canonicalization requires fixed size encoding here
    33    sfixed64                  round     = 3;  // canonicalization requires fixed size encoding here
    34    CanonicalBlockID          block_id  = 4 [(gogoproto.customname) = "BlockID"];
    35    google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
    36    string                    chain_id  = 6 [(gogoproto.customname) = "ChainID"];
    37  }
    38  
    39  // CanonicalVoteExtension provides us a way to serialize a vote extension from
    40  // a particular validator such that we can sign over those serialized bytes.
    41  message CanonicalVoteExtension {
    42    bytes    extension = 1;
    43    sfixed64 height    = 2;
    44    sfixed64 round     = 3;
    45    string   chain_id  = 4;
    46  }