github.com/cosmos/cosmos-sdk@v0.50.10/client/grpc/cmtservice/query.pb.go (about)

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