github.com/Finschia/finschia-sdk@v0.48.1/client/grpc/ocservice/query.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: lbm/base/ostracon/v1/query.proto
     3  
     4  package ocservice
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	types "github.com/Finschia/finschia-sdk/codec/types"
    10  	query "github.com/Finschia/finschia-sdk/types/query"
    11  	_ "github.com/Finschia/ostracon/abci/types"
    12  	types2 "github.com/Finschia/ostracon/proto/ostracon/types"
    13  	grpc1 "github.com/gogo/protobuf/grpc"
    14  	proto "github.com/gogo/protobuf/proto"
    15  	types3 "github.com/tendermint/tendermint/abci/types"
    16  	p2p "github.com/tendermint/tendermint/proto/tendermint/p2p"
    17  	types1 "github.com/tendermint/tendermint/proto/tendermint/types"
    18  	_ "google.golang.org/genproto/googleapis/api/annotations"
    19  	grpc "google.golang.org/grpc"
    20  	codes "google.golang.org/grpc/codes"
    21  	status "google.golang.org/grpc/status"
    22  	io "io"
    23  	math "math"
    24  	math_bits "math/bits"
    25  )
    26  
    27  // Reference imports to suppress errors if they are not otherwise used.
    28  var _ = proto.Marshal
    29  var _ = fmt.Errorf
    30  var _ = math.Inf
    31  
    32  // This is a compile-time assertion to ensure that this generated file
    33  // is compatible with the proto package it is being compiled against.
    34  // A compilation error at this line likely means your copy of the
    35  // proto package needs to be updated.
    36  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    37  
    38  // GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
    39  type GetValidatorSetByHeightRequest struct {
    40  	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
    41  	// pagination defines an pagination for the request.
    42  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
    43  }
    44  
    45  func (m *GetValidatorSetByHeightRequest) Reset()         { *m = GetValidatorSetByHeightRequest{} }
    46  func (m *GetValidatorSetByHeightRequest) String() string { return proto.CompactTextString(m) }
    47  func (*GetValidatorSetByHeightRequest) ProtoMessage()    {}
    48  func (*GetValidatorSetByHeightRequest) Descriptor() ([]byte, []int) {
    49  	return fileDescriptor_9cad75434dcac7b6, []int{0}
    50  }
    51  func (m *GetValidatorSetByHeightRequest) XXX_Unmarshal(b []byte) error {
    52  	return m.Unmarshal(b)
    53  }
    54  func (m *GetValidatorSetByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    55  	if deterministic {
    56  		return xxx_messageInfo_GetValidatorSetByHeightRequest.Marshal(b, m, deterministic)
    57  	} else {
    58  		b = b[:cap(b)]
    59  		n, err := m.MarshalToSizedBuffer(b)
    60  		if err != nil {
    61  			return nil, err
    62  		}
    63  		return b[:n], nil
    64  	}
    65  }
    66  func (m *GetValidatorSetByHeightRequest) XXX_Merge(src proto.Message) {
    67  	xxx_messageInfo_GetValidatorSetByHeightRequest.Merge(m, src)
    68  }
    69  func (m *GetValidatorSetByHeightRequest) XXX_Size() int {
    70  	return m.Size()
    71  }
    72  func (m *GetValidatorSetByHeightRequest) XXX_DiscardUnknown() {
    73  	xxx_messageInfo_GetValidatorSetByHeightRequest.DiscardUnknown(m)
    74  }
    75  
    76  var xxx_messageInfo_GetValidatorSetByHeightRequest proto.InternalMessageInfo
    77  
    78  func (m *GetValidatorSetByHeightRequest) GetHeight() int64 {
    79  	if m != nil {
    80  		return m.Height
    81  	}
    82  	return 0
    83  }
    84  
    85  func (m *GetValidatorSetByHeightRequest) GetPagination() *query.PageRequest {
    86  	if m != nil {
    87  		return m.Pagination
    88  	}
    89  	return nil
    90  }
    91  
    92  // GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
    93  type GetValidatorSetByHeightResponse struct {
    94  	BlockHeight int64        `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
    95  	Validators  []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
    96  	// pagination defines an pagination for the response.
    97  	Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
    98  }
    99  
   100  func (m *GetValidatorSetByHeightResponse) Reset()         { *m = GetValidatorSetByHeightResponse{} }
   101  func (m *GetValidatorSetByHeightResponse) String() string { return proto.CompactTextString(m) }
   102  func (*GetValidatorSetByHeightResponse) ProtoMessage()    {}
   103  func (*GetValidatorSetByHeightResponse) Descriptor() ([]byte, []int) {
   104  	return fileDescriptor_9cad75434dcac7b6, []int{1}
   105  }
   106  func (m *GetValidatorSetByHeightResponse) XXX_Unmarshal(b []byte) error {
   107  	return m.Unmarshal(b)
   108  }
   109  func (m *GetValidatorSetByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   110  	if deterministic {
   111  		return xxx_messageInfo_GetValidatorSetByHeightResponse.Marshal(b, m, deterministic)
   112  	} else {
   113  		b = b[:cap(b)]
   114  		n, err := m.MarshalToSizedBuffer(b)
   115  		if err != nil {
   116  			return nil, err
   117  		}
   118  		return b[:n], nil
   119  	}
   120  }
   121  func (m *GetValidatorSetByHeightResponse) XXX_Merge(src proto.Message) {
   122  	xxx_messageInfo_GetValidatorSetByHeightResponse.Merge(m, src)
   123  }
   124  func (m *GetValidatorSetByHeightResponse) XXX_Size() int {
   125  	return m.Size()
   126  }
   127  func (m *GetValidatorSetByHeightResponse) XXX_DiscardUnknown() {
   128  	xxx_messageInfo_GetValidatorSetByHeightResponse.DiscardUnknown(m)
   129  }
   130  
   131  var xxx_messageInfo_GetValidatorSetByHeightResponse proto.InternalMessageInfo
   132  
   133  func (m *GetValidatorSetByHeightResponse) GetBlockHeight() int64 {
   134  	if m != nil {
   135  		return m.BlockHeight
   136  	}
   137  	return 0
   138  }
   139  
   140  func (m *GetValidatorSetByHeightResponse) GetValidators() []*Validator {
   141  	if m != nil {
   142  		return m.Validators
   143  	}
   144  	return nil
   145  }
   146  
   147  func (m *GetValidatorSetByHeightResponse) GetPagination() *query.PageResponse {
   148  	if m != nil {
   149  		return m.Pagination
   150  	}
   151  	return nil
   152  }
   153  
   154  // GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
   155  type GetLatestValidatorSetRequest struct {
   156  	// pagination defines an pagination for the request.
   157  	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
   158  }
   159  
   160  func (m *GetLatestValidatorSetRequest) Reset()         { *m = GetLatestValidatorSetRequest{} }
   161  func (m *GetLatestValidatorSetRequest) String() string { return proto.CompactTextString(m) }
   162  func (*GetLatestValidatorSetRequest) ProtoMessage()    {}
   163  func (*GetLatestValidatorSetRequest) Descriptor() ([]byte, []int) {
   164  	return fileDescriptor_9cad75434dcac7b6, []int{2}
   165  }
   166  func (m *GetLatestValidatorSetRequest) XXX_Unmarshal(b []byte) error {
   167  	return m.Unmarshal(b)
   168  }
   169  func (m *GetLatestValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   170  	if deterministic {
   171  		return xxx_messageInfo_GetLatestValidatorSetRequest.Marshal(b, m, deterministic)
   172  	} else {
   173  		b = b[:cap(b)]
   174  		n, err := m.MarshalToSizedBuffer(b)
   175  		if err != nil {
   176  			return nil, err
   177  		}
   178  		return b[:n], nil
   179  	}
   180  }
   181  func (m *GetLatestValidatorSetRequest) XXX_Merge(src proto.Message) {
   182  	xxx_messageInfo_GetLatestValidatorSetRequest.Merge(m, src)
   183  }
   184  func (m *GetLatestValidatorSetRequest) XXX_Size() int {
   185  	return m.Size()
   186  }
   187  func (m *GetLatestValidatorSetRequest) XXX_DiscardUnknown() {
   188  	xxx_messageInfo_GetLatestValidatorSetRequest.DiscardUnknown(m)
   189  }
   190  
   191  var xxx_messageInfo_GetLatestValidatorSetRequest proto.InternalMessageInfo
   192  
   193  func (m *GetLatestValidatorSetRequest) GetPagination() *query.PageRequest {
   194  	if m != nil {
   195  		return m.Pagination
   196  	}
   197  	return nil
   198  }
   199  
   200  // GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
   201  type GetLatestValidatorSetResponse struct {
   202  	BlockHeight int64        `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
   203  	Validators  []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
   204  	// pagination defines an pagination for the response.
   205  	Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
   206  }
   207  
   208  func (m *GetLatestValidatorSetResponse) Reset()         { *m = GetLatestValidatorSetResponse{} }
   209  func (m *GetLatestValidatorSetResponse) String() string { return proto.CompactTextString(m) }
   210  func (*GetLatestValidatorSetResponse) ProtoMessage()    {}
   211  func (*GetLatestValidatorSetResponse) Descriptor() ([]byte, []int) {
   212  	return fileDescriptor_9cad75434dcac7b6, []int{3}
   213  }
   214  func (m *GetLatestValidatorSetResponse) XXX_Unmarshal(b []byte) error {
   215  	return m.Unmarshal(b)
   216  }
   217  func (m *GetLatestValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   218  	if deterministic {
   219  		return xxx_messageInfo_GetLatestValidatorSetResponse.Marshal(b, m, deterministic)
   220  	} else {
   221  		b = b[:cap(b)]
   222  		n, err := m.MarshalToSizedBuffer(b)
   223  		if err != nil {
   224  			return nil, err
   225  		}
   226  		return b[:n], nil
   227  	}
   228  }
   229  func (m *GetLatestValidatorSetResponse) XXX_Merge(src proto.Message) {
   230  	xxx_messageInfo_GetLatestValidatorSetResponse.Merge(m, src)
   231  }
   232  func (m *GetLatestValidatorSetResponse) XXX_Size() int {
   233  	return m.Size()
   234  }
   235  func (m *GetLatestValidatorSetResponse) XXX_DiscardUnknown() {
   236  	xxx_messageInfo_GetLatestValidatorSetResponse.DiscardUnknown(m)
   237  }
   238  
   239  var xxx_messageInfo_GetLatestValidatorSetResponse proto.InternalMessageInfo
   240  
   241  func (m *GetLatestValidatorSetResponse) GetBlockHeight() int64 {
   242  	if m != nil {
   243  		return m.BlockHeight
   244  	}
   245  	return 0
   246  }
   247  
   248  func (m *GetLatestValidatorSetResponse) GetValidators() []*Validator {
   249  	if m != nil {
   250  		return m.Validators
   251  	}
   252  	return nil
   253  }
   254  
   255  func (m *GetLatestValidatorSetResponse) GetPagination() *query.PageResponse {
   256  	if m != nil {
   257  		return m.Pagination
   258  	}
   259  	return nil
   260  }
   261  
   262  // Validator is the type for the validator-set.
   263  type Validator struct {
   264  	Address          string     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   265  	PubKey           *types.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
   266  	VotingPower      int64      `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
   267  	ProposerPriority int64      `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"`
   268  }
   269  
   270  func (m *Validator) Reset()         { *m = Validator{} }
   271  func (m *Validator) String() string { return proto.CompactTextString(m) }
   272  func (*Validator) ProtoMessage()    {}
   273  func (*Validator) Descriptor() ([]byte, []int) {
   274  	return fileDescriptor_9cad75434dcac7b6, []int{4}
   275  }
   276  func (m *Validator) XXX_Unmarshal(b []byte) error {
   277  	return m.Unmarshal(b)
   278  }
   279  func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   280  	if deterministic {
   281  		return xxx_messageInfo_Validator.Marshal(b, m, deterministic)
   282  	} else {
   283  		b = b[:cap(b)]
   284  		n, err := m.MarshalToSizedBuffer(b)
   285  		if err != nil {
   286  			return nil, err
   287  		}
   288  		return b[:n], nil
   289  	}
   290  }
   291  func (m *Validator) XXX_Merge(src proto.Message) {
   292  	xxx_messageInfo_Validator.Merge(m, src)
   293  }
   294  func (m *Validator) XXX_Size() int {
   295  	return m.Size()
   296  }
   297  func (m *Validator) XXX_DiscardUnknown() {
   298  	xxx_messageInfo_Validator.DiscardUnknown(m)
   299  }
   300  
   301  var xxx_messageInfo_Validator proto.InternalMessageInfo
   302  
   303  func (m *Validator) GetAddress() string {
   304  	if m != nil {
   305  		return m.Address
   306  	}
   307  	return ""
   308  }
   309  
   310  func (m *Validator) GetPubKey() *types.Any {
   311  	if m != nil {
   312  		return m.PubKey
   313  	}
   314  	return nil
   315  }
   316  
   317  func (m *Validator) GetVotingPower() int64 {
   318  	if m != nil {
   319  		return m.VotingPower
   320  	}
   321  	return 0
   322  }
   323  
   324  func (m *Validator) GetProposerPriority() int64 {
   325  	if m != nil {
   326  		return m.ProposerPriority
   327  	}
   328  	return 0
   329  }
   330  
   331  // GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
   332  type GetBlockByHeightRequest struct {
   333  	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   334  }
   335  
   336  func (m *GetBlockByHeightRequest) Reset()         { *m = GetBlockByHeightRequest{} }
   337  func (m *GetBlockByHeightRequest) String() string { return proto.CompactTextString(m) }
   338  func (*GetBlockByHeightRequest) ProtoMessage()    {}
   339  func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int) {
   340  	return fileDescriptor_9cad75434dcac7b6, []int{5}
   341  }
   342  func (m *GetBlockByHeightRequest) XXX_Unmarshal(b []byte) error {
   343  	return m.Unmarshal(b)
   344  }
   345  func (m *GetBlockByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   346  	if deterministic {
   347  		return xxx_messageInfo_GetBlockByHeightRequest.Marshal(b, m, deterministic)
   348  	} else {
   349  		b = b[:cap(b)]
   350  		n, err := m.MarshalToSizedBuffer(b)
   351  		if err != nil {
   352  			return nil, err
   353  		}
   354  		return b[:n], nil
   355  	}
   356  }
   357  func (m *GetBlockByHeightRequest) XXX_Merge(src proto.Message) {
   358  	xxx_messageInfo_GetBlockByHeightRequest.Merge(m, src)
   359  }
   360  func (m *GetBlockByHeightRequest) XXX_Size() int {
   361  	return m.Size()
   362  }
   363  func (m *GetBlockByHeightRequest) XXX_DiscardUnknown() {
   364  	xxx_messageInfo_GetBlockByHeightRequest.DiscardUnknown(m)
   365  }
   366  
   367  var xxx_messageInfo_GetBlockByHeightRequest proto.InternalMessageInfo
   368  
   369  func (m *GetBlockByHeightRequest) GetHeight() int64 {
   370  	if m != nil {
   371  		return m.Height
   372  	}
   373  	return 0
   374  }
   375  
   376  // GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
   377  type GetBlockByHeightResponse struct {
   378  	BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
   379  	Block   *types2.Block   `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
   380  }
   381  
   382  func (m *GetBlockByHeightResponse) Reset()         { *m = GetBlockByHeightResponse{} }
   383  func (m *GetBlockByHeightResponse) String() string { return proto.CompactTextString(m) }
   384  func (*GetBlockByHeightResponse) ProtoMessage()    {}
   385  func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int) {
   386  	return fileDescriptor_9cad75434dcac7b6, []int{6}
   387  }
   388  func (m *GetBlockByHeightResponse) XXX_Unmarshal(b []byte) error {
   389  	return m.Unmarshal(b)
   390  }
   391  func (m *GetBlockByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   392  	if deterministic {
   393  		return xxx_messageInfo_GetBlockByHeightResponse.Marshal(b, m, deterministic)
   394  	} else {
   395  		b = b[:cap(b)]
   396  		n, err := m.MarshalToSizedBuffer(b)
   397  		if err != nil {
   398  			return nil, err
   399  		}
   400  		return b[:n], nil
   401  	}
   402  }
   403  func (m *GetBlockByHeightResponse) XXX_Merge(src proto.Message) {
   404  	xxx_messageInfo_GetBlockByHeightResponse.Merge(m, src)
   405  }
   406  func (m *GetBlockByHeightResponse) XXX_Size() int {
   407  	return m.Size()
   408  }
   409  func (m *GetBlockByHeightResponse) XXX_DiscardUnknown() {
   410  	xxx_messageInfo_GetBlockByHeightResponse.DiscardUnknown(m)
   411  }
   412  
   413  var xxx_messageInfo_GetBlockByHeightResponse proto.InternalMessageInfo
   414  
   415  func (m *GetBlockByHeightResponse) GetBlockId() *types1.BlockID {
   416  	if m != nil {
   417  		return m.BlockId
   418  	}
   419  	return nil
   420  }
   421  
   422  func (m *GetBlockByHeightResponse) GetBlock() *types2.Block {
   423  	if m != nil {
   424  		return m.Block
   425  	}
   426  	return nil
   427  }
   428  
   429  // GetBlockByHashRequest is the request type for the Query/GetBlockByHash RPC method.
   430  type GetBlockByHashRequest struct {
   431  	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
   432  }
   433  
   434  func (m *GetBlockByHashRequest) Reset()         { *m = GetBlockByHashRequest{} }
   435  func (m *GetBlockByHashRequest) String() string { return proto.CompactTextString(m) }
   436  func (*GetBlockByHashRequest) ProtoMessage()    {}
   437  func (*GetBlockByHashRequest) Descriptor() ([]byte, []int) {
   438  	return fileDescriptor_9cad75434dcac7b6, []int{7}
   439  }
   440  func (m *GetBlockByHashRequest) XXX_Unmarshal(b []byte) error {
   441  	return m.Unmarshal(b)
   442  }
   443  func (m *GetBlockByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   444  	if deterministic {
   445  		return xxx_messageInfo_GetBlockByHashRequest.Marshal(b, m, deterministic)
   446  	} else {
   447  		b = b[:cap(b)]
   448  		n, err := m.MarshalToSizedBuffer(b)
   449  		if err != nil {
   450  			return nil, err
   451  		}
   452  		return b[:n], nil
   453  	}
   454  }
   455  func (m *GetBlockByHashRequest) XXX_Merge(src proto.Message) {
   456  	xxx_messageInfo_GetBlockByHashRequest.Merge(m, src)
   457  }
   458  func (m *GetBlockByHashRequest) XXX_Size() int {
   459  	return m.Size()
   460  }
   461  func (m *GetBlockByHashRequest) XXX_DiscardUnknown() {
   462  	xxx_messageInfo_GetBlockByHashRequest.DiscardUnknown(m)
   463  }
   464  
   465  var xxx_messageInfo_GetBlockByHashRequest proto.InternalMessageInfo
   466  
   467  func (m *GetBlockByHashRequest) GetHash() []byte {
   468  	if m != nil {
   469  		return m.Hash
   470  	}
   471  	return nil
   472  }
   473  
   474  // GetBlockByHashResponse is the response type for the Query/GetBlockByHash RPC method.
   475  type GetBlockByHashResponse struct {
   476  	BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
   477  	Block   *types2.Block   `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
   478  }
   479  
   480  func (m *GetBlockByHashResponse) Reset()         { *m = GetBlockByHashResponse{} }
   481  func (m *GetBlockByHashResponse) String() string { return proto.CompactTextString(m) }
   482  func (*GetBlockByHashResponse) ProtoMessage()    {}
   483  func (*GetBlockByHashResponse) Descriptor() ([]byte, []int) {
   484  	return fileDescriptor_9cad75434dcac7b6, []int{8}
   485  }
   486  func (m *GetBlockByHashResponse) XXX_Unmarshal(b []byte) error {
   487  	return m.Unmarshal(b)
   488  }
   489  func (m *GetBlockByHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   490  	if deterministic {
   491  		return xxx_messageInfo_GetBlockByHashResponse.Marshal(b, m, deterministic)
   492  	} else {
   493  		b = b[:cap(b)]
   494  		n, err := m.MarshalToSizedBuffer(b)
   495  		if err != nil {
   496  			return nil, err
   497  		}
   498  		return b[:n], nil
   499  	}
   500  }
   501  func (m *GetBlockByHashResponse) XXX_Merge(src proto.Message) {
   502  	xxx_messageInfo_GetBlockByHashResponse.Merge(m, src)
   503  }
   504  func (m *GetBlockByHashResponse) XXX_Size() int {
   505  	return m.Size()
   506  }
   507  func (m *GetBlockByHashResponse) XXX_DiscardUnknown() {
   508  	xxx_messageInfo_GetBlockByHashResponse.DiscardUnknown(m)
   509  }
   510  
   511  var xxx_messageInfo_GetBlockByHashResponse proto.InternalMessageInfo
   512  
   513  func (m *GetBlockByHashResponse) GetBlockId() *types1.BlockID {
   514  	if m != nil {
   515  		return m.BlockId
   516  	}
   517  	return nil
   518  }
   519  
   520  func (m *GetBlockByHashResponse) GetBlock() *types2.Block {
   521  	if m != nil {
   522  		return m.Block
   523  	}
   524  	return nil
   525  }
   526  
   527  // GetBlockResultsByHeightRequest is the request type for the Query/GetBlockResultsByHeight RPC method.
   528  type GetBlockResultsByHeightRequest struct {
   529  	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   530  }
   531  
   532  func (m *GetBlockResultsByHeightRequest) Reset()         { *m = GetBlockResultsByHeightRequest{} }
   533  func (m *GetBlockResultsByHeightRequest) String() string { return proto.CompactTextString(m) }
   534  func (*GetBlockResultsByHeightRequest) ProtoMessage()    {}
   535  func (*GetBlockResultsByHeightRequest) Descriptor() ([]byte, []int) {
   536  	return fileDescriptor_9cad75434dcac7b6, []int{9}
   537  }
   538  func (m *GetBlockResultsByHeightRequest) XXX_Unmarshal(b []byte) error {
   539  	return m.Unmarshal(b)
   540  }
   541  func (m *GetBlockResultsByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   542  	if deterministic {
   543  		return xxx_messageInfo_GetBlockResultsByHeightRequest.Marshal(b, m, deterministic)
   544  	} else {
   545  		b = b[:cap(b)]
   546  		n, err := m.MarshalToSizedBuffer(b)
   547  		if err != nil {
   548  			return nil, err
   549  		}
   550  		return b[:n], nil
   551  	}
   552  }
   553  func (m *GetBlockResultsByHeightRequest) XXX_Merge(src proto.Message) {
   554  	xxx_messageInfo_GetBlockResultsByHeightRequest.Merge(m, src)
   555  }
   556  func (m *GetBlockResultsByHeightRequest) XXX_Size() int {
   557  	return m.Size()
   558  }
   559  func (m *GetBlockResultsByHeightRequest) XXX_DiscardUnknown() {
   560  	xxx_messageInfo_GetBlockResultsByHeightRequest.DiscardUnknown(m)
   561  }
   562  
   563  var xxx_messageInfo_GetBlockResultsByHeightRequest proto.InternalMessageInfo
   564  
   565  func (m *GetBlockResultsByHeightRequest) GetHeight() int64 {
   566  	if m != nil {
   567  		return m.Height
   568  	}
   569  	return 0
   570  }
   571  
   572  // GetBlockResultsByHeightResponse is the response type for the Query/GetBlockResultsByHeight RPC method.
   573  type GetBlockResultsByHeightResponse struct {
   574  	Height        int64                       `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   575  	TxsResults    []*types3.ResponseDeliverTx `protobuf:"bytes,2,rep,name=txs_results,json=txsResults,proto3" json:"txs_results,omitempty"`
   576  	ResBeginBlock *types3.ResponseBeginBlock  `protobuf:"bytes,3,opt,name=res_begin_block,json=resBeginBlock,proto3" json:"res_begin_block,omitempty"`
   577  	ResEndBlock   *types3.ResponseEndBlock    `protobuf:"bytes,4,opt,name=res_end_block,json=resEndBlock,proto3" json:"res_end_block,omitempty"`
   578  }
   579  
   580  func (m *GetBlockResultsByHeightResponse) Reset()         { *m = GetBlockResultsByHeightResponse{} }
   581  func (m *GetBlockResultsByHeightResponse) String() string { return proto.CompactTextString(m) }
   582  func (*GetBlockResultsByHeightResponse) ProtoMessage()    {}
   583  func (*GetBlockResultsByHeightResponse) Descriptor() ([]byte, []int) {
   584  	return fileDescriptor_9cad75434dcac7b6, []int{10}
   585  }
   586  func (m *GetBlockResultsByHeightResponse) XXX_Unmarshal(b []byte) error {
   587  	return m.Unmarshal(b)
   588  }
   589  func (m *GetBlockResultsByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   590  	if deterministic {
   591  		return xxx_messageInfo_GetBlockResultsByHeightResponse.Marshal(b, m, deterministic)
   592  	} else {
   593  		b = b[:cap(b)]
   594  		n, err := m.MarshalToSizedBuffer(b)
   595  		if err != nil {
   596  			return nil, err
   597  		}
   598  		return b[:n], nil
   599  	}
   600  }
   601  func (m *GetBlockResultsByHeightResponse) XXX_Merge(src proto.Message) {
   602  	xxx_messageInfo_GetBlockResultsByHeightResponse.Merge(m, src)
   603  }
   604  func (m *GetBlockResultsByHeightResponse) XXX_Size() int {
   605  	return m.Size()
   606  }
   607  func (m *GetBlockResultsByHeightResponse) XXX_DiscardUnknown() {
   608  	xxx_messageInfo_GetBlockResultsByHeightResponse.DiscardUnknown(m)
   609  }
   610  
   611  var xxx_messageInfo_GetBlockResultsByHeightResponse proto.InternalMessageInfo
   612  
   613  func (m *GetBlockResultsByHeightResponse) GetHeight() int64 {
   614  	if m != nil {
   615  		return m.Height
   616  	}
   617  	return 0
   618  }
   619  
   620  func (m *GetBlockResultsByHeightResponse) GetTxsResults() []*types3.ResponseDeliverTx {
   621  	if m != nil {
   622  		return m.TxsResults
   623  	}
   624  	return nil
   625  }
   626  
   627  func (m *GetBlockResultsByHeightResponse) GetResBeginBlock() *types3.ResponseBeginBlock {
   628  	if m != nil {
   629  		return m.ResBeginBlock
   630  	}
   631  	return nil
   632  }
   633  
   634  func (m *GetBlockResultsByHeightResponse) GetResEndBlock() *types3.ResponseEndBlock {
   635  	if m != nil {
   636  		return m.ResEndBlock
   637  	}
   638  	return nil
   639  }
   640  
   641  // GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
   642  type GetLatestBlockRequest struct {
   643  }
   644  
   645  func (m *GetLatestBlockRequest) Reset()         { *m = GetLatestBlockRequest{} }
   646  func (m *GetLatestBlockRequest) String() string { return proto.CompactTextString(m) }
   647  func (*GetLatestBlockRequest) ProtoMessage()    {}
   648  func (*GetLatestBlockRequest) Descriptor() ([]byte, []int) {
   649  	return fileDescriptor_9cad75434dcac7b6, []int{11}
   650  }
   651  func (m *GetLatestBlockRequest) XXX_Unmarshal(b []byte) error {
   652  	return m.Unmarshal(b)
   653  }
   654  func (m *GetLatestBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   655  	if deterministic {
   656  		return xxx_messageInfo_GetLatestBlockRequest.Marshal(b, m, deterministic)
   657  	} else {
   658  		b = b[:cap(b)]
   659  		n, err := m.MarshalToSizedBuffer(b)
   660  		if err != nil {
   661  			return nil, err
   662  		}
   663  		return b[:n], nil
   664  	}
   665  }
   666  func (m *GetLatestBlockRequest) XXX_Merge(src proto.Message) {
   667  	xxx_messageInfo_GetLatestBlockRequest.Merge(m, src)
   668  }
   669  func (m *GetLatestBlockRequest) XXX_Size() int {
   670  	return m.Size()
   671  }
   672  func (m *GetLatestBlockRequest) XXX_DiscardUnknown() {
   673  	xxx_messageInfo_GetLatestBlockRequest.DiscardUnknown(m)
   674  }
   675  
   676  var xxx_messageInfo_GetLatestBlockRequest proto.InternalMessageInfo
   677  
   678  // GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
   679  type GetLatestBlockResponse struct {
   680  	BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
   681  	Block   *types2.Block   `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
   682  }
   683  
   684  func (m *GetLatestBlockResponse) Reset()         { *m = GetLatestBlockResponse{} }
   685  func (m *GetLatestBlockResponse) String() string { return proto.CompactTextString(m) }
   686  func (*GetLatestBlockResponse) ProtoMessage()    {}
   687  func (*GetLatestBlockResponse) Descriptor() ([]byte, []int) {
   688  	return fileDescriptor_9cad75434dcac7b6, []int{12}
   689  }
   690  func (m *GetLatestBlockResponse) XXX_Unmarshal(b []byte) error {
   691  	return m.Unmarshal(b)
   692  }
   693  func (m *GetLatestBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   694  	if deterministic {
   695  		return xxx_messageInfo_GetLatestBlockResponse.Marshal(b, m, deterministic)
   696  	} else {
   697  		b = b[:cap(b)]
   698  		n, err := m.MarshalToSizedBuffer(b)
   699  		if err != nil {
   700  			return nil, err
   701  		}
   702  		return b[:n], nil
   703  	}
   704  }
   705  func (m *GetLatestBlockResponse) XXX_Merge(src proto.Message) {
   706  	xxx_messageInfo_GetLatestBlockResponse.Merge(m, src)
   707  }
   708  func (m *GetLatestBlockResponse) XXX_Size() int {
   709  	return m.Size()
   710  }
   711  func (m *GetLatestBlockResponse) XXX_DiscardUnknown() {
   712  	xxx_messageInfo_GetLatestBlockResponse.DiscardUnknown(m)
   713  }
   714  
   715  var xxx_messageInfo_GetLatestBlockResponse proto.InternalMessageInfo
   716  
   717  func (m *GetLatestBlockResponse) GetBlockId() *types1.BlockID {
   718  	if m != nil {
   719  		return m.BlockId
   720  	}
   721  	return nil
   722  }
   723  
   724  func (m *GetLatestBlockResponse) GetBlock() *types2.Block {
   725  	if m != nil {
   726  		return m.Block
   727  	}
   728  	return nil
   729  }
   730  
   731  // GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
   732  type GetSyncingRequest struct {
   733  }
   734  
   735  func (m *GetSyncingRequest) Reset()         { *m = GetSyncingRequest{} }
   736  func (m *GetSyncingRequest) String() string { return proto.CompactTextString(m) }
   737  func (*GetSyncingRequest) ProtoMessage()    {}
   738  func (*GetSyncingRequest) Descriptor() ([]byte, []int) {
   739  	return fileDescriptor_9cad75434dcac7b6, []int{13}
   740  }
   741  func (m *GetSyncingRequest) XXX_Unmarshal(b []byte) error {
   742  	return m.Unmarshal(b)
   743  }
   744  func (m *GetSyncingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   745  	if deterministic {
   746  		return xxx_messageInfo_GetSyncingRequest.Marshal(b, m, deterministic)
   747  	} else {
   748  		b = b[:cap(b)]
   749  		n, err := m.MarshalToSizedBuffer(b)
   750  		if err != nil {
   751  			return nil, err
   752  		}
   753  		return b[:n], nil
   754  	}
   755  }
   756  func (m *GetSyncingRequest) XXX_Merge(src proto.Message) {
   757  	xxx_messageInfo_GetSyncingRequest.Merge(m, src)
   758  }
   759  func (m *GetSyncingRequest) XXX_Size() int {
   760  	return m.Size()
   761  }
   762  func (m *GetSyncingRequest) XXX_DiscardUnknown() {
   763  	xxx_messageInfo_GetSyncingRequest.DiscardUnknown(m)
   764  }
   765  
   766  var xxx_messageInfo_GetSyncingRequest proto.InternalMessageInfo
   767  
   768  // GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
   769  type GetSyncingResponse struct {
   770  	Syncing bool `protobuf:"varint,1,opt,name=syncing,proto3" json:"syncing,omitempty"`
   771  }
   772  
   773  func (m *GetSyncingResponse) Reset()         { *m = GetSyncingResponse{} }
   774  func (m *GetSyncingResponse) String() string { return proto.CompactTextString(m) }
   775  func (*GetSyncingResponse) ProtoMessage()    {}
   776  func (*GetSyncingResponse) Descriptor() ([]byte, []int) {
   777  	return fileDescriptor_9cad75434dcac7b6, []int{14}
   778  }
   779  func (m *GetSyncingResponse) XXX_Unmarshal(b []byte) error {
   780  	return m.Unmarshal(b)
   781  }
   782  func (m *GetSyncingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   783  	if deterministic {
   784  		return xxx_messageInfo_GetSyncingResponse.Marshal(b, m, deterministic)
   785  	} else {
   786  		b = b[:cap(b)]
   787  		n, err := m.MarshalToSizedBuffer(b)
   788  		if err != nil {
   789  			return nil, err
   790  		}
   791  		return b[:n], nil
   792  	}
   793  }
   794  func (m *GetSyncingResponse) XXX_Merge(src proto.Message) {
   795  	xxx_messageInfo_GetSyncingResponse.Merge(m, src)
   796  }
   797  func (m *GetSyncingResponse) XXX_Size() int {
   798  	return m.Size()
   799  }
   800  func (m *GetSyncingResponse) XXX_DiscardUnknown() {
   801  	xxx_messageInfo_GetSyncingResponse.DiscardUnknown(m)
   802  }
   803  
   804  var xxx_messageInfo_GetSyncingResponse proto.InternalMessageInfo
   805  
   806  func (m *GetSyncingResponse) GetSyncing() bool {
   807  	if m != nil {
   808  		return m.Syncing
   809  	}
   810  	return false
   811  }
   812  
   813  // GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
   814  type GetNodeInfoRequest struct {
   815  }
   816  
   817  func (m *GetNodeInfoRequest) Reset()         { *m = GetNodeInfoRequest{} }
   818  func (m *GetNodeInfoRequest) String() string { return proto.CompactTextString(m) }
   819  func (*GetNodeInfoRequest) ProtoMessage()    {}
   820  func (*GetNodeInfoRequest) Descriptor() ([]byte, []int) {
   821  	return fileDescriptor_9cad75434dcac7b6, []int{15}
   822  }
   823  func (m *GetNodeInfoRequest) XXX_Unmarshal(b []byte) error {
   824  	return m.Unmarshal(b)
   825  }
   826  func (m *GetNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   827  	if deterministic {
   828  		return xxx_messageInfo_GetNodeInfoRequest.Marshal(b, m, deterministic)
   829  	} else {
   830  		b = b[:cap(b)]
   831  		n, err := m.MarshalToSizedBuffer(b)
   832  		if err != nil {
   833  			return nil, err
   834  		}
   835  		return b[:n], nil
   836  	}
   837  }
   838  func (m *GetNodeInfoRequest) XXX_Merge(src proto.Message) {
   839  	xxx_messageInfo_GetNodeInfoRequest.Merge(m, src)
   840  }
   841  func (m *GetNodeInfoRequest) XXX_Size() int {
   842  	return m.Size()
   843  }
   844  func (m *GetNodeInfoRequest) XXX_DiscardUnknown() {
   845  	xxx_messageInfo_GetNodeInfoRequest.DiscardUnknown(m)
   846  }
   847  
   848  var xxx_messageInfo_GetNodeInfoRequest proto.InternalMessageInfo
   849  
   850  // GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method.
   851  type GetNodeInfoResponse struct {
   852  	DefaultNodeInfo    *p2p.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"`
   853  	ApplicationVersion *VersionInfo         `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
   854  }
   855  
   856  func (m *GetNodeInfoResponse) Reset()         { *m = GetNodeInfoResponse{} }
   857  func (m *GetNodeInfoResponse) String() string { return proto.CompactTextString(m) }
   858  func (*GetNodeInfoResponse) ProtoMessage()    {}
   859  func (*GetNodeInfoResponse) Descriptor() ([]byte, []int) {
   860  	return fileDescriptor_9cad75434dcac7b6, []int{16}
   861  }
   862  func (m *GetNodeInfoResponse) XXX_Unmarshal(b []byte) error {
   863  	return m.Unmarshal(b)
   864  }
   865  func (m *GetNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   866  	if deterministic {
   867  		return xxx_messageInfo_GetNodeInfoResponse.Marshal(b, m, deterministic)
   868  	} else {
   869  		b = b[:cap(b)]
   870  		n, err := m.MarshalToSizedBuffer(b)
   871  		if err != nil {
   872  			return nil, err
   873  		}
   874  		return b[:n], nil
   875  	}
   876  }
   877  func (m *GetNodeInfoResponse) XXX_Merge(src proto.Message) {
   878  	xxx_messageInfo_GetNodeInfoResponse.Merge(m, src)
   879  }
   880  func (m *GetNodeInfoResponse) XXX_Size() int {
   881  	return m.Size()
   882  }
   883  func (m *GetNodeInfoResponse) XXX_DiscardUnknown() {
   884  	xxx_messageInfo_GetNodeInfoResponse.DiscardUnknown(m)
   885  }
   886  
   887  var xxx_messageInfo_GetNodeInfoResponse proto.InternalMessageInfo
   888  
   889  func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *p2p.DefaultNodeInfo {
   890  	if m != nil {
   891  		return m.DefaultNodeInfo
   892  	}
   893  	return nil
   894  }
   895  
   896  func (m *GetNodeInfoResponse) GetApplicationVersion() *VersionInfo {
   897  	if m != nil {
   898  		return m.ApplicationVersion
   899  	}
   900  	return nil
   901  }
   902  
   903  // VersionInfo is the type for the GetNodeInfoResponse message.
   904  type VersionInfo struct {
   905  	Name      string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   906  	AppName   string    `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
   907  	Version   string    `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
   908  	GitCommit string    `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
   909  	BuildTags string    `protobuf:"bytes,5,opt,name=build_tags,json=buildTags,proto3" json:"build_tags,omitempty"`
   910  	GoVersion string    `protobuf:"bytes,6,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
   911  	BuildDeps []*Module `protobuf:"bytes,7,rep,name=build_deps,json=buildDeps,proto3" json:"build_deps,omitempty"`
   912  	// Since: cosmos-sdk 0.43
   913  	LbmSdkVersion string `protobuf:"bytes,8,opt,name=lbm_sdk_version,json=lbmSdkVersion,proto3" json:"lbm_sdk_version,omitempty"`
   914  }
   915  
   916  func (m *VersionInfo) Reset()         { *m = VersionInfo{} }
   917  func (m *VersionInfo) String() string { return proto.CompactTextString(m) }
   918  func (*VersionInfo) ProtoMessage()    {}
   919  func (*VersionInfo) Descriptor() ([]byte, []int) {
   920  	return fileDescriptor_9cad75434dcac7b6, []int{17}
   921  }
   922  func (m *VersionInfo) XXX_Unmarshal(b []byte) error {
   923  	return m.Unmarshal(b)
   924  }
   925  func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   926  	if deterministic {
   927  		return xxx_messageInfo_VersionInfo.Marshal(b, m, deterministic)
   928  	} else {
   929  		b = b[:cap(b)]
   930  		n, err := m.MarshalToSizedBuffer(b)
   931  		if err != nil {
   932  			return nil, err
   933  		}
   934  		return b[:n], nil
   935  	}
   936  }
   937  func (m *VersionInfo) XXX_Merge(src proto.Message) {
   938  	xxx_messageInfo_VersionInfo.Merge(m, src)
   939  }
   940  func (m *VersionInfo) XXX_Size() int {
   941  	return m.Size()
   942  }
   943  func (m *VersionInfo) XXX_DiscardUnknown() {
   944  	xxx_messageInfo_VersionInfo.DiscardUnknown(m)
   945  }
   946  
   947  var xxx_messageInfo_VersionInfo proto.InternalMessageInfo
   948  
   949  func (m *VersionInfo) GetName() string {
   950  	if m != nil {
   951  		return m.Name
   952  	}
   953  	return ""
   954  }
   955  
   956  func (m *VersionInfo) GetAppName() string {
   957  	if m != nil {
   958  		return m.AppName
   959  	}
   960  	return ""
   961  }
   962  
   963  func (m *VersionInfo) GetVersion() string {
   964  	if m != nil {
   965  		return m.Version
   966  	}
   967  	return ""
   968  }
   969  
   970  func (m *VersionInfo) GetGitCommit() string {
   971  	if m != nil {
   972  		return m.GitCommit
   973  	}
   974  	return ""
   975  }
   976  
   977  func (m *VersionInfo) GetBuildTags() string {
   978  	if m != nil {
   979  		return m.BuildTags
   980  	}
   981  	return ""
   982  }
   983  
   984  func (m *VersionInfo) GetGoVersion() string {
   985  	if m != nil {
   986  		return m.GoVersion
   987  	}
   988  	return ""
   989  }
   990  
   991  func (m *VersionInfo) GetBuildDeps() []*Module {
   992  	if m != nil {
   993  		return m.BuildDeps
   994  	}
   995  	return nil
   996  }
   997  
   998  func (m *VersionInfo) GetLbmSdkVersion() string {
   999  	if m != nil {
  1000  		return m.LbmSdkVersion
  1001  	}
  1002  	return ""
  1003  }
  1004  
  1005  // Module is the type for VersionInfo
  1006  type Module struct {
  1007  	// module path
  1008  	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
  1009  	// module version
  1010  	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  1011  	// checksum
  1012  	Sum string `protobuf:"bytes,3,opt,name=sum,proto3" json:"sum,omitempty"`
  1013  }
  1014  
  1015  func (m *Module) Reset()         { *m = Module{} }
  1016  func (m *Module) String() string { return proto.CompactTextString(m) }
  1017  func (*Module) ProtoMessage()    {}
  1018  func (*Module) Descriptor() ([]byte, []int) {
  1019  	return fileDescriptor_9cad75434dcac7b6, []int{18}
  1020  }
  1021  func (m *Module) XXX_Unmarshal(b []byte) error {
  1022  	return m.Unmarshal(b)
  1023  }
  1024  func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1025  	if deterministic {
  1026  		return xxx_messageInfo_Module.Marshal(b, m, deterministic)
  1027  	} else {
  1028  		b = b[:cap(b)]
  1029  		n, err := m.MarshalToSizedBuffer(b)
  1030  		if err != nil {
  1031  			return nil, err
  1032  		}
  1033  		return b[:n], nil
  1034  	}
  1035  }
  1036  func (m *Module) XXX_Merge(src proto.Message) {
  1037  	xxx_messageInfo_Module.Merge(m, src)
  1038  }
  1039  func (m *Module) XXX_Size() int {
  1040  	return m.Size()
  1041  }
  1042  func (m *Module) XXX_DiscardUnknown() {
  1043  	xxx_messageInfo_Module.DiscardUnknown(m)
  1044  }
  1045  
  1046  var xxx_messageInfo_Module proto.InternalMessageInfo
  1047  
  1048  func (m *Module) GetPath() string {
  1049  	if m != nil {
  1050  		return m.Path
  1051  	}
  1052  	return ""
  1053  }
  1054  
  1055  func (m *Module) GetVersion() string {
  1056  	if m != nil {
  1057  		return m.Version
  1058  	}
  1059  	return ""
  1060  }
  1061  
  1062  func (m *Module) GetSum() string {
  1063  	if m != nil {
  1064  		return m.Sum
  1065  	}
  1066  	return ""
  1067  }
  1068  
  1069  func init() {
  1070  	proto.RegisterType((*GetValidatorSetByHeightRequest)(nil), "lbm.base.ostracon.v1.GetValidatorSetByHeightRequest")
  1071  	proto.RegisterType((*GetValidatorSetByHeightResponse)(nil), "lbm.base.ostracon.v1.GetValidatorSetByHeightResponse")
  1072  	proto.RegisterType((*GetLatestValidatorSetRequest)(nil), "lbm.base.ostracon.v1.GetLatestValidatorSetRequest")
  1073  	proto.RegisterType((*GetLatestValidatorSetResponse)(nil), "lbm.base.ostracon.v1.GetLatestValidatorSetResponse")
  1074  	proto.RegisterType((*Validator)(nil), "lbm.base.ostracon.v1.Validator")
  1075  	proto.RegisterType((*GetBlockByHeightRequest)(nil), "lbm.base.ostracon.v1.GetBlockByHeightRequest")
  1076  	proto.RegisterType((*GetBlockByHeightResponse)(nil), "lbm.base.ostracon.v1.GetBlockByHeightResponse")
  1077  	proto.RegisterType((*GetBlockByHashRequest)(nil), "lbm.base.ostracon.v1.GetBlockByHashRequest")
  1078  	proto.RegisterType((*GetBlockByHashResponse)(nil), "lbm.base.ostracon.v1.GetBlockByHashResponse")
  1079  	proto.RegisterType((*GetBlockResultsByHeightRequest)(nil), "lbm.base.ostracon.v1.GetBlockResultsByHeightRequest")
  1080  	proto.RegisterType((*GetBlockResultsByHeightResponse)(nil), "lbm.base.ostracon.v1.GetBlockResultsByHeightResponse")
  1081  	proto.RegisterType((*GetLatestBlockRequest)(nil), "lbm.base.ostracon.v1.GetLatestBlockRequest")
  1082  	proto.RegisterType((*GetLatestBlockResponse)(nil), "lbm.base.ostracon.v1.GetLatestBlockResponse")
  1083  	proto.RegisterType((*GetSyncingRequest)(nil), "lbm.base.ostracon.v1.GetSyncingRequest")
  1084  	proto.RegisterType((*GetSyncingResponse)(nil), "lbm.base.ostracon.v1.GetSyncingResponse")
  1085  	proto.RegisterType((*GetNodeInfoRequest)(nil), "lbm.base.ostracon.v1.GetNodeInfoRequest")
  1086  	proto.RegisterType((*GetNodeInfoResponse)(nil), "lbm.base.ostracon.v1.GetNodeInfoResponse")
  1087  	proto.RegisterType((*VersionInfo)(nil), "lbm.base.ostracon.v1.VersionInfo")
  1088  	proto.RegisterType((*Module)(nil), "lbm.base.ostracon.v1.Module")
  1089  }
  1090  
  1091  func init() { proto.RegisterFile("lbm/base/ostracon/v1/query.proto", fileDescriptor_9cad75434dcac7b6) }
  1092  
  1093  var fileDescriptor_9cad75434dcac7b6 = []byte{
  1094  	// 1308 bytes of a gzipped FileDescriptorProto
  1095  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0x4f, 0x6f, 0x1b, 0x45,
  1096  	0x14, 0xef, 0x3a, 0x6d, 0x9c, 0x8c, 0x5b, 0xda, 0x4e, 0xff, 0x39, 0x26, 0x75, 0x92, 0x2d, 0x6d,
  1097  	0x42, 0xd3, 0xec, 0x2a, 0x6e, 0x41, 0x48, 0x1c, 0x10, 0x69, 0xda, 0xb4, 0x2a, 0x54, 0xd1, 0xa6,
  1098  	0xe2, 0xc0, 0x65, 0x35, 0xbb, 0x3b, 0x5e, 0x8f, 0xb2, 0xde, 0x99, 0xee, 0x8c, 0x4d, 0xad, 0xaa,
  1099  	0x12, 0xe2, 0xc0, 0x85, 0x0b, 0x82, 0x03, 0x3d, 0x72, 0xe0, 0xc8, 0x11, 0x71, 0x81, 0x0f, 0xc0,
  1100  	0x01, 0xa1, 0x4a, 0x5c, 0x38, 0xa2, 0x96, 0x0f, 0x82, 0x76, 0x66, 0xd6, 0xde, 0x4d, 0xd6, 0xae,
  1101  	0xcb, 0xa1, 0x12, 0x17, 0x6b, 0xe7, 0xfd, 0xfd, 0xbd, 0xdf, 0xcc, 0xbc, 0x37, 0x06, 0xcb, 0x91,
  1102  	0xd7, 0xb5, 0x3d, 0xc4, 0xb1, 0x4d, 0xb9, 0x48, 0x90, 0x4f, 0x63, 0xbb, 0xbf, 0x69, 0x3f, 0xec,
  1103  	0xe1, 0x64, 0x60, 0xb1, 0x84, 0x0a, 0x0a, 0xcf, 0x46, 0x5e, 0xd7, 0x4a, 0x2d, 0xac, 0xcc, 0xc2,
  1104  	0xea, 0x6f, 0x36, 0x16, 0x42, 0x4a, 0xc3, 0x08, 0xdb, 0xd2, 0xc6, 0xeb, 0xb5, 0x6d, 0x14, 0x6b,
  1105  	0x87, 0xc6, 0xa2, 0x56, 0x21, 0x46, 0x6c, 0x14, 0xc7, 0x54, 0x20, 0x41, 0x68, 0xcc, 0xb5, 0xb6,
  1106  	0x31, 0xcc, 0x23, 0x06, 0x0c, 0x73, 0xdb, 0x8b, 0xa8, 0xbf, 0x3f, 0x46, 0x27, 0x7f, 0xb5, 0x6e,
  1107  	0x61, 0xa8, 0x43, 0x9e, 0x4f, 0x0a, 0xaa, 0xab, 0x3e, 0xe5, 0x5d, 0xca, 0x55, 0x19, 0x12, 0xba,
  1108  	0xdd, 0xdf, 0xf4, 0xb0, 0x40, 0x9b, 0x36, 0x43, 0x21, 0x89, 0x65, 0xfe, 0x2c, 0x85, 0xc0, 0x71,
  1109  	0x80, 0x93, 0x2e, 0x89, 0x85, 0xcd, 0x5a, 0xac, 0x10, 0x67, 0x31, 0xa7, 0x3b, 0x0c, 0xe0, 0xcd,
  1110  	0x9c, 0xf6, 0x20, 0x04, 0xf3, 0x73, 0x03, 0x34, 0x77, 0xb0, 0xf8, 0x04, 0x45, 0x24, 0x40, 0x82,
  1111  	0x26, 0x7b, 0x58, 0x6c, 0x0d, 0xee, 0x60, 0x12, 0x76, 0x84, 0x83, 0x1f, 0xf6, 0x30, 0x17, 0xf0,
  1112  	0x3c, 0x98, 0xed, 0x48, 0x41, 0xdd, 0x58, 0x36, 0xd6, 0x66, 0x1c, 0xbd, 0x82, 0xb7, 0x01, 0x18,
  1113  	0xa1, 0xac, 0x57, 0x96, 0x8d, 0xb5, 0x5a, 0xeb, 0x8a, 0xa5, 0x4a, 0x52, 0xbc, 0xab, 0xdd, 0xd0,
  1114  	0x25, 0x59, 0xbb, 0x28, 0xc4, 0x3a, 0xa6, 0x93, 0xf3, 0x34, 0xff, 0x30, 0xc0, 0xd2, 0x58, 0x08,
  1115  	0x9c, 0xd1, 0x98, 0x63, 0xb8, 0x02, 0x8e, 0x4b, 0xbe, 0xdd, 0x02, 0x92, 0x9a, 0x94, 0x29, 0x53,
  1116  	0xf8, 0x01, 0x00, 0xfd, 0x2c, 0x04, 0xaf, 0x57, 0x96, 0x67, 0xd6, 0x6a, 0xad, 0x25, 0xab, 0xec,
  1117  	0x0c, 0x58, 0xc3, 0x54, 0x4e, 0xce, 0x05, 0xee, 0x14, 0xea, 0x99, 0x91, 0xf5, 0xac, 0xbe, 0xb4,
  1118  	0x1e, 0x05, 0xb0, 0x50, 0x50, 0x1b, 0x2c, 0xee, 0x60, 0xf1, 0x11, 0x12, 0x98, 0x17, 0xaa, 0xca,
  1119  	0x08, 0x2d, 0x12, 0x67, 0xfc, 0x67, 0xe2, 0x7e, 0x37, 0xc0, 0xc5, 0x31, 0x89, 0xfe, 0x8f, 0xb4,
  1120  	0xfd, 0x60, 0x80, 0xf9, 0x61, 0x0a, 0x58, 0x07, 0x55, 0x14, 0x04, 0x09, 0xe6, 0x5c, 0xa2, 0x9e,
  1121  	0x77, 0xb2, 0x25, 0xdc, 0x00, 0x55, 0xd6, 0xf3, 0xdc, 0x7d, 0x3c, 0xd0, 0x87, 0xee, 0xac, 0xa5,
  1122  	0x2e, 0xae, 0x95, 0xdd, 0x69, 0xeb, 0xc3, 0x78, 0xe0, 0xcc, 0xb2, 0x9e, 0x77, 0x0f, 0x0f, 0x52,
  1123  	0x0e, 0xfa, 0x54, 0x90, 0x38, 0x74, 0x19, 0xfd, 0x0c, 0x27, 0x12, 0xe1, 0x8c, 0x53, 0x53, 0xb2,
  1124  	0xdd, 0x54, 0x04, 0xd7, 0xc1, 0x69, 0x96, 0x50, 0x46, 0x39, 0x4e, 0x5c, 0x96, 0x10, 0x9a, 0x10,
  1125  	0x31, 0xa8, 0x1f, 0x95, 0x76, 0xa7, 0x32, 0xc5, 0xae, 0x96, 0x9b, 0x9b, 0xe0, 0xc2, 0x0e, 0x16,
  1126  	0x5b, 0x29, 0x85, 0x53, 0xde, 0x14, 0xf3, 0x09, 0xa8, 0x1f, 0x76, 0xd1, 0x5b, 0x74, 0x03, 0xcc,
  1127  	0xa9, 0x2d, 0x22, 0x81, 0x3e, 0x0a, 0x0b, 0xd6, 0xe8, 0xc2, 0x5a, 0xea, 0xae, 0x4a, 0xd7, 0xbb,
  1128  	0xdb, 0x4e, 0x55, 0x9a, 0xde, 0x0d, 0xe0, 0x3a, 0x38, 0x26, 0x3f, 0x35, 0x03, 0xe7, 0x46, 0xfb,
  1129  	0x94, 0x73, 0x70, 0x94, 0x8d, 0xb9, 0x0e, 0xce, 0xe5, 0xd2, 0x23, 0xde, 0xc9, 0xf0, 0x42, 0x70,
  1130  	0xb4, 0x83, 0x78, 0x47, 0xe6, 0x3d, 0xee, 0xc8, 0x6f, 0xf3, 0x31, 0x38, 0x7f, 0xd0, 0xf8, 0xf5,
  1131  	0x21, 0x7d, 0x4f, 0x36, 0x23, 0x25, 0xc2, 0xbc, 0x17, 0x09, 0x3e, 0x2d, 0xc5, 0xdf, 0x54, 0x64,
  1132  	0x13, 0x29, 0x77, 0xd5, 0x05, 0x8c, 0x6b, 0x64, 0x37, 0x41, 0x4d, 0x3c, 0xe2, 0x6e, 0xa2, 0xdc,
  1133  	0xf4, 0x1d, 0x30, 0xf3, 0xb5, 0xa5, 0x6d, 0xd3, 0xca, 0xe2, 0x6c, 0xe3, 0x88, 0xf4, 0x71, 0xf2,
  1134  	0xe0, 0x91, 0x03, 0xc4, 0x23, 0xae, 0x93, 0xc1, 0x7b, 0xe0, 0x64, 0x82, 0xb9, 0xeb, 0xe1, 0x90,
  1135  	0xc4, 0xae, 0xaa, 0x58, 0xdd, 0x85, 0x4b, 0x63, 0x03, 0x6d, 0xa5, 0xb6, 0x0a, 0xf1, 0x89, 0x04,
  1136  	0xf3, 0xd1, 0x12, 0xde, 0x02, 0xa9, 0xc0, 0xc5, 0x71, 0xa0, 0x43, 0x1d, 0x95, 0xa1, 0x56, 0xc6,
  1137  	0x86, 0xba, 0x15, 0x07, 0x2a, 0x50, 0x2d, 0xc1, 0x3c, 0x5b, 0x98, 0x17, 0xe4, 0xc6, 0xab, 0xfe,
  1138  	0xa0, 0x99, 0x91, 0x2c, 0xea, 0x4d, 0x2e, 0x28, 0x5e, 0xdf, 0x26, 0x9f, 0x01, 0xa7, 0x77, 0xb0,
  1139  	0xd8, 0x1b, 0xc4, 0x3e, 0x89, 0xc3, 0x0c, 0x91, 0x05, 0x60, 0x5e, 0xa8, 0xd1, 0xd4, 0x41, 0x95,
  1140  	0x2b, 0x91, 0x04, 0x33, 0xe7, 0x64, 0x4b, 0xf3, 0xac, 0xb4, 0xbf, 0x4f, 0x03, 0x7c, 0x37, 0x6e,
  1141  	0xd3, 0x2c, 0xca, 0xcf, 0x06, 0x38, 0x53, 0x10, 0xeb, 0x38, 0xf7, 0xc0, 0xe9, 0x00, 0xb7, 0x51,
  1142  	0x2f, 0x12, 0x6e, 0x4c, 0x03, 0xec, 0x92, 0xb8, 0x4d, 0x75, 0x79, 0x4b, 0xf9, 0xf2, 0x58, 0x8b,
  1143  	0x59, 0xdb, 0xca, 0x70, 0x18, 0xe3, 0x64, 0x50, 0x14, 0x40, 0x07, 0x9c, 0x41, 0x8c, 0x45, 0xc4,
  1144  	0x97, 0x6d, 0xcb, 0xed, 0xe3, 0x84, 0x8f, 0x06, 0xe0, 0xca, 0x98, 0xd6, 0xa9, 0x8c, 0x64, 0x40,
  1145  	0x98, 0xf3, 0xd6, 0x72, 0xf3, 0x69, 0x05, 0xd4, 0x72, 0x36, 0xe9, 0xcd, 0x8c, 0x51, 0x17, 0xeb,
  1146  	0xd6, 0x27, 0xbf, 0xe1, 0x02, 0x98, 0x43, 0x8c, 0xb9, 0x52, 0x5e, 0xd1, 0x2d, 0x91, 0xb1, 0xfb,
  1147  	0xa9, 0xaa, 0x0e, 0xaa, 0x19, 0x8c, 0x19, 0xa5, 0xd1, 0x4b, 0x78, 0x11, 0x80, 0x90, 0x08, 0xd7,
  1148  	0xa7, 0xdd, 0x2e, 0x11, 0xf2, 0x18, 0xcd, 0x3b, 0xf3, 0x21, 0x11, 0x37, 0xa5, 0x20, 0x55, 0x7b,
  1149  	0x3d, 0x12, 0x05, 0xae, 0x40, 0x21, 0xaf, 0x1f, 0x53, 0x6a, 0x29, 0x79, 0x80, 0x42, 0x2e, 0xbd,
  1150  	0xe9, 0xb0, 0xc2, 0x59, 0xed, 0x4d, 0x35, 0x52, 0xf8, 0x7e, 0xe6, 0x1d, 0x60, 0xc6, 0xeb, 0x55,
  1151  	0x79, 0x6f, 0x16, 0xcb, 0x09, 0xf8, 0x98, 0x06, 0xbd, 0x08, 0xeb, 0xd8, 0xdb, 0x98, 0x71, 0x78,
  1152  	0x05, 0x9c, 0x8c, 0xbc, 0xae, 0xcb, 0x83, 0xfd, 0x61, 0x82, 0x39, 0x99, 0xe0, 0x44, 0xe4, 0x75,
  1153  	0xf7, 0x82, 0xfd, 0x8c, 0x9a, 0x3b, 0x60, 0x56, 0x39, 0xa7, 0xa4, 0x30, 0x24, 0x3a, 0x19, 0x29,
  1154  	0xe9, 0x77, 0xbe, 0xf2, 0x4a, 0xb1, 0xf2, 0x53, 0x60, 0x86, 0xf7, 0xba, 0x9a, 0x8f, 0xf4, 0xb3,
  1155  	0xf5, 0x23, 0x00, 0xd5, 0x3d, 0x9c, 0xf4, 0x89, 0x8f, 0xe1, 0x57, 0x06, 0xa8, 0xe5, 0x4e, 0x0a,
  1156  	0x5c, 0x2b, 0x87, 0x7d, 0xf8, 0x8c, 0x35, 0xde, 0x9e, 0xc2, 0x52, 0x1d, 0x3b, 0x73, 0xf5, 0x8b,
  1157  	0x3f, 0xff, 0xf9, 0xb6, 0xb2, 0x02, 0x97, 0xec, 0xd2, 0xc7, 0xea, 0xf0, 0x28, 0xc2, 0x2f, 0x0d,
  1158  	0x00, 0x46, 0xc7, 0x1f, 0xae, 0x8e, 0x4d, 0x51, 0xbc, 0x35, 0x8d, 0xb5, 0x97, 0x1b, 0x6a, 0x28,
  1159  	0x97, 0x25, 0x94, 0x25, 0x78, 0xb1, 0x1c, 0x8a, 0xbe, 0x56, 0xf0, 0xa9, 0x01, 0xde, 0x28, 0x76,
  1160  	0x06, 0xb8, 0x3e, 0x36, 0xc7, 0xe1, 0xc6, 0xd2, 0xb8, 0x36, 0x9d, 0xb1, 0x06, 0xb5, 0x2e, 0x41,
  1161  	0x5d, 0x86, 0x97, 0xca, 0x41, 0xc9, 0x76, 0xc1, 0xed, 0x48, 0x7a, 0xc2, 0xef, 0x0d, 0x70, 0xea,
  1162  	0xe0, 0x14, 0x85, 0x1b, 0x63, 0xf3, 0x95, 0x0d, 0xe8, 0x86, 0x35, 0xad, 0xb9, 0x06, 0xb8, 0x21,
  1163  	0x01, 0xae, 0xc2, 0xcb, 0x13, 0x01, 0x3e, 0x56, 0x73, 0xe4, 0x09, 0xfc, 0x4e, 0xb1, 0x97, 0x1b,
  1164  	0x9e, 0x13, 0xd8, 0x3b, 0x3c, 0x8f, 0x27, 0xb0, 0x57, 0x32, 0x8f, 0xcd, 0xab, 0x12, 0xdc, 0x5b,
  1165  	0xd0, 0x9c, 0x00, 0xce, 0x7e, 0x9c, 0x0e, 0xf5, 0x27, 0xf0, 0x17, 0x63, 0xf4, 0x6a, 0x39, 0x30,
  1166  	0x1e, 0xe1, 0x8d, 0xc9, 0x59, 0xcb, 0x07, 0x71, 0xe3, 0x9d, 0x57, 0xf4, 0xd2, 0xa0, 0xaf, 0x4b,
  1167  	0xd0, 0x1b, 0x70, 0x7d, 0x02, 0x68, 0x3d, 0x88, 0x47, 0xbc, 0xfe, 0x64, 0xe4, 0x06, 0x59, 0xfe,
  1168  	0xa1, 0x0b, 0x5b, 0x2f, 0x39, 0x6f, 0x25, 0xcf, 0xef, 0xc6, 0xf5, 0x57, 0xf2, 0xd1, 0xb8, 0x5b,
  1169  	0x12, 0xf7, 0x35, 0x78, 0xb5, 0x1c, 0xf7, 0xe8, 0x3d, 0x8c, 0xc5, 0xf0, 0xc4, 0xfe, 0xaa, 0x48,
  1170  	0x2f, 0xfb, 0x63, 0x33, 0x81, 0xf4, 0x09, 0x7f, 0xc5, 0x26, 0x90, 0x3e, 0xe9, 0xdf, 0x93, 0x79,
  1171  	0x43, 0x82, 0xb7, 0xe0, 0xb5, 0x69, 0xc0, 0x67, 0xac, 0x6f, 0xed, 0xfe, 0xf6, 0xbc, 0x69, 0x3c,
  1172  	0x7b, 0xde, 0x34, 0xfe, 0x7e, 0xde, 0x34, 0xbe, 0x7e, 0xd1, 0x3c, 0xf2, 0xec, 0x45, 0xf3, 0xc8,
  1173  	0x5f, 0x2f, 0x9a, 0x47, 0x3e, 0x7d, 0x37, 0x24, 0xa2, 0xd3, 0xf3, 0x2c, 0x9f, 0x76, 0xed, 0xdb,
  1174  	0x24, 0xe6, 0x7e, 0x87, 0x20, 0xbb, 0xad, 0x3f, 0x36, 0x78, 0xb0, 0x6f, 0xfb, 0x11, 0xc1, 0xb1,
  1175  	0xb0, 0xc3, 0x84, 0xf9, 0x36, 0xf5, 0xb9, 0x6a, 0xba, 0xde, 0xac, 0x7c, 0xa0, 0x5f, 0xff, 0x37,
  1176  	0x00, 0x00, 0xff, 0xff, 0xd1, 0x8e, 0xbc, 0x6c, 0xbc, 0x0f, 0x00, 0x00,
  1177  }
  1178  
  1179  // Reference imports to suppress errors if they are not otherwise used.
  1180  var _ context.Context
  1181  var _ grpc.ClientConn
  1182  
  1183  // This is a compile-time assertion to ensure that this generated file
  1184  // is compatible with the grpc package it is being compiled against.
  1185  const _ = grpc.SupportPackageIsVersion4
  1186  
  1187  // ServiceClient is the client API for Service service.
  1188  //
  1189  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1190  type ServiceClient interface {
  1191  	// GetNodeInfo queries the current node info.
  1192  	GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, opts ...grpc.CallOption) (*GetNodeInfoResponse, error)
  1193  	// GetSyncing queries node syncing.
  1194  	GetSyncing(ctx context.Context, in *GetSyncingRequest, opts ...grpc.CallOption) (*GetSyncingResponse, error)
  1195  	// GetLatestBlock returns the latest block.
  1196  	GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*GetLatestBlockResponse, error)
  1197  	// GetBlockByHeight queries block for given height.
  1198  	GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*GetBlockByHeightResponse, error)
  1199  	// GetBlockByHash queries block for given hash.
  1200  	GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*GetBlockByHashResponse, error)
  1201  	// GetBlockResultsByHeight queries block results for given height.
  1202  	GetBlockResultsByHeight(ctx context.Context, in *GetBlockResultsByHeightRequest, opts ...grpc.CallOption) (*GetBlockResultsByHeightResponse, error)
  1203  	// GetLatestValidatorSet queries latest validator-set.
  1204  	GetLatestValidatorSet(ctx context.Context, in *GetLatestValidatorSetRequest, opts ...grpc.CallOption) (*GetLatestValidatorSetResponse, error)
  1205  	// GetValidatorSetByHeight queries validator-set at a given height.
  1206  	GetValidatorSetByHeight(ctx context.Context, in *GetValidatorSetByHeightRequest, opts ...grpc.CallOption) (*GetValidatorSetByHeightResponse, error)
  1207  }
  1208  
  1209  type serviceClient struct {
  1210  	cc grpc1.ClientConn
  1211  }
  1212  
  1213  func NewServiceClient(cc grpc1.ClientConn) ServiceClient {
  1214  	return &serviceClient{cc}
  1215  }
  1216  
  1217  func (c *serviceClient) GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, opts ...grpc.CallOption) (*GetNodeInfoResponse, error) {
  1218  	out := new(GetNodeInfoResponse)
  1219  	err := c.cc.Invoke(ctx, "/lbm.base.ostracon.v1.Service/GetNodeInfo", in, out, opts...)
  1220  	if err != nil {
  1221  		return nil, err
  1222  	}
  1223  	return out, nil
  1224  }
  1225  
  1226  func (c *serviceClient) GetSyncing(ctx context.Context, in *GetSyncingRequest, opts ...grpc.CallOption) (*GetSyncingResponse, error) {
  1227  	out := new(GetSyncingResponse)
  1228  	err := c.cc.Invoke(ctx, "/lbm.base.ostracon.v1.Service/GetSyncing", in, out, opts...)
  1229  	if err != nil {
  1230  		return nil, err
  1231  	}
  1232  	return out, nil
  1233  }
  1234  
  1235  func (c *serviceClient) GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*GetLatestBlockResponse, error) {
  1236  	out := new(GetLatestBlockResponse)
  1237  	err := c.cc.Invoke(ctx, "/lbm.base.ostracon.v1.Service/GetLatestBlock", in, out, opts...)
  1238  	if err != nil {
  1239  		return nil, err
  1240  	}
  1241  	return out, nil
  1242  }
  1243  
  1244  func (c *serviceClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*GetBlockByHeightResponse, error) {
  1245  	out := new(GetBlockByHeightResponse)
  1246  	err := c.cc.Invoke(ctx, "/lbm.base.ostracon.v1.Service/GetBlockByHeight", in, out, opts...)
  1247  	if err != nil {
  1248  		return nil, err
  1249  	}
  1250  	return out, nil
  1251  }
  1252  
  1253  func (c *serviceClient) GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*GetBlockByHashResponse, error) {
  1254  	out := new(GetBlockByHashResponse)
  1255  	err := c.cc.Invoke(ctx, "/lbm.base.ostracon.v1.Service/GetBlockByHash", in, out, opts...)
  1256  	if err != nil {
  1257  		return nil, err
  1258  	}
  1259  	return out, nil
  1260  }
  1261  
  1262  func (c *serviceClient) GetBlockResultsByHeight(ctx context.Context, in *GetBlockResultsByHeightRequest, opts ...grpc.CallOption) (*GetBlockResultsByHeightResponse, error) {
  1263  	out := new(GetBlockResultsByHeightResponse)
  1264  	err := c.cc.Invoke(ctx, "/lbm.base.ostracon.v1.Service/GetBlockResultsByHeight", in, out, opts...)
  1265  	if err != nil {
  1266  		return nil, err
  1267  	}
  1268  	return out, nil
  1269  }
  1270  
  1271  func (c *serviceClient) GetLatestValidatorSet(ctx context.Context, in *GetLatestValidatorSetRequest, opts ...grpc.CallOption) (*GetLatestValidatorSetResponse, error) {
  1272  	out := new(GetLatestValidatorSetResponse)
  1273  	err := c.cc.Invoke(ctx, "/lbm.base.ostracon.v1.Service/GetLatestValidatorSet", in, out, opts...)
  1274  	if err != nil {
  1275  		return nil, err
  1276  	}
  1277  	return out, nil
  1278  }
  1279  
  1280  func (c *serviceClient) GetValidatorSetByHeight(ctx context.Context, in *GetValidatorSetByHeightRequest, opts ...grpc.CallOption) (*GetValidatorSetByHeightResponse, error) {
  1281  	out := new(GetValidatorSetByHeightResponse)
  1282  	err := c.cc.Invoke(ctx, "/lbm.base.ostracon.v1.Service/GetValidatorSetByHeight", in, out, opts...)
  1283  	if err != nil {
  1284  		return nil, err
  1285  	}
  1286  	return out, nil
  1287  }
  1288  
  1289  // ServiceServer is the server API for Service service.
  1290  type ServiceServer interface {
  1291  	// GetNodeInfo queries the current node info.
  1292  	GetNodeInfo(context.Context, *GetNodeInfoRequest) (*GetNodeInfoResponse, error)
  1293  	// GetSyncing queries node syncing.
  1294  	GetSyncing(context.Context, *GetSyncingRequest) (*GetSyncingResponse, error)
  1295  	// GetLatestBlock returns the latest block.
  1296  	GetLatestBlock(context.Context, *GetLatestBlockRequest) (*GetLatestBlockResponse, error)
  1297  	// GetBlockByHeight queries block for given height.
  1298  	GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error)
  1299  	// GetBlockByHash queries block for given hash.
  1300  	GetBlockByHash(context.Context, *GetBlockByHashRequest) (*GetBlockByHashResponse, error)
  1301  	// GetBlockResultsByHeight queries block results for given height.
  1302  	GetBlockResultsByHeight(context.Context, *GetBlockResultsByHeightRequest) (*GetBlockResultsByHeightResponse, error)
  1303  	// GetLatestValidatorSet queries latest validator-set.
  1304  	GetLatestValidatorSet(context.Context, *GetLatestValidatorSetRequest) (*GetLatestValidatorSetResponse, error)
  1305  	// GetValidatorSetByHeight queries validator-set at a given height.
  1306  	GetValidatorSetByHeight(context.Context, *GetValidatorSetByHeightRequest) (*GetValidatorSetByHeightResponse, error)
  1307  }
  1308  
  1309  // UnimplementedServiceServer can be embedded to have forward compatible implementations.
  1310  type UnimplementedServiceServer struct {
  1311  }
  1312  
  1313  func (*UnimplementedServiceServer) GetNodeInfo(ctx context.Context, req *GetNodeInfoRequest) (*GetNodeInfoResponse, error) {
  1314  	return nil, status.Errorf(codes.Unimplemented, "method GetNodeInfo not implemented")
  1315  }
  1316  func (*UnimplementedServiceServer) GetSyncing(ctx context.Context, req *GetSyncingRequest) (*GetSyncingResponse, error) {
  1317  	return nil, status.Errorf(codes.Unimplemented, "method GetSyncing not implemented")
  1318  }
  1319  func (*UnimplementedServiceServer) GetLatestBlock(ctx context.Context, req *GetLatestBlockRequest) (*GetLatestBlockResponse, error) {
  1320  	return nil, status.Errorf(codes.Unimplemented, "method GetLatestBlock not implemented")
  1321  }
  1322  func (*UnimplementedServiceServer) GetBlockByHeight(ctx context.Context, req *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error) {
  1323  	return nil, status.Errorf(codes.Unimplemented, "method GetBlockByHeight not implemented")
  1324  }
  1325  func (*UnimplementedServiceServer) GetBlockByHash(ctx context.Context, req *GetBlockByHashRequest) (*GetBlockByHashResponse, error) {
  1326  	return nil, status.Errorf(codes.Unimplemented, "method GetBlockByHash not implemented")
  1327  }
  1328  func (*UnimplementedServiceServer) GetBlockResultsByHeight(ctx context.Context, req *GetBlockResultsByHeightRequest) (*GetBlockResultsByHeightResponse, error) {
  1329  	return nil, status.Errorf(codes.Unimplemented, "method GetBlockResultsByHeight not implemented")
  1330  }
  1331  func (*UnimplementedServiceServer) GetLatestValidatorSet(ctx context.Context, req *GetLatestValidatorSetRequest) (*GetLatestValidatorSetResponse, error) {
  1332  	return nil, status.Errorf(codes.Unimplemented, "method GetLatestValidatorSet not implemented")
  1333  }
  1334  func (*UnimplementedServiceServer) GetValidatorSetByHeight(ctx context.Context, req *GetValidatorSetByHeightRequest) (*GetValidatorSetByHeightResponse, error) {
  1335  	return nil, status.Errorf(codes.Unimplemented, "method GetValidatorSetByHeight not implemented")
  1336  }
  1337  
  1338  func RegisterServiceServer(s grpc1.Server, srv ServiceServer) {
  1339  	s.RegisterService(&_Service_serviceDesc, srv)
  1340  }
  1341  
  1342  func _Service_GetNodeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1343  	in := new(GetNodeInfoRequest)
  1344  	if err := dec(in); err != nil {
  1345  		return nil, err
  1346  	}
  1347  	if interceptor == nil {
  1348  		return srv.(ServiceServer).GetNodeInfo(ctx, in)
  1349  	}
  1350  	info := &grpc.UnaryServerInfo{
  1351  		Server:     srv,
  1352  		FullMethod: "/lbm.base.ostracon.v1.Service/GetNodeInfo",
  1353  	}
  1354  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1355  		return srv.(ServiceServer).GetNodeInfo(ctx, req.(*GetNodeInfoRequest))
  1356  	}
  1357  	return interceptor(ctx, in, info, handler)
  1358  }
  1359  
  1360  func _Service_GetSyncing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1361  	in := new(GetSyncingRequest)
  1362  	if err := dec(in); err != nil {
  1363  		return nil, err
  1364  	}
  1365  	if interceptor == nil {
  1366  		return srv.(ServiceServer).GetSyncing(ctx, in)
  1367  	}
  1368  	info := &grpc.UnaryServerInfo{
  1369  		Server:     srv,
  1370  		FullMethod: "/lbm.base.ostracon.v1.Service/GetSyncing",
  1371  	}
  1372  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1373  		return srv.(ServiceServer).GetSyncing(ctx, req.(*GetSyncingRequest))
  1374  	}
  1375  	return interceptor(ctx, in, info, handler)
  1376  }
  1377  
  1378  func _Service_GetLatestBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1379  	in := new(GetLatestBlockRequest)
  1380  	if err := dec(in); err != nil {
  1381  		return nil, err
  1382  	}
  1383  	if interceptor == nil {
  1384  		return srv.(ServiceServer).GetLatestBlock(ctx, in)
  1385  	}
  1386  	info := &grpc.UnaryServerInfo{
  1387  		Server:     srv,
  1388  		FullMethod: "/lbm.base.ostracon.v1.Service/GetLatestBlock",
  1389  	}
  1390  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1391  		return srv.(ServiceServer).GetLatestBlock(ctx, req.(*GetLatestBlockRequest))
  1392  	}
  1393  	return interceptor(ctx, in, info, handler)
  1394  }
  1395  
  1396  func _Service_GetBlockByHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1397  	in := new(GetBlockByHeightRequest)
  1398  	if err := dec(in); err != nil {
  1399  		return nil, err
  1400  	}
  1401  	if interceptor == nil {
  1402  		return srv.(ServiceServer).GetBlockByHeight(ctx, in)
  1403  	}
  1404  	info := &grpc.UnaryServerInfo{
  1405  		Server:     srv,
  1406  		FullMethod: "/lbm.base.ostracon.v1.Service/GetBlockByHeight",
  1407  	}
  1408  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1409  		return srv.(ServiceServer).GetBlockByHeight(ctx, req.(*GetBlockByHeightRequest))
  1410  	}
  1411  	return interceptor(ctx, in, info, handler)
  1412  }
  1413  
  1414  func _Service_GetBlockByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1415  	in := new(GetBlockByHashRequest)
  1416  	if err := dec(in); err != nil {
  1417  		return nil, err
  1418  	}
  1419  	if interceptor == nil {
  1420  		return srv.(ServiceServer).GetBlockByHash(ctx, in)
  1421  	}
  1422  	info := &grpc.UnaryServerInfo{
  1423  		Server:     srv,
  1424  		FullMethod: "/lbm.base.ostracon.v1.Service/GetBlockByHash",
  1425  	}
  1426  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1427  		return srv.(ServiceServer).GetBlockByHash(ctx, req.(*GetBlockByHashRequest))
  1428  	}
  1429  	return interceptor(ctx, in, info, handler)
  1430  }
  1431  
  1432  func _Service_GetBlockResultsByHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1433  	in := new(GetBlockResultsByHeightRequest)
  1434  	if err := dec(in); err != nil {
  1435  		return nil, err
  1436  	}
  1437  	if interceptor == nil {
  1438  		return srv.(ServiceServer).GetBlockResultsByHeight(ctx, in)
  1439  	}
  1440  	info := &grpc.UnaryServerInfo{
  1441  		Server:     srv,
  1442  		FullMethod: "/lbm.base.ostracon.v1.Service/GetBlockResultsByHeight",
  1443  	}
  1444  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1445  		return srv.(ServiceServer).GetBlockResultsByHeight(ctx, req.(*GetBlockResultsByHeightRequest))
  1446  	}
  1447  	return interceptor(ctx, in, info, handler)
  1448  }
  1449  
  1450  func _Service_GetLatestValidatorSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1451  	in := new(GetLatestValidatorSetRequest)
  1452  	if err := dec(in); err != nil {
  1453  		return nil, err
  1454  	}
  1455  	if interceptor == nil {
  1456  		return srv.(ServiceServer).GetLatestValidatorSet(ctx, in)
  1457  	}
  1458  	info := &grpc.UnaryServerInfo{
  1459  		Server:     srv,
  1460  		FullMethod: "/lbm.base.ostracon.v1.Service/GetLatestValidatorSet",
  1461  	}
  1462  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1463  		return srv.(ServiceServer).GetLatestValidatorSet(ctx, req.(*GetLatestValidatorSetRequest))
  1464  	}
  1465  	return interceptor(ctx, in, info, handler)
  1466  }
  1467  
  1468  func _Service_GetValidatorSetByHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1469  	in := new(GetValidatorSetByHeightRequest)
  1470  	if err := dec(in); err != nil {
  1471  		return nil, err
  1472  	}
  1473  	if interceptor == nil {
  1474  		return srv.(ServiceServer).GetValidatorSetByHeight(ctx, in)
  1475  	}
  1476  	info := &grpc.UnaryServerInfo{
  1477  		Server:     srv,
  1478  		FullMethod: "/lbm.base.ostracon.v1.Service/GetValidatorSetByHeight",
  1479  	}
  1480  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1481  		return srv.(ServiceServer).GetValidatorSetByHeight(ctx, req.(*GetValidatorSetByHeightRequest))
  1482  	}
  1483  	return interceptor(ctx, in, info, handler)
  1484  }
  1485  
  1486  var _Service_serviceDesc = grpc.ServiceDesc{
  1487  	ServiceName: "lbm.base.ostracon.v1.Service",
  1488  	HandlerType: (*ServiceServer)(nil),
  1489  	Methods: []grpc.MethodDesc{
  1490  		{
  1491  			MethodName: "GetNodeInfo",
  1492  			Handler:    _Service_GetNodeInfo_Handler,
  1493  		},
  1494  		{
  1495  			MethodName: "GetSyncing",
  1496  			Handler:    _Service_GetSyncing_Handler,
  1497  		},
  1498  		{
  1499  			MethodName: "GetLatestBlock",
  1500  			Handler:    _Service_GetLatestBlock_Handler,
  1501  		},
  1502  		{
  1503  			MethodName: "GetBlockByHeight",
  1504  			Handler:    _Service_GetBlockByHeight_Handler,
  1505  		},
  1506  		{
  1507  			MethodName: "GetBlockByHash",
  1508  			Handler:    _Service_GetBlockByHash_Handler,
  1509  		},
  1510  		{
  1511  			MethodName: "GetBlockResultsByHeight",
  1512  			Handler:    _Service_GetBlockResultsByHeight_Handler,
  1513  		},
  1514  		{
  1515  			MethodName: "GetLatestValidatorSet",
  1516  			Handler:    _Service_GetLatestValidatorSet_Handler,
  1517  		},
  1518  		{
  1519  			MethodName: "GetValidatorSetByHeight",
  1520  			Handler:    _Service_GetValidatorSetByHeight_Handler,
  1521  		},
  1522  	},
  1523  	Streams:  []grpc.StreamDesc{},
  1524  	Metadata: "lbm/base/ostracon/v1/query.proto",
  1525  }
  1526  
  1527  func (m *GetValidatorSetByHeightRequest) Marshal() (dAtA []byte, err error) {
  1528  	size := m.Size()
  1529  	dAtA = make([]byte, size)
  1530  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1531  	if err != nil {
  1532  		return nil, err
  1533  	}
  1534  	return dAtA[:n], nil
  1535  }
  1536  
  1537  func (m *GetValidatorSetByHeightRequest) MarshalTo(dAtA []byte) (int, error) {
  1538  	size := m.Size()
  1539  	return m.MarshalToSizedBuffer(dAtA[:size])
  1540  }
  1541  
  1542  func (m *GetValidatorSetByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1543  	i := len(dAtA)
  1544  	_ = i
  1545  	var l int
  1546  	_ = l
  1547  	if m.Pagination != nil {
  1548  		{
  1549  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  1550  			if err != nil {
  1551  				return 0, err
  1552  			}
  1553  			i -= size
  1554  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1555  		}
  1556  		i--
  1557  		dAtA[i] = 0x12
  1558  	}
  1559  	if m.Height != 0 {
  1560  		i = encodeVarintQuery(dAtA, i, uint64(m.Height))
  1561  		i--
  1562  		dAtA[i] = 0x8
  1563  	}
  1564  	return len(dAtA) - i, nil
  1565  }
  1566  
  1567  func (m *GetValidatorSetByHeightResponse) Marshal() (dAtA []byte, err error) {
  1568  	size := m.Size()
  1569  	dAtA = make([]byte, size)
  1570  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1571  	if err != nil {
  1572  		return nil, err
  1573  	}
  1574  	return dAtA[:n], nil
  1575  }
  1576  
  1577  func (m *GetValidatorSetByHeightResponse) MarshalTo(dAtA []byte) (int, error) {
  1578  	size := m.Size()
  1579  	return m.MarshalToSizedBuffer(dAtA[:size])
  1580  }
  1581  
  1582  func (m *GetValidatorSetByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1583  	i := len(dAtA)
  1584  	_ = i
  1585  	var l int
  1586  	_ = l
  1587  	if m.Pagination != nil {
  1588  		{
  1589  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  1590  			if err != nil {
  1591  				return 0, err
  1592  			}
  1593  			i -= size
  1594  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1595  		}
  1596  		i--
  1597  		dAtA[i] = 0x1a
  1598  	}
  1599  	if len(m.Validators) > 0 {
  1600  		for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- {
  1601  			{
  1602  				size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1603  				if err != nil {
  1604  					return 0, err
  1605  				}
  1606  				i -= size
  1607  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1608  			}
  1609  			i--
  1610  			dAtA[i] = 0x12
  1611  		}
  1612  	}
  1613  	if m.BlockHeight != 0 {
  1614  		i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight))
  1615  		i--
  1616  		dAtA[i] = 0x8
  1617  	}
  1618  	return len(dAtA) - i, nil
  1619  }
  1620  
  1621  func (m *GetLatestValidatorSetRequest) Marshal() (dAtA []byte, err error) {
  1622  	size := m.Size()
  1623  	dAtA = make([]byte, size)
  1624  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1625  	if err != nil {
  1626  		return nil, err
  1627  	}
  1628  	return dAtA[:n], nil
  1629  }
  1630  
  1631  func (m *GetLatestValidatorSetRequest) MarshalTo(dAtA []byte) (int, error) {
  1632  	size := m.Size()
  1633  	return m.MarshalToSizedBuffer(dAtA[:size])
  1634  }
  1635  
  1636  func (m *GetLatestValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1637  	i := len(dAtA)
  1638  	_ = i
  1639  	var l int
  1640  	_ = l
  1641  	if m.Pagination != nil {
  1642  		{
  1643  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  1644  			if err != nil {
  1645  				return 0, err
  1646  			}
  1647  			i -= size
  1648  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1649  		}
  1650  		i--
  1651  		dAtA[i] = 0xa
  1652  	}
  1653  	return len(dAtA) - i, nil
  1654  }
  1655  
  1656  func (m *GetLatestValidatorSetResponse) Marshal() (dAtA []byte, err error) {
  1657  	size := m.Size()
  1658  	dAtA = make([]byte, size)
  1659  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1660  	if err != nil {
  1661  		return nil, err
  1662  	}
  1663  	return dAtA[:n], nil
  1664  }
  1665  
  1666  func (m *GetLatestValidatorSetResponse) MarshalTo(dAtA []byte) (int, error) {
  1667  	size := m.Size()
  1668  	return m.MarshalToSizedBuffer(dAtA[:size])
  1669  }
  1670  
  1671  func (m *GetLatestValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1672  	i := len(dAtA)
  1673  	_ = i
  1674  	var l int
  1675  	_ = l
  1676  	if m.Pagination != nil {
  1677  		{
  1678  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  1679  			if err != nil {
  1680  				return 0, err
  1681  			}
  1682  			i -= size
  1683  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1684  		}
  1685  		i--
  1686  		dAtA[i] = 0x1a
  1687  	}
  1688  	if len(m.Validators) > 0 {
  1689  		for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- {
  1690  			{
  1691  				size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1692  				if err != nil {
  1693  					return 0, err
  1694  				}
  1695  				i -= size
  1696  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1697  			}
  1698  			i--
  1699  			dAtA[i] = 0x12
  1700  		}
  1701  	}
  1702  	if m.BlockHeight != 0 {
  1703  		i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight))
  1704  		i--
  1705  		dAtA[i] = 0x8
  1706  	}
  1707  	return len(dAtA) - i, nil
  1708  }
  1709  
  1710  func (m *Validator) Marshal() (dAtA []byte, err error) {
  1711  	size := m.Size()
  1712  	dAtA = make([]byte, size)
  1713  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1714  	if err != nil {
  1715  		return nil, err
  1716  	}
  1717  	return dAtA[:n], nil
  1718  }
  1719  
  1720  func (m *Validator) MarshalTo(dAtA []byte) (int, error) {
  1721  	size := m.Size()
  1722  	return m.MarshalToSizedBuffer(dAtA[:size])
  1723  }
  1724  
  1725  func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1726  	i := len(dAtA)
  1727  	_ = i
  1728  	var l int
  1729  	_ = l
  1730  	if m.ProposerPriority != 0 {
  1731  		i = encodeVarintQuery(dAtA, i, uint64(m.ProposerPriority))
  1732  		i--
  1733  		dAtA[i] = 0x20
  1734  	}
  1735  	if m.VotingPower != 0 {
  1736  		i = encodeVarintQuery(dAtA, i, uint64(m.VotingPower))
  1737  		i--
  1738  		dAtA[i] = 0x18
  1739  	}
  1740  	if m.PubKey != nil {
  1741  		{
  1742  			size, err := m.PubKey.MarshalToSizedBuffer(dAtA[:i])
  1743  			if err != nil {
  1744  				return 0, err
  1745  			}
  1746  			i -= size
  1747  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1748  		}
  1749  		i--
  1750  		dAtA[i] = 0x12
  1751  	}
  1752  	if len(m.Address) > 0 {
  1753  		i -= len(m.Address)
  1754  		copy(dAtA[i:], m.Address)
  1755  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  1756  		i--
  1757  		dAtA[i] = 0xa
  1758  	}
  1759  	return len(dAtA) - i, nil
  1760  }
  1761  
  1762  func (m *GetBlockByHeightRequest) Marshal() (dAtA []byte, err error) {
  1763  	size := m.Size()
  1764  	dAtA = make([]byte, size)
  1765  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1766  	if err != nil {
  1767  		return nil, err
  1768  	}
  1769  	return dAtA[:n], nil
  1770  }
  1771  
  1772  func (m *GetBlockByHeightRequest) MarshalTo(dAtA []byte) (int, error) {
  1773  	size := m.Size()
  1774  	return m.MarshalToSizedBuffer(dAtA[:size])
  1775  }
  1776  
  1777  func (m *GetBlockByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1778  	i := len(dAtA)
  1779  	_ = i
  1780  	var l int
  1781  	_ = l
  1782  	if m.Height != 0 {
  1783  		i = encodeVarintQuery(dAtA, i, uint64(m.Height))
  1784  		i--
  1785  		dAtA[i] = 0x8
  1786  	}
  1787  	return len(dAtA) - i, nil
  1788  }
  1789  
  1790  func (m *GetBlockByHeightResponse) Marshal() (dAtA []byte, err error) {
  1791  	size := m.Size()
  1792  	dAtA = make([]byte, size)
  1793  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1794  	if err != nil {
  1795  		return nil, err
  1796  	}
  1797  	return dAtA[:n], nil
  1798  }
  1799  
  1800  func (m *GetBlockByHeightResponse) MarshalTo(dAtA []byte) (int, error) {
  1801  	size := m.Size()
  1802  	return m.MarshalToSizedBuffer(dAtA[:size])
  1803  }
  1804  
  1805  func (m *GetBlockByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1806  	i := len(dAtA)
  1807  	_ = i
  1808  	var l int
  1809  	_ = l
  1810  	if m.Block != nil {
  1811  		{
  1812  			size, err := m.Block.MarshalToSizedBuffer(dAtA[:i])
  1813  			if err != nil {
  1814  				return 0, err
  1815  			}
  1816  			i -= size
  1817  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1818  		}
  1819  		i--
  1820  		dAtA[i] = 0x12
  1821  	}
  1822  	if m.BlockId != nil {
  1823  		{
  1824  			size, err := m.BlockId.MarshalToSizedBuffer(dAtA[:i])
  1825  			if err != nil {
  1826  				return 0, err
  1827  			}
  1828  			i -= size
  1829  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1830  		}
  1831  		i--
  1832  		dAtA[i] = 0xa
  1833  	}
  1834  	return len(dAtA) - i, nil
  1835  }
  1836  
  1837  func (m *GetBlockByHashRequest) Marshal() (dAtA []byte, err error) {
  1838  	size := m.Size()
  1839  	dAtA = make([]byte, size)
  1840  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1841  	if err != nil {
  1842  		return nil, err
  1843  	}
  1844  	return dAtA[:n], nil
  1845  }
  1846  
  1847  func (m *GetBlockByHashRequest) MarshalTo(dAtA []byte) (int, error) {
  1848  	size := m.Size()
  1849  	return m.MarshalToSizedBuffer(dAtA[:size])
  1850  }
  1851  
  1852  func (m *GetBlockByHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1853  	i := len(dAtA)
  1854  	_ = i
  1855  	var l int
  1856  	_ = l
  1857  	if len(m.Hash) > 0 {
  1858  		i -= len(m.Hash)
  1859  		copy(dAtA[i:], m.Hash)
  1860  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash)))
  1861  		i--
  1862  		dAtA[i] = 0xa
  1863  	}
  1864  	return len(dAtA) - i, nil
  1865  }
  1866  
  1867  func (m *GetBlockByHashResponse) Marshal() (dAtA []byte, err error) {
  1868  	size := m.Size()
  1869  	dAtA = make([]byte, size)
  1870  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1871  	if err != nil {
  1872  		return nil, err
  1873  	}
  1874  	return dAtA[:n], nil
  1875  }
  1876  
  1877  func (m *GetBlockByHashResponse) MarshalTo(dAtA []byte) (int, error) {
  1878  	size := m.Size()
  1879  	return m.MarshalToSizedBuffer(dAtA[:size])
  1880  }
  1881  
  1882  func (m *GetBlockByHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1883  	i := len(dAtA)
  1884  	_ = i
  1885  	var l int
  1886  	_ = l
  1887  	if m.Block != nil {
  1888  		{
  1889  			size, err := m.Block.MarshalToSizedBuffer(dAtA[:i])
  1890  			if err != nil {
  1891  				return 0, err
  1892  			}
  1893  			i -= size
  1894  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1895  		}
  1896  		i--
  1897  		dAtA[i] = 0x12
  1898  	}
  1899  	if m.BlockId != nil {
  1900  		{
  1901  			size, err := m.BlockId.MarshalToSizedBuffer(dAtA[:i])
  1902  			if err != nil {
  1903  				return 0, err
  1904  			}
  1905  			i -= size
  1906  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1907  		}
  1908  		i--
  1909  		dAtA[i] = 0xa
  1910  	}
  1911  	return len(dAtA) - i, nil
  1912  }
  1913  
  1914  func (m *GetBlockResultsByHeightRequest) Marshal() (dAtA []byte, err error) {
  1915  	size := m.Size()
  1916  	dAtA = make([]byte, size)
  1917  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1918  	if err != nil {
  1919  		return nil, err
  1920  	}
  1921  	return dAtA[:n], nil
  1922  }
  1923  
  1924  func (m *GetBlockResultsByHeightRequest) MarshalTo(dAtA []byte) (int, error) {
  1925  	size := m.Size()
  1926  	return m.MarshalToSizedBuffer(dAtA[:size])
  1927  }
  1928  
  1929  func (m *GetBlockResultsByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1930  	i := len(dAtA)
  1931  	_ = i
  1932  	var l int
  1933  	_ = l
  1934  	if m.Height != 0 {
  1935  		i = encodeVarintQuery(dAtA, i, uint64(m.Height))
  1936  		i--
  1937  		dAtA[i] = 0x8
  1938  	}
  1939  	return len(dAtA) - i, nil
  1940  }
  1941  
  1942  func (m *GetBlockResultsByHeightResponse) Marshal() (dAtA []byte, err error) {
  1943  	size := m.Size()
  1944  	dAtA = make([]byte, size)
  1945  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1946  	if err != nil {
  1947  		return nil, err
  1948  	}
  1949  	return dAtA[:n], nil
  1950  }
  1951  
  1952  func (m *GetBlockResultsByHeightResponse) MarshalTo(dAtA []byte) (int, error) {
  1953  	size := m.Size()
  1954  	return m.MarshalToSizedBuffer(dAtA[:size])
  1955  }
  1956  
  1957  func (m *GetBlockResultsByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1958  	i := len(dAtA)
  1959  	_ = i
  1960  	var l int
  1961  	_ = l
  1962  	if m.ResEndBlock != nil {
  1963  		{
  1964  			size, err := m.ResEndBlock.MarshalToSizedBuffer(dAtA[:i])
  1965  			if err != nil {
  1966  				return 0, err
  1967  			}
  1968  			i -= size
  1969  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1970  		}
  1971  		i--
  1972  		dAtA[i] = 0x22
  1973  	}
  1974  	if m.ResBeginBlock != nil {
  1975  		{
  1976  			size, err := m.ResBeginBlock.MarshalToSizedBuffer(dAtA[:i])
  1977  			if err != nil {
  1978  				return 0, err
  1979  			}
  1980  			i -= size
  1981  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1982  		}
  1983  		i--
  1984  		dAtA[i] = 0x1a
  1985  	}
  1986  	if len(m.TxsResults) > 0 {
  1987  		for iNdEx := len(m.TxsResults) - 1; iNdEx >= 0; iNdEx-- {
  1988  			{
  1989  				size, err := m.TxsResults[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1990  				if err != nil {
  1991  					return 0, err
  1992  				}
  1993  				i -= size
  1994  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1995  			}
  1996  			i--
  1997  			dAtA[i] = 0x12
  1998  		}
  1999  	}
  2000  	if m.Height != 0 {
  2001  		i = encodeVarintQuery(dAtA, i, uint64(m.Height))
  2002  		i--
  2003  		dAtA[i] = 0x8
  2004  	}
  2005  	return len(dAtA) - i, nil
  2006  }
  2007  
  2008  func (m *GetLatestBlockRequest) Marshal() (dAtA []byte, err error) {
  2009  	size := m.Size()
  2010  	dAtA = make([]byte, size)
  2011  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2012  	if err != nil {
  2013  		return nil, err
  2014  	}
  2015  	return dAtA[:n], nil
  2016  }
  2017  
  2018  func (m *GetLatestBlockRequest) MarshalTo(dAtA []byte) (int, error) {
  2019  	size := m.Size()
  2020  	return m.MarshalToSizedBuffer(dAtA[:size])
  2021  }
  2022  
  2023  func (m *GetLatestBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2024  	i := len(dAtA)
  2025  	_ = i
  2026  	var l int
  2027  	_ = l
  2028  	return len(dAtA) - i, nil
  2029  }
  2030  
  2031  func (m *GetLatestBlockResponse) Marshal() (dAtA []byte, err error) {
  2032  	size := m.Size()
  2033  	dAtA = make([]byte, size)
  2034  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2035  	if err != nil {
  2036  		return nil, err
  2037  	}
  2038  	return dAtA[:n], nil
  2039  }
  2040  
  2041  func (m *GetLatestBlockResponse) MarshalTo(dAtA []byte) (int, error) {
  2042  	size := m.Size()
  2043  	return m.MarshalToSizedBuffer(dAtA[:size])
  2044  }
  2045  
  2046  func (m *GetLatestBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2047  	i := len(dAtA)
  2048  	_ = i
  2049  	var l int
  2050  	_ = l
  2051  	if m.Block != nil {
  2052  		{
  2053  			size, err := m.Block.MarshalToSizedBuffer(dAtA[:i])
  2054  			if err != nil {
  2055  				return 0, err
  2056  			}
  2057  			i -= size
  2058  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2059  		}
  2060  		i--
  2061  		dAtA[i] = 0x12
  2062  	}
  2063  	if m.BlockId != nil {
  2064  		{
  2065  			size, err := m.BlockId.MarshalToSizedBuffer(dAtA[:i])
  2066  			if err != nil {
  2067  				return 0, err
  2068  			}
  2069  			i -= size
  2070  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2071  		}
  2072  		i--
  2073  		dAtA[i] = 0xa
  2074  	}
  2075  	return len(dAtA) - i, nil
  2076  }
  2077  
  2078  func (m *GetSyncingRequest) Marshal() (dAtA []byte, err error) {
  2079  	size := m.Size()
  2080  	dAtA = make([]byte, size)
  2081  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2082  	if err != nil {
  2083  		return nil, err
  2084  	}
  2085  	return dAtA[:n], nil
  2086  }
  2087  
  2088  func (m *GetSyncingRequest) MarshalTo(dAtA []byte) (int, error) {
  2089  	size := m.Size()
  2090  	return m.MarshalToSizedBuffer(dAtA[:size])
  2091  }
  2092  
  2093  func (m *GetSyncingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2094  	i := len(dAtA)
  2095  	_ = i
  2096  	var l int
  2097  	_ = l
  2098  	return len(dAtA) - i, nil
  2099  }
  2100  
  2101  func (m *GetSyncingResponse) Marshal() (dAtA []byte, err error) {
  2102  	size := m.Size()
  2103  	dAtA = make([]byte, size)
  2104  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2105  	if err != nil {
  2106  		return nil, err
  2107  	}
  2108  	return dAtA[:n], nil
  2109  }
  2110  
  2111  func (m *GetSyncingResponse) MarshalTo(dAtA []byte) (int, error) {
  2112  	size := m.Size()
  2113  	return m.MarshalToSizedBuffer(dAtA[:size])
  2114  }
  2115  
  2116  func (m *GetSyncingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2117  	i := len(dAtA)
  2118  	_ = i
  2119  	var l int
  2120  	_ = l
  2121  	if m.Syncing {
  2122  		i--
  2123  		if m.Syncing {
  2124  			dAtA[i] = 1
  2125  		} else {
  2126  			dAtA[i] = 0
  2127  		}
  2128  		i--
  2129  		dAtA[i] = 0x8
  2130  	}
  2131  	return len(dAtA) - i, nil
  2132  }
  2133  
  2134  func (m *GetNodeInfoRequest) Marshal() (dAtA []byte, err error) {
  2135  	size := m.Size()
  2136  	dAtA = make([]byte, size)
  2137  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2138  	if err != nil {
  2139  		return nil, err
  2140  	}
  2141  	return dAtA[:n], nil
  2142  }
  2143  
  2144  func (m *GetNodeInfoRequest) MarshalTo(dAtA []byte) (int, error) {
  2145  	size := m.Size()
  2146  	return m.MarshalToSizedBuffer(dAtA[:size])
  2147  }
  2148  
  2149  func (m *GetNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2150  	i := len(dAtA)
  2151  	_ = i
  2152  	var l int
  2153  	_ = l
  2154  	return len(dAtA) - i, nil
  2155  }
  2156  
  2157  func (m *GetNodeInfoResponse) Marshal() (dAtA []byte, err error) {
  2158  	size := m.Size()
  2159  	dAtA = make([]byte, size)
  2160  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2161  	if err != nil {
  2162  		return nil, err
  2163  	}
  2164  	return dAtA[:n], nil
  2165  }
  2166  
  2167  func (m *GetNodeInfoResponse) MarshalTo(dAtA []byte) (int, error) {
  2168  	size := m.Size()
  2169  	return m.MarshalToSizedBuffer(dAtA[:size])
  2170  }
  2171  
  2172  func (m *GetNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2173  	i := len(dAtA)
  2174  	_ = i
  2175  	var l int
  2176  	_ = l
  2177  	if m.ApplicationVersion != nil {
  2178  		{
  2179  			size, err := m.ApplicationVersion.MarshalToSizedBuffer(dAtA[:i])
  2180  			if err != nil {
  2181  				return 0, err
  2182  			}
  2183  			i -= size
  2184  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2185  		}
  2186  		i--
  2187  		dAtA[i] = 0x12
  2188  	}
  2189  	if m.DefaultNodeInfo != nil {
  2190  		{
  2191  			size, err := m.DefaultNodeInfo.MarshalToSizedBuffer(dAtA[:i])
  2192  			if err != nil {
  2193  				return 0, err
  2194  			}
  2195  			i -= size
  2196  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2197  		}
  2198  		i--
  2199  		dAtA[i] = 0xa
  2200  	}
  2201  	return len(dAtA) - i, nil
  2202  }
  2203  
  2204  func (m *VersionInfo) Marshal() (dAtA []byte, err error) {
  2205  	size := m.Size()
  2206  	dAtA = make([]byte, size)
  2207  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2208  	if err != nil {
  2209  		return nil, err
  2210  	}
  2211  	return dAtA[:n], nil
  2212  }
  2213  
  2214  func (m *VersionInfo) MarshalTo(dAtA []byte) (int, error) {
  2215  	size := m.Size()
  2216  	return m.MarshalToSizedBuffer(dAtA[:size])
  2217  }
  2218  
  2219  func (m *VersionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2220  	i := len(dAtA)
  2221  	_ = i
  2222  	var l int
  2223  	_ = l
  2224  	if len(m.LbmSdkVersion) > 0 {
  2225  		i -= len(m.LbmSdkVersion)
  2226  		copy(dAtA[i:], m.LbmSdkVersion)
  2227  		i = encodeVarintQuery(dAtA, i, uint64(len(m.LbmSdkVersion)))
  2228  		i--
  2229  		dAtA[i] = 0x42
  2230  	}
  2231  	if len(m.BuildDeps) > 0 {
  2232  		for iNdEx := len(m.BuildDeps) - 1; iNdEx >= 0; iNdEx-- {
  2233  			{
  2234  				size, err := m.BuildDeps[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2235  				if err != nil {
  2236  					return 0, err
  2237  				}
  2238  				i -= size
  2239  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2240  			}
  2241  			i--
  2242  			dAtA[i] = 0x3a
  2243  		}
  2244  	}
  2245  	if len(m.GoVersion) > 0 {
  2246  		i -= len(m.GoVersion)
  2247  		copy(dAtA[i:], m.GoVersion)
  2248  		i = encodeVarintQuery(dAtA, i, uint64(len(m.GoVersion)))
  2249  		i--
  2250  		dAtA[i] = 0x32
  2251  	}
  2252  	if len(m.BuildTags) > 0 {
  2253  		i -= len(m.BuildTags)
  2254  		copy(dAtA[i:], m.BuildTags)
  2255  		i = encodeVarintQuery(dAtA, i, uint64(len(m.BuildTags)))
  2256  		i--
  2257  		dAtA[i] = 0x2a
  2258  	}
  2259  	if len(m.GitCommit) > 0 {
  2260  		i -= len(m.GitCommit)
  2261  		copy(dAtA[i:], m.GitCommit)
  2262  		i = encodeVarintQuery(dAtA, i, uint64(len(m.GitCommit)))
  2263  		i--
  2264  		dAtA[i] = 0x22
  2265  	}
  2266  	if len(m.Version) > 0 {
  2267  		i -= len(m.Version)
  2268  		copy(dAtA[i:], m.Version)
  2269  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Version)))
  2270  		i--
  2271  		dAtA[i] = 0x1a
  2272  	}
  2273  	if len(m.AppName) > 0 {
  2274  		i -= len(m.AppName)
  2275  		copy(dAtA[i:], m.AppName)
  2276  		i = encodeVarintQuery(dAtA, i, uint64(len(m.AppName)))
  2277  		i--
  2278  		dAtA[i] = 0x12
  2279  	}
  2280  	if len(m.Name) > 0 {
  2281  		i -= len(m.Name)
  2282  		copy(dAtA[i:], m.Name)
  2283  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Name)))
  2284  		i--
  2285  		dAtA[i] = 0xa
  2286  	}
  2287  	return len(dAtA) - i, nil
  2288  }
  2289  
  2290  func (m *Module) Marshal() (dAtA []byte, err error) {
  2291  	size := m.Size()
  2292  	dAtA = make([]byte, size)
  2293  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2294  	if err != nil {
  2295  		return nil, err
  2296  	}
  2297  	return dAtA[:n], nil
  2298  }
  2299  
  2300  func (m *Module) MarshalTo(dAtA []byte) (int, error) {
  2301  	size := m.Size()
  2302  	return m.MarshalToSizedBuffer(dAtA[:size])
  2303  }
  2304  
  2305  func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2306  	i := len(dAtA)
  2307  	_ = i
  2308  	var l int
  2309  	_ = l
  2310  	if len(m.Sum) > 0 {
  2311  		i -= len(m.Sum)
  2312  		copy(dAtA[i:], m.Sum)
  2313  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Sum)))
  2314  		i--
  2315  		dAtA[i] = 0x1a
  2316  	}
  2317  	if len(m.Version) > 0 {
  2318  		i -= len(m.Version)
  2319  		copy(dAtA[i:], m.Version)
  2320  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Version)))
  2321  		i--
  2322  		dAtA[i] = 0x12
  2323  	}
  2324  	if len(m.Path) > 0 {
  2325  		i -= len(m.Path)
  2326  		copy(dAtA[i:], m.Path)
  2327  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Path)))
  2328  		i--
  2329  		dAtA[i] = 0xa
  2330  	}
  2331  	return len(dAtA) - i, nil
  2332  }
  2333  
  2334  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
  2335  	offset -= sovQuery(v)
  2336  	base := offset
  2337  	for v >= 1<<7 {
  2338  		dAtA[offset] = uint8(v&0x7f | 0x80)
  2339  		v >>= 7
  2340  		offset++
  2341  	}
  2342  	dAtA[offset] = uint8(v)
  2343  	return base
  2344  }
  2345  func (m *GetValidatorSetByHeightRequest) Size() (n int) {
  2346  	if m == nil {
  2347  		return 0
  2348  	}
  2349  	var l int
  2350  	_ = l
  2351  	if m.Height != 0 {
  2352  		n += 1 + sovQuery(uint64(m.Height))
  2353  	}
  2354  	if m.Pagination != nil {
  2355  		l = m.Pagination.Size()
  2356  		n += 1 + l + sovQuery(uint64(l))
  2357  	}
  2358  	return n
  2359  }
  2360  
  2361  func (m *GetValidatorSetByHeightResponse) Size() (n int) {
  2362  	if m == nil {
  2363  		return 0
  2364  	}
  2365  	var l int
  2366  	_ = l
  2367  	if m.BlockHeight != 0 {
  2368  		n += 1 + sovQuery(uint64(m.BlockHeight))
  2369  	}
  2370  	if len(m.Validators) > 0 {
  2371  		for _, e := range m.Validators {
  2372  			l = e.Size()
  2373  			n += 1 + l + sovQuery(uint64(l))
  2374  		}
  2375  	}
  2376  	if m.Pagination != nil {
  2377  		l = m.Pagination.Size()
  2378  		n += 1 + l + sovQuery(uint64(l))
  2379  	}
  2380  	return n
  2381  }
  2382  
  2383  func (m *GetLatestValidatorSetRequest) Size() (n int) {
  2384  	if m == nil {
  2385  		return 0
  2386  	}
  2387  	var l int
  2388  	_ = l
  2389  	if m.Pagination != nil {
  2390  		l = m.Pagination.Size()
  2391  		n += 1 + l + sovQuery(uint64(l))
  2392  	}
  2393  	return n
  2394  }
  2395  
  2396  func (m *GetLatestValidatorSetResponse) Size() (n int) {
  2397  	if m == nil {
  2398  		return 0
  2399  	}
  2400  	var l int
  2401  	_ = l
  2402  	if m.BlockHeight != 0 {
  2403  		n += 1 + sovQuery(uint64(m.BlockHeight))
  2404  	}
  2405  	if len(m.Validators) > 0 {
  2406  		for _, e := range m.Validators {
  2407  			l = e.Size()
  2408  			n += 1 + l + sovQuery(uint64(l))
  2409  		}
  2410  	}
  2411  	if m.Pagination != nil {
  2412  		l = m.Pagination.Size()
  2413  		n += 1 + l + sovQuery(uint64(l))
  2414  	}
  2415  	return n
  2416  }
  2417  
  2418  func (m *Validator) Size() (n int) {
  2419  	if m == nil {
  2420  		return 0
  2421  	}
  2422  	var l int
  2423  	_ = l
  2424  	l = len(m.Address)
  2425  	if l > 0 {
  2426  		n += 1 + l + sovQuery(uint64(l))
  2427  	}
  2428  	if m.PubKey != nil {
  2429  		l = m.PubKey.Size()
  2430  		n += 1 + l + sovQuery(uint64(l))
  2431  	}
  2432  	if m.VotingPower != 0 {
  2433  		n += 1 + sovQuery(uint64(m.VotingPower))
  2434  	}
  2435  	if m.ProposerPriority != 0 {
  2436  		n += 1 + sovQuery(uint64(m.ProposerPriority))
  2437  	}
  2438  	return n
  2439  }
  2440  
  2441  func (m *GetBlockByHeightRequest) Size() (n int) {
  2442  	if m == nil {
  2443  		return 0
  2444  	}
  2445  	var l int
  2446  	_ = l
  2447  	if m.Height != 0 {
  2448  		n += 1 + sovQuery(uint64(m.Height))
  2449  	}
  2450  	return n
  2451  }
  2452  
  2453  func (m *GetBlockByHeightResponse) Size() (n int) {
  2454  	if m == nil {
  2455  		return 0
  2456  	}
  2457  	var l int
  2458  	_ = l
  2459  	if m.BlockId != nil {
  2460  		l = m.BlockId.Size()
  2461  		n += 1 + l + sovQuery(uint64(l))
  2462  	}
  2463  	if m.Block != nil {
  2464  		l = m.Block.Size()
  2465  		n += 1 + l + sovQuery(uint64(l))
  2466  	}
  2467  	return n
  2468  }
  2469  
  2470  func (m *GetBlockByHashRequest) Size() (n int) {
  2471  	if m == nil {
  2472  		return 0
  2473  	}
  2474  	var l int
  2475  	_ = l
  2476  	l = len(m.Hash)
  2477  	if l > 0 {
  2478  		n += 1 + l + sovQuery(uint64(l))
  2479  	}
  2480  	return n
  2481  }
  2482  
  2483  func (m *GetBlockByHashResponse) Size() (n int) {
  2484  	if m == nil {
  2485  		return 0
  2486  	}
  2487  	var l int
  2488  	_ = l
  2489  	if m.BlockId != nil {
  2490  		l = m.BlockId.Size()
  2491  		n += 1 + l + sovQuery(uint64(l))
  2492  	}
  2493  	if m.Block != nil {
  2494  		l = m.Block.Size()
  2495  		n += 1 + l + sovQuery(uint64(l))
  2496  	}
  2497  	return n
  2498  }
  2499  
  2500  func (m *GetBlockResultsByHeightRequest) Size() (n int) {
  2501  	if m == nil {
  2502  		return 0
  2503  	}
  2504  	var l int
  2505  	_ = l
  2506  	if m.Height != 0 {
  2507  		n += 1 + sovQuery(uint64(m.Height))
  2508  	}
  2509  	return n
  2510  }
  2511  
  2512  func (m *GetBlockResultsByHeightResponse) Size() (n int) {
  2513  	if m == nil {
  2514  		return 0
  2515  	}
  2516  	var l int
  2517  	_ = l
  2518  	if m.Height != 0 {
  2519  		n += 1 + sovQuery(uint64(m.Height))
  2520  	}
  2521  	if len(m.TxsResults) > 0 {
  2522  		for _, e := range m.TxsResults {
  2523  			l = e.Size()
  2524  			n += 1 + l + sovQuery(uint64(l))
  2525  		}
  2526  	}
  2527  	if m.ResBeginBlock != nil {
  2528  		l = m.ResBeginBlock.Size()
  2529  		n += 1 + l + sovQuery(uint64(l))
  2530  	}
  2531  	if m.ResEndBlock != nil {
  2532  		l = m.ResEndBlock.Size()
  2533  		n += 1 + l + sovQuery(uint64(l))
  2534  	}
  2535  	return n
  2536  }
  2537  
  2538  func (m *GetLatestBlockRequest) Size() (n int) {
  2539  	if m == nil {
  2540  		return 0
  2541  	}
  2542  	var l int
  2543  	_ = l
  2544  	return n
  2545  }
  2546  
  2547  func (m *GetLatestBlockResponse) Size() (n int) {
  2548  	if m == nil {
  2549  		return 0
  2550  	}
  2551  	var l int
  2552  	_ = l
  2553  	if m.BlockId != nil {
  2554  		l = m.BlockId.Size()
  2555  		n += 1 + l + sovQuery(uint64(l))
  2556  	}
  2557  	if m.Block != nil {
  2558  		l = m.Block.Size()
  2559  		n += 1 + l + sovQuery(uint64(l))
  2560  	}
  2561  	return n
  2562  }
  2563  
  2564  func (m *GetSyncingRequest) Size() (n int) {
  2565  	if m == nil {
  2566  		return 0
  2567  	}
  2568  	var l int
  2569  	_ = l
  2570  	return n
  2571  }
  2572  
  2573  func (m *GetSyncingResponse) Size() (n int) {
  2574  	if m == nil {
  2575  		return 0
  2576  	}
  2577  	var l int
  2578  	_ = l
  2579  	if m.Syncing {
  2580  		n += 2
  2581  	}
  2582  	return n
  2583  }
  2584  
  2585  func (m *GetNodeInfoRequest) Size() (n int) {
  2586  	if m == nil {
  2587  		return 0
  2588  	}
  2589  	var l int
  2590  	_ = l
  2591  	return n
  2592  }
  2593  
  2594  func (m *GetNodeInfoResponse) Size() (n int) {
  2595  	if m == nil {
  2596  		return 0
  2597  	}
  2598  	var l int
  2599  	_ = l
  2600  	if m.DefaultNodeInfo != nil {
  2601  		l = m.DefaultNodeInfo.Size()
  2602  		n += 1 + l + sovQuery(uint64(l))
  2603  	}
  2604  	if m.ApplicationVersion != nil {
  2605  		l = m.ApplicationVersion.Size()
  2606  		n += 1 + l + sovQuery(uint64(l))
  2607  	}
  2608  	return n
  2609  }
  2610  
  2611  func (m *VersionInfo) Size() (n int) {
  2612  	if m == nil {
  2613  		return 0
  2614  	}
  2615  	var l int
  2616  	_ = l
  2617  	l = len(m.Name)
  2618  	if l > 0 {
  2619  		n += 1 + l + sovQuery(uint64(l))
  2620  	}
  2621  	l = len(m.AppName)
  2622  	if l > 0 {
  2623  		n += 1 + l + sovQuery(uint64(l))
  2624  	}
  2625  	l = len(m.Version)
  2626  	if l > 0 {
  2627  		n += 1 + l + sovQuery(uint64(l))
  2628  	}
  2629  	l = len(m.GitCommit)
  2630  	if l > 0 {
  2631  		n += 1 + l + sovQuery(uint64(l))
  2632  	}
  2633  	l = len(m.BuildTags)
  2634  	if l > 0 {
  2635  		n += 1 + l + sovQuery(uint64(l))
  2636  	}
  2637  	l = len(m.GoVersion)
  2638  	if l > 0 {
  2639  		n += 1 + l + sovQuery(uint64(l))
  2640  	}
  2641  	if len(m.BuildDeps) > 0 {
  2642  		for _, e := range m.BuildDeps {
  2643  			l = e.Size()
  2644  			n += 1 + l + sovQuery(uint64(l))
  2645  		}
  2646  	}
  2647  	l = len(m.LbmSdkVersion)
  2648  	if l > 0 {
  2649  		n += 1 + l + sovQuery(uint64(l))
  2650  	}
  2651  	return n
  2652  }
  2653  
  2654  func (m *Module) Size() (n int) {
  2655  	if m == nil {
  2656  		return 0
  2657  	}
  2658  	var l int
  2659  	_ = l
  2660  	l = len(m.Path)
  2661  	if l > 0 {
  2662  		n += 1 + l + sovQuery(uint64(l))
  2663  	}
  2664  	l = len(m.Version)
  2665  	if l > 0 {
  2666  		n += 1 + l + sovQuery(uint64(l))
  2667  	}
  2668  	l = len(m.Sum)
  2669  	if l > 0 {
  2670  		n += 1 + l + sovQuery(uint64(l))
  2671  	}
  2672  	return n
  2673  }
  2674  
  2675  func sovQuery(x uint64) (n int) {
  2676  	return (math_bits.Len64(x|1) + 6) / 7
  2677  }
  2678  func sozQuery(x uint64) (n int) {
  2679  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2680  }
  2681  func (m *GetValidatorSetByHeightRequest) Unmarshal(dAtA []byte) error {
  2682  	l := len(dAtA)
  2683  	iNdEx := 0
  2684  	for iNdEx < l {
  2685  		preIndex := iNdEx
  2686  		var wire uint64
  2687  		for shift := uint(0); ; shift += 7 {
  2688  			if shift >= 64 {
  2689  				return ErrIntOverflowQuery
  2690  			}
  2691  			if iNdEx >= l {
  2692  				return io.ErrUnexpectedEOF
  2693  			}
  2694  			b := dAtA[iNdEx]
  2695  			iNdEx++
  2696  			wire |= uint64(b&0x7F) << shift
  2697  			if b < 0x80 {
  2698  				break
  2699  			}
  2700  		}
  2701  		fieldNum := int32(wire >> 3)
  2702  		wireType := int(wire & 0x7)
  2703  		if wireType == 4 {
  2704  			return fmt.Errorf("proto: GetValidatorSetByHeightRequest: wiretype end group for non-group")
  2705  		}
  2706  		if fieldNum <= 0 {
  2707  			return fmt.Errorf("proto: GetValidatorSetByHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2708  		}
  2709  		switch fieldNum {
  2710  		case 1:
  2711  			if wireType != 0 {
  2712  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2713  			}
  2714  			m.Height = 0
  2715  			for shift := uint(0); ; shift += 7 {
  2716  				if shift >= 64 {
  2717  					return ErrIntOverflowQuery
  2718  				}
  2719  				if iNdEx >= l {
  2720  					return io.ErrUnexpectedEOF
  2721  				}
  2722  				b := dAtA[iNdEx]
  2723  				iNdEx++
  2724  				m.Height |= int64(b&0x7F) << shift
  2725  				if b < 0x80 {
  2726  					break
  2727  				}
  2728  			}
  2729  		case 2:
  2730  			if wireType != 2 {
  2731  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  2732  			}
  2733  			var msglen int
  2734  			for shift := uint(0); ; shift += 7 {
  2735  				if shift >= 64 {
  2736  					return ErrIntOverflowQuery
  2737  				}
  2738  				if iNdEx >= l {
  2739  					return io.ErrUnexpectedEOF
  2740  				}
  2741  				b := dAtA[iNdEx]
  2742  				iNdEx++
  2743  				msglen |= int(b&0x7F) << shift
  2744  				if b < 0x80 {
  2745  					break
  2746  				}
  2747  			}
  2748  			if msglen < 0 {
  2749  				return ErrInvalidLengthQuery
  2750  			}
  2751  			postIndex := iNdEx + msglen
  2752  			if postIndex < 0 {
  2753  				return ErrInvalidLengthQuery
  2754  			}
  2755  			if postIndex > l {
  2756  				return io.ErrUnexpectedEOF
  2757  			}
  2758  			if m.Pagination == nil {
  2759  				m.Pagination = &query.PageRequest{}
  2760  			}
  2761  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2762  				return err
  2763  			}
  2764  			iNdEx = postIndex
  2765  		default:
  2766  			iNdEx = preIndex
  2767  			skippy, err := skipQuery(dAtA[iNdEx:])
  2768  			if err != nil {
  2769  				return err
  2770  			}
  2771  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2772  				return ErrInvalidLengthQuery
  2773  			}
  2774  			if (iNdEx + skippy) > l {
  2775  				return io.ErrUnexpectedEOF
  2776  			}
  2777  			iNdEx += skippy
  2778  		}
  2779  	}
  2780  
  2781  	if iNdEx > l {
  2782  		return io.ErrUnexpectedEOF
  2783  	}
  2784  	return nil
  2785  }
  2786  func (m *GetValidatorSetByHeightResponse) Unmarshal(dAtA []byte) error {
  2787  	l := len(dAtA)
  2788  	iNdEx := 0
  2789  	for iNdEx < l {
  2790  		preIndex := iNdEx
  2791  		var wire uint64
  2792  		for shift := uint(0); ; shift += 7 {
  2793  			if shift >= 64 {
  2794  				return ErrIntOverflowQuery
  2795  			}
  2796  			if iNdEx >= l {
  2797  				return io.ErrUnexpectedEOF
  2798  			}
  2799  			b := dAtA[iNdEx]
  2800  			iNdEx++
  2801  			wire |= uint64(b&0x7F) << shift
  2802  			if b < 0x80 {
  2803  				break
  2804  			}
  2805  		}
  2806  		fieldNum := int32(wire >> 3)
  2807  		wireType := int(wire & 0x7)
  2808  		if wireType == 4 {
  2809  			return fmt.Errorf("proto: GetValidatorSetByHeightResponse: wiretype end group for non-group")
  2810  		}
  2811  		if fieldNum <= 0 {
  2812  			return fmt.Errorf("proto: GetValidatorSetByHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2813  		}
  2814  		switch fieldNum {
  2815  		case 1:
  2816  			if wireType != 0 {
  2817  				return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType)
  2818  			}
  2819  			m.BlockHeight = 0
  2820  			for shift := uint(0); ; shift += 7 {
  2821  				if shift >= 64 {
  2822  					return ErrIntOverflowQuery
  2823  				}
  2824  				if iNdEx >= l {
  2825  					return io.ErrUnexpectedEOF
  2826  				}
  2827  				b := dAtA[iNdEx]
  2828  				iNdEx++
  2829  				m.BlockHeight |= int64(b&0x7F) << shift
  2830  				if b < 0x80 {
  2831  					break
  2832  				}
  2833  			}
  2834  		case 2:
  2835  			if wireType != 2 {
  2836  				return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  2837  			}
  2838  			var msglen int
  2839  			for shift := uint(0); ; shift += 7 {
  2840  				if shift >= 64 {
  2841  					return ErrIntOverflowQuery
  2842  				}
  2843  				if iNdEx >= l {
  2844  					return io.ErrUnexpectedEOF
  2845  				}
  2846  				b := dAtA[iNdEx]
  2847  				iNdEx++
  2848  				msglen |= int(b&0x7F) << shift
  2849  				if b < 0x80 {
  2850  					break
  2851  				}
  2852  			}
  2853  			if msglen < 0 {
  2854  				return ErrInvalidLengthQuery
  2855  			}
  2856  			postIndex := iNdEx + msglen
  2857  			if postIndex < 0 {
  2858  				return ErrInvalidLengthQuery
  2859  			}
  2860  			if postIndex > l {
  2861  				return io.ErrUnexpectedEOF
  2862  			}
  2863  			m.Validators = append(m.Validators, &Validator{})
  2864  			if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2865  				return err
  2866  			}
  2867  			iNdEx = postIndex
  2868  		case 3:
  2869  			if wireType != 2 {
  2870  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  2871  			}
  2872  			var msglen int
  2873  			for shift := uint(0); ; shift += 7 {
  2874  				if shift >= 64 {
  2875  					return ErrIntOverflowQuery
  2876  				}
  2877  				if iNdEx >= l {
  2878  					return io.ErrUnexpectedEOF
  2879  				}
  2880  				b := dAtA[iNdEx]
  2881  				iNdEx++
  2882  				msglen |= int(b&0x7F) << shift
  2883  				if b < 0x80 {
  2884  					break
  2885  				}
  2886  			}
  2887  			if msglen < 0 {
  2888  				return ErrInvalidLengthQuery
  2889  			}
  2890  			postIndex := iNdEx + msglen
  2891  			if postIndex < 0 {
  2892  				return ErrInvalidLengthQuery
  2893  			}
  2894  			if postIndex > l {
  2895  				return io.ErrUnexpectedEOF
  2896  			}
  2897  			if m.Pagination == nil {
  2898  				m.Pagination = &query.PageResponse{}
  2899  			}
  2900  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2901  				return err
  2902  			}
  2903  			iNdEx = postIndex
  2904  		default:
  2905  			iNdEx = preIndex
  2906  			skippy, err := skipQuery(dAtA[iNdEx:])
  2907  			if err != nil {
  2908  				return err
  2909  			}
  2910  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2911  				return ErrInvalidLengthQuery
  2912  			}
  2913  			if (iNdEx + skippy) > l {
  2914  				return io.ErrUnexpectedEOF
  2915  			}
  2916  			iNdEx += skippy
  2917  		}
  2918  	}
  2919  
  2920  	if iNdEx > l {
  2921  		return io.ErrUnexpectedEOF
  2922  	}
  2923  	return nil
  2924  }
  2925  func (m *GetLatestValidatorSetRequest) Unmarshal(dAtA []byte) error {
  2926  	l := len(dAtA)
  2927  	iNdEx := 0
  2928  	for iNdEx < l {
  2929  		preIndex := iNdEx
  2930  		var wire uint64
  2931  		for shift := uint(0); ; shift += 7 {
  2932  			if shift >= 64 {
  2933  				return ErrIntOverflowQuery
  2934  			}
  2935  			if iNdEx >= l {
  2936  				return io.ErrUnexpectedEOF
  2937  			}
  2938  			b := dAtA[iNdEx]
  2939  			iNdEx++
  2940  			wire |= uint64(b&0x7F) << shift
  2941  			if b < 0x80 {
  2942  				break
  2943  			}
  2944  		}
  2945  		fieldNum := int32(wire >> 3)
  2946  		wireType := int(wire & 0x7)
  2947  		if wireType == 4 {
  2948  			return fmt.Errorf("proto: GetLatestValidatorSetRequest: wiretype end group for non-group")
  2949  		}
  2950  		if fieldNum <= 0 {
  2951  			return fmt.Errorf("proto: GetLatestValidatorSetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2952  		}
  2953  		switch fieldNum {
  2954  		case 1:
  2955  			if wireType != 2 {
  2956  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  2957  			}
  2958  			var msglen int
  2959  			for shift := uint(0); ; shift += 7 {
  2960  				if shift >= 64 {
  2961  					return ErrIntOverflowQuery
  2962  				}
  2963  				if iNdEx >= l {
  2964  					return io.ErrUnexpectedEOF
  2965  				}
  2966  				b := dAtA[iNdEx]
  2967  				iNdEx++
  2968  				msglen |= int(b&0x7F) << shift
  2969  				if b < 0x80 {
  2970  					break
  2971  				}
  2972  			}
  2973  			if msglen < 0 {
  2974  				return ErrInvalidLengthQuery
  2975  			}
  2976  			postIndex := iNdEx + msglen
  2977  			if postIndex < 0 {
  2978  				return ErrInvalidLengthQuery
  2979  			}
  2980  			if postIndex > l {
  2981  				return io.ErrUnexpectedEOF
  2982  			}
  2983  			if m.Pagination == nil {
  2984  				m.Pagination = &query.PageRequest{}
  2985  			}
  2986  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2987  				return err
  2988  			}
  2989  			iNdEx = postIndex
  2990  		default:
  2991  			iNdEx = preIndex
  2992  			skippy, err := skipQuery(dAtA[iNdEx:])
  2993  			if err != nil {
  2994  				return err
  2995  			}
  2996  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2997  				return ErrInvalidLengthQuery
  2998  			}
  2999  			if (iNdEx + skippy) > l {
  3000  				return io.ErrUnexpectedEOF
  3001  			}
  3002  			iNdEx += skippy
  3003  		}
  3004  	}
  3005  
  3006  	if iNdEx > l {
  3007  		return io.ErrUnexpectedEOF
  3008  	}
  3009  	return nil
  3010  }
  3011  func (m *GetLatestValidatorSetResponse) Unmarshal(dAtA []byte) error {
  3012  	l := len(dAtA)
  3013  	iNdEx := 0
  3014  	for iNdEx < l {
  3015  		preIndex := iNdEx
  3016  		var wire uint64
  3017  		for shift := uint(0); ; shift += 7 {
  3018  			if shift >= 64 {
  3019  				return ErrIntOverflowQuery
  3020  			}
  3021  			if iNdEx >= l {
  3022  				return io.ErrUnexpectedEOF
  3023  			}
  3024  			b := dAtA[iNdEx]
  3025  			iNdEx++
  3026  			wire |= uint64(b&0x7F) << shift
  3027  			if b < 0x80 {
  3028  				break
  3029  			}
  3030  		}
  3031  		fieldNum := int32(wire >> 3)
  3032  		wireType := int(wire & 0x7)
  3033  		if wireType == 4 {
  3034  			return fmt.Errorf("proto: GetLatestValidatorSetResponse: wiretype end group for non-group")
  3035  		}
  3036  		if fieldNum <= 0 {
  3037  			return fmt.Errorf("proto: GetLatestValidatorSetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3038  		}
  3039  		switch fieldNum {
  3040  		case 1:
  3041  			if wireType != 0 {
  3042  				return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType)
  3043  			}
  3044  			m.BlockHeight = 0
  3045  			for shift := uint(0); ; shift += 7 {
  3046  				if shift >= 64 {
  3047  					return ErrIntOverflowQuery
  3048  				}
  3049  				if iNdEx >= l {
  3050  					return io.ErrUnexpectedEOF
  3051  				}
  3052  				b := dAtA[iNdEx]
  3053  				iNdEx++
  3054  				m.BlockHeight |= int64(b&0x7F) << shift
  3055  				if b < 0x80 {
  3056  					break
  3057  				}
  3058  			}
  3059  		case 2:
  3060  			if wireType != 2 {
  3061  				return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  3062  			}
  3063  			var msglen int
  3064  			for shift := uint(0); ; shift += 7 {
  3065  				if shift >= 64 {
  3066  					return ErrIntOverflowQuery
  3067  				}
  3068  				if iNdEx >= l {
  3069  					return io.ErrUnexpectedEOF
  3070  				}
  3071  				b := dAtA[iNdEx]
  3072  				iNdEx++
  3073  				msglen |= int(b&0x7F) << shift
  3074  				if b < 0x80 {
  3075  					break
  3076  				}
  3077  			}
  3078  			if msglen < 0 {
  3079  				return ErrInvalidLengthQuery
  3080  			}
  3081  			postIndex := iNdEx + msglen
  3082  			if postIndex < 0 {
  3083  				return ErrInvalidLengthQuery
  3084  			}
  3085  			if postIndex > l {
  3086  				return io.ErrUnexpectedEOF
  3087  			}
  3088  			m.Validators = append(m.Validators, &Validator{})
  3089  			if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3090  				return err
  3091  			}
  3092  			iNdEx = postIndex
  3093  		case 3:
  3094  			if wireType != 2 {
  3095  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  3096  			}
  3097  			var msglen int
  3098  			for shift := uint(0); ; shift += 7 {
  3099  				if shift >= 64 {
  3100  					return ErrIntOverflowQuery
  3101  				}
  3102  				if iNdEx >= l {
  3103  					return io.ErrUnexpectedEOF
  3104  				}
  3105  				b := dAtA[iNdEx]
  3106  				iNdEx++
  3107  				msglen |= int(b&0x7F) << shift
  3108  				if b < 0x80 {
  3109  					break
  3110  				}
  3111  			}
  3112  			if msglen < 0 {
  3113  				return ErrInvalidLengthQuery
  3114  			}
  3115  			postIndex := iNdEx + msglen
  3116  			if postIndex < 0 {
  3117  				return ErrInvalidLengthQuery
  3118  			}
  3119  			if postIndex > l {
  3120  				return io.ErrUnexpectedEOF
  3121  			}
  3122  			if m.Pagination == nil {
  3123  				m.Pagination = &query.PageResponse{}
  3124  			}
  3125  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3126  				return err
  3127  			}
  3128  			iNdEx = postIndex
  3129  		default:
  3130  			iNdEx = preIndex
  3131  			skippy, err := skipQuery(dAtA[iNdEx:])
  3132  			if err != nil {
  3133  				return err
  3134  			}
  3135  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3136  				return ErrInvalidLengthQuery
  3137  			}
  3138  			if (iNdEx + skippy) > l {
  3139  				return io.ErrUnexpectedEOF
  3140  			}
  3141  			iNdEx += skippy
  3142  		}
  3143  	}
  3144  
  3145  	if iNdEx > l {
  3146  		return io.ErrUnexpectedEOF
  3147  	}
  3148  	return nil
  3149  }
  3150  func (m *Validator) Unmarshal(dAtA []byte) error {
  3151  	l := len(dAtA)
  3152  	iNdEx := 0
  3153  	for iNdEx < l {
  3154  		preIndex := iNdEx
  3155  		var wire uint64
  3156  		for shift := uint(0); ; shift += 7 {
  3157  			if shift >= 64 {
  3158  				return ErrIntOverflowQuery
  3159  			}
  3160  			if iNdEx >= l {
  3161  				return io.ErrUnexpectedEOF
  3162  			}
  3163  			b := dAtA[iNdEx]
  3164  			iNdEx++
  3165  			wire |= uint64(b&0x7F) << shift
  3166  			if b < 0x80 {
  3167  				break
  3168  			}
  3169  		}
  3170  		fieldNum := int32(wire >> 3)
  3171  		wireType := int(wire & 0x7)
  3172  		if wireType == 4 {
  3173  			return fmt.Errorf("proto: Validator: wiretype end group for non-group")
  3174  		}
  3175  		if fieldNum <= 0 {
  3176  			return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire)
  3177  		}
  3178  		switch fieldNum {
  3179  		case 1:
  3180  			if wireType != 2 {
  3181  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  3182  			}
  3183  			var stringLen uint64
  3184  			for shift := uint(0); ; shift += 7 {
  3185  				if shift >= 64 {
  3186  					return ErrIntOverflowQuery
  3187  				}
  3188  				if iNdEx >= l {
  3189  					return io.ErrUnexpectedEOF
  3190  				}
  3191  				b := dAtA[iNdEx]
  3192  				iNdEx++
  3193  				stringLen |= uint64(b&0x7F) << shift
  3194  				if b < 0x80 {
  3195  					break
  3196  				}
  3197  			}
  3198  			intStringLen := int(stringLen)
  3199  			if intStringLen < 0 {
  3200  				return ErrInvalidLengthQuery
  3201  			}
  3202  			postIndex := iNdEx + intStringLen
  3203  			if postIndex < 0 {
  3204  				return ErrInvalidLengthQuery
  3205  			}
  3206  			if postIndex > l {
  3207  				return io.ErrUnexpectedEOF
  3208  			}
  3209  			m.Address = string(dAtA[iNdEx:postIndex])
  3210  			iNdEx = postIndex
  3211  		case 2:
  3212  			if wireType != 2 {
  3213  				return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType)
  3214  			}
  3215  			var msglen int
  3216  			for shift := uint(0); ; shift += 7 {
  3217  				if shift >= 64 {
  3218  					return ErrIntOverflowQuery
  3219  				}
  3220  				if iNdEx >= l {
  3221  					return io.ErrUnexpectedEOF
  3222  				}
  3223  				b := dAtA[iNdEx]
  3224  				iNdEx++
  3225  				msglen |= int(b&0x7F) << shift
  3226  				if b < 0x80 {
  3227  					break
  3228  				}
  3229  			}
  3230  			if msglen < 0 {
  3231  				return ErrInvalidLengthQuery
  3232  			}
  3233  			postIndex := iNdEx + msglen
  3234  			if postIndex < 0 {
  3235  				return ErrInvalidLengthQuery
  3236  			}
  3237  			if postIndex > l {
  3238  				return io.ErrUnexpectedEOF
  3239  			}
  3240  			if m.PubKey == nil {
  3241  				m.PubKey = &types.Any{}
  3242  			}
  3243  			if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3244  				return err
  3245  			}
  3246  			iNdEx = postIndex
  3247  		case 3:
  3248  			if wireType != 0 {
  3249  				return fmt.Errorf("proto: wrong wireType = %d for field VotingPower", wireType)
  3250  			}
  3251  			m.VotingPower = 0
  3252  			for shift := uint(0); ; shift += 7 {
  3253  				if shift >= 64 {
  3254  					return ErrIntOverflowQuery
  3255  				}
  3256  				if iNdEx >= l {
  3257  					return io.ErrUnexpectedEOF
  3258  				}
  3259  				b := dAtA[iNdEx]
  3260  				iNdEx++
  3261  				m.VotingPower |= int64(b&0x7F) << shift
  3262  				if b < 0x80 {
  3263  					break
  3264  				}
  3265  			}
  3266  		case 4:
  3267  			if wireType != 0 {
  3268  				return fmt.Errorf("proto: wrong wireType = %d for field ProposerPriority", wireType)
  3269  			}
  3270  			m.ProposerPriority = 0
  3271  			for shift := uint(0); ; shift += 7 {
  3272  				if shift >= 64 {
  3273  					return ErrIntOverflowQuery
  3274  				}
  3275  				if iNdEx >= l {
  3276  					return io.ErrUnexpectedEOF
  3277  				}
  3278  				b := dAtA[iNdEx]
  3279  				iNdEx++
  3280  				m.ProposerPriority |= int64(b&0x7F) << shift
  3281  				if b < 0x80 {
  3282  					break
  3283  				}
  3284  			}
  3285  		default:
  3286  			iNdEx = preIndex
  3287  			skippy, err := skipQuery(dAtA[iNdEx:])
  3288  			if err != nil {
  3289  				return err
  3290  			}
  3291  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3292  				return ErrInvalidLengthQuery
  3293  			}
  3294  			if (iNdEx + skippy) > l {
  3295  				return io.ErrUnexpectedEOF
  3296  			}
  3297  			iNdEx += skippy
  3298  		}
  3299  	}
  3300  
  3301  	if iNdEx > l {
  3302  		return io.ErrUnexpectedEOF
  3303  	}
  3304  	return nil
  3305  }
  3306  func (m *GetBlockByHeightRequest) Unmarshal(dAtA []byte) error {
  3307  	l := len(dAtA)
  3308  	iNdEx := 0
  3309  	for iNdEx < l {
  3310  		preIndex := iNdEx
  3311  		var wire uint64
  3312  		for shift := uint(0); ; shift += 7 {
  3313  			if shift >= 64 {
  3314  				return ErrIntOverflowQuery
  3315  			}
  3316  			if iNdEx >= l {
  3317  				return io.ErrUnexpectedEOF
  3318  			}
  3319  			b := dAtA[iNdEx]
  3320  			iNdEx++
  3321  			wire |= uint64(b&0x7F) << shift
  3322  			if b < 0x80 {
  3323  				break
  3324  			}
  3325  		}
  3326  		fieldNum := int32(wire >> 3)
  3327  		wireType := int(wire & 0x7)
  3328  		if wireType == 4 {
  3329  			return fmt.Errorf("proto: GetBlockByHeightRequest: wiretype end group for non-group")
  3330  		}
  3331  		if fieldNum <= 0 {
  3332  			return fmt.Errorf("proto: GetBlockByHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3333  		}
  3334  		switch fieldNum {
  3335  		case 1:
  3336  			if wireType != 0 {
  3337  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  3338  			}
  3339  			m.Height = 0
  3340  			for shift := uint(0); ; shift += 7 {
  3341  				if shift >= 64 {
  3342  					return ErrIntOverflowQuery
  3343  				}
  3344  				if iNdEx >= l {
  3345  					return io.ErrUnexpectedEOF
  3346  				}
  3347  				b := dAtA[iNdEx]
  3348  				iNdEx++
  3349  				m.Height |= int64(b&0x7F) << shift
  3350  				if b < 0x80 {
  3351  					break
  3352  				}
  3353  			}
  3354  		default:
  3355  			iNdEx = preIndex
  3356  			skippy, err := skipQuery(dAtA[iNdEx:])
  3357  			if err != nil {
  3358  				return err
  3359  			}
  3360  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3361  				return ErrInvalidLengthQuery
  3362  			}
  3363  			if (iNdEx + skippy) > l {
  3364  				return io.ErrUnexpectedEOF
  3365  			}
  3366  			iNdEx += skippy
  3367  		}
  3368  	}
  3369  
  3370  	if iNdEx > l {
  3371  		return io.ErrUnexpectedEOF
  3372  	}
  3373  	return nil
  3374  }
  3375  func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error {
  3376  	l := len(dAtA)
  3377  	iNdEx := 0
  3378  	for iNdEx < l {
  3379  		preIndex := iNdEx
  3380  		var wire uint64
  3381  		for shift := uint(0); ; shift += 7 {
  3382  			if shift >= 64 {
  3383  				return ErrIntOverflowQuery
  3384  			}
  3385  			if iNdEx >= l {
  3386  				return io.ErrUnexpectedEOF
  3387  			}
  3388  			b := dAtA[iNdEx]
  3389  			iNdEx++
  3390  			wire |= uint64(b&0x7F) << shift
  3391  			if b < 0x80 {
  3392  				break
  3393  			}
  3394  		}
  3395  		fieldNum := int32(wire >> 3)
  3396  		wireType := int(wire & 0x7)
  3397  		if wireType == 4 {
  3398  			return fmt.Errorf("proto: GetBlockByHeightResponse: wiretype end group for non-group")
  3399  		}
  3400  		if fieldNum <= 0 {
  3401  			return fmt.Errorf("proto: GetBlockByHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3402  		}
  3403  		switch fieldNum {
  3404  		case 1:
  3405  			if wireType != 2 {
  3406  				return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType)
  3407  			}
  3408  			var msglen int
  3409  			for shift := uint(0); ; shift += 7 {
  3410  				if shift >= 64 {
  3411  					return ErrIntOverflowQuery
  3412  				}
  3413  				if iNdEx >= l {
  3414  					return io.ErrUnexpectedEOF
  3415  				}
  3416  				b := dAtA[iNdEx]
  3417  				iNdEx++
  3418  				msglen |= int(b&0x7F) << shift
  3419  				if b < 0x80 {
  3420  					break
  3421  				}
  3422  			}
  3423  			if msglen < 0 {
  3424  				return ErrInvalidLengthQuery
  3425  			}
  3426  			postIndex := iNdEx + msglen
  3427  			if postIndex < 0 {
  3428  				return ErrInvalidLengthQuery
  3429  			}
  3430  			if postIndex > l {
  3431  				return io.ErrUnexpectedEOF
  3432  			}
  3433  			if m.BlockId == nil {
  3434  				m.BlockId = &types1.BlockID{}
  3435  			}
  3436  			if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3437  				return err
  3438  			}
  3439  			iNdEx = postIndex
  3440  		case 2:
  3441  			if wireType != 2 {
  3442  				return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType)
  3443  			}
  3444  			var msglen int
  3445  			for shift := uint(0); ; shift += 7 {
  3446  				if shift >= 64 {
  3447  					return ErrIntOverflowQuery
  3448  				}
  3449  				if iNdEx >= l {
  3450  					return io.ErrUnexpectedEOF
  3451  				}
  3452  				b := dAtA[iNdEx]
  3453  				iNdEx++
  3454  				msglen |= int(b&0x7F) << shift
  3455  				if b < 0x80 {
  3456  					break
  3457  				}
  3458  			}
  3459  			if msglen < 0 {
  3460  				return ErrInvalidLengthQuery
  3461  			}
  3462  			postIndex := iNdEx + msglen
  3463  			if postIndex < 0 {
  3464  				return ErrInvalidLengthQuery
  3465  			}
  3466  			if postIndex > l {
  3467  				return io.ErrUnexpectedEOF
  3468  			}
  3469  			if m.Block == nil {
  3470  				m.Block = &types2.Block{}
  3471  			}
  3472  			if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3473  				return err
  3474  			}
  3475  			iNdEx = postIndex
  3476  		default:
  3477  			iNdEx = preIndex
  3478  			skippy, err := skipQuery(dAtA[iNdEx:])
  3479  			if err != nil {
  3480  				return err
  3481  			}
  3482  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3483  				return ErrInvalidLengthQuery
  3484  			}
  3485  			if (iNdEx + skippy) > l {
  3486  				return io.ErrUnexpectedEOF
  3487  			}
  3488  			iNdEx += skippy
  3489  		}
  3490  	}
  3491  
  3492  	if iNdEx > l {
  3493  		return io.ErrUnexpectedEOF
  3494  	}
  3495  	return nil
  3496  }
  3497  func (m *GetBlockByHashRequest) Unmarshal(dAtA []byte) error {
  3498  	l := len(dAtA)
  3499  	iNdEx := 0
  3500  	for iNdEx < l {
  3501  		preIndex := iNdEx
  3502  		var wire uint64
  3503  		for shift := uint(0); ; shift += 7 {
  3504  			if shift >= 64 {
  3505  				return ErrIntOverflowQuery
  3506  			}
  3507  			if iNdEx >= l {
  3508  				return io.ErrUnexpectedEOF
  3509  			}
  3510  			b := dAtA[iNdEx]
  3511  			iNdEx++
  3512  			wire |= uint64(b&0x7F) << shift
  3513  			if b < 0x80 {
  3514  				break
  3515  			}
  3516  		}
  3517  		fieldNum := int32(wire >> 3)
  3518  		wireType := int(wire & 0x7)
  3519  		if wireType == 4 {
  3520  			return fmt.Errorf("proto: GetBlockByHashRequest: wiretype end group for non-group")
  3521  		}
  3522  		if fieldNum <= 0 {
  3523  			return fmt.Errorf("proto: GetBlockByHashRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3524  		}
  3525  		switch fieldNum {
  3526  		case 1:
  3527  			if wireType != 2 {
  3528  				return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  3529  			}
  3530  			var byteLen int
  3531  			for shift := uint(0); ; shift += 7 {
  3532  				if shift >= 64 {
  3533  					return ErrIntOverflowQuery
  3534  				}
  3535  				if iNdEx >= l {
  3536  					return io.ErrUnexpectedEOF
  3537  				}
  3538  				b := dAtA[iNdEx]
  3539  				iNdEx++
  3540  				byteLen |= int(b&0x7F) << shift
  3541  				if b < 0x80 {
  3542  					break
  3543  				}
  3544  			}
  3545  			if byteLen < 0 {
  3546  				return ErrInvalidLengthQuery
  3547  			}
  3548  			postIndex := iNdEx + byteLen
  3549  			if postIndex < 0 {
  3550  				return ErrInvalidLengthQuery
  3551  			}
  3552  			if postIndex > l {
  3553  				return io.ErrUnexpectedEOF
  3554  			}
  3555  			m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  3556  			if m.Hash == nil {
  3557  				m.Hash = []byte{}
  3558  			}
  3559  			iNdEx = postIndex
  3560  		default:
  3561  			iNdEx = preIndex
  3562  			skippy, err := skipQuery(dAtA[iNdEx:])
  3563  			if err != nil {
  3564  				return err
  3565  			}
  3566  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3567  				return ErrInvalidLengthQuery
  3568  			}
  3569  			if (iNdEx + skippy) > l {
  3570  				return io.ErrUnexpectedEOF
  3571  			}
  3572  			iNdEx += skippy
  3573  		}
  3574  	}
  3575  
  3576  	if iNdEx > l {
  3577  		return io.ErrUnexpectedEOF
  3578  	}
  3579  	return nil
  3580  }
  3581  func (m *GetBlockByHashResponse) Unmarshal(dAtA []byte) error {
  3582  	l := len(dAtA)
  3583  	iNdEx := 0
  3584  	for iNdEx < l {
  3585  		preIndex := iNdEx
  3586  		var wire uint64
  3587  		for shift := uint(0); ; shift += 7 {
  3588  			if shift >= 64 {
  3589  				return ErrIntOverflowQuery
  3590  			}
  3591  			if iNdEx >= l {
  3592  				return io.ErrUnexpectedEOF
  3593  			}
  3594  			b := dAtA[iNdEx]
  3595  			iNdEx++
  3596  			wire |= uint64(b&0x7F) << shift
  3597  			if b < 0x80 {
  3598  				break
  3599  			}
  3600  		}
  3601  		fieldNum := int32(wire >> 3)
  3602  		wireType := int(wire & 0x7)
  3603  		if wireType == 4 {
  3604  			return fmt.Errorf("proto: GetBlockByHashResponse: wiretype end group for non-group")
  3605  		}
  3606  		if fieldNum <= 0 {
  3607  			return fmt.Errorf("proto: GetBlockByHashResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3608  		}
  3609  		switch fieldNum {
  3610  		case 1:
  3611  			if wireType != 2 {
  3612  				return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType)
  3613  			}
  3614  			var msglen int
  3615  			for shift := uint(0); ; shift += 7 {
  3616  				if shift >= 64 {
  3617  					return ErrIntOverflowQuery
  3618  				}
  3619  				if iNdEx >= l {
  3620  					return io.ErrUnexpectedEOF
  3621  				}
  3622  				b := dAtA[iNdEx]
  3623  				iNdEx++
  3624  				msglen |= int(b&0x7F) << shift
  3625  				if b < 0x80 {
  3626  					break
  3627  				}
  3628  			}
  3629  			if msglen < 0 {
  3630  				return ErrInvalidLengthQuery
  3631  			}
  3632  			postIndex := iNdEx + msglen
  3633  			if postIndex < 0 {
  3634  				return ErrInvalidLengthQuery
  3635  			}
  3636  			if postIndex > l {
  3637  				return io.ErrUnexpectedEOF
  3638  			}
  3639  			if m.BlockId == nil {
  3640  				m.BlockId = &types1.BlockID{}
  3641  			}
  3642  			if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3643  				return err
  3644  			}
  3645  			iNdEx = postIndex
  3646  		case 2:
  3647  			if wireType != 2 {
  3648  				return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType)
  3649  			}
  3650  			var msglen int
  3651  			for shift := uint(0); ; shift += 7 {
  3652  				if shift >= 64 {
  3653  					return ErrIntOverflowQuery
  3654  				}
  3655  				if iNdEx >= l {
  3656  					return io.ErrUnexpectedEOF
  3657  				}
  3658  				b := dAtA[iNdEx]
  3659  				iNdEx++
  3660  				msglen |= int(b&0x7F) << shift
  3661  				if b < 0x80 {
  3662  					break
  3663  				}
  3664  			}
  3665  			if msglen < 0 {
  3666  				return ErrInvalidLengthQuery
  3667  			}
  3668  			postIndex := iNdEx + msglen
  3669  			if postIndex < 0 {
  3670  				return ErrInvalidLengthQuery
  3671  			}
  3672  			if postIndex > l {
  3673  				return io.ErrUnexpectedEOF
  3674  			}
  3675  			if m.Block == nil {
  3676  				m.Block = &types2.Block{}
  3677  			}
  3678  			if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3679  				return err
  3680  			}
  3681  			iNdEx = postIndex
  3682  		default:
  3683  			iNdEx = preIndex
  3684  			skippy, err := skipQuery(dAtA[iNdEx:])
  3685  			if err != nil {
  3686  				return err
  3687  			}
  3688  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3689  				return ErrInvalidLengthQuery
  3690  			}
  3691  			if (iNdEx + skippy) > l {
  3692  				return io.ErrUnexpectedEOF
  3693  			}
  3694  			iNdEx += skippy
  3695  		}
  3696  	}
  3697  
  3698  	if iNdEx > l {
  3699  		return io.ErrUnexpectedEOF
  3700  	}
  3701  	return nil
  3702  }
  3703  func (m *GetBlockResultsByHeightRequest) Unmarshal(dAtA []byte) error {
  3704  	l := len(dAtA)
  3705  	iNdEx := 0
  3706  	for iNdEx < l {
  3707  		preIndex := iNdEx
  3708  		var wire uint64
  3709  		for shift := uint(0); ; shift += 7 {
  3710  			if shift >= 64 {
  3711  				return ErrIntOverflowQuery
  3712  			}
  3713  			if iNdEx >= l {
  3714  				return io.ErrUnexpectedEOF
  3715  			}
  3716  			b := dAtA[iNdEx]
  3717  			iNdEx++
  3718  			wire |= uint64(b&0x7F) << shift
  3719  			if b < 0x80 {
  3720  				break
  3721  			}
  3722  		}
  3723  		fieldNum := int32(wire >> 3)
  3724  		wireType := int(wire & 0x7)
  3725  		if wireType == 4 {
  3726  			return fmt.Errorf("proto: GetBlockResultsByHeightRequest: wiretype end group for non-group")
  3727  		}
  3728  		if fieldNum <= 0 {
  3729  			return fmt.Errorf("proto: GetBlockResultsByHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3730  		}
  3731  		switch fieldNum {
  3732  		case 1:
  3733  			if wireType != 0 {
  3734  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  3735  			}
  3736  			m.Height = 0
  3737  			for shift := uint(0); ; shift += 7 {
  3738  				if shift >= 64 {
  3739  					return ErrIntOverflowQuery
  3740  				}
  3741  				if iNdEx >= l {
  3742  					return io.ErrUnexpectedEOF
  3743  				}
  3744  				b := dAtA[iNdEx]
  3745  				iNdEx++
  3746  				m.Height |= int64(b&0x7F) << shift
  3747  				if b < 0x80 {
  3748  					break
  3749  				}
  3750  			}
  3751  		default:
  3752  			iNdEx = preIndex
  3753  			skippy, err := skipQuery(dAtA[iNdEx:])
  3754  			if err != nil {
  3755  				return err
  3756  			}
  3757  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3758  				return ErrInvalidLengthQuery
  3759  			}
  3760  			if (iNdEx + skippy) > l {
  3761  				return io.ErrUnexpectedEOF
  3762  			}
  3763  			iNdEx += skippy
  3764  		}
  3765  	}
  3766  
  3767  	if iNdEx > l {
  3768  		return io.ErrUnexpectedEOF
  3769  	}
  3770  	return nil
  3771  }
  3772  func (m *GetBlockResultsByHeightResponse) Unmarshal(dAtA []byte) error {
  3773  	l := len(dAtA)
  3774  	iNdEx := 0
  3775  	for iNdEx < l {
  3776  		preIndex := iNdEx
  3777  		var wire uint64
  3778  		for shift := uint(0); ; shift += 7 {
  3779  			if shift >= 64 {
  3780  				return ErrIntOverflowQuery
  3781  			}
  3782  			if iNdEx >= l {
  3783  				return io.ErrUnexpectedEOF
  3784  			}
  3785  			b := dAtA[iNdEx]
  3786  			iNdEx++
  3787  			wire |= uint64(b&0x7F) << shift
  3788  			if b < 0x80 {
  3789  				break
  3790  			}
  3791  		}
  3792  		fieldNum := int32(wire >> 3)
  3793  		wireType := int(wire & 0x7)
  3794  		if wireType == 4 {
  3795  			return fmt.Errorf("proto: GetBlockResultsByHeightResponse: wiretype end group for non-group")
  3796  		}
  3797  		if fieldNum <= 0 {
  3798  			return fmt.Errorf("proto: GetBlockResultsByHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3799  		}
  3800  		switch fieldNum {
  3801  		case 1:
  3802  			if wireType != 0 {
  3803  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  3804  			}
  3805  			m.Height = 0
  3806  			for shift := uint(0); ; shift += 7 {
  3807  				if shift >= 64 {
  3808  					return ErrIntOverflowQuery
  3809  				}
  3810  				if iNdEx >= l {
  3811  					return io.ErrUnexpectedEOF
  3812  				}
  3813  				b := dAtA[iNdEx]
  3814  				iNdEx++
  3815  				m.Height |= int64(b&0x7F) << shift
  3816  				if b < 0x80 {
  3817  					break
  3818  				}
  3819  			}
  3820  		case 2:
  3821  			if wireType != 2 {
  3822  				return fmt.Errorf("proto: wrong wireType = %d for field TxsResults", wireType)
  3823  			}
  3824  			var msglen int
  3825  			for shift := uint(0); ; shift += 7 {
  3826  				if shift >= 64 {
  3827  					return ErrIntOverflowQuery
  3828  				}
  3829  				if iNdEx >= l {
  3830  					return io.ErrUnexpectedEOF
  3831  				}
  3832  				b := dAtA[iNdEx]
  3833  				iNdEx++
  3834  				msglen |= int(b&0x7F) << shift
  3835  				if b < 0x80 {
  3836  					break
  3837  				}
  3838  			}
  3839  			if msglen < 0 {
  3840  				return ErrInvalidLengthQuery
  3841  			}
  3842  			postIndex := iNdEx + msglen
  3843  			if postIndex < 0 {
  3844  				return ErrInvalidLengthQuery
  3845  			}
  3846  			if postIndex > l {
  3847  				return io.ErrUnexpectedEOF
  3848  			}
  3849  			m.TxsResults = append(m.TxsResults, &types3.ResponseDeliverTx{})
  3850  			if err := m.TxsResults[len(m.TxsResults)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3851  				return err
  3852  			}
  3853  			iNdEx = postIndex
  3854  		case 3:
  3855  			if wireType != 2 {
  3856  				return fmt.Errorf("proto: wrong wireType = %d for field ResBeginBlock", wireType)
  3857  			}
  3858  			var msglen int
  3859  			for shift := uint(0); ; shift += 7 {
  3860  				if shift >= 64 {
  3861  					return ErrIntOverflowQuery
  3862  				}
  3863  				if iNdEx >= l {
  3864  					return io.ErrUnexpectedEOF
  3865  				}
  3866  				b := dAtA[iNdEx]
  3867  				iNdEx++
  3868  				msglen |= int(b&0x7F) << shift
  3869  				if b < 0x80 {
  3870  					break
  3871  				}
  3872  			}
  3873  			if msglen < 0 {
  3874  				return ErrInvalidLengthQuery
  3875  			}
  3876  			postIndex := iNdEx + msglen
  3877  			if postIndex < 0 {
  3878  				return ErrInvalidLengthQuery
  3879  			}
  3880  			if postIndex > l {
  3881  				return io.ErrUnexpectedEOF
  3882  			}
  3883  			if m.ResBeginBlock == nil {
  3884  				m.ResBeginBlock = &types3.ResponseBeginBlock{}
  3885  			}
  3886  			if err := m.ResBeginBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3887  				return err
  3888  			}
  3889  			iNdEx = postIndex
  3890  		case 4:
  3891  			if wireType != 2 {
  3892  				return fmt.Errorf("proto: wrong wireType = %d for field ResEndBlock", wireType)
  3893  			}
  3894  			var msglen int
  3895  			for shift := uint(0); ; shift += 7 {
  3896  				if shift >= 64 {
  3897  					return ErrIntOverflowQuery
  3898  				}
  3899  				if iNdEx >= l {
  3900  					return io.ErrUnexpectedEOF
  3901  				}
  3902  				b := dAtA[iNdEx]
  3903  				iNdEx++
  3904  				msglen |= int(b&0x7F) << shift
  3905  				if b < 0x80 {
  3906  					break
  3907  				}
  3908  			}
  3909  			if msglen < 0 {
  3910  				return ErrInvalidLengthQuery
  3911  			}
  3912  			postIndex := iNdEx + msglen
  3913  			if postIndex < 0 {
  3914  				return ErrInvalidLengthQuery
  3915  			}
  3916  			if postIndex > l {
  3917  				return io.ErrUnexpectedEOF
  3918  			}
  3919  			if m.ResEndBlock == nil {
  3920  				m.ResEndBlock = &types3.ResponseEndBlock{}
  3921  			}
  3922  			if err := m.ResEndBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3923  				return err
  3924  			}
  3925  			iNdEx = postIndex
  3926  		default:
  3927  			iNdEx = preIndex
  3928  			skippy, err := skipQuery(dAtA[iNdEx:])
  3929  			if err != nil {
  3930  				return err
  3931  			}
  3932  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3933  				return ErrInvalidLengthQuery
  3934  			}
  3935  			if (iNdEx + skippy) > l {
  3936  				return io.ErrUnexpectedEOF
  3937  			}
  3938  			iNdEx += skippy
  3939  		}
  3940  	}
  3941  
  3942  	if iNdEx > l {
  3943  		return io.ErrUnexpectedEOF
  3944  	}
  3945  	return nil
  3946  }
  3947  func (m *GetLatestBlockRequest) Unmarshal(dAtA []byte) error {
  3948  	l := len(dAtA)
  3949  	iNdEx := 0
  3950  	for iNdEx < l {
  3951  		preIndex := iNdEx
  3952  		var wire uint64
  3953  		for shift := uint(0); ; shift += 7 {
  3954  			if shift >= 64 {
  3955  				return ErrIntOverflowQuery
  3956  			}
  3957  			if iNdEx >= l {
  3958  				return io.ErrUnexpectedEOF
  3959  			}
  3960  			b := dAtA[iNdEx]
  3961  			iNdEx++
  3962  			wire |= uint64(b&0x7F) << shift
  3963  			if b < 0x80 {
  3964  				break
  3965  			}
  3966  		}
  3967  		fieldNum := int32(wire >> 3)
  3968  		wireType := int(wire & 0x7)
  3969  		if wireType == 4 {
  3970  			return fmt.Errorf("proto: GetLatestBlockRequest: wiretype end group for non-group")
  3971  		}
  3972  		if fieldNum <= 0 {
  3973  			return fmt.Errorf("proto: GetLatestBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3974  		}
  3975  		switch fieldNum {
  3976  		default:
  3977  			iNdEx = preIndex
  3978  			skippy, err := skipQuery(dAtA[iNdEx:])
  3979  			if err != nil {
  3980  				return err
  3981  			}
  3982  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3983  				return ErrInvalidLengthQuery
  3984  			}
  3985  			if (iNdEx + skippy) > l {
  3986  				return io.ErrUnexpectedEOF
  3987  			}
  3988  			iNdEx += skippy
  3989  		}
  3990  	}
  3991  
  3992  	if iNdEx > l {
  3993  		return io.ErrUnexpectedEOF
  3994  	}
  3995  	return nil
  3996  }
  3997  func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error {
  3998  	l := len(dAtA)
  3999  	iNdEx := 0
  4000  	for iNdEx < l {
  4001  		preIndex := iNdEx
  4002  		var wire uint64
  4003  		for shift := uint(0); ; shift += 7 {
  4004  			if shift >= 64 {
  4005  				return ErrIntOverflowQuery
  4006  			}
  4007  			if iNdEx >= l {
  4008  				return io.ErrUnexpectedEOF
  4009  			}
  4010  			b := dAtA[iNdEx]
  4011  			iNdEx++
  4012  			wire |= uint64(b&0x7F) << shift
  4013  			if b < 0x80 {
  4014  				break
  4015  			}
  4016  		}
  4017  		fieldNum := int32(wire >> 3)
  4018  		wireType := int(wire & 0x7)
  4019  		if wireType == 4 {
  4020  			return fmt.Errorf("proto: GetLatestBlockResponse: wiretype end group for non-group")
  4021  		}
  4022  		if fieldNum <= 0 {
  4023  			return fmt.Errorf("proto: GetLatestBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4024  		}
  4025  		switch fieldNum {
  4026  		case 1:
  4027  			if wireType != 2 {
  4028  				return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType)
  4029  			}
  4030  			var msglen int
  4031  			for shift := uint(0); ; shift += 7 {
  4032  				if shift >= 64 {
  4033  					return ErrIntOverflowQuery
  4034  				}
  4035  				if iNdEx >= l {
  4036  					return io.ErrUnexpectedEOF
  4037  				}
  4038  				b := dAtA[iNdEx]
  4039  				iNdEx++
  4040  				msglen |= int(b&0x7F) << shift
  4041  				if b < 0x80 {
  4042  					break
  4043  				}
  4044  			}
  4045  			if msglen < 0 {
  4046  				return ErrInvalidLengthQuery
  4047  			}
  4048  			postIndex := iNdEx + msglen
  4049  			if postIndex < 0 {
  4050  				return ErrInvalidLengthQuery
  4051  			}
  4052  			if postIndex > l {
  4053  				return io.ErrUnexpectedEOF
  4054  			}
  4055  			if m.BlockId == nil {
  4056  				m.BlockId = &types1.BlockID{}
  4057  			}
  4058  			if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4059  				return err
  4060  			}
  4061  			iNdEx = postIndex
  4062  		case 2:
  4063  			if wireType != 2 {
  4064  				return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType)
  4065  			}
  4066  			var msglen int
  4067  			for shift := uint(0); ; shift += 7 {
  4068  				if shift >= 64 {
  4069  					return ErrIntOverflowQuery
  4070  				}
  4071  				if iNdEx >= l {
  4072  					return io.ErrUnexpectedEOF
  4073  				}
  4074  				b := dAtA[iNdEx]
  4075  				iNdEx++
  4076  				msglen |= int(b&0x7F) << shift
  4077  				if b < 0x80 {
  4078  					break
  4079  				}
  4080  			}
  4081  			if msglen < 0 {
  4082  				return ErrInvalidLengthQuery
  4083  			}
  4084  			postIndex := iNdEx + msglen
  4085  			if postIndex < 0 {
  4086  				return ErrInvalidLengthQuery
  4087  			}
  4088  			if postIndex > l {
  4089  				return io.ErrUnexpectedEOF
  4090  			}
  4091  			if m.Block == nil {
  4092  				m.Block = &types2.Block{}
  4093  			}
  4094  			if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4095  				return err
  4096  			}
  4097  			iNdEx = postIndex
  4098  		default:
  4099  			iNdEx = preIndex
  4100  			skippy, err := skipQuery(dAtA[iNdEx:])
  4101  			if err != nil {
  4102  				return err
  4103  			}
  4104  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4105  				return ErrInvalidLengthQuery
  4106  			}
  4107  			if (iNdEx + skippy) > l {
  4108  				return io.ErrUnexpectedEOF
  4109  			}
  4110  			iNdEx += skippy
  4111  		}
  4112  	}
  4113  
  4114  	if iNdEx > l {
  4115  		return io.ErrUnexpectedEOF
  4116  	}
  4117  	return nil
  4118  }
  4119  func (m *GetSyncingRequest) Unmarshal(dAtA []byte) error {
  4120  	l := len(dAtA)
  4121  	iNdEx := 0
  4122  	for iNdEx < l {
  4123  		preIndex := iNdEx
  4124  		var wire uint64
  4125  		for shift := uint(0); ; shift += 7 {
  4126  			if shift >= 64 {
  4127  				return ErrIntOverflowQuery
  4128  			}
  4129  			if iNdEx >= l {
  4130  				return io.ErrUnexpectedEOF
  4131  			}
  4132  			b := dAtA[iNdEx]
  4133  			iNdEx++
  4134  			wire |= uint64(b&0x7F) << shift
  4135  			if b < 0x80 {
  4136  				break
  4137  			}
  4138  		}
  4139  		fieldNum := int32(wire >> 3)
  4140  		wireType := int(wire & 0x7)
  4141  		if wireType == 4 {
  4142  			return fmt.Errorf("proto: GetSyncingRequest: wiretype end group for non-group")
  4143  		}
  4144  		if fieldNum <= 0 {
  4145  			return fmt.Errorf("proto: GetSyncingRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4146  		}
  4147  		switch fieldNum {
  4148  		default:
  4149  			iNdEx = preIndex
  4150  			skippy, err := skipQuery(dAtA[iNdEx:])
  4151  			if err != nil {
  4152  				return err
  4153  			}
  4154  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4155  				return ErrInvalidLengthQuery
  4156  			}
  4157  			if (iNdEx + skippy) > l {
  4158  				return io.ErrUnexpectedEOF
  4159  			}
  4160  			iNdEx += skippy
  4161  		}
  4162  	}
  4163  
  4164  	if iNdEx > l {
  4165  		return io.ErrUnexpectedEOF
  4166  	}
  4167  	return nil
  4168  }
  4169  func (m *GetSyncingResponse) Unmarshal(dAtA []byte) error {
  4170  	l := len(dAtA)
  4171  	iNdEx := 0
  4172  	for iNdEx < l {
  4173  		preIndex := iNdEx
  4174  		var wire uint64
  4175  		for shift := uint(0); ; shift += 7 {
  4176  			if shift >= 64 {
  4177  				return ErrIntOverflowQuery
  4178  			}
  4179  			if iNdEx >= l {
  4180  				return io.ErrUnexpectedEOF
  4181  			}
  4182  			b := dAtA[iNdEx]
  4183  			iNdEx++
  4184  			wire |= uint64(b&0x7F) << shift
  4185  			if b < 0x80 {
  4186  				break
  4187  			}
  4188  		}
  4189  		fieldNum := int32(wire >> 3)
  4190  		wireType := int(wire & 0x7)
  4191  		if wireType == 4 {
  4192  			return fmt.Errorf("proto: GetSyncingResponse: wiretype end group for non-group")
  4193  		}
  4194  		if fieldNum <= 0 {
  4195  			return fmt.Errorf("proto: GetSyncingResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4196  		}
  4197  		switch fieldNum {
  4198  		case 1:
  4199  			if wireType != 0 {
  4200  				return fmt.Errorf("proto: wrong wireType = %d for field Syncing", wireType)
  4201  			}
  4202  			var v int
  4203  			for shift := uint(0); ; shift += 7 {
  4204  				if shift >= 64 {
  4205  					return ErrIntOverflowQuery
  4206  				}
  4207  				if iNdEx >= l {
  4208  					return io.ErrUnexpectedEOF
  4209  				}
  4210  				b := dAtA[iNdEx]
  4211  				iNdEx++
  4212  				v |= int(b&0x7F) << shift
  4213  				if b < 0x80 {
  4214  					break
  4215  				}
  4216  			}
  4217  			m.Syncing = bool(v != 0)
  4218  		default:
  4219  			iNdEx = preIndex
  4220  			skippy, err := skipQuery(dAtA[iNdEx:])
  4221  			if err != nil {
  4222  				return err
  4223  			}
  4224  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4225  				return ErrInvalidLengthQuery
  4226  			}
  4227  			if (iNdEx + skippy) > l {
  4228  				return io.ErrUnexpectedEOF
  4229  			}
  4230  			iNdEx += skippy
  4231  		}
  4232  	}
  4233  
  4234  	if iNdEx > l {
  4235  		return io.ErrUnexpectedEOF
  4236  	}
  4237  	return nil
  4238  }
  4239  func (m *GetNodeInfoRequest) Unmarshal(dAtA []byte) error {
  4240  	l := len(dAtA)
  4241  	iNdEx := 0
  4242  	for iNdEx < l {
  4243  		preIndex := iNdEx
  4244  		var wire uint64
  4245  		for shift := uint(0); ; shift += 7 {
  4246  			if shift >= 64 {
  4247  				return ErrIntOverflowQuery
  4248  			}
  4249  			if iNdEx >= l {
  4250  				return io.ErrUnexpectedEOF
  4251  			}
  4252  			b := dAtA[iNdEx]
  4253  			iNdEx++
  4254  			wire |= uint64(b&0x7F) << shift
  4255  			if b < 0x80 {
  4256  				break
  4257  			}
  4258  		}
  4259  		fieldNum := int32(wire >> 3)
  4260  		wireType := int(wire & 0x7)
  4261  		if wireType == 4 {
  4262  			return fmt.Errorf("proto: GetNodeInfoRequest: wiretype end group for non-group")
  4263  		}
  4264  		if fieldNum <= 0 {
  4265  			return fmt.Errorf("proto: GetNodeInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4266  		}
  4267  		switch fieldNum {
  4268  		default:
  4269  			iNdEx = preIndex
  4270  			skippy, err := skipQuery(dAtA[iNdEx:])
  4271  			if err != nil {
  4272  				return err
  4273  			}
  4274  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4275  				return ErrInvalidLengthQuery
  4276  			}
  4277  			if (iNdEx + skippy) > l {
  4278  				return io.ErrUnexpectedEOF
  4279  			}
  4280  			iNdEx += skippy
  4281  		}
  4282  	}
  4283  
  4284  	if iNdEx > l {
  4285  		return io.ErrUnexpectedEOF
  4286  	}
  4287  	return nil
  4288  }
  4289  func (m *GetNodeInfoResponse) Unmarshal(dAtA []byte) error {
  4290  	l := len(dAtA)
  4291  	iNdEx := 0
  4292  	for iNdEx < l {
  4293  		preIndex := iNdEx
  4294  		var wire uint64
  4295  		for shift := uint(0); ; shift += 7 {
  4296  			if shift >= 64 {
  4297  				return ErrIntOverflowQuery
  4298  			}
  4299  			if iNdEx >= l {
  4300  				return io.ErrUnexpectedEOF
  4301  			}
  4302  			b := dAtA[iNdEx]
  4303  			iNdEx++
  4304  			wire |= uint64(b&0x7F) << shift
  4305  			if b < 0x80 {
  4306  				break
  4307  			}
  4308  		}
  4309  		fieldNum := int32(wire >> 3)
  4310  		wireType := int(wire & 0x7)
  4311  		if wireType == 4 {
  4312  			return fmt.Errorf("proto: GetNodeInfoResponse: wiretype end group for non-group")
  4313  		}
  4314  		if fieldNum <= 0 {
  4315  			return fmt.Errorf("proto: GetNodeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4316  		}
  4317  		switch fieldNum {
  4318  		case 1:
  4319  			if wireType != 2 {
  4320  				return fmt.Errorf("proto: wrong wireType = %d for field DefaultNodeInfo", wireType)
  4321  			}
  4322  			var msglen int
  4323  			for shift := uint(0); ; shift += 7 {
  4324  				if shift >= 64 {
  4325  					return ErrIntOverflowQuery
  4326  				}
  4327  				if iNdEx >= l {
  4328  					return io.ErrUnexpectedEOF
  4329  				}
  4330  				b := dAtA[iNdEx]
  4331  				iNdEx++
  4332  				msglen |= int(b&0x7F) << shift
  4333  				if b < 0x80 {
  4334  					break
  4335  				}
  4336  			}
  4337  			if msglen < 0 {
  4338  				return ErrInvalidLengthQuery
  4339  			}
  4340  			postIndex := iNdEx + msglen
  4341  			if postIndex < 0 {
  4342  				return ErrInvalidLengthQuery
  4343  			}
  4344  			if postIndex > l {
  4345  				return io.ErrUnexpectedEOF
  4346  			}
  4347  			if m.DefaultNodeInfo == nil {
  4348  				m.DefaultNodeInfo = &p2p.DefaultNodeInfo{}
  4349  			}
  4350  			if err := m.DefaultNodeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4351  				return err
  4352  			}
  4353  			iNdEx = postIndex
  4354  		case 2:
  4355  			if wireType != 2 {
  4356  				return fmt.Errorf("proto: wrong wireType = %d for field ApplicationVersion", wireType)
  4357  			}
  4358  			var msglen int
  4359  			for shift := uint(0); ; shift += 7 {
  4360  				if shift >= 64 {
  4361  					return ErrIntOverflowQuery
  4362  				}
  4363  				if iNdEx >= l {
  4364  					return io.ErrUnexpectedEOF
  4365  				}
  4366  				b := dAtA[iNdEx]
  4367  				iNdEx++
  4368  				msglen |= int(b&0x7F) << shift
  4369  				if b < 0x80 {
  4370  					break
  4371  				}
  4372  			}
  4373  			if msglen < 0 {
  4374  				return ErrInvalidLengthQuery
  4375  			}
  4376  			postIndex := iNdEx + msglen
  4377  			if postIndex < 0 {
  4378  				return ErrInvalidLengthQuery
  4379  			}
  4380  			if postIndex > l {
  4381  				return io.ErrUnexpectedEOF
  4382  			}
  4383  			if m.ApplicationVersion == nil {
  4384  				m.ApplicationVersion = &VersionInfo{}
  4385  			}
  4386  			if err := m.ApplicationVersion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4387  				return err
  4388  			}
  4389  			iNdEx = postIndex
  4390  		default:
  4391  			iNdEx = preIndex
  4392  			skippy, err := skipQuery(dAtA[iNdEx:])
  4393  			if err != nil {
  4394  				return err
  4395  			}
  4396  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4397  				return ErrInvalidLengthQuery
  4398  			}
  4399  			if (iNdEx + skippy) > l {
  4400  				return io.ErrUnexpectedEOF
  4401  			}
  4402  			iNdEx += skippy
  4403  		}
  4404  	}
  4405  
  4406  	if iNdEx > l {
  4407  		return io.ErrUnexpectedEOF
  4408  	}
  4409  	return nil
  4410  }
  4411  func (m *VersionInfo) Unmarshal(dAtA []byte) error {
  4412  	l := len(dAtA)
  4413  	iNdEx := 0
  4414  	for iNdEx < l {
  4415  		preIndex := iNdEx
  4416  		var wire uint64
  4417  		for shift := uint(0); ; shift += 7 {
  4418  			if shift >= 64 {
  4419  				return ErrIntOverflowQuery
  4420  			}
  4421  			if iNdEx >= l {
  4422  				return io.ErrUnexpectedEOF
  4423  			}
  4424  			b := dAtA[iNdEx]
  4425  			iNdEx++
  4426  			wire |= uint64(b&0x7F) << shift
  4427  			if b < 0x80 {
  4428  				break
  4429  			}
  4430  		}
  4431  		fieldNum := int32(wire >> 3)
  4432  		wireType := int(wire & 0x7)
  4433  		if wireType == 4 {
  4434  			return fmt.Errorf("proto: VersionInfo: wiretype end group for non-group")
  4435  		}
  4436  		if fieldNum <= 0 {
  4437  			return fmt.Errorf("proto: VersionInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  4438  		}
  4439  		switch fieldNum {
  4440  		case 1:
  4441  			if wireType != 2 {
  4442  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4443  			}
  4444  			var stringLen uint64
  4445  			for shift := uint(0); ; shift += 7 {
  4446  				if shift >= 64 {
  4447  					return ErrIntOverflowQuery
  4448  				}
  4449  				if iNdEx >= l {
  4450  					return io.ErrUnexpectedEOF
  4451  				}
  4452  				b := dAtA[iNdEx]
  4453  				iNdEx++
  4454  				stringLen |= uint64(b&0x7F) << shift
  4455  				if b < 0x80 {
  4456  					break
  4457  				}
  4458  			}
  4459  			intStringLen := int(stringLen)
  4460  			if intStringLen < 0 {
  4461  				return ErrInvalidLengthQuery
  4462  			}
  4463  			postIndex := iNdEx + intStringLen
  4464  			if postIndex < 0 {
  4465  				return ErrInvalidLengthQuery
  4466  			}
  4467  			if postIndex > l {
  4468  				return io.ErrUnexpectedEOF
  4469  			}
  4470  			m.Name = string(dAtA[iNdEx:postIndex])
  4471  			iNdEx = postIndex
  4472  		case 2:
  4473  			if wireType != 2 {
  4474  				return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType)
  4475  			}
  4476  			var stringLen uint64
  4477  			for shift := uint(0); ; shift += 7 {
  4478  				if shift >= 64 {
  4479  					return ErrIntOverflowQuery
  4480  				}
  4481  				if iNdEx >= l {
  4482  					return io.ErrUnexpectedEOF
  4483  				}
  4484  				b := dAtA[iNdEx]
  4485  				iNdEx++
  4486  				stringLen |= uint64(b&0x7F) << shift
  4487  				if b < 0x80 {
  4488  					break
  4489  				}
  4490  			}
  4491  			intStringLen := int(stringLen)
  4492  			if intStringLen < 0 {
  4493  				return ErrInvalidLengthQuery
  4494  			}
  4495  			postIndex := iNdEx + intStringLen
  4496  			if postIndex < 0 {
  4497  				return ErrInvalidLengthQuery
  4498  			}
  4499  			if postIndex > l {
  4500  				return io.ErrUnexpectedEOF
  4501  			}
  4502  			m.AppName = string(dAtA[iNdEx:postIndex])
  4503  			iNdEx = postIndex
  4504  		case 3:
  4505  			if wireType != 2 {
  4506  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  4507  			}
  4508  			var stringLen uint64
  4509  			for shift := uint(0); ; shift += 7 {
  4510  				if shift >= 64 {
  4511  					return ErrIntOverflowQuery
  4512  				}
  4513  				if iNdEx >= l {
  4514  					return io.ErrUnexpectedEOF
  4515  				}
  4516  				b := dAtA[iNdEx]
  4517  				iNdEx++
  4518  				stringLen |= uint64(b&0x7F) << shift
  4519  				if b < 0x80 {
  4520  					break
  4521  				}
  4522  			}
  4523  			intStringLen := int(stringLen)
  4524  			if intStringLen < 0 {
  4525  				return ErrInvalidLengthQuery
  4526  			}
  4527  			postIndex := iNdEx + intStringLen
  4528  			if postIndex < 0 {
  4529  				return ErrInvalidLengthQuery
  4530  			}
  4531  			if postIndex > l {
  4532  				return io.ErrUnexpectedEOF
  4533  			}
  4534  			m.Version = string(dAtA[iNdEx:postIndex])
  4535  			iNdEx = postIndex
  4536  		case 4:
  4537  			if wireType != 2 {
  4538  				return fmt.Errorf("proto: wrong wireType = %d for field GitCommit", wireType)
  4539  			}
  4540  			var stringLen uint64
  4541  			for shift := uint(0); ; shift += 7 {
  4542  				if shift >= 64 {
  4543  					return ErrIntOverflowQuery
  4544  				}
  4545  				if iNdEx >= l {
  4546  					return io.ErrUnexpectedEOF
  4547  				}
  4548  				b := dAtA[iNdEx]
  4549  				iNdEx++
  4550  				stringLen |= uint64(b&0x7F) << shift
  4551  				if b < 0x80 {
  4552  					break
  4553  				}
  4554  			}
  4555  			intStringLen := int(stringLen)
  4556  			if intStringLen < 0 {
  4557  				return ErrInvalidLengthQuery
  4558  			}
  4559  			postIndex := iNdEx + intStringLen
  4560  			if postIndex < 0 {
  4561  				return ErrInvalidLengthQuery
  4562  			}
  4563  			if postIndex > l {
  4564  				return io.ErrUnexpectedEOF
  4565  			}
  4566  			m.GitCommit = string(dAtA[iNdEx:postIndex])
  4567  			iNdEx = postIndex
  4568  		case 5:
  4569  			if wireType != 2 {
  4570  				return fmt.Errorf("proto: wrong wireType = %d for field BuildTags", wireType)
  4571  			}
  4572  			var stringLen uint64
  4573  			for shift := uint(0); ; shift += 7 {
  4574  				if shift >= 64 {
  4575  					return ErrIntOverflowQuery
  4576  				}
  4577  				if iNdEx >= l {
  4578  					return io.ErrUnexpectedEOF
  4579  				}
  4580  				b := dAtA[iNdEx]
  4581  				iNdEx++
  4582  				stringLen |= uint64(b&0x7F) << shift
  4583  				if b < 0x80 {
  4584  					break
  4585  				}
  4586  			}
  4587  			intStringLen := int(stringLen)
  4588  			if intStringLen < 0 {
  4589  				return ErrInvalidLengthQuery
  4590  			}
  4591  			postIndex := iNdEx + intStringLen
  4592  			if postIndex < 0 {
  4593  				return ErrInvalidLengthQuery
  4594  			}
  4595  			if postIndex > l {
  4596  				return io.ErrUnexpectedEOF
  4597  			}
  4598  			m.BuildTags = string(dAtA[iNdEx:postIndex])
  4599  			iNdEx = postIndex
  4600  		case 6:
  4601  			if wireType != 2 {
  4602  				return fmt.Errorf("proto: wrong wireType = %d for field GoVersion", wireType)
  4603  			}
  4604  			var stringLen uint64
  4605  			for shift := uint(0); ; shift += 7 {
  4606  				if shift >= 64 {
  4607  					return ErrIntOverflowQuery
  4608  				}
  4609  				if iNdEx >= l {
  4610  					return io.ErrUnexpectedEOF
  4611  				}
  4612  				b := dAtA[iNdEx]
  4613  				iNdEx++
  4614  				stringLen |= uint64(b&0x7F) << shift
  4615  				if b < 0x80 {
  4616  					break
  4617  				}
  4618  			}
  4619  			intStringLen := int(stringLen)
  4620  			if intStringLen < 0 {
  4621  				return ErrInvalidLengthQuery
  4622  			}
  4623  			postIndex := iNdEx + intStringLen
  4624  			if postIndex < 0 {
  4625  				return ErrInvalidLengthQuery
  4626  			}
  4627  			if postIndex > l {
  4628  				return io.ErrUnexpectedEOF
  4629  			}
  4630  			m.GoVersion = string(dAtA[iNdEx:postIndex])
  4631  			iNdEx = postIndex
  4632  		case 7:
  4633  			if wireType != 2 {
  4634  				return fmt.Errorf("proto: wrong wireType = %d for field BuildDeps", wireType)
  4635  			}
  4636  			var msglen int
  4637  			for shift := uint(0); ; shift += 7 {
  4638  				if shift >= 64 {
  4639  					return ErrIntOverflowQuery
  4640  				}
  4641  				if iNdEx >= l {
  4642  					return io.ErrUnexpectedEOF
  4643  				}
  4644  				b := dAtA[iNdEx]
  4645  				iNdEx++
  4646  				msglen |= int(b&0x7F) << shift
  4647  				if b < 0x80 {
  4648  					break
  4649  				}
  4650  			}
  4651  			if msglen < 0 {
  4652  				return ErrInvalidLengthQuery
  4653  			}
  4654  			postIndex := iNdEx + msglen
  4655  			if postIndex < 0 {
  4656  				return ErrInvalidLengthQuery
  4657  			}
  4658  			if postIndex > l {
  4659  				return io.ErrUnexpectedEOF
  4660  			}
  4661  			m.BuildDeps = append(m.BuildDeps, &Module{})
  4662  			if err := m.BuildDeps[len(m.BuildDeps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4663  				return err
  4664  			}
  4665  			iNdEx = postIndex
  4666  		case 8:
  4667  			if wireType != 2 {
  4668  				return fmt.Errorf("proto: wrong wireType = %d for field LbmSdkVersion", wireType)
  4669  			}
  4670  			var stringLen uint64
  4671  			for shift := uint(0); ; shift += 7 {
  4672  				if shift >= 64 {
  4673  					return ErrIntOverflowQuery
  4674  				}
  4675  				if iNdEx >= l {
  4676  					return io.ErrUnexpectedEOF
  4677  				}
  4678  				b := dAtA[iNdEx]
  4679  				iNdEx++
  4680  				stringLen |= uint64(b&0x7F) << shift
  4681  				if b < 0x80 {
  4682  					break
  4683  				}
  4684  			}
  4685  			intStringLen := int(stringLen)
  4686  			if intStringLen < 0 {
  4687  				return ErrInvalidLengthQuery
  4688  			}
  4689  			postIndex := iNdEx + intStringLen
  4690  			if postIndex < 0 {
  4691  				return ErrInvalidLengthQuery
  4692  			}
  4693  			if postIndex > l {
  4694  				return io.ErrUnexpectedEOF
  4695  			}
  4696  			m.LbmSdkVersion = string(dAtA[iNdEx:postIndex])
  4697  			iNdEx = postIndex
  4698  		default:
  4699  			iNdEx = preIndex
  4700  			skippy, err := skipQuery(dAtA[iNdEx:])
  4701  			if err != nil {
  4702  				return err
  4703  			}
  4704  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4705  				return ErrInvalidLengthQuery
  4706  			}
  4707  			if (iNdEx + skippy) > l {
  4708  				return io.ErrUnexpectedEOF
  4709  			}
  4710  			iNdEx += skippy
  4711  		}
  4712  	}
  4713  
  4714  	if iNdEx > l {
  4715  		return io.ErrUnexpectedEOF
  4716  	}
  4717  	return nil
  4718  }
  4719  func (m *Module) Unmarshal(dAtA []byte) error {
  4720  	l := len(dAtA)
  4721  	iNdEx := 0
  4722  	for iNdEx < l {
  4723  		preIndex := iNdEx
  4724  		var wire uint64
  4725  		for shift := uint(0); ; shift += 7 {
  4726  			if shift >= 64 {
  4727  				return ErrIntOverflowQuery
  4728  			}
  4729  			if iNdEx >= l {
  4730  				return io.ErrUnexpectedEOF
  4731  			}
  4732  			b := dAtA[iNdEx]
  4733  			iNdEx++
  4734  			wire |= uint64(b&0x7F) << shift
  4735  			if b < 0x80 {
  4736  				break
  4737  			}
  4738  		}
  4739  		fieldNum := int32(wire >> 3)
  4740  		wireType := int(wire & 0x7)
  4741  		if wireType == 4 {
  4742  			return fmt.Errorf("proto: Module: wiretype end group for non-group")
  4743  		}
  4744  		if fieldNum <= 0 {
  4745  			return fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
  4746  		}
  4747  		switch fieldNum {
  4748  		case 1:
  4749  			if wireType != 2 {
  4750  				return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  4751  			}
  4752  			var stringLen uint64
  4753  			for shift := uint(0); ; shift += 7 {
  4754  				if shift >= 64 {
  4755  					return ErrIntOverflowQuery
  4756  				}
  4757  				if iNdEx >= l {
  4758  					return io.ErrUnexpectedEOF
  4759  				}
  4760  				b := dAtA[iNdEx]
  4761  				iNdEx++
  4762  				stringLen |= uint64(b&0x7F) << shift
  4763  				if b < 0x80 {
  4764  					break
  4765  				}
  4766  			}
  4767  			intStringLen := int(stringLen)
  4768  			if intStringLen < 0 {
  4769  				return ErrInvalidLengthQuery
  4770  			}
  4771  			postIndex := iNdEx + intStringLen
  4772  			if postIndex < 0 {
  4773  				return ErrInvalidLengthQuery
  4774  			}
  4775  			if postIndex > l {
  4776  				return io.ErrUnexpectedEOF
  4777  			}
  4778  			m.Path = string(dAtA[iNdEx:postIndex])
  4779  			iNdEx = postIndex
  4780  		case 2:
  4781  			if wireType != 2 {
  4782  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  4783  			}
  4784  			var stringLen uint64
  4785  			for shift := uint(0); ; shift += 7 {
  4786  				if shift >= 64 {
  4787  					return ErrIntOverflowQuery
  4788  				}
  4789  				if iNdEx >= l {
  4790  					return io.ErrUnexpectedEOF
  4791  				}
  4792  				b := dAtA[iNdEx]
  4793  				iNdEx++
  4794  				stringLen |= uint64(b&0x7F) << shift
  4795  				if b < 0x80 {
  4796  					break
  4797  				}
  4798  			}
  4799  			intStringLen := int(stringLen)
  4800  			if intStringLen < 0 {
  4801  				return ErrInvalidLengthQuery
  4802  			}
  4803  			postIndex := iNdEx + intStringLen
  4804  			if postIndex < 0 {
  4805  				return ErrInvalidLengthQuery
  4806  			}
  4807  			if postIndex > l {
  4808  				return io.ErrUnexpectedEOF
  4809  			}
  4810  			m.Version = string(dAtA[iNdEx:postIndex])
  4811  			iNdEx = postIndex
  4812  		case 3:
  4813  			if wireType != 2 {
  4814  				return fmt.Errorf("proto: wrong wireType = %d for field Sum", wireType)
  4815  			}
  4816  			var stringLen uint64
  4817  			for shift := uint(0); ; shift += 7 {
  4818  				if shift >= 64 {
  4819  					return ErrIntOverflowQuery
  4820  				}
  4821  				if iNdEx >= l {
  4822  					return io.ErrUnexpectedEOF
  4823  				}
  4824  				b := dAtA[iNdEx]
  4825  				iNdEx++
  4826  				stringLen |= uint64(b&0x7F) << shift
  4827  				if b < 0x80 {
  4828  					break
  4829  				}
  4830  			}
  4831  			intStringLen := int(stringLen)
  4832  			if intStringLen < 0 {
  4833  				return ErrInvalidLengthQuery
  4834  			}
  4835  			postIndex := iNdEx + intStringLen
  4836  			if postIndex < 0 {
  4837  				return ErrInvalidLengthQuery
  4838  			}
  4839  			if postIndex > l {
  4840  				return io.ErrUnexpectedEOF
  4841  			}
  4842  			m.Sum = string(dAtA[iNdEx:postIndex])
  4843  			iNdEx = postIndex
  4844  		default:
  4845  			iNdEx = preIndex
  4846  			skippy, err := skipQuery(dAtA[iNdEx:])
  4847  			if err != nil {
  4848  				return err
  4849  			}
  4850  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4851  				return ErrInvalidLengthQuery
  4852  			}
  4853  			if (iNdEx + skippy) > l {
  4854  				return io.ErrUnexpectedEOF
  4855  			}
  4856  			iNdEx += skippy
  4857  		}
  4858  	}
  4859  
  4860  	if iNdEx > l {
  4861  		return io.ErrUnexpectedEOF
  4862  	}
  4863  	return nil
  4864  }
  4865  func skipQuery(dAtA []byte) (n int, err error) {
  4866  	l := len(dAtA)
  4867  	iNdEx := 0
  4868  	depth := 0
  4869  	for iNdEx < l {
  4870  		var wire uint64
  4871  		for shift := uint(0); ; shift += 7 {
  4872  			if shift >= 64 {
  4873  				return 0, ErrIntOverflowQuery
  4874  			}
  4875  			if iNdEx >= l {
  4876  				return 0, io.ErrUnexpectedEOF
  4877  			}
  4878  			b := dAtA[iNdEx]
  4879  			iNdEx++
  4880  			wire |= (uint64(b) & 0x7F) << shift
  4881  			if b < 0x80 {
  4882  				break
  4883  			}
  4884  		}
  4885  		wireType := int(wire & 0x7)
  4886  		switch wireType {
  4887  		case 0:
  4888  			for shift := uint(0); ; shift += 7 {
  4889  				if shift >= 64 {
  4890  					return 0, ErrIntOverflowQuery
  4891  				}
  4892  				if iNdEx >= l {
  4893  					return 0, io.ErrUnexpectedEOF
  4894  				}
  4895  				iNdEx++
  4896  				if dAtA[iNdEx-1] < 0x80 {
  4897  					break
  4898  				}
  4899  			}
  4900  		case 1:
  4901  			iNdEx += 8
  4902  		case 2:
  4903  			var length int
  4904  			for shift := uint(0); ; shift += 7 {
  4905  				if shift >= 64 {
  4906  					return 0, ErrIntOverflowQuery
  4907  				}
  4908  				if iNdEx >= l {
  4909  					return 0, io.ErrUnexpectedEOF
  4910  				}
  4911  				b := dAtA[iNdEx]
  4912  				iNdEx++
  4913  				length |= (int(b) & 0x7F) << shift
  4914  				if b < 0x80 {
  4915  					break
  4916  				}
  4917  			}
  4918  			if length < 0 {
  4919  				return 0, ErrInvalidLengthQuery
  4920  			}
  4921  			iNdEx += length
  4922  		case 3:
  4923  			depth++
  4924  		case 4:
  4925  			if depth == 0 {
  4926  				return 0, ErrUnexpectedEndOfGroupQuery
  4927  			}
  4928  			depth--
  4929  		case 5:
  4930  			iNdEx += 4
  4931  		default:
  4932  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4933  		}
  4934  		if iNdEx < 0 {
  4935  			return 0, ErrInvalidLengthQuery
  4936  		}
  4937  		if depth == 0 {
  4938  			return iNdEx, nil
  4939  		}
  4940  	}
  4941  	return 0, io.ErrUnexpectedEOF
  4942  }
  4943  
  4944  var (
  4945  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  4946  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  4947  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  4948  )