github.com/evdatsion/aphelion-dpos-bft@v0.32.1/libs/common/types.proto (about)

     1  syntax = "proto3";
     2  package common;
     3  
     4  import "github.com/gogo/protobuf/gogoproto/gogo.proto";
     5  
     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  //----------------------------------------
    16  // Abstract types
    17  
    18  // Define these here for compatibility but use tmlibs/common.KVPair.
    19  message KVPair {
    20    bytes key = 1;
    21    bytes value = 2;
    22  }
    23  
    24  // Define these here for compatibility but use tmlibs/common.KI64Pair.
    25  message KI64Pair {
    26    bytes key = 1;
    27    int64 value = 2;
    28  }