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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/state/types.proto
     3  
     4  package state
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/ari-anchor/sei-tendermint/abci/types"
     9  	types1 "github.com/ari-anchor/sei-tendermint/proto/tendermint/types"
    10  	version "github.com/ari-anchor/sei-tendermint/proto/tendermint/version"
    11  	_ "github.com/gogo/protobuf/gogoproto"
    12  	proto "github.com/gogo/protobuf/proto"
    13  	_ "github.com/gogo/protobuf/types"
    14  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    15  	io "io"
    16  	math "math"
    17  	math_bits "math/bits"
    18  	time "time"
    19  )
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  var _ = time.Kitchen
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  type ABCIResponses struct {
    34  	DeliverTxs []*types.ResponseDeliverTx `protobuf:"bytes,1,rep,name=deliver_txs,json=deliverTxs,proto3" json:"deliver_txs,omitempty"`
    35  	EndBlock   *types.ResponseEndBlock    `protobuf:"bytes,2,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
    36  	BeginBlock *types.ResponseBeginBlock  `protobuf:"bytes,3,opt,name=begin_block,json=beginBlock,proto3" json:"begin_block,omitempty"`
    37  }
    38  
    39  func (m *ABCIResponses) Reset()         { *m = ABCIResponses{} }
    40  func (m *ABCIResponses) String() string { return proto.CompactTextString(m) }
    41  func (*ABCIResponses) ProtoMessage()    {}
    42  func (*ABCIResponses) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_ccfacf933f22bf93, []int{0}
    44  }
    45  func (m *ABCIResponses) XXX_Unmarshal(b []byte) error {
    46  	return m.Unmarshal(b)
    47  }
    48  func (m *ABCIResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    49  	if deterministic {
    50  		return xxx_messageInfo_ABCIResponses.Marshal(b, m, deterministic)
    51  	} else {
    52  		b = b[:cap(b)]
    53  		n, err := m.MarshalToSizedBuffer(b)
    54  		if err != nil {
    55  			return nil, err
    56  		}
    57  		return b[:n], nil
    58  	}
    59  }
    60  func (m *ABCIResponses) XXX_Merge(src proto.Message) {
    61  	xxx_messageInfo_ABCIResponses.Merge(m, src)
    62  }
    63  func (m *ABCIResponses) XXX_Size() int {
    64  	return m.Size()
    65  }
    66  func (m *ABCIResponses) XXX_DiscardUnknown() {
    67  	xxx_messageInfo_ABCIResponses.DiscardUnknown(m)
    68  }
    69  
    70  var xxx_messageInfo_ABCIResponses proto.InternalMessageInfo
    71  
    72  func (m *ABCIResponses) GetDeliverTxs() []*types.ResponseDeliverTx {
    73  	if m != nil {
    74  		return m.DeliverTxs
    75  	}
    76  	return nil
    77  }
    78  
    79  func (m *ABCIResponses) GetEndBlock() *types.ResponseEndBlock {
    80  	if m != nil {
    81  		return m.EndBlock
    82  	}
    83  	return nil
    84  }
    85  
    86  func (m *ABCIResponses) GetBeginBlock() *types.ResponseBeginBlock {
    87  	if m != nil {
    88  		return m.BeginBlock
    89  	}
    90  	return nil
    91  }
    92  
    93  // ValidatorsInfo represents the latest validator set, or the last height it changed
    94  type ValidatorsInfo struct {
    95  	ValidatorSet      *types1.ValidatorSet `protobuf:"bytes,1,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"`
    96  	LastHeightChanged int64                `protobuf:"varint,2,opt,name=last_height_changed,json=lastHeightChanged,proto3" json:"last_height_changed,omitempty"`
    97  }
    98  
    99  func (m *ValidatorsInfo) Reset()         { *m = ValidatorsInfo{} }
   100  func (m *ValidatorsInfo) String() string { return proto.CompactTextString(m) }
   101  func (*ValidatorsInfo) ProtoMessage()    {}
   102  func (*ValidatorsInfo) Descriptor() ([]byte, []int) {
   103  	return fileDescriptor_ccfacf933f22bf93, []int{1}
   104  }
   105  func (m *ValidatorsInfo) XXX_Unmarshal(b []byte) error {
   106  	return m.Unmarshal(b)
   107  }
   108  func (m *ValidatorsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   109  	if deterministic {
   110  		return xxx_messageInfo_ValidatorsInfo.Marshal(b, m, deterministic)
   111  	} else {
   112  		b = b[:cap(b)]
   113  		n, err := m.MarshalToSizedBuffer(b)
   114  		if err != nil {
   115  			return nil, err
   116  		}
   117  		return b[:n], nil
   118  	}
   119  }
   120  func (m *ValidatorsInfo) XXX_Merge(src proto.Message) {
   121  	xxx_messageInfo_ValidatorsInfo.Merge(m, src)
   122  }
   123  func (m *ValidatorsInfo) XXX_Size() int {
   124  	return m.Size()
   125  }
   126  func (m *ValidatorsInfo) XXX_DiscardUnknown() {
   127  	xxx_messageInfo_ValidatorsInfo.DiscardUnknown(m)
   128  }
   129  
   130  var xxx_messageInfo_ValidatorsInfo proto.InternalMessageInfo
   131  
   132  func (m *ValidatorsInfo) GetValidatorSet() *types1.ValidatorSet {
   133  	if m != nil {
   134  		return m.ValidatorSet
   135  	}
   136  	return nil
   137  }
   138  
   139  func (m *ValidatorsInfo) GetLastHeightChanged() int64 {
   140  	if m != nil {
   141  		return m.LastHeightChanged
   142  	}
   143  	return 0
   144  }
   145  
   146  // ConsensusParamsInfo represents the latest consensus params, or the last height it changed
   147  type ConsensusParamsInfo struct {
   148  	ConsensusParams   types1.ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
   149  	LastHeightChanged int64                  `protobuf:"varint,2,opt,name=last_height_changed,json=lastHeightChanged,proto3" json:"last_height_changed,omitempty"`
   150  }
   151  
   152  func (m *ConsensusParamsInfo) Reset()         { *m = ConsensusParamsInfo{} }
   153  func (m *ConsensusParamsInfo) String() string { return proto.CompactTextString(m) }
   154  func (*ConsensusParamsInfo) ProtoMessage()    {}
   155  func (*ConsensusParamsInfo) Descriptor() ([]byte, []int) {
   156  	return fileDescriptor_ccfacf933f22bf93, []int{2}
   157  }
   158  func (m *ConsensusParamsInfo) XXX_Unmarshal(b []byte) error {
   159  	return m.Unmarshal(b)
   160  }
   161  func (m *ConsensusParamsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   162  	if deterministic {
   163  		return xxx_messageInfo_ConsensusParamsInfo.Marshal(b, m, deterministic)
   164  	} else {
   165  		b = b[:cap(b)]
   166  		n, err := m.MarshalToSizedBuffer(b)
   167  		if err != nil {
   168  			return nil, err
   169  		}
   170  		return b[:n], nil
   171  	}
   172  }
   173  func (m *ConsensusParamsInfo) XXX_Merge(src proto.Message) {
   174  	xxx_messageInfo_ConsensusParamsInfo.Merge(m, src)
   175  }
   176  func (m *ConsensusParamsInfo) XXX_Size() int {
   177  	return m.Size()
   178  }
   179  func (m *ConsensusParamsInfo) XXX_DiscardUnknown() {
   180  	xxx_messageInfo_ConsensusParamsInfo.DiscardUnknown(m)
   181  }
   182  
   183  var xxx_messageInfo_ConsensusParamsInfo proto.InternalMessageInfo
   184  
   185  func (m *ConsensusParamsInfo) GetConsensusParams() types1.ConsensusParams {
   186  	if m != nil {
   187  		return m.ConsensusParams
   188  	}
   189  	return types1.ConsensusParams{}
   190  }
   191  
   192  func (m *ConsensusParamsInfo) GetLastHeightChanged() int64 {
   193  	if m != nil {
   194  		return m.LastHeightChanged
   195  	}
   196  	return 0
   197  }
   198  
   199  type Version struct {
   200  	Consensus version.Consensus `protobuf:"bytes,1,opt,name=consensus,proto3" json:"consensus"`
   201  	Software  string            `protobuf:"bytes,2,opt,name=software,proto3" json:"software,omitempty"`
   202  }
   203  
   204  func (m *Version) Reset()         { *m = Version{} }
   205  func (m *Version) String() string { return proto.CompactTextString(m) }
   206  func (*Version) ProtoMessage()    {}
   207  func (*Version) Descriptor() ([]byte, []int) {
   208  	return fileDescriptor_ccfacf933f22bf93, []int{3}
   209  }
   210  func (m *Version) XXX_Unmarshal(b []byte) error {
   211  	return m.Unmarshal(b)
   212  }
   213  func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   214  	if deterministic {
   215  		return xxx_messageInfo_Version.Marshal(b, m, deterministic)
   216  	} else {
   217  		b = b[:cap(b)]
   218  		n, err := m.MarshalToSizedBuffer(b)
   219  		if err != nil {
   220  			return nil, err
   221  		}
   222  		return b[:n], nil
   223  	}
   224  }
   225  func (m *Version) XXX_Merge(src proto.Message) {
   226  	xxx_messageInfo_Version.Merge(m, src)
   227  }
   228  func (m *Version) XXX_Size() int {
   229  	return m.Size()
   230  }
   231  func (m *Version) XXX_DiscardUnknown() {
   232  	xxx_messageInfo_Version.DiscardUnknown(m)
   233  }
   234  
   235  var xxx_messageInfo_Version proto.InternalMessageInfo
   236  
   237  func (m *Version) GetConsensus() version.Consensus {
   238  	if m != nil {
   239  		return m.Consensus
   240  	}
   241  	return version.Consensus{}
   242  }
   243  
   244  func (m *Version) GetSoftware() string {
   245  	if m != nil {
   246  		return m.Software
   247  	}
   248  	return ""
   249  }
   250  
   251  type State struct {
   252  	Version Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version"`
   253  	// immutable
   254  	ChainID       string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
   255  	InitialHeight int64  `protobuf:"varint,14,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"`
   256  	// LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
   257  	LastBlockHeight int64          `protobuf:"varint,3,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
   258  	LastBlockID     types1.BlockID `protobuf:"bytes,4,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
   259  	LastBlockTime   time.Time      `protobuf:"bytes,5,opt,name=last_block_time,json=lastBlockTime,proto3,stdtime" json:"last_block_time"`
   260  	// LastValidators is used to validate block.LastCommit.
   261  	// Validators are persisted to the database separately every time they change,
   262  	// so we can query for historical validator sets.
   263  	// Note that if s.LastBlockHeight causes a valset change,
   264  	// we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1
   265  	// Extra +1 due to nextValSet delay.
   266  	NextValidators              *types1.ValidatorSet `protobuf:"bytes,6,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"`
   267  	Validators                  *types1.ValidatorSet `protobuf:"bytes,7,opt,name=validators,proto3" json:"validators,omitempty"`
   268  	LastValidators              *types1.ValidatorSet `protobuf:"bytes,8,opt,name=last_validators,json=lastValidators,proto3" json:"last_validators,omitempty"`
   269  	LastHeightValidatorsChanged int64                `protobuf:"varint,9,opt,name=last_height_validators_changed,json=lastHeightValidatorsChanged,proto3" json:"last_height_validators_changed,omitempty"`
   270  	// Consensus parameters used for validating blocks.
   271  	// Changes returned by EndBlock and updated after Commit.
   272  	ConsensusParams                  types1.ConsensusParams `protobuf:"bytes,10,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
   273  	LastHeightConsensusParamsChanged int64                  `protobuf:"varint,11,opt,name=last_height_consensus_params_changed,json=lastHeightConsensusParamsChanged,proto3" json:"last_height_consensus_params_changed,omitempty"`
   274  	// Merkle root of the results from executing prev block
   275  	LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
   276  	// the latest AppHash we've received from calling abci.Commit()
   277  	AppHash []byte `protobuf:"bytes,13,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
   278  }
   279  
   280  func (m *State) Reset()         { *m = State{} }
   281  func (m *State) String() string { return proto.CompactTextString(m) }
   282  func (*State) ProtoMessage()    {}
   283  func (*State) Descriptor() ([]byte, []int) {
   284  	return fileDescriptor_ccfacf933f22bf93, []int{4}
   285  }
   286  func (m *State) XXX_Unmarshal(b []byte) error {
   287  	return m.Unmarshal(b)
   288  }
   289  func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   290  	if deterministic {
   291  		return xxx_messageInfo_State.Marshal(b, m, deterministic)
   292  	} else {
   293  		b = b[:cap(b)]
   294  		n, err := m.MarshalToSizedBuffer(b)
   295  		if err != nil {
   296  			return nil, err
   297  		}
   298  		return b[:n], nil
   299  	}
   300  }
   301  func (m *State) XXX_Merge(src proto.Message) {
   302  	xxx_messageInfo_State.Merge(m, src)
   303  }
   304  func (m *State) XXX_Size() int {
   305  	return m.Size()
   306  }
   307  func (m *State) XXX_DiscardUnknown() {
   308  	xxx_messageInfo_State.DiscardUnknown(m)
   309  }
   310  
   311  var xxx_messageInfo_State proto.InternalMessageInfo
   312  
   313  func (m *State) GetVersion() Version {
   314  	if m != nil {
   315  		return m.Version
   316  	}
   317  	return Version{}
   318  }
   319  
   320  func (m *State) GetChainID() string {
   321  	if m != nil {
   322  		return m.ChainID
   323  	}
   324  	return ""
   325  }
   326  
   327  func (m *State) GetInitialHeight() int64 {
   328  	if m != nil {
   329  		return m.InitialHeight
   330  	}
   331  	return 0
   332  }
   333  
   334  func (m *State) GetLastBlockHeight() int64 {
   335  	if m != nil {
   336  		return m.LastBlockHeight
   337  	}
   338  	return 0
   339  }
   340  
   341  func (m *State) GetLastBlockID() types1.BlockID {
   342  	if m != nil {
   343  		return m.LastBlockID
   344  	}
   345  	return types1.BlockID{}
   346  }
   347  
   348  func (m *State) GetLastBlockTime() time.Time {
   349  	if m != nil {
   350  		return m.LastBlockTime
   351  	}
   352  	return time.Time{}
   353  }
   354  
   355  func (m *State) GetNextValidators() *types1.ValidatorSet {
   356  	if m != nil {
   357  		return m.NextValidators
   358  	}
   359  	return nil
   360  }
   361  
   362  func (m *State) GetValidators() *types1.ValidatorSet {
   363  	if m != nil {
   364  		return m.Validators
   365  	}
   366  	return nil
   367  }
   368  
   369  func (m *State) GetLastValidators() *types1.ValidatorSet {
   370  	if m != nil {
   371  		return m.LastValidators
   372  	}
   373  	return nil
   374  }
   375  
   376  func (m *State) GetLastHeightValidatorsChanged() int64 {
   377  	if m != nil {
   378  		return m.LastHeightValidatorsChanged
   379  	}
   380  	return 0
   381  }
   382  
   383  func (m *State) GetConsensusParams() types1.ConsensusParams {
   384  	if m != nil {
   385  		return m.ConsensusParams
   386  	}
   387  	return types1.ConsensusParams{}
   388  }
   389  
   390  func (m *State) GetLastHeightConsensusParamsChanged() int64 {
   391  	if m != nil {
   392  		return m.LastHeightConsensusParamsChanged
   393  	}
   394  	return 0
   395  }
   396  
   397  func (m *State) GetLastResultsHash() []byte {
   398  	if m != nil {
   399  		return m.LastResultsHash
   400  	}
   401  	return nil
   402  }
   403  
   404  func (m *State) GetAppHash() []byte {
   405  	if m != nil {
   406  		return m.AppHash
   407  	}
   408  	return nil
   409  }
   410  
   411  func init() {
   412  	proto.RegisterType((*ABCIResponses)(nil), "seitendermint.state.ABCIResponses")
   413  	proto.RegisterType((*ValidatorsInfo)(nil), "seitendermint.state.ValidatorsInfo")
   414  	proto.RegisterType((*ConsensusParamsInfo)(nil), "seitendermint.state.ConsensusParamsInfo")
   415  	proto.RegisterType((*Version)(nil), "seitendermint.state.Version")
   416  	proto.RegisterType((*State)(nil), "seitendermint.state.State")
   417  }
   418  
   419  func init() { proto.RegisterFile("tendermint/state/types.proto", fileDescriptor_ccfacf933f22bf93) }
   420  
   421  var fileDescriptor_ccfacf933f22bf93 = []byte{
   422  	// 782 bytes of a gzipped FileDescriptorProto
   423  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcd, 0x6e, 0xe3, 0x36,
   424  	0x10, 0xb6, 0xea, 0x24, 0xb6, 0xa9, 0xd8, 0x6e, 0xe9, 0x1e, 0x54, 0x27, 0x95, 0x5d, 0x23, 0x09,
   425  	0x82, 0x02, 0x91, 0x81, 0xf4, 0xd8, 0x5e, 0x22, 0xbb, 0x69, 0x5c, 0x04, 0x45, 0xa1, 0xfc, 0x1c,
   426  	0xf6, 0x22, 0xd0, 0x12, 0x23, 0x11, 0xb1, 0x25, 0x41, 0xa4, 0xbd, 0xd9, 0x37, 0xd8, 0x63, 0x1e,
   427  	0x60, 0x1f, 0x28, 0xc7, 0x1c, 0xf7, 0x94, 0x5d, 0xd8, 0x8f, 0xb0, 0x2f, 0xb0, 0x20, 0x29, 0xc9,
   428  	0xb2, 0x63, 0x04, 0x59, 0xec, 0x8d, 0x9a, 0xf9, 0xe6, 0x9b, 0x8f, 0xc3, 0x6f, 0x20, 0xb0, 0xcb,
   429  	0x70, 0xe0, 0xe2, 0x78, 0x4c, 0x02, 0xd6, 0xa5, 0x0c, 0x31, 0xdc, 0x65, 0xef, 0x22, 0x4c, 0x8d,
   430  	0x28, 0x0e, 0x59, 0x08, 0x1b, 0x14, 0x93, 0x05, 0xc0, 0x10, 0x80, 0xe6, 0xcf, 0x5e, 0xe8, 0x85,
   431  	0x22, 0xdf, 0xe5, 0x27, 0x09, 0x6d, 0xee, 0xe4, 0x88, 0xd0, 0xd0, 0x21, 0x79, 0x9e, 0x66, 0xbe,
   432  	0x8b, 0x88, 0x2f, 0x65, 0xdb, 0xcf, 0xb2, 0x53, 0x34, 0x22, 0x2e, 0x62, 0x61, 0x9c, 0x20, 0x7e,
   433  	0x7d, 0x86, 0x88, 0x50, 0x8c, 0xc6, 0x29, 0x81, 0x9e, 0x4b, 0x4f, 0x71, 0x4c, 0x49, 0x18, 0x2c,
   434  	0x35, 0x68, 0x79, 0x61, 0xe8, 0x8d, 0x70, 0x57, 0x7c, 0x0d, 0x27, 0x37, 0x5d, 0x46, 0xc6, 0x98,
   435  	0x32, 0x34, 0x8e, 0x24, 0xa0, 0x33, 0x57, 0x40, 0xf5, 0xc4, 0xec, 0x0d, 0x2c, 0x4c, 0xa3, 0x30,
   436  	0xa0, 0x98, 0xc2, 0x53, 0xa0, 0xba, 0x78, 0x44, 0xa6, 0x38, 0xb6, 0xd9, 0x1d, 0xd5, 0x94, 0x76,
   437  	0xf1, 0x50, 0x3d, 0xde, 0x37, 0x96, 0xe7, 0xc1, 0xef, 0x69, 0xa4, 0x35, 0x7d, 0x09, 0xbf, 0xbc,
   438  	0xb3, 0x80, 0x9b, 0x1e, 0x29, 0x3c, 0x01, 0x15, 0x1c, 0xb8, 0xf6, 0x70, 0x14, 0x3a, 0xb7, 0xda,
   439  	0x0f, 0x6d, 0xe5, 0x50, 0x3d, 0xde, 0x7b, 0x89, 0xe5, 0xef, 0xc0, 0x35, 0x39, 0xd6, 0x2a, 0xe3,
   440  	0xe4, 0x04, 0xff, 0x01, 0xea, 0x10, 0x7b, 0x24, 0x48, 0x48, 0x8a, 0x82, 0xe4, 0xe0, 0x25, 0x12,
   441  	0x93, 0xc3, 0x25, 0x0d, 0x18, 0x66, 0xe7, 0xce, 0x7b, 0x05, 0xd4, 0xae, 0xd3, 0xc9, 0xd2, 0x41,
   442  	0x70, 0x13, 0xc2, 0x53, 0x50, 0xcd, 0x66, 0x6d, 0x53, 0xcc, 0x34, 0x45, 0xb0, 0xff, 0xb6, 0xc2,
   443  	0x2e, 0x87, 0x99, 0xd5, 0x5e, 0x60, 0x66, 0x6d, 0x4f, 0x73, 0x5f, 0xd0, 0x00, 0x8d, 0x11, 0xa2,
   444  	0xcc, 0xf6, 0x31, 0xf1, 0x7c, 0x66, 0x3b, 0x3e, 0x0a, 0x3c, 0xec, 0x8a, 0x0b, 0x17, 0xad, 0x9f,
   445  	0x78, 0xea, 0x4c, 0x64, 0x7a, 0x32, 0xd1, 0xf9, 0xa0, 0x80, 0x46, 0x8f, 0x4b, 0x0d, 0xe8, 0x84,
   446  	0xfe, 0x2f, 0xde, 0x52, 0xe8, 0xb9, 0x02, 0x3f, 0x3a, 0x69, 0xd8, 0x96, 0x6f, 0x9c, 0x48, 0xda,
   447  	0x5b, 0x2b, 0x69, 0x85, 0xc3, 0xdc, 0x78, 0x78, 0x6a, 0x15, 0xac, 0xba, 0xb3, 0x1c, 0xfe, 0x66,
   448  	0x79, 0xb7, 0xa0, 0x74, 0x2d, 0x7d, 0x04, 0xfb, 0xa0, 0x92, 0xb1, 0x25, 0x52, 0xda, 0x2b, 0x52,
   449  	0x12, 0xcb, 0x2d, 0xc4, 0x24, 0x32, 0x16, 0x85, 0xb0, 0x09, 0xca, 0x34, 0xbc, 0x61, 0x6f, 0x51,
   450  	0x8c, 0x45, 0xd7, 0x8a, 0x95, 0x7d, 0x77, 0xbe, 0x6c, 0x81, 0xcd, 0x0b, 0xbe, 0x59, 0xf0, 0x2f,
   451  	0x50, 0x4a, 0xb8, 0x92, 0x4e, 0xbb, 0xc6, 0x9a, 0x05, 0x34, 0x12, 0x69, 0x49, 0x97, 0xb4, 0x04,
   452  	0x1e, 0x80, 0xb2, 0xe3, 0x23, 0x12, 0xd8, 0x44, 0xde, 0xac, 0x62, 0xaa, 0xb3, 0xa7, 0x56, 0xa9,
   453  	0xc7, 0x63, 0x83, 0xbe, 0x55, 0x12, 0xc9, 0x81, 0x0b, 0xf7, 0x41, 0x8d, 0x04, 0x84, 0x11, 0x34,
   454  	0x4a, 0xe6, 0xa1, 0xd5, 0xc4, 0x1c, 0xaa, 0x49, 0x54, 0x8e, 0x02, 0xfe, 0x0e, 0xc4, 0x60, 0xa4,
   455  	0xeb, 0x52, 0x64, 0x51, 0x20, 0xeb, 0x3c, 0x21, 0x3c, 0x95, 0x60, 0xaf, 0x40, 0x35, 0x87, 0x25,
   456  	0xae, 0xb6, 0xb1, 0x56, 0xbe, 0x7c, 0x33, 0x51, 0x38, 0xe8, 0x9b, 0x0d, 0x2e, 0x7f, 0xf6, 0xd4,
   457  	0x52, 0xcf, 0x53, 0xb6, 0x41, 0xdf, 0x52, 0x33, 0xea, 0x81, 0x0b, 0xcf, 0x41, 0x3d, 0x47, 0xcb,
   458  	0x97, 0x56, 0xdb, 0x14, 0xc4, 0x4d, 0x43, 0x6e, 0xb4, 0x91, 0x6e, 0xb4, 0x71, 0x99, 0x6e, 0xb4,
   459  	0x59, 0xe6, 0xb4, 0xf7, 0x9f, 0x5a, 0x8a, 0x55, 0xcd, 0xb8, 0x78, 0x16, 0xfe, 0x0b, 0xea, 0x01,
   460  	0xbe, 0x63, 0x76, 0x66, 0x5c, 0xaa, 0x6d, 0xbd, 0xd6, 0xed, 0x35, 0x5e, 0xb9, 0xd8, 0x1d, 0x78,
   461  	0x02, 0x40, 0x8e, 0xa6, 0xf4, 0x5a, 0x9a, 0x5c, 0x11, 0x97, 0x23, 0x2e, 0x97, 0xe3, 0x29, 0xbf,
   462  	0x5a, 0x0e, 0xaf, 0xcc, 0xc9, 0xe9, 0x01, 0x3d, 0xef, 0xef, 0x05, 0x65, 0x66, 0xf5, 0x8a, 0x78,
   463  	0xb8, 0x9d, 0x85, 0xd5, 0x17, 0xd5, 0x89, 0xe9, 0xd7, 0xee, 0x1e, 0xf8, 0xfe, 0xdd, 0xfb, 0x0f,
   464  	0xec, 0x2d, 0xed, 0xde, 0x4a, 0x8b, 0x4c, 0xa1, 0x2a, 0x14, 0xb6, 0x73, 0xcb, 0xb8, 0x4c, 0x94,
   465  	0xca, 0x4c, 0x7d, 0x19, 0x63, 0x3a, 0x19, 0x31, 0x6a, 0xfb, 0x88, 0xfa, 0xda, 0x76, 0x5b, 0x39,
   466  	0xdc, 0x96, 0xbe, 0xb4, 0x64, 0xfc, 0x0c, 0x51, 0x1f, 0xfe, 0x02, 0xca, 0x28, 0x8a, 0x24, 0xa4,
   467  	0x2a, 0x20, 0x25, 0x14, 0x45, 0x3c, 0x65, 0x5e, 0x3d, 0xcc, 0x74, 0xe5, 0x71, 0xa6, 0x2b, 0x9f,
   468  	0x67, 0xba, 0x72, 0x3f, 0xd7, 0x0b, 0x8f, 0x73, 0xbd, 0xf0, 0x71, 0xae, 0x17, 0xde, 0xfc, 0xe9,
   469  	0x11, 0xe6, 0x4f, 0x86, 0x86, 0x13, 0x8e, 0xbb, 0x28, 0x26, 0x47, 0x28, 0x70, 0xfc, 0x30, 0xee,
   470  	0x52, 0x4c, 0x8e, 0x72, 0xff, 0x19, 0xf9, 0x03, 0x5c, 0xfd, 0x7b, 0x0e, 0xb7, 0x44, 0xfc, 0x8f,
   471  	0xaf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x8f, 0xb1, 0xca, 0x58, 0x07, 0x00, 0x00,
   472  }
   473  
   474  func (m *ABCIResponses) Marshal() (dAtA []byte, err error) {
   475  	size := m.Size()
   476  	dAtA = make([]byte, size)
   477  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   478  	if err != nil {
   479  		return nil, err
   480  	}
   481  	return dAtA[:n], nil
   482  }
   483  
   484  func (m *ABCIResponses) MarshalTo(dAtA []byte) (int, error) {
   485  	size := m.Size()
   486  	return m.MarshalToSizedBuffer(dAtA[:size])
   487  }
   488  
   489  func (m *ABCIResponses) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   490  	i := len(dAtA)
   491  	_ = i
   492  	var l int
   493  	_ = l
   494  	if m.BeginBlock != nil {
   495  		{
   496  			size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i])
   497  			if err != nil {
   498  				return 0, err
   499  			}
   500  			i -= size
   501  			i = encodeVarintTypes(dAtA, i, uint64(size))
   502  		}
   503  		i--
   504  		dAtA[i] = 0x1a
   505  	}
   506  	if m.EndBlock != nil {
   507  		{
   508  			size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i])
   509  			if err != nil {
   510  				return 0, err
   511  			}
   512  			i -= size
   513  			i = encodeVarintTypes(dAtA, i, uint64(size))
   514  		}
   515  		i--
   516  		dAtA[i] = 0x12
   517  	}
   518  	if len(m.DeliverTxs) > 0 {
   519  		for iNdEx := len(m.DeliverTxs) - 1; iNdEx >= 0; iNdEx-- {
   520  			{
   521  				size, err := m.DeliverTxs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   522  				if err != nil {
   523  					return 0, err
   524  				}
   525  				i -= size
   526  				i = encodeVarintTypes(dAtA, i, uint64(size))
   527  			}
   528  			i--
   529  			dAtA[i] = 0xa
   530  		}
   531  	}
   532  	return len(dAtA) - i, nil
   533  }
   534  
   535  func (m *ValidatorsInfo) Marshal() (dAtA []byte, err error) {
   536  	size := m.Size()
   537  	dAtA = make([]byte, size)
   538  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   539  	if err != nil {
   540  		return nil, err
   541  	}
   542  	return dAtA[:n], nil
   543  }
   544  
   545  func (m *ValidatorsInfo) MarshalTo(dAtA []byte) (int, error) {
   546  	size := m.Size()
   547  	return m.MarshalToSizedBuffer(dAtA[:size])
   548  }
   549  
   550  func (m *ValidatorsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   551  	i := len(dAtA)
   552  	_ = i
   553  	var l int
   554  	_ = l
   555  	if m.LastHeightChanged != 0 {
   556  		i = encodeVarintTypes(dAtA, i, uint64(m.LastHeightChanged))
   557  		i--
   558  		dAtA[i] = 0x10
   559  	}
   560  	if m.ValidatorSet != nil {
   561  		{
   562  			size, err := m.ValidatorSet.MarshalToSizedBuffer(dAtA[:i])
   563  			if err != nil {
   564  				return 0, err
   565  			}
   566  			i -= size
   567  			i = encodeVarintTypes(dAtA, i, uint64(size))
   568  		}
   569  		i--
   570  		dAtA[i] = 0xa
   571  	}
   572  	return len(dAtA) - i, nil
   573  }
   574  
   575  func (m *ConsensusParamsInfo) Marshal() (dAtA []byte, err error) {
   576  	size := m.Size()
   577  	dAtA = make([]byte, size)
   578  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   579  	if err != nil {
   580  		return nil, err
   581  	}
   582  	return dAtA[:n], nil
   583  }
   584  
   585  func (m *ConsensusParamsInfo) MarshalTo(dAtA []byte) (int, error) {
   586  	size := m.Size()
   587  	return m.MarshalToSizedBuffer(dAtA[:size])
   588  }
   589  
   590  func (m *ConsensusParamsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   591  	i := len(dAtA)
   592  	_ = i
   593  	var l int
   594  	_ = l
   595  	if m.LastHeightChanged != 0 {
   596  		i = encodeVarintTypes(dAtA, i, uint64(m.LastHeightChanged))
   597  		i--
   598  		dAtA[i] = 0x10
   599  	}
   600  	{
   601  		size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i])
   602  		if err != nil {
   603  			return 0, err
   604  		}
   605  		i -= size
   606  		i = encodeVarintTypes(dAtA, i, uint64(size))
   607  	}
   608  	i--
   609  	dAtA[i] = 0xa
   610  	return len(dAtA) - i, nil
   611  }
   612  
   613  func (m *Version) Marshal() (dAtA []byte, err error) {
   614  	size := m.Size()
   615  	dAtA = make([]byte, size)
   616  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   617  	if err != nil {
   618  		return nil, err
   619  	}
   620  	return dAtA[:n], nil
   621  }
   622  
   623  func (m *Version) MarshalTo(dAtA []byte) (int, error) {
   624  	size := m.Size()
   625  	return m.MarshalToSizedBuffer(dAtA[:size])
   626  }
   627  
   628  func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   629  	i := len(dAtA)
   630  	_ = i
   631  	var l int
   632  	_ = l
   633  	if len(m.Software) > 0 {
   634  		i -= len(m.Software)
   635  		copy(dAtA[i:], m.Software)
   636  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Software)))
   637  		i--
   638  		dAtA[i] = 0x12
   639  	}
   640  	{
   641  		size, err := m.Consensus.MarshalToSizedBuffer(dAtA[:i])
   642  		if err != nil {
   643  			return 0, err
   644  		}
   645  		i -= size
   646  		i = encodeVarintTypes(dAtA, i, uint64(size))
   647  	}
   648  	i--
   649  	dAtA[i] = 0xa
   650  	return len(dAtA) - i, nil
   651  }
   652  
   653  func (m *State) Marshal() (dAtA []byte, err error) {
   654  	size := m.Size()
   655  	dAtA = make([]byte, size)
   656  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   657  	if err != nil {
   658  		return nil, err
   659  	}
   660  	return dAtA[:n], nil
   661  }
   662  
   663  func (m *State) MarshalTo(dAtA []byte) (int, error) {
   664  	size := m.Size()
   665  	return m.MarshalToSizedBuffer(dAtA[:size])
   666  }
   667  
   668  func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   669  	i := len(dAtA)
   670  	_ = i
   671  	var l int
   672  	_ = l
   673  	if m.InitialHeight != 0 {
   674  		i = encodeVarintTypes(dAtA, i, uint64(m.InitialHeight))
   675  		i--
   676  		dAtA[i] = 0x70
   677  	}
   678  	if len(m.AppHash) > 0 {
   679  		i -= len(m.AppHash)
   680  		copy(dAtA[i:], m.AppHash)
   681  		i = encodeVarintTypes(dAtA, i, uint64(len(m.AppHash)))
   682  		i--
   683  		dAtA[i] = 0x6a
   684  	}
   685  	if len(m.LastResultsHash) > 0 {
   686  		i -= len(m.LastResultsHash)
   687  		copy(dAtA[i:], m.LastResultsHash)
   688  		i = encodeVarintTypes(dAtA, i, uint64(len(m.LastResultsHash)))
   689  		i--
   690  		dAtA[i] = 0x62
   691  	}
   692  	if m.LastHeightConsensusParamsChanged != 0 {
   693  		i = encodeVarintTypes(dAtA, i, uint64(m.LastHeightConsensusParamsChanged))
   694  		i--
   695  		dAtA[i] = 0x58
   696  	}
   697  	{
   698  		size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i])
   699  		if err != nil {
   700  			return 0, err
   701  		}
   702  		i -= size
   703  		i = encodeVarintTypes(dAtA, i, uint64(size))
   704  	}
   705  	i--
   706  	dAtA[i] = 0x52
   707  	if m.LastHeightValidatorsChanged != 0 {
   708  		i = encodeVarintTypes(dAtA, i, uint64(m.LastHeightValidatorsChanged))
   709  		i--
   710  		dAtA[i] = 0x48
   711  	}
   712  	if m.LastValidators != nil {
   713  		{
   714  			size, err := m.LastValidators.MarshalToSizedBuffer(dAtA[:i])
   715  			if err != nil {
   716  				return 0, err
   717  			}
   718  			i -= size
   719  			i = encodeVarintTypes(dAtA, i, uint64(size))
   720  		}
   721  		i--
   722  		dAtA[i] = 0x42
   723  	}
   724  	if m.Validators != nil {
   725  		{
   726  			size, err := m.Validators.MarshalToSizedBuffer(dAtA[:i])
   727  			if err != nil {
   728  				return 0, err
   729  			}
   730  			i -= size
   731  			i = encodeVarintTypes(dAtA, i, uint64(size))
   732  		}
   733  		i--
   734  		dAtA[i] = 0x3a
   735  	}
   736  	if m.NextValidators != nil {
   737  		{
   738  			size, err := m.NextValidators.MarshalToSizedBuffer(dAtA[:i])
   739  			if err != nil {
   740  				return 0, err
   741  			}
   742  			i -= size
   743  			i = encodeVarintTypes(dAtA, i, uint64(size))
   744  		}
   745  		i--
   746  		dAtA[i] = 0x32
   747  	}
   748  	n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.LastBlockTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.LastBlockTime):])
   749  	if err10 != nil {
   750  		return 0, err10
   751  	}
   752  	i -= n10
   753  	i = encodeVarintTypes(dAtA, i, uint64(n10))
   754  	i--
   755  	dAtA[i] = 0x2a
   756  	{
   757  		size, err := m.LastBlockID.MarshalToSizedBuffer(dAtA[:i])
   758  		if err != nil {
   759  			return 0, err
   760  		}
   761  		i -= size
   762  		i = encodeVarintTypes(dAtA, i, uint64(size))
   763  	}
   764  	i--
   765  	dAtA[i] = 0x22
   766  	if m.LastBlockHeight != 0 {
   767  		i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockHeight))
   768  		i--
   769  		dAtA[i] = 0x18
   770  	}
   771  	if len(m.ChainID) > 0 {
   772  		i -= len(m.ChainID)
   773  		copy(dAtA[i:], m.ChainID)
   774  		i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainID)))
   775  		i--
   776  		dAtA[i] = 0x12
   777  	}
   778  	{
   779  		size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
   780  		if err != nil {
   781  			return 0, err
   782  		}
   783  		i -= size
   784  		i = encodeVarintTypes(dAtA, i, uint64(size))
   785  	}
   786  	i--
   787  	dAtA[i] = 0xa
   788  	return len(dAtA) - i, nil
   789  }
   790  
   791  func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
   792  	offset -= sovTypes(v)
   793  	base := offset
   794  	for v >= 1<<7 {
   795  		dAtA[offset] = uint8(v&0x7f | 0x80)
   796  		v >>= 7
   797  		offset++
   798  	}
   799  	dAtA[offset] = uint8(v)
   800  	return base
   801  }
   802  func (m *ABCIResponses) Size() (n int) {
   803  	if m == nil {
   804  		return 0
   805  	}
   806  	var l int
   807  	_ = l
   808  	if len(m.DeliverTxs) > 0 {
   809  		for _, e := range m.DeliverTxs {
   810  			l = e.Size()
   811  			n += 1 + l + sovTypes(uint64(l))
   812  		}
   813  	}
   814  	if m.EndBlock != nil {
   815  		l = m.EndBlock.Size()
   816  		n += 1 + l + sovTypes(uint64(l))
   817  	}
   818  	if m.BeginBlock != nil {
   819  		l = m.BeginBlock.Size()
   820  		n += 1 + l + sovTypes(uint64(l))
   821  	}
   822  	return n
   823  }
   824  
   825  func (m *ValidatorsInfo) Size() (n int) {
   826  	if m == nil {
   827  		return 0
   828  	}
   829  	var l int
   830  	_ = l
   831  	if m.ValidatorSet != nil {
   832  		l = m.ValidatorSet.Size()
   833  		n += 1 + l + sovTypes(uint64(l))
   834  	}
   835  	if m.LastHeightChanged != 0 {
   836  		n += 1 + sovTypes(uint64(m.LastHeightChanged))
   837  	}
   838  	return n
   839  }
   840  
   841  func (m *ConsensusParamsInfo) Size() (n int) {
   842  	if m == nil {
   843  		return 0
   844  	}
   845  	var l int
   846  	_ = l
   847  	l = m.ConsensusParams.Size()
   848  	n += 1 + l + sovTypes(uint64(l))
   849  	if m.LastHeightChanged != 0 {
   850  		n += 1 + sovTypes(uint64(m.LastHeightChanged))
   851  	}
   852  	return n
   853  }
   854  
   855  func (m *Version) Size() (n int) {
   856  	if m == nil {
   857  		return 0
   858  	}
   859  	var l int
   860  	_ = l
   861  	l = m.Consensus.Size()
   862  	n += 1 + l + sovTypes(uint64(l))
   863  	l = len(m.Software)
   864  	if l > 0 {
   865  		n += 1 + l + sovTypes(uint64(l))
   866  	}
   867  	return n
   868  }
   869  
   870  func (m *State) Size() (n int) {
   871  	if m == nil {
   872  		return 0
   873  	}
   874  	var l int
   875  	_ = l
   876  	l = m.Version.Size()
   877  	n += 1 + l + sovTypes(uint64(l))
   878  	l = len(m.ChainID)
   879  	if l > 0 {
   880  		n += 1 + l + sovTypes(uint64(l))
   881  	}
   882  	if m.LastBlockHeight != 0 {
   883  		n += 1 + sovTypes(uint64(m.LastBlockHeight))
   884  	}
   885  	l = m.LastBlockID.Size()
   886  	n += 1 + l + sovTypes(uint64(l))
   887  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.LastBlockTime)
   888  	n += 1 + l + sovTypes(uint64(l))
   889  	if m.NextValidators != nil {
   890  		l = m.NextValidators.Size()
   891  		n += 1 + l + sovTypes(uint64(l))
   892  	}
   893  	if m.Validators != nil {
   894  		l = m.Validators.Size()
   895  		n += 1 + l + sovTypes(uint64(l))
   896  	}
   897  	if m.LastValidators != nil {
   898  		l = m.LastValidators.Size()
   899  		n += 1 + l + sovTypes(uint64(l))
   900  	}
   901  	if m.LastHeightValidatorsChanged != 0 {
   902  		n += 1 + sovTypes(uint64(m.LastHeightValidatorsChanged))
   903  	}
   904  	l = m.ConsensusParams.Size()
   905  	n += 1 + l + sovTypes(uint64(l))
   906  	if m.LastHeightConsensusParamsChanged != 0 {
   907  		n += 1 + sovTypes(uint64(m.LastHeightConsensusParamsChanged))
   908  	}
   909  	l = len(m.LastResultsHash)
   910  	if l > 0 {
   911  		n += 1 + l + sovTypes(uint64(l))
   912  	}
   913  	l = len(m.AppHash)
   914  	if l > 0 {
   915  		n += 1 + l + sovTypes(uint64(l))
   916  	}
   917  	if m.InitialHeight != 0 {
   918  		n += 1 + sovTypes(uint64(m.InitialHeight))
   919  	}
   920  	return n
   921  }
   922  
   923  func sovTypes(x uint64) (n int) {
   924  	return (math_bits.Len64(x|1) + 6) / 7
   925  }
   926  func sozTypes(x uint64) (n int) {
   927  	return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   928  }
   929  func (m *ABCIResponses) Unmarshal(dAtA []byte) error {
   930  	l := len(dAtA)
   931  	iNdEx := 0
   932  	for iNdEx < l {
   933  		preIndex := iNdEx
   934  		var wire uint64
   935  		for shift := uint(0); ; shift += 7 {
   936  			if shift >= 64 {
   937  				return ErrIntOverflowTypes
   938  			}
   939  			if iNdEx >= l {
   940  				return io.ErrUnexpectedEOF
   941  			}
   942  			b := dAtA[iNdEx]
   943  			iNdEx++
   944  			wire |= uint64(b&0x7F) << shift
   945  			if b < 0x80 {
   946  				break
   947  			}
   948  		}
   949  		fieldNum := int32(wire >> 3)
   950  		wireType := int(wire & 0x7)
   951  		if wireType == 4 {
   952  			return fmt.Errorf("proto: ABCIResponses: wiretype end group for non-group")
   953  		}
   954  		if fieldNum <= 0 {
   955  			return fmt.Errorf("proto: ABCIResponses: illegal tag %d (wire type %d)", fieldNum, wire)
   956  		}
   957  		switch fieldNum {
   958  		case 1:
   959  			if wireType != 2 {
   960  				return fmt.Errorf("proto: wrong wireType = %d for field DeliverTxs", wireType)
   961  			}
   962  			var msglen int
   963  			for shift := uint(0); ; shift += 7 {
   964  				if shift >= 64 {
   965  					return ErrIntOverflowTypes
   966  				}
   967  				if iNdEx >= l {
   968  					return io.ErrUnexpectedEOF
   969  				}
   970  				b := dAtA[iNdEx]
   971  				iNdEx++
   972  				msglen |= int(b&0x7F) << shift
   973  				if b < 0x80 {
   974  					break
   975  				}
   976  			}
   977  			if msglen < 0 {
   978  				return ErrInvalidLengthTypes
   979  			}
   980  			postIndex := iNdEx + msglen
   981  			if postIndex < 0 {
   982  				return ErrInvalidLengthTypes
   983  			}
   984  			if postIndex > l {
   985  				return io.ErrUnexpectedEOF
   986  			}
   987  			m.DeliverTxs = append(m.DeliverTxs, &types.ResponseDeliverTx{})
   988  			if err := m.DeliverTxs[len(m.DeliverTxs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   989  				return err
   990  			}
   991  			iNdEx = postIndex
   992  		case 2:
   993  			if wireType != 2 {
   994  				return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType)
   995  			}
   996  			var msglen int
   997  			for shift := uint(0); ; shift += 7 {
   998  				if shift >= 64 {
   999  					return ErrIntOverflowTypes
  1000  				}
  1001  				if iNdEx >= l {
  1002  					return io.ErrUnexpectedEOF
  1003  				}
  1004  				b := dAtA[iNdEx]
  1005  				iNdEx++
  1006  				msglen |= int(b&0x7F) << shift
  1007  				if b < 0x80 {
  1008  					break
  1009  				}
  1010  			}
  1011  			if msglen < 0 {
  1012  				return ErrInvalidLengthTypes
  1013  			}
  1014  			postIndex := iNdEx + msglen
  1015  			if postIndex < 0 {
  1016  				return ErrInvalidLengthTypes
  1017  			}
  1018  			if postIndex > l {
  1019  				return io.ErrUnexpectedEOF
  1020  			}
  1021  			if m.EndBlock == nil {
  1022  				m.EndBlock = &types.ResponseEndBlock{}
  1023  			}
  1024  			if err := m.EndBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1025  				return err
  1026  			}
  1027  			iNdEx = postIndex
  1028  		case 3:
  1029  			if wireType != 2 {
  1030  				return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType)
  1031  			}
  1032  			var msglen int
  1033  			for shift := uint(0); ; shift += 7 {
  1034  				if shift >= 64 {
  1035  					return ErrIntOverflowTypes
  1036  				}
  1037  				if iNdEx >= l {
  1038  					return io.ErrUnexpectedEOF
  1039  				}
  1040  				b := dAtA[iNdEx]
  1041  				iNdEx++
  1042  				msglen |= int(b&0x7F) << shift
  1043  				if b < 0x80 {
  1044  					break
  1045  				}
  1046  			}
  1047  			if msglen < 0 {
  1048  				return ErrInvalidLengthTypes
  1049  			}
  1050  			postIndex := iNdEx + msglen
  1051  			if postIndex < 0 {
  1052  				return ErrInvalidLengthTypes
  1053  			}
  1054  			if postIndex > l {
  1055  				return io.ErrUnexpectedEOF
  1056  			}
  1057  			if m.BeginBlock == nil {
  1058  				m.BeginBlock = &types.ResponseBeginBlock{}
  1059  			}
  1060  			if err := m.BeginBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1061  				return err
  1062  			}
  1063  			iNdEx = postIndex
  1064  		default:
  1065  			iNdEx = preIndex
  1066  			skippy, err := skipTypes(dAtA[iNdEx:])
  1067  			if err != nil {
  1068  				return err
  1069  			}
  1070  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1071  				return ErrInvalidLengthTypes
  1072  			}
  1073  			if (iNdEx + skippy) > l {
  1074  				return io.ErrUnexpectedEOF
  1075  			}
  1076  			iNdEx += skippy
  1077  		}
  1078  	}
  1079  
  1080  	if iNdEx > l {
  1081  		return io.ErrUnexpectedEOF
  1082  	}
  1083  	return nil
  1084  }
  1085  func (m *ValidatorsInfo) Unmarshal(dAtA []byte) error {
  1086  	l := len(dAtA)
  1087  	iNdEx := 0
  1088  	for iNdEx < l {
  1089  		preIndex := iNdEx
  1090  		var wire uint64
  1091  		for shift := uint(0); ; shift += 7 {
  1092  			if shift >= 64 {
  1093  				return ErrIntOverflowTypes
  1094  			}
  1095  			if iNdEx >= l {
  1096  				return io.ErrUnexpectedEOF
  1097  			}
  1098  			b := dAtA[iNdEx]
  1099  			iNdEx++
  1100  			wire |= uint64(b&0x7F) << shift
  1101  			if b < 0x80 {
  1102  				break
  1103  			}
  1104  		}
  1105  		fieldNum := int32(wire >> 3)
  1106  		wireType := int(wire & 0x7)
  1107  		if wireType == 4 {
  1108  			return fmt.Errorf("proto: ValidatorsInfo: wiretype end group for non-group")
  1109  		}
  1110  		if fieldNum <= 0 {
  1111  			return fmt.Errorf("proto: ValidatorsInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1112  		}
  1113  		switch fieldNum {
  1114  		case 1:
  1115  			if wireType != 2 {
  1116  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorSet", wireType)
  1117  			}
  1118  			var msglen int
  1119  			for shift := uint(0); ; shift += 7 {
  1120  				if shift >= 64 {
  1121  					return ErrIntOverflowTypes
  1122  				}
  1123  				if iNdEx >= l {
  1124  					return io.ErrUnexpectedEOF
  1125  				}
  1126  				b := dAtA[iNdEx]
  1127  				iNdEx++
  1128  				msglen |= int(b&0x7F) << shift
  1129  				if b < 0x80 {
  1130  					break
  1131  				}
  1132  			}
  1133  			if msglen < 0 {
  1134  				return ErrInvalidLengthTypes
  1135  			}
  1136  			postIndex := iNdEx + msglen
  1137  			if postIndex < 0 {
  1138  				return ErrInvalidLengthTypes
  1139  			}
  1140  			if postIndex > l {
  1141  				return io.ErrUnexpectedEOF
  1142  			}
  1143  			if m.ValidatorSet == nil {
  1144  				m.ValidatorSet = &types1.ValidatorSet{}
  1145  			}
  1146  			if err := m.ValidatorSet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1147  				return err
  1148  			}
  1149  			iNdEx = postIndex
  1150  		case 2:
  1151  			if wireType != 0 {
  1152  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeightChanged", wireType)
  1153  			}
  1154  			m.LastHeightChanged = 0
  1155  			for shift := uint(0); ; shift += 7 {
  1156  				if shift >= 64 {
  1157  					return ErrIntOverflowTypes
  1158  				}
  1159  				if iNdEx >= l {
  1160  					return io.ErrUnexpectedEOF
  1161  				}
  1162  				b := dAtA[iNdEx]
  1163  				iNdEx++
  1164  				m.LastHeightChanged |= int64(b&0x7F) << shift
  1165  				if b < 0x80 {
  1166  					break
  1167  				}
  1168  			}
  1169  		default:
  1170  			iNdEx = preIndex
  1171  			skippy, err := skipTypes(dAtA[iNdEx:])
  1172  			if err != nil {
  1173  				return err
  1174  			}
  1175  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1176  				return ErrInvalidLengthTypes
  1177  			}
  1178  			if (iNdEx + skippy) > l {
  1179  				return io.ErrUnexpectedEOF
  1180  			}
  1181  			iNdEx += skippy
  1182  		}
  1183  	}
  1184  
  1185  	if iNdEx > l {
  1186  		return io.ErrUnexpectedEOF
  1187  	}
  1188  	return nil
  1189  }
  1190  func (m *ConsensusParamsInfo) Unmarshal(dAtA []byte) error {
  1191  	l := len(dAtA)
  1192  	iNdEx := 0
  1193  	for iNdEx < l {
  1194  		preIndex := iNdEx
  1195  		var wire uint64
  1196  		for shift := uint(0); ; shift += 7 {
  1197  			if shift >= 64 {
  1198  				return ErrIntOverflowTypes
  1199  			}
  1200  			if iNdEx >= l {
  1201  				return io.ErrUnexpectedEOF
  1202  			}
  1203  			b := dAtA[iNdEx]
  1204  			iNdEx++
  1205  			wire |= uint64(b&0x7F) << shift
  1206  			if b < 0x80 {
  1207  				break
  1208  			}
  1209  		}
  1210  		fieldNum := int32(wire >> 3)
  1211  		wireType := int(wire & 0x7)
  1212  		if wireType == 4 {
  1213  			return fmt.Errorf("proto: ConsensusParamsInfo: wiretype end group for non-group")
  1214  		}
  1215  		if fieldNum <= 0 {
  1216  			return fmt.Errorf("proto: ConsensusParamsInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1217  		}
  1218  		switch fieldNum {
  1219  		case 1:
  1220  			if wireType != 2 {
  1221  				return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  1222  			}
  1223  			var msglen int
  1224  			for shift := uint(0); ; shift += 7 {
  1225  				if shift >= 64 {
  1226  					return ErrIntOverflowTypes
  1227  				}
  1228  				if iNdEx >= l {
  1229  					return io.ErrUnexpectedEOF
  1230  				}
  1231  				b := dAtA[iNdEx]
  1232  				iNdEx++
  1233  				msglen |= int(b&0x7F) << shift
  1234  				if b < 0x80 {
  1235  					break
  1236  				}
  1237  			}
  1238  			if msglen < 0 {
  1239  				return ErrInvalidLengthTypes
  1240  			}
  1241  			postIndex := iNdEx + msglen
  1242  			if postIndex < 0 {
  1243  				return ErrInvalidLengthTypes
  1244  			}
  1245  			if postIndex > l {
  1246  				return io.ErrUnexpectedEOF
  1247  			}
  1248  			if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1249  				return err
  1250  			}
  1251  			iNdEx = postIndex
  1252  		case 2:
  1253  			if wireType != 0 {
  1254  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeightChanged", wireType)
  1255  			}
  1256  			m.LastHeightChanged = 0
  1257  			for shift := uint(0); ; shift += 7 {
  1258  				if shift >= 64 {
  1259  					return ErrIntOverflowTypes
  1260  				}
  1261  				if iNdEx >= l {
  1262  					return io.ErrUnexpectedEOF
  1263  				}
  1264  				b := dAtA[iNdEx]
  1265  				iNdEx++
  1266  				m.LastHeightChanged |= int64(b&0x7F) << shift
  1267  				if b < 0x80 {
  1268  					break
  1269  				}
  1270  			}
  1271  		default:
  1272  			iNdEx = preIndex
  1273  			skippy, err := skipTypes(dAtA[iNdEx:])
  1274  			if err != nil {
  1275  				return err
  1276  			}
  1277  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1278  				return ErrInvalidLengthTypes
  1279  			}
  1280  			if (iNdEx + skippy) > l {
  1281  				return io.ErrUnexpectedEOF
  1282  			}
  1283  			iNdEx += skippy
  1284  		}
  1285  	}
  1286  
  1287  	if iNdEx > l {
  1288  		return io.ErrUnexpectedEOF
  1289  	}
  1290  	return nil
  1291  }
  1292  func (m *Version) Unmarshal(dAtA []byte) error {
  1293  	l := len(dAtA)
  1294  	iNdEx := 0
  1295  	for iNdEx < l {
  1296  		preIndex := iNdEx
  1297  		var wire uint64
  1298  		for shift := uint(0); ; shift += 7 {
  1299  			if shift >= 64 {
  1300  				return ErrIntOverflowTypes
  1301  			}
  1302  			if iNdEx >= l {
  1303  				return io.ErrUnexpectedEOF
  1304  			}
  1305  			b := dAtA[iNdEx]
  1306  			iNdEx++
  1307  			wire |= uint64(b&0x7F) << shift
  1308  			if b < 0x80 {
  1309  				break
  1310  			}
  1311  		}
  1312  		fieldNum := int32(wire >> 3)
  1313  		wireType := int(wire & 0x7)
  1314  		if wireType == 4 {
  1315  			return fmt.Errorf("proto: Version: wiretype end group for non-group")
  1316  		}
  1317  		if fieldNum <= 0 {
  1318  			return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire)
  1319  		}
  1320  		switch fieldNum {
  1321  		case 1:
  1322  			if wireType != 2 {
  1323  				return fmt.Errorf("proto: wrong wireType = %d for field Consensus", wireType)
  1324  			}
  1325  			var msglen int
  1326  			for shift := uint(0); ; shift += 7 {
  1327  				if shift >= 64 {
  1328  					return ErrIntOverflowTypes
  1329  				}
  1330  				if iNdEx >= l {
  1331  					return io.ErrUnexpectedEOF
  1332  				}
  1333  				b := dAtA[iNdEx]
  1334  				iNdEx++
  1335  				msglen |= int(b&0x7F) << shift
  1336  				if b < 0x80 {
  1337  					break
  1338  				}
  1339  			}
  1340  			if msglen < 0 {
  1341  				return ErrInvalidLengthTypes
  1342  			}
  1343  			postIndex := iNdEx + msglen
  1344  			if postIndex < 0 {
  1345  				return ErrInvalidLengthTypes
  1346  			}
  1347  			if postIndex > l {
  1348  				return io.ErrUnexpectedEOF
  1349  			}
  1350  			if err := m.Consensus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1351  				return err
  1352  			}
  1353  			iNdEx = postIndex
  1354  		case 2:
  1355  			if wireType != 2 {
  1356  				return fmt.Errorf("proto: wrong wireType = %d for field Software", wireType)
  1357  			}
  1358  			var stringLen uint64
  1359  			for shift := uint(0); ; shift += 7 {
  1360  				if shift >= 64 {
  1361  					return ErrIntOverflowTypes
  1362  				}
  1363  				if iNdEx >= l {
  1364  					return io.ErrUnexpectedEOF
  1365  				}
  1366  				b := dAtA[iNdEx]
  1367  				iNdEx++
  1368  				stringLen |= uint64(b&0x7F) << shift
  1369  				if b < 0x80 {
  1370  					break
  1371  				}
  1372  			}
  1373  			intStringLen := int(stringLen)
  1374  			if intStringLen < 0 {
  1375  				return ErrInvalidLengthTypes
  1376  			}
  1377  			postIndex := iNdEx + intStringLen
  1378  			if postIndex < 0 {
  1379  				return ErrInvalidLengthTypes
  1380  			}
  1381  			if postIndex > l {
  1382  				return io.ErrUnexpectedEOF
  1383  			}
  1384  			m.Software = string(dAtA[iNdEx:postIndex])
  1385  			iNdEx = postIndex
  1386  		default:
  1387  			iNdEx = preIndex
  1388  			skippy, err := skipTypes(dAtA[iNdEx:])
  1389  			if err != nil {
  1390  				return err
  1391  			}
  1392  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1393  				return ErrInvalidLengthTypes
  1394  			}
  1395  			if (iNdEx + skippy) > l {
  1396  				return io.ErrUnexpectedEOF
  1397  			}
  1398  			iNdEx += skippy
  1399  		}
  1400  	}
  1401  
  1402  	if iNdEx > l {
  1403  		return io.ErrUnexpectedEOF
  1404  	}
  1405  	return nil
  1406  }
  1407  func (m *State) Unmarshal(dAtA []byte) error {
  1408  	l := len(dAtA)
  1409  	iNdEx := 0
  1410  	for iNdEx < l {
  1411  		preIndex := iNdEx
  1412  		var wire uint64
  1413  		for shift := uint(0); ; shift += 7 {
  1414  			if shift >= 64 {
  1415  				return ErrIntOverflowTypes
  1416  			}
  1417  			if iNdEx >= l {
  1418  				return io.ErrUnexpectedEOF
  1419  			}
  1420  			b := dAtA[iNdEx]
  1421  			iNdEx++
  1422  			wire |= uint64(b&0x7F) << shift
  1423  			if b < 0x80 {
  1424  				break
  1425  			}
  1426  		}
  1427  		fieldNum := int32(wire >> 3)
  1428  		wireType := int(wire & 0x7)
  1429  		if wireType == 4 {
  1430  			return fmt.Errorf("proto: State: wiretype end group for non-group")
  1431  		}
  1432  		if fieldNum <= 0 {
  1433  			return fmt.Errorf("proto: State: illegal tag %d (wire type %d)", fieldNum, wire)
  1434  		}
  1435  		switch fieldNum {
  1436  		case 1:
  1437  			if wireType != 2 {
  1438  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  1439  			}
  1440  			var msglen int
  1441  			for shift := uint(0); ; shift += 7 {
  1442  				if shift >= 64 {
  1443  					return ErrIntOverflowTypes
  1444  				}
  1445  				if iNdEx >= l {
  1446  					return io.ErrUnexpectedEOF
  1447  				}
  1448  				b := dAtA[iNdEx]
  1449  				iNdEx++
  1450  				msglen |= int(b&0x7F) << shift
  1451  				if b < 0x80 {
  1452  					break
  1453  				}
  1454  			}
  1455  			if msglen < 0 {
  1456  				return ErrInvalidLengthTypes
  1457  			}
  1458  			postIndex := iNdEx + msglen
  1459  			if postIndex < 0 {
  1460  				return ErrInvalidLengthTypes
  1461  			}
  1462  			if postIndex > l {
  1463  				return io.ErrUnexpectedEOF
  1464  			}
  1465  			if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1466  				return err
  1467  			}
  1468  			iNdEx = postIndex
  1469  		case 2:
  1470  			if wireType != 2 {
  1471  				return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType)
  1472  			}
  1473  			var stringLen uint64
  1474  			for shift := uint(0); ; shift += 7 {
  1475  				if shift >= 64 {
  1476  					return ErrIntOverflowTypes
  1477  				}
  1478  				if iNdEx >= l {
  1479  					return io.ErrUnexpectedEOF
  1480  				}
  1481  				b := dAtA[iNdEx]
  1482  				iNdEx++
  1483  				stringLen |= uint64(b&0x7F) << shift
  1484  				if b < 0x80 {
  1485  					break
  1486  				}
  1487  			}
  1488  			intStringLen := int(stringLen)
  1489  			if intStringLen < 0 {
  1490  				return ErrInvalidLengthTypes
  1491  			}
  1492  			postIndex := iNdEx + intStringLen
  1493  			if postIndex < 0 {
  1494  				return ErrInvalidLengthTypes
  1495  			}
  1496  			if postIndex > l {
  1497  				return io.ErrUnexpectedEOF
  1498  			}
  1499  			m.ChainID = string(dAtA[iNdEx:postIndex])
  1500  			iNdEx = postIndex
  1501  		case 3:
  1502  			if wireType != 0 {
  1503  				return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeight", wireType)
  1504  			}
  1505  			m.LastBlockHeight = 0
  1506  			for shift := uint(0); ; shift += 7 {
  1507  				if shift >= 64 {
  1508  					return ErrIntOverflowTypes
  1509  				}
  1510  				if iNdEx >= l {
  1511  					return io.ErrUnexpectedEOF
  1512  				}
  1513  				b := dAtA[iNdEx]
  1514  				iNdEx++
  1515  				m.LastBlockHeight |= int64(b&0x7F) << shift
  1516  				if b < 0x80 {
  1517  					break
  1518  				}
  1519  			}
  1520  		case 4:
  1521  			if wireType != 2 {
  1522  				return fmt.Errorf("proto: wrong wireType = %d for field LastBlockID", wireType)
  1523  			}
  1524  			var msglen int
  1525  			for shift := uint(0); ; shift += 7 {
  1526  				if shift >= 64 {
  1527  					return ErrIntOverflowTypes
  1528  				}
  1529  				if iNdEx >= l {
  1530  					return io.ErrUnexpectedEOF
  1531  				}
  1532  				b := dAtA[iNdEx]
  1533  				iNdEx++
  1534  				msglen |= int(b&0x7F) << shift
  1535  				if b < 0x80 {
  1536  					break
  1537  				}
  1538  			}
  1539  			if msglen < 0 {
  1540  				return ErrInvalidLengthTypes
  1541  			}
  1542  			postIndex := iNdEx + msglen
  1543  			if postIndex < 0 {
  1544  				return ErrInvalidLengthTypes
  1545  			}
  1546  			if postIndex > l {
  1547  				return io.ErrUnexpectedEOF
  1548  			}
  1549  			if err := m.LastBlockID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1550  				return err
  1551  			}
  1552  			iNdEx = postIndex
  1553  		case 5:
  1554  			if wireType != 2 {
  1555  				return fmt.Errorf("proto: wrong wireType = %d for field LastBlockTime", wireType)
  1556  			}
  1557  			var msglen int
  1558  			for shift := uint(0); ; shift += 7 {
  1559  				if shift >= 64 {
  1560  					return ErrIntOverflowTypes
  1561  				}
  1562  				if iNdEx >= l {
  1563  					return io.ErrUnexpectedEOF
  1564  				}
  1565  				b := dAtA[iNdEx]
  1566  				iNdEx++
  1567  				msglen |= int(b&0x7F) << shift
  1568  				if b < 0x80 {
  1569  					break
  1570  				}
  1571  			}
  1572  			if msglen < 0 {
  1573  				return ErrInvalidLengthTypes
  1574  			}
  1575  			postIndex := iNdEx + msglen
  1576  			if postIndex < 0 {
  1577  				return ErrInvalidLengthTypes
  1578  			}
  1579  			if postIndex > l {
  1580  				return io.ErrUnexpectedEOF
  1581  			}
  1582  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.LastBlockTime, dAtA[iNdEx:postIndex]); err != nil {
  1583  				return err
  1584  			}
  1585  			iNdEx = postIndex
  1586  		case 6:
  1587  			if wireType != 2 {
  1588  				return fmt.Errorf("proto: wrong wireType = %d for field NextValidators", wireType)
  1589  			}
  1590  			var msglen int
  1591  			for shift := uint(0); ; shift += 7 {
  1592  				if shift >= 64 {
  1593  					return ErrIntOverflowTypes
  1594  				}
  1595  				if iNdEx >= l {
  1596  					return io.ErrUnexpectedEOF
  1597  				}
  1598  				b := dAtA[iNdEx]
  1599  				iNdEx++
  1600  				msglen |= int(b&0x7F) << shift
  1601  				if b < 0x80 {
  1602  					break
  1603  				}
  1604  			}
  1605  			if msglen < 0 {
  1606  				return ErrInvalidLengthTypes
  1607  			}
  1608  			postIndex := iNdEx + msglen
  1609  			if postIndex < 0 {
  1610  				return ErrInvalidLengthTypes
  1611  			}
  1612  			if postIndex > l {
  1613  				return io.ErrUnexpectedEOF
  1614  			}
  1615  			if m.NextValidators == nil {
  1616  				m.NextValidators = &types1.ValidatorSet{}
  1617  			}
  1618  			if err := m.NextValidators.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1619  				return err
  1620  			}
  1621  			iNdEx = postIndex
  1622  		case 7:
  1623  			if wireType != 2 {
  1624  				return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  1625  			}
  1626  			var msglen int
  1627  			for shift := uint(0); ; shift += 7 {
  1628  				if shift >= 64 {
  1629  					return ErrIntOverflowTypes
  1630  				}
  1631  				if iNdEx >= l {
  1632  					return io.ErrUnexpectedEOF
  1633  				}
  1634  				b := dAtA[iNdEx]
  1635  				iNdEx++
  1636  				msglen |= int(b&0x7F) << shift
  1637  				if b < 0x80 {
  1638  					break
  1639  				}
  1640  			}
  1641  			if msglen < 0 {
  1642  				return ErrInvalidLengthTypes
  1643  			}
  1644  			postIndex := iNdEx + msglen
  1645  			if postIndex < 0 {
  1646  				return ErrInvalidLengthTypes
  1647  			}
  1648  			if postIndex > l {
  1649  				return io.ErrUnexpectedEOF
  1650  			}
  1651  			if m.Validators == nil {
  1652  				m.Validators = &types1.ValidatorSet{}
  1653  			}
  1654  			if err := m.Validators.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1655  				return err
  1656  			}
  1657  			iNdEx = postIndex
  1658  		case 8:
  1659  			if wireType != 2 {
  1660  				return fmt.Errorf("proto: wrong wireType = %d for field LastValidators", wireType)
  1661  			}
  1662  			var msglen int
  1663  			for shift := uint(0); ; shift += 7 {
  1664  				if shift >= 64 {
  1665  					return ErrIntOverflowTypes
  1666  				}
  1667  				if iNdEx >= l {
  1668  					return io.ErrUnexpectedEOF
  1669  				}
  1670  				b := dAtA[iNdEx]
  1671  				iNdEx++
  1672  				msglen |= int(b&0x7F) << shift
  1673  				if b < 0x80 {
  1674  					break
  1675  				}
  1676  			}
  1677  			if msglen < 0 {
  1678  				return ErrInvalidLengthTypes
  1679  			}
  1680  			postIndex := iNdEx + msglen
  1681  			if postIndex < 0 {
  1682  				return ErrInvalidLengthTypes
  1683  			}
  1684  			if postIndex > l {
  1685  				return io.ErrUnexpectedEOF
  1686  			}
  1687  			if m.LastValidators == nil {
  1688  				m.LastValidators = &types1.ValidatorSet{}
  1689  			}
  1690  			if err := m.LastValidators.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1691  				return err
  1692  			}
  1693  			iNdEx = postIndex
  1694  		case 9:
  1695  			if wireType != 0 {
  1696  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeightValidatorsChanged", wireType)
  1697  			}
  1698  			m.LastHeightValidatorsChanged = 0
  1699  			for shift := uint(0); ; shift += 7 {
  1700  				if shift >= 64 {
  1701  					return ErrIntOverflowTypes
  1702  				}
  1703  				if iNdEx >= l {
  1704  					return io.ErrUnexpectedEOF
  1705  				}
  1706  				b := dAtA[iNdEx]
  1707  				iNdEx++
  1708  				m.LastHeightValidatorsChanged |= int64(b&0x7F) << shift
  1709  				if b < 0x80 {
  1710  					break
  1711  				}
  1712  			}
  1713  		case 10:
  1714  			if wireType != 2 {
  1715  				return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  1716  			}
  1717  			var msglen int
  1718  			for shift := uint(0); ; shift += 7 {
  1719  				if shift >= 64 {
  1720  					return ErrIntOverflowTypes
  1721  				}
  1722  				if iNdEx >= l {
  1723  					return io.ErrUnexpectedEOF
  1724  				}
  1725  				b := dAtA[iNdEx]
  1726  				iNdEx++
  1727  				msglen |= int(b&0x7F) << shift
  1728  				if b < 0x80 {
  1729  					break
  1730  				}
  1731  			}
  1732  			if msglen < 0 {
  1733  				return ErrInvalidLengthTypes
  1734  			}
  1735  			postIndex := iNdEx + msglen
  1736  			if postIndex < 0 {
  1737  				return ErrInvalidLengthTypes
  1738  			}
  1739  			if postIndex > l {
  1740  				return io.ErrUnexpectedEOF
  1741  			}
  1742  			if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1743  				return err
  1744  			}
  1745  			iNdEx = postIndex
  1746  		case 11:
  1747  			if wireType != 0 {
  1748  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeightConsensusParamsChanged", wireType)
  1749  			}
  1750  			m.LastHeightConsensusParamsChanged = 0
  1751  			for shift := uint(0); ; shift += 7 {
  1752  				if shift >= 64 {
  1753  					return ErrIntOverflowTypes
  1754  				}
  1755  				if iNdEx >= l {
  1756  					return io.ErrUnexpectedEOF
  1757  				}
  1758  				b := dAtA[iNdEx]
  1759  				iNdEx++
  1760  				m.LastHeightConsensusParamsChanged |= int64(b&0x7F) << shift
  1761  				if b < 0x80 {
  1762  					break
  1763  				}
  1764  			}
  1765  		case 12:
  1766  			if wireType != 2 {
  1767  				return fmt.Errorf("proto: wrong wireType = %d for field LastResultsHash", wireType)
  1768  			}
  1769  			var byteLen int
  1770  			for shift := uint(0); ; shift += 7 {
  1771  				if shift >= 64 {
  1772  					return ErrIntOverflowTypes
  1773  				}
  1774  				if iNdEx >= l {
  1775  					return io.ErrUnexpectedEOF
  1776  				}
  1777  				b := dAtA[iNdEx]
  1778  				iNdEx++
  1779  				byteLen |= int(b&0x7F) << shift
  1780  				if b < 0x80 {
  1781  					break
  1782  				}
  1783  			}
  1784  			if byteLen < 0 {
  1785  				return ErrInvalidLengthTypes
  1786  			}
  1787  			postIndex := iNdEx + byteLen
  1788  			if postIndex < 0 {
  1789  				return ErrInvalidLengthTypes
  1790  			}
  1791  			if postIndex > l {
  1792  				return io.ErrUnexpectedEOF
  1793  			}
  1794  			m.LastResultsHash = append(m.LastResultsHash[:0], dAtA[iNdEx:postIndex]...)
  1795  			if m.LastResultsHash == nil {
  1796  				m.LastResultsHash = []byte{}
  1797  			}
  1798  			iNdEx = postIndex
  1799  		case 13:
  1800  			if wireType != 2 {
  1801  				return fmt.Errorf("proto: wrong wireType = %d for field AppHash", wireType)
  1802  			}
  1803  			var byteLen int
  1804  			for shift := uint(0); ; shift += 7 {
  1805  				if shift >= 64 {
  1806  					return ErrIntOverflowTypes
  1807  				}
  1808  				if iNdEx >= l {
  1809  					return io.ErrUnexpectedEOF
  1810  				}
  1811  				b := dAtA[iNdEx]
  1812  				iNdEx++
  1813  				byteLen |= int(b&0x7F) << shift
  1814  				if b < 0x80 {
  1815  					break
  1816  				}
  1817  			}
  1818  			if byteLen < 0 {
  1819  				return ErrInvalidLengthTypes
  1820  			}
  1821  			postIndex := iNdEx + byteLen
  1822  			if postIndex < 0 {
  1823  				return ErrInvalidLengthTypes
  1824  			}
  1825  			if postIndex > l {
  1826  				return io.ErrUnexpectedEOF
  1827  			}
  1828  			m.AppHash = append(m.AppHash[:0], dAtA[iNdEx:postIndex]...)
  1829  			if m.AppHash == nil {
  1830  				m.AppHash = []byte{}
  1831  			}
  1832  			iNdEx = postIndex
  1833  		case 14:
  1834  			if wireType != 0 {
  1835  				return fmt.Errorf("proto: wrong wireType = %d for field InitialHeight", wireType)
  1836  			}
  1837  			m.InitialHeight = 0
  1838  			for shift := uint(0); ; shift += 7 {
  1839  				if shift >= 64 {
  1840  					return ErrIntOverflowTypes
  1841  				}
  1842  				if iNdEx >= l {
  1843  					return io.ErrUnexpectedEOF
  1844  				}
  1845  				b := dAtA[iNdEx]
  1846  				iNdEx++
  1847  				m.InitialHeight |= int64(b&0x7F) << shift
  1848  				if b < 0x80 {
  1849  					break
  1850  				}
  1851  			}
  1852  		default:
  1853  			iNdEx = preIndex
  1854  			skippy, err := skipTypes(dAtA[iNdEx:])
  1855  			if err != nil {
  1856  				return err
  1857  			}
  1858  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1859  				return ErrInvalidLengthTypes
  1860  			}
  1861  			if (iNdEx + skippy) > l {
  1862  				return io.ErrUnexpectedEOF
  1863  			}
  1864  			iNdEx += skippy
  1865  		}
  1866  	}
  1867  
  1868  	if iNdEx > l {
  1869  		return io.ErrUnexpectedEOF
  1870  	}
  1871  	return nil
  1872  }
  1873  func skipTypes(dAtA []byte) (n int, err error) {
  1874  	l := len(dAtA)
  1875  	iNdEx := 0
  1876  	depth := 0
  1877  	for iNdEx < l {
  1878  		var wire uint64
  1879  		for shift := uint(0); ; shift += 7 {
  1880  			if shift >= 64 {
  1881  				return 0, ErrIntOverflowTypes
  1882  			}
  1883  			if iNdEx >= l {
  1884  				return 0, io.ErrUnexpectedEOF
  1885  			}
  1886  			b := dAtA[iNdEx]
  1887  			iNdEx++
  1888  			wire |= (uint64(b) & 0x7F) << shift
  1889  			if b < 0x80 {
  1890  				break
  1891  			}
  1892  		}
  1893  		wireType := int(wire & 0x7)
  1894  		switch wireType {
  1895  		case 0:
  1896  			for shift := uint(0); ; shift += 7 {
  1897  				if shift >= 64 {
  1898  					return 0, ErrIntOverflowTypes
  1899  				}
  1900  				if iNdEx >= l {
  1901  					return 0, io.ErrUnexpectedEOF
  1902  				}
  1903  				iNdEx++
  1904  				if dAtA[iNdEx-1] < 0x80 {
  1905  					break
  1906  				}
  1907  			}
  1908  		case 1:
  1909  			iNdEx += 8
  1910  		case 2:
  1911  			var length int
  1912  			for shift := uint(0); ; shift += 7 {
  1913  				if shift >= 64 {
  1914  					return 0, ErrIntOverflowTypes
  1915  				}
  1916  				if iNdEx >= l {
  1917  					return 0, io.ErrUnexpectedEOF
  1918  				}
  1919  				b := dAtA[iNdEx]
  1920  				iNdEx++
  1921  				length |= (int(b) & 0x7F) << shift
  1922  				if b < 0x80 {
  1923  					break
  1924  				}
  1925  			}
  1926  			if length < 0 {
  1927  				return 0, ErrInvalidLengthTypes
  1928  			}
  1929  			iNdEx += length
  1930  		case 3:
  1931  			depth++
  1932  		case 4:
  1933  			if depth == 0 {
  1934  				return 0, ErrUnexpectedEndOfGroupTypes
  1935  			}
  1936  			depth--
  1937  		case 5:
  1938  			iNdEx += 4
  1939  		default:
  1940  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1941  		}
  1942  		if iNdEx < 0 {
  1943  			return 0, ErrInvalidLengthTypes
  1944  		}
  1945  		if depth == 0 {
  1946  			return iNdEx, nil
  1947  		}
  1948  	}
  1949  	return 0, io.ErrUnexpectedEOF
  1950  }
  1951  
  1952  var (
  1953  	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
  1954  	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
  1955  	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
  1956  )