github.com/Oyster-zx/tendermint@v0.34.24-fork/abci/types/types.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/abci/types.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	_ "github.com/gogo/protobuf/types"
    12  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    13  	crypto "github.com/tendermint/tendermint/proto/tendermint/crypto"
    14  	types1 "github.com/tendermint/tendermint/proto/tendermint/types"
    15  	grpc "google.golang.org/grpc"
    16  	codes "google.golang.org/grpc/codes"
    17  	status "google.golang.org/grpc/status"
    18  	io "io"
    19  	math "math"
    20  	math_bits "math/bits"
    21  	time "time"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  var _ = time.Kitchen
    29  
    30  // This is a compile-time assertion to ensure that this generated file
    31  // is compatible with the proto package it is being compiled against.
    32  // A compilation error at this line likely means your copy of the
    33  // proto package needs to be updated.
    34  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    35  
    36  type CheckTxType int32
    37  
    38  const (
    39  	CheckTxType_New     CheckTxType = 0
    40  	CheckTxType_Recheck CheckTxType = 1
    41  )
    42  
    43  var CheckTxType_name = map[int32]string{
    44  	0: "NEW",
    45  	1: "RECHECK",
    46  }
    47  
    48  var CheckTxType_value = map[string]int32{
    49  	"NEW":     0,
    50  	"RECHECK": 1,
    51  }
    52  
    53  func (x CheckTxType) String() string {
    54  	return proto.EnumName(CheckTxType_name, int32(x))
    55  }
    56  
    57  func (CheckTxType) EnumDescriptor() ([]byte, []int) {
    58  	return fileDescriptor_252557cfdd89a31a, []int{0}
    59  }
    60  
    61  type EvidenceType int32
    62  
    63  const (
    64  	EvidenceType_UNKNOWN             EvidenceType = 0
    65  	EvidenceType_DUPLICATE_VOTE      EvidenceType = 1
    66  	EvidenceType_LIGHT_CLIENT_ATTACK EvidenceType = 2
    67  )
    68  
    69  var EvidenceType_name = map[int32]string{
    70  	0: "UNKNOWN",
    71  	1: "DUPLICATE_VOTE",
    72  	2: "LIGHT_CLIENT_ATTACK",
    73  }
    74  
    75  var EvidenceType_value = map[string]int32{
    76  	"UNKNOWN":             0,
    77  	"DUPLICATE_VOTE":      1,
    78  	"LIGHT_CLIENT_ATTACK": 2,
    79  }
    80  
    81  func (x EvidenceType) String() string {
    82  	return proto.EnumName(EvidenceType_name, int32(x))
    83  }
    84  
    85  func (EvidenceType) EnumDescriptor() ([]byte, []int) {
    86  	return fileDescriptor_252557cfdd89a31a, []int{1}
    87  }
    88  
    89  type ResponseOfferSnapshot_Result int32
    90  
    91  const (
    92  	ResponseOfferSnapshot_UNKNOWN       ResponseOfferSnapshot_Result = 0
    93  	ResponseOfferSnapshot_ACCEPT        ResponseOfferSnapshot_Result = 1
    94  	ResponseOfferSnapshot_ABORT         ResponseOfferSnapshot_Result = 2
    95  	ResponseOfferSnapshot_REJECT        ResponseOfferSnapshot_Result = 3
    96  	ResponseOfferSnapshot_REJECT_FORMAT ResponseOfferSnapshot_Result = 4
    97  	ResponseOfferSnapshot_REJECT_SENDER ResponseOfferSnapshot_Result = 5
    98  )
    99  
   100  var ResponseOfferSnapshot_Result_name = map[int32]string{
   101  	0: "UNKNOWN",
   102  	1: "ACCEPT",
   103  	2: "ABORT",
   104  	3: "REJECT",
   105  	4: "REJECT_FORMAT",
   106  	5: "REJECT_SENDER",
   107  }
   108  
   109  var ResponseOfferSnapshot_Result_value = map[string]int32{
   110  	"UNKNOWN":       0,
   111  	"ACCEPT":        1,
   112  	"ABORT":         2,
   113  	"REJECT":        3,
   114  	"REJECT_FORMAT": 4,
   115  	"REJECT_SENDER": 5,
   116  }
   117  
   118  func (x ResponseOfferSnapshot_Result) String() string {
   119  	return proto.EnumName(ResponseOfferSnapshot_Result_name, int32(x))
   120  }
   121  
   122  func (ResponseOfferSnapshot_Result) EnumDescriptor() ([]byte, []int) {
   123  	return fileDescriptor_252557cfdd89a31a, []int{30, 0}
   124  }
   125  
   126  type ResponseApplySnapshotChunk_Result int32
   127  
   128  const (
   129  	ResponseApplySnapshotChunk_UNKNOWN         ResponseApplySnapshotChunk_Result = 0
   130  	ResponseApplySnapshotChunk_ACCEPT          ResponseApplySnapshotChunk_Result = 1
   131  	ResponseApplySnapshotChunk_ABORT           ResponseApplySnapshotChunk_Result = 2
   132  	ResponseApplySnapshotChunk_RETRY           ResponseApplySnapshotChunk_Result = 3
   133  	ResponseApplySnapshotChunk_RETRY_SNAPSHOT  ResponseApplySnapshotChunk_Result = 4
   134  	ResponseApplySnapshotChunk_REJECT_SNAPSHOT ResponseApplySnapshotChunk_Result = 5
   135  )
   136  
   137  var ResponseApplySnapshotChunk_Result_name = map[int32]string{
   138  	0: "UNKNOWN",
   139  	1: "ACCEPT",
   140  	2: "ABORT",
   141  	3: "RETRY",
   142  	4: "RETRY_SNAPSHOT",
   143  	5: "REJECT_SNAPSHOT",
   144  }
   145  
   146  var ResponseApplySnapshotChunk_Result_value = map[string]int32{
   147  	"UNKNOWN":         0,
   148  	"ACCEPT":          1,
   149  	"ABORT":           2,
   150  	"RETRY":           3,
   151  	"RETRY_SNAPSHOT":  4,
   152  	"REJECT_SNAPSHOT": 5,
   153  }
   154  
   155  func (x ResponseApplySnapshotChunk_Result) String() string {
   156  	return proto.EnumName(ResponseApplySnapshotChunk_Result_name, int32(x))
   157  }
   158  
   159  func (ResponseApplySnapshotChunk_Result) EnumDescriptor() ([]byte, []int) {
   160  	return fileDescriptor_252557cfdd89a31a, []int{32, 0}
   161  }
   162  
   163  type Request struct {
   164  	// Types that are valid to be assigned to Value:
   165  	//	*Request_Echo
   166  	//	*Request_Flush
   167  	//	*Request_Info
   168  	//	*Request_SetOption
   169  	//	*Request_InitChain
   170  	//	*Request_Query
   171  	//	*Request_BeginBlock
   172  	//	*Request_CheckTx
   173  	//	*Request_DeliverTx
   174  	//	*Request_EndBlock
   175  	//	*Request_Commit
   176  	//	*Request_ListSnapshots
   177  	//	*Request_OfferSnapshot
   178  	//	*Request_LoadSnapshotChunk
   179  	//	*Request_ApplySnapshotChunk
   180  	Value isRequest_Value `protobuf_oneof:"value"`
   181  }
   182  
   183  func (m *Request) Reset()         { *m = Request{} }
   184  func (m *Request) String() string { return proto.CompactTextString(m) }
   185  func (*Request) ProtoMessage()    {}
   186  func (*Request) Descriptor() ([]byte, []int) {
   187  	return fileDescriptor_252557cfdd89a31a, []int{0}
   188  }
   189  func (m *Request) XXX_Unmarshal(b []byte) error {
   190  	return m.Unmarshal(b)
   191  }
   192  func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   193  	if deterministic {
   194  		return xxx_messageInfo_Request.Marshal(b, m, deterministic)
   195  	} else {
   196  		b = b[:cap(b)]
   197  		n, err := m.MarshalToSizedBuffer(b)
   198  		if err != nil {
   199  			return nil, err
   200  		}
   201  		return b[:n], nil
   202  	}
   203  }
   204  func (m *Request) XXX_Merge(src proto.Message) {
   205  	xxx_messageInfo_Request.Merge(m, src)
   206  }
   207  func (m *Request) XXX_Size() int {
   208  	return m.Size()
   209  }
   210  func (m *Request) XXX_DiscardUnknown() {
   211  	xxx_messageInfo_Request.DiscardUnknown(m)
   212  }
   213  
   214  var xxx_messageInfo_Request proto.InternalMessageInfo
   215  
   216  type isRequest_Value interface {
   217  	isRequest_Value()
   218  	MarshalTo([]byte) (int, error)
   219  	Size() int
   220  }
   221  
   222  type Request_Echo struct {
   223  	Echo *RequestEcho `protobuf:"bytes,1,opt,name=echo,proto3,oneof" json:"echo,omitempty"`
   224  }
   225  type Request_Flush struct {
   226  	Flush *RequestFlush `protobuf:"bytes,2,opt,name=flush,proto3,oneof" json:"flush,omitempty"`
   227  }
   228  type Request_Info struct {
   229  	Info *RequestInfo `protobuf:"bytes,3,opt,name=info,proto3,oneof" json:"info,omitempty"`
   230  }
   231  type Request_SetOption struct {
   232  	SetOption *RequestSetOption `protobuf:"bytes,4,opt,name=set_option,json=setOption,proto3,oneof" json:"set_option,omitempty"`
   233  }
   234  type Request_InitChain struct {
   235  	InitChain *RequestInitChain `protobuf:"bytes,5,opt,name=init_chain,json=initChain,proto3,oneof" json:"init_chain,omitempty"`
   236  }
   237  type Request_Query struct {
   238  	Query *RequestQuery `protobuf:"bytes,6,opt,name=query,proto3,oneof" json:"query,omitempty"`
   239  }
   240  type Request_BeginBlock struct {
   241  	BeginBlock *RequestBeginBlock `protobuf:"bytes,7,opt,name=begin_block,json=beginBlock,proto3,oneof" json:"begin_block,omitempty"`
   242  }
   243  type Request_CheckTx struct {
   244  	CheckTx *RequestCheckTx `protobuf:"bytes,8,opt,name=check_tx,json=checkTx,proto3,oneof" json:"check_tx,omitempty"`
   245  }
   246  type Request_DeliverTx struct {
   247  	DeliverTx *RequestDeliverTx `protobuf:"bytes,9,opt,name=deliver_tx,json=deliverTx,proto3,oneof" json:"deliver_tx,omitempty"`
   248  }
   249  type Request_EndBlock struct {
   250  	EndBlock *RequestEndBlock `protobuf:"bytes,10,opt,name=end_block,json=endBlock,proto3,oneof" json:"end_block,omitempty"`
   251  }
   252  type Request_Commit struct {
   253  	Commit *RequestCommit `protobuf:"bytes,11,opt,name=commit,proto3,oneof" json:"commit,omitempty"`
   254  }
   255  type Request_ListSnapshots struct {
   256  	ListSnapshots *RequestListSnapshots `protobuf:"bytes,12,opt,name=list_snapshots,json=listSnapshots,proto3,oneof" json:"list_snapshots,omitempty"`
   257  }
   258  type Request_OfferSnapshot struct {
   259  	OfferSnapshot *RequestOfferSnapshot `protobuf:"bytes,13,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof" json:"offer_snapshot,omitempty"`
   260  }
   261  type Request_LoadSnapshotChunk struct {
   262  	LoadSnapshotChunk *RequestLoadSnapshotChunk `protobuf:"bytes,14,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof" json:"load_snapshot_chunk,omitempty"`
   263  }
   264  type Request_ApplySnapshotChunk struct {
   265  	ApplySnapshotChunk *RequestApplySnapshotChunk `protobuf:"bytes,15,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof" json:"apply_snapshot_chunk,omitempty"`
   266  }
   267  
   268  func (*Request_Echo) isRequest_Value()               {}
   269  func (*Request_Flush) isRequest_Value()              {}
   270  func (*Request_Info) isRequest_Value()               {}
   271  func (*Request_SetOption) isRequest_Value()          {}
   272  func (*Request_InitChain) isRequest_Value()          {}
   273  func (*Request_Query) isRequest_Value()              {}
   274  func (*Request_BeginBlock) isRequest_Value()         {}
   275  func (*Request_CheckTx) isRequest_Value()            {}
   276  func (*Request_DeliverTx) isRequest_Value()          {}
   277  func (*Request_EndBlock) isRequest_Value()           {}
   278  func (*Request_Commit) isRequest_Value()             {}
   279  func (*Request_ListSnapshots) isRequest_Value()      {}
   280  func (*Request_OfferSnapshot) isRequest_Value()      {}
   281  func (*Request_LoadSnapshotChunk) isRequest_Value()  {}
   282  func (*Request_ApplySnapshotChunk) isRequest_Value() {}
   283  
   284  func (m *Request) GetValue() isRequest_Value {
   285  	if m != nil {
   286  		return m.Value
   287  	}
   288  	return nil
   289  }
   290  
   291  func (m *Request) GetEcho() *RequestEcho {
   292  	if x, ok := m.GetValue().(*Request_Echo); ok {
   293  		return x.Echo
   294  	}
   295  	return nil
   296  }
   297  
   298  func (m *Request) GetFlush() *RequestFlush {
   299  	if x, ok := m.GetValue().(*Request_Flush); ok {
   300  		return x.Flush
   301  	}
   302  	return nil
   303  }
   304  
   305  func (m *Request) GetInfo() *RequestInfo {
   306  	if x, ok := m.GetValue().(*Request_Info); ok {
   307  		return x.Info
   308  	}
   309  	return nil
   310  }
   311  
   312  func (m *Request) GetSetOption() *RequestSetOption {
   313  	if x, ok := m.GetValue().(*Request_SetOption); ok {
   314  		return x.SetOption
   315  	}
   316  	return nil
   317  }
   318  
   319  func (m *Request) GetInitChain() *RequestInitChain {
   320  	if x, ok := m.GetValue().(*Request_InitChain); ok {
   321  		return x.InitChain
   322  	}
   323  	return nil
   324  }
   325  
   326  func (m *Request) GetQuery() *RequestQuery {
   327  	if x, ok := m.GetValue().(*Request_Query); ok {
   328  		return x.Query
   329  	}
   330  	return nil
   331  }
   332  
   333  func (m *Request) GetBeginBlock() *RequestBeginBlock {
   334  	if x, ok := m.GetValue().(*Request_BeginBlock); ok {
   335  		return x.BeginBlock
   336  	}
   337  	return nil
   338  }
   339  
   340  func (m *Request) GetCheckTx() *RequestCheckTx {
   341  	if x, ok := m.GetValue().(*Request_CheckTx); ok {
   342  		return x.CheckTx
   343  	}
   344  	return nil
   345  }
   346  
   347  func (m *Request) GetDeliverTx() *RequestDeliverTx {
   348  	if x, ok := m.GetValue().(*Request_DeliverTx); ok {
   349  		return x.DeliverTx
   350  	}
   351  	return nil
   352  }
   353  
   354  func (m *Request) GetEndBlock() *RequestEndBlock {
   355  	if x, ok := m.GetValue().(*Request_EndBlock); ok {
   356  		return x.EndBlock
   357  	}
   358  	return nil
   359  }
   360  
   361  func (m *Request) GetCommit() *RequestCommit {
   362  	if x, ok := m.GetValue().(*Request_Commit); ok {
   363  		return x.Commit
   364  	}
   365  	return nil
   366  }
   367  
   368  func (m *Request) GetListSnapshots() *RequestListSnapshots {
   369  	if x, ok := m.GetValue().(*Request_ListSnapshots); ok {
   370  		return x.ListSnapshots
   371  	}
   372  	return nil
   373  }
   374  
   375  func (m *Request) GetOfferSnapshot() *RequestOfferSnapshot {
   376  	if x, ok := m.GetValue().(*Request_OfferSnapshot); ok {
   377  		return x.OfferSnapshot
   378  	}
   379  	return nil
   380  }
   381  
   382  func (m *Request) GetLoadSnapshotChunk() *RequestLoadSnapshotChunk {
   383  	if x, ok := m.GetValue().(*Request_LoadSnapshotChunk); ok {
   384  		return x.LoadSnapshotChunk
   385  	}
   386  	return nil
   387  }
   388  
   389  func (m *Request) GetApplySnapshotChunk() *RequestApplySnapshotChunk {
   390  	if x, ok := m.GetValue().(*Request_ApplySnapshotChunk); ok {
   391  		return x.ApplySnapshotChunk
   392  	}
   393  	return nil
   394  }
   395  
   396  // XXX_OneofWrappers is for the internal use of the proto package.
   397  func (*Request) XXX_OneofWrappers() []interface{} {
   398  	return []interface{}{
   399  		(*Request_Echo)(nil),
   400  		(*Request_Flush)(nil),
   401  		(*Request_Info)(nil),
   402  		(*Request_SetOption)(nil),
   403  		(*Request_InitChain)(nil),
   404  		(*Request_Query)(nil),
   405  		(*Request_BeginBlock)(nil),
   406  		(*Request_CheckTx)(nil),
   407  		(*Request_DeliverTx)(nil),
   408  		(*Request_EndBlock)(nil),
   409  		(*Request_Commit)(nil),
   410  		(*Request_ListSnapshots)(nil),
   411  		(*Request_OfferSnapshot)(nil),
   412  		(*Request_LoadSnapshotChunk)(nil),
   413  		(*Request_ApplySnapshotChunk)(nil),
   414  	}
   415  }
   416  
   417  type RequestEcho struct {
   418  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
   419  }
   420  
   421  func (m *RequestEcho) Reset()         { *m = RequestEcho{} }
   422  func (m *RequestEcho) String() string { return proto.CompactTextString(m) }
   423  func (*RequestEcho) ProtoMessage()    {}
   424  func (*RequestEcho) Descriptor() ([]byte, []int) {
   425  	return fileDescriptor_252557cfdd89a31a, []int{1}
   426  }
   427  func (m *RequestEcho) XXX_Unmarshal(b []byte) error {
   428  	return m.Unmarshal(b)
   429  }
   430  func (m *RequestEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   431  	if deterministic {
   432  		return xxx_messageInfo_RequestEcho.Marshal(b, m, deterministic)
   433  	} else {
   434  		b = b[:cap(b)]
   435  		n, err := m.MarshalToSizedBuffer(b)
   436  		if err != nil {
   437  			return nil, err
   438  		}
   439  		return b[:n], nil
   440  	}
   441  }
   442  func (m *RequestEcho) XXX_Merge(src proto.Message) {
   443  	xxx_messageInfo_RequestEcho.Merge(m, src)
   444  }
   445  func (m *RequestEcho) XXX_Size() int {
   446  	return m.Size()
   447  }
   448  func (m *RequestEcho) XXX_DiscardUnknown() {
   449  	xxx_messageInfo_RequestEcho.DiscardUnknown(m)
   450  }
   451  
   452  var xxx_messageInfo_RequestEcho proto.InternalMessageInfo
   453  
   454  func (m *RequestEcho) GetMessage() string {
   455  	if m != nil {
   456  		return m.Message
   457  	}
   458  	return ""
   459  }
   460  
   461  type RequestFlush struct {
   462  }
   463  
   464  func (m *RequestFlush) Reset()         { *m = RequestFlush{} }
   465  func (m *RequestFlush) String() string { return proto.CompactTextString(m) }
   466  func (*RequestFlush) ProtoMessage()    {}
   467  func (*RequestFlush) Descriptor() ([]byte, []int) {
   468  	return fileDescriptor_252557cfdd89a31a, []int{2}
   469  }
   470  func (m *RequestFlush) XXX_Unmarshal(b []byte) error {
   471  	return m.Unmarshal(b)
   472  }
   473  func (m *RequestFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   474  	if deterministic {
   475  		return xxx_messageInfo_RequestFlush.Marshal(b, m, deterministic)
   476  	} else {
   477  		b = b[:cap(b)]
   478  		n, err := m.MarshalToSizedBuffer(b)
   479  		if err != nil {
   480  			return nil, err
   481  		}
   482  		return b[:n], nil
   483  	}
   484  }
   485  func (m *RequestFlush) XXX_Merge(src proto.Message) {
   486  	xxx_messageInfo_RequestFlush.Merge(m, src)
   487  }
   488  func (m *RequestFlush) XXX_Size() int {
   489  	return m.Size()
   490  }
   491  func (m *RequestFlush) XXX_DiscardUnknown() {
   492  	xxx_messageInfo_RequestFlush.DiscardUnknown(m)
   493  }
   494  
   495  var xxx_messageInfo_RequestFlush proto.InternalMessageInfo
   496  
   497  type RequestInfo struct {
   498  	Version      string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
   499  	BlockVersion uint64 `protobuf:"varint,2,opt,name=block_version,json=blockVersion,proto3" json:"block_version,omitempty"`
   500  	P2PVersion   uint64 `protobuf:"varint,3,opt,name=p2p_version,json=p2pVersion,proto3" json:"p2p_version,omitempty"`
   501  }
   502  
   503  func (m *RequestInfo) Reset()         { *m = RequestInfo{} }
   504  func (m *RequestInfo) String() string { return proto.CompactTextString(m) }
   505  func (*RequestInfo) ProtoMessage()    {}
   506  func (*RequestInfo) Descriptor() ([]byte, []int) {
   507  	return fileDescriptor_252557cfdd89a31a, []int{3}
   508  }
   509  func (m *RequestInfo) XXX_Unmarshal(b []byte) error {
   510  	return m.Unmarshal(b)
   511  }
   512  func (m *RequestInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   513  	if deterministic {
   514  		return xxx_messageInfo_RequestInfo.Marshal(b, m, deterministic)
   515  	} else {
   516  		b = b[:cap(b)]
   517  		n, err := m.MarshalToSizedBuffer(b)
   518  		if err != nil {
   519  			return nil, err
   520  		}
   521  		return b[:n], nil
   522  	}
   523  }
   524  func (m *RequestInfo) XXX_Merge(src proto.Message) {
   525  	xxx_messageInfo_RequestInfo.Merge(m, src)
   526  }
   527  func (m *RequestInfo) XXX_Size() int {
   528  	return m.Size()
   529  }
   530  func (m *RequestInfo) XXX_DiscardUnknown() {
   531  	xxx_messageInfo_RequestInfo.DiscardUnknown(m)
   532  }
   533  
   534  var xxx_messageInfo_RequestInfo proto.InternalMessageInfo
   535  
   536  func (m *RequestInfo) GetVersion() string {
   537  	if m != nil {
   538  		return m.Version
   539  	}
   540  	return ""
   541  }
   542  
   543  func (m *RequestInfo) GetBlockVersion() uint64 {
   544  	if m != nil {
   545  		return m.BlockVersion
   546  	}
   547  	return 0
   548  }
   549  
   550  func (m *RequestInfo) GetP2PVersion() uint64 {
   551  	if m != nil {
   552  		return m.P2PVersion
   553  	}
   554  	return 0
   555  }
   556  
   557  // nondeterministic
   558  type RequestSetOption struct {
   559  	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   560  	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
   561  }
   562  
   563  func (m *RequestSetOption) Reset()         { *m = RequestSetOption{} }
   564  func (m *RequestSetOption) String() string { return proto.CompactTextString(m) }
   565  func (*RequestSetOption) ProtoMessage()    {}
   566  func (*RequestSetOption) Descriptor() ([]byte, []int) {
   567  	return fileDescriptor_252557cfdd89a31a, []int{4}
   568  }
   569  func (m *RequestSetOption) XXX_Unmarshal(b []byte) error {
   570  	return m.Unmarshal(b)
   571  }
   572  func (m *RequestSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   573  	if deterministic {
   574  		return xxx_messageInfo_RequestSetOption.Marshal(b, m, deterministic)
   575  	} else {
   576  		b = b[:cap(b)]
   577  		n, err := m.MarshalToSizedBuffer(b)
   578  		if err != nil {
   579  			return nil, err
   580  		}
   581  		return b[:n], nil
   582  	}
   583  }
   584  func (m *RequestSetOption) XXX_Merge(src proto.Message) {
   585  	xxx_messageInfo_RequestSetOption.Merge(m, src)
   586  }
   587  func (m *RequestSetOption) XXX_Size() int {
   588  	return m.Size()
   589  }
   590  func (m *RequestSetOption) XXX_DiscardUnknown() {
   591  	xxx_messageInfo_RequestSetOption.DiscardUnknown(m)
   592  }
   593  
   594  var xxx_messageInfo_RequestSetOption proto.InternalMessageInfo
   595  
   596  func (m *RequestSetOption) GetKey() string {
   597  	if m != nil {
   598  		return m.Key
   599  	}
   600  	return ""
   601  }
   602  
   603  func (m *RequestSetOption) GetValue() string {
   604  	if m != nil {
   605  		return m.Value
   606  	}
   607  	return ""
   608  }
   609  
   610  type RequestInitChain struct {
   611  	Time            time.Time         `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"`
   612  	ChainId         string            `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
   613  	ConsensusParams *ConsensusParams  `protobuf:"bytes,3,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"`
   614  	Validators      []ValidatorUpdate `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"`
   615  	AppStateBytes   []byte            `protobuf:"bytes,5,opt,name=app_state_bytes,json=appStateBytes,proto3" json:"app_state_bytes,omitempty"`
   616  	InitialHeight   int64             `protobuf:"varint,6,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"`
   617  }
   618  
   619  func (m *RequestInitChain) Reset()         { *m = RequestInitChain{} }
   620  func (m *RequestInitChain) String() string { return proto.CompactTextString(m) }
   621  func (*RequestInitChain) ProtoMessage()    {}
   622  func (*RequestInitChain) Descriptor() ([]byte, []int) {
   623  	return fileDescriptor_252557cfdd89a31a, []int{5}
   624  }
   625  func (m *RequestInitChain) XXX_Unmarshal(b []byte) error {
   626  	return m.Unmarshal(b)
   627  }
   628  func (m *RequestInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   629  	if deterministic {
   630  		return xxx_messageInfo_RequestInitChain.Marshal(b, m, deterministic)
   631  	} else {
   632  		b = b[:cap(b)]
   633  		n, err := m.MarshalToSizedBuffer(b)
   634  		if err != nil {
   635  			return nil, err
   636  		}
   637  		return b[:n], nil
   638  	}
   639  }
   640  func (m *RequestInitChain) XXX_Merge(src proto.Message) {
   641  	xxx_messageInfo_RequestInitChain.Merge(m, src)
   642  }
   643  func (m *RequestInitChain) XXX_Size() int {
   644  	return m.Size()
   645  }
   646  func (m *RequestInitChain) XXX_DiscardUnknown() {
   647  	xxx_messageInfo_RequestInitChain.DiscardUnknown(m)
   648  }
   649  
   650  var xxx_messageInfo_RequestInitChain proto.InternalMessageInfo
   651  
   652  func (m *RequestInitChain) GetTime() time.Time {
   653  	if m != nil {
   654  		return m.Time
   655  	}
   656  	return time.Time{}
   657  }
   658  
   659  func (m *RequestInitChain) GetChainId() string {
   660  	if m != nil {
   661  		return m.ChainId
   662  	}
   663  	return ""
   664  }
   665  
   666  func (m *RequestInitChain) GetConsensusParams() *ConsensusParams {
   667  	if m != nil {
   668  		return m.ConsensusParams
   669  	}
   670  	return nil
   671  }
   672  
   673  func (m *RequestInitChain) GetValidators() []ValidatorUpdate {
   674  	if m != nil {
   675  		return m.Validators
   676  	}
   677  	return nil
   678  }
   679  
   680  func (m *RequestInitChain) GetAppStateBytes() []byte {
   681  	if m != nil {
   682  		return m.AppStateBytes
   683  	}
   684  	return nil
   685  }
   686  
   687  func (m *RequestInitChain) GetInitialHeight() int64 {
   688  	if m != nil {
   689  		return m.InitialHeight
   690  	}
   691  	return 0
   692  }
   693  
   694  type RequestQuery struct {
   695  	Data   []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
   696  	Path   string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
   697  	Height int64  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
   698  	Prove  bool   `protobuf:"varint,4,opt,name=prove,proto3" json:"prove,omitempty"`
   699  }
   700  
   701  func (m *RequestQuery) Reset()         { *m = RequestQuery{} }
   702  func (m *RequestQuery) String() string { return proto.CompactTextString(m) }
   703  func (*RequestQuery) ProtoMessage()    {}
   704  func (*RequestQuery) Descriptor() ([]byte, []int) {
   705  	return fileDescriptor_252557cfdd89a31a, []int{6}
   706  }
   707  func (m *RequestQuery) XXX_Unmarshal(b []byte) error {
   708  	return m.Unmarshal(b)
   709  }
   710  func (m *RequestQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   711  	if deterministic {
   712  		return xxx_messageInfo_RequestQuery.Marshal(b, m, deterministic)
   713  	} else {
   714  		b = b[:cap(b)]
   715  		n, err := m.MarshalToSizedBuffer(b)
   716  		if err != nil {
   717  			return nil, err
   718  		}
   719  		return b[:n], nil
   720  	}
   721  }
   722  func (m *RequestQuery) XXX_Merge(src proto.Message) {
   723  	xxx_messageInfo_RequestQuery.Merge(m, src)
   724  }
   725  func (m *RequestQuery) XXX_Size() int {
   726  	return m.Size()
   727  }
   728  func (m *RequestQuery) XXX_DiscardUnknown() {
   729  	xxx_messageInfo_RequestQuery.DiscardUnknown(m)
   730  }
   731  
   732  var xxx_messageInfo_RequestQuery proto.InternalMessageInfo
   733  
   734  func (m *RequestQuery) GetData() []byte {
   735  	if m != nil {
   736  		return m.Data
   737  	}
   738  	return nil
   739  }
   740  
   741  func (m *RequestQuery) GetPath() string {
   742  	if m != nil {
   743  		return m.Path
   744  	}
   745  	return ""
   746  }
   747  
   748  func (m *RequestQuery) GetHeight() int64 {
   749  	if m != nil {
   750  		return m.Height
   751  	}
   752  	return 0
   753  }
   754  
   755  func (m *RequestQuery) GetProve() bool {
   756  	if m != nil {
   757  		return m.Prove
   758  	}
   759  	return false
   760  }
   761  
   762  type RequestBeginBlock struct {
   763  	Hash                []byte         `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
   764  	Header              types1.Header  `protobuf:"bytes,2,opt,name=header,proto3" json:"header"`
   765  	LastCommitInfo      LastCommitInfo `protobuf:"bytes,3,opt,name=last_commit_info,json=lastCommitInfo,proto3" json:"last_commit_info"`
   766  	ByzantineValidators []Evidence     `protobuf:"bytes,4,rep,name=byzantine_validators,json=byzantineValidators,proto3" json:"byzantine_validators"`
   767  }
   768  
   769  func (m *RequestBeginBlock) Reset()         { *m = RequestBeginBlock{} }
   770  func (m *RequestBeginBlock) String() string { return proto.CompactTextString(m) }
   771  func (*RequestBeginBlock) ProtoMessage()    {}
   772  func (*RequestBeginBlock) Descriptor() ([]byte, []int) {
   773  	return fileDescriptor_252557cfdd89a31a, []int{7}
   774  }
   775  func (m *RequestBeginBlock) XXX_Unmarshal(b []byte) error {
   776  	return m.Unmarshal(b)
   777  }
   778  func (m *RequestBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   779  	if deterministic {
   780  		return xxx_messageInfo_RequestBeginBlock.Marshal(b, m, deterministic)
   781  	} else {
   782  		b = b[:cap(b)]
   783  		n, err := m.MarshalToSizedBuffer(b)
   784  		if err != nil {
   785  			return nil, err
   786  		}
   787  		return b[:n], nil
   788  	}
   789  }
   790  func (m *RequestBeginBlock) XXX_Merge(src proto.Message) {
   791  	xxx_messageInfo_RequestBeginBlock.Merge(m, src)
   792  }
   793  func (m *RequestBeginBlock) XXX_Size() int {
   794  	return m.Size()
   795  }
   796  func (m *RequestBeginBlock) XXX_DiscardUnknown() {
   797  	xxx_messageInfo_RequestBeginBlock.DiscardUnknown(m)
   798  }
   799  
   800  var xxx_messageInfo_RequestBeginBlock proto.InternalMessageInfo
   801  
   802  func (m *RequestBeginBlock) GetHash() []byte {
   803  	if m != nil {
   804  		return m.Hash
   805  	}
   806  	return nil
   807  }
   808  
   809  func (m *RequestBeginBlock) GetHeader() types1.Header {
   810  	if m != nil {
   811  		return m.Header
   812  	}
   813  	return types1.Header{}
   814  }
   815  
   816  func (m *RequestBeginBlock) GetLastCommitInfo() LastCommitInfo {
   817  	if m != nil {
   818  		return m.LastCommitInfo
   819  	}
   820  	return LastCommitInfo{}
   821  }
   822  
   823  func (m *RequestBeginBlock) GetByzantineValidators() []Evidence {
   824  	if m != nil {
   825  		return m.ByzantineValidators
   826  	}
   827  	return nil
   828  }
   829  
   830  type RequestCheckTx struct {
   831  	Tx   []byte      `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
   832  	Type CheckTxType `protobuf:"varint,2,opt,name=type,proto3,enum=tendermint.abci.CheckTxType" json:"type,omitempty"`
   833  }
   834  
   835  func (m *RequestCheckTx) Reset()         { *m = RequestCheckTx{} }
   836  func (m *RequestCheckTx) String() string { return proto.CompactTextString(m) }
   837  func (*RequestCheckTx) ProtoMessage()    {}
   838  func (*RequestCheckTx) Descriptor() ([]byte, []int) {
   839  	return fileDescriptor_252557cfdd89a31a, []int{8}
   840  }
   841  func (m *RequestCheckTx) XXX_Unmarshal(b []byte) error {
   842  	return m.Unmarshal(b)
   843  }
   844  func (m *RequestCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   845  	if deterministic {
   846  		return xxx_messageInfo_RequestCheckTx.Marshal(b, m, deterministic)
   847  	} else {
   848  		b = b[:cap(b)]
   849  		n, err := m.MarshalToSizedBuffer(b)
   850  		if err != nil {
   851  			return nil, err
   852  		}
   853  		return b[:n], nil
   854  	}
   855  }
   856  func (m *RequestCheckTx) XXX_Merge(src proto.Message) {
   857  	xxx_messageInfo_RequestCheckTx.Merge(m, src)
   858  }
   859  func (m *RequestCheckTx) XXX_Size() int {
   860  	return m.Size()
   861  }
   862  func (m *RequestCheckTx) XXX_DiscardUnknown() {
   863  	xxx_messageInfo_RequestCheckTx.DiscardUnknown(m)
   864  }
   865  
   866  var xxx_messageInfo_RequestCheckTx proto.InternalMessageInfo
   867  
   868  func (m *RequestCheckTx) GetTx() []byte {
   869  	if m != nil {
   870  		return m.Tx
   871  	}
   872  	return nil
   873  }
   874  
   875  func (m *RequestCheckTx) GetType() CheckTxType {
   876  	if m != nil {
   877  		return m.Type
   878  	}
   879  	return CheckTxType_New
   880  }
   881  
   882  type RequestDeliverTx struct {
   883  	Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
   884  }
   885  
   886  func (m *RequestDeliverTx) Reset()         { *m = RequestDeliverTx{} }
   887  func (m *RequestDeliverTx) String() string { return proto.CompactTextString(m) }
   888  func (*RequestDeliverTx) ProtoMessage()    {}
   889  func (*RequestDeliverTx) Descriptor() ([]byte, []int) {
   890  	return fileDescriptor_252557cfdd89a31a, []int{9}
   891  }
   892  func (m *RequestDeliverTx) XXX_Unmarshal(b []byte) error {
   893  	return m.Unmarshal(b)
   894  }
   895  func (m *RequestDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   896  	if deterministic {
   897  		return xxx_messageInfo_RequestDeliverTx.Marshal(b, m, deterministic)
   898  	} else {
   899  		b = b[:cap(b)]
   900  		n, err := m.MarshalToSizedBuffer(b)
   901  		if err != nil {
   902  			return nil, err
   903  		}
   904  		return b[:n], nil
   905  	}
   906  }
   907  func (m *RequestDeliverTx) XXX_Merge(src proto.Message) {
   908  	xxx_messageInfo_RequestDeliverTx.Merge(m, src)
   909  }
   910  func (m *RequestDeliverTx) XXX_Size() int {
   911  	return m.Size()
   912  }
   913  func (m *RequestDeliverTx) XXX_DiscardUnknown() {
   914  	xxx_messageInfo_RequestDeliverTx.DiscardUnknown(m)
   915  }
   916  
   917  var xxx_messageInfo_RequestDeliverTx proto.InternalMessageInfo
   918  
   919  func (m *RequestDeliverTx) GetTx() []byte {
   920  	if m != nil {
   921  		return m.Tx
   922  	}
   923  	return nil
   924  }
   925  
   926  type RequestEndBlock struct {
   927  	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   928  }
   929  
   930  func (m *RequestEndBlock) Reset()         { *m = RequestEndBlock{} }
   931  func (m *RequestEndBlock) String() string { return proto.CompactTextString(m) }
   932  func (*RequestEndBlock) ProtoMessage()    {}
   933  func (*RequestEndBlock) Descriptor() ([]byte, []int) {
   934  	return fileDescriptor_252557cfdd89a31a, []int{10}
   935  }
   936  func (m *RequestEndBlock) XXX_Unmarshal(b []byte) error {
   937  	return m.Unmarshal(b)
   938  }
   939  func (m *RequestEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   940  	if deterministic {
   941  		return xxx_messageInfo_RequestEndBlock.Marshal(b, m, deterministic)
   942  	} else {
   943  		b = b[:cap(b)]
   944  		n, err := m.MarshalToSizedBuffer(b)
   945  		if err != nil {
   946  			return nil, err
   947  		}
   948  		return b[:n], nil
   949  	}
   950  }
   951  func (m *RequestEndBlock) XXX_Merge(src proto.Message) {
   952  	xxx_messageInfo_RequestEndBlock.Merge(m, src)
   953  }
   954  func (m *RequestEndBlock) XXX_Size() int {
   955  	return m.Size()
   956  }
   957  func (m *RequestEndBlock) XXX_DiscardUnknown() {
   958  	xxx_messageInfo_RequestEndBlock.DiscardUnknown(m)
   959  }
   960  
   961  var xxx_messageInfo_RequestEndBlock proto.InternalMessageInfo
   962  
   963  func (m *RequestEndBlock) GetHeight() int64 {
   964  	if m != nil {
   965  		return m.Height
   966  	}
   967  	return 0
   968  }
   969  
   970  type RequestCommit struct {
   971  }
   972  
   973  func (m *RequestCommit) Reset()         { *m = RequestCommit{} }
   974  func (m *RequestCommit) String() string { return proto.CompactTextString(m) }
   975  func (*RequestCommit) ProtoMessage()    {}
   976  func (*RequestCommit) Descriptor() ([]byte, []int) {
   977  	return fileDescriptor_252557cfdd89a31a, []int{11}
   978  }
   979  func (m *RequestCommit) XXX_Unmarshal(b []byte) error {
   980  	return m.Unmarshal(b)
   981  }
   982  func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   983  	if deterministic {
   984  		return xxx_messageInfo_RequestCommit.Marshal(b, m, deterministic)
   985  	} else {
   986  		b = b[:cap(b)]
   987  		n, err := m.MarshalToSizedBuffer(b)
   988  		if err != nil {
   989  			return nil, err
   990  		}
   991  		return b[:n], nil
   992  	}
   993  }
   994  func (m *RequestCommit) XXX_Merge(src proto.Message) {
   995  	xxx_messageInfo_RequestCommit.Merge(m, src)
   996  }
   997  func (m *RequestCommit) XXX_Size() int {
   998  	return m.Size()
   999  }
  1000  func (m *RequestCommit) XXX_DiscardUnknown() {
  1001  	xxx_messageInfo_RequestCommit.DiscardUnknown(m)
  1002  }
  1003  
  1004  var xxx_messageInfo_RequestCommit proto.InternalMessageInfo
  1005  
  1006  // lists available snapshots
  1007  type RequestListSnapshots struct {
  1008  }
  1009  
  1010  func (m *RequestListSnapshots) Reset()         { *m = RequestListSnapshots{} }
  1011  func (m *RequestListSnapshots) String() string { return proto.CompactTextString(m) }
  1012  func (*RequestListSnapshots) ProtoMessage()    {}
  1013  func (*RequestListSnapshots) Descriptor() ([]byte, []int) {
  1014  	return fileDescriptor_252557cfdd89a31a, []int{12}
  1015  }
  1016  func (m *RequestListSnapshots) XXX_Unmarshal(b []byte) error {
  1017  	return m.Unmarshal(b)
  1018  }
  1019  func (m *RequestListSnapshots) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1020  	if deterministic {
  1021  		return xxx_messageInfo_RequestListSnapshots.Marshal(b, m, deterministic)
  1022  	} else {
  1023  		b = b[:cap(b)]
  1024  		n, err := m.MarshalToSizedBuffer(b)
  1025  		if err != nil {
  1026  			return nil, err
  1027  		}
  1028  		return b[:n], nil
  1029  	}
  1030  }
  1031  func (m *RequestListSnapshots) XXX_Merge(src proto.Message) {
  1032  	xxx_messageInfo_RequestListSnapshots.Merge(m, src)
  1033  }
  1034  func (m *RequestListSnapshots) XXX_Size() int {
  1035  	return m.Size()
  1036  }
  1037  func (m *RequestListSnapshots) XXX_DiscardUnknown() {
  1038  	xxx_messageInfo_RequestListSnapshots.DiscardUnknown(m)
  1039  }
  1040  
  1041  var xxx_messageInfo_RequestListSnapshots proto.InternalMessageInfo
  1042  
  1043  // offers a snapshot to the application
  1044  type RequestOfferSnapshot struct {
  1045  	Snapshot *Snapshot `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
  1046  	AppHash  []byte    `protobuf:"bytes,2,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
  1047  }
  1048  
  1049  func (m *RequestOfferSnapshot) Reset()         { *m = RequestOfferSnapshot{} }
  1050  func (m *RequestOfferSnapshot) String() string { return proto.CompactTextString(m) }
  1051  func (*RequestOfferSnapshot) ProtoMessage()    {}
  1052  func (*RequestOfferSnapshot) Descriptor() ([]byte, []int) {
  1053  	return fileDescriptor_252557cfdd89a31a, []int{13}
  1054  }
  1055  func (m *RequestOfferSnapshot) XXX_Unmarshal(b []byte) error {
  1056  	return m.Unmarshal(b)
  1057  }
  1058  func (m *RequestOfferSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1059  	if deterministic {
  1060  		return xxx_messageInfo_RequestOfferSnapshot.Marshal(b, m, deterministic)
  1061  	} else {
  1062  		b = b[:cap(b)]
  1063  		n, err := m.MarshalToSizedBuffer(b)
  1064  		if err != nil {
  1065  			return nil, err
  1066  		}
  1067  		return b[:n], nil
  1068  	}
  1069  }
  1070  func (m *RequestOfferSnapshot) XXX_Merge(src proto.Message) {
  1071  	xxx_messageInfo_RequestOfferSnapshot.Merge(m, src)
  1072  }
  1073  func (m *RequestOfferSnapshot) XXX_Size() int {
  1074  	return m.Size()
  1075  }
  1076  func (m *RequestOfferSnapshot) XXX_DiscardUnknown() {
  1077  	xxx_messageInfo_RequestOfferSnapshot.DiscardUnknown(m)
  1078  }
  1079  
  1080  var xxx_messageInfo_RequestOfferSnapshot proto.InternalMessageInfo
  1081  
  1082  func (m *RequestOfferSnapshot) GetSnapshot() *Snapshot {
  1083  	if m != nil {
  1084  		return m.Snapshot
  1085  	}
  1086  	return nil
  1087  }
  1088  
  1089  func (m *RequestOfferSnapshot) GetAppHash() []byte {
  1090  	if m != nil {
  1091  		return m.AppHash
  1092  	}
  1093  	return nil
  1094  }
  1095  
  1096  // loads a snapshot chunk
  1097  type RequestLoadSnapshotChunk struct {
  1098  	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  1099  	Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
  1100  	Chunk  uint32 `protobuf:"varint,3,opt,name=chunk,proto3" json:"chunk,omitempty"`
  1101  }
  1102  
  1103  func (m *RequestLoadSnapshotChunk) Reset()         { *m = RequestLoadSnapshotChunk{} }
  1104  func (m *RequestLoadSnapshotChunk) String() string { return proto.CompactTextString(m) }
  1105  func (*RequestLoadSnapshotChunk) ProtoMessage()    {}
  1106  func (*RequestLoadSnapshotChunk) Descriptor() ([]byte, []int) {
  1107  	return fileDescriptor_252557cfdd89a31a, []int{14}
  1108  }
  1109  func (m *RequestLoadSnapshotChunk) XXX_Unmarshal(b []byte) error {
  1110  	return m.Unmarshal(b)
  1111  }
  1112  func (m *RequestLoadSnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1113  	if deterministic {
  1114  		return xxx_messageInfo_RequestLoadSnapshotChunk.Marshal(b, m, deterministic)
  1115  	} else {
  1116  		b = b[:cap(b)]
  1117  		n, err := m.MarshalToSizedBuffer(b)
  1118  		if err != nil {
  1119  			return nil, err
  1120  		}
  1121  		return b[:n], nil
  1122  	}
  1123  }
  1124  func (m *RequestLoadSnapshotChunk) XXX_Merge(src proto.Message) {
  1125  	xxx_messageInfo_RequestLoadSnapshotChunk.Merge(m, src)
  1126  }
  1127  func (m *RequestLoadSnapshotChunk) XXX_Size() int {
  1128  	return m.Size()
  1129  }
  1130  func (m *RequestLoadSnapshotChunk) XXX_DiscardUnknown() {
  1131  	xxx_messageInfo_RequestLoadSnapshotChunk.DiscardUnknown(m)
  1132  }
  1133  
  1134  var xxx_messageInfo_RequestLoadSnapshotChunk proto.InternalMessageInfo
  1135  
  1136  func (m *RequestLoadSnapshotChunk) GetHeight() uint64 {
  1137  	if m != nil {
  1138  		return m.Height
  1139  	}
  1140  	return 0
  1141  }
  1142  
  1143  func (m *RequestLoadSnapshotChunk) GetFormat() uint32 {
  1144  	if m != nil {
  1145  		return m.Format
  1146  	}
  1147  	return 0
  1148  }
  1149  
  1150  func (m *RequestLoadSnapshotChunk) GetChunk() uint32 {
  1151  	if m != nil {
  1152  		return m.Chunk
  1153  	}
  1154  	return 0
  1155  }
  1156  
  1157  // Applies a snapshot chunk
  1158  type RequestApplySnapshotChunk struct {
  1159  	Index  uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
  1160  	Chunk  []byte `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"`
  1161  	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
  1162  }
  1163  
  1164  func (m *RequestApplySnapshotChunk) Reset()         { *m = RequestApplySnapshotChunk{} }
  1165  func (m *RequestApplySnapshotChunk) String() string { return proto.CompactTextString(m) }
  1166  func (*RequestApplySnapshotChunk) ProtoMessage()    {}
  1167  func (*RequestApplySnapshotChunk) Descriptor() ([]byte, []int) {
  1168  	return fileDescriptor_252557cfdd89a31a, []int{15}
  1169  }
  1170  func (m *RequestApplySnapshotChunk) XXX_Unmarshal(b []byte) error {
  1171  	return m.Unmarshal(b)
  1172  }
  1173  func (m *RequestApplySnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1174  	if deterministic {
  1175  		return xxx_messageInfo_RequestApplySnapshotChunk.Marshal(b, m, deterministic)
  1176  	} else {
  1177  		b = b[:cap(b)]
  1178  		n, err := m.MarshalToSizedBuffer(b)
  1179  		if err != nil {
  1180  			return nil, err
  1181  		}
  1182  		return b[:n], nil
  1183  	}
  1184  }
  1185  func (m *RequestApplySnapshotChunk) XXX_Merge(src proto.Message) {
  1186  	xxx_messageInfo_RequestApplySnapshotChunk.Merge(m, src)
  1187  }
  1188  func (m *RequestApplySnapshotChunk) XXX_Size() int {
  1189  	return m.Size()
  1190  }
  1191  func (m *RequestApplySnapshotChunk) XXX_DiscardUnknown() {
  1192  	xxx_messageInfo_RequestApplySnapshotChunk.DiscardUnknown(m)
  1193  }
  1194  
  1195  var xxx_messageInfo_RequestApplySnapshotChunk proto.InternalMessageInfo
  1196  
  1197  func (m *RequestApplySnapshotChunk) GetIndex() uint32 {
  1198  	if m != nil {
  1199  		return m.Index
  1200  	}
  1201  	return 0
  1202  }
  1203  
  1204  func (m *RequestApplySnapshotChunk) GetChunk() []byte {
  1205  	if m != nil {
  1206  		return m.Chunk
  1207  	}
  1208  	return nil
  1209  }
  1210  
  1211  func (m *RequestApplySnapshotChunk) GetSender() string {
  1212  	if m != nil {
  1213  		return m.Sender
  1214  	}
  1215  	return ""
  1216  }
  1217  
  1218  type Response struct {
  1219  	// Types that are valid to be assigned to Value:
  1220  	//	*Response_Exception
  1221  	//	*Response_Echo
  1222  	//	*Response_Flush
  1223  	//	*Response_Info
  1224  	//	*Response_SetOption
  1225  	//	*Response_InitChain
  1226  	//	*Response_Query
  1227  	//	*Response_BeginBlock
  1228  	//	*Response_CheckTx
  1229  	//	*Response_DeliverTx
  1230  	//	*Response_EndBlock
  1231  	//	*Response_Commit
  1232  	//	*Response_ListSnapshots
  1233  	//	*Response_OfferSnapshot
  1234  	//	*Response_LoadSnapshotChunk
  1235  	//	*Response_ApplySnapshotChunk
  1236  	Value isResponse_Value `protobuf_oneof:"value"`
  1237  }
  1238  
  1239  func (m *Response) Reset()         { *m = Response{} }
  1240  func (m *Response) String() string { return proto.CompactTextString(m) }
  1241  func (*Response) ProtoMessage()    {}
  1242  func (*Response) Descriptor() ([]byte, []int) {
  1243  	return fileDescriptor_252557cfdd89a31a, []int{16}
  1244  }
  1245  func (m *Response) XXX_Unmarshal(b []byte) error {
  1246  	return m.Unmarshal(b)
  1247  }
  1248  func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1249  	if deterministic {
  1250  		return xxx_messageInfo_Response.Marshal(b, m, deterministic)
  1251  	} else {
  1252  		b = b[:cap(b)]
  1253  		n, err := m.MarshalToSizedBuffer(b)
  1254  		if err != nil {
  1255  			return nil, err
  1256  		}
  1257  		return b[:n], nil
  1258  	}
  1259  }
  1260  func (m *Response) XXX_Merge(src proto.Message) {
  1261  	xxx_messageInfo_Response.Merge(m, src)
  1262  }
  1263  func (m *Response) XXX_Size() int {
  1264  	return m.Size()
  1265  }
  1266  func (m *Response) XXX_DiscardUnknown() {
  1267  	xxx_messageInfo_Response.DiscardUnknown(m)
  1268  }
  1269  
  1270  var xxx_messageInfo_Response proto.InternalMessageInfo
  1271  
  1272  type isResponse_Value interface {
  1273  	isResponse_Value()
  1274  	MarshalTo([]byte) (int, error)
  1275  	Size() int
  1276  }
  1277  
  1278  type Response_Exception struct {
  1279  	Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,proto3,oneof" json:"exception,omitempty"`
  1280  }
  1281  type Response_Echo struct {
  1282  	Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,proto3,oneof" json:"echo,omitempty"`
  1283  }
  1284  type Response_Flush struct {
  1285  	Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,proto3,oneof" json:"flush,omitempty"`
  1286  }
  1287  type Response_Info struct {
  1288  	Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,proto3,oneof" json:"info,omitempty"`
  1289  }
  1290  type Response_SetOption struct {
  1291  	SetOption *ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,proto3,oneof" json:"set_option,omitempty"`
  1292  }
  1293  type Response_InitChain struct {
  1294  	InitChain *ResponseInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,proto3,oneof" json:"init_chain,omitempty"`
  1295  }
  1296  type Response_Query struct {
  1297  	Query *ResponseQuery `protobuf:"bytes,7,opt,name=query,proto3,oneof" json:"query,omitempty"`
  1298  }
  1299  type Response_BeginBlock struct {
  1300  	BeginBlock *ResponseBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,proto3,oneof" json:"begin_block,omitempty"`
  1301  }
  1302  type Response_CheckTx struct {
  1303  	CheckTx *ResponseCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,proto3,oneof" json:"check_tx,omitempty"`
  1304  }
  1305  type Response_DeliverTx struct {
  1306  	DeliverTx *ResponseDeliverTx `protobuf:"bytes,10,opt,name=deliver_tx,json=deliverTx,proto3,oneof" json:"deliver_tx,omitempty"`
  1307  }
  1308  type Response_EndBlock struct {
  1309  	EndBlock *ResponseEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,proto3,oneof" json:"end_block,omitempty"`
  1310  }
  1311  type Response_Commit struct {
  1312  	Commit *ResponseCommit `protobuf:"bytes,12,opt,name=commit,proto3,oneof" json:"commit,omitempty"`
  1313  }
  1314  type Response_ListSnapshots struct {
  1315  	ListSnapshots *ResponseListSnapshots `protobuf:"bytes,13,opt,name=list_snapshots,json=listSnapshots,proto3,oneof" json:"list_snapshots,omitempty"`
  1316  }
  1317  type Response_OfferSnapshot struct {
  1318  	OfferSnapshot *ResponseOfferSnapshot `protobuf:"bytes,14,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof" json:"offer_snapshot,omitempty"`
  1319  }
  1320  type Response_LoadSnapshotChunk struct {
  1321  	LoadSnapshotChunk *ResponseLoadSnapshotChunk `protobuf:"bytes,15,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof" json:"load_snapshot_chunk,omitempty"`
  1322  }
  1323  type Response_ApplySnapshotChunk struct {
  1324  	ApplySnapshotChunk *ResponseApplySnapshotChunk `protobuf:"bytes,16,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof" json:"apply_snapshot_chunk,omitempty"`
  1325  }
  1326  
  1327  func (*Response_Exception) isResponse_Value()          {}
  1328  func (*Response_Echo) isResponse_Value()               {}
  1329  func (*Response_Flush) isResponse_Value()              {}
  1330  func (*Response_Info) isResponse_Value()               {}
  1331  func (*Response_SetOption) isResponse_Value()          {}
  1332  func (*Response_InitChain) isResponse_Value()          {}
  1333  func (*Response_Query) isResponse_Value()              {}
  1334  func (*Response_BeginBlock) isResponse_Value()         {}
  1335  func (*Response_CheckTx) isResponse_Value()            {}
  1336  func (*Response_DeliverTx) isResponse_Value()          {}
  1337  func (*Response_EndBlock) isResponse_Value()           {}
  1338  func (*Response_Commit) isResponse_Value()             {}
  1339  func (*Response_ListSnapshots) isResponse_Value()      {}
  1340  func (*Response_OfferSnapshot) isResponse_Value()      {}
  1341  func (*Response_LoadSnapshotChunk) isResponse_Value()  {}
  1342  func (*Response_ApplySnapshotChunk) isResponse_Value() {}
  1343  
  1344  func (m *Response) GetValue() isResponse_Value {
  1345  	if m != nil {
  1346  		return m.Value
  1347  	}
  1348  	return nil
  1349  }
  1350  
  1351  func (m *Response) GetException() *ResponseException {
  1352  	if x, ok := m.GetValue().(*Response_Exception); ok {
  1353  		return x.Exception
  1354  	}
  1355  	return nil
  1356  }
  1357  
  1358  func (m *Response) GetEcho() *ResponseEcho {
  1359  	if x, ok := m.GetValue().(*Response_Echo); ok {
  1360  		return x.Echo
  1361  	}
  1362  	return nil
  1363  }
  1364  
  1365  func (m *Response) GetFlush() *ResponseFlush {
  1366  	if x, ok := m.GetValue().(*Response_Flush); ok {
  1367  		return x.Flush
  1368  	}
  1369  	return nil
  1370  }
  1371  
  1372  func (m *Response) GetInfo() *ResponseInfo {
  1373  	if x, ok := m.GetValue().(*Response_Info); ok {
  1374  		return x.Info
  1375  	}
  1376  	return nil
  1377  }
  1378  
  1379  func (m *Response) GetSetOption() *ResponseSetOption {
  1380  	if x, ok := m.GetValue().(*Response_SetOption); ok {
  1381  		return x.SetOption
  1382  	}
  1383  	return nil
  1384  }
  1385  
  1386  func (m *Response) GetInitChain() *ResponseInitChain {
  1387  	if x, ok := m.GetValue().(*Response_InitChain); ok {
  1388  		return x.InitChain
  1389  	}
  1390  	return nil
  1391  }
  1392  
  1393  func (m *Response) GetQuery() *ResponseQuery {
  1394  	if x, ok := m.GetValue().(*Response_Query); ok {
  1395  		return x.Query
  1396  	}
  1397  	return nil
  1398  }
  1399  
  1400  func (m *Response) GetBeginBlock() *ResponseBeginBlock {
  1401  	if x, ok := m.GetValue().(*Response_BeginBlock); ok {
  1402  		return x.BeginBlock
  1403  	}
  1404  	return nil
  1405  }
  1406  
  1407  func (m *Response) GetCheckTx() *ResponseCheckTx {
  1408  	if x, ok := m.GetValue().(*Response_CheckTx); ok {
  1409  		return x.CheckTx
  1410  	}
  1411  	return nil
  1412  }
  1413  
  1414  func (m *Response) GetDeliverTx() *ResponseDeliverTx {
  1415  	if x, ok := m.GetValue().(*Response_DeliverTx); ok {
  1416  		return x.DeliverTx
  1417  	}
  1418  	return nil
  1419  }
  1420  
  1421  func (m *Response) GetEndBlock() *ResponseEndBlock {
  1422  	if x, ok := m.GetValue().(*Response_EndBlock); ok {
  1423  		return x.EndBlock
  1424  	}
  1425  	return nil
  1426  }
  1427  
  1428  func (m *Response) GetCommit() *ResponseCommit {
  1429  	if x, ok := m.GetValue().(*Response_Commit); ok {
  1430  		return x.Commit
  1431  	}
  1432  	return nil
  1433  }
  1434  
  1435  func (m *Response) GetListSnapshots() *ResponseListSnapshots {
  1436  	if x, ok := m.GetValue().(*Response_ListSnapshots); ok {
  1437  		return x.ListSnapshots
  1438  	}
  1439  	return nil
  1440  }
  1441  
  1442  func (m *Response) GetOfferSnapshot() *ResponseOfferSnapshot {
  1443  	if x, ok := m.GetValue().(*Response_OfferSnapshot); ok {
  1444  		return x.OfferSnapshot
  1445  	}
  1446  	return nil
  1447  }
  1448  
  1449  func (m *Response) GetLoadSnapshotChunk() *ResponseLoadSnapshotChunk {
  1450  	if x, ok := m.GetValue().(*Response_LoadSnapshotChunk); ok {
  1451  		return x.LoadSnapshotChunk
  1452  	}
  1453  	return nil
  1454  }
  1455  
  1456  func (m *Response) GetApplySnapshotChunk() *ResponseApplySnapshotChunk {
  1457  	if x, ok := m.GetValue().(*Response_ApplySnapshotChunk); ok {
  1458  		return x.ApplySnapshotChunk
  1459  	}
  1460  	return nil
  1461  }
  1462  
  1463  // XXX_OneofWrappers is for the internal use of the proto package.
  1464  func (*Response) XXX_OneofWrappers() []interface{} {
  1465  	return []interface{}{
  1466  		(*Response_Exception)(nil),
  1467  		(*Response_Echo)(nil),
  1468  		(*Response_Flush)(nil),
  1469  		(*Response_Info)(nil),
  1470  		(*Response_SetOption)(nil),
  1471  		(*Response_InitChain)(nil),
  1472  		(*Response_Query)(nil),
  1473  		(*Response_BeginBlock)(nil),
  1474  		(*Response_CheckTx)(nil),
  1475  		(*Response_DeliverTx)(nil),
  1476  		(*Response_EndBlock)(nil),
  1477  		(*Response_Commit)(nil),
  1478  		(*Response_ListSnapshots)(nil),
  1479  		(*Response_OfferSnapshot)(nil),
  1480  		(*Response_LoadSnapshotChunk)(nil),
  1481  		(*Response_ApplySnapshotChunk)(nil),
  1482  	}
  1483  }
  1484  
  1485  // nondeterministic
  1486  type ResponseException struct {
  1487  	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  1488  }
  1489  
  1490  func (m *ResponseException) Reset()         { *m = ResponseException{} }
  1491  func (m *ResponseException) String() string { return proto.CompactTextString(m) }
  1492  func (*ResponseException) ProtoMessage()    {}
  1493  func (*ResponseException) Descriptor() ([]byte, []int) {
  1494  	return fileDescriptor_252557cfdd89a31a, []int{17}
  1495  }
  1496  func (m *ResponseException) XXX_Unmarshal(b []byte) error {
  1497  	return m.Unmarshal(b)
  1498  }
  1499  func (m *ResponseException) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1500  	if deterministic {
  1501  		return xxx_messageInfo_ResponseException.Marshal(b, m, deterministic)
  1502  	} else {
  1503  		b = b[:cap(b)]
  1504  		n, err := m.MarshalToSizedBuffer(b)
  1505  		if err != nil {
  1506  			return nil, err
  1507  		}
  1508  		return b[:n], nil
  1509  	}
  1510  }
  1511  func (m *ResponseException) XXX_Merge(src proto.Message) {
  1512  	xxx_messageInfo_ResponseException.Merge(m, src)
  1513  }
  1514  func (m *ResponseException) XXX_Size() int {
  1515  	return m.Size()
  1516  }
  1517  func (m *ResponseException) XXX_DiscardUnknown() {
  1518  	xxx_messageInfo_ResponseException.DiscardUnknown(m)
  1519  }
  1520  
  1521  var xxx_messageInfo_ResponseException proto.InternalMessageInfo
  1522  
  1523  func (m *ResponseException) GetError() string {
  1524  	if m != nil {
  1525  		return m.Error
  1526  	}
  1527  	return ""
  1528  }
  1529  
  1530  type ResponseEcho struct {
  1531  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  1532  }
  1533  
  1534  func (m *ResponseEcho) Reset()         { *m = ResponseEcho{} }
  1535  func (m *ResponseEcho) String() string { return proto.CompactTextString(m) }
  1536  func (*ResponseEcho) ProtoMessage()    {}
  1537  func (*ResponseEcho) Descriptor() ([]byte, []int) {
  1538  	return fileDescriptor_252557cfdd89a31a, []int{18}
  1539  }
  1540  func (m *ResponseEcho) XXX_Unmarshal(b []byte) error {
  1541  	return m.Unmarshal(b)
  1542  }
  1543  func (m *ResponseEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1544  	if deterministic {
  1545  		return xxx_messageInfo_ResponseEcho.Marshal(b, m, deterministic)
  1546  	} else {
  1547  		b = b[:cap(b)]
  1548  		n, err := m.MarshalToSizedBuffer(b)
  1549  		if err != nil {
  1550  			return nil, err
  1551  		}
  1552  		return b[:n], nil
  1553  	}
  1554  }
  1555  func (m *ResponseEcho) XXX_Merge(src proto.Message) {
  1556  	xxx_messageInfo_ResponseEcho.Merge(m, src)
  1557  }
  1558  func (m *ResponseEcho) XXX_Size() int {
  1559  	return m.Size()
  1560  }
  1561  func (m *ResponseEcho) XXX_DiscardUnknown() {
  1562  	xxx_messageInfo_ResponseEcho.DiscardUnknown(m)
  1563  }
  1564  
  1565  var xxx_messageInfo_ResponseEcho proto.InternalMessageInfo
  1566  
  1567  func (m *ResponseEcho) GetMessage() string {
  1568  	if m != nil {
  1569  		return m.Message
  1570  	}
  1571  	return ""
  1572  }
  1573  
  1574  type ResponseFlush struct {
  1575  }
  1576  
  1577  func (m *ResponseFlush) Reset()         { *m = ResponseFlush{} }
  1578  func (m *ResponseFlush) String() string { return proto.CompactTextString(m) }
  1579  func (*ResponseFlush) ProtoMessage()    {}
  1580  func (*ResponseFlush) Descriptor() ([]byte, []int) {
  1581  	return fileDescriptor_252557cfdd89a31a, []int{19}
  1582  }
  1583  func (m *ResponseFlush) XXX_Unmarshal(b []byte) error {
  1584  	return m.Unmarshal(b)
  1585  }
  1586  func (m *ResponseFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1587  	if deterministic {
  1588  		return xxx_messageInfo_ResponseFlush.Marshal(b, m, deterministic)
  1589  	} else {
  1590  		b = b[:cap(b)]
  1591  		n, err := m.MarshalToSizedBuffer(b)
  1592  		if err != nil {
  1593  			return nil, err
  1594  		}
  1595  		return b[:n], nil
  1596  	}
  1597  }
  1598  func (m *ResponseFlush) XXX_Merge(src proto.Message) {
  1599  	xxx_messageInfo_ResponseFlush.Merge(m, src)
  1600  }
  1601  func (m *ResponseFlush) XXX_Size() int {
  1602  	return m.Size()
  1603  }
  1604  func (m *ResponseFlush) XXX_DiscardUnknown() {
  1605  	xxx_messageInfo_ResponseFlush.DiscardUnknown(m)
  1606  }
  1607  
  1608  var xxx_messageInfo_ResponseFlush proto.InternalMessageInfo
  1609  
  1610  type ResponseInfo struct {
  1611  	Data             string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  1612  	Version          string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  1613  	AppVersion       uint64 `protobuf:"varint,3,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
  1614  	LastBlockHeight  int64  `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
  1615  	LastBlockAppHash []byte `protobuf:"bytes,5,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"`
  1616  }
  1617  
  1618  func (m *ResponseInfo) Reset()         { *m = ResponseInfo{} }
  1619  func (m *ResponseInfo) String() string { return proto.CompactTextString(m) }
  1620  func (*ResponseInfo) ProtoMessage()    {}
  1621  func (*ResponseInfo) Descriptor() ([]byte, []int) {
  1622  	return fileDescriptor_252557cfdd89a31a, []int{20}
  1623  }
  1624  func (m *ResponseInfo) XXX_Unmarshal(b []byte) error {
  1625  	return m.Unmarshal(b)
  1626  }
  1627  func (m *ResponseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1628  	if deterministic {
  1629  		return xxx_messageInfo_ResponseInfo.Marshal(b, m, deterministic)
  1630  	} else {
  1631  		b = b[:cap(b)]
  1632  		n, err := m.MarshalToSizedBuffer(b)
  1633  		if err != nil {
  1634  			return nil, err
  1635  		}
  1636  		return b[:n], nil
  1637  	}
  1638  }
  1639  func (m *ResponseInfo) XXX_Merge(src proto.Message) {
  1640  	xxx_messageInfo_ResponseInfo.Merge(m, src)
  1641  }
  1642  func (m *ResponseInfo) XXX_Size() int {
  1643  	return m.Size()
  1644  }
  1645  func (m *ResponseInfo) XXX_DiscardUnknown() {
  1646  	xxx_messageInfo_ResponseInfo.DiscardUnknown(m)
  1647  }
  1648  
  1649  var xxx_messageInfo_ResponseInfo proto.InternalMessageInfo
  1650  
  1651  func (m *ResponseInfo) GetData() string {
  1652  	if m != nil {
  1653  		return m.Data
  1654  	}
  1655  	return ""
  1656  }
  1657  
  1658  func (m *ResponseInfo) GetVersion() string {
  1659  	if m != nil {
  1660  		return m.Version
  1661  	}
  1662  	return ""
  1663  }
  1664  
  1665  func (m *ResponseInfo) GetAppVersion() uint64 {
  1666  	if m != nil {
  1667  		return m.AppVersion
  1668  	}
  1669  	return 0
  1670  }
  1671  
  1672  func (m *ResponseInfo) GetLastBlockHeight() int64 {
  1673  	if m != nil {
  1674  		return m.LastBlockHeight
  1675  	}
  1676  	return 0
  1677  }
  1678  
  1679  func (m *ResponseInfo) GetLastBlockAppHash() []byte {
  1680  	if m != nil {
  1681  		return m.LastBlockAppHash
  1682  	}
  1683  	return nil
  1684  }
  1685  
  1686  // nondeterministic
  1687  type ResponseSetOption struct {
  1688  	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1689  	// bytes data = 2;
  1690  	Log  string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1691  	Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1692  }
  1693  
  1694  func (m *ResponseSetOption) Reset()         { *m = ResponseSetOption{} }
  1695  func (m *ResponseSetOption) String() string { return proto.CompactTextString(m) }
  1696  func (*ResponseSetOption) ProtoMessage()    {}
  1697  func (*ResponseSetOption) Descriptor() ([]byte, []int) {
  1698  	return fileDescriptor_252557cfdd89a31a, []int{21}
  1699  }
  1700  func (m *ResponseSetOption) XXX_Unmarshal(b []byte) error {
  1701  	return m.Unmarshal(b)
  1702  }
  1703  func (m *ResponseSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1704  	if deterministic {
  1705  		return xxx_messageInfo_ResponseSetOption.Marshal(b, m, deterministic)
  1706  	} else {
  1707  		b = b[:cap(b)]
  1708  		n, err := m.MarshalToSizedBuffer(b)
  1709  		if err != nil {
  1710  			return nil, err
  1711  		}
  1712  		return b[:n], nil
  1713  	}
  1714  }
  1715  func (m *ResponseSetOption) XXX_Merge(src proto.Message) {
  1716  	xxx_messageInfo_ResponseSetOption.Merge(m, src)
  1717  }
  1718  func (m *ResponseSetOption) XXX_Size() int {
  1719  	return m.Size()
  1720  }
  1721  func (m *ResponseSetOption) XXX_DiscardUnknown() {
  1722  	xxx_messageInfo_ResponseSetOption.DiscardUnknown(m)
  1723  }
  1724  
  1725  var xxx_messageInfo_ResponseSetOption proto.InternalMessageInfo
  1726  
  1727  func (m *ResponseSetOption) GetCode() uint32 {
  1728  	if m != nil {
  1729  		return m.Code
  1730  	}
  1731  	return 0
  1732  }
  1733  
  1734  func (m *ResponseSetOption) GetLog() string {
  1735  	if m != nil {
  1736  		return m.Log
  1737  	}
  1738  	return ""
  1739  }
  1740  
  1741  func (m *ResponseSetOption) GetInfo() string {
  1742  	if m != nil {
  1743  		return m.Info
  1744  	}
  1745  	return ""
  1746  }
  1747  
  1748  type ResponseInitChain struct {
  1749  	ConsensusParams *ConsensusParams  `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"`
  1750  	Validators      []ValidatorUpdate `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators"`
  1751  	AppHash         []byte            `protobuf:"bytes,3,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
  1752  }
  1753  
  1754  func (m *ResponseInitChain) Reset()         { *m = ResponseInitChain{} }
  1755  func (m *ResponseInitChain) String() string { return proto.CompactTextString(m) }
  1756  func (*ResponseInitChain) ProtoMessage()    {}
  1757  func (*ResponseInitChain) Descriptor() ([]byte, []int) {
  1758  	return fileDescriptor_252557cfdd89a31a, []int{22}
  1759  }
  1760  func (m *ResponseInitChain) XXX_Unmarshal(b []byte) error {
  1761  	return m.Unmarshal(b)
  1762  }
  1763  func (m *ResponseInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1764  	if deterministic {
  1765  		return xxx_messageInfo_ResponseInitChain.Marshal(b, m, deterministic)
  1766  	} else {
  1767  		b = b[:cap(b)]
  1768  		n, err := m.MarshalToSizedBuffer(b)
  1769  		if err != nil {
  1770  			return nil, err
  1771  		}
  1772  		return b[:n], nil
  1773  	}
  1774  }
  1775  func (m *ResponseInitChain) XXX_Merge(src proto.Message) {
  1776  	xxx_messageInfo_ResponseInitChain.Merge(m, src)
  1777  }
  1778  func (m *ResponseInitChain) XXX_Size() int {
  1779  	return m.Size()
  1780  }
  1781  func (m *ResponseInitChain) XXX_DiscardUnknown() {
  1782  	xxx_messageInfo_ResponseInitChain.DiscardUnknown(m)
  1783  }
  1784  
  1785  var xxx_messageInfo_ResponseInitChain proto.InternalMessageInfo
  1786  
  1787  func (m *ResponseInitChain) GetConsensusParams() *ConsensusParams {
  1788  	if m != nil {
  1789  		return m.ConsensusParams
  1790  	}
  1791  	return nil
  1792  }
  1793  
  1794  func (m *ResponseInitChain) GetValidators() []ValidatorUpdate {
  1795  	if m != nil {
  1796  		return m.Validators
  1797  	}
  1798  	return nil
  1799  }
  1800  
  1801  func (m *ResponseInitChain) GetAppHash() []byte {
  1802  	if m != nil {
  1803  		return m.AppHash
  1804  	}
  1805  	return nil
  1806  }
  1807  
  1808  type ResponseQuery struct {
  1809  	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1810  	// bytes data = 2; // use "value" instead.
  1811  	Log       string           `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1812  	Info      string           `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1813  	Index     int64            `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
  1814  	Key       []byte           `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
  1815  	Value     []byte           `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
  1816  	ProofOps  *crypto.ProofOps `protobuf:"bytes,8,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"`
  1817  	Height    int64            `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
  1818  	Codespace string           `protobuf:"bytes,10,opt,name=codespace,proto3" json:"codespace,omitempty"`
  1819  }
  1820  
  1821  func (m *ResponseQuery) Reset()         { *m = ResponseQuery{} }
  1822  func (m *ResponseQuery) String() string { return proto.CompactTextString(m) }
  1823  func (*ResponseQuery) ProtoMessage()    {}
  1824  func (*ResponseQuery) Descriptor() ([]byte, []int) {
  1825  	return fileDescriptor_252557cfdd89a31a, []int{23}
  1826  }
  1827  func (m *ResponseQuery) XXX_Unmarshal(b []byte) error {
  1828  	return m.Unmarshal(b)
  1829  }
  1830  func (m *ResponseQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1831  	if deterministic {
  1832  		return xxx_messageInfo_ResponseQuery.Marshal(b, m, deterministic)
  1833  	} else {
  1834  		b = b[:cap(b)]
  1835  		n, err := m.MarshalToSizedBuffer(b)
  1836  		if err != nil {
  1837  			return nil, err
  1838  		}
  1839  		return b[:n], nil
  1840  	}
  1841  }
  1842  func (m *ResponseQuery) XXX_Merge(src proto.Message) {
  1843  	xxx_messageInfo_ResponseQuery.Merge(m, src)
  1844  }
  1845  func (m *ResponseQuery) XXX_Size() int {
  1846  	return m.Size()
  1847  }
  1848  func (m *ResponseQuery) XXX_DiscardUnknown() {
  1849  	xxx_messageInfo_ResponseQuery.DiscardUnknown(m)
  1850  }
  1851  
  1852  var xxx_messageInfo_ResponseQuery proto.InternalMessageInfo
  1853  
  1854  func (m *ResponseQuery) GetCode() uint32 {
  1855  	if m != nil {
  1856  		return m.Code
  1857  	}
  1858  	return 0
  1859  }
  1860  
  1861  func (m *ResponseQuery) GetLog() string {
  1862  	if m != nil {
  1863  		return m.Log
  1864  	}
  1865  	return ""
  1866  }
  1867  
  1868  func (m *ResponseQuery) GetInfo() string {
  1869  	if m != nil {
  1870  		return m.Info
  1871  	}
  1872  	return ""
  1873  }
  1874  
  1875  func (m *ResponseQuery) GetIndex() int64 {
  1876  	if m != nil {
  1877  		return m.Index
  1878  	}
  1879  	return 0
  1880  }
  1881  
  1882  func (m *ResponseQuery) GetKey() []byte {
  1883  	if m != nil {
  1884  		return m.Key
  1885  	}
  1886  	return nil
  1887  }
  1888  
  1889  func (m *ResponseQuery) GetValue() []byte {
  1890  	if m != nil {
  1891  		return m.Value
  1892  	}
  1893  	return nil
  1894  }
  1895  
  1896  func (m *ResponseQuery) GetProofOps() *crypto.ProofOps {
  1897  	if m != nil {
  1898  		return m.ProofOps
  1899  	}
  1900  	return nil
  1901  }
  1902  
  1903  func (m *ResponseQuery) GetHeight() int64 {
  1904  	if m != nil {
  1905  		return m.Height
  1906  	}
  1907  	return 0
  1908  }
  1909  
  1910  func (m *ResponseQuery) GetCodespace() string {
  1911  	if m != nil {
  1912  		return m.Codespace
  1913  	}
  1914  	return ""
  1915  }
  1916  
  1917  type ResponseBeginBlock struct {
  1918  	Events []Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
  1919  }
  1920  
  1921  func (m *ResponseBeginBlock) Reset()         { *m = ResponseBeginBlock{} }
  1922  func (m *ResponseBeginBlock) String() string { return proto.CompactTextString(m) }
  1923  func (*ResponseBeginBlock) ProtoMessage()    {}
  1924  func (*ResponseBeginBlock) Descriptor() ([]byte, []int) {
  1925  	return fileDescriptor_252557cfdd89a31a, []int{24}
  1926  }
  1927  func (m *ResponseBeginBlock) XXX_Unmarshal(b []byte) error {
  1928  	return m.Unmarshal(b)
  1929  }
  1930  func (m *ResponseBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1931  	if deterministic {
  1932  		return xxx_messageInfo_ResponseBeginBlock.Marshal(b, m, deterministic)
  1933  	} else {
  1934  		b = b[:cap(b)]
  1935  		n, err := m.MarshalToSizedBuffer(b)
  1936  		if err != nil {
  1937  			return nil, err
  1938  		}
  1939  		return b[:n], nil
  1940  	}
  1941  }
  1942  func (m *ResponseBeginBlock) XXX_Merge(src proto.Message) {
  1943  	xxx_messageInfo_ResponseBeginBlock.Merge(m, src)
  1944  }
  1945  func (m *ResponseBeginBlock) XXX_Size() int {
  1946  	return m.Size()
  1947  }
  1948  func (m *ResponseBeginBlock) XXX_DiscardUnknown() {
  1949  	xxx_messageInfo_ResponseBeginBlock.DiscardUnknown(m)
  1950  }
  1951  
  1952  var xxx_messageInfo_ResponseBeginBlock proto.InternalMessageInfo
  1953  
  1954  func (m *ResponseBeginBlock) GetEvents() []Event {
  1955  	if m != nil {
  1956  		return m.Events
  1957  	}
  1958  	return nil
  1959  }
  1960  
  1961  type ResponseCheckTx struct {
  1962  	Code      uint32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1963  	Data      []byte  `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1964  	Log       string  `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1965  	Info      string  `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1966  	GasWanted int64   `protobuf:"varint,5,opt,name=gas_wanted,proto3" json:"gas_wanted,omitempty"`
  1967  	GasUsed   int64   `protobuf:"varint,6,opt,name=gas_used,proto3" json:"gas_used,omitempty"`
  1968  	Events    []Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"`
  1969  	Codespace string  `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"`
  1970  	Sender    string  `protobuf:"bytes,9,opt,name=sender,proto3" json:"sender,omitempty"`
  1971  	Priority  int64   `protobuf:"varint,10,opt,name=priority,proto3" json:"priority,omitempty"`
  1972  	// mempool_error is set by Tendermint.
  1973  	// ABCI applictions creating a ResponseCheckTX should not set mempool_error.
  1974  	MempoolError string `protobuf:"bytes,11,opt,name=mempool_error,json=mempoolError,proto3" json:"mempool_error,omitempty"`
  1975  }
  1976  
  1977  func (m *ResponseCheckTx) Reset()         { *m = ResponseCheckTx{} }
  1978  func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) }
  1979  func (*ResponseCheckTx) ProtoMessage()    {}
  1980  func (*ResponseCheckTx) Descriptor() ([]byte, []int) {
  1981  	return fileDescriptor_252557cfdd89a31a, []int{25}
  1982  }
  1983  func (m *ResponseCheckTx) XXX_Unmarshal(b []byte) error {
  1984  	return m.Unmarshal(b)
  1985  }
  1986  func (m *ResponseCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1987  	if deterministic {
  1988  		return xxx_messageInfo_ResponseCheckTx.Marshal(b, m, deterministic)
  1989  	} else {
  1990  		b = b[:cap(b)]
  1991  		n, err := m.MarshalToSizedBuffer(b)
  1992  		if err != nil {
  1993  			return nil, err
  1994  		}
  1995  		return b[:n], nil
  1996  	}
  1997  }
  1998  func (m *ResponseCheckTx) XXX_Merge(src proto.Message) {
  1999  	xxx_messageInfo_ResponseCheckTx.Merge(m, src)
  2000  }
  2001  func (m *ResponseCheckTx) XXX_Size() int {
  2002  	return m.Size()
  2003  }
  2004  func (m *ResponseCheckTx) XXX_DiscardUnknown() {
  2005  	xxx_messageInfo_ResponseCheckTx.DiscardUnknown(m)
  2006  }
  2007  
  2008  var xxx_messageInfo_ResponseCheckTx proto.InternalMessageInfo
  2009  
  2010  func (m *ResponseCheckTx) GetCode() uint32 {
  2011  	if m != nil {
  2012  		return m.Code
  2013  	}
  2014  	return 0
  2015  }
  2016  
  2017  func (m *ResponseCheckTx) GetData() []byte {
  2018  	if m != nil {
  2019  		return m.Data
  2020  	}
  2021  	return nil
  2022  }
  2023  
  2024  func (m *ResponseCheckTx) GetLog() string {
  2025  	if m != nil {
  2026  		return m.Log
  2027  	}
  2028  	return ""
  2029  }
  2030  
  2031  func (m *ResponseCheckTx) GetInfo() string {
  2032  	if m != nil {
  2033  		return m.Info
  2034  	}
  2035  	return ""
  2036  }
  2037  
  2038  func (m *ResponseCheckTx) GetGasWanted() int64 {
  2039  	if m != nil {
  2040  		return m.GasWanted
  2041  	}
  2042  	return 0
  2043  }
  2044  
  2045  func (m *ResponseCheckTx) GetGasUsed() int64 {
  2046  	if m != nil {
  2047  		return m.GasUsed
  2048  	}
  2049  	return 0
  2050  }
  2051  
  2052  func (m *ResponseCheckTx) GetEvents() []Event {
  2053  	if m != nil {
  2054  		return m.Events
  2055  	}
  2056  	return nil
  2057  }
  2058  
  2059  func (m *ResponseCheckTx) GetCodespace() string {
  2060  	if m != nil {
  2061  		return m.Codespace
  2062  	}
  2063  	return ""
  2064  }
  2065  
  2066  func (m *ResponseCheckTx) GetSender() string {
  2067  	if m != nil {
  2068  		return m.Sender
  2069  	}
  2070  	return ""
  2071  }
  2072  
  2073  func (m *ResponseCheckTx) GetPriority() int64 {
  2074  	if m != nil {
  2075  		return m.Priority
  2076  	}
  2077  	return 0
  2078  }
  2079  
  2080  func (m *ResponseCheckTx) GetMempoolError() string {
  2081  	if m != nil {
  2082  		return m.MempoolError
  2083  	}
  2084  	return ""
  2085  }
  2086  
  2087  type ResponseDeliverTx struct {
  2088  	Code      uint32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  2089  	Data      []byte  `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  2090  	Log       string  `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  2091  	Info      string  `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  2092  	GasWanted int64   `protobuf:"varint,5,opt,name=gas_wanted,proto3" json:"gas_wanted,omitempty"`
  2093  	GasUsed   int64   `protobuf:"varint,6,opt,name=gas_used,proto3" json:"gas_used,omitempty"`
  2094  	Events    []Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"`
  2095  	Codespace string  `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"`
  2096  }
  2097  
  2098  func (m *ResponseDeliverTx) Reset()         { *m = ResponseDeliverTx{} }
  2099  func (m *ResponseDeliverTx) String() string { return proto.CompactTextString(m) }
  2100  func (*ResponseDeliverTx) ProtoMessage()    {}
  2101  func (*ResponseDeliverTx) Descriptor() ([]byte, []int) {
  2102  	return fileDescriptor_252557cfdd89a31a, []int{26}
  2103  }
  2104  func (m *ResponseDeliverTx) XXX_Unmarshal(b []byte) error {
  2105  	return m.Unmarshal(b)
  2106  }
  2107  func (m *ResponseDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2108  	if deterministic {
  2109  		return xxx_messageInfo_ResponseDeliverTx.Marshal(b, m, deterministic)
  2110  	} else {
  2111  		b = b[:cap(b)]
  2112  		n, err := m.MarshalToSizedBuffer(b)
  2113  		if err != nil {
  2114  			return nil, err
  2115  		}
  2116  		return b[:n], nil
  2117  	}
  2118  }
  2119  func (m *ResponseDeliverTx) XXX_Merge(src proto.Message) {
  2120  	xxx_messageInfo_ResponseDeliverTx.Merge(m, src)
  2121  }
  2122  func (m *ResponseDeliverTx) XXX_Size() int {
  2123  	return m.Size()
  2124  }
  2125  func (m *ResponseDeliverTx) XXX_DiscardUnknown() {
  2126  	xxx_messageInfo_ResponseDeliverTx.DiscardUnknown(m)
  2127  }
  2128  
  2129  var xxx_messageInfo_ResponseDeliverTx proto.InternalMessageInfo
  2130  
  2131  func (m *ResponseDeliverTx) GetCode() uint32 {
  2132  	if m != nil {
  2133  		return m.Code
  2134  	}
  2135  	return 0
  2136  }
  2137  
  2138  func (m *ResponseDeliverTx) GetData() []byte {
  2139  	if m != nil {
  2140  		return m.Data
  2141  	}
  2142  	return nil
  2143  }
  2144  
  2145  func (m *ResponseDeliverTx) GetLog() string {
  2146  	if m != nil {
  2147  		return m.Log
  2148  	}
  2149  	return ""
  2150  }
  2151  
  2152  func (m *ResponseDeliverTx) GetInfo() string {
  2153  	if m != nil {
  2154  		return m.Info
  2155  	}
  2156  	return ""
  2157  }
  2158  
  2159  func (m *ResponseDeliverTx) GetGasWanted() int64 {
  2160  	if m != nil {
  2161  		return m.GasWanted
  2162  	}
  2163  	return 0
  2164  }
  2165  
  2166  func (m *ResponseDeliverTx) GetGasUsed() int64 {
  2167  	if m != nil {
  2168  		return m.GasUsed
  2169  	}
  2170  	return 0
  2171  }
  2172  
  2173  func (m *ResponseDeliverTx) GetEvents() []Event {
  2174  	if m != nil {
  2175  		return m.Events
  2176  	}
  2177  	return nil
  2178  }
  2179  
  2180  func (m *ResponseDeliverTx) GetCodespace() string {
  2181  	if m != nil {
  2182  		return m.Codespace
  2183  	}
  2184  	return ""
  2185  }
  2186  
  2187  type ResponseEndBlock struct {
  2188  	ValidatorUpdates      []ValidatorUpdate `protobuf:"bytes,1,rep,name=validator_updates,json=validatorUpdates,proto3" json:"validator_updates"`
  2189  	ConsensusParamUpdates *ConsensusParams  `protobuf:"bytes,2,opt,name=consensus_param_updates,json=consensusParamUpdates,proto3" json:"consensus_param_updates,omitempty"`
  2190  	Events                []Event           `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
  2191  }
  2192  
  2193  func (m *ResponseEndBlock) Reset()         { *m = ResponseEndBlock{} }
  2194  func (m *ResponseEndBlock) String() string { return proto.CompactTextString(m) }
  2195  func (*ResponseEndBlock) ProtoMessage()    {}
  2196  func (*ResponseEndBlock) Descriptor() ([]byte, []int) {
  2197  	return fileDescriptor_252557cfdd89a31a, []int{27}
  2198  }
  2199  func (m *ResponseEndBlock) XXX_Unmarshal(b []byte) error {
  2200  	return m.Unmarshal(b)
  2201  }
  2202  func (m *ResponseEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2203  	if deterministic {
  2204  		return xxx_messageInfo_ResponseEndBlock.Marshal(b, m, deterministic)
  2205  	} else {
  2206  		b = b[:cap(b)]
  2207  		n, err := m.MarshalToSizedBuffer(b)
  2208  		if err != nil {
  2209  			return nil, err
  2210  		}
  2211  		return b[:n], nil
  2212  	}
  2213  }
  2214  func (m *ResponseEndBlock) XXX_Merge(src proto.Message) {
  2215  	xxx_messageInfo_ResponseEndBlock.Merge(m, src)
  2216  }
  2217  func (m *ResponseEndBlock) XXX_Size() int {
  2218  	return m.Size()
  2219  }
  2220  func (m *ResponseEndBlock) XXX_DiscardUnknown() {
  2221  	xxx_messageInfo_ResponseEndBlock.DiscardUnknown(m)
  2222  }
  2223  
  2224  var xxx_messageInfo_ResponseEndBlock proto.InternalMessageInfo
  2225  
  2226  func (m *ResponseEndBlock) GetValidatorUpdates() []ValidatorUpdate {
  2227  	if m != nil {
  2228  		return m.ValidatorUpdates
  2229  	}
  2230  	return nil
  2231  }
  2232  
  2233  func (m *ResponseEndBlock) GetConsensusParamUpdates() *ConsensusParams {
  2234  	if m != nil {
  2235  		return m.ConsensusParamUpdates
  2236  	}
  2237  	return nil
  2238  }
  2239  
  2240  func (m *ResponseEndBlock) GetEvents() []Event {
  2241  	if m != nil {
  2242  		return m.Events
  2243  	}
  2244  	return nil
  2245  }
  2246  
  2247  type ResponseCommit struct {
  2248  	// reserve 1
  2249  	Data         []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  2250  	RetainHeight int64  `protobuf:"varint,3,opt,name=retain_height,json=retainHeight,proto3" json:"retain_height,omitempty"`
  2251  }
  2252  
  2253  func (m *ResponseCommit) Reset()         { *m = ResponseCommit{} }
  2254  func (m *ResponseCommit) String() string { return proto.CompactTextString(m) }
  2255  func (*ResponseCommit) ProtoMessage()    {}
  2256  func (*ResponseCommit) Descriptor() ([]byte, []int) {
  2257  	return fileDescriptor_252557cfdd89a31a, []int{28}
  2258  }
  2259  func (m *ResponseCommit) XXX_Unmarshal(b []byte) error {
  2260  	return m.Unmarshal(b)
  2261  }
  2262  func (m *ResponseCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2263  	if deterministic {
  2264  		return xxx_messageInfo_ResponseCommit.Marshal(b, m, deterministic)
  2265  	} else {
  2266  		b = b[:cap(b)]
  2267  		n, err := m.MarshalToSizedBuffer(b)
  2268  		if err != nil {
  2269  			return nil, err
  2270  		}
  2271  		return b[:n], nil
  2272  	}
  2273  }
  2274  func (m *ResponseCommit) XXX_Merge(src proto.Message) {
  2275  	xxx_messageInfo_ResponseCommit.Merge(m, src)
  2276  }
  2277  func (m *ResponseCommit) XXX_Size() int {
  2278  	return m.Size()
  2279  }
  2280  func (m *ResponseCommit) XXX_DiscardUnknown() {
  2281  	xxx_messageInfo_ResponseCommit.DiscardUnknown(m)
  2282  }
  2283  
  2284  var xxx_messageInfo_ResponseCommit proto.InternalMessageInfo
  2285  
  2286  func (m *ResponseCommit) GetData() []byte {
  2287  	if m != nil {
  2288  		return m.Data
  2289  	}
  2290  	return nil
  2291  }
  2292  
  2293  func (m *ResponseCommit) GetRetainHeight() int64 {
  2294  	if m != nil {
  2295  		return m.RetainHeight
  2296  	}
  2297  	return 0
  2298  }
  2299  
  2300  type ResponseListSnapshots struct {
  2301  	Snapshots []*Snapshot `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"`
  2302  }
  2303  
  2304  func (m *ResponseListSnapshots) Reset()         { *m = ResponseListSnapshots{} }
  2305  func (m *ResponseListSnapshots) String() string { return proto.CompactTextString(m) }
  2306  func (*ResponseListSnapshots) ProtoMessage()    {}
  2307  func (*ResponseListSnapshots) Descriptor() ([]byte, []int) {
  2308  	return fileDescriptor_252557cfdd89a31a, []int{29}
  2309  }
  2310  func (m *ResponseListSnapshots) XXX_Unmarshal(b []byte) error {
  2311  	return m.Unmarshal(b)
  2312  }
  2313  func (m *ResponseListSnapshots) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2314  	if deterministic {
  2315  		return xxx_messageInfo_ResponseListSnapshots.Marshal(b, m, deterministic)
  2316  	} else {
  2317  		b = b[:cap(b)]
  2318  		n, err := m.MarshalToSizedBuffer(b)
  2319  		if err != nil {
  2320  			return nil, err
  2321  		}
  2322  		return b[:n], nil
  2323  	}
  2324  }
  2325  func (m *ResponseListSnapshots) XXX_Merge(src proto.Message) {
  2326  	xxx_messageInfo_ResponseListSnapshots.Merge(m, src)
  2327  }
  2328  func (m *ResponseListSnapshots) XXX_Size() int {
  2329  	return m.Size()
  2330  }
  2331  func (m *ResponseListSnapshots) XXX_DiscardUnknown() {
  2332  	xxx_messageInfo_ResponseListSnapshots.DiscardUnknown(m)
  2333  }
  2334  
  2335  var xxx_messageInfo_ResponseListSnapshots proto.InternalMessageInfo
  2336  
  2337  func (m *ResponseListSnapshots) GetSnapshots() []*Snapshot {
  2338  	if m != nil {
  2339  		return m.Snapshots
  2340  	}
  2341  	return nil
  2342  }
  2343  
  2344  type ResponseOfferSnapshot struct {
  2345  	Result ResponseOfferSnapshot_Result `protobuf:"varint,1,opt,name=result,proto3,enum=tendermint.abci.ResponseOfferSnapshot_Result" json:"result,omitempty"`
  2346  }
  2347  
  2348  func (m *ResponseOfferSnapshot) Reset()         { *m = ResponseOfferSnapshot{} }
  2349  func (m *ResponseOfferSnapshot) String() string { return proto.CompactTextString(m) }
  2350  func (*ResponseOfferSnapshot) ProtoMessage()    {}
  2351  func (*ResponseOfferSnapshot) Descriptor() ([]byte, []int) {
  2352  	return fileDescriptor_252557cfdd89a31a, []int{30}
  2353  }
  2354  func (m *ResponseOfferSnapshot) XXX_Unmarshal(b []byte) error {
  2355  	return m.Unmarshal(b)
  2356  }
  2357  func (m *ResponseOfferSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2358  	if deterministic {
  2359  		return xxx_messageInfo_ResponseOfferSnapshot.Marshal(b, m, deterministic)
  2360  	} else {
  2361  		b = b[:cap(b)]
  2362  		n, err := m.MarshalToSizedBuffer(b)
  2363  		if err != nil {
  2364  			return nil, err
  2365  		}
  2366  		return b[:n], nil
  2367  	}
  2368  }
  2369  func (m *ResponseOfferSnapshot) XXX_Merge(src proto.Message) {
  2370  	xxx_messageInfo_ResponseOfferSnapshot.Merge(m, src)
  2371  }
  2372  func (m *ResponseOfferSnapshot) XXX_Size() int {
  2373  	return m.Size()
  2374  }
  2375  func (m *ResponseOfferSnapshot) XXX_DiscardUnknown() {
  2376  	xxx_messageInfo_ResponseOfferSnapshot.DiscardUnknown(m)
  2377  }
  2378  
  2379  var xxx_messageInfo_ResponseOfferSnapshot proto.InternalMessageInfo
  2380  
  2381  func (m *ResponseOfferSnapshot) GetResult() ResponseOfferSnapshot_Result {
  2382  	if m != nil {
  2383  		return m.Result
  2384  	}
  2385  	return ResponseOfferSnapshot_UNKNOWN
  2386  }
  2387  
  2388  type ResponseLoadSnapshotChunk struct {
  2389  	Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"`
  2390  }
  2391  
  2392  func (m *ResponseLoadSnapshotChunk) Reset()         { *m = ResponseLoadSnapshotChunk{} }
  2393  func (m *ResponseLoadSnapshotChunk) String() string { return proto.CompactTextString(m) }
  2394  func (*ResponseLoadSnapshotChunk) ProtoMessage()    {}
  2395  func (*ResponseLoadSnapshotChunk) Descriptor() ([]byte, []int) {
  2396  	return fileDescriptor_252557cfdd89a31a, []int{31}
  2397  }
  2398  func (m *ResponseLoadSnapshotChunk) XXX_Unmarshal(b []byte) error {
  2399  	return m.Unmarshal(b)
  2400  }
  2401  func (m *ResponseLoadSnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2402  	if deterministic {
  2403  		return xxx_messageInfo_ResponseLoadSnapshotChunk.Marshal(b, m, deterministic)
  2404  	} else {
  2405  		b = b[:cap(b)]
  2406  		n, err := m.MarshalToSizedBuffer(b)
  2407  		if err != nil {
  2408  			return nil, err
  2409  		}
  2410  		return b[:n], nil
  2411  	}
  2412  }
  2413  func (m *ResponseLoadSnapshotChunk) XXX_Merge(src proto.Message) {
  2414  	xxx_messageInfo_ResponseLoadSnapshotChunk.Merge(m, src)
  2415  }
  2416  func (m *ResponseLoadSnapshotChunk) XXX_Size() int {
  2417  	return m.Size()
  2418  }
  2419  func (m *ResponseLoadSnapshotChunk) XXX_DiscardUnknown() {
  2420  	xxx_messageInfo_ResponseLoadSnapshotChunk.DiscardUnknown(m)
  2421  }
  2422  
  2423  var xxx_messageInfo_ResponseLoadSnapshotChunk proto.InternalMessageInfo
  2424  
  2425  func (m *ResponseLoadSnapshotChunk) GetChunk() []byte {
  2426  	if m != nil {
  2427  		return m.Chunk
  2428  	}
  2429  	return nil
  2430  }
  2431  
  2432  type ResponseApplySnapshotChunk struct {
  2433  	Result        ResponseApplySnapshotChunk_Result `protobuf:"varint,1,opt,name=result,proto3,enum=tendermint.abci.ResponseApplySnapshotChunk_Result" json:"result,omitempty"`
  2434  	RefetchChunks []uint32                          `protobuf:"varint,2,rep,packed,name=refetch_chunks,json=refetchChunks,proto3" json:"refetch_chunks,omitempty"`
  2435  	RejectSenders []string                          `protobuf:"bytes,3,rep,name=reject_senders,json=rejectSenders,proto3" json:"reject_senders,omitempty"`
  2436  }
  2437  
  2438  func (m *ResponseApplySnapshotChunk) Reset()         { *m = ResponseApplySnapshotChunk{} }
  2439  func (m *ResponseApplySnapshotChunk) String() string { return proto.CompactTextString(m) }
  2440  func (*ResponseApplySnapshotChunk) ProtoMessage()    {}
  2441  func (*ResponseApplySnapshotChunk) Descriptor() ([]byte, []int) {
  2442  	return fileDescriptor_252557cfdd89a31a, []int{32}
  2443  }
  2444  func (m *ResponseApplySnapshotChunk) XXX_Unmarshal(b []byte) error {
  2445  	return m.Unmarshal(b)
  2446  }
  2447  func (m *ResponseApplySnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2448  	if deterministic {
  2449  		return xxx_messageInfo_ResponseApplySnapshotChunk.Marshal(b, m, deterministic)
  2450  	} else {
  2451  		b = b[:cap(b)]
  2452  		n, err := m.MarshalToSizedBuffer(b)
  2453  		if err != nil {
  2454  			return nil, err
  2455  		}
  2456  		return b[:n], nil
  2457  	}
  2458  }
  2459  func (m *ResponseApplySnapshotChunk) XXX_Merge(src proto.Message) {
  2460  	xxx_messageInfo_ResponseApplySnapshotChunk.Merge(m, src)
  2461  }
  2462  func (m *ResponseApplySnapshotChunk) XXX_Size() int {
  2463  	return m.Size()
  2464  }
  2465  func (m *ResponseApplySnapshotChunk) XXX_DiscardUnknown() {
  2466  	xxx_messageInfo_ResponseApplySnapshotChunk.DiscardUnknown(m)
  2467  }
  2468  
  2469  var xxx_messageInfo_ResponseApplySnapshotChunk proto.InternalMessageInfo
  2470  
  2471  func (m *ResponseApplySnapshotChunk) GetResult() ResponseApplySnapshotChunk_Result {
  2472  	if m != nil {
  2473  		return m.Result
  2474  	}
  2475  	return ResponseApplySnapshotChunk_UNKNOWN
  2476  }
  2477  
  2478  func (m *ResponseApplySnapshotChunk) GetRefetchChunks() []uint32 {
  2479  	if m != nil {
  2480  		return m.RefetchChunks
  2481  	}
  2482  	return nil
  2483  }
  2484  
  2485  func (m *ResponseApplySnapshotChunk) GetRejectSenders() []string {
  2486  	if m != nil {
  2487  		return m.RejectSenders
  2488  	}
  2489  	return nil
  2490  }
  2491  
  2492  // ConsensusParams contains all consensus-relevant parameters
  2493  // that can be adjusted by the abci app
  2494  type ConsensusParams struct {
  2495  	Block     *BlockParams            `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
  2496  	Evidence  *types1.EvidenceParams  `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"`
  2497  	Validator *types1.ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"`
  2498  	Version   *types1.VersionParams   `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
  2499  }
  2500  
  2501  func (m *ConsensusParams) Reset()         { *m = ConsensusParams{} }
  2502  func (m *ConsensusParams) String() string { return proto.CompactTextString(m) }
  2503  func (*ConsensusParams) ProtoMessage()    {}
  2504  func (*ConsensusParams) Descriptor() ([]byte, []int) {
  2505  	return fileDescriptor_252557cfdd89a31a, []int{33}
  2506  }
  2507  func (m *ConsensusParams) XXX_Unmarshal(b []byte) error {
  2508  	return m.Unmarshal(b)
  2509  }
  2510  func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2511  	if deterministic {
  2512  		return xxx_messageInfo_ConsensusParams.Marshal(b, m, deterministic)
  2513  	} else {
  2514  		b = b[:cap(b)]
  2515  		n, err := m.MarshalToSizedBuffer(b)
  2516  		if err != nil {
  2517  			return nil, err
  2518  		}
  2519  		return b[:n], nil
  2520  	}
  2521  }
  2522  func (m *ConsensusParams) XXX_Merge(src proto.Message) {
  2523  	xxx_messageInfo_ConsensusParams.Merge(m, src)
  2524  }
  2525  func (m *ConsensusParams) XXX_Size() int {
  2526  	return m.Size()
  2527  }
  2528  func (m *ConsensusParams) XXX_DiscardUnknown() {
  2529  	xxx_messageInfo_ConsensusParams.DiscardUnknown(m)
  2530  }
  2531  
  2532  var xxx_messageInfo_ConsensusParams proto.InternalMessageInfo
  2533  
  2534  func (m *ConsensusParams) GetBlock() *BlockParams {
  2535  	if m != nil {
  2536  		return m.Block
  2537  	}
  2538  	return nil
  2539  }
  2540  
  2541  func (m *ConsensusParams) GetEvidence() *types1.EvidenceParams {
  2542  	if m != nil {
  2543  		return m.Evidence
  2544  	}
  2545  	return nil
  2546  }
  2547  
  2548  func (m *ConsensusParams) GetValidator() *types1.ValidatorParams {
  2549  	if m != nil {
  2550  		return m.Validator
  2551  	}
  2552  	return nil
  2553  }
  2554  
  2555  func (m *ConsensusParams) GetVersion() *types1.VersionParams {
  2556  	if m != nil {
  2557  		return m.Version
  2558  	}
  2559  	return nil
  2560  }
  2561  
  2562  // BlockParams contains limits on the block size.
  2563  type BlockParams struct {
  2564  	// Note: must be greater than 0
  2565  	MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
  2566  	// Note: must be greater or equal to -1
  2567  	MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`
  2568  }
  2569  
  2570  func (m *BlockParams) Reset()         { *m = BlockParams{} }
  2571  func (m *BlockParams) String() string { return proto.CompactTextString(m) }
  2572  func (*BlockParams) ProtoMessage()    {}
  2573  func (*BlockParams) Descriptor() ([]byte, []int) {
  2574  	return fileDescriptor_252557cfdd89a31a, []int{34}
  2575  }
  2576  func (m *BlockParams) XXX_Unmarshal(b []byte) error {
  2577  	return m.Unmarshal(b)
  2578  }
  2579  func (m *BlockParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2580  	if deterministic {
  2581  		return xxx_messageInfo_BlockParams.Marshal(b, m, deterministic)
  2582  	} else {
  2583  		b = b[:cap(b)]
  2584  		n, err := m.MarshalToSizedBuffer(b)
  2585  		if err != nil {
  2586  			return nil, err
  2587  		}
  2588  		return b[:n], nil
  2589  	}
  2590  }
  2591  func (m *BlockParams) XXX_Merge(src proto.Message) {
  2592  	xxx_messageInfo_BlockParams.Merge(m, src)
  2593  }
  2594  func (m *BlockParams) XXX_Size() int {
  2595  	return m.Size()
  2596  }
  2597  func (m *BlockParams) XXX_DiscardUnknown() {
  2598  	xxx_messageInfo_BlockParams.DiscardUnknown(m)
  2599  }
  2600  
  2601  var xxx_messageInfo_BlockParams proto.InternalMessageInfo
  2602  
  2603  func (m *BlockParams) GetMaxBytes() int64 {
  2604  	if m != nil {
  2605  		return m.MaxBytes
  2606  	}
  2607  	return 0
  2608  }
  2609  
  2610  func (m *BlockParams) GetMaxGas() int64 {
  2611  	if m != nil {
  2612  		return m.MaxGas
  2613  	}
  2614  	return 0
  2615  }
  2616  
  2617  type LastCommitInfo struct {
  2618  	Round int32      `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
  2619  	Votes []VoteInfo `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes"`
  2620  }
  2621  
  2622  func (m *LastCommitInfo) Reset()         { *m = LastCommitInfo{} }
  2623  func (m *LastCommitInfo) String() string { return proto.CompactTextString(m) }
  2624  func (*LastCommitInfo) ProtoMessage()    {}
  2625  func (*LastCommitInfo) Descriptor() ([]byte, []int) {
  2626  	return fileDescriptor_252557cfdd89a31a, []int{35}
  2627  }
  2628  func (m *LastCommitInfo) XXX_Unmarshal(b []byte) error {
  2629  	return m.Unmarshal(b)
  2630  }
  2631  func (m *LastCommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2632  	if deterministic {
  2633  		return xxx_messageInfo_LastCommitInfo.Marshal(b, m, deterministic)
  2634  	} else {
  2635  		b = b[:cap(b)]
  2636  		n, err := m.MarshalToSizedBuffer(b)
  2637  		if err != nil {
  2638  			return nil, err
  2639  		}
  2640  		return b[:n], nil
  2641  	}
  2642  }
  2643  func (m *LastCommitInfo) XXX_Merge(src proto.Message) {
  2644  	xxx_messageInfo_LastCommitInfo.Merge(m, src)
  2645  }
  2646  func (m *LastCommitInfo) XXX_Size() int {
  2647  	return m.Size()
  2648  }
  2649  func (m *LastCommitInfo) XXX_DiscardUnknown() {
  2650  	xxx_messageInfo_LastCommitInfo.DiscardUnknown(m)
  2651  }
  2652  
  2653  var xxx_messageInfo_LastCommitInfo proto.InternalMessageInfo
  2654  
  2655  func (m *LastCommitInfo) GetRound() int32 {
  2656  	if m != nil {
  2657  		return m.Round
  2658  	}
  2659  	return 0
  2660  }
  2661  
  2662  func (m *LastCommitInfo) GetVotes() []VoteInfo {
  2663  	if m != nil {
  2664  		return m.Votes
  2665  	}
  2666  	return nil
  2667  }
  2668  
  2669  // Event allows application developers to attach additional information to
  2670  // ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx.
  2671  // Later, transactions may be queried using these events.
  2672  type Event struct {
  2673  	Type       string           `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  2674  	Attributes []EventAttribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"`
  2675  }
  2676  
  2677  func (m *Event) Reset()         { *m = Event{} }
  2678  func (m *Event) String() string { return proto.CompactTextString(m) }
  2679  func (*Event) ProtoMessage()    {}
  2680  func (*Event) Descriptor() ([]byte, []int) {
  2681  	return fileDescriptor_252557cfdd89a31a, []int{36}
  2682  }
  2683  func (m *Event) XXX_Unmarshal(b []byte) error {
  2684  	return m.Unmarshal(b)
  2685  }
  2686  func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2687  	if deterministic {
  2688  		return xxx_messageInfo_Event.Marshal(b, m, deterministic)
  2689  	} else {
  2690  		b = b[:cap(b)]
  2691  		n, err := m.MarshalToSizedBuffer(b)
  2692  		if err != nil {
  2693  			return nil, err
  2694  		}
  2695  		return b[:n], nil
  2696  	}
  2697  }
  2698  func (m *Event) XXX_Merge(src proto.Message) {
  2699  	xxx_messageInfo_Event.Merge(m, src)
  2700  }
  2701  func (m *Event) XXX_Size() int {
  2702  	return m.Size()
  2703  }
  2704  func (m *Event) XXX_DiscardUnknown() {
  2705  	xxx_messageInfo_Event.DiscardUnknown(m)
  2706  }
  2707  
  2708  var xxx_messageInfo_Event proto.InternalMessageInfo
  2709  
  2710  func (m *Event) GetType() string {
  2711  	if m != nil {
  2712  		return m.Type
  2713  	}
  2714  	return ""
  2715  }
  2716  
  2717  func (m *Event) GetAttributes() []EventAttribute {
  2718  	if m != nil {
  2719  		return m.Attributes
  2720  	}
  2721  	return nil
  2722  }
  2723  
  2724  // EventAttribute is a single key-value pair, associated with an event.
  2725  type EventAttribute struct {
  2726  	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  2727  	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  2728  	Index bool   `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
  2729  }
  2730  
  2731  func (m *EventAttribute) Reset()         { *m = EventAttribute{} }
  2732  func (m *EventAttribute) String() string { return proto.CompactTextString(m) }
  2733  func (*EventAttribute) ProtoMessage()    {}
  2734  func (*EventAttribute) Descriptor() ([]byte, []int) {
  2735  	return fileDescriptor_252557cfdd89a31a, []int{37}
  2736  }
  2737  func (m *EventAttribute) XXX_Unmarshal(b []byte) error {
  2738  	return m.Unmarshal(b)
  2739  }
  2740  func (m *EventAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2741  	if deterministic {
  2742  		return xxx_messageInfo_EventAttribute.Marshal(b, m, deterministic)
  2743  	} else {
  2744  		b = b[:cap(b)]
  2745  		n, err := m.MarshalToSizedBuffer(b)
  2746  		if err != nil {
  2747  			return nil, err
  2748  		}
  2749  		return b[:n], nil
  2750  	}
  2751  }
  2752  func (m *EventAttribute) XXX_Merge(src proto.Message) {
  2753  	xxx_messageInfo_EventAttribute.Merge(m, src)
  2754  }
  2755  func (m *EventAttribute) XXX_Size() int {
  2756  	return m.Size()
  2757  }
  2758  func (m *EventAttribute) XXX_DiscardUnknown() {
  2759  	xxx_messageInfo_EventAttribute.DiscardUnknown(m)
  2760  }
  2761  
  2762  var xxx_messageInfo_EventAttribute proto.InternalMessageInfo
  2763  
  2764  func (m *EventAttribute) GetKey() []byte {
  2765  	if m != nil {
  2766  		return m.Key
  2767  	}
  2768  	return nil
  2769  }
  2770  
  2771  func (m *EventAttribute) GetValue() []byte {
  2772  	if m != nil {
  2773  		return m.Value
  2774  	}
  2775  	return nil
  2776  }
  2777  
  2778  func (m *EventAttribute) GetIndex() bool {
  2779  	if m != nil {
  2780  		return m.Index
  2781  	}
  2782  	return false
  2783  }
  2784  
  2785  // TxResult contains results of executing the transaction.
  2786  //
  2787  // One usage is indexing transaction results.
  2788  type TxResult struct {
  2789  	Height int64             `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  2790  	Index  uint32            `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
  2791  	Tx     []byte            `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
  2792  	Result ResponseDeliverTx `protobuf:"bytes,4,opt,name=result,proto3" json:"result"`
  2793  }
  2794  
  2795  func (m *TxResult) Reset()         { *m = TxResult{} }
  2796  func (m *TxResult) String() string { return proto.CompactTextString(m) }
  2797  func (*TxResult) ProtoMessage()    {}
  2798  func (*TxResult) Descriptor() ([]byte, []int) {
  2799  	return fileDescriptor_252557cfdd89a31a, []int{38}
  2800  }
  2801  func (m *TxResult) XXX_Unmarshal(b []byte) error {
  2802  	return m.Unmarshal(b)
  2803  }
  2804  func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2805  	if deterministic {
  2806  		return xxx_messageInfo_TxResult.Marshal(b, m, deterministic)
  2807  	} else {
  2808  		b = b[:cap(b)]
  2809  		n, err := m.MarshalToSizedBuffer(b)
  2810  		if err != nil {
  2811  			return nil, err
  2812  		}
  2813  		return b[:n], nil
  2814  	}
  2815  }
  2816  func (m *TxResult) XXX_Merge(src proto.Message) {
  2817  	xxx_messageInfo_TxResult.Merge(m, src)
  2818  }
  2819  func (m *TxResult) XXX_Size() int {
  2820  	return m.Size()
  2821  }
  2822  func (m *TxResult) XXX_DiscardUnknown() {
  2823  	xxx_messageInfo_TxResult.DiscardUnknown(m)
  2824  }
  2825  
  2826  var xxx_messageInfo_TxResult proto.InternalMessageInfo
  2827  
  2828  func (m *TxResult) GetHeight() int64 {
  2829  	if m != nil {
  2830  		return m.Height
  2831  	}
  2832  	return 0
  2833  }
  2834  
  2835  func (m *TxResult) GetIndex() uint32 {
  2836  	if m != nil {
  2837  		return m.Index
  2838  	}
  2839  	return 0
  2840  }
  2841  
  2842  func (m *TxResult) GetTx() []byte {
  2843  	if m != nil {
  2844  		return m.Tx
  2845  	}
  2846  	return nil
  2847  }
  2848  
  2849  func (m *TxResult) GetResult() ResponseDeliverTx {
  2850  	if m != nil {
  2851  		return m.Result
  2852  	}
  2853  	return ResponseDeliverTx{}
  2854  }
  2855  
  2856  // Validator
  2857  type Validator struct {
  2858  	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  2859  	// PubKey pub_key = 2 [(gogoproto.nullable)=false];
  2860  	Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"`
  2861  }
  2862  
  2863  func (m *Validator) Reset()         { *m = Validator{} }
  2864  func (m *Validator) String() string { return proto.CompactTextString(m) }
  2865  func (*Validator) ProtoMessage()    {}
  2866  func (*Validator) Descriptor() ([]byte, []int) {
  2867  	return fileDescriptor_252557cfdd89a31a, []int{39}
  2868  }
  2869  func (m *Validator) XXX_Unmarshal(b []byte) error {
  2870  	return m.Unmarshal(b)
  2871  }
  2872  func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2873  	if deterministic {
  2874  		return xxx_messageInfo_Validator.Marshal(b, m, deterministic)
  2875  	} else {
  2876  		b = b[:cap(b)]
  2877  		n, err := m.MarshalToSizedBuffer(b)
  2878  		if err != nil {
  2879  			return nil, err
  2880  		}
  2881  		return b[:n], nil
  2882  	}
  2883  }
  2884  func (m *Validator) XXX_Merge(src proto.Message) {
  2885  	xxx_messageInfo_Validator.Merge(m, src)
  2886  }
  2887  func (m *Validator) XXX_Size() int {
  2888  	return m.Size()
  2889  }
  2890  func (m *Validator) XXX_DiscardUnknown() {
  2891  	xxx_messageInfo_Validator.DiscardUnknown(m)
  2892  }
  2893  
  2894  var xxx_messageInfo_Validator proto.InternalMessageInfo
  2895  
  2896  func (m *Validator) GetAddress() []byte {
  2897  	if m != nil {
  2898  		return m.Address
  2899  	}
  2900  	return nil
  2901  }
  2902  
  2903  func (m *Validator) GetPower() int64 {
  2904  	if m != nil {
  2905  		return m.Power
  2906  	}
  2907  	return 0
  2908  }
  2909  
  2910  // ValidatorUpdate
  2911  type ValidatorUpdate struct {
  2912  	PubKey crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
  2913  	Power  int64            `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
  2914  }
  2915  
  2916  func (m *ValidatorUpdate) Reset()         { *m = ValidatorUpdate{} }
  2917  func (m *ValidatorUpdate) String() string { return proto.CompactTextString(m) }
  2918  func (*ValidatorUpdate) ProtoMessage()    {}
  2919  func (*ValidatorUpdate) Descriptor() ([]byte, []int) {
  2920  	return fileDescriptor_252557cfdd89a31a, []int{40}
  2921  }
  2922  func (m *ValidatorUpdate) XXX_Unmarshal(b []byte) error {
  2923  	return m.Unmarshal(b)
  2924  }
  2925  func (m *ValidatorUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2926  	if deterministic {
  2927  		return xxx_messageInfo_ValidatorUpdate.Marshal(b, m, deterministic)
  2928  	} else {
  2929  		b = b[:cap(b)]
  2930  		n, err := m.MarshalToSizedBuffer(b)
  2931  		if err != nil {
  2932  			return nil, err
  2933  		}
  2934  		return b[:n], nil
  2935  	}
  2936  }
  2937  func (m *ValidatorUpdate) XXX_Merge(src proto.Message) {
  2938  	xxx_messageInfo_ValidatorUpdate.Merge(m, src)
  2939  }
  2940  func (m *ValidatorUpdate) XXX_Size() int {
  2941  	return m.Size()
  2942  }
  2943  func (m *ValidatorUpdate) XXX_DiscardUnknown() {
  2944  	xxx_messageInfo_ValidatorUpdate.DiscardUnknown(m)
  2945  }
  2946  
  2947  var xxx_messageInfo_ValidatorUpdate proto.InternalMessageInfo
  2948  
  2949  func (m *ValidatorUpdate) GetPubKey() crypto.PublicKey {
  2950  	if m != nil {
  2951  		return m.PubKey
  2952  	}
  2953  	return crypto.PublicKey{}
  2954  }
  2955  
  2956  func (m *ValidatorUpdate) GetPower() int64 {
  2957  	if m != nil {
  2958  		return m.Power
  2959  	}
  2960  	return 0
  2961  }
  2962  
  2963  // VoteInfo
  2964  type VoteInfo struct {
  2965  	Validator       Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
  2966  	SignedLastBlock bool      `protobuf:"varint,2,opt,name=signed_last_block,json=signedLastBlock,proto3" json:"signed_last_block,omitempty"`
  2967  }
  2968  
  2969  func (m *VoteInfo) Reset()         { *m = VoteInfo{} }
  2970  func (m *VoteInfo) String() string { return proto.CompactTextString(m) }
  2971  func (*VoteInfo) ProtoMessage()    {}
  2972  func (*VoteInfo) Descriptor() ([]byte, []int) {
  2973  	return fileDescriptor_252557cfdd89a31a, []int{41}
  2974  }
  2975  func (m *VoteInfo) XXX_Unmarshal(b []byte) error {
  2976  	return m.Unmarshal(b)
  2977  }
  2978  func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2979  	if deterministic {
  2980  		return xxx_messageInfo_VoteInfo.Marshal(b, m, deterministic)
  2981  	} else {
  2982  		b = b[:cap(b)]
  2983  		n, err := m.MarshalToSizedBuffer(b)
  2984  		if err != nil {
  2985  			return nil, err
  2986  		}
  2987  		return b[:n], nil
  2988  	}
  2989  }
  2990  func (m *VoteInfo) XXX_Merge(src proto.Message) {
  2991  	xxx_messageInfo_VoteInfo.Merge(m, src)
  2992  }
  2993  func (m *VoteInfo) XXX_Size() int {
  2994  	return m.Size()
  2995  }
  2996  func (m *VoteInfo) XXX_DiscardUnknown() {
  2997  	xxx_messageInfo_VoteInfo.DiscardUnknown(m)
  2998  }
  2999  
  3000  var xxx_messageInfo_VoteInfo proto.InternalMessageInfo
  3001  
  3002  func (m *VoteInfo) GetValidator() Validator {
  3003  	if m != nil {
  3004  		return m.Validator
  3005  	}
  3006  	return Validator{}
  3007  }
  3008  
  3009  func (m *VoteInfo) GetSignedLastBlock() bool {
  3010  	if m != nil {
  3011  		return m.SignedLastBlock
  3012  	}
  3013  	return false
  3014  }
  3015  
  3016  type Evidence struct {
  3017  	Type EvidenceType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.abci.EvidenceType" json:"type,omitempty"`
  3018  	// The offending validator
  3019  	Validator Validator `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator"`
  3020  	// The height when the offense occurred
  3021  	Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
  3022  	// The corresponding time where the offense occurred
  3023  	Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"`
  3024  	// Total voting power of the validator set in case the ABCI application does
  3025  	// not store historical validators.
  3026  	// https://github.com/tendermint/tendermint/issues/4581
  3027  	TotalVotingPower int64 `protobuf:"varint,5,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
  3028  }
  3029  
  3030  func (m *Evidence) Reset()         { *m = Evidence{} }
  3031  func (m *Evidence) String() string { return proto.CompactTextString(m) }
  3032  func (*Evidence) ProtoMessage()    {}
  3033  func (*Evidence) Descriptor() ([]byte, []int) {
  3034  	return fileDescriptor_252557cfdd89a31a, []int{42}
  3035  }
  3036  func (m *Evidence) XXX_Unmarshal(b []byte) error {
  3037  	return m.Unmarshal(b)
  3038  }
  3039  func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3040  	if deterministic {
  3041  		return xxx_messageInfo_Evidence.Marshal(b, m, deterministic)
  3042  	} else {
  3043  		b = b[:cap(b)]
  3044  		n, err := m.MarshalToSizedBuffer(b)
  3045  		if err != nil {
  3046  			return nil, err
  3047  		}
  3048  		return b[:n], nil
  3049  	}
  3050  }
  3051  func (m *Evidence) XXX_Merge(src proto.Message) {
  3052  	xxx_messageInfo_Evidence.Merge(m, src)
  3053  }
  3054  func (m *Evidence) XXX_Size() int {
  3055  	return m.Size()
  3056  }
  3057  func (m *Evidence) XXX_DiscardUnknown() {
  3058  	xxx_messageInfo_Evidence.DiscardUnknown(m)
  3059  }
  3060  
  3061  var xxx_messageInfo_Evidence proto.InternalMessageInfo
  3062  
  3063  func (m *Evidence) GetType() EvidenceType {
  3064  	if m != nil {
  3065  		return m.Type
  3066  	}
  3067  	return EvidenceType_UNKNOWN
  3068  }
  3069  
  3070  func (m *Evidence) GetValidator() Validator {
  3071  	if m != nil {
  3072  		return m.Validator
  3073  	}
  3074  	return Validator{}
  3075  }
  3076  
  3077  func (m *Evidence) GetHeight() int64 {
  3078  	if m != nil {
  3079  		return m.Height
  3080  	}
  3081  	return 0
  3082  }
  3083  
  3084  func (m *Evidence) GetTime() time.Time {
  3085  	if m != nil {
  3086  		return m.Time
  3087  	}
  3088  	return time.Time{}
  3089  }
  3090  
  3091  func (m *Evidence) GetTotalVotingPower() int64 {
  3092  	if m != nil {
  3093  		return m.TotalVotingPower
  3094  	}
  3095  	return 0
  3096  }
  3097  
  3098  type Snapshot struct {
  3099  	Height   uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  3100  	Format   uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
  3101  	Chunks   uint32 `protobuf:"varint,3,opt,name=chunks,proto3" json:"chunks,omitempty"`
  3102  	Hash     []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
  3103  	Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
  3104  }
  3105  
  3106  func (m *Snapshot) Reset()         { *m = Snapshot{} }
  3107  func (m *Snapshot) String() string { return proto.CompactTextString(m) }
  3108  func (*Snapshot) ProtoMessage()    {}
  3109  func (*Snapshot) Descriptor() ([]byte, []int) {
  3110  	return fileDescriptor_252557cfdd89a31a, []int{43}
  3111  }
  3112  func (m *Snapshot) XXX_Unmarshal(b []byte) error {
  3113  	return m.Unmarshal(b)
  3114  }
  3115  func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3116  	if deterministic {
  3117  		return xxx_messageInfo_Snapshot.Marshal(b, m, deterministic)
  3118  	} else {
  3119  		b = b[:cap(b)]
  3120  		n, err := m.MarshalToSizedBuffer(b)
  3121  		if err != nil {
  3122  			return nil, err
  3123  		}
  3124  		return b[:n], nil
  3125  	}
  3126  }
  3127  func (m *Snapshot) XXX_Merge(src proto.Message) {
  3128  	xxx_messageInfo_Snapshot.Merge(m, src)
  3129  }
  3130  func (m *Snapshot) XXX_Size() int {
  3131  	return m.Size()
  3132  }
  3133  func (m *Snapshot) XXX_DiscardUnknown() {
  3134  	xxx_messageInfo_Snapshot.DiscardUnknown(m)
  3135  }
  3136  
  3137  var xxx_messageInfo_Snapshot proto.InternalMessageInfo
  3138  
  3139  func (m *Snapshot) GetHeight() uint64 {
  3140  	if m != nil {
  3141  		return m.Height
  3142  	}
  3143  	return 0
  3144  }
  3145  
  3146  func (m *Snapshot) GetFormat() uint32 {
  3147  	if m != nil {
  3148  		return m.Format
  3149  	}
  3150  	return 0
  3151  }
  3152  
  3153  func (m *Snapshot) GetChunks() uint32 {
  3154  	if m != nil {
  3155  		return m.Chunks
  3156  	}
  3157  	return 0
  3158  }
  3159  
  3160  func (m *Snapshot) GetHash() []byte {
  3161  	if m != nil {
  3162  		return m.Hash
  3163  	}
  3164  	return nil
  3165  }
  3166  
  3167  func (m *Snapshot) GetMetadata() []byte {
  3168  	if m != nil {
  3169  		return m.Metadata
  3170  	}
  3171  	return nil
  3172  }
  3173  
  3174  func init() {
  3175  	proto.RegisterEnum("tendermint.abci.CheckTxType", CheckTxType_name, CheckTxType_value)
  3176  	proto.RegisterEnum("tendermint.abci.EvidenceType", EvidenceType_name, EvidenceType_value)
  3177  	proto.RegisterEnum("tendermint.abci.ResponseOfferSnapshot_Result", ResponseOfferSnapshot_Result_name, ResponseOfferSnapshot_Result_value)
  3178  	proto.RegisterEnum("tendermint.abci.ResponseApplySnapshotChunk_Result", ResponseApplySnapshotChunk_Result_name, ResponseApplySnapshotChunk_Result_value)
  3179  	proto.RegisterType((*Request)(nil), "tendermint.abci.Request")
  3180  	proto.RegisterType((*RequestEcho)(nil), "tendermint.abci.RequestEcho")
  3181  	proto.RegisterType((*RequestFlush)(nil), "tendermint.abci.RequestFlush")
  3182  	proto.RegisterType((*RequestInfo)(nil), "tendermint.abci.RequestInfo")
  3183  	proto.RegisterType((*RequestSetOption)(nil), "tendermint.abci.RequestSetOption")
  3184  	proto.RegisterType((*RequestInitChain)(nil), "tendermint.abci.RequestInitChain")
  3185  	proto.RegisterType((*RequestQuery)(nil), "tendermint.abci.RequestQuery")
  3186  	proto.RegisterType((*RequestBeginBlock)(nil), "tendermint.abci.RequestBeginBlock")
  3187  	proto.RegisterType((*RequestCheckTx)(nil), "tendermint.abci.RequestCheckTx")
  3188  	proto.RegisterType((*RequestDeliverTx)(nil), "tendermint.abci.RequestDeliverTx")
  3189  	proto.RegisterType((*RequestEndBlock)(nil), "tendermint.abci.RequestEndBlock")
  3190  	proto.RegisterType((*RequestCommit)(nil), "tendermint.abci.RequestCommit")
  3191  	proto.RegisterType((*RequestListSnapshots)(nil), "tendermint.abci.RequestListSnapshots")
  3192  	proto.RegisterType((*RequestOfferSnapshot)(nil), "tendermint.abci.RequestOfferSnapshot")
  3193  	proto.RegisterType((*RequestLoadSnapshotChunk)(nil), "tendermint.abci.RequestLoadSnapshotChunk")
  3194  	proto.RegisterType((*RequestApplySnapshotChunk)(nil), "tendermint.abci.RequestApplySnapshotChunk")
  3195  	proto.RegisterType((*Response)(nil), "tendermint.abci.Response")
  3196  	proto.RegisterType((*ResponseException)(nil), "tendermint.abci.ResponseException")
  3197  	proto.RegisterType((*ResponseEcho)(nil), "tendermint.abci.ResponseEcho")
  3198  	proto.RegisterType((*ResponseFlush)(nil), "tendermint.abci.ResponseFlush")
  3199  	proto.RegisterType((*ResponseInfo)(nil), "tendermint.abci.ResponseInfo")
  3200  	proto.RegisterType((*ResponseSetOption)(nil), "tendermint.abci.ResponseSetOption")
  3201  	proto.RegisterType((*ResponseInitChain)(nil), "tendermint.abci.ResponseInitChain")
  3202  	proto.RegisterType((*ResponseQuery)(nil), "tendermint.abci.ResponseQuery")
  3203  	proto.RegisterType((*ResponseBeginBlock)(nil), "tendermint.abci.ResponseBeginBlock")
  3204  	proto.RegisterType((*ResponseCheckTx)(nil), "tendermint.abci.ResponseCheckTx")
  3205  	proto.RegisterType((*ResponseDeliverTx)(nil), "tendermint.abci.ResponseDeliverTx")
  3206  	proto.RegisterType((*ResponseEndBlock)(nil), "tendermint.abci.ResponseEndBlock")
  3207  	proto.RegisterType((*ResponseCommit)(nil), "tendermint.abci.ResponseCommit")
  3208  	proto.RegisterType((*ResponseListSnapshots)(nil), "tendermint.abci.ResponseListSnapshots")
  3209  	proto.RegisterType((*ResponseOfferSnapshot)(nil), "tendermint.abci.ResponseOfferSnapshot")
  3210  	proto.RegisterType((*ResponseLoadSnapshotChunk)(nil), "tendermint.abci.ResponseLoadSnapshotChunk")
  3211  	proto.RegisterType((*ResponseApplySnapshotChunk)(nil), "tendermint.abci.ResponseApplySnapshotChunk")
  3212  	proto.RegisterType((*ConsensusParams)(nil), "tendermint.abci.ConsensusParams")
  3213  	proto.RegisterType((*BlockParams)(nil), "tendermint.abci.BlockParams")
  3214  	proto.RegisterType((*LastCommitInfo)(nil), "tendermint.abci.LastCommitInfo")
  3215  	proto.RegisterType((*Event)(nil), "tendermint.abci.Event")
  3216  	proto.RegisterType((*EventAttribute)(nil), "tendermint.abci.EventAttribute")
  3217  	proto.RegisterType((*TxResult)(nil), "tendermint.abci.TxResult")
  3218  	proto.RegisterType((*Validator)(nil), "tendermint.abci.Validator")
  3219  	proto.RegisterType((*ValidatorUpdate)(nil), "tendermint.abci.ValidatorUpdate")
  3220  	proto.RegisterType((*VoteInfo)(nil), "tendermint.abci.VoteInfo")
  3221  	proto.RegisterType((*Evidence)(nil), "tendermint.abci.Evidence")
  3222  	proto.RegisterType((*Snapshot)(nil), "tendermint.abci.Snapshot")
  3223  }
  3224  
  3225  func init() { proto.RegisterFile("tendermint/abci/types.proto", fileDescriptor_252557cfdd89a31a) }
  3226  
  3227  var fileDescriptor_252557cfdd89a31a = []byte{
  3228  	// 2782 bytes of a gzipped FileDescriptorProto
  3229  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x5a, 0x4b, 0x77, 0x23, 0xc5,
  3230  	0xf5, 0xd7, 0x5b, 0xea, 0x2b, 0xeb, 0xe1, 0x1a, 0x33, 0x08, 0x31, 0xd8, 0x43, 0x73, 0xe0, 0x0f,
  3231  	0x03, 0xd8, 0x7f, 0xcc, 0x81, 0x40, 0x20, 0x01, 0x4b, 0x68, 0x90, 0xb1, 0xb1, 0x9c, 0xb6, 0x66,
  3232  	0xc8, 0x8b, 0x69, 0x5a, 0xea, 0xb2, 0xd4, 0x8c, 0xd4, 0xdd, 0x74, 0x97, 0x8c, 0xc5, 0x32, 0x8f,
  3233  	0x0d, 0xd9, 0x90, 0x5d, 0x36, 0x7c, 0x8f, 0xac, 0xb2, 0xc9, 0x86, 0x73, 0xb2, 0x61, 0x99, 0x45,
  3234  	0x0e, 0xc9, 0x99, 0x39, 0xd9, 0xe4, 0x0b, 0x64, 0x95, 0x93, 0x9c, 0x7a, 0xf4, 0x4b, 0x52, 0x4b,
  3235  	0x32, 0x64, 0x97, 0x5d, 0xd5, 0xed, 0x7b, 0x6f, 0xab, 0xaa, 0xeb, 0xfe, 0xee, 0xef, 0xde, 0x12,
  3236  	0x3c, 0x4e, 0xb0, 0xa9, 0x63, 0x67, 0x6c, 0x98, 0x64, 0x4f, 0xeb, 0xf5, 0x8d, 0x3d, 0x32, 0xb5,
  3237  	0xb1, 0xbb, 0x6b, 0x3b, 0x16, 0xb1, 0x50, 0x25, 0x78, 0xb8, 0x4b, 0x1f, 0xd6, 0x9f, 0x08, 0x69,
  3238  	0xf7, 0x9d, 0xa9, 0x4d, 0xac, 0x3d, 0xdb, 0xb1, 0xac, 0x73, 0xae, 0x5f, 0xbf, 0x11, 0x7a, 0xcc,
  3239  	0xfc, 0x84, 0xbd, 0x45, 0x9e, 0x0a, 0xe3, 0xfb, 0x78, 0xea, 0x3d, 0x7d, 0x62, 0xce, 0xd6, 0xd6,
  3240  	0x1c, 0x6d, 0xec, 0x3d, 0xde, 0x19, 0x58, 0xd6, 0x60, 0x84, 0xf7, 0xd8, 0xac, 0x37, 0x39, 0xdf,
  3241  	0x23, 0xc6, 0x18, 0xbb, 0x44, 0x1b, 0xdb, 0x42, 0x61, 0x6b, 0x60, 0x0d, 0x2c, 0x36, 0xdc, 0xa3,
  3242  	0x23, 0x2e, 0x95, 0x7f, 0x5b, 0x80, 0xbc, 0x82, 0x3f, 0x99, 0x60, 0x97, 0xa0, 0x7d, 0xc8, 0xe0,
  3243  	0xfe, 0xd0, 0xaa, 0x25, 0x6f, 0x26, 0x9f, 0x2d, 0xee, 0xdf, 0xd8, 0x9d, 0x59, 0xdc, 0xae, 0xd0,
  3244  	0x6b, 0xf5, 0x87, 0x56, 0x3b, 0xa1, 0x30, 0x5d, 0xf4, 0x0a, 0x64, 0xcf, 0x47, 0x13, 0x77, 0x58,
  3245  	0x4b, 0x31, 0xa3, 0x27, 0xe2, 0x8c, 0x6e, 0x53, 0xa5, 0x76, 0x42, 0xe1, 0xda, 0xf4, 0x55, 0x86,
  3246  	0x79, 0x6e, 0xd5, 0xd2, 0xcb, 0x5f, 0x75, 0x68, 0x9e, 0xb3, 0x57, 0x51, 0x5d, 0xd4, 0x00, 0x70,
  3247  	0x31, 0x51, 0x2d, 0x9b, 0x18, 0x96, 0x59, 0xcb, 0x30, 0xcb, 0x27, 0xe3, 0x2c, 0xcf, 0x30, 0xe9,
  3248  	0x30, 0xc5, 0x76, 0x42, 0x91, 0x5c, 0x6f, 0x42, 0x7d, 0x18, 0xa6, 0x41, 0xd4, 0xfe, 0x50, 0x33,
  3249  	0xcc, 0x5a, 0x76, 0xb9, 0x8f, 0x43, 0xd3, 0x20, 0x4d, 0xaa, 0x48, 0x7d, 0x18, 0xde, 0x84, 0x2e,
  3250  	0xf9, 0x93, 0x09, 0x76, 0xa6, 0xb5, 0xdc, 0xf2, 0x25, 0xff, 0x88, 0x2a, 0xd1, 0x25, 0x33, 0x6d,
  3251  	0xd4, 0x82, 0x62, 0x0f, 0x0f, 0x0c, 0x53, 0xed, 0x8d, 0xac, 0xfe, 0xfd, 0x5a, 0x9e, 0x19, 0xcb,
  3252  	0x71, 0xc6, 0x0d, 0xaa, 0xda, 0xa0, 0x9a, 0xed, 0x84, 0x02, 0x3d, 0x7f, 0x86, 0xde, 0x84, 0x42,
  3253  	0x7f, 0x88, 0xfb, 0xf7, 0x55, 0x72, 0x59, 0x2b, 0x30, 0x1f, 0x3b, 0x71, 0x3e, 0x9a, 0x54, 0xaf,
  3254  	0x7b, 0xd9, 0x4e, 0x28, 0xf9, 0x3e, 0x1f, 0xd2, 0xf5, 0xeb, 0x78, 0x64, 0x5c, 0x60, 0x87, 0xda,
  3255  	0x4b, 0xcb, 0xd7, 0xff, 0x0e, 0xd7, 0x64, 0x1e, 0x24, 0xdd, 0x9b, 0xa0, 0xb7, 0x40, 0xc2, 0xa6,
  3256  	0x2e, 0x96, 0x01, 0xcc, 0xc5, 0xcd, 0xd8, 0xb3, 0x62, 0xea, 0xde, 0x22, 0x0a, 0x58, 0x8c, 0xd1,
  3257  	0x6b, 0x90, 0xeb, 0x5b, 0xe3, 0xb1, 0x41, 0x6a, 0x45, 0x66, 0xbd, 0x1d, 0xbb, 0x00, 0xa6, 0xd5,
  3258  	0x4e, 0x28, 0x42, 0x1f, 0x9d, 0x40, 0x79, 0x64, 0xb8, 0x44, 0x75, 0x4d, 0xcd, 0x76, 0x87, 0x16,
  3259  	0x71, 0x6b, 0x1b, 0xcc, 0xc3, 0xd3, 0x71, 0x1e, 0x8e, 0x0d, 0x97, 0x9c, 0x79, 0xca, 0xed, 0x84,
  3260  	0x52, 0x1a, 0x85, 0x05, 0xd4, 0x9f, 0x75, 0x7e, 0x8e, 0x1d, 0xdf, 0x61, 0xad, 0xb4, 0xdc, 0x5f,
  3261  	0x87, 0x6a, 0x7b, 0xf6, 0xd4, 0x9f, 0x15, 0x16, 0xa0, 0x9f, 0xc1, 0xb5, 0x91, 0xa5, 0xe9, 0xbe,
  3262  	0x3b, 0xb5, 0x3f, 0x9c, 0x98, 0xf7, 0x6b, 0x65, 0xe6, 0xf4, 0xb9, 0xd8, 0x1f, 0x69, 0x69, 0xba,
  3263  	0xe7, 0xa2, 0x49, 0x0d, 0xda, 0x09, 0x65, 0x73, 0x34, 0x2b, 0x44, 0xf7, 0x60, 0x4b, 0xb3, 0xed,
  3264  	0xd1, 0x74, 0xd6, 0x7b, 0x85, 0x79, 0xbf, 0x15, 0xe7, 0xfd, 0x80, 0xda, 0xcc, 0xba, 0x47, 0xda,
  3265  	0x9c, 0xb4, 0x91, 0x87, 0xec, 0x85, 0x36, 0x9a, 0x60, 0xf9, 0xff, 0xa0, 0x18, 0x0a, 0x75, 0x54,
  3266  	0x83, 0xfc, 0x18, 0xbb, 0xae, 0x36, 0xc0, 0x0c, 0x19, 0x24, 0xc5, 0x9b, 0xca, 0x65, 0xd8, 0x08,
  3267  	0x87, 0xb7, 0x3c, 0xf6, 0x0d, 0x69, 0xe0, 0x52, 0xc3, 0x0b, 0xec, 0xb8, 0x34, 0x5a, 0x85, 0xa1,
  3268  	0x98, 0xa2, 0xa7, 0xa0, 0xc4, 0x8e, 0x8f, 0xea, 0x3d, 0xa7, 0xe8, 0x91, 0x51, 0x36, 0x98, 0xf0,
  3269  	0xae, 0x50, 0xda, 0x81, 0xa2, 0xbd, 0x6f, 0xfb, 0x2a, 0x69, 0xa6, 0x02, 0xf6, 0xbe, 0x2d, 0x14,
  3270  	0xe4, 0xef, 0x43, 0x75, 0x36, 0xda, 0x51, 0x15, 0xd2, 0xf7, 0xf1, 0x54, 0xbc, 0x8f, 0x0e, 0xd1,
  3271  	0x96, 0x58, 0x16, 0x7b, 0x87, 0xa4, 0x88, 0x35, 0xfe, 0x29, 0xe5, 0x1b, 0xfb, 0x61, 0x8e, 0x5e,
  3272  	0x83, 0x0c, 0x45, 0x4d, 0x01, 0x80, 0xf5, 0x5d, 0x0e, 0xa9, 0xbb, 0x1e, 0xa4, 0xee, 0x76, 0x3d,
  3273  	0x48, 0x6d, 0x14, 0xbe, 0xfa, 0x66, 0x27, 0xf1, 0xc5, 0x5f, 0x77, 0x92, 0x0a, 0xb3, 0x40, 0x8f,
  3274  	0xd1, 0xa8, 0xd4, 0x0c, 0x53, 0x35, 0x74, 0xf1, 0x9e, 0x3c, 0x9b, 0x1f, 0xea, 0xe8, 0x08, 0xaa,
  3275  	0x7d, 0xcb, 0x74, 0xb1, 0xe9, 0x4e, 0x5c, 0x95, 0x43, 0xb6, 0x80, 0xbd, 0xf9, 0xa8, 0x69, 0x7a,
  3276  	0x8a, 0xa7, 0x4c, 0x4f, 0xa9, 0xf4, 0xa3, 0x02, 0x74, 0x1b, 0xe0, 0x42, 0x1b, 0x19, 0xba, 0x46,
  3277  	0x2c, 0xc7, 0xad, 0x65, 0x6e, 0xa6, 0x17, 0xba, 0xb9, 0xeb, 0xa9, 0xdc, 0xb1, 0x75, 0x8d, 0xe0,
  3278  	0x46, 0x86, 0xfe, 0x5a, 0x25, 0x64, 0x89, 0x9e, 0x81, 0x8a, 0x66, 0xdb, 0xaa, 0x4b, 0x34, 0x82,
  3279  	0xd5, 0xde, 0x94, 0x60, 0x97, 0x81, 0xe1, 0x86, 0x52, 0xd2, 0x6c, 0xfb, 0x8c, 0x4a, 0x1b, 0x54,
  3280  	0x88, 0x9e, 0x86, 0x32, 0x05, 0x3e, 0x43, 0x1b, 0xa9, 0x43, 0x6c, 0x0c, 0x86, 0x84, 0x81, 0x5e,
  3281  	0x5a, 0x29, 0x09, 0x69, 0x9b, 0x09, 0x65, 0xdd, 0x3f, 0x08, 0x0c, 0xf4, 0x10, 0x82, 0x8c, 0xae,
  3282  	0x11, 0x8d, 0x6d, 0xe4, 0x86, 0xc2, 0xc6, 0x54, 0x66, 0x6b, 0x64, 0x28, 0xb6, 0x87, 0x8d, 0xd1,
  3283  	0x75, 0xc8, 0x09, 0xb7, 0x69, 0xe6, 0x56, 0xcc, 0xe8, 0x37, 0xb3, 0x1d, 0xeb, 0x02, 0x33, 0x94,
  3284  	0x2f, 0x28, 0x7c, 0x22, 0xff, 0x2a, 0x05, 0x9b, 0x73, 0xf0, 0x48, 0xfd, 0x0e, 0x35, 0x77, 0xe8,
  3285  	0xbd, 0x8b, 0x8e, 0xd1, 0xab, 0xd4, 0xaf, 0xa6, 0x63, 0x47, 0xa4, 0xa5, 0x5a, 0x78, 0x8b, 0x78,
  3286  	0xca, 0x6d, 0xb3, 0xe7, 0x62, 0x6b, 0x84, 0x36, 0xea, 0x40, 0x75, 0xa4, 0xb9, 0x44, 0xe5, 0x70,
  3287  	0xa3, 0x86, 0x52, 0xd4, 0x3c, 0xc8, 0x1e, 0x6b, 0x1e, 0x40, 0xd1, 0xc3, 0x2e, 0x1c, 0x95, 0x47,
  3288  	0x11, 0x29, 0x52, 0x60, 0xab, 0x37, 0xfd, 0x4c, 0x33, 0x89, 0x61, 0x62, 0x75, 0xee, 0xcb, 0x3d,
  3289  	0x36, 0xe7, 0xb4, 0x75, 0x61, 0xe8, 0xd8, 0xec, 0x7b, 0x9f, 0xec, 0x9a, 0x6f, 0xec, 0x7f, 0x52,
  3290  	0x57, 0x56, 0xa0, 0x1c, 0x05, 0x78, 0x54, 0x86, 0x14, 0xb9, 0x14, 0x1b, 0x90, 0x22, 0x97, 0xe8,
  3291  	0xff, 0x21, 0x43, 0x17, 0xc9, 0x16, 0x5f, 0x5e, 0x90, 0x5d, 0x85, 0x5d, 0x77, 0x6a, 0x63, 0x85,
  3292  	0x69, 0xca, 0xb2, 0x1f, 0x0d, 0x3e, 0xe8, 0xcf, 0x7a, 0x95, 0x9f, 0x83, 0xca, 0x0c, 0xaa, 0x87,
  3293  	0xbe, 0x5f, 0x32, 0xfc, 0xfd, 0xe4, 0x0a, 0x94, 0x22, 0x10, 0x2e, 0x5f, 0x87, 0xad, 0x45, 0x88,
  3294  	0x2c, 0x0f, 0x7d, 0x79, 0x04, 0x59, 0xd1, 0x2b, 0x50, 0xf0, 0x21, 0x99, 0x47, 0xe3, 0xfc, 0x5e,
  3295  	0x79, 0xca, 0x8a, 0xaf, 0x4a, 0xc3, 0x90, 0x1e, 0x6b, 0x76, 0x1e, 0x52, 0xec, 0x87, 0xe7, 0x35,
  3296  	0xdb, 0x6e, 0x6b, 0xee, 0x50, 0xfe, 0x08, 0x6a, 0x71, 0x70, 0x3b, 0xb3, 0x8c, 0x8c, 0x7f, 0x0c,
  3297  	0xaf, 0x43, 0xee, 0xdc, 0x72, 0xc6, 0x1a, 0x61, 0xce, 0x4a, 0x8a, 0x98, 0xd1, 0xe3, 0xc9, 0xa1,
  3298  	0x37, 0xcd, 0xc4, 0x7c, 0x22, 0xab, 0xf0, 0x58, 0x2c, 0xe4, 0x52, 0x13, 0xc3, 0xd4, 0x31, 0xdf,
  3299  	0xcf, 0x92, 0xc2, 0x27, 0x81, 0x23, 0xfe, 0x63, 0xf9, 0x84, 0xbe, 0xd6, 0x65, 0x6b, 0x65, 0xfe,
  3300  	0x25, 0x45, 0xcc, 0xe4, 0xbf, 0x17, 0xa0, 0xa0, 0x60, 0xd7, 0xa6, 0x98, 0x80, 0x1a, 0x20, 0xe1,
  3301  	0xcb, 0x3e, 0xe6, 0x64, 0x28, 0x19, 0x4b, 0x26, 0xb8, 0x76, 0xcb, 0xd3, 0xa4, 0x99, 0xdc, 0x37,
  3302  	0x43, 0x2f, 0x0b, 0xc2, 0x17, 0xcf, 0xdd, 0x84, 0x79, 0x98, 0xf1, 0xbd, 0xea, 0x31, 0xbe, 0x74,
  3303  	0x6c, 0xf2, 0xe6, 0x56, 0x33, 0x94, 0xef, 0x65, 0x41, 0xf9, 0x32, 0x2b, 0x5e, 0x16, 0xe1, 0x7c,
  3304  	0xcd, 0x08, 0xe7, 0xcb, 0xae, 0x58, 0x66, 0x0c, 0xe9, 0x6b, 0x46, 0x48, 0x5f, 0x6e, 0x85, 0x93,
  3305  	0x18, 0xd6, 0xf7, 0xaa, 0xc7, 0xfa, 0xf2, 0x2b, 0x96, 0x3d, 0x43, 0xfb, 0x6e, 0x47, 0x69, 0x1f,
  3306  	0xa7, 0x6c, 0x4f, 0xc5, 0x5a, 0xc7, 0xf2, 0xbe, 0x1f, 0x84, 0x78, 0x9f, 0x14, 0x4b, 0xba, 0xb8,
  3307  	0x93, 0x05, 0xc4, 0xaf, 0x19, 0x21, 0x7e, 0xb0, 0x62, 0x0f, 0x62, 0x98, 0xdf, 0xdb, 0x61, 0xe6,
  3308  	0x57, 0x8c, 0x25, 0x8f, 0xe2, 0xd0, 0x2c, 0xa2, 0x7e, 0xaf, 0xfb, 0xd4, 0x6f, 0x23, 0x96, 0xbb,
  3309  	0x8a, 0x35, 0xcc, 0x72, 0xbf, 0xce, 0x1c, 0xf7, 0xe3, 0x5c, 0xed, 0x99, 0x58, 0x17, 0x2b, 0xc8,
  3310  	0x5f, 0x67, 0x8e, 0xfc, 0x95, 0x57, 0x38, 0x5c, 0xc1, 0xfe, 0x7e, 0xbe, 0x98, 0xfd, 0xc5, 0xf3,
  3311  	0x33, 0xf1, 0x33, 0xd7, 0xa3, 0x7f, 0x6a, 0x0c, 0xfd, 0xab, 0x32, 0xf7, 0xcf, 0xc7, 0xba, 0xbf,
  3312  	0x3a, 0xff, 0x7b, 0x8e, 0xa6, 0xd9, 0x19, 0xe0, 0xa0, 0x50, 0x85, 0x1d, 0xc7, 0x72, 0x04, 0xb5,
  3313  	0xe2, 0x13, 0xf9, 0x59, 0x9a, 0xf8, 0x03, 0x90, 0x58, 0xc2, 0x15, 0x59, 0x4a, 0x08, 0x01, 0x83,
  3314  	0xfc, 0xfb, 0x64, 0x60, 0xcb, 0x72, 0x65, 0x98, 0x34, 0x48, 0x82, 0x34, 0x84, 0x28, 0x64, 0x2a,
  3315  	0x4a, 0x21, 0x77, 0xa0, 0x48, 0xa1, 0x7e, 0x86, 0x1d, 0x6a, 0xb6, 0xc7, 0x0e, 0xd1, 0x2d, 0xd8,
  3316  	0x64, 0xb9, 0x9c, 0x13, 0x4d, 0x81, 0xef, 0x19, 0x96, 0xa6, 0x2a, 0xf4, 0x01, 0x3f, 0x9c, 0x1c,
  3317  	0xe8, 0x5f, 0x84, 0x6b, 0x21, 0x5d, 0x3f, 0x85, 0x70, 0x4a, 0x54, 0xf5, 0xb5, 0x0f, 0x44, 0x2e,
  3318  	0x79, 0x3f, 0xd8, 0xa0, 0x80, 0x79, 0x22, 0xc8, 0xf4, 0x2d, 0x1d, 0x0b, 0x80, 0x67, 0x63, 0xca,
  3319  	0x46, 0x47, 0xd6, 0x40, 0xc0, 0x38, 0x1d, 0x52, 0x2d, 0x1f, 0x05, 0x25, 0x0e, 0x72, 0xf2, 0x1f,
  3320  	0x93, 0x81, 0xbf, 0x80, 0x8c, 0x2e, 0xe2, 0x8d, 0xc9, 0xff, 0x0e, 0x6f, 0x4c, 0x7d, 0x6b, 0xde,
  3321  	0x18, 0x4e, 0xb0, 0xe9, 0x68, 0x82, 0xfd, 0x67, 0x32, 0xf8, 0xc2, 0x3e, 0x0b, 0xfc, 0x76, 0x3b,
  3322  	0x12, 0x64, 0xcb, 0x2c, 0xfb, 0x5e, 0x22, 0x5b, 0x0a, 0x6e, 0x9f, 0x63, 0xef, 0x8d, 0x72, 0xfb,
  3323  	0x3c, 0xcf, 0x9f, 0x6c, 0x82, 0x5e, 0x03, 0x89, 0x35, 0x5d, 0x54, 0xcb, 0x76, 0x05, 0xe0, 0x3e,
  3324  	0x1e, 0x5e, 0x2b, 0xef, 0xad, 0xec, 0x9e, 0x52, 0x9d, 0x8e, 0xed, 0x2a, 0x05, 0x5b, 0x8c, 0x42,
  3325  	0x44, 0x40, 0x8a, 0xf0, 0xd1, 0x1b, 0x20, 0xd1, 0x5f, 0xef, 0xda, 0x5a, 0x1f, 0x33, 0xf0, 0x94,
  3326  	0x94, 0x40, 0x20, 0xdf, 0x03, 0x34, 0x0f, 0xdf, 0xa8, 0x0d, 0x39, 0x7c, 0x81, 0x4d, 0x42, 0xbf,
  3327  	0x1a, 0xdd, 0xee, 0xeb, 0x0b, 0xc8, 0x1e, 0x36, 0x49, 0xa3, 0x46, 0x37, 0xf9, 0x1f, 0xdf, 0xec,
  3328  	0x54, 0xb9, 0xf6, 0x0b, 0xd6, 0xd8, 0x20, 0x78, 0x6c, 0x93, 0xa9, 0x22, 0xec, 0xe5, 0xbf, 0xa4,
  3329  	0x28, 0xf3, 0x8a, 0x40, 0xfb, 0xc2, 0xbd, 0xf5, 0x02, 0x28, 0x15, 0x62, 0xdd, 0xeb, 0xed, 0xf7,
  3330  	0x36, 0xc0, 0x40, 0x73, 0xd5, 0x4f, 0x35, 0x93, 0x60, 0x5d, 0x6c, 0x7a, 0x48, 0x82, 0xea, 0x50,
  3331  	0xa0, 0xb3, 0x89, 0x8b, 0x75, 0x51, 0x00, 0xf8, 0xf3, 0xd0, 0x3a, 0xf3, 0xdf, 0x6d, 0x9d, 0xd1,
  3332  	0x5d, 0x2e, 0xcc, 0xec, 0x72, 0x88, 0x15, 0x49, 0x61, 0x56, 0x44, 0x7f, 0x9b, 0xed, 0x18, 0x96,
  3333  	0x63, 0x90, 0x29, 0xfb, 0x34, 0x69, 0xc5, 0x9f, 0xd3, 0x3a, 0x73, 0x8c, 0xc7, 0xb6, 0x65, 0x8d,
  3334  	0x54, 0x0e, 0x5e, 0x45, 0x66, 0xba, 0x21, 0x84, 0x2d, 0x86, 0x61, 0xbf, 0x4e, 0x05, 0xe1, 0x17,
  3335  	0xb0, 0xdf, 0xff, 0xb9, 0x0d, 0x96, 0x7f, 0xc3, 0x4a, 0xe2, 0x68, 0xf2, 0x46, 0x67, 0xb0, 0xe9,
  3336  	0x87, 0xbf, 0x3a, 0x61, 0xb0, 0xe0, 0x1d, 0xe8, 0x75, 0xf1, 0xa3, 0x7a, 0x11, 0x15, 0xbb, 0xe8,
  3337  	0xc7, 0xf0, 0xe8, 0x0c, 0xb4, 0xf9, 0xae, 0x53, 0x6b, 0x22, 0xdc, 0x23, 0x51, 0x84, 0xf3, 0x3c,
  3338  	0x07, 0x7b, 0x95, 0xfe, 0x8e, 0x41, 0x77, 0x48, 0xab, 0xac, 0x30, 0x15, 0x59, 0xf8, 0xf5, 0x9f,
  3339  	0x82, 0x92, 0x83, 0x09, 0x2d, 0xfc, 0x23, 0x75, 0xec, 0x06, 0x17, 0x8a, 0xea, 0xf8, 0x14, 0x1e,
  3340  	0x59, 0x48, 0x49, 0xd0, 0xf7, 0x40, 0x0a, 0xd8, 0x4c, 0x32, 0xa6, 0x24, 0xf4, 0xcb, 0x9c, 0x40,
  3341  	0x57, 0xfe, 0x43, 0x32, 0x70, 0x19, 0x2d, 0x9c, 0x5a, 0x90, 0x73, 0xb0, 0x3b, 0x19, 0xf1, 0x52,
  3342  	0xa6, 0xbc, 0xff, 0xe2, 0x7a, 0x64, 0x86, 0x4a, 0x27, 0x23, 0xa2, 0x08, 0x63, 0xf9, 0x1e, 0xe4,
  3343  	0xb8, 0x04, 0x15, 0x21, 0x7f, 0xe7, 0xe4, 0xe8, 0xa4, 0xf3, 0xc1, 0x49, 0x35, 0x81, 0x00, 0x72,
  3344  	0x07, 0xcd, 0x66, 0xeb, 0xb4, 0x5b, 0x4d, 0x22, 0x09, 0xb2, 0x07, 0x8d, 0x8e, 0xd2, 0xad, 0xa6,
  3345  	0xa8, 0x58, 0x69, 0xbd, 0xd7, 0x6a, 0x76, 0xab, 0x69, 0xb4, 0x09, 0x25, 0x3e, 0x56, 0x6f, 0x77,
  3346  	0x94, 0xf7, 0x0f, 0xba, 0xd5, 0x4c, 0x48, 0x74, 0xd6, 0x3a, 0x79, 0xa7, 0xa5, 0x54, 0xb3, 0xf2,
  3347  	0x4b, 0xb4, 0x56, 0x8a, 0xa1, 0x3f, 0x41, 0x55, 0x94, 0x0c, 0x55, 0x45, 0xf2, 0xef, 0x52, 0x50,
  3348  	0x8f, 0xe7, 0x34, 0xe8, 0xbd, 0x99, 0x85, 0xef, 0x5f, 0x81, 0x10, 0xcd, 0xac, 0x1e, 0x3d, 0x0d,
  3349  	0x65, 0x07, 0x9f, 0x63, 0xd2, 0x1f, 0x72, 0x8e, 0xc5, 0x33, 0x66, 0x49, 0x29, 0x09, 0x29, 0x33,
  3350  	0x72, 0xb9, 0xda, 0xc7, 0xb8, 0x4f, 0x54, 0x0e, 0x45, 0xfc, 0xd0, 0x49, 0x54, 0x8d, 0x4a, 0xcf,
  3351  	0xb8, 0x50, 0xfe, 0xe8, 0x4a, 0x7b, 0x29, 0x41, 0x56, 0x69, 0x75, 0x95, 0x9f, 0x54, 0xd3, 0x08,
  3352  	0x41, 0x99, 0x0d, 0xd5, 0xb3, 0x93, 0x83, 0xd3, 0xb3, 0x76, 0x87, 0xee, 0xe5, 0x35, 0xa8, 0x78,
  3353  	0x7b, 0xe9, 0x09, 0xb3, 0xf2, 0xbf, 0x93, 0x50, 0x99, 0x09, 0x10, 0xb4, 0x0f, 0x59, 0xce, 0xd3,
  3354  	0xe3, 0xba, 0xf9, 0x2c, 0xbe, 0x45, 0x34, 0x71, 0x55, 0xf4, 0x26, 0x14, 0xb0, 0x68, 0x40, 0x2c,
  3355  	0x0a, 0x44, 0xde, 0x38, 0xf1, 0x5a, 0x14, 0xc2, 0xd4, 0xb7, 0x40, 0x6f, 0x81, 0xe4, 0x47, 0xba,
  3356  	0x28, 0x0e, 0x9f, 0x9c, 0x37, 0xf7, 0x31, 0x42, 0xd8, 0x07, 0x36, 0xe8, 0xf5, 0x80, 0xec, 0x65,
  3357  	0xe6, 0xab, 0x03, 0x61, 0xce, 0x15, 0x84, 0xb1, 0xa7, 0x2f, 0x37, 0xa1, 0x18, 0x5a, 0x0f, 0x7a,
  3358  	0x1c, 0xa4, 0xb1, 0x76, 0x29, 0x1a, 0x5b, 0xbc, 0x35, 0x51, 0x18, 0x6b, 0x97, 0xbc, 0xa7, 0xf5,
  3359  	0x28, 0xe4, 0xe9, 0xc3, 0x81, 0xc6, 0xd1, 0x26, 0xad, 0xe4, 0xc6, 0xda, 0xe5, 0xbb, 0x9a, 0x2b,
  3360  	0x7f, 0x08, 0xe5, 0x68, 0x53, 0x87, 0x9e, 0x44, 0xc7, 0x9a, 0x98, 0x3a, 0xf3, 0x91, 0x55, 0xf8,
  3361  	0x04, 0xbd, 0x02, 0xd9, 0x0b, 0x8b, 0x83, 0xd5, 0xe2, 0x90, 0xbd, 0x6b, 0x11, 0x1c, 0x6a, 0x0a,
  3362  	0x71, 0x6d, 0xf9, 0x33, 0xc8, 0x32, 0xf0, 0xa1, 0x40, 0xc2, 0xda, 0x33, 0x82, 0xe8, 0xd2, 0x31,
  3363  	0xfa, 0x10, 0x40, 0x23, 0xc4, 0x31, 0x7a, 0x93, 0xc0, 0xf1, 0xce, 0x62, 0xf0, 0x3a, 0xf0, 0xf4,
  3364  	0x1a, 0x37, 0x04, 0x8a, 0x6d, 0x05, 0xa6, 0x21, 0x24, 0x0b, 0x39, 0x94, 0x4f, 0xa0, 0x1c, 0xb5,
  3365  	0x0d, 0x37, 0x4a, 0x37, 0x16, 0x34, 0x4a, 0x7d, 0x32, 0xe5, 0x53, 0xb1, 0x34, 0x6f, 0xc5, 0xb1,
  3366  	0x89, 0xfc, 0x79, 0x12, 0x0a, 0xdd, 0x4b, 0x71, 0xac, 0x63, 0xba, 0x40, 0x81, 0x69, 0x2a, 0xdc,
  3367  	0xf3, 0xe0, 0x6d, 0xa5, 0xb4, 0xdf, 0xac, 0x7a, 0xdb, 0x0f, 0xdc, 0xcc, 0xba, 0x55, 0xa9, 0xd7,
  3368  	0xb5, 0x13, 0x60, 0xf5, 0x06, 0x48, 0xfe, 0xa9, 0xa2, 0x15, 0x83, 0xa6, 0xeb, 0x0e, 0x76, 0x5d,
  3369  	0xb1, 0x36, 0x6f, 0xca, 0x9a, 0x8a, 0xd6, 0xa7, 0xa2, 0xab, 0x92, 0x56, 0xf8, 0x44, 0xd6, 0xa1,
  3370  	0x32, 0x93, 0xb6, 0xd0, 0x1b, 0x90, 0xb7, 0x27, 0x3d, 0xd5, 0xdb, 0x9e, 0x99, 0xe0, 0xf1, 0xd8,
  3371  	0xe3, 0xa4, 0x37, 0x32, 0xfa, 0x47, 0x78, 0xea, 0xfd, 0x18, 0x7b, 0xd2, 0x3b, 0xe2, 0xbb, 0xc8,
  3372  	0xdf, 0x92, 0x0a, 0xbf, 0xe5, 0x02, 0x0a, 0xde, 0xa1, 0x40, 0x3f, 0x0c, 0xc7, 0x89, 0xd7, 0x6a,
  3373  	0x8e, 0x4d, 0xa5, 0xc2, 0x7d, 0x28, 0x4c, 0x6e, 0xc1, 0xa6, 0x6b, 0x0c, 0x4c, 0xac, 0xab, 0x41,
  3374  	0xcd, 0xc2, 0xde, 0x56, 0x50, 0x2a, 0xfc, 0xc1, 0xb1, 0x57, 0xb0, 0xc8, 0xff, 0x4a, 0x42, 0xc1,
  3375  	0x0b, 0x58, 0xf4, 0x52, 0xe8, 0xdc, 0x95, 0x17, 0x74, 0x60, 0x3c, 0xc5, 0xa0, 0x2f, 0x18, 0xfd,
  3376  	0xad, 0xa9, 0xab, 0xff, 0xd6, 0xb8, 0x06, 0xaf, 0xd7, 0x69, 0xcf, 0x5c, 0xb9, 0xd3, 0xfe, 0x02,
  3377  	0x20, 0x62, 0x11, 0x6d, 0xa4, 0x5e, 0x58, 0xc4, 0x30, 0x07, 0x2a, 0xdf, 0x6c, 0xce, 0xa8, 0xaa,
  3378  	0xec, 0xc9, 0x5d, 0xf6, 0xe0, 0x94, 0xed, 0xfb, 0x2f, 0x92, 0x50, 0xf0, 0x73, 0xe3, 0x55, 0xdb,
  3379  	0x7c, 0xd7, 0x21, 0x27, 0xe0, 0x9f, 0xf7, 0xf9, 0xc4, 0xcc, 0xef, 0x38, 0x67, 0x42, 0x1d, 0xe7,
  3380  	0x3a, 0x14, 0xc6, 0x98, 0x68, 0x8c, 0x20, 0xf0, 0xb2, 0xd1, 0x9f, 0xdf, 0x7a, 0x1d, 0x8a, 0xa1,
  3381  	0x8e, 0x2b, 0x8d, 0xbc, 0x93, 0xd6, 0x07, 0xd5, 0x44, 0x3d, 0xff, 0xf9, 0x97, 0x37, 0xd3, 0x27,
  3382  	0xf8, 0x53, 0x7a, 0x66, 0x95, 0x56, 0xb3, 0xdd, 0x6a, 0x1e, 0x55, 0x93, 0xf5, 0xe2, 0xe7, 0x5f,
  3383  	0xde, 0xcc, 0x2b, 0x98, 0x35, 0x6e, 0x6e, 0xb5, 0x61, 0x23, 0xfc, 0x55, 0xa2, 0x19, 0x04, 0x41,
  3384  	0xf9, 0x9d, 0x3b, 0xa7, 0xc7, 0x87, 0xcd, 0x83, 0x6e, 0x4b, 0xbd, 0xdb, 0xe9, 0xb6, 0xaa, 0x49,
  3385  	0xf4, 0x28, 0x5c, 0x3b, 0x3e, 0x7c, 0xb7, 0xdd, 0x55, 0x9b, 0xc7, 0x87, 0xad, 0x93, 0xae, 0x7a,
  3386  	0xd0, 0xed, 0x1e, 0x34, 0x8f, 0xaa, 0xa9, 0xfd, 0x5f, 0x02, 0x54, 0x0e, 0x1a, 0xcd, 0x43, 0x9a,
  3387  	0xfd, 0x8c, 0xbe, 0x26, 0x1a, 0x63, 0x19, 0x56, 0xb5, 0x2f, 0xbd, 0xea, 0xad, 0x2f, 0xef, 0x0b,
  3388  	0xa2, 0xdb, 0x90, 0x65, 0x05, 0x3d, 0x5a, 0x7e, 0xf7, 0x5b, 0x5f, 0xd1, 0x28, 0xa4, 0x3f, 0x86,
  3389  	0x85, 0xc7, 0xd2, 0xcb, 0xe0, 0xfa, 0xf2, 0xbe, 0x21, 0x52, 0x40, 0x0a, 0x2a, 0xf2, 0xd5, 0x97,
  3390  	0xc3, 0xf5, 0x35, 0x7a, 0x89, 0xd4, 0x67, 0x50, 0x16, 0xac, 0xbe, 0x2c, 0xad, 0xaf, 0x01, 0x60,
  3391  	0xe8, 0x18, 0xf2, 0x5e, 0x25, 0xb7, 0xea, 0xfa, 0xb6, 0xbe, 0xb2, 0xcf, 0x47, 0x3f, 0x01, 0xaf,
  3392  	0xb8, 0x97, 0xdf, 0x45, 0xd7, 0x57, 0x34, 0x2d, 0xd1, 0x21, 0xe4, 0x04, 0xd7, 0x5d, 0x71, 0x25,
  3393  	0x5b, 0x5f, 0xd5, 0xb7, 0xa3, 0x9b, 0x16, 0xb4, 0x32, 0x56, 0xdf, 0xb0, 0xd7, 0xd7, 0xe8, 0xc7,
  3394  	0xa2, 0x3b, 0x00, 0xa1, 0xfa, 0x7a, 0x8d, 0xab, 0xf3, 0xfa, 0x3a, 0x7d, 0x56, 0xd4, 0x81, 0x82,
  3395  	0x5f, 0xee, 0xac, 0xbc, 0xc8, 0xae, 0xaf, 0x6e, 0x78, 0xa2, 0x7b, 0x50, 0x8a, 0xf2, 0xfc, 0xf5,
  3396  	0xae, 0xa7, 0xeb, 0x6b, 0x76, 0x32, 0xa9, 0xff, 0x28, 0xe9, 0x5f, 0xef, 0xba, 0xba, 0xbe, 0x66,
  3397  	0x63, 0x13, 0x7d, 0x0c, 0x9b, 0xf3, 0xa4, 0x7c, 0xfd, 0xdb, 0xeb, 0xfa, 0x15, 0x5a, 0x9d, 0x68,
  3398  	0x0c, 0x68, 0x01, 0x99, 0xbf, 0xc2, 0x65, 0x76, 0xfd, 0x2a, 0x9d, 0xcf, 0x46, 0xeb, 0xab, 0x07,
  3399  	0xdb, 0xc9, 0xaf, 0x1f, 0x6c, 0x27, 0xff, 0xf6, 0x60, 0x3b, 0xf9, 0xc5, 0xc3, 0xed, 0xc4, 0xd7,
  3400  	0x0f, 0xb7, 0x13, 0x7f, 0x7e, 0xb8, 0x9d, 0xf8, 0xe9, 0xf3, 0x03, 0x83, 0x0c, 0x27, 0xbd, 0xdd,
  3401  	0xbe, 0x35, 0xde, 0x0b, 0xff, 0xd3, 0x66, 0xd1, 0xbf, 0x7f, 0x7a, 0x39, 0x96, 0xa8, 0x5e, 0xfe,
  3402  	0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x2d, 0x07, 0xd8, 0x1d, 0x24, 0x00, 0x00,
  3403  }
  3404  
  3405  // Reference imports to suppress errors if they are not otherwise used.
  3406  var _ context.Context
  3407  var _ grpc.ClientConn
  3408  
  3409  // This is a compile-time assertion to ensure that this generated file
  3410  // is compatible with the grpc package it is being compiled against.
  3411  const _ = grpc.SupportPackageIsVersion4
  3412  
  3413  // ABCIApplicationClient is the client API for ABCIApplication service.
  3414  //
  3415  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  3416  type ABCIApplicationClient interface {
  3417  	Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error)
  3418  	Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error)
  3419  	Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error)
  3420  	SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error)
  3421  	DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error)
  3422  	CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error)
  3423  	Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error)
  3424  	Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error)
  3425  	InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error)
  3426  	BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error)
  3427  	EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error)
  3428  	ListSnapshots(ctx context.Context, in *RequestListSnapshots, opts ...grpc.CallOption) (*ResponseListSnapshots, error)
  3429  	OfferSnapshot(ctx context.Context, in *RequestOfferSnapshot, opts ...grpc.CallOption) (*ResponseOfferSnapshot, error)
  3430  	LoadSnapshotChunk(ctx context.Context, in *RequestLoadSnapshotChunk, opts ...grpc.CallOption) (*ResponseLoadSnapshotChunk, error)
  3431  	ApplySnapshotChunk(ctx context.Context, in *RequestApplySnapshotChunk, opts ...grpc.CallOption) (*ResponseApplySnapshotChunk, error)
  3432  }
  3433  
  3434  type aBCIApplicationClient struct {
  3435  	cc *grpc.ClientConn
  3436  }
  3437  
  3438  func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient {
  3439  	return &aBCIApplicationClient{cc}
  3440  }
  3441  
  3442  func (c *aBCIApplicationClient) Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) {
  3443  	out := new(ResponseEcho)
  3444  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Echo", in, out, opts...)
  3445  	if err != nil {
  3446  		return nil, err
  3447  	}
  3448  	return out, nil
  3449  }
  3450  
  3451  func (c *aBCIApplicationClient) Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) {
  3452  	out := new(ResponseFlush)
  3453  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Flush", in, out, opts...)
  3454  	if err != nil {
  3455  		return nil, err
  3456  	}
  3457  	return out, nil
  3458  }
  3459  
  3460  func (c *aBCIApplicationClient) Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) {
  3461  	out := new(ResponseInfo)
  3462  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Info", in, out, opts...)
  3463  	if err != nil {
  3464  		return nil, err
  3465  	}
  3466  	return out, nil
  3467  }
  3468  
  3469  func (c *aBCIApplicationClient) SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) {
  3470  	out := new(ResponseSetOption)
  3471  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/SetOption", in, out, opts...)
  3472  	if err != nil {
  3473  		return nil, err
  3474  	}
  3475  	return out, nil
  3476  }
  3477  
  3478  func (c *aBCIApplicationClient) DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) {
  3479  	out := new(ResponseDeliverTx)
  3480  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/DeliverTx", in, out, opts...)
  3481  	if err != nil {
  3482  		return nil, err
  3483  	}
  3484  	return out, nil
  3485  }
  3486  
  3487  func (c *aBCIApplicationClient) CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) {
  3488  	out := new(ResponseCheckTx)
  3489  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/CheckTx", in, out, opts...)
  3490  	if err != nil {
  3491  		return nil, err
  3492  	}
  3493  	return out, nil
  3494  }
  3495  
  3496  func (c *aBCIApplicationClient) Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) {
  3497  	out := new(ResponseQuery)
  3498  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Query", in, out, opts...)
  3499  	if err != nil {
  3500  		return nil, err
  3501  	}
  3502  	return out, nil
  3503  }
  3504  
  3505  func (c *aBCIApplicationClient) Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) {
  3506  	out := new(ResponseCommit)
  3507  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Commit", in, out, opts...)
  3508  	if err != nil {
  3509  		return nil, err
  3510  	}
  3511  	return out, nil
  3512  }
  3513  
  3514  func (c *aBCIApplicationClient) InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) {
  3515  	out := new(ResponseInitChain)
  3516  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/InitChain", in, out, opts...)
  3517  	if err != nil {
  3518  		return nil, err
  3519  	}
  3520  	return out, nil
  3521  }
  3522  
  3523  func (c *aBCIApplicationClient) BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) {
  3524  	out := new(ResponseBeginBlock)
  3525  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/BeginBlock", in, out, opts...)
  3526  	if err != nil {
  3527  		return nil, err
  3528  	}
  3529  	return out, nil
  3530  }
  3531  
  3532  func (c *aBCIApplicationClient) EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) {
  3533  	out := new(ResponseEndBlock)
  3534  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/EndBlock", in, out, opts...)
  3535  	if err != nil {
  3536  		return nil, err
  3537  	}
  3538  	return out, nil
  3539  }
  3540  
  3541  func (c *aBCIApplicationClient) ListSnapshots(ctx context.Context, in *RequestListSnapshots, opts ...grpc.CallOption) (*ResponseListSnapshots, error) {
  3542  	out := new(ResponseListSnapshots)
  3543  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/ListSnapshots", in, out, opts...)
  3544  	if err != nil {
  3545  		return nil, err
  3546  	}
  3547  	return out, nil
  3548  }
  3549  
  3550  func (c *aBCIApplicationClient) OfferSnapshot(ctx context.Context, in *RequestOfferSnapshot, opts ...grpc.CallOption) (*ResponseOfferSnapshot, error) {
  3551  	out := new(ResponseOfferSnapshot)
  3552  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/OfferSnapshot", in, out, opts...)
  3553  	if err != nil {
  3554  		return nil, err
  3555  	}
  3556  	return out, nil
  3557  }
  3558  
  3559  func (c *aBCIApplicationClient) LoadSnapshotChunk(ctx context.Context, in *RequestLoadSnapshotChunk, opts ...grpc.CallOption) (*ResponseLoadSnapshotChunk, error) {
  3560  	out := new(ResponseLoadSnapshotChunk)
  3561  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/LoadSnapshotChunk", in, out, opts...)
  3562  	if err != nil {
  3563  		return nil, err
  3564  	}
  3565  	return out, nil
  3566  }
  3567  
  3568  func (c *aBCIApplicationClient) ApplySnapshotChunk(ctx context.Context, in *RequestApplySnapshotChunk, opts ...grpc.CallOption) (*ResponseApplySnapshotChunk, error) {
  3569  	out := new(ResponseApplySnapshotChunk)
  3570  	err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/ApplySnapshotChunk", in, out, opts...)
  3571  	if err != nil {
  3572  		return nil, err
  3573  	}
  3574  	return out, nil
  3575  }
  3576  
  3577  // ABCIApplicationServer is the server API for ABCIApplication service.
  3578  type ABCIApplicationServer interface {
  3579  	Echo(context.Context, *RequestEcho) (*ResponseEcho, error)
  3580  	Flush(context.Context, *RequestFlush) (*ResponseFlush, error)
  3581  	Info(context.Context, *RequestInfo) (*ResponseInfo, error)
  3582  	SetOption(context.Context, *RequestSetOption) (*ResponseSetOption, error)
  3583  	DeliverTx(context.Context, *RequestDeliverTx) (*ResponseDeliverTx, error)
  3584  	CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error)
  3585  	Query(context.Context, *RequestQuery) (*ResponseQuery, error)
  3586  	Commit(context.Context, *RequestCommit) (*ResponseCommit, error)
  3587  	InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error)
  3588  	BeginBlock(context.Context, *RequestBeginBlock) (*ResponseBeginBlock, error)
  3589  	EndBlock(context.Context, *RequestEndBlock) (*ResponseEndBlock, error)
  3590  	ListSnapshots(context.Context, *RequestListSnapshots) (*ResponseListSnapshots, error)
  3591  	OfferSnapshot(context.Context, *RequestOfferSnapshot) (*ResponseOfferSnapshot, error)
  3592  	LoadSnapshotChunk(context.Context, *RequestLoadSnapshotChunk) (*ResponseLoadSnapshotChunk, error)
  3593  	ApplySnapshotChunk(context.Context, *RequestApplySnapshotChunk) (*ResponseApplySnapshotChunk, error)
  3594  }
  3595  
  3596  // UnimplementedABCIApplicationServer can be embedded to have forward compatible implementations.
  3597  type UnimplementedABCIApplicationServer struct {
  3598  }
  3599  
  3600  func (*UnimplementedABCIApplicationServer) Echo(ctx context.Context, req *RequestEcho) (*ResponseEcho, error) {
  3601  	return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented")
  3602  }
  3603  func (*UnimplementedABCIApplicationServer) Flush(ctx context.Context, req *RequestFlush) (*ResponseFlush, error) {
  3604  	return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented")
  3605  }
  3606  func (*UnimplementedABCIApplicationServer) Info(ctx context.Context, req *RequestInfo) (*ResponseInfo, error) {
  3607  	return nil, status.Errorf(codes.Unimplemented, "method Info not implemented")
  3608  }
  3609  func (*UnimplementedABCIApplicationServer) SetOption(ctx context.Context, req *RequestSetOption) (*ResponseSetOption, error) {
  3610  	return nil, status.Errorf(codes.Unimplemented, "method SetOption not implemented")
  3611  }
  3612  func (*UnimplementedABCIApplicationServer) DeliverTx(ctx context.Context, req *RequestDeliverTx) (*ResponseDeliverTx, error) {
  3613  	return nil, status.Errorf(codes.Unimplemented, "method DeliverTx not implemented")
  3614  }
  3615  func (*UnimplementedABCIApplicationServer) CheckTx(ctx context.Context, req *RequestCheckTx) (*ResponseCheckTx, error) {
  3616  	return nil, status.Errorf(codes.Unimplemented, "method CheckTx not implemented")
  3617  }
  3618  func (*UnimplementedABCIApplicationServer) Query(ctx context.Context, req *RequestQuery) (*ResponseQuery, error) {
  3619  	return nil, status.Errorf(codes.Unimplemented, "method Query not implemented")
  3620  }
  3621  func (*UnimplementedABCIApplicationServer) Commit(ctx context.Context, req *RequestCommit) (*ResponseCommit, error) {
  3622  	return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented")
  3623  }
  3624  func (*UnimplementedABCIApplicationServer) InitChain(ctx context.Context, req *RequestInitChain) (*ResponseInitChain, error) {
  3625  	return nil, status.Errorf(codes.Unimplemented, "method InitChain not implemented")
  3626  }
  3627  func (*UnimplementedABCIApplicationServer) BeginBlock(ctx context.Context, req *RequestBeginBlock) (*ResponseBeginBlock, error) {
  3628  	return nil, status.Errorf(codes.Unimplemented, "method BeginBlock not implemented")
  3629  }
  3630  func (*UnimplementedABCIApplicationServer) EndBlock(ctx context.Context, req *RequestEndBlock) (*ResponseEndBlock, error) {
  3631  	return nil, status.Errorf(codes.Unimplemented, "method EndBlock not implemented")
  3632  }
  3633  func (*UnimplementedABCIApplicationServer) ListSnapshots(ctx context.Context, req *RequestListSnapshots) (*ResponseListSnapshots, error) {
  3634  	return nil, status.Errorf(codes.Unimplemented, "method ListSnapshots not implemented")
  3635  }
  3636  func (*UnimplementedABCIApplicationServer) OfferSnapshot(ctx context.Context, req *RequestOfferSnapshot) (*ResponseOfferSnapshot, error) {
  3637  	return nil, status.Errorf(codes.Unimplemented, "method OfferSnapshot not implemented")
  3638  }
  3639  func (*UnimplementedABCIApplicationServer) LoadSnapshotChunk(ctx context.Context, req *RequestLoadSnapshotChunk) (*ResponseLoadSnapshotChunk, error) {
  3640  	return nil, status.Errorf(codes.Unimplemented, "method LoadSnapshotChunk not implemented")
  3641  }
  3642  func (*UnimplementedABCIApplicationServer) ApplySnapshotChunk(ctx context.Context, req *RequestApplySnapshotChunk) (*ResponseApplySnapshotChunk, error) {
  3643  	return nil, status.Errorf(codes.Unimplemented, "method ApplySnapshotChunk not implemented")
  3644  }
  3645  
  3646  func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) {
  3647  	s.RegisterService(&_ABCIApplication_serviceDesc, srv)
  3648  }
  3649  
  3650  func _ABCIApplication_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3651  	in := new(RequestEcho)
  3652  	if err := dec(in); err != nil {
  3653  		return nil, err
  3654  	}
  3655  	if interceptor == nil {
  3656  		return srv.(ABCIApplicationServer).Echo(ctx, in)
  3657  	}
  3658  	info := &grpc.UnaryServerInfo{
  3659  		Server:     srv,
  3660  		FullMethod: "/tendermint.abci.ABCIApplication/Echo",
  3661  	}
  3662  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3663  		return srv.(ABCIApplicationServer).Echo(ctx, req.(*RequestEcho))
  3664  	}
  3665  	return interceptor(ctx, in, info, handler)
  3666  }
  3667  
  3668  func _ABCIApplication_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3669  	in := new(RequestFlush)
  3670  	if err := dec(in); err != nil {
  3671  		return nil, err
  3672  	}
  3673  	if interceptor == nil {
  3674  		return srv.(ABCIApplicationServer).Flush(ctx, in)
  3675  	}
  3676  	info := &grpc.UnaryServerInfo{
  3677  		Server:     srv,
  3678  		FullMethod: "/tendermint.abci.ABCIApplication/Flush",
  3679  	}
  3680  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3681  		return srv.(ABCIApplicationServer).Flush(ctx, req.(*RequestFlush))
  3682  	}
  3683  	return interceptor(ctx, in, info, handler)
  3684  }
  3685  
  3686  func _ABCIApplication_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3687  	in := new(RequestInfo)
  3688  	if err := dec(in); err != nil {
  3689  		return nil, err
  3690  	}
  3691  	if interceptor == nil {
  3692  		return srv.(ABCIApplicationServer).Info(ctx, in)
  3693  	}
  3694  	info := &grpc.UnaryServerInfo{
  3695  		Server:     srv,
  3696  		FullMethod: "/tendermint.abci.ABCIApplication/Info",
  3697  	}
  3698  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3699  		return srv.(ABCIApplicationServer).Info(ctx, req.(*RequestInfo))
  3700  	}
  3701  	return interceptor(ctx, in, info, handler)
  3702  }
  3703  
  3704  func _ABCIApplication_SetOption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3705  	in := new(RequestSetOption)
  3706  	if err := dec(in); err != nil {
  3707  		return nil, err
  3708  	}
  3709  	if interceptor == nil {
  3710  		return srv.(ABCIApplicationServer).SetOption(ctx, in)
  3711  	}
  3712  	info := &grpc.UnaryServerInfo{
  3713  		Server:     srv,
  3714  		FullMethod: "/tendermint.abci.ABCIApplication/SetOption",
  3715  	}
  3716  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3717  		return srv.(ABCIApplicationServer).SetOption(ctx, req.(*RequestSetOption))
  3718  	}
  3719  	return interceptor(ctx, in, info, handler)
  3720  }
  3721  
  3722  func _ABCIApplication_DeliverTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3723  	in := new(RequestDeliverTx)
  3724  	if err := dec(in); err != nil {
  3725  		return nil, err
  3726  	}
  3727  	if interceptor == nil {
  3728  		return srv.(ABCIApplicationServer).DeliverTx(ctx, in)
  3729  	}
  3730  	info := &grpc.UnaryServerInfo{
  3731  		Server:     srv,
  3732  		FullMethod: "/tendermint.abci.ABCIApplication/DeliverTx",
  3733  	}
  3734  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3735  		return srv.(ABCIApplicationServer).DeliverTx(ctx, req.(*RequestDeliverTx))
  3736  	}
  3737  	return interceptor(ctx, in, info, handler)
  3738  }
  3739  
  3740  func _ABCIApplication_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3741  	in := new(RequestCheckTx)
  3742  	if err := dec(in); err != nil {
  3743  		return nil, err
  3744  	}
  3745  	if interceptor == nil {
  3746  		return srv.(ABCIApplicationServer).CheckTx(ctx, in)
  3747  	}
  3748  	info := &grpc.UnaryServerInfo{
  3749  		Server:     srv,
  3750  		FullMethod: "/tendermint.abci.ABCIApplication/CheckTx",
  3751  	}
  3752  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3753  		return srv.(ABCIApplicationServer).CheckTx(ctx, req.(*RequestCheckTx))
  3754  	}
  3755  	return interceptor(ctx, in, info, handler)
  3756  }
  3757  
  3758  func _ABCIApplication_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3759  	in := new(RequestQuery)
  3760  	if err := dec(in); err != nil {
  3761  		return nil, err
  3762  	}
  3763  	if interceptor == nil {
  3764  		return srv.(ABCIApplicationServer).Query(ctx, in)
  3765  	}
  3766  	info := &grpc.UnaryServerInfo{
  3767  		Server:     srv,
  3768  		FullMethod: "/tendermint.abci.ABCIApplication/Query",
  3769  	}
  3770  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3771  		return srv.(ABCIApplicationServer).Query(ctx, req.(*RequestQuery))
  3772  	}
  3773  	return interceptor(ctx, in, info, handler)
  3774  }
  3775  
  3776  func _ABCIApplication_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3777  	in := new(RequestCommit)
  3778  	if err := dec(in); err != nil {
  3779  		return nil, err
  3780  	}
  3781  	if interceptor == nil {
  3782  		return srv.(ABCIApplicationServer).Commit(ctx, in)
  3783  	}
  3784  	info := &grpc.UnaryServerInfo{
  3785  		Server:     srv,
  3786  		FullMethod: "/tendermint.abci.ABCIApplication/Commit",
  3787  	}
  3788  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3789  		return srv.(ABCIApplicationServer).Commit(ctx, req.(*RequestCommit))
  3790  	}
  3791  	return interceptor(ctx, in, info, handler)
  3792  }
  3793  
  3794  func _ABCIApplication_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3795  	in := new(RequestInitChain)
  3796  	if err := dec(in); err != nil {
  3797  		return nil, err
  3798  	}
  3799  	if interceptor == nil {
  3800  		return srv.(ABCIApplicationServer).InitChain(ctx, in)
  3801  	}
  3802  	info := &grpc.UnaryServerInfo{
  3803  		Server:     srv,
  3804  		FullMethod: "/tendermint.abci.ABCIApplication/InitChain",
  3805  	}
  3806  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3807  		return srv.(ABCIApplicationServer).InitChain(ctx, req.(*RequestInitChain))
  3808  	}
  3809  	return interceptor(ctx, in, info, handler)
  3810  }
  3811  
  3812  func _ABCIApplication_BeginBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3813  	in := new(RequestBeginBlock)
  3814  	if err := dec(in); err != nil {
  3815  		return nil, err
  3816  	}
  3817  	if interceptor == nil {
  3818  		return srv.(ABCIApplicationServer).BeginBlock(ctx, in)
  3819  	}
  3820  	info := &grpc.UnaryServerInfo{
  3821  		Server:     srv,
  3822  		FullMethod: "/tendermint.abci.ABCIApplication/BeginBlock",
  3823  	}
  3824  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3825  		return srv.(ABCIApplicationServer).BeginBlock(ctx, req.(*RequestBeginBlock))
  3826  	}
  3827  	return interceptor(ctx, in, info, handler)
  3828  }
  3829  
  3830  func _ABCIApplication_EndBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3831  	in := new(RequestEndBlock)
  3832  	if err := dec(in); err != nil {
  3833  		return nil, err
  3834  	}
  3835  	if interceptor == nil {
  3836  		return srv.(ABCIApplicationServer).EndBlock(ctx, in)
  3837  	}
  3838  	info := &grpc.UnaryServerInfo{
  3839  		Server:     srv,
  3840  		FullMethod: "/tendermint.abci.ABCIApplication/EndBlock",
  3841  	}
  3842  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3843  		return srv.(ABCIApplicationServer).EndBlock(ctx, req.(*RequestEndBlock))
  3844  	}
  3845  	return interceptor(ctx, in, info, handler)
  3846  }
  3847  
  3848  func _ABCIApplication_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3849  	in := new(RequestListSnapshots)
  3850  	if err := dec(in); err != nil {
  3851  		return nil, err
  3852  	}
  3853  	if interceptor == nil {
  3854  		return srv.(ABCIApplicationServer).ListSnapshots(ctx, in)
  3855  	}
  3856  	info := &grpc.UnaryServerInfo{
  3857  		Server:     srv,
  3858  		FullMethod: "/tendermint.abci.ABCIApplication/ListSnapshots",
  3859  	}
  3860  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3861  		return srv.(ABCIApplicationServer).ListSnapshots(ctx, req.(*RequestListSnapshots))
  3862  	}
  3863  	return interceptor(ctx, in, info, handler)
  3864  }
  3865  
  3866  func _ABCIApplication_OfferSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3867  	in := new(RequestOfferSnapshot)
  3868  	if err := dec(in); err != nil {
  3869  		return nil, err
  3870  	}
  3871  	if interceptor == nil {
  3872  		return srv.(ABCIApplicationServer).OfferSnapshot(ctx, in)
  3873  	}
  3874  	info := &grpc.UnaryServerInfo{
  3875  		Server:     srv,
  3876  		FullMethod: "/tendermint.abci.ABCIApplication/OfferSnapshot",
  3877  	}
  3878  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3879  		return srv.(ABCIApplicationServer).OfferSnapshot(ctx, req.(*RequestOfferSnapshot))
  3880  	}
  3881  	return interceptor(ctx, in, info, handler)
  3882  }
  3883  
  3884  func _ABCIApplication_LoadSnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3885  	in := new(RequestLoadSnapshotChunk)
  3886  	if err := dec(in); err != nil {
  3887  		return nil, err
  3888  	}
  3889  	if interceptor == nil {
  3890  		return srv.(ABCIApplicationServer).LoadSnapshotChunk(ctx, in)
  3891  	}
  3892  	info := &grpc.UnaryServerInfo{
  3893  		Server:     srv,
  3894  		FullMethod: "/tendermint.abci.ABCIApplication/LoadSnapshotChunk",
  3895  	}
  3896  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3897  		return srv.(ABCIApplicationServer).LoadSnapshotChunk(ctx, req.(*RequestLoadSnapshotChunk))
  3898  	}
  3899  	return interceptor(ctx, in, info, handler)
  3900  }
  3901  
  3902  func _ABCIApplication_ApplySnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3903  	in := new(RequestApplySnapshotChunk)
  3904  	if err := dec(in); err != nil {
  3905  		return nil, err
  3906  	}
  3907  	if interceptor == nil {
  3908  		return srv.(ABCIApplicationServer).ApplySnapshotChunk(ctx, in)
  3909  	}
  3910  	info := &grpc.UnaryServerInfo{
  3911  		Server:     srv,
  3912  		FullMethod: "/tendermint.abci.ABCIApplication/ApplySnapshotChunk",
  3913  	}
  3914  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3915  		return srv.(ABCIApplicationServer).ApplySnapshotChunk(ctx, req.(*RequestApplySnapshotChunk))
  3916  	}
  3917  	return interceptor(ctx, in, info, handler)
  3918  }
  3919  
  3920  var _ABCIApplication_serviceDesc = grpc.ServiceDesc{
  3921  	ServiceName: "tendermint.abci.ABCIApplication",
  3922  	HandlerType: (*ABCIApplicationServer)(nil),
  3923  	Methods: []grpc.MethodDesc{
  3924  		{
  3925  			MethodName: "Echo",
  3926  			Handler:    _ABCIApplication_Echo_Handler,
  3927  		},
  3928  		{
  3929  			MethodName: "Flush",
  3930  			Handler:    _ABCIApplication_Flush_Handler,
  3931  		},
  3932  		{
  3933  			MethodName: "Info",
  3934  			Handler:    _ABCIApplication_Info_Handler,
  3935  		},
  3936  		{
  3937  			MethodName: "SetOption",
  3938  			Handler:    _ABCIApplication_SetOption_Handler,
  3939  		},
  3940  		{
  3941  			MethodName: "DeliverTx",
  3942  			Handler:    _ABCIApplication_DeliverTx_Handler,
  3943  		},
  3944  		{
  3945  			MethodName: "CheckTx",
  3946  			Handler:    _ABCIApplication_CheckTx_Handler,
  3947  		},
  3948  		{
  3949  			MethodName: "Query",
  3950  			Handler:    _ABCIApplication_Query_Handler,
  3951  		},
  3952  		{
  3953  			MethodName: "Commit",
  3954  			Handler:    _ABCIApplication_Commit_Handler,
  3955  		},
  3956  		{
  3957  			MethodName: "InitChain",
  3958  			Handler:    _ABCIApplication_InitChain_Handler,
  3959  		},
  3960  		{
  3961  			MethodName: "BeginBlock",
  3962  			Handler:    _ABCIApplication_BeginBlock_Handler,
  3963  		},
  3964  		{
  3965  			MethodName: "EndBlock",
  3966  			Handler:    _ABCIApplication_EndBlock_Handler,
  3967  		},
  3968  		{
  3969  			MethodName: "ListSnapshots",
  3970  			Handler:    _ABCIApplication_ListSnapshots_Handler,
  3971  		},
  3972  		{
  3973  			MethodName: "OfferSnapshot",
  3974  			Handler:    _ABCIApplication_OfferSnapshot_Handler,
  3975  		},
  3976  		{
  3977  			MethodName: "LoadSnapshotChunk",
  3978  			Handler:    _ABCIApplication_LoadSnapshotChunk_Handler,
  3979  		},
  3980  		{
  3981  			MethodName: "ApplySnapshotChunk",
  3982  			Handler:    _ABCIApplication_ApplySnapshotChunk_Handler,
  3983  		},
  3984  	},
  3985  	Streams:  []grpc.StreamDesc{},
  3986  	Metadata: "tendermint/abci/types.proto",
  3987  }
  3988  
  3989  func (m *Request) Marshal() (dAtA []byte, err error) {
  3990  	size := m.Size()
  3991  	dAtA = make([]byte, size)
  3992  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3993  	if err != nil {
  3994  		return nil, err
  3995  	}
  3996  	return dAtA[:n], nil
  3997  }
  3998  
  3999  func (m *Request) MarshalTo(dAtA []byte) (int, error) {
  4000  	size := m.Size()
  4001  	return m.MarshalToSizedBuffer(dAtA[:size])
  4002  }
  4003  
  4004  func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4005  	i := len(dAtA)
  4006  	_ = i
  4007  	var l int
  4008  	_ = l
  4009  	if m.Value != nil {
  4010  		{
  4011  			size := m.Value.Size()
  4012  			i -= size
  4013  			if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil {
  4014  				return 0, err
  4015  			}
  4016  		}
  4017  	}
  4018  	return len(dAtA) - i, nil
  4019  }
  4020  
  4021  func (m *Request_Echo) MarshalTo(dAtA []byte) (int, error) {
  4022  	size := m.Size()
  4023  	return m.MarshalToSizedBuffer(dAtA[:size])
  4024  }
  4025  
  4026  func (m *Request_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4027  	i := len(dAtA)
  4028  	if m.Echo != nil {
  4029  		{
  4030  			size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i])
  4031  			if err != nil {
  4032  				return 0, err
  4033  			}
  4034  			i -= size
  4035  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4036  		}
  4037  		i--
  4038  		dAtA[i] = 0xa
  4039  	}
  4040  	return len(dAtA) - i, nil
  4041  }
  4042  func (m *Request_Flush) MarshalTo(dAtA []byte) (int, error) {
  4043  	size := m.Size()
  4044  	return m.MarshalToSizedBuffer(dAtA[:size])
  4045  }
  4046  
  4047  func (m *Request_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4048  	i := len(dAtA)
  4049  	if m.Flush != nil {
  4050  		{
  4051  			size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i])
  4052  			if err != nil {
  4053  				return 0, err
  4054  			}
  4055  			i -= size
  4056  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4057  		}
  4058  		i--
  4059  		dAtA[i] = 0x12
  4060  	}
  4061  	return len(dAtA) - i, nil
  4062  }
  4063  func (m *Request_Info) MarshalTo(dAtA []byte) (int, error) {
  4064  	size := m.Size()
  4065  	return m.MarshalToSizedBuffer(dAtA[:size])
  4066  }
  4067  
  4068  func (m *Request_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4069  	i := len(dAtA)
  4070  	if m.Info != nil {
  4071  		{
  4072  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
  4073  			if err != nil {
  4074  				return 0, err
  4075  			}
  4076  			i -= size
  4077  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4078  		}
  4079  		i--
  4080  		dAtA[i] = 0x1a
  4081  	}
  4082  	return len(dAtA) - i, nil
  4083  }
  4084  func (m *Request_SetOption) MarshalTo(dAtA []byte) (int, error) {
  4085  	size := m.Size()
  4086  	return m.MarshalToSizedBuffer(dAtA[:size])
  4087  }
  4088  
  4089  func (m *Request_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4090  	i := len(dAtA)
  4091  	if m.SetOption != nil {
  4092  		{
  4093  			size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i])
  4094  			if err != nil {
  4095  				return 0, err
  4096  			}
  4097  			i -= size
  4098  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4099  		}
  4100  		i--
  4101  		dAtA[i] = 0x22
  4102  	}
  4103  	return len(dAtA) - i, nil
  4104  }
  4105  func (m *Request_InitChain) MarshalTo(dAtA []byte) (int, error) {
  4106  	size := m.Size()
  4107  	return m.MarshalToSizedBuffer(dAtA[:size])
  4108  }
  4109  
  4110  func (m *Request_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4111  	i := len(dAtA)
  4112  	if m.InitChain != nil {
  4113  		{
  4114  			size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i])
  4115  			if err != nil {
  4116  				return 0, err
  4117  			}
  4118  			i -= size
  4119  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4120  		}
  4121  		i--
  4122  		dAtA[i] = 0x2a
  4123  	}
  4124  	return len(dAtA) - i, nil
  4125  }
  4126  func (m *Request_Query) MarshalTo(dAtA []byte) (int, error) {
  4127  	size := m.Size()
  4128  	return m.MarshalToSizedBuffer(dAtA[:size])
  4129  }
  4130  
  4131  func (m *Request_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4132  	i := len(dAtA)
  4133  	if m.Query != nil {
  4134  		{
  4135  			size, err := m.Query.MarshalToSizedBuffer(dAtA[:i])
  4136  			if err != nil {
  4137  				return 0, err
  4138  			}
  4139  			i -= size
  4140  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4141  		}
  4142  		i--
  4143  		dAtA[i] = 0x32
  4144  	}
  4145  	return len(dAtA) - i, nil
  4146  }
  4147  func (m *Request_BeginBlock) MarshalTo(dAtA []byte) (int, error) {
  4148  	size := m.Size()
  4149  	return m.MarshalToSizedBuffer(dAtA[:size])
  4150  }
  4151  
  4152  func (m *Request_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4153  	i := len(dAtA)
  4154  	if m.BeginBlock != nil {
  4155  		{
  4156  			size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i])
  4157  			if err != nil {
  4158  				return 0, err
  4159  			}
  4160  			i -= size
  4161  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4162  		}
  4163  		i--
  4164  		dAtA[i] = 0x3a
  4165  	}
  4166  	return len(dAtA) - i, nil
  4167  }
  4168  func (m *Request_CheckTx) MarshalTo(dAtA []byte) (int, error) {
  4169  	size := m.Size()
  4170  	return m.MarshalToSizedBuffer(dAtA[:size])
  4171  }
  4172  
  4173  func (m *Request_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4174  	i := len(dAtA)
  4175  	if m.CheckTx != nil {
  4176  		{
  4177  			size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i])
  4178  			if err != nil {
  4179  				return 0, err
  4180  			}
  4181  			i -= size
  4182  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4183  		}
  4184  		i--
  4185  		dAtA[i] = 0x42
  4186  	}
  4187  	return len(dAtA) - i, nil
  4188  }
  4189  func (m *Request_DeliverTx) MarshalTo(dAtA []byte) (int, error) {
  4190  	size := m.Size()
  4191  	return m.MarshalToSizedBuffer(dAtA[:size])
  4192  }
  4193  
  4194  func (m *Request_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4195  	i := len(dAtA)
  4196  	if m.DeliverTx != nil {
  4197  		{
  4198  			size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i])
  4199  			if err != nil {
  4200  				return 0, err
  4201  			}
  4202  			i -= size
  4203  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4204  		}
  4205  		i--
  4206  		dAtA[i] = 0x4a
  4207  	}
  4208  	return len(dAtA) - i, nil
  4209  }
  4210  func (m *Request_EndBlock) MarshalTo(dAtA []byte) (int, error) {
  4211  	size := m.Size()
  4212  	return m.MarshalToSizedBuffer(dAtA[:size])
  4213  }
  4214  
  4215  func (m *Request_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4216  	i := len(dAtA)
  4217  	if m.EndBlock != nil {
  4218  		{
  4219  			size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i])
  4220  			if err != nil {
  4221  				return 0, err
  4222  			}
  4223  			i -= size
  4224  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4225  		}
  4226  		i--
  4227  		dAtA[i] = 0x52
  4228  	}
  4229  	return len(dAtA) - i, nil
  4230  }
  4231  func (m *Request_Commit) MarshalTo(dAtA []byte) (int, error) {
  4232  	size := m.Size()
  4233  	return m.MarshalToSizedBuffer(dAtA[:size])
  4234  }
  4235  
  4236  func (m *Request_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4237  	i := len(dAtA)
  4238  	if m.Commit != nil {
  4239  		{
  4240  			size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i])
  4241  			if err != nil {
  4242  				return 0, err
  4243  			}
  4244  			i -= size
  4245  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4246  		}
  4247  		i--
  4248  		dAtA[i] = 0x5a
  4249  	}
  4250  	return len(dAtA) - i, nil
  4251  }
  4252  func (m *Request_ListSnapshots) MarshalTo(dAtA []byte) (int, error) {
  4253  	size := m.Size()
  4254  	return m.MarshalToSizedBuffer(dAtA[:size])
  4255  }
  4256  
  4257  func (m *Request_ListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4258  	i := len(dAtA)
  4259  	if m.ListSnapshots != nil {
  4260  		{
  4261  			size, err := m.ListSnapshots.MarshalToSizedBuffer(dAtA[:i])
  4262  			if err != nil {
  4263  				return 0, err
  4264  			}
  4265  			i -= size
  4266  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4267  		}
  4268  		i--
  4269  		dAtA[i] = 0x62
  4270  	}
  4271  	return len(dAtA) - i, nil
  4272  }
  4273  func (m *Request_OfferSnapshot) MarshalTo(dAtA []byte) (int, error) {
  4274  	size := m.Size()
  4275  	return m.MarshalToSizedBuffer(dAtA[:size])
  4276  }
  4277  
  4278  func (m *Request_OfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4279  	i := len(dAtA)
  4280  	if m.OfferSnapshot != nil {
  4281  		{
  4282  			size, err := m.OfferSnapshot.MarshalToSizedBuffer(dAtA[:i])
  4283  			if err != nil {
  4284  				return 0, err
  4285  			}
  4286  			i -= size
  4287  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4288  		}
  4289  		i--
  4290  		dAtA[i] = 0x6a
  4291  	}
  4292  	return len(dAtA) - i, nil
  4293  }
  4294  func (m *Request_LoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) {
  4295  	size := m.Size()
  4296  	return m.MarshalToSizedBuffer(dAtA[:size])
  4297  }
  4298  
  4299  func (m *Request_LoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4300  	i := len(dAtA)
  4301  	if m.LoadSnapshotChunk != nil {
  4302  		{
  4303  			size, err := m.LoadSnapshotChunk.MarshalToSizedBuffer(dAtA[:i])
  4304  			if err != nil {
  4305  				return 0, err
  4306  			}
  4307  			i -= size
  4308  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4309  		}
  4310  		i--
  4311  		dAtA[i] = 0x72
  4312  	}
  4313  	return len(dAtA) - i, nil
  4314  }
  4315  func (m *Request_ApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) {
  4316  	size := m.Size()
  4317  	return m.MarshalToSizedBuffer(dAtA[:size])
  4318  }
  4319  
  4320  func (m *Request_ApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4321  	i := len(dAtA)
  4322  	if m.ApplySnapshotChunk != nil {
  4323  		{
  4324  			size, err := m.ApplySnapshotChunk.MarshalToSizedBuffer(dAtA[:i])
  4325  			if err != nil {
  4326  				return 0, err
  4327  			}
  4328  			i -= size
  4329  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4330  		}
  4331  		i--
  4332  		dAtA[i] = 0x7a
  4333  	}
  4334  	return len(dAtA) - i, nil
  4335  }
  4336  func (m *RequestEcho) Marshal() (dAtA []byte, err error) {
  4337  	size := m.Size()
  4338  	dAtA = make([]byte, size)
  4339  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4340  	if err != nil {
  4341  		return nil, err
  4342  	}
  4343  	return dAtA[:n], nil
  4344  }
  4345  
  4346  func (m *RequestEcho) MarshalTo(dAtA []byte) (int, error) {
  4347  	size := m.Size()
  4348  	return m.MarshalToSizedBuffer(dAtA[:size])
  4349  }
  4350  
  4351  func (m *RequestEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4352  	i := len(dAtA)
  4353  	_ = i
  4354  	var l int
  4355  	_ = l
  4356  	if len(m.Message) > 0 {
  4357  		i -= len(m.Message)
  4358  		copy(dAtA[i:], m.Message)
  4359  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Message)))
  4360  		i--
  4361  		dAtA[i] = 0xa
  4362  	}
  4363  	return len(dAtA) - i, nil
  4364  }
  4365  
  4366  func (m *RequestFlush) Marshal() (dAtA []byte, err error) {
  4367  	size := m.Size()
  4368  	dAtA = make([]byte, size)
  4369  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4370  	if err != nil {
  4371  		return nil, err
  4372  	}
  4373  	return dAtA[:n], nil
  4374  }
  4375  
  4376  func (m *RequestFlush) MarshalTo(dAtA []byte) (int, error) {
  4377  	size := m.Size()
  4378  	return m.MarshalToSizedBuffer(dAtA[:size])
  4379  }
  4380  
  4381  func (m *RequestFlush) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4382  	i := len(dAtA)
  4383  	_ = i
  4384  	var l int
  4385  	_ = l
  4386  	return len(dAtA) - i, nil
  4387  }
  4388  
  4389  func (m *RequestInfo) Marshal() (dAtA []byte, err error) {
  4390  	size := m.Size()
  4391  	dAtA = make([]byte, size)
  4392  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4393  	if err != nil {
  4394  		return nil, err
  4395  	}
  4396  	return dAtA[:n], nil
  4397  }
  4398  
  4399  func (m *RequestInfo) MarshalTo(dAtA []byte) (int, error) {
  4400  	size := m.Size()
  4401  	return m.MarshalToSizedBuffer(dAtA[:size])
  4402  }
  4403  
  4404  func (m *RequestInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4405  	i := len(dAtA)
  4406  	_ = i
  4407  	var l int
  4408  	_ = l
  4409  	if m.P2PVersion != 0 {
  4410  		i = encodeVarintTypes(dAtA, i, uint64(m.P2PVersion))
  4411  		i--
  4412  		dAtA[i] = 0x18
  4413  	}
  4414  	if m.BlockVersion != 0 {
  4415  		i = encodeVarintTypes(dAtA, i, uint64(m.BlockVersion))
  4416  		i--
  4417  		dAtA[i] = 0x10
  4418  	}
  4419  	if len(m.Version) > 0 {
  4420  		i -= len(m.Version)
  4421  		copy(dAtA[i:], m.Version)
  4422  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Version)))
  4423  		i--
  4424  		dAtA[i] = 0xa
  4425  	}
  4426  	return len(dAtA) - i, nil
  4427  }
  4428  
  4429  func (m *RequestSetOption) Marshal() (dAtA []byte, err error) {
  4430  	size := m.Size()
  4431  	dAtA = make([]byte, size)
  4432  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4433  	if err != nil {
  4434  		return nil, err
  4435  	}
  4436  	return dAtA[:n], nil
  4437  }
  4438  
  4439  func (m *RequestSetOption) MarshalTo(dAtA []byte) (int, error) {
  4440  	size := m.Size()
  4441  	return m.MarshalToSizedBuffer(dAtA[:size])
  4442  }
  4443  
  4444  func (m *RequestSetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4445  	i := len(dAtA)
  4446  	_ = i
  4447  	var l int
  4448  	_ = l
  4449  	if len(m.Value) > 0 {
  4450  		i -= len(m.Value)
  4451  		copy(dAtA[i:], m.Value)
  4452  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
  4453  		i--
  4454  		dAtA[i] = 0x12
  4455  	}
  4456  	if len(m.Key) > 0 {
  4457  		i -= len(m.Key)
  4458  		copy(dAtA[i:], m.Key)
  4459  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
  4460  		i--
  4461  		dAtA[i] = 0xa
  4462  	}
  4463  	return len(dAtA) - i, nil
  4464  }
  4465  
  4466  func (m *RequestInitChain) Marshal() (dAtA []byte, err error) {
  4467  	size := m.Size()
  4468  	dAtA = make([]byte, size)
  4469  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4470  	if err != nil {
  4471  		return nil, err
  4472  	}
  4473  	return dAtA[:n], nil
  4474  }
  4475  
  4476  func (m *RequestInitChain) MarshalTo(dAtA []byte) (int, error) {
  4477  	size := m.Size()
  4478  	return m.MarshalToSizedBuffer(dAtA[:size])
  4479  }
  4480  
  4481  func (m *RequestInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4482  	i := len(dAtA)
  4483  	_ = i
  4484  	var l int
  4485  	_ = l
  4486  	if m.InitialHeight != 0 {
  4487  		i = encodeVarintTypes(dAtA, i, uint64(m.InitialHeight))
  4488  		i--
  4489  		dAtA[i] = 0x30
  4490  	}
  4491  	if len(m.AppStateBytes) > 0 {
  4492  		i -= len(m.AppStateBytes)
  4493  		copy(dAtA[i:], m.AppStateBytes)
  4494  		i = encodeVarintTypes(dAtA, i, uint64(len(m.AppStateBytes)))
  4495  		i--
  4496  		dAtA[i] = 0x2a
  4497  	}
  4498  	if len(m.Validators) > 0 {
  4499  		for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- {
  4500  			{
  4501  				size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4502  				if err != nil {
  4503  					return 0, err
  4504  				}
  4505  				i -= size
  4506  				i = encodeVarintTypes(dAtA, i, uint64(size))
  4507  			}
  4508  			i--
  4509  			dAtA[i] = 0x22
  4510  		}
  4511  	}
  4512  	if m.ConsensusParams != nil {
  4513  		{
  4514  			size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i])
  4515  			if err != nil {
  4516  				return 0, err
  4517  			}
  4518  			i -= size
  4519  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4520  		}
  4521  		i--
  4522  		dAtA[i] = 0x1a
  4523  	}
  4524  	if len(m.ChainId) > 0 {
  4525  		i -= len(m.ChainId)
  4526  		copy(dAtA[i:], m.ChainId)
  4527  		i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainId)))
  4528  		i--
  4529  		dAtA[i] = 0x12
  4530  	}
  4531  	n17, err17 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):])
  4532  	if err17 != nil {
  4533  		return 0, err17
  4534  	}
  4535  	i -= n17
  4536  	i = encodeVarintTypes(dAtA, i, uint64(n17))
  4537  	i--
  4538  	dAtA[i] = 0xa
  4539  	return len(dAtA) - i, nil
  4540  }
  4541  
  4542  func (m *RequestQuery) Marshal() (dAtA []byte, err error) {
  4543  	size := m.Size()
  4544  	dAtA = make([]byte, size)
  4545  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4546  	if err != nil {
  4547  		return nil, err
  4548  	}
  4549  	return dAtA[:n], nil
  4550  }
  4551  
  4552  func (m *RequestQuery) MarshalTo(dAtA []byte) (int, error) {
  4553  	size := m.Size()
  4554  	return m.MarshalToSizedBuffer(dAtA[:size])
  4555  }
  4556  
  4557  func (m *RequestQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4558  	i := len(dAtA)
  4559  	_ = i
  4560  	var l int
  4561  	_ = l
  4562  	if m.Prove {
  4563  		i--
  4564  		if m.Prove {
  4565  			dAtA[i] = 1
  4566  		} else {
  4567  			dAtA[i] = 0
  4568  		}
  4569  		i--
  4570  		dAtA[i] = 0x20
  4571  	}
  4572  	if m.Height != 0 {
  4573  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  4574  		i--
  4575  		dAtA[i] = 0x18
  4576  	}
  4577  	if len(m.Path) > 0 {
  4578  		i -= len(m.Path)
  4579  		copy(dAtA[i:], m.Path)
  4580  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Path)))
  4581  		i--
  4582  		dAtA[i] = 0x12
  4583  	}
  4584  	if len(m.Data) > 0 {
  4585  		i -= len(m.Data)
  4586  		copy(dAtA[i:], m.Data)
  4587  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  4588  		i--
  4589  		dAtA[i] = 0xa
  4590  	}
  4591  	return len(dAtA) - i, nil
  4592  }
  4593  
  4594  func (m *RequestBeginBlock) Marshal() (dAtA []byte, err error) {
  4595  	size := m.Size()
  4596  	dAtA = make([]byte, size)
  4597  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4598  	if err != nil {
  4599  		return nil, err
  4600  	}
  4601  	return dAtA[:n], nil
  4602  }
  4603  
  4604  func (m *RequestBeginBlock) MarshalTo(dAtA []byte) (int, error) {
  4605  	size := m.Size()
  4606  	return m.MarshalToSizedBuffer(dAtA[:size])
  4607  }
  4608  
  4609  func (m *RequestBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4610  	i := len(dAtA)
  4611  	_ = i
  4612  	var l int
  4613  	_ = l
  4614  	if len(m.ByzantineValidators) > 0 {
  4615  		for iNdEx := len(m.ByzantineValidators) - 1; iNdEx >= 0; iNdEx-- {
  4616  			{
  4617  				size, err := m.ByzantineValidators[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4618  				if err != nil {
  4619  					return 0, err
  4620  				}
  4621  				i -= size
  4622  				i = encodeVarintTypes(dAtA, i, uint64(size))
  4623  			}
  4624  			i--
  4625  			dAtA[i] = 0x22
  4626  		}
  4627  	}
  4628  	{
  4629  		size, err := m.LastCommitInfo.MarshalToSizedBuffer(dAtA[:i])
  4630  		if err != nil {
  4631  			return 0, err
  4632  		}
  4633  		i -= size
  4634  		i = encodeVarintTypes(dAtA, i, uint64(size))
  4635  	}
  4636  	i--
  4637  	dAtA[i] = 0x1a
  4638  	{
  4639  		size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  4640  		if err != nil {
  4641  			return 0, err
  4642  		}
  4643  		i -= size
  4644  		i = encodeVarintTypes(dAtA, i, uint64(size))
  4645  	}
  4646  	i--
  4647  	dAtA[i] = 0x12
  4648  	if len(m.Hash) > 0 {
  4649  		i -= len(m.Hash)
  4650  		copy(dAtA[i:], m.Hash)
  4651  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
  4652  		i--
  4653  		dAtA[i] = 0xa
  4654  	}
  4655  	return len(dAtA) - i, nil
  4656  }
  4657  
  4658  func (m *RequestCheckTx) Marshal() (dAtA []byte, err error) {
  4659  	size := m.Size()
  4660  	dAtA = make([]byte, size)
  4661  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4662  	if err != nil {
  4663  		return nil, err
  4664  	}
  4665  	return dAtA[:n], nil
  4666  }
  4667  
  4668  func (m *RequestCheckTx) MarshalTo(dAtA []byte) (int, error) {
  4669  	size := m.Size()
  4670  	return m.MarshalToSizedBuffer(dAtA[:size])
  4671  }
  4672  
  4673  func (m *RequestCheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4674  	i := len(dAtA)
  4675  	_ = i
  4676  	var l int
  4677  	_ = l
  4678  	if m.Type != 0 {
  4679  		i = encodeVarintTypes(dAtA, i, uint64(m.Type))
  4680  		i--
  4681  		dAtA[i] = 0x10
  4682  	}
  4683  	if len(m.Tx) > 0 {
  4684  		i -= len(m.Tx)
  4685  		copy(dAtA[i:], m.Tx)
  4686  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx)))
  4687  		i--
  4688  		dAtA[i] = 0xa
  4689  	}
  4690  	return len(dAtA) - i, nil
  4691  }
  4692  
  4693  func (m *RequestDeliverTx) Marshal() (dAtA []byte, err error) {
  4694  	size := m.Size()
  4695  	dAtA = make([]byte, size)
  4696  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4697  	if err != nil {
  4698  		return nil, err
  4699  	}
  4700  	return dAtA[:n], nil
  4701  }
  4702  
  4703  func (m *RequestDeliverTx) MarshalTo(dAtA []byte) (int, error) {
  4704  	size := m.Size()
  4705  	return m.MarshalToSizedBuffer(dAtA[:size])
  4706  }
  4707  
  4708  func (m *RequestDeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4709  	i := len(dAtA)
  4710  	_ = i
  4711  	var l int
  4712  	_ = l
  4713  	if len(m.Tx) > 0 {
  4714  		i -= len(m.Tx)
  4715  		copy(dAtA[i:], m.Tx)
  4716  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx)))
  4717  		i--
  4718  		dAtA[i] = 0xa
  4719  	}
  4720  	return len(dAtA) - i, nil
  4721  }
  4722  
  4723  func (m *RequestEndBlock) Marshal() (dAtA []byte, err error) {
  4724  	size := m.Size()
  4725  	dAtA = make([]byte, size)
  4726  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4727  	if err != nil {
  4728  		return nil, err
  4729  	}
  4730  	return dAtA[:n], nil
  4731  }
  4732  
  4733  func (m *RequestEndBlock) MarshalTo(dAtA []byte) (int, error) {
  4734  	size := m.Size()
  4735  	return m.MarshalToSizedBuffer(dAtA[:size])
  4736  }
  4737  
  4738  func (m *RequestEndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4739  	i := len(dAtA)
  4740  	_ = i
  4741  	var l int
  4742  	_ = l
  4743  	if m.Height != 0 {
  4744  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  4745  		i--
  4746  		dAtA[i] = 0x8
  4747  	}
  4748  	return len(dAtA) - i, nil
  4749  }
  4750  
  4751  func (m *RequestCommit) Marshal() (dAtA []byte, err error) {
  4752  	size := m.Size()
  4753  	dAtA = make([]byte, size)
  4754  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4755  	if err != nil {
  4756  		return nil, err
  4757  	}
  4758  	return dAtA[:n], nil
  4759  }
  4760  
  4761  func (m *RequestCommit) MarshalTo(dAtA []byte) (int, error) {
  4762  	size := m.Size()
  4763  	return m.MarshalToSizedBuffer(dAtA[:size])
  4764  }
  4765  
  4766  func (m *RequestCommit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4767  	i := len(dAtA)
  4768  	_ = i
  4769  	var l int
  4770  	_ = l
  4771  	return len(dAtA) - i, nil
  4772  }
  4773  
  4774  func (m *RequestListSnapshots) Marshal() (dAtA []byte, err error) {
  4775  	size := m.Size()
  4776  	dAtA = make([]byte, size)
  4777  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4778  	if err != nil {
  4779  		return nil, err
  4780  	}
  4781  	return dAtA[:n], nil
  4782  }
  4783  
  4784  func (m *RequestListSnapshots) MarshalTo(dAtA []byte) (int, error) {
  4785  	size := m.Size()
  4786  	return m.MarshalToSizedBuffer(dAtA[:size])
  4787  }
  4788  
  4789  func (m *RequestListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4790  	i := len(dAtA)
  4791  	_ = i
  4792  	var l int
  4793  	_ = l
  4794  	return len(dAtA) - i, nil
  4795  }
  4796  
  4797  func (m *RequestOfferSnapshot) Marshal() (dAtA []byte, err error) {
  4798  	size := m.Size()
  4799  	dAtA = make([]byte, size)
  4800  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4801  	if err != nil {
  4802  		return nil, err
  4803  	}
  4804  	return dAtA[:n], nil
  4805  }
  4806  
  4807  func (m *RequestOfferSnapshot) MarshalTo(dAtA []byte) (int, error) {
  4808  	size := m.Size()
  4809  	return m.MarshalToSizedBuffer(dAtA[:size])
  4810  }
  4811  
  4812  func (m *RequestOfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4813  	i := len(dAtA)
  4814  	_ = i
  4815  	var l int
  4816  	_ = l
  4817  	if len(m.AppHash) > 0 {
  4818  		i -= len(m.AppHash)
  4819  		copy(dAtA[i:], m.AppHash)
  4820  		i = encodeVarintTypes(dAtA, i, uint64(len(m.AppHash)))
  4821  		i--
  4822  		dAtA[i] = 0x12
  4823  	}
  4824  	if m.Snapshot != nil {
  4825  		{
  4826  			size, err := m.Snapshot.MarshalToSizedBuffer(dAtA[:i])
  4827  			if err != nil {
  4828  				return 0, err
  4829  			}
  4830  			i -= size
  4831  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4832  		}
  4833  		i--
  4834  		dAtA[i] = 0xa
  4835  	}
  4836  	return len(dAtA) - i, nil
  4837  }
  4838  
  4839  func (m *RequestLoadSnapshotChunk) Marshal() (dAtA []byte, err error) {
  4840  	size := m.Size()
  4841  	dAtA = make([]byte, size)
  4842  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4843  	if err != nil {
  4844  		return nil, err
  4845  	}
  4846  	return dAtA[:n], nil
  4847  }
  4848  
  4849  func (m *RequestLoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) {
  4850  	size := m.Size()
  4851  	return m.MarshalToSizedBuffer(dAtA[:size])
  4852  }
  4853  
  4854  func (m *RequestLoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4855  	i := len(dAtA)
  4856  	_ = i
  4857  	var l int
  4858  	_ = l
  4859  	if m.Chunk != 0 {
  4860  		i = encodeVarintTypes(dAtA, i, uint64(m.Chunk))
  4861  		i--
  4862  		dAtA[i] = 0x18
  4863  	}
  4864  	if m.Format != 0 {
  4865  		i = encodeVarintTypes(dAtA, i, uint64(m.Format))
  4866  		i--
  4867  		dAtA[i] = 0x10
  4868  	}
  4869  	if m.Height != 0 {
  4870  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  4871  		i--
  4872  		dAtA[i] = 0x8
  4873  	}
  4874  	return len(dAtA) - i, nil
  4875  }
  4876  
  4877  func (m *RequestApplySnapshotChunk) Marshal() (dAtA []byte, err error) {
  4878  	size := m.Size()
  4879  	dAtA = make([]byte, size)
  4880  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4881  	if err != nil {
  4882  		return nil, err
  4883  	}
  4884  	return dAtA[:n], nil
  4885  }
  4886  
  4887  func (m *RequestApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) {
  4888  	size := m.Size()
  4889  	return m.MarshalToSizedBuffer(dAtA[:size])
  4890  }
  4891  
  4892  func (m *RequestApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4893  	i := len(dAtA)
  4894  	_ = i
  4895  	var l int
  4896  	_ = l
  4897  	if len(m.Sender) > 0 {
  4898  		i -= len(m.Sender)
  4899  		copy(dAtA[i:], m.Sender)
  4900  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Sender)))
  4901  		i--
  4902  		dAtA[i] = 0x1a
  4903  	}
  4904  	if len(m.Chunk) > 0 {
  4905  		i -= len(m.Chunk)
  4906  		copy(dAtA[i:], m.Chunk)
  4907  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Chunk)))
  4908  		i--
  4909  		dAtA[i] = 0x12
  4910  	}
  4911  	if m.Index != 0 {
  4912  		i = encodeVarintTypes(dAtA, i, uint64(m.Index))
  4913  		i--
  4914  		dAtA[i] = 0x8
  4915  	}
  4916  	return len(dAtA) - i, nil
  4917  }
  4918  
  4919  func (m *Response) Marshal() (dAtA []byte, err error) {
  4920  	size := m.Size()
  4921  	dAtA = make([]byte, size)
  4922  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4923  	if err != nil {
  4924  		return nil, err
  4925  	}
  4926  	return dAtA[:n], nil
  4927  }
  4928  
  4929  func (m *Response) MarshalTo(dAtA []byte) (int, error) {
  4930  	size := m.Size()
  4931  	return m.MarshalToSizedBuffer(dAtA[:size])
  4932  }
  4933  
  4934  func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4935  	i := len(dAtA)
  4936  	_ = i
  4937  	var l int
  4938  	_ = l
  4939  	if m.Value != nil {
  4940  		{
  4941  			size := m.Value.Size()
  4942  			i -= size
  4943  			if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil {
  4944  				return 0, err
  4945  			}
  4946  		}
  4947  	}
  4948  	return len(dAtA) - i, nil
  4949  }
  4950  
  4951  func (m *Response_Exception) MarshalTo(dAtA []byte) (int, error) {
  4952  	size := m.Size()
  4953  	return m.MarshalToSizedBuffer(dAtA[:size])
  4954  }
  4955  
  4956  func (m *Response_Exception) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4957  	i := len(dAtA)
  4958  	if m.Exception != nil {
  4959  		{
  4960  			size, err := m.Exception.MarshalToSizedBuffer(dAtA[:i])
  4961  			if err != nil {
  4962  				return 0, err
  4963  			}
  4964  			i -= size
  4965  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4966  		}
  4967  		i--
  4968  		dAtA[i] = 0xa
  4969  	}
  4970  	return len(dAtA) - i, nil
  4971  }
  4972  func (m *Response_Echo) MarshalTo(dAtA []byte) (int, error) {
  4973  	size := m.Size()
  4974  	return m.MarshalToSizedBuffer(dAtA[:size])
  4975  }
  4976  
  4977  func (m *Response_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4978  	i := len(dAtA)
  4979  	if m.Echo != nil {
  4980  		{
  4981  			size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i])
  4982  			if err != nil {
  4983  				return 0, err
  4984  			}
  4985  			i -= size
  4986  			i = encodeVarintTypes(dAtA, i, uint64(size))
  4987  		}
  4988  		i--
  4989  		dAtA[i] = 0x12
  4990  	}
  4991  	return len(dAtA) - i, nil
  4992  }
  4993  func (m *Response_Flush) MarshalTo(dAtA []byte) (int, error) {
  4994  	size := m.Size()
  4995  	return m.MarshalToSizedBuffer(dAtA[:size])
  4996  }
  4997  
  4998  func (m *Response_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4999  	i := len(dAtA)
  5000  	if m.Flush != nil {
  5001  		{
  5002  			size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i])
  5003  			if err != nil {
  5004  				return 0, err
  5005  			}
  5006  			i -= size
  5007  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5008  		}
  5009  		i--
  5010  		dAtA[i] = 0x1a
  5011  	}
  5012  	return len(dAtA) - i, nil
  5013  }
  5014  func (m *Response_Info) MarshalTo(dAtA []byte) (int, error) {
  5015  	size := m.Size()
  5016  	return m.MarshalToSizedBuffer(dAtA[:size])
  5017  }
  5018  
  5019  func (m *Response_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5020  	i := len(dAtA)
  5021  	if m.Info != nil {
  5022  		{
  5023  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
  5024  			if err != nil {
  5025  				return 0, err
  5026  			}
  5027  			i -= size
  5028  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5029  		}
  5030  		i--
  5031  		dAtA[i] = 0x22
  5032  	}
  5033  	return len(dAtA) - i, nil
  5034  }
  5035  func (m *Response_SetOption) MarshalTo(dAtA []byte) (int, error) {
  5036  	size := m.Size()
  5037  	return m.MarshalToSizedBuffer(dAtA[:size])
  5038  }
  5039  
  5040  func (m *Response_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5041  	i := len(dAtA)
  5042  	if m.SetOption != nil {
  5043  		{
  5044  			size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i])
  5045  			if err != nil {
  5046  				return 0, err
  5047  			}
  5048  			i -= size
  5049  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5050  		}
  5051  		i--
  5052  		dAtA[i] = 0x2a
  5053  	}
  5054  	return len(dAtA) - i, nil
  5055  }
  5056  func (m *Response_InitChain) MarshalTo(dAtA []byte) (int, error) {
  5057  	size := m.Size()
  5058  	return m.MarshalToSizedBuffer(dAtA[:size])
  5059  }
  5060  
  5061  func (m *Response_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5062  	i := len(dAtA)
  5063  	if m.InitChain != nil {
  5064  		{
  5065  			size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i])
  5066  			if err != nil {
  5067  				return 0, err
  5068  			}
  5069  			i -= size
  5070  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5071  		}
  5072  		i--
  5073  		dAtA[i] = 0x32
  5074  	}
  5075  	return len(dAtA) - i, nil
  5076  }
  5077  func (m *Response_Query) MarshalTo(dAtA []byte) (int, error) {
  5078  	size := m.Size()
  5079  	return m.MarshalToSizedBuffer(dAtA[:size])
  5080  }
  5081  
  5082  func (m *Response_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5083  	i := len(dAtA)
  5084  	if m.Query != nil {
  5085  		{
  5086  			size, err := m.Query.MarshalToSizedBuffer(dAtA[:i])
  5087  			if err != nil {
  5088  				return 0, err
  5089  			}
  5090  			i -= size
  5091  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5092  		}
  5093  		i--
  5094  		dAtA[i] = 0x3a
  5095  	}
  5096  	return len(dAtA) - i, nil
  5097  }
  5098  func (m *Response_BeginBlock) MarshalTo(dAtA []byte) (int, error) {
  5099  	size := m.Size()
  5100  	return m.MarshalToSizedBuffer(dAtA[:size])
  5101  }
  5102  
  5103  func (m *Response_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5104  	i := len(dAtA)
  5105  	if m.BeginBlock != nil {
  5106  		{
  5107  			size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i])
  5108  			if err != nil {
  5109  				return 0, err
  5110  			}
  5111  			i -= size
  5112  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5113  		}
  5114  		i--
  5115  		dAtA[i] = 0x42
  5116  	}
  5117  	return len(dAtA) - i, nil
  5118  }
  5119  func (m *Response_CheckTx) MarshalTo(dAtA []byte) (int, error) {
  5120  	size := m.Size()
  5121  	return m.MarshalToSizedBuffer(dAtA[:size])
  5122  }
  5123  
  5124  func (m *Response_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5125  	i := len(dAtA)
  5126  	if m.CheckTx != nil {
  5127  		{
  5128  			size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i])
  5129  			if err != nil {
  5130  				return 0, err
  5131  			}
  5132  			i -= size
  5133  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5134  		}
  5135  		i--
  5136  		dAtA[i] = 0x4a
  5137  	}
  5138  	return len(dAtA) - i, nil
  5139  }
  5140  func (m *Response_DeliverTx) MarshalTo(dAtA []byte) (int, error) {
  5141  	size := m.Size()
  5142  	return m.MarshalToSizedBuffer(dAtA[:size])
  5143  }
  5144  
  5145  func (m *Response_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5146  	i := len(dAtA)
  5147  	if m.DeliverTx != nil {
  5148  		{
  5149  			size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i])
  5150  			if err != nil {
  5151  				return 0, err
  5152  			}
  5153  			i -= size
  5154  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5155  		}
  5156  		i--
  5157  		dAtA[i] = 0x52
  5158  	}
  5159  	return len(dAtA) - i, nil
  5160  }
  5161  func (m *Response_EndBlock) MarshalTo(dAtA []byte) (int, error) {
  5162  	size := m.Size()
  5163  	return m.MarshalToSizedBuffer(dAtA[:size])
  5164  }
  5165  
  5166  func (m *Response_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5167  	i := len(dAtA)
  5168  	if m.EndBlock != nil {
  5169  		{
  5170  			size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i])
  5171  			if err != nil {
  5172  				return 0, err
  5173  			}
  5174  			i -= size
  5175  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5176  		}
  5177  		i--
  5178  		dAtA[i] = 0x5a
  5179  	}
  5180  	return len(dAtA) - i, nil
  5181  }
  5182  func (m *Response_Commit) MarshalTo(dAtA []byte) (int, error) {
  5183  	size := m.Size()
  5184  	return m.MarshalToSizedBuffer(dAtA[:size])
  5185  }
  5186  
  5187  func (m *Response_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5188  	i := len(dAtA)
  5189  	if m.Commit != nil {
  5190  		{
  5191  			size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i])
  5192  			if err != nil {
  5193  				return 0, err
  5194  			}
  5195  			i -= size
  5196  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5197  		}
  5198  		i--
  5199  		dAtA[i] = 0x62
  5200  	}
  5201  	return len(dAtA) - i, nil
  5202  }
  5203  func (m *Response_ListSnapshots) MarshalTo(dAtA []byte) (int, error) {
  5204  	size := m.Size()
  5205  	return m.MarshalToSizedBuffer(dAtA[:size])
  5206  }
  5207  
  5208  func (m *Response_ListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5209  	i := len(dAtA)
  5210  	if m.ListSnapshots != nil {
  5211  		{
  5212  			size, err := m.ListSnapshots.MarshalToSizedBuffer(dAtA[:i])
  5213  			if err != nil {
  5214  				return 0, err
  5215  			}
  5216  			i -= size
  5217  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5218  		}
  5219  		i--
  5220  		dAtA[i] = 0x6a
  5221  	}
  5222  	return len(dAtA) - i, nil
  5223  }
  5224  func (m *Response_OfferSnapshot) MarshalTo(dAtA []byte) (int, error) {
  5225  	size := m.Size()
  5226  	return m.MarshalToSizedBuffer(dAtA[:size])
  5227  }
  5228  
  5229  func (m *Response_OfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5230  	i := len(dAtA)
  5231  	if m.OfferSnapshot != nil {
  5232  		{
  5233  			size, err := m.OfferSnapshot.MarshalToSizedBuffer(dAtA[:i])
  5234  			if err != nil {
  5235  				return 0, err
  5236  			}
  5237  			i -= size
  5238  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5239  		}
  5240  		i--
  5241  		dAtA[i] = 0x72
  5242  	}
  5243  	return len(dAtA) - i, nil
  5244  }
  5245  func (m *Response_LoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) {
  5246  	size := m.Size()
  5247  	return m.MarshalToSizedBuffer(dAtA[:size])
  5248  }
  5249  
  5250  func (m *Response_LoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5251  	i := len(dAtA)
  5252  	if m.LoadSnapshotChunk != nil {
  5253  		{
  5254  			size, err := m.LoadSnapshotChunk.MarshalToSizedBuffer(dAtA[:i])
  5255  			if err != nil {
  5256  				return 0, err
  5257  			}
  5258  			i -= size
  5259  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5260  		}
  5261  		i--
  5262  		dAtA[i] = 0x7a
  5263  	}
  5264  	return len(dAtA) - i, nil
  5265  }
  5266  func (m *Response_ApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) {
  5267  	size := m.Size()
  5268  	return m.MarshalToSizedBuffer(dAtA[:size])
  5269  }
  5270  
  5271  func (m *Response_ApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5272  	i := len(dAtA)
  5273  	if m.ApplySnapshotChunk != nil {
  5274  		{
  5275  			size, err := m.ApplySnapshotChunk.MarshalToSizedBuffer(dAtA[:i])
  5276  			if err != nil {
  5277  				return 0, err
  5278  			}
  5279  			i -= size
  5280  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5281  		}
  5282  		i--
  5283  		dAtA[i] = 0x1
  5284  		i--
  5285  		dAtA[i] = 0x82
  5286  	}
  5287  	return len(dAtA) - i, nil
  5288  }
  5289  func (m *ResponseException) Marshal() (dAtA []byte, err error) {
  5290  	size := m.Size()
  5291  	dAtA = make([]byte, size)
  5292  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5293  	if err != nil {
  5294  		return nil, err
  5295  	}
  5296  	return dAtA[:n], nil
  5297  }
  5298  
  5299  func (m *ResponseException) MarshalTo(dAtA []byte) (int, error) {
  5300  	size := m.Size()
  5301  	return m.MarshalToSizedBuffer(dAtA[:size])
  5302  }
  5303  
  5304  func (m *ResponseException) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5305  	i := len(dAtA)
  5306  	_ = i
  5307  	var l int
  5308  	_ = l
  5309  	if len(m.Error) > 0 {
  5310  		i -= len(m.Error)
  5311  		copy(dAtA[i:], m.Error)
  5312  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Error)))
  5313  		i--
  5314  		dAtA[i] = 0xa
  5315  	}
  5316  	return len(dAtA) - i, nil
  5317  }
  5318  
  5319  func (m *ResponseEcho) Marshal() (dAtA []byte, err error) {
  5320  	size := m.Size()
  5321  	dAtA = make([]byte, size)
  5322  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5323  	if err != nil {
  5324  		return nil, err
  5325  	}
  5326  	return dAtA[:n], nil
  5327  }
  5328  
  5329  func (m *ResponseEcho) MarshalTo(dAtA []byte) (int, error) {
  5330  	size := m.Size()
  5331  	return m.MarshalToSizedBuffer(dAtA[:size])
  5332  }
  5333  
  5334  func (m *ResponseEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5335  	i := len(dAtA)
  5336  	_ = i
  5337  	var l int
  5338  	_ = l
  5339  	if len(m.Message) > 0 {
  5340  		i -= len(m.Message)
  5341  		copy(dAtA[i:], m.Message)
  5342  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Message)))
  5343  		i--
  5344  		dAtA[i] = 0xa
  5345  	}
  5346  	return len(dAtA) - i, nil
  5347  }
  5348  
  5349  func (m *ResponseFlush) Marshal() (dAtA []byte, err error) {
  5350  	size := m.Size()
  5351  	dAtA = make([]byte, size)
  5352  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5353  	if err != nil {
  5354  		return nil, err
  5355  	}
  5356  	return dAtA[:n], nil
  5357  }
  5358  
  5359  func (m *ResponseFlush) MarshalTo(dAtA []byte) (int, error) {
  5360  	size := m.Size()
  5361  	return m.MarshalToSizedBuffer(dAtA[:size])
  5362  }
  5363  
  5364  func (m *ResponseFlush) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5365  	i := len(dAtA)
  5366  	_ = i
  5367  	var l int
  5368  	_ = l
  5369  	return len(dAtA) - i, nil
  5370  }
  5371  
  5372  func (m *ResponseInfo) Marshal() (dAtA []byte, err error) {
  5373  	size := m.Size()
  5374  	dAtA = make([]byte, size)
  5375  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5376  	if err != nil {
  5377  		return nil, err
  5378  	}
  5379  	return dAtA[:n], nil
  5380  }
  5381  
  5382  func (m *ResponseInfo) MarshalTo(dAtA []byte) (int, error) {
  5383  	size := m.Size()
  5384  	return m.MarshalToSizedBuffer(dAtA[:size])
  5385  }
  5386  
  5387  func (m *ResponseInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5388  	i := len(dAtA)
  5389  	_ = i
  5390  	var l int
  5391  	_ = l
  5392  	if len(m.LastBlockAppHash) > 0 {
  5393  		i -= len(m.LastBlockAppHash)
  5394  		copy(dAtA[i:], m.LastBlockAppHash)
  5395  		i = encodeVarintTypes(dAtA, i, uint64(len(m.LastBlockAppHash)))
  5396  		i--
  5397  		dAtA[i] = 0x2a
  5398  	}
  5399  	if m.LastBlockHeight != 0 {
  5400  		i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockHeight))
  5401  		i--
  5402  		dAtA[i] = 0x20
  5403  	}
  5404  	if m.AppVersion != 0 {
  5405  		i = encodeVarintTypes(dAtA, i, uint64(m.AppVersion))
  5406  		i--
  5407  		dAtA[i] = 0x18
  5408  	}
  5409  	if len(m.Version) > 0 {
  5410  		i -= len(m.Version)
  5411  		copy(dAtA[i:], m.Version)
  5412  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Version)))
  5413  		i--
  5414  		dAtA[i] = 0x12
  5415  	}
  5416  	if len(m.Data) > 0 {
  5417  		i -= len(m.Data)
  5418  		copy(dAtA[i:], m.Data)
  5419  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  5420  		i--
  5421  		dAtA[i] = 0xa
  5422  	}
  5423  	return len(dAtA) - i, nil
  5424  }
  5425  
  5426  func (m *ResponseSetOption) Marshal() (dAtA []byte, err error) {
  5427  	size := m.Size()
  5428  	dAtA = make([]byte, size)
  5429  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5430  	if err != nil {
  5431  		return nil, err
  5432  	}
  5433  	return dAtA[:n], nil
  5434  }
  5435  
  5436  func (m *ResponseSetOption) MarshalTo(dAtA []byte) (int, error) {
  5437  	size := m.Size()
  5438  	return m.MarshalToSizedBuffer(dAtA[:size])
  5439  }
  5440  
  5441  func (m *ResponseSetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5442  	i := len(dAtA)
  5443  	_ = i
  5444  	var l int
  5445  	_ = l
  5446  	if len(m.Info) > 0 {
  5447  		i -= len(m.Info)
  5448  		copy(dAtA[i:], m.Info)
  5449  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  5450  		i--
  5451  		dAtA[i] = 0x22
  5452  	}
  5453  	if len(m.Log) > 0 {
  5454  		i -= len(m.Log)
  5455  		copy(dAtA[i:], m.Log)
  5456  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  5457  		i--
  5458  		dAtA[i] = 0x1a
  5459  	}
  5460  	if m.Code != 0 {
  5461  		i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  5462  		i--
  5463  		dAtA[i] = 0x8
  5464  	}
  5465  	return len(dAtA) - i, nil
  5466  }
  5467  
  5468  func (m *ResponseInitChain) Marshal() (dAtA []byte, err error) {
  5469  	size := m.Size()
  5470  	dAtA = make([]byte, size)
  5471  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5472  	if err != nil {
  5473  		return nil, err
  5474  	}
  5475  	return dAtA[:n], nil
  5476  }
  5477  
  5478  func (m *ResponseInitChain) MarshalTo(dAtA []byte) (int, error) {
  5479  	size := m.Size()
  5480  	return m.MarshalToSizedBuffer(dAtA[:size])
  5481  }
  5482  
  5483  func (m *ResponseInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5484  	i := len(dAtA)
  5485  	_ = i
  5486  	var l int
  5487  	_ = l
  5488  	if len(m.AppHash) > 0 {
  5489  		i -= len(m.AppHash)
  5490  		copy(dAtA[i:], m.AppHash)
  5491  		i = encodeVarintTypes(dAtA, i, uint64(len(m.AppHash)))
  5492  		i--
  5493  		dAtA[i] = 0x1a
  5494  	}
  5495  	if len(m.Validators) > 0 {
  5496  		for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- {
  5497  			{
  5498  				size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5499  				if err != nil {
  5500  					return 0, err
  5501  				}
  5502  				i -= size
  5503  				i = encodeVarintTypes(dAtA, i, uint64(size))
  5504  			}
  5505  			i--
  5506  			dAtA[i] = 0x12
  5507  		}
  5508  	}
  5509  	if m.ConsensusParams != nil {
  5510  		{
  5511  			size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i])
  5512  			if err != nil {
  5513  				return 0, err
  5514  			}
  5515  			i -= size
  5516  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5517  		}
  5518  		i--
  5519  		dAtA[i] = 0xa
  5520  	}
  5521  	return len(dAtA) - i, nil
  5522  }
  5523  
  5524  func (m *ResponseQuery) Marshal() (dAtA []byte, err error) {
  5525  	size := m.Size()
  5526  	dAtA = make([]byte, size)
  5527  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5528  	if err != nil {
  5529  		return nil, err
  5530  	}
  5531  	return dAtA[:n], nil
  5532  }
  5533  
  5534  func (m *ResponseQuery) MarshalTo(dAtA []byte) (int, error) {
  5535  	size := m.Size()
  5536  	return m.MarshalToSizedBuffer(dAtA[:size])
  5537  }
  5538  
  5539  func (m *ResponseQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5540  	i := len(dAtA)
  5541  	_ = i
  5542  	var l int
  5543  	_ = l
  5544  	if len(m.Codespace) > 0 {
  5545  		i -= len(m.Codespace)
  5546  		copy(dAtA[i:], m.Codespace)
  5547  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace)))
  5548  		i--
  5549  		dAtA[i] = 0x52
  5550  	}
  5551  	if m.Height != 0 {
  5552  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  5553  		i--
  5554  		dAtA[i] = 0x48
  5555  	}
  5556  	if m.ProofOps != nil {
  5557  		{
  5558  			size, err := m.ProofOps.MarshalToSizedBuffer(dAtA[:i])
  5559  			if err != nil {
  5560  				return 0, err
  5561  			}
  5562  			i -= size
  5563  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5564  		}
  5565  		i--
  5566  		dAtA[i] = 0x42
  5567  	}
  5568  	if len(m.Value) > 0 {
  5569  		i -= len(m.Value)
  5570  		copy(dAtA[i:], m.Value)
  5571  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
  5572  		i--
  5573  		dAtA[i] = 0x3a
  5574  	}
  5575  	if len(m.Key) > 0 {
  5576  		i -= len(m.Key)
  5577  		copy(dAtA[i:], m.Key)
  5578  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
  5579  		i--
  5580  		dAtA[i] = 0x32
  5581  	}
  5582  	if m.Index != 0 {
  5583  		i = encodeVarintTypes(dAtA, i, uint64(m.Index))
  5584  		i--
  5585  		dAtA[i] = 0x28
  5586  	}
  5587  	if len(m.Info) > 0 {
  5588  		i -= len(m.Info)
  5589  		copy(dAtA[i:], m.Info)
  5590  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  5591  		i--
  5592  		dAtA[i] = 0x22
  5593  	}
  5594  	if len(m.Log) > 0 {
  5595  		i -= len(m.Log)
  5596  		copy(dAtA[i:], m.Log)
  5597  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  5598  		i--
  5599  		dAtA[i] = 0x1a
  5600  	}
  5601  	if m.Code != 0 {
  5602  		i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  5603  		i--
  5604  		dAtA[i] = 0x8
  5605  	}
  5606  	return len(dAtA) - i, nil
  5607  }
  5608  
  5609  func (m *ResponseBeginBlock) Marshal() (dAtA []byte, err error) {
  5610  	size := m.Size()
  5611  	dAtA = make([]byte, size)
  5612  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5613  	if err != nil {
  5614  		return nil, err
  5615  	}
  5616  	return dAtA[:n], nil
  5617  }
  5618  
  5619  func (m *ResponseBeginBlock) MarshalTo(dAtA []byte) (int, error) {
  5620  	size := m.Size()
  5621  	return m.MarshalToSizedBuffer(dAtA[:size])
  5622  }
  5623  
  5624  func (m *ResponseBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5625  	i := len(dAtA)
  5626  	_ = i
  5627  	var l int
  5628  	_ = l
  5629  	if len(m.Events) > 0 {
  5630  		for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
  5631  			{
  5632  				size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5633  				if err != nil {
  5634  					return 0, err
  5635  				}
  5636  				i -= size
  5637  				i = encodeVarintTypes(dAtA, i, uint64(size))
  5638  			}
  5639  			i--
  5640  			dAtA[i] = 0xa
  5641  		}
  5642  	}
  5643  	return len(dAtA) - i, nil
  5644  }
  5645  
  5646  func (m *ResponseCheckTx) Marshal() (dAtA []byte, err error) {
  5647  	size := m.Size()
  5648  	dAtA = make([]byte, size)
  5649  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5650  	if err != nil {
  5651  		return nil, err
  5652  	}
  5653  	return dAtA[:n], nil
  5654  }
  5655  
  5656  func (m *ResponseCheckTx) MarshalTo(dAtA []byte) (int, error) {
  5657  	size := m.Size()
  5658  	return m.MarshalToSizedBuffer(dAtA[:size])
  5659  }
  5660  
  5661  func (m *ResponseCheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5662  	i := len(dAtA)
  5663  	_ = i
  5664  	var l int
  5665  	_ = l
  5666  	if len(m.MempoolError) > 0 {
  5667  		i -= len(m.MempoolError)
  5668  		copy(dAtA[i:], m.MempoolError)
  5669  		i = encodeVarintTypes(dAtA, i, uint64(len(m.MempoolError)))
  5670  		i--
  5671  		dAtA[i] = 0x5a
  5672  	}
  5673  	if m.Priority != 0 {
  5674  		i = encodeVarintTypes(dAtA, i, uint64(m.Priority))
  5675  		i--
  5676  		dAtA[i] = 0x50
  5677  	}
  5678  	if len(m.Sender) > 0 {
  5679  		i -= len(m.Sender)
  5680  		copy(dAtA[i:], m.Sender)
  5681  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Sender)))
  5682  		i--
  5683  		dAtA[i] = 0x4a
  5684  	}
  5685  	if len(m.Codespace) > 0 {
  5686  		i -= len(m.Codespace)
  5687  		copy(dAtA[i:], m.Codespace)
  5688  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace)))
  5689  		i--
  5690  		dAtA[i] = 0x42
  5691  	}
  5692  	if len(m.Events) > 0 {
  5693  		for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
  5694  			{
  5695  				size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5696  				if err != nil {
  5697  					return 0, err
  5698  				}
  5699  				i -= size
  5700  				i = encodeVarintTypes(dAtA, i, uint64(size))
  5701  			}
  5702  			i--
  5703  			dAtA[i] = 0x3a
  5704  		}
  5705  	}
  5706  	if m.GasUsed != 0 {
  5707  		i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed))
  5708  		i--
  5709  		dAtA[i] = 0x30
  5710  	}
  5711  	if m.GasWanted != 0 {
  5712  		i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted))
  5713  		i--
  5714  		dAtA[i] = 0x28
  5715  	}
  5716  	if len(m.Info) > 0 {
  5717  		i -= len(m.Info)
  5718  		copy(dAtA[i:], m.Info)
  5719  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  5720  		i--
  5721  		dAtA[i] = 0x22
  5722  	}
  5723  	if len(m.Log) > 0 {
  5724  		i -= len(m.Log)
  5725  		copy(dAtA[i:], m.Log)
  5726  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  5727  		i--
  5728  		dAtA[i] = 0x1a
  5729  	}
  5730  	if len(m.Data) > 0 {
  5731  		i -= len(m.Data)
  5732  		copy(dAtA[i:], m.Data)
  5733  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  5734  		i--
  5735  		dAtA[i] = 0x12
  5736  	}
  5737  	if m.Code != 0 {
  5738  		i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  5739  		i--
  5740  		dAtA[i] = 0x8
  5741  	}
  5742  	return len(dAtA) - i, nil
  5743  }
  5744  
  5745  func (m *ResponseDeliverTx) Marshal() (dAtA []byte, err error) {
  5746  	size := m.Size()
  5747  	dAtA = make([]byte, size)
  5748  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5749  	if err != nil {
  5750  		return nil, err
  5751  	}
  5752  	return dAtA[:n], nil
  5753  }
  5754  
  5755  func (m *ResponseDeliverTx) MarshalTo(dAtA []byte) (int, error) {
  5756  	size := m.Size()
  5757  	return m.MarshalToSizedBuffer(dAtA[:size])
  5758  }
  5759  
  5760  func (m *ResponseDeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5761  	i := len(dAtA)
  5762  	_ = i
  5763  	var l int
  5764  	_ = l
  5765  	if len(m.Codespace) > 0 {
  5766  		i -= len(m.Codespace)
  5767  		copy(dAtA[i:], m.Codespace)
  5768  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace)))
  5769  		i--
  5770  		dAtA[i] = 0x42
  5771  	}
  5772  	if len(m.Events) > 0 {
  5773  		for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
  5774  			{
  5775  				size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5776  				if err != nil {
  5777  					return 0, err
  5778  				}
  5779  				i -= size
  5780  				i = encodeVarintTypes(dAtA, i, uint64(size))
  5781  			}
  5782  			i--
  5783  			dAtA[i] = 0x3a
  5784  		}
  5785  	}
  5786  	if m.GasUsed != 0 {
  5787  		i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed))
  5788  		i--
  5789  		dAtA[i] = 0x30
  5790  	}
  5791  	if m.GasWanted != 0 {
  5792  		i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted))
  5793  		i--
  5794  		dAtA[i] = 0x28
  5795  	}
  5796  	if len(m.Info) > 0 {
  5797  		i -= len(m.Info)
  5798  		copy(dAtA[i:], m.Info)
  5799  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  5800  		i--
  5801  		dAtA[i] = 0x22
  5802  	}
  5803  	if len(m.Log) > 0 {
  5804  		i -= len(m.Log)
  5805  		copy(dAtA[i:], m.Log)
  5806  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  5807  		i--
  5808  		dAtA[i] = 0x1a
  5809  	}
  5810  	if len(m.Data) > 0 {
  5811  		i -= len(m.Data)
  5812  		copy(dAtA[i:], m.Data)
  5813  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  5814  		i--
  5815  		dAtA[i] = 0x12
  5816  	}
  5817  	if m.Code != 0 {
  5818  		i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  5819  		i--
  5820  		dAtA[i] = 0x8
  5821  	}
  5822  	return len(dAtA) - i, nil
  5823  }
  5824  
  5825  func (m *ResponseEndBlock) Marshal() (dAtA []byte, err error) {
  5826  	size := m.Size()
  5827  	dAtA = make([]byte, size)
  5828  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5829  	if err != nil {
  5830  		return nil, err
  5831  	}
  5832  	return dAtA[:n], nil
  5833  }
  5834  
  5835  func (m *ResponseEndBlock) MarshalTo(dAtA []byte) (int, error) {
  5836  	size := m.Size()
  5837  	return m.MarshalToSizedBuffer(dAtA[:size])
  5838  }
  5839  
  5840  func (m *ResponseEndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5841  	i := len(dAtA)
  5842  	_ = i
  5843  	var l int
  5844  	_ = l
  5845  	if len(m.Events) > 0 {
  5846  		for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
  5847  			{
  5848  				size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5849  				if err != nil {
  5850  					return 0, err
  5851  				}
  5852  				i -= size
  5853  				i = encodeVarintTypes(dAtA, i, uint64(size))
  5854  			}
  5855  			i--
  5856  			dAtA[i] = 0x1a
  5857  		}
  5858  	}
  5859  	if m.ConsensusParamUpdates != nil {
  5860  		{
  5861  			size, err := m.ConsensusParamUpdates.MarshalToSizedBuffer(dAtA[:i])
  5862  			if err != nil {
  5863  				return 0, err
  5864  			}
  5865  			i -= size
  5866  			i = encodeVarintTypes(dAtA, i, uint64(size))
  5867  		}
  5868  		i--
  5869  		dAtA[i] = 0x12
  5870  	}
  5871  	if len(m.ValidatorUpdates) > 0 {
  5872  		for iNdEx := len(m.ValidatorUpdates) - 1; iNdEx >= 0; iNdEx-- {
  5873  			{
  5874  				size, err := m.ValidatorUpdates[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5875  				if err != nil {
  5876  					return 0, err
  5877  				}
  5878  				i -= size
  5879  				i = encodeVarintTypes(dAtA, i, uint64(size))
  5880  			}
  5881  			i--
  5882  			dAtA[i] = 0xa
  5883  		}
  5884  	}
  5885  	return len(dAtA) - i, nil
  5886  }
  5887  
  5888  func (m *ResponseCommit) Marshal() (dAtA []byte, err error) {
  5889  	size := m.Size()
  5890  	dAtA = make([]byte, size)
  5891  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5892  	if err != nil {
  5893  		return nil, err
  5894  	}
  5895  	return dAtA[:n], nil
  5896  }
  5897  
  5898  func (m *ResponseCommit) MarshalTo(dAtA []byte) (int, error) {
  5899  	size := m.Size()
  5900  	return m.MarshalToSizedBuffer(dAtA[:size])
  5901  }
  5902  
  5903  func (m *ResponseCommit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5904  	i := len(dAtA)
  5905  	_ = i
  5906  	var l int
  5907  	_ = l
  5908  	if m.RetainHeight != 0 {
  5909  		i = encodeVarintTypes(dAtA, i, uint64(m.RetainHeight))
  5910  		i--
  5911  		dAtA[i] = 0x18
  5912  	}
  5913  	if len(m.Data) > 0 {
  5914  		i -= len(m.Data)
  5915  		copy(dAtA[i:], m.Data)
  5916  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  5917  		i--
  5918  		dAtA[i] = 0x12
  5919  	}
  5920  	return len(dAtA) - i, nil
  5921  }
  5922  
  5923  func (m *ResponseListSnapshots) Marshal() (dAtA []byte, err error) {
  5924  	size := m.Size()
  5925  	dAtA = make([]byte, size)
  5926  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5927  	if err != nil {
  5928  		return nil, err
  5929  	}
  5930  	return dAtA[:n], nil
  5931  }
  5932  
  5933  func (m *ResponseListSnapshots) MarshalTo(dAtA []byte) (int, error) {
  5934  	size := m.Size()
  5935  	return m.MarshalToSizedBuffer(dAtA[:size])
  5936  }
  5937  
  5938  func (m *ResponseListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5939  	i := len(dAtA)
  5940  	_ = i
  5941  	var l int
  5942  	_ = l
  5943  	if len(m.Snapshots) > 0 {
  5944  		for iNdEx := len(m.Snapshots) - 1; iNdEx >= 0; iNdEx-- {
  5945  			{
  5946  				size, err := m.Snapshots[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5947  				if err != nil {
  5948  					return 0, err
  5949  				}
  5950  				i -= size
  5951  				i = encodeVarintTypes(dAtA, i, uint64(size))
  5952  			}
  5953  			i--
  5954  			dAtA[i] = 0xa
  5955  		}
  5956  	}
  5957  	return len(dAtA) - i, nil
  5958  }
  5959  
  5960  func (m *ResponseOfferSnapshot) Marshal() (dAtA []byte, err error) {
  5961  	size := m.Size()
  5962  	dAtA = make([]byte, size)
  5963  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5964  	if err != nil {
  5965  		return nil, err
  5966  	}
  5967  	return dAtA[:n], nil
  5968  }
  5969  
  5970  func (m *ResponseOfferSnapshot) MarshalTo(dAtA []byte) (int, error) {
  5971  	size := m.Size()
  5972  	return m.MarshalToSizedBuffer(dAtA[:size])
  5973  }
  5974  
  5975  func (m *ResponseOfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5976  	i := len(dAtA)
  5977  	_ = i
  5978  	var l int
  5979  	_ = l
  5980  	if m.Result != 0 {
  5981  		i = encodeVarintTypes(dAtA, i, uint64(m.Result))
  5982  		i--
  5983  		dAtA[i] = 0x8
  5984  	}
  5985  	return len(dAtA) - i, nil
  5986  }
  5987  
  5988  func (m *ResponseLoadSnapshotChunk) Marshal() (dAtA []byte, err error) {
  5989  	size := m.Size()
  5990  	dAtA = make([]byte, size)
  5991  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5992  	if err != nil {
  5993  		return nil, err
  5994  	}
  5995  	return dAtA[:n], nil
  5996  }
  5997  
  5998  func (m *ResponseLoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) {
  5999  	size := m.Size()
  6000  	return m.MarshalToSizedBuffer(dAtA[:size])
  6001  }
  6002  
  6003  func (m *ResponseLoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6004  	i := len(dAtA)
  6005  	_ = i
  6006  	var l int
  6007  	_ = l
  6008  	if len(m.Chunk) > 0 {
  6009  		i -= len(m.Chunk)
  6010  		copy(dAtA[i:], m.Chunk)
  6011  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Chunk)))
  6012  		i--
  6013  		dAtA[i] = 0xa
  6014  	}
  6015  	return len(dAtA) - i, nil
  6016  }
  6017  
  6018  func (m *ResponseApplySnapshotChunk) Marshal() (dAtA []byte, err error) {
  6019  	size := m.Size()
  6020  	dAtA = make([]byte, size)
  6021  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6022  	if err != nil {
  6023  		return nil, err
  6024  	}
  6025  	return dAtA[:n], nil
  6026  }
  6027  
  6028  func (m *ResponseApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) {
  6029  	size := m.Size()
  6030  	return m.MarshalToSizedBuffer(dAtA[:size])
  6031  }
  6032  
  6033  func (m *ResponseApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6034  	i := len(dAtA)
  6035  	_ = i
  6036  	var l int
  6037  	_ = l
  6038  	if len(m.RejectSenders) > 0 {
  6039  		for iNdEx := len(m.RejectSenders) - 1; iNdEx >= 0; iNdEx-- {
  6040  			i -= len(m.RejectSenders[iNdEx])
  6041  			copy(dAtA[i:], m.RejectSenders[iNdEx])
  6042  			i = encodeVarintTypes(dAtA, i, uint64(len(m.RejectSenders[iNdEx])))
  6043  			i--
  6044  			dAtA[i] = 0x1a
  6045  		}
  6046  	}
  6047  	if len(m.RefetchChunks) > 0 {
  6048  		dAtA41 := make([]byte, len(m.RefetchChunks)*10)
  6049  		var j40 int
  6050  		for _, num := range m.RefetchChunks {
  6051  			for num >= 1<<7 {
  6052  				dAtA41[j40] = uint8(uint64(num)&0x7f | 0x80)
  6053  				num >>= 7
  6054  				j40++
  6055  			}
  6056  			dAtA41[j40] = uint8(num)
  6057  			j40++
  6058  		}
  6059  		i -= j40
  6060  		copy(dAtA[i:], dAtA41[:j40])
  6061  		i = encodeVarintTypes(dAtA, i, uint64(j40))
  6062  		i--
  6063  		dAtA[i] = 0x12
  6064  	}
  6065  	if m.Result != 0 {
  6066  		i = encodeVarintTypes(dAtA, i, uint64(m.Result))
  6067  		i--
  6068  		dAtA[i] = 0x8
  6069  	}
  6070  	return len(dAtA) - i, nil
  6071  }
  6072  
  6073  func (m *ConsensusParams) Marshal() (dAtA []byte, err error) {
  6074  	size := m.Size()
  6075  	dAtA = make([]byte, size)
  6076  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6077  	if err != nil {
  6078  		return nil, err
  6079  	}
  6080  	return dAtA[:n], nil
  6081  }
  6082  
  6083  func (m *ConsensusParams) MarshalTo(dAtA []byte) (int, error) {
  6084  	size := m.Size()
  6085  	return m.MarshalToSizedBuffer(dAtA[:size])
  6086  }
  6087  
  6088  func (m *ConsensusParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6089  	i := len(dAtA)
  6090  	_ = i
  6091  	var l int
  6092  	_ = l
  6093  	if m.Version != nil {
  6094  		{
  6095  			size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
  6096  			if err != nil {
  6097  				return 0, err
  6098  			}
  6099  			i -= size
  6100  			i = encodeVarintTypes(dAtA, i, uint64(size))
  6101  		}
  6102  		i--
  6103  		dAtA[i] = 0x22
  6104  	}
  6105  	if m.Validator != nil {
  6106  		{
  6107  			size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i])
  6108  			if err != nil {
  6109  				return 0, err
  6110  			}
  6111  			i -= size
  6112  			i = encodeVarintTypes(dAtA, i, uint64(size))
  6113  		}
  6114  		i--
  6115  		dAtA[i] = 0x1a
  6116  	}
  6117  	if m.Evidence != nil {
  6118  		{
  6119  			size, err := m.Evidence.MarshalToSizedBuffer(dAtA[:i])
  6120  			if err != nil {
  6121  				return 0, err
  6122  			}
  6123  			i -= size
  6124  			i = encodeVarintTypes(dAtA, i, uint64(size))
  6125  		}
  6126  		i--
  6127  		dAtA[i] = 0x12
  6128  	}
  6129  	if m.Block != nil {
  6130  		{
  6131  			size, err := m.Block.MarshalToSizedBuffer(dAtA[:i])
  6132  			if err != nil {
  6133  				return 0, err
  6134  			}
  6135  			i -= size
  6136  			i = encodeVarintTypes(dAtA, i, uint64(size))
  6137  		}
  6138  		i--
  6139  		dAtA[i] = 0xa
  6140  	}
  6141  	return len(dAtA) - i, nil
  6142  }
  6143  
  6144  func (m *BlockParams) Marshal() (dAtA []byte, err error) {
  6145  	size := m.Size()
  6146  	dAtA = make([]byte, size)
  6147  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6148  	if err != nil {
  6149  		return nil, err
  6150  	}
  6151  	return dAtA[:n], nil
  6152  }
  6153  
  6154  func (m *BlockParams) MarshalTo(dAtA []byte) (int, error) {
  6155  	size := m.Size()
  6156  	return m.MarshalToSizedBuffer(dAtA[:size])
  6157  }
  6158  
  6159  func (m *BlockParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6160  	i := len(dAtA)
  6161  	_ = i
  6162  	var l int
  6163  	_ = l
  6164  	if m.MaxGas != 0 {
  6165  		i = encodeVarintTypes(dAtA, i, uint64(m.MaxGas))
  6166  		i--
  6167  		dAtA[i] = 0x10
  6168  	}
  6169  	if m.MaxBytes != 0 {
  6170  		i = encodeVarintTypes(dAtA, i, uint64(m.MaxBytes))
  6171  		i--
  6172  		dAtA[i] = 0x8
  6173  	}
  6174  	return len(dAtA) - i, nil
  6175  }
  6176  
  6177  func (m *LastCommitInfo) Marshal() (dAtA []byte, err error) {
  6178  	size := m.Size()
  6179  	dAtA = make([]byte, size)
  6180  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6181  	if err != nil {
  6182  		return nil, err
  6183  	}
  6184  	return dAtA[:n], nil
  6185  }
  6186  
  6187  func (m *LastCommitInfo) MarshalTo(dAtA []byte) (int, error) {
  6188  	size := m.Size()
  6189  	return m.MarshalToSizedBuffer(dAtA[:size])
  6190  }
  6191  
  6192  func (m *LastCommitInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6193  	i := len(dAtA)
  6194  	_ = i
  6195  	var l int
  6196  	_ = l
  6197  	if len(m.Votes) > 0 {
  6198  		for iNdEx := len(m.Votes) - 1; iNdEx >= 0; iNdEx-- {
  6199  			{
  6200  				size, err := m.Votes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6201  				if err != nil {
  6202  					return 0, err
  6203  				}
  6204  				i -= size
  6205  				i = encodeVarintTypes(dAtA, i, uint64(size))
  6206  			}
  6207  			i--
  6208  			dAtA[i] = 0x12
  6209  		}
  6210  	}
  6211  	if m.Round != 0 {
  6212  		i = encodeVarintTypes(dAtA, i, uint64(m.Round))
  6213  		i--
  6214  		dAtA[i] = 0x8
  6215  	}
  6216  	return len(dAtA) - i, nil
  6217  }
  6218  
  6219  func (m *Event) Marshal() (dAtA []byte, err error) {
  6220  	size := m.Size()
  6221  	dAtA = make([]byte, size)
  6222  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6223  	if err != nil {
  6224  		return nil, err
  6225  	}
  6226  	return dAtA[:n], nil
  6227  }
  6228  
  6229  func (m *Event) MarshalTo(dAtA []byte) (int, error) {
  6230  	size := m.Size()
  6231  	return m.MarshalToSizedBuffer(dAtA[:size])
  6232  }
  6233  
  6234  func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6235  	i := len(dAtA)
  6236  	_ = i
  6237  	var l int
  6238  	_ = l
  6239  	if len(m.Attributes) > 0 {
  6240  		for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- {
  6241  			{
  6242  				size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6243  				if err != nil {
  6244  					return 0, err
  6245  				}
  6246  				i -= size
  6247  				i = encodeVarintTypes(dAtA, i, uint64(size))
  6248  			}
  6249  			i--
  6250  			dAtA[i] = 0x12
  6251  		}
  6252  	}
  6253  	if len(m.Type) > 0 {
  6254  		i -= len(m.Type)
  6255  		copy(dAtA[i:], m.Type)
  6256  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Type)))
  6257  		i--
  6258  		dAtA[i] = 0xa
  6259  	}
  6260  	return len(dAtA) - i, nil
  6261  }
  6262  
  6263  func (m *EventAttribute) Marshal() (dAtA []byte, err error) {
  6264  	size := m.Size()
  6265  	dAtA = make([]byte, size)
  6266  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6267  	if err != nil {
  6268  		return nil, err
  6269  	}
  6270  	return dAtA[:n], nil
  6271  }
  6272  
  6273  func (m *EventAttribute) MarshalTo(dAtA []byte) (int, error) {
  6274  	size := m.Size()
  6275  	return m.MarshalToSizedBuffer(dAtA[:size])
  6276  }
  6277  
  6278  func (m *EventAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6279  	i := len(dAtA)
  6280  	_ = i
  6281  	var l int
  6282  	_ = l
  6283  	if m.Index {
  6284  		i--
  6285  		if m.Index {
  6286  			dAtA[i] = 1
  6287  		} else {
  6288  			dAtA[i] = 0
  6289  		}
  6290  		i--
  6291  		dAtA[i] = 0x18
  6292  	}
  6293  	if len(m.Value) > 0 {
  6294  		i -= len(m.Value)
  6295  		copy(dAtA[i:], m.Value)
  6296  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
  6297  		i--
  6298  		dAtA[i] = 0x12
  6299  	}
  6300  	if len(m.Key) > 0 {
  6301  		i -= len(m.Key)
  6302  		copy(dAtA[i:], m.Key)
  6303  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
  6304  		i--
  6305  		dAtA[i] = 0xa
  6306  	}
  6307  	return len(dAtA) - i, nil
  6308  }
  6309  
  6310  func (m *TxResult) Marshal() (dAtA []byte, err error) {
  6311  	size := m.Size()
  6312  	dAtA = make([]byte, size)
  6313  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6314  	if err != nil {
  6315  		return nil, err
  6316  	}
  6317  	return dAtA[:n], nil
  6318  }
  6319  
  6320  func (m *TxResult) MarshalTo(dAtA []byte) (int, error) {
  6321  	size := m.Size()
  6322  	return m.MarshalToSizedBuffer(dAtA[:size])
  6323  }
  6324  
  6325  func (m *TxResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6326  	i := len(dAtA)
  6327  	_ = i
  6328  	var l int
  6329  	_ = l
  6330  	{
  6331  		size, err := m.Result.MarshalToSizedBuffer(dAtA[:i])
  6332  		if err != nil {
  6333  			return 0, err
  6334  		}
  6335  		i -= size
  6336  		i = encodeVarintTypes(dAtA, i, uint64(size))
  6337  	}
  6338  	i--
  6339  	dAtA[i] = 0x22
  6340  	if len(m.Tx) > 0 {
  6341  		i -= len(m.Tx)
  6342  		copy(dAtA[i:], m.Tx)
  6343  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx)))
  6344  		i--
  6345  		dAtA[i] = 0x1a
  6346  	}
  6347  	if m.Index != 0 {
  6348  		i = encodeVarintTypes(dAtA, i, uint64(m.Index))
  6349  		i--
  6350  		dAtA[i] = 0x10
  6351  	}
  6352  	if m.Height != 0 {
  6353  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  6354  		i--
  6355  		dAtA[i] = 0x8
  6356  	}
  6357  	return len(dAtA) - i, nil
  6358  }
  6359  
  6360  func (m *Validator) Marshal() (dAtA []byte, err error) {
  6361  	size := m.Size()
  6362  	dAtA = make([]byte, size)
  6363  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6364  	if err != nil {
  6365  		return nil, err
  6366  	}
  6367  	return dAtA[:n], nil
  6368  }
  6369  
  6370  func (m *Validator) MarshalTo(dAtA []byte) (int, error) {
  6371  	size := m.Size()
  6372  	return m.MarshalToSizedBuffer(dAtA[:size])
  6373  }
  6374  
  6375  func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6376  	i := len(dAtA)
  6377  	_ = i
  6378  	var l int
  6379  	_ = l
  6380  	if m.Power != 0 {
  6381  		i = encodeVarintTypes(dAtA, i, uint64(m.Power))
  6382  		i--
  6383  		dAtA[i] = 0x18
  6384  	}
  6385  	if len(m.Address) > 0 {
  6386  		i -= len(m.Address)
  6387  		copy(dAtA[i:], m.Address)
  6388  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Address)))
  6389  		i--
  6390  		dAtA[i] = 0xa
  6391  	}
  6392  	return len(dAtA) - i, nil
  6393  }
  6394  
  6395  func (m *ValidatorUpdate) Marshal() (dAtA []byte, err error) {
  6396  	size := m.Size()
  6397  	dAtA = make([]byte, size)
  6398  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6399  	if err != nil {
  6400  		return nil, err
  6401  	}
  6402  	return dAtA[:n], nil
  6403  }
  6404  
  6405  func (m *ValidatorUpdate) MarshalTo(dAtA []byte) (int, error) {
  6406  	size := m.Size()
  6407  	return m.MarshalToSizedBuffer(dAtA[:size])
  6408  }
  6409  
  6410  func (m *ValidatorUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6411  	i := len(dAtA)
  6412  	_ = i
  6413  	var l int
  6414  	_ = l
  6415  	if m.Power != 0 {
  6416  		i = encodeVarintTypes(dAtA, i, uint64(m.Power))
  6417  		i--
  6418  		dAtA[i] = 0x10
  6419  	}
  6420  	{
  6421  		size, err := m.PubKey.MarshalToSizedBuffer(dAtA[:i])
  6422  		if err != nil {
  6423  			return 0, err
  6424  		}
  6425  		i -= size
  6426  		i = encodeVarintTypes(dAtA, i, uint64(size))
  6427  	}
  6428  	i--
  6429  	dAtA[i] = 0xa
  6430  	return len(dAtA) - i, nil
  6431  }
  6432  
  6433  func (m *VoteInfo) Marshal() (dAtA []byte, err error) {
  6434  	size := m.Size()
  6435  	dAtA = make([]byte, size)
  6436  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6437  	if err != nil {
  6438  		return nil, err
  6439  	}
  6440  	return dAtA[:n], nil
  6441  }
  6442  
  6443  func (m *VoteInfo) MarshalTo(dAtA []byte) (int, error) {
  6444  	size := m.Size()
  6445  	return m.MarshalToSizedBuffer(dAtA[:size])
  6446  }
  6447  
  6448  func (m *VoteInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6449  	i := len(dAtA)
  6450  	_ = i
  6451  	var l int
  6452  	_ = l
  6453  	if m.SignedLastBlock {
  6454  		i--
  6455  		if m.SignedLastBlock {
  6456  			dAtA[i] = 1
  6457  		} else {
  6458  			dAtA[i] = 0
  6459  		}
  6460  		i--
  6461  		dAtA[i] = 0x10
  6462  	}
  6463  	{
  6464  		size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i])
  6465  		if err != nil {
  6466  			return 0, err
  6467  		}
  6468  		i -= size
  6469  		i = encodeVarintTypes(dAtA, i, uint64(size))
  6470  	}
  6471  	i--
  6472  	dAtA[i] = 0xa
  6473  	return len(dAtA) - i, nil
  6474  }
  6475  
  6476  func (m *Evidence) Marshal() (dAtA []byte, err error) {
  6477  	size := m.Size()
  6478  	dAtA = make([]byte, size)
  6479  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6480  	if err != nil {
  6481  		return nil, err
  6482  	}
  6483  	return dAtA[:n], nil
  6484  }
  6485  
  6486  func (m *Evidence) MarshalTo(dAtA []byte) (int, error) {
  6487  	size := m.Size()
  6488  	return m.MarshalToSizedBuffer(dAtA[:size])
  6489  }
  6490  
  6491  func (m *Evidence) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6492  	i := len(dAtA)
  6493  	_ = i
  6494  	var l int
  6495  	_ = l
  6496  	if m.TotalVotingPower != 0 {
  6497  		i = encodeVarintTypes(dAtA, i, uint64(m.TotalVotingPower))
  6498  		i--
  6499  		dAtA[i] = 0x28
  6500  	}
  6501  	n49, err49 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):])
  6502  	if err49 != nil {
  6503  		return 0, err49
  6504  	}
  6505  	i -= n49
  6506  	i = encodeVarintTypes(dAtA, i, uint64(n49))
  6507  	i--
  6508  	dAtA[i] = 0x22
  6509  	if m.Height != 0 {
  6510  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  6511  		i--
  6512  		dAtA[i] = 0x18
  6513  	}
  6514  	{
  6515  		size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i])
  6516  		if err != nil {
  6517  			return 0, err
  6518  		}
  6519  		i -= size
  6520  		i = encodeVarintTypes(dAtA, i, uint64(size))
  6521  	}
  6522  	i--
  6523  	dAtA[i] = 0x12
  6524  	if m.Type != 0 {
  6525  		i = encodeVarintTypes(dAtA, i, uint64(m.Type))
  6526  		i--
  6527  		dAtA[i] = 0x8
  6528  	}
  6529  	return len(dAtA) - i, nil
  6530  }
  6531  
  6532  func (m *Snapshot) Marshal() (dAtA []byte, err error) {
  6533  	size := m.Size()
  6534  	dAtA = make([]byte, size)
  6535  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6536  	if err != nil {
  6537  		return nil, err
  6538  	}
  6539  	return dAtA[:n], nil
  6540  }
  6541  
  6542  func (m *Snapshot) MarshalTo(dAtA []byte) (int, error) {
  6543  	size := m.Size()
  6544  	return m.MarshalToSizedBuffer(dAtA[:size])
  6545  }
  6546  
  6547  func (m *Snapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6548  	i := len(dAtA)
  6549  	_ = i
  6550  	var l int
  6551  	_ = l
  6552  	if len(m.Metadata) > 0 {
  6553  		i -= len(m.Metadata)
  6554  		copy(dAtA[i:], m.Metadata)
  6555  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Metadata)))
  6556  		i--
  6557  		dAtA[i] = 0x2a
  6558  	}
  6559  	if len(m.Hash) > 0 {
  6560  		i -= len(m.Hash)
  6561  		copy(dAtA[i:], m.Hash)
  6562  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
  6563  		i--
  6564  		dAtA[i] = 0x22
  6565  	}
  6566  	if m.Chunks != 0 {
  6567  		i = encodeVarintTypes(dAtA, i, uint64(m.Chunks))
  6568  		i--
  6569  		dAtA[i] = 0x18
  6570  	}
  6571  	if m.Format != 0 {
  6572  		i = encodeVarintTypes(dAtA, i, uint64(m.Format))
  6573  		i--
  6574  		dAtA[i] = 0x10
  6575  	}
  6576  	if m.Height != 0 {
  6577  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  6578  		i--
  6579  		dAtA[i] = 0x8
  6580  	}
  6581  	return len(dAtA) - i, nil
  6582  }
  6583  
  6584  func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
  6585  	offset -= sovTypes(v)
  6586  	base := offset
  6587  	for v >= 1<<7 {
  6588  		dAtA[offset] = uint8(v&0x7f | 0x80)
  6589  		v >>= 7
  6590  		offset++
  6591  	}
  6592  	dAtA[offset] = uint8(v)
  6593  	return base
  6594  }
  6595  func (m *Request) Size() (n int) {
  6596  	if m == nil {
  6597  		return 0
  6598  	}
  6599  	var l int
  6600  	_ = l
  6601  	if m.Value != nil {
  6602  		n += m.Value.Size()
  6603  	}
  6604  	return n
  6605  }
  6606  
  6607  func (m *Request_Echo) Size() (n int) {
  6608  	if m == nil {
  6609  		return 0
  6610  	}
  6611  	var l int
  6612  	_ = l
  6613  	if m.Echo != nil {
  6614  		l = m.Echo.Size()
  6615  		n += 1 + l + sovTypes(uint64(l))
  6616  	}
  6617  	return n
  6618  }
  6619  func (m *Request_Flush) Size() (n int) {
  6620  	if m == nil {
  6621  		return 0
  6622  	}
  6623  	var l int
  6624  	_ = l
  6625  	if m.Flush != nil {
  6626  		l = m.Flush.Size()
  6627  		n += 1 + l + sovTypes(uint64(l))
  6628  	}
  6629  	return n
  6630  }
  6631  func (m *Request_Info) Size() (n int) {
  6632  	if m == nil {
  6633  		return 0
  6634  	}
  6635  	var l int
  6636  	_ = l
  6637  	if m.Info != nil {
  6638  		l = m.Info.Size()
  6639  		n += 1 + l + sovTypes(uint64(l))
  6640  	}
  6641  	return n
  6642  }
  6643  func (m *Request_SetOption) Size() (n int) {
  6644  	if m == nil {
  6645  		return 0
  6646  	}
  6647  	var l int
  6648  	_ = l
  6649  	if m.SetOption != nil {
  6650  		l = m.SetOption.Size()
  6651  		n += 1 + l + sovTypes(uint64(l))
  6652  	}
  6653  	return n
  6654  }
  6655  func (m *Request_InitChain) Size() (n int) {
  6656  	if m == nil {
  6657  		return 0
  6658  	}
  6659  	var l int
  6660  	_ = l
  6661  	if m.InitChain != nil {
  6662  		l = m.InitChain.Size()
  6663  		n += 1 + l + sovTypes(uint64(l))
  6664  	}
  6665  	return n
  6666  }
  6667  func (m *Request_Query) Size() (n int) {
  6668  	if m == nil {
  6669  		return 0
  6670  	}
  6671  	var l int
  6672  	_ = l
  6673  	if m.Query != nil {
  6674  		l = m.Query.Size()
  6675  		n += 1 + l + sovTypes(uint64(l))
  6676  	}
  6677  	return n
  6678  }
  6679  func (m *Request_BeginBlock) Size() (n int) {
  6680  	if m == nil {
  6681  		return 0
  6682  	}
  6683  	var l int
  6684  	_ = l
  6685  	if m.BeginBlock != nil {
  6686  		l = m.BeginBlock.Size()
  6687  		n += 1 + l + sovTypes(uint64(l))
  6688  	}
  6689  	return n
  6690  }
  6691  func (m *Request_CheckTx) Size() (n int) {
  6692  	if m == nil {
  6693  		return 0
  6694  	}
  6695  	var l int
  6696  	_ = l
  6697  	if m.CheckTx != nil {
  6698  		l = m.CheckTx.Size()
  6699  		n += 1 + l + sovTypes(uint64(l))
  6700  	}
  6701  	return n
  6702  }
  6703  func (m *Request_DeliverTx) Size() (n int) {
  6704  	if m == nil {
  6705  		return 0
  6706  	}
  6707  	var l int
  6708  	_ = l
  6709  	if m.DeliverTx != nil {
  6710  		l = m.DeliverTx.Size()
  6711  		n += 1 + l + sovTypes(uint64(l))
  6712  	}
  6713  	return n
  6714  }
  6715  func (m *Request_EndBlock) Size() (n int) {
  6716  	if m == nil {
  6717  		return 0
  6718  	}
  6719  	var l int
  6720  	_ = l
  6721  	if m.EndBlock != nil {
  6722  		l = m.EndBlock.Size()
  6723  		n += 1 + l + sovTypes(uint64(l))
  6724  	}
  6725  	return n
  6726  }
  6727  func (m *Request_Commit) Size() (n int) {
  6728  	if m == nil {
  6729  		return 0
  6730  	}
  6731  	var l int
  6732  	_ = l
  6733  	if m.Commit != nil {
  6734  		l = m.Commit.Size()
  6735  		n += 1 + l + sovTypes(uint64(l))
  6736  	}
  6737  	return n
  6738  }
  6739  func (m *Request_ListSnapshots) Size() (n int) {
  6740  	if m == nil {
  6741  		return 0
  6742  	}
  6743  	var l int
  6744  	_ = l
  6745  	if m.ListSnapshots != nil {
  6746  		l = m.ListSnapshots.Size()
  6747  		n += 1 + l + sovTypes(uint64(l))
  6748  	}
  6749  	return n
  6750  }
  6751  func (m *Request_OfferSnapshot) Size() (n int) {
  6752  	if m == nil {
  6753  		return 0
  6754  	}
  6755  	var l int
  6756  	_ = l
  6757  	if m.OfferSnapshot != nil {
  6758  		l = m.OfferSnapshot.Size()
  6759  		n += 1 + l + sovTypes(uint64(l))
  6760  	}
  6761  	return n
  6762  }
  6763  func (m *Request_LoadSnapshotChunk) Size() (n int) {
  6764  	if m == nil {
  6765  		return 0
  6766  	}
  6767  	var l int
  6768  	_ = l
  6769  	if m.LoadSnapshotChunk != nil {
  6770  		l = m.LoadSnapshotChunk.Size()
  6771  		n += 1 + l + sovTypes(uint64(l))
  6772  	}
  6773  	return n
  6774  }
  6775  func (m *Request_ApplySnapshotChunk) Size() (n int) {
  6776  	if m == nil {
  6777  		return 0
  6778  	}
  6779  	var l int
  6780  	_ = l
  6781  	if m.ApplySnapshotChunk != nil {
  6782  		l = m.ApplySnapshotChunk.Size()
  6783  		n += 1 + l + sovTypes(uint64(l))
  6784  	}
  6785  	return n
  6786  }
  6787  func (m *RequestEcho) Size() (n int) {
  6788  	if m == nil {
  6789  		return 0
  6790  	}
  6791  	var l int
  6792  	_ = l
  6793  	l = len(m.Message)
  6794  	if l > 0 {
  6795  		n += 1 + l + sovTypes(uint64(l))
  6796  	}
  6797  	return n
  6798  }
  6799  
  6800  func (m *RequestFlush) Size() (n int) {
  6801  	if m == nil {
  6802  		return 0
  6803  	}
  6804  	var l int
  6805  	_ = l
  6806  	return n
  6807  }
  6808  
  6809  func (m *RequestInfo) Size() (n int) {
  6810  	if m == nil {
  6811  		return 0
  6812  	}
  6813  	var l int
  6814  	_ = l
  6815  	l = len(m.Version)
  6816  	if l > 0 {
  6817  		n += 1 + l + sovTypes(uint64(l))
  6818  	}
  6819  	if m.BlockVersion != 0 {
  6820  		n += 1 + sovTypes(uint64(m.BlockVersion))
  6821  	}
  6822  	if m.P2PVersion != 0 {
  6823  		n += 1 + sovTypes(uint64(m.P2PVersion))
  6824  	}
  6825  	return n
  6826  }
  6827  
  6828  func (m *RequestSetOption) Size() (n int) {
  6829  	if m == nil {
  6830  		return 0
  6831  	}
  6832  	var l int
  6833  	_ = l
  6834  	l = len(m.Key)
  6835  	if l > 0 {
  6836  		n += 1 + l + sovTypes(uint64(l))
  6837  	}
  6838  	l = len(m.Value)
  6839  	if l > 0 {
  6840  		n += 1 + l + sovTypes(uint64(l))
  6841  	}
  6842  	return n
  6843  }
  6844  
  6845  func (m *RequestInitChain) Size() (n int) {
  6846  	if m == nil {
  6847  		return 0
  6848  	}
  6849  	var l int
  6850  	_ = l
  6851  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  6852  	n += 1 + l + sovTypes(uint64(l))
  6853  	l = len(m.ChainId)
  6854  	if l > 0 {
  6855  		n += 1 + l + sovTypes(uint64(l))
  6856  	}
  6857  	if m.ConsensusParams != nil {
  6858  		l = m.ConsensusParams.Size()
  6859  		n += 1 + l + sovTypes(uint64(l))
  6860  	}
  6861  	if len(m.Validators) > 0 {
  6862  		for _, e := range m.Validators {
  6863  			l = e.Size()
  6864  			n += 1 + l + sovTypes(uint64(l))
  6865  		}
  6866  	}
  6867  	l = len(m.AppStateBytes)
  6868  	if l > 0 {
  6869  		n += 1 + l + sovTypes(uint64(l))
  6870  	}
  6871  	if m.InitialHeight != 0 {
  6872  		n += 1 + sovTypes(uint64(m.InitialHeight))
  6873  	}
  6874  	return n
  6875  }
  6876  
  6877  func (m *RequestQuery) Size() (n int) {
  6878  	if m == nil {
  6879  		return 0
  6880  	}
  6881  	var l int
  6882  	_ = l
  6883  	l = len(m.Data)
  6884  	if l > 0 {
  6885  		n += 1 + l + sovTypes(uint64(l))
  6886  	}
  6887  	l = len(m.Path)
  6888  	if l > 0 {
  6889  		n += 1 + l + sovTypes(uint64(l))
  6890  	}
  6891  	if m.Height != 0 {
  6892  		n += 1 + sovTypes(uint64(m.Height))
  6893  	}
  6894  	if m.Prove {
  6895  		n += 2
  6896  	}
  6897  	return n
  6898  }
  6899  
  6900  func (m *RequestBeginBlock) Size() (n int) {
  6901  	if m == nil {
  6902  		return 0
  6903  	}
  6904  	var l int
  6905  	_ = l
  6906  	l = len(m.Hash)
  6907  	if l > 0 {
  6908  		n += 1 + l + sovTypes(uint64(l))
  6909  	}
  6910  	l = m.Header.Size()
  6911  	n += 1 + l + sovTypes(uint64(l))
  6912  	l = m.LastCommitInfo.Size()
  6913  	n += 1 + l + sovTypes(uint64(l))
  6914  	if len(m.ByzantineValidators) > 0 {
  6915  		for _, e := range m.ByzantineValidators {
  6916  			l = e.Size()
  6917  			n += 1 + l + sovTypes(uint64(l))
  6918  		}
  6919  	}
  6920  	return n
  6921  }
  6922  
  6923  func (m *RequestCheckTx) Size() (n int) {
  6924  	if m == nil {
  6925  		return 0
  6926  	}
  6927  	var l int
  6928  	_ = l
  6929  	l = len(m.Tx)
  6930  	if l > 0 {
  6931  		n += 1 + l + sovTypes(uint64(l))
  6932  	}
  6933  	if m.Type != 0 {
  6934  		n += 1 + sovTypes(uint64(m.Type))
  6935  	}
  6936  	return n
  6937  }
  6938  
  6939  func (m *RequestDeliverTx) Size() (n int) {
  6940  	if m == nil {
  6941  		return 0
  6942  	}
  6943  	var l int
  6944  	_ = l
  6945  	l = len(m.Tx)
  6946  	if l > 0 {
  6947  		n += 1 + l + sovTypes(uint64(l))
  6948  	}
  6949  	return n
  6950  }
  6951  
  6952  func (m *RequestEndBlock) Size() (n int) {
  6953  	if m == nil {
  6954  		return 0
  6955  	}
  6956  	var l int
  6957  	_ = l
  6958  	if m.Height != 0 {
  6959  		n += 1 + sovTypes(uint64(m.Height))
  6960  	}
  6961  	return n
  6962  }
  6963  
  6964  func (m *RequestCommit) Size() (n int) {
  6965  	if m == nil {
  6966  		return 0
  6967  	}
  6968  	var l int
  6969  	_ = l
  6970  	return n
  6971  }
  6972  
  6973  func (m *RequestListSnapshots) Size() (n int) {
  6974  	if m == nil {
  6975  		return 0
  6976  	}
  6977  	var l int
  6978  	_ = l
  6979  	return n
  6980  }
  6981  
  6982  func (m *RequestOfferSnapshot) Size() (n int) {
  6983  	if m == nil {
  6984  		return 0
  6985  	}
  6986  	var l int
  6987  	_ = l
  6988  	if m.Snapshot != nil {
  6989  		l = m.Snapshot.Size()
  6990  		n += 1 + l + sovTypes(uint64(l))
  6991  	}
  6992  	l = len(m.AppHash)
  6993  	if l > 0 {
  6994  		n += 1 + l + sovTypes(uint64(l))
  6995  	}
  6996  	return n
  6997  }
  6998  
  6999  func (m *RequestLoadSnapshotChunk) Size() (n int) {
  7000  	if m == nil {
  7001  		return 0
  7002  	}
  7003  	var l int
  7004  	_ = l
  7005  	if m.Height != 0 {
  7006  		n += 1 + sovTypes(uint64(m.Height))
  7007  	}
  7008  	if m.Format != 0 {
  7009  		n += 1 + sovTypes(uint64(m.Format))
  7010  	}
  7011  	if m.Chunk != 0 {
  7012  		n += 1 + sovTypes(uint64(m.Chunk))
  7013  	}
  7014  	return n
  7015  }
  7016  
  7017  func (m *RequestApplySnapshotChunk) Size() (n int) {
  7018  	if m == nil {
  7019  		return 0
  7020  	}
  7021  	var l int
  7022  	_ = l
  7023  	if m.Index != 0 {
  7024  		n += 1 + sovTypes(uint64(m.Index))
  7025  	}
  7026  	l = len(m.Chunk)
  7027  	if l > 0 {
  7028  		n += 1 + l + sovTypes(uint64(l))
  7029  	}
  7030  	l = len(m.Sender)
  7031  	if l > 0 {
  7032  		n += 1 + l + sovTypes(uint64(l))
  7033  	}
  7034  	return n
  7035  }
  7036  
  7037  func (m *Response) Size() (n int) {
  7038  	if m == nil {
  7039  		return 0
  7040  	}
  7041  	var l int
  7042  	_ = l
  7043  	if m.Value != nil {
  7044  		n += m.Value.Size()
  7045  	}
  7046  	return n
  7047  }
  7048  
  7049  func (m *Response_Exception) Size() (n int) {
  7050  	if m == nil {
  7051  		return 0
  7052  	}
  7053  	var l int
  7054  	_ = l
  7055  	if m.Exception != nil {
  7056  		l = m.Exception.Size()
  7057  		n += 1 + l + sovTypes(uint64(l))
  7058  	}
  7059  	return n
  7060  }
  7061  func (m *Response_Echo) Size() (n int) {
  7062  	if m == nil {
  7063  		return 0
  7064  	}
  7065  	var l int
  7066  	_ = l
  7067  	if m.Echo != nil {
  7068  		l = m.Echo.Size()
  7069  		n += 1 + l + sovTypes(uint64(l))
  7070  	}
  7071  	return n
  7072  }
  7073  func (m *Response_Flush) Size() (n int) {
  7074  	if m == nil {
  7075  		return 0
  7076  	}
  7077  	var l int
  7078  	_ = l
  7079  	if m.Flush != nil {
  7080  		l = m.Flush.Size()
  7081  		n += 1 + l + sovTypes(uint64(l))
  7082  	}
  7083  	return n
  7084  }
  7085  func (m *Response_Info) Size() (n int) {
  7086  	if m == nil {
  7087  		return 0
  7088  	}
  7089  	var l int
  7090  	_ = l
  7091  	if m.Info != nil {
  7092  		l = m.Info.Size()
  7093  		n += 1 + l + sovTypes(uint64(l))
  7094  	}
  7095  	return n
  7096  }
  7097  func (m *Response_SetOption) Size() (n int) {
  7098  	if m == nil {
  7099  		return 0
  7100  	}
  7101  	var l int
  7102  	_ = l
  7103  	if m.SetOption != nil {
  7104  		l = m.SetOption.Size()
  7105  		n += 1 + l + sovTypes(uint64(l))
  7106  	}
  7107  	return n
  7108  }
  7109  func (m *Response_InitChain) Size() (n int) {
  7110  	if m == nil {
  7111  		return 0
  7112  	}
  7113  	var l int
  7114  	_ = l
  7115  	if m.InitChain != nil {
  7116  		l = m.InitChain.Size()
  7117  		n += 1 + l + sovTypes(uint64(l))
  7118  	}
  7119  	return n
  7120  }
  7121  func (m *Response_Query) Size() (n int) {
  7122  	if m == nil {
  7123  		return 0
  7124  	}
  7125  	var l int
  7126  	_ = l
  7127  	if m.Query != nil {
  7128  		l = m.Query.Size()
  7129  		n += 1 + l + sovTypes(uint64(l))
  7130  	}
  7131  	return n
  7132  }
  7133  func (m *Response_BeginBlock) Size() (n int) {
  7134  	if m == nil {
  7135  		return 0
  7136  	}
  7137  	var l int
  7138  	_ = l
  7139  	if m.BeginBlock != nil {
  7140  		l = m.BeginBlock.Size()
  7141  		n += 1 + l + sovTypes(uint64(l))
  7142  	}
  7143  	return n
  7144  }
  7145  func (m *Response_CheckTx) Size() (n int) {
  7146  	if m == nil {
  7147  		return 0
  7148  	}
  7149  	var l int
  7150  	_ = l
  7151  	if m.CheckTx != nil {
  7152  		l = m.CheckTx.Size()
  7153  		n += 1 + l + sovTypes(uint64(l))
  7154  	}
  7155  	return n
  7156  }
  7157  func (m *Response_DeliverTx) Size() (n int) {
  7158  	if m == nil {
  7159  		return 0
  7160  	}
  7161  	var l int
  7162  	_ = l
  7163  	if m.DeliverTx != nil {
  7164  		l = m.DeliverTx.Size()
  7165  		n += 1 + l + sovTypes(uint64(l))
  7166  	}
  7167  	return n
  7168  }
  7169  func (m *Response_EndBlock) Size() (n int) {
  7170  	if m == nil {
  7171  		return 0
  7172  	}
  7173  	var l int
  7174  	_ = l
  7175  	if m.EndBlock != nil {
  7176  		l = m.EndBlock.Size()
  7177  		n += 1 + l + sovTypes(uint64(l))
  7178  	}
  7179  	return n
  7180  }
  7181  func (m *Response_Commit) Size() (n int) {
  7182  	if m == nil {
  7183  		return 0
  7184  	}
  7185  	var l int
  7186  	_ = l
  7187  	if m.Commit != nil {
  7188  		l = m.Commit.Size()
  7189  		n += 1 + l + sovTypes(uint64(l))
  7190  	}
  7191  	return n
  7192  }
  7193  func (m *Response_ListSnapshots) Size() (n int) {
  7194  	if m == nil {
  7195  		return 0
  7196  	}
  7197  	var l int
  7198  	_ = l
  7199  	if m.ListSnapshots != nil {
  7200  		l = m.ListSnapshots.Size()
  7201  		n += 1 + l + sovTypes(uint64(l))
  7202  	}
  7203  	return n
  7204  }
  7205  func (m *Response_OfferSnapshot) Size() (n int) {
  7206  	if m == nil {
  7207  		return 0
  7208  	}
  7209  	var l int
  7210  	_ = l
  7211  	if m.OfferSnapshot != nil {
  7212  		l = m.OfferSnapshot.Size()
  7213  		n += 1 + l + sovTypes(uint64(l))
  7214  	}
  7215  	return n
  7216  }
  7217  func (m *Response_LoadSnapshotChunk) Size() (n int) {
  7218  	if m == nil {
  7219  		return 0
  7220  	}
  7221  	var l int
  7222  	_ = l
  7223  	if m.LoadSnapshotChunk != nil {
  7224  		l = m.LoadSnapshotChunk.Size()
  7225  		n += 1 + l + sovTypes(uint64(l))
  7226  	}
  7227  	return n
  7228  }
  7229  func (m *Response_ApplySnapshotChunk) Size() (n int) {
  7230  	if m == nil {
  7231  		return 0
  7232  	}
  7233  	var l int
  7234  	_ = l
  7235  	if m.ApplySnapshotChunk != nil {
  7236  		l = m.ApplySnapshotChunk.Size()
  7237  		n += 2 + l + sovTypes(uint64(l))
  7238  	}
  7239  	return n
  7240  }
  7241  func (m *ResponseException) Size() (n int) {
  7242  	if m == nil {
  7243  		return 0
  7244  	}
  7245  	var l int
  7246  	_ = l
  7247  	l = len(m.Error)
  7248  	if l > 0 {
  7249  		n += 1 + l + sovTypes(uint64(l))
  7250  	}
  7251  	return n
  7252  }
  7253  
  7254  func (m *ResponseEcho) Size() (n int) {
  7255  	if m == nil {
  7256  		return 0
  7257  	}
  7258  	var l int
  7259  	_ = l
  7260  	l = len(m.Message)
  7261  	if l > 0 {
  7262  		n += 1 + l + sovTypes(uint64(l))
  7263  	}
  7264  	return n
  7265  }
  7266  
  7267  func (m *ResponseFlush) Size() (n int) {
  7268  	if m == nil {
  7269  		return 0
  7270  	}
  7271  	var l int
  7272  	_ = l
  7273  	return n
  7274  }
  7275  
  7276  func (m *ResponseInfo) Size() (n int) {
  7277  	if m == nil {
  7278  		return 0
  7279  	}
  7280  	var l int
  7281  	_ = l
  7282  	l = len(m.Data)
  7283  	if l > 0 {
  7284  		n += 1 + l + sovTypes(uint64(l))
  7285  	}
  7286  	l = len(m.Version)
  7287  	if l > 0 {
  7288  		n += 1 + l + sovTypes(uint64(l))
  7289  	}
  7290  	if m.AppVersion != 0 {
  7291  		n += 1 + sovTypes(uint64(m.AppVersion))
  7292  	}
  7293  	if m.LastBlockHeight != 0 {
  7294  		n += 1 + sovTypes(uint64(m.LastBlockHeight))
  7295  	}
  7296  	l = len(m.LastBlockAppHash)
  7297  	if l > 0 {
  7298  		n += 1 + l + sovTypes(uint64(l))
  7299  	}
  7300  	return n
  7301  }
  7302  
  7303  func (m *ResponseSetOption) Size() (n int) {
  7304  	if m == nil {
  7305  		return 0
  7306  	}
  7307  	var l int
  7308  	_ = l
  7309  	if m.Code != 0 {
  7310  		n += 1 + sovTypes(uint64(m.Code))
  7311  	}
  7312  	l = len(m.Log)
  7313  	if l > 0 {
  7314  		n += 1 + l + sovTypes(uint64(l))
  7315  	}
  7316  	l = len(m.Info)
  7317  	if l > 0 {
  7318  		n += 1 + l + sovTypes(uint64(l))
  7319  	}
  7320  	return n
  7321  }
  7322  
  7323  func (m *ResponseInitChain) Size() (n int) {
  7324  	if m == nil {
  7325  		return 0
  7326  	}
  7327  	var l int
  7328  	_ = l
  7329  	if m.ConsensusParams != nil {
  7330  		l = m.ConsensusParams.Size()
  7331  		n += 1 + l + sovTypes(uint64(l))
  7332  	}
  7333  	if len(m.Validators) > 0 {
  7334  		for _, e := range m.Validators {
  7335  			l = e.Size()
  7336  			n += 1 + l + sovTypes(uint64(l))
  7337  		}
  7338  	}
  7339  	l = len(m.AppHash)
  7340  	if l > 0 {
  7341  		n += 1 + l + sovTypes(uint64(l))
  7342  	}
  7343  	return n
  7344  }
  7345  
  7346  func (m *ResponseQuery) Size() (n int) {
  7347  	if m == nil {
  7348  		return 0
  7349  	}
  7350  	var l int
  7351  	_ = l
  7352  	if m.Code != 0 {
  7353  		n += 1 + sovTypes(uint64(m.Code))
  7354  	}
  7355  	l = len(m.Log)
  7356  	if l > 0 {
  7357  		n += 1 + l + sovTypes(uint64(l))
  7358  	}
  7359  	l = len(m.Info)
  7360  	if l > 0 {
  7361  		n += 1 + l + sovTypes(uint64(l))
  7362  	}
  7363  	if m.Index != 0 {
  7364  		n += 1 + sovTypes(uint64(m.Index))
  7365  	}
  7366  	l = len(m.Key)
  7367  	if l > 0 {
  7368  		n += 1 + l + sovTypes(uint64(l))
  7369  	}
  7370  	l = len(m.Value)
  7371  	if l > 0 {
  7372  		n += 1 + l + sovTypes(uint64(l))
  7373  	}
  7374  	if m.ProofOps != nil {
  7375  		l = m.ProofOps.Size()
  7376  		n += 1 + l + sovTypes(uint64(l))
  7377  	}
  7378  	if m.Height != 0 {
  7379  		n += 1 + sovTypes(uint64(m.Height))
  7380  	}
  7381  	l = len(m.Codespace)
  7382  	if l > 0 {
  7383  		n += 1 + l + sovTypes(uint64(l))
  7384  	}
  7385  	return n
  7386  }
  7387  
  7388  func (m *ResponseBeginBlock) Size() (n int) {
  7389  	if m == nil {
  7390  		return 0
  7391  	}
  7392  	var l int
  7393  	_ = l
  7394  	if len(m.Events) > 0 {
  7395  		for _, e := range m.Events {
  7396  			l = e.Size()
  7397  			n += 1 + l + sovTypes(uint64(l))
  7398  		}
  7399  	}
  7400  	return n
  7401  }
  7402  
  7403  func (m *ResponseCheckTx) Size() (n int) {
  7404  	if m == nil {
  7405  		return 0
  7406  	}
  7407  	var l int
  7408  	_ = l
  7409  	if m.Code != 0 {
  7410  		n += 1 + sovTypes(uint64(m.Code))
  7411  	}
  7412  	l = len(m.Data)
  7413  	if l > 0 {
  7414  		n += 1 + l + sovTypes(uint64(l))
  7415  	}
  7416  	l = len(m.Log)
  7417  	if l > 0 {
  7418  		n += 1 + l + sovTypes(uint64(l))
  7419  	}
  7420  	l = len(m.Info)
  7421  	if l > 0 {
  7422  		n += 1 + l + sovTypes(uint64(l))
  7423  	}
  7424  	if m.GasWanted != 0 {
  7425  		n += 1 + sovTypes(uint64(m.GasWanted))
  7426  	}
  7427  	if m.GasUsed != 0 {
  7428  		n += 1 + sovTypes(uint64(m.GasUsed))
  7429  	}
  7430  	if len(m.Events) > 0 {
  7431  		for _, e := range m.Events {
  7432  			l = e.Size()
  7433  			n += 1 + l + sovTypes(uint64(l))
  7434  		}
  7435  	}
  7436  	l = len(m.Codespace)
  7437  	if l > 0 {
  7438  		n += 1 + l + sovTypes(uint64(l))
  7439  	}
  7440  	l = len(m.Sender)
  7441  	if l > 0 {
  7442  		n += 1 + l + sovTypes(uint64(l))
  7443  	}
  7444  	if m.Priority != 0 {
  7445  		n += 1 + sovTypes(uint64(m.Priority))
  7446  	}
  7447  	l = len(m.MempoolError)
  7448  	if l > 0 {
  7449  		n += 1 + l + sovTypes(uint64(l))
  7450  	}
  7451  	return n
  7452  }
  7453  
  7454  func (m *ResponseDeliverTx) Size() (n int) {
  7455  	if m == nil {
  7456  		return 0
  7457  	}
  7458  	var l int
  7459  	_ = l
  7460  	if m.Code != 0 {
  7461  		n += 1 + sovTypes(uint64(m.Code))
  7462  	}
  7463  	l = len(m.Data)
  7464  	if l > 0 {
  7465  		n += 1 + l + sovTypes(uint64(l))
  7466  	}
  7467  	l = len(m.Log)
  7468  	if l > 0 {
  7469  		n += 1 + l + sovTypes(uint64(l))
  7470  	}
  7471  	l = len(m.Info)
  7472  	if l > 0 {
  7473  		n += 1 + l + sovTypes(uint64(l))
  7474  	}
  7475  	if m.GasWanted != 0 {
  7476  		n += 1 + sovTypes(uint64(m.GasWanted))
  7477  	}
  7478  	if m.GasUsed != 0 {
  7479  		n += 1 + sovTypes(uint64(m.GasUsed))
  7480  	}
  7481  	if len(m.Events) > 0 {
  7482  		for _, e := range m.Events {
  7483  			l = e.Size()
  7484  			n += 1 + l + sovTypes(uint64(l))
  7485  		}
  7486  	}
  7487  	l = len(m.Codespace)
  7488  	if l > 0 {
  7489  		n += 1 + l + sovTypes(uint64(l))
  7490  	}
  7491  	return n
  7492  }
  7493  
  7494  func (m *ResponseEndBlock) Size() (n int) {
  7495  	if m == nil {
  7496  		return 0
  7497  	}
  7498  	var l int
  7499  	_ = l
  7500  	if len(m.ValidatorUpdates) > 0 {
  7501  		for _, e := range m.ValidatorUpdates {
  7502  			l = e.Size()
  7503  			n += 1 + l + sovTypes(uint64(l))
  7504  		}
  7505  	}
  7506  	if m.ConsensusParamUpdates != nil {
  7507  		l = m.ConsensusParamUpdates.Size()
  7508  		n += 1 + l + sovTypes(uint64(l))
  7509  	}
  7510  	if len(m.Events) > 0 {
  7511  		for _, e := range m.Events {
  7512  			l = e.Size()
  7513  			n += 1 + l + sovTypes(uint64(l))
  7514  		}
  7515  	}
  7516  	return n
  7517  }
  7518  
  7519  func (m *ResponseCommit) Size() (n int) {
  7520  	if m == nil {
  7521  		return 0
  7522  	}
  7523  	var l int
  7524  	_ = l
  7525  	l = len(m.Data)
  7526  	if l > 0 {
  7527  		n += 1 + l + sovTypes(uint64(l))
  7528  	}
  7529  	if m.RetainHeight != 0 {
  7530  		n += 1 + sovTypes(uint64(m.RetainHeight))
  7531  	}
  7532  	return n
  7533  }
  7534  
  7535  func (m *ResponseListSnapshots) Size() (n int) {
  7536  	if m == nil {
  7537  		return 0
  7538  	}
  7539  	var l int
  7540  	_ = l
  7541  	if len(m.Snapshots) > 0 {
  7542  		for _, e := range m.Snapshots {
  7543  			l = e.Size()
  7544  			n += 1 + l + sovTypes(uint64(l))
  7545  		}
  7546  	}
  7547  	return n
  7548  }
  7549  
  7550  func (m *ResponseOfferSnapshot) Size() (n int) {
  7551  	if m == nil {
  7552  		return 0
  7553  	}
  7554  	var l int
  7555  	_ = l
  7556  	if m.Result != 0 {
  7557  		n += 1 + sovTypes(uint64(m.Result))
  7558  	}
  7559  	return n
  7560  }
  7561  
  7562  func (m *ResponseLoadSnapshotChunk) Size() (n int) {
  7563  	if m == nil {
  7564  		return 0
  7565  	}
  7566  	var l int
  7567  	_ = l
  7568  	l = len(m.Chunk)
  7569  	if l > 0 {
  7570  		n += 1 + l + sovTypes(uint64(l))
  7571  	}
  7572  	return n
  7573  }
  7574  
  7575  func (m *ResponseApplySnapshotChunk) Size() (n int) {
  7576  	if m == nil {
  7577  		return 0
  7578  	}
  7579  	var l int
  7580  	_ = l
  7581  	if m.Result != 0 {
  7582  		n += 1 + sovTypes(uint64(m.Result))
  7583  	}
  7584  	if len(m.RefetchChunks) > 0 {
  7585  		l = 0
  7586  		for _, e := range m.RefetchChunks {
  7587  			l += sovTypes(uint64(e))
  7588  		}
  7589  		n += 1 + sovTypes(uint64(l)) + l
  7590  	}
  7591  	if len(m.RejectSenders) > 0 {
  7592  		for _, s := range m.RejectSenders {
  7593  			l = len(s)
  7594  			n += 1 + l + sovTypes(uint64(l))
  7595  		}
  7596  	}
  7597  	return n
  7598  }
  7599  
  7600  func (m *ConsensusParams) Size() (n int) {
  7601  	if m == nil {
  7602  		return 0
  7603  	}
  7604  	var l int
  7605  	_ = l
  7606  	if m.Block != nil {
  7607  		l = m.Block.Size()
  7608  		n += 1 + l + sovTypes(uint64(l))
  7609  	}
  7610  	if m.Evidence != nil {
  7611  		l = m.Evidence.Size()
  7612  		n += 1 + l + sovTypes(uint64(l))
  7613  	}
  7614  	if m.Validator != nil {
  7615  		l = m.Validator.Size()
  7616  		n += 1 + l + sovTypes(uint64(l))
  7617  	}
  7618  	if m.Version != nil {
  7619  		l = m.Version.Size()
  7620  		n += 1 + l + sovTypes(uint64(l))
  7621  	}
  7622  	return n
  7623  }
  7624  
  7625  func (m *BlockParams) Size() (n int) {
  7626  	if m == nil {
  7627  		return 0
  7628  	}
  7629  	var l int
  7630  	_ = l
  7631  	if m.MaxBytes != 0 {
  7632  		n += 1 + sovTypes(uint64(m.MaxBytes))
  7633  	}
  7634  	if m.MaxGas != 0 {
  7635  		n += 1 + sovTypes(uint64(m.MaxGas))
  7636  	}
  7637  	return n
  7638  }
  7639  
  7640  func (m *LastCommitInfo) Size() (n int) {
  7641  	if m == nil {
  7642  		return 0
  7643  	}
  7644  	var l int
  7645  	_ = l
  7646  	if m.Round != 0 {
  7647  		n += 1 + sovTypes(uint64(m.Round))
  7648  	}
  7649  	if len(m.Votes) > 0 {
  7650  		for _, e := range m.Votes {
  7651  			l = e.Size()
  7652  			n += 1 + l + sovTypes(uint64(l))
  7653  		}
  7654  	}
  7655  	return n
  7656  }
  7657  
  7658  func (m *Event) Size() (n int) {
  7659  	if m == nil {
  7660  		return 0
  7661  	}
  7662  	var l int
  7663  	_ = l
  7664  	l = len(m.Type)
  7665  	if l > 0 {
  7666  		n += 1 + l + sovTypes(uint64(l))
  7667  	}
  7668  	if len(m.Attributes) > 0 {
  7669  		for _, e := range m.Attributes {
  7670  			l = e.Size()
  7671  			n += 1 + l + sovTypes(uint64(l))
  7672  		}
  7673  	}
  7674  	return n
  7675  }
  7676  
  7677  func (m *EventAttribute) Size() (n int) {
  7678  	if m == nil {
  7679  		return 0
  7680  	}
  7681  	var l int
  7682  	_ = l
  7683  	l = len(m.Key)
  7684  	if l > 0 {
  7685  		n += 1 + l + sovTypes(uint64(l))
  7686  	}
  7687  	l = len(m.Value)
  7688  	if l > 0 {
  7689  		n += 1 + l + sovTypes(uint64(l))
  7690  	}
  7691  	if m.Index {
  7692  		n += 2
  7693  	}
  7694  	return n
  7695  }
  7696  
  7697  func (m *TxResult) Size() (n int) {
  7698  	if m == nil {
  7699  		return 0
  7700  	}
  7701  	var l int
  7702  	_ = l
  7703  	if m.Height != 0 {
  7704  		n += 1 + sovTypes(uint64(m.Height))
  7705  	}
  7706  	if m.Index != 0 {
  7707  		n += 1 + sovTypes(uint64(m.Index))
  7708  	}
  7709  	l = len(m.Tx)
  7710  	if l > 0 {
  7711  		n += 1 + l + sovTypes(uint64(l))
  7712  	}
  7713  	l = m.Result.Size()
  7714  	n += 1 + l + sovTypes(uint64(l))
  7715  	return n
  7716  }
  7717  
  7718  func (m *Validator) Size() (n int) {
  7719  	if m == nil {
  7720  		return 0
  7721  	}
  7722  	var l int
  7723  	_ = l
  7724  	l = len(m.Address)
  7725  	if l > 0 {
  7726  		n += 1 + l + sovTypes(uint64(l))
  7727  	}
  7728  	if m.Power != 0 {
  7729  		n += 1 + sovTypes(uint64(m.Power))
  7730  	}
  7731  	return n
  7732  }
  7733  
  7734  func (m *ValidatorUpdate) Size() (n int) {
  7735  	if m == nil {
  7736  		return 0
  7737  	}
  7738  	var l int
  7739  	_ = l
  7740  	l = m.PubKey.Size()
  7741  	n += 1 + l + sovTypes(uint64(l))
  7742  	if m.Power != 0 {
  7743  		n += 1 + sovTypes(uint64(m.Power))
  7744  	}
  7745  	return n
  7746  }
  7747  
  7748  func (m *VoteInfo) Size() (n int) {
  7749  	if m == nil {
  7750  		return 0
  7751  	}
  7752  	var l int
  7753  	_ = l
  7754  	l = m.Validator.Size()
  7755  	n += 1 + l + sovTypes(uint64(l))
  7756  	if m.SignedLastBlock {
  7757  		n += 2
  7758  	}
  7759  	return n
  7760  }
  7761  
  7762  func (m *Evidence) Size() (n int) {
  7763  	if m == nil {
  7764  		return 0
  7765  	}
  7766  	var l int
  7767  	_ = l
  7768  	if m.Type != 0 {
  7769  		n += 1 + sovTypes(uint64(m.Type))
  7770  	}
  7771  	l = m.Validator.Size()
  7772  	n += 1 + l + sovTypes(uint64(l))
  7773  	if m.Height != 0 {
  7774  		n += 1 + sovTypes(uint64(m.Height))
  7775  	}
  7776  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  7777  	n += 1 + l + sovTypes(uint64(l))
  7778  	if m.TotalVotingPower != 0 {
  7779  		n += 1 + sovTypes(uint64(m.TotalVotingPower))
  7780  	}
  7781  	return n
  7782  }
  7783  
  7784  func (m *Snapshot) Size() (n int) {
  7785  	if m == nil {
  7786  		return 0
  7787  	}
  7788  	var l int
  7789  	_ = l
  7790  	if m.Height != 0 {
  7791  		n += 1 + sovTypes(uint64(m.Height))
  7792  	}
  7793  	if m.Format != 0 {
  7794  		n += 1 + sovTypes(uint64(m.Format))
  7795  	}
  7796  	if m.Chunks != 0 {
  7797  		n += 1 + sovTypes(uint64(m.Chunks))
  7798  	}
  7799  	l = len(m.Hash)
  7800  	if l > 0 {
  7801  		n += 1 + l + sovTypes(uint64(l))
  7802  	}
  7803  	l = len(m.Metadata)
  7804  	if l > 0 {
  7805  		n += 1 + l + sovTypes(uint64(l))
  7806  	}
  7807  	return n
  7808  }
  7809  
  7810  func sovTypes(x uint64) (n int) {
  7811  	return (math_bits.Len64(x|1) + 6) / 7
  7812  }
  7813  func sozTypes(x uint64) (n int) {
  7814  	return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  7815  }
  7816  func (m *Request) Unmarshal(dAtA []byte) error {
  7817  	l := len(dAtA)
  7818  	iNdEx := 0
  7819  	for iNdEx < l {
  7820  		preIndex := iNdEx
  7821  		var wire uint64
  7822  		for shift := uint(0); ; shift += 7 {
  7823  			if shift >= 64 {
  7824  				return ErrIntOverflowTypes
  7825  			}
  7826  			if iNdEx >= l {
  7827  				return io.ErrUnexpectedEOF
  7828  			}
  7829  			b := dAtA[iNdEx]
  7830  			iNdEx++
  7831  			wire |= uint64(b&0x7F) << shift
  7832  			if b < 0x80 {
  7833  				break
  7834  			}
  7835  		}
  7836  		fieldNum := int32(wire >> 3)
  7837  		wireType := int(wire & 0x7)
  7838  		if wireType == 4 {
  7839  			return fmt.Errorf("proto: Request: wiretype end group for non-group")
  7840  		}
  7841  		if fieldNum <= 0 {
  7842  			return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
  7843  		}
  7844  		switch fieldNum {
  7845  		case 1:
  7846  			if wireType != 2 {
  7847  				return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType)
  7848  			}
  7849  			var msglen int
  7850  			for shift := uint(0); ; shift += 7 {
  7851  				if shift >= 64 {
  7852  					return ErrIntOverflowTypes
  7853  				}
  7854  				if iNdEx >= l {
  7855  					return io.ErrUnexpectedEOF
  7856  				}
  7857  				b := dAtA[iNdEx]
  7858  				iNdEx++
  7859  				msglen |= int(b&0x7F) << shift
  7860  				if b < 0x80 {
  7861  					break
  7862  				}
  7863  			}
  7864  			if msglen < 0 {
  7865  				return ErrInvalidLengthTypes
  7866  			}
  7867  			postIndex := iNdEx + msglen
  7868  			if postIndex < 0 {
  7869  				return ErrInvalidLengthTypes
  7870  			}
  7871  			if postIndex > l {
  7872  				return io.ErrUnexpectedEOF
  7873  			}
  7874  			v := &RequestEcho{}
  7875  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7876  				return err
  7877  			}
  7878  			m.Value = &Request_Echo{v}
  7879  			iNdEx = postIndex
  7880  		case 2:
  7881  			if wireType != 2 {
  7882  				return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType)
  7883  			}
  7884  			var msglen int
  7885  			for shift := uint(0); ; shift += 7 {
  7886  				if shift >= 64 {
  7887  					return ErrIntOverflowTypes
  7888  				}
  7889  				if iNdEx >= l {
  7890  					return io.ErrUnexpectedEOF
  7891  				}
  7892  				b := dAtA[iNdEx]
  7893  				iNdEx++
  7894  				msglen |= int(b&0x7F) << shift
  7895  				if b < 0x80 {
  7896  					break
  7897  				}
  7898  			}
  7899  			if msglen < 0 {
  7900  				return ErrInvalidLengthTypes
  7901  			}
  7902  			postIndex := iNdEx + msglen
  7903  			if postIndex < 0 {
  7904  				return ErrInvalidLengthTypes
  7905  			}
  7906  			if postIndex > l {
  7907  				return io.ErrUnexpectedEOF
  7908  			}
  7909  			v := &RequestFlush{}
  7910  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7911  				return err
  7912  			}
  7913  			m.Value = &Request_Flush{v}
  7914  			iNdEx = postIndex
  7915  		case 3:
  7916  			if wireType != 2 {
  7917  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  7918  			}
  7919  			var msglen int
  7920  			for shift := uint(0); ; shift += 7 {
  7921  				if shift >= 64 {
  7922  					return ErrIntOverflowTypes
  7923  				}
  7924  				if iNdEx >= l {
  7925  					return io.ErrUnexpectedEOF
  7926  				}
  7927  				b := dAtA[iNdEx]
  7928  				iNdEx++
  7929  				msglen |= int(b&0x7F) << shift
  7930  				if b < 0x80 {
  7931  					break
  7932  				}
  7933  			}
  7934  			if msglen < 0 {
  7935  				return ErrInvalidLengthTypes
  7936  			}
  7937  			postIndex := iNdEx + msglen
  7938  			if postIndex < 0 {
  7939  				return ErrInvalidLengthTypes
  7940  			}
  7941  			if postIndex > l {
  7942  				return io.ErrUnexpectedEOF
  7943  			}
  7944  			v := &RequestInfo{}
  7945  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7946  				return err
  7947  			}
  7948  			m.Value = &Request_Info{v}
  7949  			iNdEx = postIndex
  7950  		case 4:
  7951  			if wireType != 2 {
  7952  				return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType)
  7953  			}
  7954  			var msglen int
  7955  			for shift := uint(0); ; shift += 7 {
  7956  				if shift >= 64 {
  7957  					return ErrIntOverflowTypes
  7958  				}
  7959  				if iNdEx >= l {
  7960  					return io.ErrUnexpectedEOF
  7961  				}
  7962  				b := dAtA[iNdEx]
  7963  				iNdEx++
  7964  				msglen |= int(b&0x7F) << shift
  7965  				if b < 0x80 {
  7966  					break
  7967  				}
  7968  			}
  7969  			if msglen < 0 {
  7970  				return ErrInvalidLengthTypes
  7971  			}
  7972  			postIndex := iNdEx + msglen
  7973  			if postIndex < 0 {
  7974  				return ErrInvalidLengthTypes
  7975  			}
  7976  			if postIndex > l {
  7977  				return io.ErrUnexpectedEOF
  7978  			}
  7979  			v := &RequestSetOption{}
  7980  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7981  				return err
  7982  			}
  7983  			m.Value = &Request_SetOption{v}
  7984  			iNdEx = postIndex
  7985  		case 5:
  7986  			if wireType != 2 {
  7987  				return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType)
  7988  			}
  7989  			var msglen int
  7990  			for shift := uint(0); ; shift += 7 {
  7991  				if shift >= 64 {
  7992  					return ErrIntOverflowTypes
  7993  				}
  7994  				if iNdEx >= l {
  7995  					return io.ErrUnexpectedEOF
  7996  				}
  7997  				b := dAtA[iNdEx]
  7998  				iNdEx++
  7999  				msglen |= int(b&0x7F) << shift
  8000  				if b < 0x80 {
  8001  					break
  8002  				}
  8003  			}
  8004  			if msglen < 0 {
  8005  				return ErrInvalidLengthTypes
  8006  			}
  8007  			postIndex := iNdEx + msglen
  8008  			if postIndex < 0 {
  8009  				return ErrInvalidLengthTypes
  8010  			}
  8011  			if postIndex > l {
  8012  				return io.ErrUnexpectedEOF
  8013  			}
  8014  			v := &RequestInitChain{}
  8015  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8016  				return err
  8017  			}
  8018  			m.Value = &Request_InitChain{v}
  8019  			iNdEx = postIndex
  8020  		case 6:
  8021  			if wireType != 2 {
  8022  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  8023  			}
  8024  			var msglen int
  8025  			for shift := uint(0); ; shift += 7 {
  8026  				if shift >= 64 {
  8027  					return ErrIntOverflowTypes
  8028  				}
  8029  				if iNdEx >= l {
  8030  					return io.ErrUnexpectedEOF
  8031  				}
  8032  				b := dAtA[iNdEx]
  8033  				iNdEx++
  8034  				msglen |= int(b&0x7F) << shift
  8035  				if b < 0x80 {
  8036  					break
  8037  				}
  8038  			}
  8039  			if msglen < 0 {
  8040  				return ErrInvalidLengthTypes
  8041  			}
  8042  			postIndex := iNdEx + msglen
  8043  			if postIndex < 0 {
  8044  				return ErrInvalidLengthTypes
  8045  			}
  8046  			if postIndex > l {
  8047  				return io.ErrUnexpectedEOF
  8048  			}
  8049  			v := &RequestQuery{}
  8050  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8051  				return err
  8052  			}
  8053  			m.Value = &Request_Query{v}
  8054  			iNdEx = postIndex
  8055  		case 7:
  8056  			if wireType != 2 {
  8057  				return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType)
  8058  			}
  8059  			var msglen int
  8060  			for shift := uint(0); ; shift += 7 {
  8061  				if shift >= 64 {
  8062  					return ErrIntOverflowTypes
  8063  				}
  8064  				if iNdEx >= l {
  8065  					return io.ErrUnexpectedEOF
  8066  				}
  8067  				b := dAtA[iNdEx]
  8068  				iNdEx++
  8069  				msglen |= int(b&0x7F) << shift
  8070  				if b < 0x80 {
  8071  					break
  8072  				}
  8073  			}
  8074  			if msglen < 0 {
  8075  				return ErrInvalidLengthTypes
  8076  			}
  8077  			postIndex := iNdEx + msglen
  8078  			if postIndex < 0 {
  8079  				return ErrInvalidLengthTypes
  8080  			}
  8081  			if postIndex > l {
  8082  				return io.ErrUnexpectedEOF
  8083  			}
  8084  			v := &RequestBeginBlock{}
  8085  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8086  				return err
  8087  			}
  8088  			m.Value = &Request_BeginBlock{v}
  8089  			iNdEx = postIndex
  8090  		case 8:
  8091  			if wireType != 2 {
  8092  				return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType)
  8093  			}
  8094  			var msglen int
  8095  			for shift := uint(0); ; shift += 7 {
  8096  				if shift >= 64 {
  8097  					return ErrIntOverflowTypes
  8098  				}
  8099  				if iNdEx >= l {
  8100  					return io.ErrUnexpectedEOF
  8101  				}
  8102  				b := dAtA[iNdEx]
  8103  				iNdEx++
  8104  				msglen |= int(b&0x7F) << shift
  8105  				if b < 0x80 {
  8106  					break
  8107  				}
  8108  			}
  8109  			if msglen < 0 {
  8110  				return ErrInvalidLengthTypes
  8111  			}
  8112  			postIndex := iNdEx + msglen
  8113  			if postIndex < 0 {
  8114  				return ErrInvalidLengthTypes
  8115  			}
  8116  			if postIndex > l {
  8117  				return io.ErrUnexpectedEOF
  8118  			}
  8119  			v := &RequestCheckTx{}
  8120  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8121  				return err
  8122  			}
  8123  			m.Value = &Request_CheckTx{v}
  8124  			iNdEx = postIndex
  8125  		case 9:
  8126  			if wireType != 2 {
  8127  				return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType)
  8128  			}
  8129  			var msglen int
  8130  			for shift := uint(0); ; shift += 7 {
  8131  				if shift >= 64 {
  8132  					return ErrIntOverflowTypes
  8133  				}
  8134  				if iNdEx >= l {
  8135  					return io.ErrUnexpectedEOF
  8136  				}
  8137  				b := dAtA[iNdEx]
  8138  				iNdEx++
  8139  				msglen |= int(b&0x7F) << shift
  8140  				if b < 0x80 {
  8141  					break
  8142  				}
  8143  			}
  8144  			if msglen < 0 {
  8145  				return ErrInvalidLengthTypes
  8146  			}
  8147  			postIndex := iNdEx + msglen
  8148  			if postIndex < 0 {
  8149  				return ErrInvalidLengthTypes
  8150  			}
  8151  			if postIndex > l {
  8152  				return io.ErrUnexpectedEOF
  8153  			}
  8154  			v := &RequestDeliverTx{}
  8155  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8156  				return err
  8157  			}
  8158  			m.Value = &Request_DeliverTx{v}
  8159  			iNdEx = postIndex
  8160  		case 10:
  8161  			if wireType != 2 {
  8162  				return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType)
  8163  			}
  8164  			var msglen int
  8165  			for shift := uint(0); ; shift += 7 {
  8166  				if shift >= 64 {
  8167  					return ErrIntOverflowTypes
  8168  				}
  8169  				if iNdEx >= l {
  8170  					return io.ErrUnexpectedEOF
  8171  				}
  8172  				b := dAtA[iNdEx]
  8173  				iNdEx++
  8174  				msglen |= int(b&0x7F) << shift
  8175  				if b < 0x80 {
  8176  					break
  8177  				}
  8178  			}
  8179  			if msglen < 0 {
  8180  				return ErrInvalidLengthTypes
  8181  			}
  8182  			postIndex := iNdEx + msglen
  8183  			if postIndex < 0 {
  8184  				return ErrInvalidLengthTypes
  8185  			}
  8186  			if postIndex > l {
  8187  				return io.ErrUnexpectedEOF
  8188  			}
  8189  			v := &RequestEndBlock{}
  8190  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8191  				return err
  8192  			}
  8193  			m.Value = &Request_EndBlock{v}
  8194  			iNdEx = postIndex
  8195  		case 11:
  8196  			if wireType != 2 {
  8197  				return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
  8198  			}
  8199  			var msglen int
  8200  			for shift := uint(0); ; shift += 7 {
  8201  				if shift >= 64 {
  8202  					return ErrIntOverflowTypes
  8203  				}
  8204  				if iNdEx >= l {
  8205  					return io.ErrUnexpectedEOF
  8206  				}
  8207  				b := dAtA[iNdEx]
  8208  				iNdEx++
  8209  				msglen |= int(b&0x7F) << shift
  8210  				if b < 0x80 {
  8211  					break
  8212  				}
  8213  			}
  8214  			if msglen < 0 {
  8215  				return ErrInvalidLengthTypes
  8216  			}
  8217  			postIndex := iNdEx + msglen
  8218  			if postIndex < 0 {
  8219  				return ErrInvalidLengthTypes
  8220  			}
  8221  			if postIndex > l {
  8222  				return io.ErrUnexpectedEOF
  8223  			}
  8224  			v := &RequestCommit{}
  8225  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8226  				return err
  8227  			}
  8228  			m.Value = &Request_Commit{v}
  8229  			iNdEx = postIndex
  8230  		case 12:
  8231  			if wireType != 2 {
  8232  				return fmt.Errorf("proto: wrong wireType = %d for field ListSnapshots", wireType)
  8233  			}
  8234  			var msglen int
  8235  			for shift := uint(0); ; shift += 7 {
  8236  				if shift >= 64 {
  8237  					return ErrIntOverflowTypes
  8238  				}
  8239  				if iNdEx >= l {
  8240  					return io.ErrUnexpectedEOF
  8241  				}
  8242  				b := dAtA[iNdEx]
  8243  				iNdEx++
  8244  				msglen |= int(b&0x7F) << shift
  8245  				if b < 0x80 {
  8246  					break
  8247  				}
  8248  			}
  8249  			if msglen < 0 {
  8250  				return ErrInvalidLengthTypes
  8251  			}
  8252  			postIndex := iNdEx + msglen
  8253  			if postIndex < 0 {
  8254  				return ErrInvalidLengthTypes
  8255  			}
  8256  			if postIndex > l {
  8257  				return io.ErrUnexpectedEOF
  8258  			}
  8259  			v := &RequestListSnapshots{}
  8260  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8261  				return err
  8262  			}
  8263  			m.Value = &Request_ListSnapshots{v}
  8264  			iNdEx = postIndex
  8265  		case 13:
  8266  			if wireType != 2 {
  8267  				return fmt.Errorf("proto: wrong wireType = %d for field OfferSnapshot", wireType)
  8268  			}
  8269  			var msglen int
  8270  			for shift := uint(0); ; shift += 7 {
  8271  				if shift >= 64 {
  8272  					return ErrIntOverflowTypes
  8273  				}
  8274  				if iNdEx >= l {
  8275  					return io.ErrUnexpectedEOF
  8276  				}
  8277  				b := dAtA[iNdEx]
  8278  				iNdEx++
  8279  				msglen |= int(b&0x7F) << shift
  8280  				if b < 0x80 {
  8281  					break
  8282  				}
  8283  			}
  8284  			if msglen < 0 {
  8285  				return ErrInvalidLengthTypes
  8286  			}
  8287  			postIndex := iNdEx + msglen
  8288  			if postIndex < 0 {
  8289  				return ErrInvalidLengthTypes
  8290  			}
  8291  			if postIndex > l {
  8292  				return io.ErrUnexpectedEOF
  8293  			}
  8294  			v := &RequestOfferSnapshot{}
  8295  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8296  				return err
  8297  			}
  8298  			m.Value = &Request_OfferSnapshot{v}
  8299  			iNdEx = postIndex
  8300  		case 14:
  8301  			if wireType != 2 {
  8302  				return fmt.Errorf("proto: wrong wireType = %d for field LoadSnapshotChunk", wireType)
  8303  			}
  8304  			var msglen int
  8305  			for shift := uint(0); ; shift += 7 {
  8306  				if shift >= 64 {
  8307  					return ErrIntOverflowTypes
  8308  				}
  8309  				if iNdEx >= l {
  8310  					return io.ErrUnexpectedEOF
  8311  				}
  8312  				b := dAtA[iNdEx]
  8313  				iNdEx++
  8314  				msglen |= int(b&0x7F) << shift
  8315  				if b < 0x80 {
  8316  					break
  8317  				}
  8318  			}
  8319  			if msglen < 0 {
  8320  				return ErrInvalidLengthTypes
  8321  			}
  8322  			postIndex := iNdEx + msglen
  8323  			if postIndex < 0 {
  8324  				return ErrInvalidLengthTypes
  8325  			}
  8326  			if postIndex > l {
  8327  				return io.ErrUnexpectedEOF
  8328  			}
  8329  			v := &RequestLoadSnapshotChunk{}
  8330  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8331  				return err
  8332  			}
  8333  			m.Value = &Request_LoadSnapshotChunk{v}
  8334  			iNdEx = postIndex
  8335  		case 15:
  8336  			if wireType != 2 {
  8337  				return fmt.Errorf("proto: wrong wireType = %d for field ApplySnapshotChunk", wireType)
  8338  			}
  8339  			var msglen int
  8340  			for shift := uint(0); ; shift += 7 {
  8341  				if shift >= 64 {
  8342  					return ErrIntOverflowTypes
  8343  				}
  8344  				if iNdEx >= l {
  8345  					return io.ErrUnexpectedEOF
  8346  				}
  8347  				b := dAtA[iNdEx]
  8348  				iNdEx++
  8349  				msglen |= int(b&0x7F) << shift
  8350  				if b < 0x80 {
  8351  					break
  8352  				}
  8353  			}
  8354  			if msglen < 0 {
  8355  				return ErrInvalidLengthTypes
  8356  			}
  8357  			postIndex := iNdEx + msglen
  8358  			if postIndex < 0 {
  8359  				return ErrInvalidLengthTypes
  8360  			}
  8361  			if postIndex > l {
  8362  				return io.ErrUnexpectedEOF
  8363  			}
  8364  			v := &RequestApplySnapshotChunk{}
  8365  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8366  				return err
  8367  			}
  8368  			m.Value = &Request_ApplySnapshotChunk{v}
  8369  			iNdEx = postIndex
  8370  		default:
  8371  			iNdEx = preIndex
  8372  			skippy, err := skipTypes(dAtA[iNdEx:])
  8373  			if err != nil {
  8374  				return err
  8375  			}
  8376  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8377  				return ErrInvalidLengthTypes
  8378  			}
  8379  			if (iNdEx + skippy) > l {
  8380  				return io.ErrUnexpectedEOF
  8381  			}
  8382  			iNdEx += skippy
  8383  		}
  8384  	}
  8385  
  8386  	if iNdEx > l {
  8387  		return io.ErrUnexpectedEOF
  8388  	}
  8389  	return nil
  8390  }
  8391  func (m *RequestEcho) Unmarshal(dAtA []byte) error {
  8392  	l := len(dAtA)
  8393  	iNdEx := 0
  8394  	for iNdEx < l {
  8395  		preIndex := iNdEx
  8396  		var wire uint64
  8397  		for shift := uint(0); ; shift += 7 {
  8398  			if shift >= 64 {
  8399  				return ErrIntOverflowTypes
  8400  			}
  8401  			if iNdEx >= l {
  8402  				return io.ErrUnexpectedEOF
  8403  			}
  8404  			b := dAtA[iNdEx]
  8405  			iNdEx++
  8406  			wire |= uint64(b&0x7F) << shift
  8407  			if b < 0x80 {
  8408  				break
  8409  			}
  8410  		}
  8411  		fieldNum := int32(wire >> 3)
  8412  		wireType := int(wire & 0x7)
  8413  		if wireType == 4 {
  8414  			return fmt.Errorf("proto: RequestEcho: wiretype end group for non-group")
  8415  		}
  8416  		if fieldNum <= 0 {
  8417  			return fmt.Errorf("proto: RequestEcho: illegal tag %d (wire type %d)", fieldNum, wire)
  8418  		}
  8419  		switch fieldNum {
  8420  		case 1:
  8421  			if wireType != 2 {
  8422  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  8423  			}
  8424  			var stringLen uint64
  8425  			for shift := uint(0); ; shift += 7 {
  8426  				if shift >= 64 {
  8427  					return ErrIntOverflowTypes
  8428  				}
  8429  				if iNdEx >= l {
  8430  					return io.ErrUnexpectedEOF
  8431  				}
  8432  				b := dAtA[iNdEx]
  8433  				iNdEx++
  8434  				stringLen |= uint64(b&0x7F) << shift
  8435  				if b < 0x80 {
  8436  					break
  8437  				}
  8438  			}
  8439  			intStringLen := int(stringLen)
  8440  			if intStringLen < 0 {
  8441  				return ErrInvalidLengthTypes
  8442  			}
  8443  			postIndex := iNdEx + intStringLen
  8444  			if postIndex < 0 {
  8445  				return ErrInvalidLengthTypes
  8446  			}
  8447  			if postIndex > l {
  8448  				return io.ErrUnexpectedEOF
  8449  			}
  8450  			m.Message = string(dAtA[iNdEx:postIndex])
  8451  			iNdEx = postIndex
  8452  		default:
  8453  			iNdEx = preIndex
  8454  			skippy, err := skipTypes(dAtA[iNdEx:])
  8455  			if err != nil {
  8456  				return err
  8457  			}
  8458  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8459  				return ErrInvalidLengthTypes
  8460  			}
  8461  			if (iNdEx + skippy) > l {
  8462  				return io.ErrUnexpectedEOF
  8463  			}
  8464  			iNdEx += skippy
  8465  		}
  8466  	}
  8467  
  8468  	if iNdEx > l {
  8469  		return io.ErrUnexpectedEOF
  8470  	}
  8471  	return nil
  8472  }
  8473  func (m *RequestFlush) Unmarshal(dAtA []byte) error {
  8474  	l := len(dAtA)
  8475  	iNdEx := 0
  8476  	for iNdEx < l {
  8477  		preIndex := iNdEx
  8478  		var wire uint64
  8479  		for shift := uint(0); ; shift += 7 {
  8480  			if shift >= 64 {
  8481  				return ErrIntOverflowTypes
  8482  			}
  8483  			if iNdEx >= l {
  8484  				return io.ErrUnexpectedEOF
  8485  			}
  8486  			b := dAtA[iNdEx]
  8487  			iNdEx++
  8488  			wire |= uint64(b&0x7F) << shift
  8489  			if b < 0x80 {
  8490  				break
  8491  			}
  8492  		}
  8493  		fieldNum := int32(wire >> 3)
  8494  		wireType := int(wire & 0x7)
  8495  		if wireType == 4 {
  8496  			return fmt.Errorf("proto: RequestFlush: wiretype end group for non-group")
  8497  		}
  8498  		if fieldNum <= 0 {
  8499  			return fmt.Errorf("proto: RequestFlush: illegal tag %d (wire type %d)", fieldNum, wire)
  8500  		}
  8501  		switch fieldNum {
  8502  		default:
  8503  			iNdEx = preIndex
  8504  			skippy, err := skipTypes(dAtA[iNdEx:])
  8505  			if err != nil {
  8506  				return err
  8507  			}
  8508  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8509  				return ErrInvalidLengthTypes
  8510  			}
  8511  			if (iNdEx + skippy) > l {
  8512  				return io.ErrUnexpectedEOF
  8513  			}
  8514  			iNdEx += skippy
  8515  		}
  8516  	}
  8517  
  8518  	if iNdEx > l {
  8519  		return io.ErrUnexpectedEOF
  8520  	}
  8521  	return nil
  8522  }
  8523  func (m *RequestInfo) Unmarshal(dAtA []byte) error {
  8524  	l := len(dAtA)
  8525  	iNdEx := 0
  8526  	for iNdEx < l {
  8527  		preIndex := iNdEx
  8528  		var wire uint64
  8529  		for shift := uint(0); ; shift += 7 {
  8530  			if shift >= 64 {
  8531  				return ErrIntOverflowTypes
  8532  			}
  8533  			if iNdEx >= l {
  8534  				return io.ErrUnexpectedEOF
  8535  			}
  8536  			b := dAtA[iNdEx]
  8537  			iNdEx++
  8538  			wire |= uint64(b&0x7F) << shift
  8539  			if b < 0x80 {
  8540  				break
  8541  			}
  8542  		}
  8543  		fieldNum := int32(wire >> 3)
  8544  		wireType := int(wire & 0x7)
  8545  		if wireType == 4 {
  8546  			return fmt.Errorf("proto: RequestInfo: wiretype end group for non-group")
  8547  		}
  8548  		if fieldNum <= 0 {
  8549  			return fmt.Errorf("proto: RequestInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  8550  		}
  8551  		switch fieldNum {
  8552  		case 1:
  8553  			if wireType != 2 {
  8554  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  8555  			}
  8556  			var stringLen uint64
  8557  			for shift := uint(0); ; shift += 7 {
  8558  				if shift >= 64 {
  8559  					return ErrIntOverflowTypes
  8560  				}
  8561  				if iNdEx >= l {
  8562  					return io.ErrUnexpectedEOF
  8563  				}
  8564  				b := dAtA[iNdEx]
  8565  				iNdEx++
  8566  				stringLen |= uint64(b&0x7F) << shift
  8567  				if b < 0x80 {
  8568  					break
  8569  				}
  8570  			}
  8571  			intStringLen := int(stringLen)
  8572  			if intStringLen < 0 {
  8573  				return ErrInvalidLengthTypes
  8574  			}
  8575  			postIndex := iNdEx + intStringLen
  8576  			if postIndex < 0 {
  8577  				return ErrInvalidLengthTypes
  8578  			}
  8579  			if postIndex > l {
  8580  				return io.ErrUnexpectedEOF
  8581  			}
  8582  			m.Version = string(dAtA[iNdEx:postIndex])
  8583  			iNdEx = postIndex
  8584  		case 2:
  8585  			if wireType != 0 {
  8586  				return fmt.Errorf("proto: wrong wireType = %d for field BlockVersion", wireType)
  8587  			}
  8588  			m.BlockVersion = 0
  8589  			for shift := uint(0); ; shift += 7 {
  8590  				if shift >= 64 {
  8591  					return ErrIntOverflowTypes
  8592  				}
  8593  				if iNdEx >= l {
  8594  					return io.ErrUnexpectedEOF
  8595  				}
  8596  				b := dAtA[iNdEx]
  8597  				iNdEx++
  8598  				m.BlockVersion |= uint64(b&0x7F) << shift
  8599  				if b < 0x80 {
  8600  					break
  8601  				}
  8602  			}
  8603  		case 3:
  8604  			if wireType != 0 {
  8605  				return fmt.Errorf("proto: wrong wireType = %d for field P2PVersion", wireType)
  8606  			}
  8607  			m.P2PVersion = 0
  8608  			for shift := uint(0); ; shift += 7 {
  8609  				if shift >= 64 {
  8610  					return ErrIntOverflowTypes
  8611  				}
  8612  				if iNdEx >= l {
  8613  					return io.ErrUnexpectedEOF
  8614  				}
  8615  				b := dAtA[iNdEx]
  8616  				iNdEx++
  8617  				m.P2PVersion |= uint64(b&0x7F) << shift
  8618  				if b < 0x80 {
  8619  					break
  8620  				}
  8621  			}
  8622  		default:
  8623  			iNdEx = preIndex
  8624  			skippy, err := skipTypes(dAtA[iNdEx:])
  8625  			if err != nil {
  8626  				return err
  8627  			}
  8628  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8629  				return ErrInvalidLengthTypes
  8630  			}
  8631  			if (iNdEx + skippy) > l {
  8632  				return io.ErrUnexpectedEOF
  8633  			}
  8634  			iNdEx += skippy
  8635  		}
  8636  	}
  8637  
  8638  	if iNdEx > l {
  8639  		return io.ErrUnexpectedEOF
  8640  	}
  8641  	return nil
  8642  }
  8643  func (m *RequestSetOption) Unmarshal(dAtA []byte) error {
  8644  	l := len(dAtA)
  8645  	iNdEx := 0
  8646  	for iNdEx < l {
  8647  		preIndex := iNdEx
  8648  		var wire uint64
  8649  		for shift := uint(0); ; shift += 7 {
  8650  			if shift >= 64 {
  8651  				return ErrIntOverflowTypes
  8652  			}
  8653  			if iNdEx >= l {
  8654  				return io.ErrUnexpectedEOF
  8655  			}
  8656  			b := dAtA[iNdEx]
  8657  			iNdEx++
  8658  			wire |= uint64(b&0x7F) << shift
  8659  			if b < 0x80 {
  8660  				break
  8661  			}
  8662  		}
  8663  		fieldNum := int32(wire >> 3)
  8664  		wireType := int(wire & 0x7)
  8665  		if wireType == 4 {
  8666  			return fmt.Errorf("proto: RequestSetOption: wiretype end group for non-group")
  8667  		}
  8668  		if fieldNum <= 0 {
  8669  			return fmt.Errorf("proto: RequestSetOption: illegal tag %d (wire type %d)", fieldNum, wire)
  8670  		}
  8671  		switch fieldNum {
  8672  		case 1:
  8673  			if wireType != 2 {
  8674  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  8675  			}
  8676  			var stringLen uint64
  8677  			for shift := uint(0); ; shift += 7 {
  8678  				if shift >= 64 {
  8679  					return ErrIntOverflowTypes
  8680  				}
  8681  				if iNdEx >= l {
  8682  					return io.ErrUnexpectedEOF
  8683  				}
  8684  				b := dAtA[iNdEx]
  8685  				iNdEx++
  8686  				stringLen |= uint64(b&0x7F) << shift
  8687  				if b < 0x80 {
  8688  					break
  8689  				}
  8690  			}
  8691  			intStringLen := int(stringLen)
  8692  			if intStringLen < 0 {
  8693  				return ErrInvalidLengthTypes
  8694  			}
  8695  			postIndex := iNdEx + intStringLen
  8696  			if postIndex < 0 {
  8697  				return ErrInvalidLengthTypes
  8698  			}
  8699  			if postIndex > l {
  8700  				return io.ErrUnexpectedEOF
  8701  			}
  8702  			m.Key = string(dAtA[iNdEx:postIndex])
  8703  			iNdEx = postIndex
  8704  		case 2:
  8705  			if wireType != 2 {
  8706  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  8707  			}
  8708  			var stringLen uint64
  8709  			for shift := uint(0); ; shift += 7 {
  8710  				if shift >= 64 {
  8711  					return ErrIntOverflowTypes
  8712  				}
  8713  				if iNdEx >= l {
  8714  					return io.ErrUnexpectedEOF
  8715  				}
  8716  				b := dAtA[iNdEx]
  8717  				iNdEx++
  8718  				stringLen |= uint64(b&0x7F) << shift
  8719  				if b < 0x80 {
  8720  					break
  8721  				}
  8722  			}
  8723  			intStringLen := int(stringLen)
  8724  			if intStringLen < 0 {
  8725  				return ErrInvalidLengthTypes
  8726  			}
  8727  			postIndex := iNdEx + intStringLen
  8728  			if postIndex < 0 {
  8729  				return ErrInvalidLengthTypes
  8730  			}
  8731  			if postIndex > l {
  8732  				return io.ErrUnexpectedEOF
  8733  			}
  8734  			m.Value = string(dAtA[iNdEx:postIndex])
  8735  			iNdEx = postIndex
  8736  		default:
  8737  			iNdEx = preIndex
  8738  			skippy, err := skipTypes(dAtA[iNdEx:])
  8739  			if err != nil {
  8740  				return err
  8741  			}
  8742  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8743  				return ErrInvalidLengthTypes
  8744  			}
  8745  			if (iNdEx + skippy) > l {
  8746  				return io.ErrUnexpectedEOF
  8747  			}
  8748  			iNdEx += skippy
  8749  		}
  8750  	}
  8751  
  8752  	if iNdEx > l {
  8753  		return io.ErrUnexpectedEOF
  8754  	}
  8755  	return nil
  8756  }
  8757  func (m *RequestInitChain) Unmarshal(dAtA []byte) error {
  8758  	l := len(dAtA)
  8759  	iNdEx := 0
  8760  	for iNdEx < l {
  8761  		preIndex := iNdEx
  8762  		var wire uint64
  8763  		for shift := uint(0); ; shift += 7 {
  8764  			if shift >= 64 {
  8765  				return ErrIntOverflowTypes
  8766  			}
  8767  			if iNdEx >= l {
  8768  				return io.ErrUnexpectedEOF
  8769  			}
  8770  			b := dAtA[iNdEx]
  8771  			iNdEx++
  8772  			wire |= uint64(b&0x7F) << shift
  8773  			if b < 0x80 {
  8774  				break
  8775  			}
  8776  		}
  8777  		fieldNum := int32(wire >> 3)
  8778  		wireType := int(wire & 0x7)
  8779  		if wireType == 4 {
  8780  			return fmt.Errorf("proto: RequestInitChain: wiretype end group for non-group")
  8781  		}
  8782  		if fieldNum <= 0 {
  8783  			return fmt.Errorf("proto: RequestInitChain: illegal tag %d (wire type %d)", fieldNum, wire)
  8784  		}
  8785  		switch fieldNum {
  8786  		case 1:
  8787  			if wireType != 2 {
  8788  				return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  8789  			}
  8790  			var msglen int
  8791  			for shift := uint(0); ; shift += 7 {
  8792  				if shift >= 64 {
  8793  					return ErrIntOverflowTypes
  8794  				}
  8795  				if iNdEx >= l {
  8796  					return io.ErrUnexpectedEOF
  8797  				}
  8798  				b := dAtA[iNdEx]
  8799  				iNdEx++
  8800  				msglen |= int(b&0x7F) << shift
  8801  				if b < 0x80 {
  8802  					break
  8803  				}
  8804  			}
  8805  			if msglen < 0 {
  8806  				return ErrInvalidLengthTypes
  8807  			}
  8808  			postIndex := iNdEx + msglen
  8809  			if postIndex < 0 {
  8810  				return ErrInvalidLengthTypes
  8811  			}
  8812  			if postIndex > l {
  8813  				return io.ErrUnexpectedEOF
  8814  			}
  8815  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  8816  				return err
  8817  			}
  8818  			iNdEx = postIndex
  8819  		case 2:
  8820  			if wireType != 2 {
  8821  				return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType)
  8822  			}
  8823  			var stringLen uint64
  8824  			for shift := uint(0); ; shift += 7 {
  8825  				if shift >= 64 {
  8826  					return ErrIntOverflowTypes
  8827  				}
  8828  				if iNdEx >= l {
  8829  					return io.ErrUnexpectedEOF
  8830  				}
  8831  				b := dAtA[iNdEx]
  8832  				iNdEx++
  8833  				stringLen |= uint64(b&0x7F) << shift
  8834  				if b < 0x80 {
  8835  					break
  8836  				}
  8837  			}
  8838  			intStringLen := int(stringLen)
  8839  			if intStringLen < 0 {
  8840  				return ErrInvalidLengthTypes
  8841  			}
  8842  			postIndex := iNdEx + intStringLen
  8843  			if postIndex < 0 {
  8844  				return ErrInvalidLengthTypes
  8845  			}
  8846  			if postIndex > l {
  8847  				return io.ErrUnexpectedEOF
  8848  			}
  8849  			m.ChainId = string(dAtA[iNdEx:postIndex])
  8850  			iNdEx = postIndex
  8851  		case 3:
  8852  			if wireType != 2 {
  8853  				return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  8854  			}
  8855  			var msglen int
  8856  			for shift := uint(0); ; shift += 7 {
  8857  				if shift >= 64 {
  8858  					return ErrIntOverflowTypes
  8859  				}
  8860  				if iNdEx >= l {
  8861  					return io.ErrUnexpectedEOF
  8862  				}
  8863  				b := dAtA[iNdEx]
  8864  				iNdEx++
  8865  				msglen |= int(b&0x7F) << shift
  8866  				if b < 0x80 {
  8867  					break
  8868  				}
  8869  			}
  8870  			if msglen < 0 {
  8871  				return ErrInvalidLengthTypes
  8872  			}
  8873  			postIndex := iNdEx + msglen
  8874  			if postIndex < 0 {
  8875  				return ErrInvalidLengthTypes
  8876  			}
  8877  			if postIndex > l {
  8878  				return io.ErrUnexpectedEOF
  8879  			}
  8880  			if m.ConsensusParams == nil {
  8881  				m.ConsensusParams = &ConsensusParams{}
  8882  			}
  8883  			if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8884  				return err
  8885  			}
  8886  			iNdEx = postIndex
  8887  		case 4:
  8888  			if wireType != 2 {
  8889  				return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  8890  			}
  8891  			var msglen int
  8892  			for shift := uint(0); ; shift += 7 {
  8893  				if shift >= 64 {
  8894  					return ErrIntOverflowTypes
  8895  				}
  8896  				if iNdEx >= l {
  8897  					return io.ErrUnexpectedEOF
  8898  				}
  8899  				b := dAtA[iNdEx]
  8900  				iNdEx++
  8901  				msglen |= int(b&0x7F) << shift
  8902  				if b < 0x80 {
  8903  					break
  8904  				}
  8905  			}
  8906  			if msglen < 0 {
  8907  				return ErrInvalidLengthTypes
  8908  			}
  8909  			postIndex := iNdEx + msglen
  8910  			if postIndex < 0 {
  8911  				return ErrInvalidLengthTypes
  8912  			}
  8913  			if postIndex > l {
  8914  				return io.ErrUnexpectedEOF
  8915  			}
  8916  			m.Validators = append(m.Validators, ValidatorUpdate{})
  8917  			if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8918  				return err
  8919  			}
  8920  			iNdEx = postIndex
  8921  		case 5:
  8922  			if wireType != 2 {
  8923  				return fmt.Errorf("proto: wrong wireType = %d for field AppStateBytes", wireType)
  8924  			}
  8925  			var byteLen int
  8926  			for shift := uint(0); ; shift += 7 {
  8927  				if shift >= 64 {
  8928  					return ErrIntOverflowTypes
  8929  				}
  8930  				if iNdEx >= l {
  8931  					return io.ErrUnexpectedEOF
  8932  				}
  8933  				b := dAtA[iNdEx]
  8934  				iNdEx++
  8935  				byteLen |= int(b&0x7F) << shift
  8936  				if b < 0x80 {
  8937  					break
  8938  				}
  8939  			}
  8940  			if byteLen < 0 {
  8941  				return ErrInvalidLengthTypes
  8942  			}
  8943  			postIndex := iNdEx + byteLen
  8944  			if postIndex < 0 {
  8945  				return ErrInvalidLengthTypes
  8946  			}
  8947  			if postIndex > l {
  8948  				return io.ErrUnexpectedEOF
  8949  			}
  8950  			m.AppStateBytes = append(m.AppStateBytes[:0], dAtA[iNdEx:postIndex]...)
  8951  			if m.AppStateBytes == nil {
  8952  				m.AppStateBytes = []byte{}
  8953  			}
  8954  			iNdEx = postIndex
  8955  		case 6:
  8956  			if wireType != 0 {
  8957  				return fmt.Errorf("proto: wrong wireType = %d for field InitialHeight", wireType)
  8958  			}
  8959  			m.InitialHeight = 0
  8960  			for shift := uint(0); ; shift += 7 {
  8961  				if shift >= 64 {
  8962  					return ErrIntOverflowTypes
  8963  				}
  8964  				if iNdEx >= l {
  8965  					return io.ErrUnexpectedEOF
  8966  				}
  8967  				b := dAtA[iNdEx]
  8968  				iNdEx++
  8969  				m.InitialHeight |= int64(b&0x7F) << shift
  8970  				if b < 0x80 {
  8971  					break
  8972  				}
  8973  			}
  8974  		default:
  8975  			iNdEx = preIndex
  8976  			skippy, err := skipTypes(dAtA[iNdEx:])
  8977  			if err != nil {
  8978  				return err
  8979  			}
  8980  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8981  				return ErrInvalidLengthTypes
  8982  			}
  8983  			if (iNdEx + skippy) > l {
  8984  				return io.ErrUnexpectedEOF
  8985  			}
  8986  			iNdEx += skippy
  8987  		}
  8988  	}
  8989  
  8990  	if iNdEx > l {
  8991  		return io.ErrUnexpectedEOF
  8992  	}
  8993  	return nil
  8994  }
  8995  func (m *RequestQuery) Unmarshal(dAtA []byte) error {
  8996  	l := len(dAtA)
  8997  	iNdEx := 0
  8998  	for iNdEx < l {
  8999  		preIndex := iNdEx
  9000  		var wire uint64
  9001  		for shift := uint(0); ; shift += 7 {
  9002  			if shift >= 64 {
  9003  				return ErrIntOverflowTypes
  9004  			}
  9005  			if iNdEx >= l {
  9006  				return io.ErrUnexpectedEOF
  9007  			}
  9008  			b := dAtA[iNdEx]
  9009  			iNdEx++
  9010  			wire |= uint64(b&0x7F) << shift
  9011  			if b < 0x80 {
  9012  				break
  9013  			}
  9014  		}
  9015  		fieldNum := int32(wire >> 3)
  9016  		wireType := int(wire & 0x7)
  9017  		if wireType == 4 {
  9018  			return fmt.Errorf("proto: RequestQuery: wiretype end group for non-group")
  9019  		}
  9020  		if fieldNum <= 0 {
  9021  			return fmt.Errorf("proto: RequestQuery: illegal tag %d (wire type %d)", fieldNum, wire)
  9022  		}
  9023  		switch fieldNum {
  9024  		case 1:
  9025  			if wireType != 2 {
  9026  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  9027  			}
  9028  			var byteLen int
  9029  			for shift := uint(0); ; shift += 7 {
  9030  				if shift >= 64 {
  9031  					return ErrIntOverflowTypes
  9032  				}
  9033  				if iNdEx >= l {
  9034  					return io.ErrUnexpectedEOF
  9035  				}
  9036  				b := dAtA[iNdEx]
  9037  				iNdEx++
  9038  				byteLen |= int(b&0x7F) << shift
  9039  				if b < 0x80 {
  9040  					break
  9041  				}
  9042  			}
  9043  			if byteLen < 0 {
  9044  				return ErrInvalidLengthTypes
  9045  			}
  9046  			postIndex := iNdEx + byteLen
  9047  			if postIndex < 0 {
  9048  				return ErrInvalidLengthTypes
  9049  			}
  9050  			if postIndex > l {
  9051  				return io.ErrUnexpectedEOF
  9052  			}
  9053  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  9054  			if m.Data == nil {
  9055  				m.Data = []byte{}
  9056  			}
  9057  			iNdEx = postIndex
  9058  		case 2:
  9059  			if wireType != 2 {
  9060  				return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  9061  			}
  9062  			var stringLen uint64
  9063  			for shift := uint(0); ; shift += 7 {
  9064  				if shift >= 64 {
  9065  					return ErrIntOverflowTypes
  9066  				}
  9067  				if iNdEx >= l {
  9068  					return io.ErrUnexpectedEOF
  9069  				}
  9070  				b := dAtA[iNdEx]
  9071  				iNdEx++
  9072  				stringLen |= uint64(b&0x7F) << shift
  9073  				if b < 0x80 {
  9074  					break
  9075  				}
  9076  			}
  9077  			intStringLen := int(stringLen)
  9078  			if intStringLen < 0 {
  9079  				return ErrInvalidLengthTypes
  9080  			}
  9081  			postIndex := iNdEx + intStringLen
  9082  			if postIndex < 0 {
  9083  				return ErrInvalidLengthTypes
  9084  			}
  9085  			if postIndex > l {
  9086  				return io.ErrUnexpectedEOF
  9087  			}
  9088  			m.Path = string(dAtA[iNdEx:postIndex])
  9089  			iNdEx = postIndex
  9090  		case 3:
  9091  			if wireType != 0 {
  9092  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  9093  			}
  9094  			m.Height = 0
  9095  			for shift := uint(0); ; shift += 7 {
  9096  				if shift >= 64 {
  9097  					return ErrIntOverflowTypes
  9098  				}
  9099  				if iNdEx >= l {
  9100  					return io.ErrUnexpectedEOF
  9101  				}
  9102  				b := dAtA[iNdEx]
  9103  				iNdEx++
  9104  				m.Height |= int64(b&0x7F) << shift
  9105  				if b < 0x80 {
  9106  					break
  9107  				}
  9108  			}
  9109  		case 4:
  9110  			if wireType != 0 {
  9111  				return fmt.Errorf("proto: wrong wireType = %d for field Prove", wireType)
  9112  			}
  9113  			var v int
  9114  			for shift := uint(0); ; shift += 7 {
  9115  				if shift >= 64 {
  9116  					return ErrIntOverflowTypes
  9117  				}
  9118  				if iNdEx >= l {
  9119  					return io.ErrUnexpectedEOF
  9120  				}
  9121  				b := dAtA[iNdEx]
  9122  				iNdEx++
  9123  				v |= int(b&0x7F) << shift
  9124  				if b < 0x80 {
  9125  					break
  9126  				}
  9127  			}
  9128  			m.Prove = bool(v != 0)
  9129  		default:
  9130  			iNdEx = preIndex
  9131  			skippy, err := skipTypes(dAtA[iNdEx:])
  9132  			if err != nil {
  9133  				return err
  9134  			}
  9135  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9136  				return ErrInvalidLengthTypes
  9137  			}
  9138  			if (iNdEx + skippy) > l {
  9139  				return io.ErrUnexpectedEOF
  9140  			}
  9141  			iNdEx += skippy
  9142  		}
  9143  	}
  9144  
  9145  	if iNdEx > l {
  9146  		return io.ErrUnexpectedEOF
  9147  	}
  9148  	return nil
  9149  }
  9150  func (m *RequestBeginBlock) Unmarshal(dAtA []byte) error {
  9151  	l := len(dAtA)
  9152  	iNdEx := 0
  9153  	for iNdEx < l {
  9154  		preIndex := iNdEx
  9155  		var wire uint64
  9156  		for shift := uint(0); ; shift += 7 {
  9157  			if shift >= 64 {
  9158  				return ErrIntOverflowTypes
  9159  			}
  9160  			if iNdEx >= l {
  9161  				return io.ErrUnexpectedEOF
  9162  			}
  9163  			b := dAtA[iNdEx]
  9164  			iNdEx++
  9165  			wire |= uint64(b&0x7F) << shift
  9166  			if b < 0x80 {
  9167  				break
  9168  			}
  9169  		}
  9170  		fieldNum := int32(wire >> 3)
  9171  		wireType := int(wire & 0x7)
  9172  		if wireType == 4 {
  9173  			return fmt.Errorf("proto: RequestBeginBlock: wiretype end group for non-group")
  9174  		}
  9175  		if fieldNum <= 0 {
  9176  			return fmt.Errorf("proto: RequestBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  9177  		}
  9178  		switch fieldNum {
  9179  		case 1:
  9180  			if wireType != 2 {
  9181  				return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  9182  			}
  9183  			var byteLen int
  9184  			for shift := uint(0); ; shift += 7 {
  9185  				if shift >= 64 {
  9186  					return ErrIntOverflowTypes
  9187  				}
  9188  				if iNdEx >= l {
  9189  					return io.ErrUnexpectedEOF
  9190  				}
  9191  				b := dAtA[iNdEx]
  9192  				iNdEx++
  9193  				byteLen |= int(b&0x7F) << shift
  9194  				if b < 0x80 {
  9195  					break
  9196  				}
  9197  			}
  9198  			if byteLen < 0 {
  9199  				return ErrInvalidLengthTypes
  9200  			}
  9201  			postIndex := iNdEx + byteLen
  9202  			if postIndex < 0 {
  9203  				return ErrInvalidLengthTypes
  9204  			}
  9205  			if postIndex > l {
  9206  				return io.ErrUnexpectedEOF
  9207  			}
  9208  			m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  9209  			if m.Hash == nil {
  9210  				m.Hash = []byte{}
  9211  			}
  9212  			iNdEx = postIndex
  9213  		case 2:
  9214  			if wireType != 2 {
  9215  				return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  9216  			}
  9217  			var msglen int
  9218  			for shift := uint(0); ; shift += 7 {
  9219  				if shift >= 64 {
  9220  					return ErrIntOverflowTypes
  9221  				}
  9222  				if iNdEx >= l {
  9223  					return io.ErrUnexpectedEOF
  9224  				}
  9225  				b := dAtA[iNdEx]
  9226  				iNdEx++
  9227  				msglen |= int(b&0x7F) << shift
  9228  				if b < 0x80 {
  9229  					break
  9230  				}
  9231  			}
  9232  			if msglen < 0 {
  9233  				return ErrInvalidLengthTypes
  9234  			}
  9235  			postIndex := iNdEx + msglen
  9236  			if postIndex < 0 {
  9237  				return ErrInvalidLengthTypes
  9238  			}
  9239  			if postIndex > l {
  9240  				return io.ErrUnexpectedEOF
  9241  			}
  9242  			if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9243  				return err
  9244  			}
  9245  			iNdEx = postIndex
  9246  		case 3:
  9247  			if wireType != 2 {
  9248  				return fmt.Errorf("proto: wrong wireType = %d for field LastCommitInfo", wireType)
  9249  			}
  9250  			var msglen int
  9251  			for shift := uint(0); ; shift += 7 {
  9252  				if shift >= 64 {
  9253  					return ErrIntOverflowTypes
  9254  				}
  9255  				if iNdEx >= l {
  9256  					return io.ErrUnexpectedEOF
  9257  				}
  9258  				b := dAtA[iNdEx]
  9259  				iNdEx++
  9260  				msglen |= int(b&0x7F) << shift
  9261  				if b < 0x80 {
  9262  					break
  9263  				}
  9264  			}
  9265  			if msglen < 0 {
  9266  				return ErrInvalidLengthTypes
  9267  			}
  9268  			postIndex := iNdEx + msglen
  9269  			if postIndex < 0 {
  9270  				return ErrInvalidLengthTypes
  9271  			}
  9272  			if postIndex > l {
  9273  				return io.ErrUnexpectedEOF
  9274  			}
  9275  			if err := m.LastCommitInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9276  				return err
  9277  			}
  9278  			iNdEx = postIndex
  9279  		case 4:
  9280  			if wireType != 2 {
  9281  				return fmt.Errorf("proto: wrong wireType = %d for field ByzantineValidators", wireType)
  9282  			}
  9283  			var msglen int
  9284  			for shift := uint(0); ; shift += 7 {
  9285  				if shift >= 64 {
  9286  					return ErrIntOverflowTypes
  9287  				}
  9288  				if iNdEx >= l {
  9289  					return io.ErrUnexpectedEOF
  9290  				}
  9291  				b := dAtA[iNdEx]
  9292  				iNdEx++
  9293  				msglen |= int(b&0x7F) << shift
  9294  				if b < 0x80 {
  9295  					break
  9296  				}
  9297  			}
  9298  			if msglen < 0 {
  9299  				return ErrInvalidLengthTypes
  9300  			}
  9301  			postIndex := iNdEx + msglen
  9302  			if postIndex < 0 {
  9303  				return ErrInvalidLengthTypes
  9304  			}
  9305  			if postIndex > l {
  9306  				return io.ErrUnexpectedEOF
  9307  			}
  9308  			m.ByzantineValidators = append(m.ByzantineValidators, Evidence{})
  9309  			if err := m.ByzantineValidators[len(m.ByzantineValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9310  				return err
  9311  			}
  9312  			iNdEx = postIndex
  9313  		default:
  9314  			iNdEx = preIndex
  9315  			skippy, err := skipTypes(dAtA[iNdEx:])
  9316  			if err != nil {
  9317  				return err
  9318  			}
  9319  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9320  				return ErrInvalidLengthTypes
  9321  			}
  9322  			if (iNdEx + skippy) > l {
  9323  				return io.ErrUnexpectedEOF
  9324  			}
  9325  			iNdEx += skippy
  9326  		}
  9327  	}
  9328  
  9329  	if iNdEx > l {
  9330  		return io.ErrUnexpectedEOF
  9331  	}
  9332  	return nil
  9333  }
  9334  func (m *RequestCheckTx) Unmarshal(dAtA []byte) error {
  9335  	l := len(dAtA)
  9336  	iNdEx := 0
  9337  	for iNdEx < l {
  9338  		preIndex := iNdEx
  9339  		var wire uint64
  9340  		for shift := uint(0); ; shift += 7 {
  9341  			if shift >= 64 {
  9342  				return ErrIntOverflowTypes
  9343  			}
  9344  			if iNdEx >= l {
  9345  				return io.ErrUnexpectedEOF
  9346  			}
  9347  			b := dAtA[iNdEx]
  9348  			iNdEx++
  9349  			wire |= uint64(b&0x7F) << shift
  9350  			if b < 0x80 {
  9351  				break
  9352  			}
  9353  		}
  9354  		fieldNum := int32(wire >> 3)
  9355  		wireType := int(wire & 0x7)
  9356  		if wireType == 4 {
  9357  			return fmt.Errorf("proto: RequestCheckTx: wiretype end group for non-group")
  9358  		}
  9359  		if fieldNum <= 0 {
  9360  			return fmt.Errorf("proto: RequestCheckTx: illegal tag %d (wire type %d)", fieldNum, wire)
  9361  		}
  9362  		switch fieldNum {
  9363  		case 1:
  9364  			if wireType != 2 {
  9365  				return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
  9366  			}
  9367  			var byteLen int
  9368  			for shift := uint(0); ; shift += 7 {
  9369  				if shift >= 64 {
  9370  					return ErrIntOverflowTypes
  9371  				}
  9372  				if iNdEx >= l {
  9373  					return io.ErrUnexpectedEOF
  9374  				}
  9375  				b := dAtA[iNdEx]
  9376  				iNdEx++
  9377  				byteLen |= int(b&0x7F) << shift
  9378  				if b < 0x80 {
  9379  					break
  9380  				}
  9381  			}
  9382  			if byteLen < 0 {
  9383  				return ErrInvalidLengthTypes
  9384  			}
  9385  			postIndex := iNdEx + byteLen
  9386  			if postIndex < 0 {
  9387  				return ErrInvalidLengthTypes
  9388  			}
  9389  			if postIndex > l {
  9390  				return io.ErrUnexpectedEOF
  9391  			}
  9392  			m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...)
  9393  			if m.Tx == nil {
  9394  				m.Tx = []byte{}
  9395  			}
  9396  			iNdEx = postIndex
  9397  		case 2:
  9398  			if wireType != 0 {
  9399  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  9400  			}
  9401  			m.Type = 0
  9402  			for shift := uint(0); ; shift += 7 {
  9403  				if shift >= 64 {
  9404  					return ErrIntOverflowTypes
  9405  				}
  9406  				if iNdEx >= l {
  9407  					return io.ErrUnexpectedEOF
  9408  				}
  9409  				b := dAtA[iNdEx]
  9410  				iNdEx++
  9411  				m.Type |= CheckTxType(b&0x7F) << shift
  9412  				if b < 0x80 {
  9413  					break
  9414  				}
  9415  			}
  9416  		default:
  9417  			iNdEx = preIndex
  9418  			skippy, err := skipTypes(dAtA[iNdEx:])
  9419  			if err != nil {
  9420  				return err
  9421  			}
  9422  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9423  				return ErrInvalidLengthTypes
  9424  			}
  9425  			if (iNdEx + skippy) > l {
  9426  				return io.ErrUnexpectedEOF
  9427  			}
  9428  			iNdEx += skippy
  9429  		}
  9430  	}
  9431  
  9432  	if iNdEx > l {
  9433  		return io.ErrUnexpectedEOF
  9434  	}
  9435  	return nil
  9436  }
  9437  func (m *RequestDeliverTx) Unmarshal(dAtA []byte) error {
  9438  	l := len(dAtA)
  9439  	iNdEx := 0
  9440  	for iNdEx < l {
  9441  		preIndex := iNdEx
  9442  		var wire uint64
  9443  		for shift := uint(0); ; shift += 7 {
  9444  			if shift >= 64 {
  9445  				return ErrIntOverflowTypes
  9446  			}
  9447  			if iNdEx >= l {
  9448  				return io.ErrUnexpectedEOF
  9449  			}
  9450  			b := dAtA[iNdEx]
  9451  			iNdEx++
  9452  			wire |= uint64(b&0x7F) << shift
  9453  			if b < 0x80 {
  9454  				break
  9455  			}
  9456  		}
  9457  		fieldNum := int32(wire >> 3)
  9458  		wireType := int(wire & 0x7)
  9459  		if wireType == 4 {
  9460  			return fmt.Errorf("proto: RequestDeliverTx: wiretype end group for non-group")
  9461  		}
  9462  		if fieldNum <= 0 {
  9463  			return fmt.Errorf("proto: RequestDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire)
  9464  		}
  9465  		switch fieldNum {
  9466  		case 1:
  9467  			if wireType != 2 {
  9468  				return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
  9469  			}
  9470  			var byteLen int
  9471  			for shift := uint(0); ; shift += 7 {
  9472  				if shift >= 64 {
  9473  					return ErrIntOverflowTypes
  9474  				}
  9475  				if iNdEx >= l {
  9476  					return io.ErrUnexpectedEOF
  9477  				}
  9478  				b := dAtA[iNdEx]
  9479  				iNdEx++
  9480  				byteLen |= int(b&0x7F) << shift
  9481  				if b < 0x80 {
  9482  					break
  9483  				}
  9484  			}
  9485  			if byteLen < 0 {
  9486  				return ErrInvalidLengthTypes
  9487  			}
  9488  			postIndex := iNdEx + byteLen
  9489  			if postIndex < 0 {
  9490  				return ErrInvalidLengthTypes
  9491  			}
  9492  			if postIndex > l {
  9493  				return io.ErrUnexpectedEOF
  9494  			}
  9495  			m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...)
  9496  			if m.Tx == nil {
  9497  				m.Tx = []byte{}
  9498  			}
  9499  			iNdEx = postIndex
  9500  		default:
  9501  			iNdEx = preIndex
  9502  			skippy, err := skipTypes(dAtA[iNdEx:])
  9503  			if err != nil {
  9504  				return err
  9505  			}
  9506  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9507  				return ErrInvalidLengthTypes
  9508  			}
  9509  			if (iNdEx + skippy) > l {
  9510  				return io.ErrUnexpectedEOF
  9511  			}
  9512  			iNdEx += skippy
  9513  		}
  9514  	}
  9515  
  9516  	if iNdEx > l {
  9517  		return io.ErrUnexpectedEOF
  9518  	}
  9519  	return nil
  9520  }
  9521  func (m *RequestEndBlock) Unmarshal(dAtA []byte) error {
  9522  	l := len(dAtA)
  9523  	iNdEx := 0
  9524  	for iNdEx < l {
  9525  		preIndex := iNdEx
  9526  		var wire uint64
  9527  		for shift := uint(0); ; shift += 7 {
  9528  			if shift >= 64 {
  9529  				return ErrIntOverflowTypes
  9530  			}
  9531  			if iNdEx >= l {
  9532  				return io.ErrUnexpectedEOF
  9533  			}
  9534  			b := dAtA[iNdEx]
  9535  			iNdEx++
  9536  			wire |= uint64(b&0x7F) << shift
  9537  			if b < 0x80 {
  9538  				break
  9539  			}
  9540  		}
  9541  		fieldNum := int32(wire >> 3)
  9542  		wireType := int(wire & 0x7)
  9543  		if wireType == 4 {
  9544  			return fmt.Errorf("proto: RequestEndBlock: wiretype end group for non-group")
  9545  		}
  9546  		if fieldNum <= 0 {
  9547  			return fmt.Errorf("proto: RequestEndBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  9548  		}
  9549  		switch fieldNum {
  9550  		case 1:
  9551  			if wireType != 0 {
  9552  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  9553  			}
  9554  			m.Height = 0
  9555  			for shift := uint(0); ; shift += 7 {
  9556  				if shift >= 64 {
  9557  					return ErrIntOverflowTypes
  9558  				}
  9559  				if iNdEx >= l {
  9560  					return io.ErrUnexpectedEOF
  9561  				}
  9562  				b := dAtA[iNdEx]
  9563  				iNdEx++
  9564  				m.Height |= int64(b&0x7F) << shift
  9565  				if b < 0x80 {
  9566  					break
  9567  				}
  9568  			}
  9569  		default:
  9570  			iNdEx = preIndex
  9571  			skippy, err := skipTypes(dAtA[iNdEx:])
  9572  			if err != nil {
  9573  				return err
  9574  			}
  9575  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9576  				return ErrInvalidLengthTypes
  9577  			}
  9578  			if (iNdEx + skippy) > l {
  9579  				return io.ErrUnexpectedEOF
  9580  			}
  9581  			iNdEx += skippy
  9582  		}
  9583  	}
  9584  
  9585  	if iNdEx > l {
  9586  		return io.ErrUnexpectedEOF
  9587  	}
  9588  	return nil
  9589  }
  9590  func (m *RequestCommit) Unmarshal(dAtA []byte) error {
  9591  	l := len(dAtA)
  9592  	iNdEx := 0
  9593  	for iNdEx < l {
  9594  		preIndex := iNdEx
  9595  		var wire uint64
  9596  		for shift := uint(0); ; shift += 7 {
  9597  			if shift >= 64 {
  9598  				return ErrIntOverflowTypes
  9599  			}
  9600  			if iNdEx >= l {
  9601  				return io.ErrUnexpectedEOF
  9602  			}
  9603  			b := dAtA[iNdEx]
  9604  			iNdEx++
  9605  			wire |= uint64(b&0x7F) << shift
  9606  			if b < 0x80 {
  9607  				break
  9608  			}
  9609  		}
  9610  		fieldNum := int32(wire >> 3)
  9611  		wireType := int(wire & 0x7)
  9612  		if wireType == 4 {
  9613  			return fmt.Errorf("proto: RequestCommit: wiretype end group for non-group")
  9614  		}
  9615  		if fieldNum <= 0 {
  9616  			return fmt.Errorf("proto: RequestCommit: illegal tag %d (wire type %d)", fieldNum, wire)
  9617  		}
  9618  		switch fieldNum {
  9619  		default:
  9620  			iNdEx = preIndex
  9621  			skippy, err := skipTypes(dAtA[iNdEx:])
  9622  			if err != nil {
  9623  				return err
  9624  			}
  9625  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9626  				return ErrInvalidLengthTypes
  9627  			}
  9628  			if (iNdEx + skippy) > l {
  9629  				return io.ErrUnexpectedEOF
  9630  			}
  9631  			iNdEx += skippy
  9632  		}
  9633  	}
  9634  
  9635  	if iNdEx > l {
  9636  		return io.ErrUnexpectedEOF
  9637  	}
  9638  	return nil
  9639  }
  9640  func (m *RequestListSnapshots) Unmarshal(dAtA []byte) error {
  9641  	l := len(dAtA)
  9642  	iNdEx := 0
  9643  	for iNdEx < l {
  9644  		preIndex := iNdEx
  9645  		var wire uint64
  9646  		for shift := uint(0); ; shift += 7 {
  9647  			if shift >= 64 {
  9648  				return ErrIntOverflowTypes
  9649  			}
  9650  			if iNdEx >= l {
  9651  				return io.ErrUnexpectedEOF
  9652  			}
  9653  			b := dAtA[iNdEx]
  9654  			iNdEx++
  9655  			wire |= uint64(b&0x7F) << shift
  9656  			if b < 0x80 {
  9657  				break
  9658  			}
  9659  		}
  9660  		fieldNum := int32(wire >> 3)
  9661  		wireType := int(wire & 0x7)
  9662  		if wireType == 4 {
  9663  			return fmt.Errorf("proto: RequestListSnapshots: wiretype end group for non-group")
  9664  		}
  9665  		if fieldNum <= 0 {
  9666  			return fmt.Errorf("proto: RequestListSnapshots: illegal tag %d (wire type %d)", fieldNum, wire)
  9667  		}
  9668  		switch fieldNum {
  9669  		default:
  9670  			iNdEx = preIndex
  9671  			skippy, err := skipTypes(dAtA[iNdEx:])
  9672  			if err != nil {
  9673  				return err
  9674  			}
  9675  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9676  				return ErrInvalidLengthTypes
  9677  			}
  9678  			if (iNdEx + skippy) > l {
  9679  				return io.ErrUnexpectedEOF
  9680  			}
  9681  			iNdEx += skippy
  9682  		}
  9683  	}
  9684  
  9685  	if iNdEx > l {
  9686  		return io.ErrUnexpectedEOF
  9687  	}
  9688  	return nil
  9689  }
  9690  func (m *RequestOfferSnapshot) Unmarshal(dAtA []byte) error {
  9691  	l := len(dAtA)
  9692  	iNdEx := 0
  9693  	for iNdEx < l {
  9694  		preIndex := iNdEx
  9695  		var wire uint64
  9696  		for shift := uint(0); ; shift += 7 {
  9697  			if shift >= 64 {
  9698  				return ErrIntOverflowTypes
  9699  			}
  9700  			if iNdEx >= l {
  9701  				return io.ErrUnexpectedEOF
  9702  			}
  9703  			b := dAtA[iNdEx]
  9704  			iNdEx++
  9705  			wire |= uint64(b&0x7F) << shift
  9706  			if b < 0x80 {
  9707  				break
  9708  			}
  9709  		}
  9710  		fieldNum := int32(wire >> 3)
  9711  		wireType := int(wire & 0x7)
  9712  		if wireType == 4 {
  9713  			return fmt.Errorf("proto: RequestOfferSnapshot: wiretype end group for non-group")
  9714  		}
  9715  		if fieldNum <= 0 {
  9716  			return fmt.Errorf("proto: RequestOfferSnapshot: illegal tag %d (wire type %d)", fieldNum, wire)
  9717  		}
  9718  		switch fieldNum {
  9719  		case 1:
  9720  			if wireType != 2 {
  9721  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType)
  9722  			}
  9723  			var msglen int
  9724  			for shift := uint(0); ; shift += 7 {
  9725  				if shift >= 64 {
  9726  					return ErrIntOverflowTypes
  9727  				}
  9728  				if iNdEx >= l {
  9729  					return io.ErrUnexpectedEOF
  9730  				}
  9731  				b := dAtA[iNdEx]
  9732  				iNdEx++
  9733  				msglen |= int(b&0x7F) << shift
  9734  				if b < 0x80 {
  9735  					break
  9736  				}
  9737  			}
  9738  			if msglen < 0 {
  9739  				return ErrInvalidLengthTypes
  9740  			}
  9741  			postIndex := iNdEx + msglen
  9742  			if postIndex < 0 {
  9743  				return ErrInvalidLengthTypes
  9744  			}
  9745  			if postIndex > l {
  9746  				return io.ErrUnexpectedEOF
  9747  			}
  9748  			if m.Snapshot == nil {
  9749  				m.Snapshot = &Snapshot{}
  9750  			}
  9751  			if err := m.Snapshot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9752  				return err
  9753  			}
  9754  			iNdEx = postIndex
  9755  		case 2:
  9756  			if wireType != 2 {
  9757  				return fmt.Errorf("proto: wrong wireType = %d for field AppHash", wireType)
  9758  			}
  9759  			var byteLen int
  9760  			for shift := uint(0); ; shift += 7 {
  9761  				if shift >= 64 {
  9762  					return ErrIntOverflowTypes
  9763  				}
  9764  				if iNdEx >= l {
  9765  					return io.ErrUnexpectedEOF
  9766  				}
  9767  				b := dAtA[iNdEx]
  9768  				iNdEx++
  9769  				byteLen |= int(b&0x7F) << shift
  9770  				if b < 0x80 {
  9771  					break
  9772  				}
  9773  			}
  9774  			if byteLen < 0 {
  9775  				return ErrInvalidLengthTypes
  9776  			}
  9777  			postIndex := iNdEx + byteLen
  9778  			if postIndex < 0 {
  9779  				return ErrInvalidLengthTypes
  9780  			}
  9781  			if postIndex > l {
  9782  				return io.ErrUnexpectedEOF
  9783  			}
  9784  			m.AppHash = append(m.AppHash[:0], dAtA[iNdEx:postIndex]...)
  9785  			if m.AppHash == nil {
  9786  				m.AppHash = []byte{}
  9787  			}
  9788  			iNdEx = postIndex
  9789  		default:
  9790  			iNdEx = preIndex
  9791  			skippy, err := skipTypes(dAtA[iNdEx:])
  9792  			if err != nil {
  9793  				return err
  9794  			}
  9795  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9796  				return ErrInvalidLengthTypes
  9797  			}
  9798  			if (iNdEx + skippy) > l {
  9799  				return io.ErrUnexpectedEOF
  9800  			}
  9801  			iNdEx += skippy
  9802  		}
  9803  	}
  9804  
  9805  	if iNdEx > l {
  9806  		return io.ErrUnexpectedEOF
  9807  	}
  9808  	return nil
  9809  }
  9810  func (m *RequestLoadSnapshotChunk) Unmarshal(dAtA []byte) error {
  9811  	l := len(dAtA)
  9812  	iNdEx := 0
  9813  	for iNdEx < l {
  9814  		preIndex := iNdEx
  9815  		var wire uint64
  9816  		for shift := uint(0); ; shift += 7 {
  9817  			if shift >= 64 {
  9818  				return ErrIntOverflowTypes
  9819  			}
  9820  			if iNdEx >= l {
  9821  				return io.ErrUnexpectedEOF
  9822  			}
  9823  			b := dAtA[iNdEx]
  9824  			iNdEx++
  9825  			wire |= uint64(b&0x7F) << shift
  9826  			if b < 0x80 {
  9827  				break
  9828  			}
  9829  		}
  9830  		fieldNum := int32(wire >> 3)
  9831  		wireType := int(wire & 0x7)
  9832  		if wireType == 4 {
  9833  			return fmt.Errorf("proto: RequestLoadSnapshotChunk: wiretype end group for non-group")
  9834  		}
  9835  		if fieldNum <= 0 {
  9836  			return fmt.Errorf("proto: RequestLoadSnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire)
  9837  		}
  9838  		switch fieldNum {
  9839  		case 1:
  9840  			if wireType != 0 {
  9841  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  9842  			}
  9843  			m.Height = 0
  9844  			for shift := uint(0); ; shift += 7 {
  9845  				if shift >= 64 {
  9846  					return ErrIntOverflowTypes
  9847  				}
  9848  				if iNdEx >= l {
  9849  					return io.ErrUnexpectedEOF
  9850  				}
  9851  				b := dAtA[iNdEx]
  9852  				iNdEx++
  9853  				m.Height |= uint64(b&0x7F) << shift
  9854  				if b < 0x80 {
  9855  					break
  9856  				}
  9857  			}
  9858  		case 2:
  9859  			if wireType != 0 {
  9860  				return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType)
  9861  			}
  9862  			m.Format = 0
  9863  			for shift := uint(0); ; shift += 7 {
  9864  				if shift >= 64 {
  9865  					return ErrIntOverflowTypes
  9866  				}
  9867  				if iNdEx >= l {
  9868  					return io.ErrUnexpectedEOF
  9869  				}
  9870  				b := dAtA[iNdEx]
  9871  				iNdEx++
  9872  				m.Format |= uint32(b&0x7F) << shift
  9873  				if b < 0x80 {
  9874  					break
  9875  				}
  9876  			}
  9877  		case 3:
  9878  			if wireType != 0 {
  9879  				return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType)
  9880  			}
  9881  			m.Chunk = 0
  9882  			for shift := uint(0); ; shift += 7 {
  9883  				if shift >= 64 {
  9884  					return ErrIntOverflowTypes
  9885  				}
  9886  				if iNdEx >= l {
  9887  					return io.ErrUnexpectedEOF
  9888  				}
  9889  				b := dAtA[iNdEx]
  9890  				iNdEx++
  9891  				m.Chunk |= uint32(b&0x7F) << shift
  9892  				if b < 0x80 {
  9893  					break
  9894  				}
  9895  			}
  9896  		default:
  9897  			iNdEx = preIndex
  9898  			skippy, err := skipTypes(dAtA[iNdEx:])
  9899  			if err != nil {
  9900  				return err
  9901  			}
  9902  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9903  				return ErrInvalidLengthTypes
  9904  			}
  9905  			if (iNdEx + skippy) > l {
  9906  				return io.ErrUnexpectedEOF
  9907  			}
  9908  			iNdEx += skippy
  9909  		}
  9910  	}
  9911  
  9912  	if iNdEx > l {
  9913  		return io.ErrUnexpectedEOF
  9914  	}
  9915  	return nil
  9916  }
  9917  func (m *RequestApplySnapshotChunk) Unmarshal(dAtA []byte) error {
  9918  	l := len(dAtA)
  9919  	iNdEx := 0
  9920  	for iNdEx < l {
  9921  		preIndex := iNdEx
  9922  		var wire uint64
  9923  		for shift := uint(0); ; shift += 7 {
  9924  			if shift >= 64 {
  9925  				return ErrIntOverflowTypes
  9926  			}
  9927  			if iNdEx >= l {
  9928  				return io.ErrUnexpectedEOF
  9929  			}
  9930  			b := dAtA[iNdEx]
  9931  			iNdEx++
  9932  			wire |= uint64(b&0x7F) << shift
  9933  			if b < 0x80 {
  9934  				break
  9935  			}
  9936  		}
  9937  		fieldNum := int32(wire >> 3)
  9938  		wireType := int(wire & 0x7)
  9939  		if wireType == 4 {
  9940  			return fmt.Errorf("proto: RequestApplySnapshotChunk: wiretype end group for non-group")
  9941  		}
  9942  		if fieldNum <= 0 {
  9943  			return fmt.Errorf("proto: RequestApplySnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire)
  9944  		}
  9945  		switch fieldNum {
  9946  		case 1:
  9947  			if wireType != 0 {
  9948  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  9949  			}
  9950  			m.Index = 0
  9951  			for shift := uint(0); ; shift += 7 {
  9952  				if shift >= 64 {
  9953  					return ErrIntOverflowTypes
  9954  				}
  9955  				if iNdEx >= l {
  9956  					return io.ErrUnexpectedEOF
  9957  				}
  9958  				b := dAtA[iNdEx]
  9959  				iNdEx++
  9960  				m.Index |= uint32(b&0x7F) << shift
  9961  				if b < 0x80 {
  9962  					break
  9963  				}
  9964  			}
  9965  		case 2:
  9966  			if wireType != 2 {
  9967  				return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType)
  9968  			}
  9969  			var byteLen int
  9970  			for shift := uint(0); ; shift += 7 {
  9971  				if shift >= 64 {
  9972  					return ErrIntOverflowTypes
  9973  				}
  9974  				if iNdEx >= l {
  9975  					return io.ErrUnexpectedEOF
  9976  				}
  9977  				b := dAtA[iNdEx]
  9978  				iNdEx++
  9979  				byteLen |= int(b&0x7F) << shift
  9980  				if b < 0x80 {
  9981  					break
  9982  				}
  9983  			}
  9984  			if byteLen < 0 {
  9985  				return ErrInvalidLengthTypes
  9986  			}
  9987  			postIndex := iNdEx + byteLen
  9988  			if postIndex < 0 {
  9989  				return ErrInvalidLengthTypes
  9990  			}
  9991  			if postIndex > l {
  9992  				return io.ErrUnexpectedEOF
  9993  			}
  9994  			m.Chunk = append(m.Chunk[:0], dAtA[iNdEx:postIndex]...)
  9995  			if m.Chunk == nil {
  9996  				m.Chunk = []byte{}
  9997  			}
  9998  			iNdEx = postIndex
  9999  		case 3:
 10000  			if wireType != 2 {
 10001  				return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
 10002  			}
 10003  			var stringLen uint64
 10004  			for shift := uint(0); ; shift += 7 {
 10005  				if shift >= 64 {
 10006  					return ErrIntOverflowTypes
 10007  				}
 10008  				if iNdEx >= l {
 10009  					return io.ErrUnexpectedEOF
 10010  				}
 10011  				b := dAtA[iNdEx]
 10012  				iNdEx++
 10013  				stringLen |= uint64(b&0x7F) << shift
 10014  				if b < 0x80 {
 10015  					break
 10016  				}
 10017  			}
 10018  			intStringLen := int(stringLen)
 10019  			if intStringLen < 0 {
 10020  				return ErrInvalidLengthTypes
 10021  			}
 10022  			postIndex := iNdEx + intStringLen
 10023  			if postIndex < 0 {
 10024  				return ErrInvalidLengthTypes
 10025  			}
 10026  			if postIndex > l {
 10027  				return io.ErrUnexpectedEOF
 10028  			}
 10029  			m.Sender = string(dAtA[iNdEx:postIndex])
 10030  			iNdEx = postIndex
 10031  		default:
 10032  			iNdEx = preIndex
 10033  			skippy, err := skipTypes(dAtA[iNdEx:])
 10034  			if err != nil {
 10035  				return err
 10036  			}
 10037  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10038  				return ErrInvalidLengthTypes
 10039  			}
 10040  			if (iNdEx + skippy) > l {
 10041  				return io.ErrUnexpectedEOF
 10042  			}
 10043  			iNdEx += skippy
 10044  		}
 10045  	}
 10046  
 10047  	if iNdEx > l {
 10048  		return io.ErrUnexpectedEOF
 10049  	}
 10050  	return nil
 10051  }
 10052  func (m *Response) Unmarshal(dAtA []byte) error {
 10053  	l := len(dAtA)
 10054  	iNdEx := 0
 10055  	for iNdEx < l {
 10056  		preIndex := iNdEx
 10057  		var wire uint64
 10058  		for shift := uint(0); ; shift += 7 {
 10059  			if shift >= 64 {
 10060  				return ErrIntOverflowTypes
 10061  			}
 10062  			if iNdEx >= l {
 10063  				return io.ErrUnexpectedEOF
 10064  			}
 10065  			b := dAtA[iNdEx]
 10066  			iNdEx++
 10067  			wire |= uint64(b&0x7F) << shift
 10068  			if b < 0x80 {
 10069  				break
 10070  			}
 10071  		}
 10072  		fieldNum := int32(wire >> 3)
 10073  		wireType := int(wire & 0x7)
 10074  		if wireType == 4 {
 10075  			return fmt.Errorf("proto: Response: wiretype end group for non-group")
 10076  		}
 10077  		if fieldNum <= 0 {
 10078  			return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire)
 10079  		}
 10080  		switch fieldNum {
 10081  		case 1:
 10082  			if wireType != 2 {
 10083  				return fmt.Errorf("proto: wrong wireType = %d for field Exception", wireType)
 10084  			}
 10085  			var msglen int
 10086  			for shift := uint(0); ; shift += 7 {
 10087  				if shift >= 64 {
 10088  					return ErrIntOverflowTypes
 10089  				}
 10090  				if iNdEx >= l {
 10091  					return io.ErrUnexpectedEOF
 10092  				}
 10093  				b := dAtA[iNdEx]
 10094  				iNdEx++
 10095  				msglen |= int(b&0x7F) << shift
 10096  				if b < 0x80 {
 10097  					break
 10098  				}
 10099  			}
 10100  			if msglen < 0 {
 10101  				return ErrInvalidLengthTypes
 10102  			}
 10103  			postIndex := iNdEx + msglen
 10104  			if postIndex < 0 {
 10105  				return ErrInvalidLengthTypes
 10106  			}
 10107  			if postIndex > l {
 10108  				return io.ErrUnexpectedEOF
 10109  			}
 10110  			v := &ResponseException{}
 10111  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10112  				return err
 10113  			}
 10114  			m.Value = &Response_Exception{v}
 10115  			iNdEx = postIndex
 10116  		case 2:
 10117  			if wireType != 2 {
 10118  				return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType)
 10119  			}
 10120  			var msglen int
 10121  			for shift := uint(0); ; shift += 7 {
 10122  				if shift >= 64 {
 10123  					return ErrIntOverflowTypes
 10124  				}
 10125  				if iNdEx >= l {
 10126  					return io.ErrUnexpectedEOF
 10127  				}
 10128  				b := dAtA[iNdEx]
 10129  				iNdEx++
 10130  				msglen |= int(b&0x7F) << shift
 10131  				if b < 0x80 {
 10132  					break
 10133  				}
 10134  			}
 10135  			if msglen < 0 {
 10136  				return ErrInvalidLengthTypes
 10137  			}
 10138  			postIndex := iNdEx + msglen
 10139  			if postIndex < 0 {
 10140  				return ErrInvalidLengthTypes
 10141  			}
 10142  			if postIndex > l {
 10143  				return io.ErrUnexpectedEOF
 10144  			}
 10145  			v := &ResponseEcho{}
 10146  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10147  				return err
 10148  			}
 10149  			m.Value = &Response_Echo{v}
 10150  			iNdEx = postIndex
 10151  		case 3:
 10152  			if wireType != 2 {
 10153  				return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType)
 10154  			}
 10155  			var msglen int
 10156  			for shift := uint(0); ; shift += 7 {
 10157  				if shift >= 64 {
 10158  					return ErrIntOverflowTypes
 10159  				}
 10160  				if iNdEx >= l {
 10161  					return io.ErrUnexpectedEOF
 10162  				}
 10163  				b := dAtA[iNdEx]
 10164  				iNdEx++
 10165  				msglen |= int(b&0x7F) << shift
 10166  				if b < 0x80 {
 10167  					break
 10168  				}
 10169  			}
 10170  			if msglen < 0 {
 10171  				return ErrInvalidLengthTypes
 10172  			}
 10173  			postIndex := iNdEx + msglen
 10174  			if postIndex < 0 {
 10175  				return ErrInvalidLengthTypes
 10176  			}
 10177  			if postIndex > l {
 10178  				return io.ErrUnexpectedEOF
 10179  			}
 10180  			v := &ResponseFlush{}
 10181  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10182  				return err
 10183  			}
 10184  			m.Value = &Response_Flush{v}
 10185  			iNdEx = postIndex
 10186  		case 4:
 10187  			if wireType != 2 {
 10188  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
 10189  			}
 10190  			var msglen int
 10191  			for shift := uint(0); ; shift += 7 {
 10192  				if shift >= 64 {
 10193  					return ErrIntOverflowTypes
 10194  				}
 10195  				if iNdEx >= l {
 10196  					return io.ErrUnexpectedEOF
 10197  				}
 10198  				b := dAtA[iNdEx]
 10199  				iNdEx++
 10200  				msglen |= int(b&0x7F) << shift
 10201  				if b < 0x80 {
 10202  					break
 10203  				}
 10204  			}
 10205  			if msglen < 0 {
 10206  				return ErrInvalidLengthTypes
 10207  			}
 10208  			postIndex := iNdEx + msglen
 10209  			if postIndex < 0 {
 10210  				return ErrInvalidLengthTypes
 10211  			}
 10212  			if postIndex > l {
 10213  				return io.ErrUnexpectedEOF
 10214  			}
 10215  			v := &ResponseInfo{}
 10216  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10217  				return err
 10218  			}
 10219  			m.Value = &Response_Info{v}
 10220  			iNdEx = postIndex
 10221  		case 5:
 10222  			if wireType != 2 {
 10223  				return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType)
 10224  			}
 10225  			var msglen int
 10226  			for shift := uint(0); ; shift += 7 {
 10227  				if shift >= 64 {
 10228  					return ErrIntOverflowTypes
 10229  				}
 10230  				if iNdEx >= l {
 10231  					return io.ErrUnexpectedEOF
 10232  				}
 10233  				b := dAtA[iNdEx]
 10234  				iNdEx++
 10235  				msglen |= int(b&0x7F) << shift
 10236  				if b < 0x80 {
 10237  					break
 10238  				}
 10239  			}
 10240  			if msglen < 0 {
 10241  				return ErrInvalidLengthTypes
 10242  			}
 10243  			postIndex := iNdEx + msglen
 10244  			if postIndex < 0 {
 10245  				return ErrInvalidLengthTypes
 10246  			}
 10247  			if postIndex > l {
 10248  				return io.ErrUnexpectedEOF
 10249  			}
 10250  			v := &ResponseSetOption{}
 10251  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10252  				return err
 10253  			}
 10254  			m.Value = &Response_SetOption{v}
 10255  			iNdEx = postIndex
 10256  		case 6:
 10257  			if wireType != 2 {
 10258  				return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType)
 10259  			}
 10260  			var msglen int
 10261  			for shift := uint(0); ; shift += 7 {
 10262  				if shift >= 64 {
 10263  					return ErrIntOverflowTypes
 10264  				}
 10265  				if iNdEx >= l {
 10266  					return io.ErrUnexpectedEOF
 10267  				}
 10268  				b := dAtA[iNdEx]
 10269  				iNdEx++
 10270  				msglen |= int(b&0x7F) << shift
 10271  				if b < 0x80 {
 10272  					break
 10273  				}
 10274  			}
 10275  			if msglen < 0 {
 10276  				return ErrInvalidLengthTypes
 10277  			}
 10278  			postIndex := iNdEx + msglen
 10279  			if postIndex < 0 {
 10280  				return ErrInvalidLengthTypes
 10281  			}
 10282  			if postIndex > l {
 10283  				return io.ErrUnexpectedEOF
 10284  			}
 10285  			v := &ResponseInitChain{}
 10286  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10287  				return err
 10288  			}
 10289  			m.Value = &Response_InitChain{v}
 10290  			iNdEx = postIndex
 10291  		case 7:
 10292  			if wireType != 2 {
 10293  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
 10294  			}
 10295  			var msglen int
 10296  			for shift := uint(0); ; shift += 7 {
 10297  				if shift >= 64 {
 10298  					return ErrIntOverflowTypes
 10299  				}
 10300  				if iNdEx >= l {
 10301  					return io.ErrUnexpectedEOF
 10302  				}
 10303  				b := dAtA[iNdEx]
 10304  				iNdEx++
 10305  				msglen |= int(b&0x7F) << shift
 10306  				if b < 0x80 {
 10307  					break
 10308  				}
 10309  			}
 10310  			if msglen < 0 {
 10311  				return ErrInvalidLengthTypes
 10312  			}
 10313  			postIndex := iNdEx + msglen
 10314  			if postIndex < 0 {
 10315  				return ErrInvalidLengthTypes
 10316  			}
 10317  			if postIndex > l {
 10318  				return io.ErrUnexpectedEOF
 10319  			}
 10320  			v := &ResponseQuery{}
 10321  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10322  				return err
 10323  			}
 10324  			m.Value = &Response_Query{v}
 10325  			iNdEx = postIndex
 10326  		case 8:
 10327  			if wireType != 2 {
 10328  				return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType)
 10329  			}
 10330  			var msglen int
 10331  			for shift := uint(0); ; shift += 7 {
 10332  				if shift >= 64 {
 10333  					return ErrIntOverflowTypes
 10334  				}
 10335  				if iNdEx >= l {
 10336  					return io.ErrUnexpectedEOF
 10337  				}
 10338  				b := dAtA[iNdEx]
 10339  				iNdEx++
 10340  				msglen |= int(b&0x7F) << shift
 10341  				if b < 0x80 {
 10342  					break
 10343  				}
 10344  			}
 10345  			if msglen < 0 {
 10346  				return ErrInvalidLengthTypes
 10347  			}
 10348  			postIndex := iNdEx + msglen
 10349  			if postIndex < 0 {
 10350  				return ErrInvalidLengthTypes
 10351  			}
 10352  			if postIndex > l {
 10353  				return io.ErrUnexpectedEOF
 10354  			}
 10355  			v := &ResponseBeginBlock{}
 10356  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10357  				return err
 10358  			}
 10359  			m.Value = &Response_BeginBlock{v}
 10360  			iNdEx = postIndex
 10361  		case 9:
 10362  			if wireType != 2 {
 10363  				return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType)
 10364  			}
 10365  			var msglen int
 10366  			for shift := uint(0); ; shift += 7 {
 10367  				if shift >= 64 {
 10368  					return ErrIntOverflowTypes
 10369  				}
 10370  				if iNdEx >= l {
 10371  					return io.ErrUnexpectedEOF
 10372  				}
 10373  				b := dAtA[iNdEx]
 10374  				iNdEx++
 10375  				msglen |= int(b&0x7F) << shift
 10376  				if b < 0x80 {
 10377  					break
 10378  				}
 10379  			}
 10380  			if msglen < 0 {
 10381  				return ErrInvalidLengthTypes
 10382  			}
 10383  			postIndex := iNdEx + msglen
 10384  			if postIndex < 0 {
 10385  				return ErrInvalidLengthTypes
 10386  			}
 10387  			if postIndex > l {
 10388  				return io.ErrUnexpectedEOF
 10389  			}
 10390  			v := &ResponseCheckTx{}
 10391  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10392  				return err
 10393  			}
 10394  			m.Value = &Response_CheckTx{v}
 10395  			iNdEx = postIndex
 10396  		case 10:
 10397  			if wireType != 2 {
 10398  				return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType)
 10399  			}
 10400  			var msglen int
 10401  			for shift := uint(0); ; shift += 7 {
 10402  				if shift >= 64 {
 10403  					return ErrIntOverflowTypes
 10404  				}
 10405  				if iNdEx >= l {
 10406  					return io.ErrUnexpectedEOF
 10407  				}
 10408  				b := dAtA[iNdEx]
 10409  				iNdEx++
 10410  				msglen |= int(b&0x7F) << shift
 10411  				if b < 0x80 {
 10412  					break
 10413  				}
 10414  			}
 10415  			if msglen < 0 {
 10416  				return ErrInvalidLengthTypes
 10417  			}
 10418  			postIndex := iNdEx + msglen
 10419  			if postIndex < 0 {
 10420  				return ErrInvalidLengthTypes
 10421  			}
 10422  			if postIndex > l {
 10423  				return io.ErrUnexpectedEOF
 10424  			}
 10425  			v := &ResponseDeliverTx{}
 10426  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10427  				return err
 10428  			}
 10429  			m.Value = &Response_DeliverTx{v}
 10430  			iNdEx = postIndex
 10431  		case 11:
 10432  			if wireType != 2 {
 10433  				return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType)
 10434  			}
 10435  			var msglen int
 10436  			for shift := uint(0); ; shift += 7 {
 10437  				if shift >= 64 {
 10438  					return ErrIntOverflowTypes
 10439  				}
 10440  				if iNdEx >= l {
 10441  					return io.ErrUnexpectedEOF
 10442  				}
 10443  				b := dAtA[iNdEx]
 10444  				iNdEx++
 10445  				msglen |= int(b&0x7F) << shift
 10446  				if b < 0x80 {
 10447  					break
 10448  				}
 10449  			}
 10450  			if msglen < 0 {
 10451  				return ErrInvalidLengthTypes
 10452  			}
 10453  			postIndex := iNdEx + msglen
 10454  			if postIndex < 0 {
 10455  				return ErrInvalidLengthTypes
 10456  			}
 10457  			if postIndex > l {
 10458  				return io.ErrUnexpectedEOF
 10459  			}
 10460  			v := &ResponseEndBlock{}
 10461  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10462  				return err
 10463  			}
 10464  			m.Value = &Response_EndBlock{v}
 10465  			iNdEx = postIndex
 10466  		case 12:
 10467  			if wireType != 2 {
 10468  				return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
 10469  			}
 10470  			var msglen int
 10471  			for shift := uint(0); ; shift += 7 {
 10472  				if shift >= 64 {
 10473  					return ErrIntOverflowTypes
 10474  				}
 10475  				if iNdEx >= l {
 10476  					return io.ErrUnexpectedEOF
 10477  				}
 10478  				b := dAtA[iNdEx]
 10479  				iNdEx++
 10480  				msglen |= int(b&0x7F) << shift
 10481  				if b < 0x80 {
 10482  					break
 10483  				}
 10484  			}
 10485  			if msglen < 0 {
 10486  				return ErrInvalidLengthTypes
 10487  			}
 10488  			postIndex := iNdEx + msglen
 10489  			if postIndex < 0 {
 10490  				return ErrInvalidLengthTypes
 10491  			}
 10492  			if postIndex > l {
 10493  				return io.ErrUnexpectedEOF
 10494  			}
 10495  			v := &ResponseCommit{}
 10496  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10497  				return err
 10498  			}
 10499  			m.Value = &Response_Commit{v}
 10500  			iNdEx = postIndex
 10501  		case 13:
 10502  			if wireType != 2 {
 10503  				return fmt.Errorf("proto: wrong wireType = %d for field ListSnapshots", wireType)
 10504  			}
 10505  			var msglen int
 10506  			for shift := uint(0); ; shift += 7 {
 10507  				if shift >= 64 {
 10508  					return ErrIntOverflowTypes
 10509  				}
 10510  				if iNdEx >= l {
 10511  					return io.ErrUnexpectedEOF
 10512  				}
 10513  				b := dAtA[iNdEx]
 10514  				iNdEx++
 10515  				msglen |= int(b&0x7F) << shift
 10516  				if b < 0x80 {
 10517  					break
 10518  				}
 10519  			}
 10520  			if msglen < 0 {
 10521  				return ErrInvalidLengthTypes
 10522  			}
 10523  			postIndex := iNdEx + msglen
 10524  			if postIndex < 0 {
 10525  				return ErrInvalidLengthTypes
 10526  			}
 10527  			if postIndex > l {
 10528  				return io.ErrUnexpectedEOF
 10529  			}
 10530  			v := &ResponseListSnapshots{}
 10531  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10532  				return err
 10533  			}
 10534  			m.Value = &Response_ListSnapshots{v}
 10535  			iNdEx = postIndex
 10536  		case 14:
 10537  			if wireType != 2 {
 10538  				return fmt.Errorf("proto: wrong wireType = %d for field OfferSnapshot", wireType)
 10539  			}
 10540  			var msglen int
 10541  			for shift := uint(0); ; shift += 7 {
 10542  				if shift >= 64 {
 10543  					return ErrIntOverflowTypes
 10544  				}
 10545  				if iNdEx >= l {
 10546  					return io.ErrUnexpectedEOF
 10547  				}
 10548  				b := dAtA[iNdEx]
 10549  				iNdEx++
 10550  				msglen |= int(b&0x7F) << shift
 10551  				if b < 0x80 {
 10552  					break
 10553  				}
 10554  			}
 10555  			if msglen < 0 {
 10556  				return ErrInvalidLengthTypes
 10557  			}
 10558  			postIndex := iNdEx + msglen
 10559  			if postIndex < 0 {
 10560  				return ErrInvalidLengthTypes
 10561  			}
 10562  			if postIndex > l {
 10563  				return io.ErrUnexpectedEOF
 10564  			}
 10565  			v := &ResponseOfferSnapshot{}
 10566  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10567  				return err
 10568  			}
 10569  			m.Value = &Response_OfferSnapshot{v}
 10570  			iNdEx = postIndex
 10571  		case 15:
 10572  			if wireType != 2 {
 10573  				return fmt.Errorf("proto: wrong wireType = %d for field LoadSnapshotChunk", wireType)
 10574  			}
 10575  			var msglen int
 10576  			for shift := uint(0); ; shift += 7 {
 10577  				if shift >= 64 {
 10578  					return ErrIntOverflowTypes
 10579  				}
 10580  				if iNdEx >= l {
 10581  					return io.ErrUnexpectedEOF
 10582  				}
 10583  				b := dAtA[iNdEx]
 10584  				iNdEx++
 10585  				msglen |= int(b&0x7F) << shift
 10586  				if b < 0x80 {
 10587  					break
 10588  				}
 10589  			}
 10590  			if msglen < 0 {
 10591  				return ErrInvalidLengthTypes
 10592  			}
 10593  			postIndex := iNdEx + msglen
 10594  			if postIndex < 0 {
 10595  				return ErrInvalidLengthTypes
 10596  			}
 10597  			if postIndex > l {
 10598  				return io.ErrUnexpectedEOF
 10599  			}
 10600  			v := &ResponseLoadSnapshotChunk{}
 10601  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10602  				return err
 10603  			}
 10604  			m.Value = &Response_LoadSnapshotChunk{v}
 10605  			iNdEx = postIndex
 10606  		case 16:
 10607  			if wireType != 2 {
 10608  				return fmt.Errorf("proto: wrong wireType = %d for field ApplySnapshotChunk", wireType)
 10609  			}
 10610  			var msglen int
 10611  			for shift := uint(0); ; shift += 7 {
 10612  				if shift >= 64 {
 10613  					return ErrIntOverflowTypes
 10614  				}
 10615  				if iNdEx >= l {
 10616  					return io.ErrUnexpectedEOF
 10617  				}
 10618  				b := dAtA[iNdEx]
 10619  				iNdEx++
 10620  				msglen |= int(b&0x7F) << shift
 10621  				if b < 0x80 {
 10622  					break
 10623  				}
 10624  			}
 10625  			if msglen < 0 {
 10626  				return ErrInvalidLengthTypes
 10627  			}
 10628  			postIndex := iNdEx + msglen
 10629  			if postIndex < 0 {
 10630  				return ErrInvalidLengthTypes
 10631  			}
 10632  			if postIndex > l {
 10633  				return io.ErrUnexpectedEOF
 10634  			}
 10635  			v := &ResponseApplySnapshotChunk{}
 10636  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10637  				return err
 10638  			}
 10639  			m.Value = &Response_ApplySnapshotChunk{v}
 10640  			iNdEx = postIndex
 10641  		default:
 10642  			iNdEx = preIndex
 10643  			skippy, err := skipTypes(dAtA[iNdEx:])
 10644  			if err != nil {
 10645  				return err
 10646  			}
 10647  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10648  				return ErrInvalidLengthTypes
 10649  			}
 10650  			if (iNdEx + skippy) > l {
 10651  				return io.ErrUnexpectedEOF
 10652  			}
 10653  			iNdEx += skippy
 10654  		}
 10655  	}
 10656  
 10657  	if iNdEx > l {
 10658  		return io.ErrUnexpectedEOF
 10659  	}
 10660  	return nil
 10661  }
 10662  func (m *ResponseException) Unmarshal(dAtA []byte) error {
 10663  	l := len(dAtA)
 10664  	iNdEx := 0
 10665  	for iNdEx < l {
 10666  		preIndex := iNdEx
 10667  		var wire uint64
 10668  		for shift := uint(0); ; shift += 7 {
 10669  			if shift >= 64 {
 10670  				return ErrIntOverflowTypes
 10671  			}
 10672  			if iNdEx >= l {
 10673  				return io.ErrUnexpectedEOF
 10674  			}
 10675  			b := dAtA[iNdEx]
 10676  			iNdEx++
 10677  			wire |= uint64(b&0x7F) << shift
 10678  			if b < 0x80 {
 10679  				break
 10680  			}
 10681  		}
 10682  		fieldNum := int32(wire >> 3)
 10683  		wireType := int(wire & 0x7)
 10684  		if wireType == 4 {
 10685  			return fmt.Errorf("proto: ResponseException: wiretype end group for non-group")
 10686  		}
 10687  		if fieldNum <= 0 {
 10688  			return fmt.Errorf("proto: ResponseException: illegal tag %d (wire type %d)", fieldNum, wire)
 10689  		}
 10690  		switch fieldNum {
 10691  		case 1:
 10692  			if wireType != 2 {
 10693  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
 10694  			}
 10695  			var stringLen uint64
 10696  			for shift := uint(0); ; shift += 7 {
 10697  				if shift >= 64 {
 10698  					return ErrIntOverflowTypes
 10699  				}
 10700  				if iNdEx >= l {
 10701  					return io.ErrUnexpectedEOF
 10702  				}
 10703  				b := dAtA[iNdEx]
 10704  				iNdEx++
 10705  				stringLen |= uint64(b&0x7F) << shift
 10706  				if b < 0x80 {
 10707  					break
 10708  				}
 10709  			}
 10710  			intStringLen := int(stringLen)
 10711  			if intStringLen < 0 {
 10712  				return ErrInvalidLengthTypes
 10713  			}
 10714  			postIndex := iNdEx + intStringLen
 10715  			if postIndex < 0 {
 10716  				return ErrInvalidLengthTypes
 10717  			}
 10718  			if postIndex > l {
 10719  				return io.ErrUnexpectedEOF
 10720  			}
 10721  			m.Error = string(dAtA[iNdEx:postIndex])
 10722  			iNdEx = postIndex
 10723  		default:
 10724  			iNdEx = preIndex
 10725  			skippy, err := skipTypes(dAtA[iNdEx:])
 10726  			if err != nil {
 10727  				return err
 10728  			}
 10729  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10730  				return ErrInvalidLengthTypes
 10731  			}
 10732  			if (iNdEx + skippy) > l {
 10733  				return io.ErrUnexpectedEOF
 10734  			}
 10735  			iNdEx += skippy
 10736  		}
 10737  	}
 10738  
 10739  	if iNdEx > l {
 10740  		return io.ErrUnexpectedEOF
 10741  	}
 10742  	return nil
 10743  }
 10744  func (m *ResponseEcho) Unmarshal(dAtA []byte) error {
 10745  	l := len(dAtA)
 10746  	iNdEx := 0
 10747  	for iNdEx < l {
 10748  		preIndex := iNdEx
 10749  		var wire uint64
 10750  		for shift := uint(0); ; shift += 7 {
 10751  			if shift >= 64 {
 10752  				return ErrIntOverflowTypes
 10753  			}
 10754  			if iNdEx >= l {
 10755  				return io.ErrUnexpectedEOF
 10756  			}
 10757  			b := dAtA[iNdEx]
 10758  			iNdEx++
 10759  			wire |= uint64(b&0x7F) << shift
 10760  			if b < 0x80 {
 10761  				break
 10762  			}
 10763  		}
 10764  		fieldNum := int32(wire >> 3)
 10765  		wireType := int(wire & 0x7)
 10766  		if wireType == 4 {
 10767  			return fmt.Errorf("proto: ResponseEcho: wiretype end group for non-group")
 10768  		}
 10769  		if fieldNum <= 0 {
 10770  			return fmt.Errorf("proto: ResponseEcho: illegal tag %d (wire type %d)", fieldNum, wire)
 10771  		}
 10772  		switch fieldNum {
 10773  		case 1:
 10774  			if wireType != 2 {
 10775  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
 10776  			}
 10777  			var stringLen uint64
 10778  			for shift := uint(0); ; shift += 7 {
 10779  				if shift >= 64 {
 10780  					return ErrIntOverflowTypes
 10781  				}
 10782  				if iNdEx >= l {
 10783  					return io.ErrUnexpectedEOF
 10784  				}
 10785  				b := dAtA[iNdEx]
 10786  				iNdEx++
 10787  				stringLen |= uint64(b&0x7F) << shift
 10788  				if b < 0x80 {
 10789  					break
 10790  				}
 10791  			}
 10792  			intStringLen := int(stringLen)
 10793  			if intStringLen < 0 {
 10794  				return ErrInvalidLengthTypes
 10795  			}
 10796  			postIndex := iNdEx + intStringLen
 10797  			if postIndex < 0 {
 10798  				return ErrInvalidLengthTypes
 10799  			}
 10800  			if postIndex > l {
 10801  				return io.ErrUnexpectedEOF
 10802  			}
 10803  			m.Message = string(dAtA[iNdEx:postIndex])
 10804  			iNdEx = postIndex
 10805  		default:
 10806  			iNdEx = preIndex
 10807  			skippy, err := skipTypes(dAtA[iNdEx:])
 10808  			if err != nil {
 10809  				return err
 10810  			}
 10811  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10812  				return ErrInvalidLengthTypes
 10813  			}
 10814  			if (iNdEx + skippy) > l {
 10815  				return io.ErrUnexpectedEOF
 10816  			}
 10817  			iNdEx += skippy
 10818  		}
 10819  	}
 10820  
 10821  	if iNdEx > l {
 10822  		return io.ErrUnexpectedEOF
 10823  	}
 10824  	return nil
 10825  }
 10826  func (m *ResponseFlush) Unmarshal(dAtA []byte) error {
 10827  	l := len(dAtA)
 10828  	iNdEx := 0
 10829  	for iNdEx < l {
 10830  		preIndex := iNdEx
 10831  		var wire uint64
 10832  		for shift := uint(0); ; shift += 7 {
 10833  			if shift >= 64 {
 10834  				return ErrIntOverflowTypes
 10835  			}
 10836  			if iNdEx >= l {
 10837  				return io.ErrUnexpectedEOF
 10838  			}
 10839  			b := dAtA[iNdEx]
 10840  			iNdEx++
 10841  			wire |= uint64(b&0x7F) << shift
 10842  			if b < 0x80 {
 10843  				break
 10844  			}
 10845  		}
 10846  		fieldNum := int32(wire >> 3)
 10847  		wireType := int(wire & 0x7)
 10848  		if wireType == 4 {
 10849  			return fmt.Errorf("proto: ResponseFlush: wiretype end group for non-group")
 10850  		}
 10851  		if fieldNum <= 0 {
 10852  			return fmt.Errorf("proto: ResponseFlush: illegal tag %d (wire type %d)", fieldNum, wire)
 10853  		}
 10854  		switch fieldNum {
 10855  		default:
 10856  			iNdEx = preIndex
 10857  			skippy, err := skipTypes(dAtA[iNdEx:])
 10858  			if err != nil {
 10859  				return err
 10860  			}
 10861  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10862  				return ErrInvalidLengthTypes
 10863  			}
 10864  			if (iNdEx + skippy) > l {
 10865  				return io.ErrUnexpectedEOF
 10866  			}
 10867  			iNdEx += skippy
 10868  		}
 10869  	}
 10870  
 10871  	if iNdEx > l {
 10872  		return io.ErrUnexpectedEOF
 10873  	}
 10874  	return nil
 10875  }
 10876  func (m *ResponseInfo) Unmarshal(dAtA []byte) error {
 10877  	l := len(dAtA)
 10878  	iNdEx := 0
 10879  	for iNdEx < l {
 10880  		preIndex := iNdEx
 10881  		var wire uint64
 10882  		for shift := uint(0); ; shift += 7 {
 10883  			if shift >= 64 {
 10884  				return ErrIntOverflowTypes
 10885  			}
 10886  			if iNdEx >= l {
 10887  				return io.ErrUnexpectedEOF
 10888  			}
 10889  			b := dAtA[iNdEx]
 10890  			iNdEx++
 10891  			wire |= uint64(b&0x7F) << shift
 10892  			if b < 0x80 {
 10893  				break
 10894  			}
 10895  		}
 10896  		fieldNum := int32(wire >> 3)
 10897  		wireType := int(wire & 0x7)
 10898  		if wireType == 4 {
 10899  			return fmt.Errorf("proto: ResponseInfo: wiretype end group for non-group")
 10900  		}
 10901  		if fieldNum <= 0 {
 10902  			return fmt.Errorf("proto: ResponseInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 10903  		}
 10904  		switch fieldNum {
 10905  		case 1:
 10906  			if wireType != 2 {
 10907  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
 10908  			}
 10909  			var stringLen uint64
 10910  			for shift := uint(0); ; shift += 7 {
 10911  				if shift >= 64 {
 10912  					return ErrIntOverflowTypes
 10913  				}
 10914  				if iNdEx >= l {
 10915  					return io.ErrUnexpectedEOF
 10916  				}
 10917  				b := dAtA[iNdEx]
 10918  				iNdEx++
 10919  				stringLen |= uint64(b&0x7F) << shift
 10920  				if b < 0x80 {
 10921  					break
 10922  				}
 10923  			}
 10924  			intStringLen := int(stringLen)
 10925  			if intStringLen < 0 {
 10926  				return ErrInvalidLengthTypes
 10927  			}
 10928  			postIndex := iNdEx + intStringLen
 10929  			if postIndex < 0 {
 10930  				return ErrInvalidLengthTypes
 10931  			}
 10932  			if postIndex > l {
 10933  				return io.ErrUnexpectedEOF
 10934  			}
 10935  			m.Data = string(dAtA[iNdEx:postIndex])
 10936  			iNdEx = postIndex
 10937  		case 2:
 10938  			if wireType != 2 {
 10939  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
 10940  			}
 10941  			var stringLen uint64
 10942  			for shift := uint(0); ; shift += 7 {
 10943  				if shift >= 64 {
 10944  					return ErrIntOverflowTypes
 10945  				}
 10946  				if iNdEx >= l {
 10947  					return io.ErrUnexpectedEOF
 10948  				}
 10949  				b := dAtA[iNdEx]
 10950  				iNdEx++
 10951  				stringLen |= uint64(b&0x7F) << shift
 10952  				if b < 0x80 {
 10953  					break
 10954  				}
 10955  			}
 10956  			intStringLen := int(stringLen)
 10957  			if intStringLen < 0 {
 10958  				return ErrInvalidLengthTypes
 10959  			}
 10960  			postIndex := iNdEx + intStringLen
 10961  			if postIndex < 0 {
 10962  				return ErrInvalidLengthTypes
 10963  			}
 10964  			if postIndex > l {
 10965  				return io.ErrUnexpectedEOF
 10966  			}
 10967  			m.Version = string(dAtA[iNdEx:postIndex])
 10968  			iNdEx = postIndex
 10969  		case 3:
 10970  			if wireType != 0 {
 10971  				return fmt.Errorf("proto: wrong wireType = %d for field AppVersion", wireType)
 10972  			}
 10973  			m.AppVersion = 0
 10974  			for shift := uint(0); ; shift += 7 {
 10975  				if shift >= 64 {
 10976  					return ErrIntOverflowTypes
 10977  				}
 10978  				if iNdEx >= l {
 10979  					return io.ErrUnexpectedEOF
 10980  				}
 10981  				b := dAtA[iNdEx]
 10982  				iNdEx++
 10983  				m.AppVersion |= uint64(b&0x7F) << shift
 10984  				if b < 0x80 {
 10985  					break
 10986  				}
 10987  			}
 10988  		case 4:
 10989  			if wireType != 0 {
 10990  				return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeight", wireType)
 10991  			}
 10992  			m.LastBlockHeight = 0
 10993  			for shift := uint(0); ; shift += 7 {
 10994  				if shift >= 64 {
 10995  					return ErrIntOverflowTypes
 10996  				}
 10997  				if iNdEx >= l {
 10998  					return io.ErrUnexpectedEOF
 10999  				}
 11000  				b := dAtA[iNdEx]
 11001  				iNdEx++
 11002  				m.LastBlockHeight |= int64(b&0x7F) << shift
 11003  				if b < 0x80 {
 11004  					break
 11005  				}
 11006  			}
 11007  		case 5:
 11008  			if wireType != 2 {
 11009  				return fmt.Errorf("proto: wrong wireType = %d for field LastBlockAppHash", wireType)
 11010  			}
 11011  			var byteLen int
 11012  			for shift := uint(0); ; shift += 7 {
 11013  				if shift >= 64 {
 11014  					return ErrIntOverflowTypes
 11015  				}
 11016  				if iNdEx >= l {
 11017  					return io.ErrUnexpectedEOF
 11018  				}
 11019  				b := dAtA[iNdEx]
 11020  				iNdEx++
 11021  				byteLen |= int(b&0x7F) << shift
 11022  				if b < 0x80 {
 11023  					break
 11024  				}
 11025  			}
 11026  			if byteLen < 0 {
 11027  				return ErrInvalidLengthTypes
 11028  			}
 11029  			postIndex := iNdEx + byteLen
 11030  			if postIndex < 0 {
 11031  				return ErrInvalidLengthTypes
 11032  			}
 11033  			if postIndex > l {
 11034  				return io.ErrUnexpectedEOF
 11035  			}
 11036  			m.LastBlockAppHash = append(m.LastBlockAppHash[:0], dAtA[iNdEx:postIndex]...)
 11037  			if m.LastBlockAppHash == nil {
 11038  				m.LastBlockAppHash = []byte{}
 11039  			}
 11040  			iNdEx = postIndex
 11041  		default:
 11042  			iNdEx = preIndex
 11043  			skippy, err := skipTypes(dAtA[iNdEx:])
 11044  			if err != nil {
 11045  				return err
 11046  			}
 11047  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11048  				return ErrInvalidLengthTypes
 11049  			}
 11050  			if (iNdEx + skippy) > l {
 11051  				return io.ErrUnexpectedEOF
 11052  			}
 11053  			iNdEx += skippy
 11054  		}
 11055  	}
 11056  
 11057  	if iNdEx > l {
 11058  		return io.ErrUnexpectedEOF
 11059  	}
 11060  	return nil
 11061  }
 11062  func (m *ResponseSetOption) Unmarshal(dAtA []byte) error {
 11063  	l := len(dAtA)
 11064  	iNdEx := 0
 11065  	for iNdEx < l {
 11066  		preIndex := iNdEx
 11067  		var wire uint64
 11068  		for shift := uint(0); ; shift += 7 {
 11069  			if shift >= 64 {
 11070  				return ErrIntOverflowTypes
 11071  			}
 11072  			if iNdEx >= l {
 11073  				return io.ErrUnexpectedEOF
 11074  			}
 11075  			b := dAtA[iNdEx]
 11076  			iNdEx++
 11077  			wire |= uint64(b&0x7F) << shift
 11078  			if b < 0x80 {
 11079  				break
 11080  			}
 11081  		}
 11082  		fieldNum := int32(wire >> 3)
 11083  		wireType := int(wire & 0x7)
 11084  		if wireType == 4 {
 11085  			return fmt.Errorf("proto: ResponseSetOption: wiretype end group for non-group")
 11086  		}
 11087  		if fieldNum <= 0 {
 11088  			return fmt.Errorf("proto: ResponseSetOption: illegal tag %d (wire type %d)", fieldNum, wire)
 11089  		}
 11090  		switch fieldNum {
 11091  		case 1:
 11092  			if wireType != 0 {
 11093  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
 11094  			}
 11095  			m.Code = 0
 11096  			for shift := uint(0); ; shift += 7 {
 11097  				if shift >= 64 {
 11098  					return ErrIntOverflowTypes
 11099  				}
 11100  				if iNdEx >= l {
 11101  					return io.ErrUnexpectedEOF
 11102  				}
 11103  				b := dAtA[iNdEx]
 11104  				iNdEx++
 11105  				m.Code |= uint32(b&0x7F) << shift
 11106  				if b < 0x80 {
 11107  					break
 11108  				}
 11109  			}
 11110  		case 3:
 11111  			if wireType != 2 {
 11112  				return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
 11113  			}
 11114  			var stringLen uint64
 11115  			for shift := uint(0); ; shift += 7 {
 11116  				if shift >= 64 {
 11117  					return ErrIntOverflowTypes
 11118  				}
 11119  				if iNdEx >= l {
 11120  					return io.ErrUnexpectedEOF
 11121  				}
 11122  				b := dAtA[iNdEx]
 11123  				iNdEx++
 11124  				stringLen |= uint64(b&0x7F) << shift
 11125  				if b < 0x80 {
 11126  					break
 11127  				}
 11128  			}
 11129  			intStringLen := int(stringLen)
 11130  			if intStringLen < 0 {
 11131  				return ErrInvalidLengthTypes
 11132  			}
 11133  			postIndex := iNdEx + intStringLen
 11134  			if postIndex < 0 {
 11135  				return ErrInvalidLengthTypes
 11136  			}
 11137  			if postIndex > l {
 11138  				return io.ErrUnexpectedEOF
 11139  			}
 11140  			m.Log = string(dAtA[iNdEx:postIndex])
 11141  			iNdEx = postIndex
 11142  		case 4:
 11143  			if wireType != 2 {
 11144  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
 11145  			}
 11146  			var stringLen uint64
 11147  			for shift := uint(0); ; shift += 7 {
 11148  				if shift >= 64 {
 11149  					return ErrIntOverflowTypes
 11150  				}
 11151  				if iNdEx >= l {
 11152  					return io.ErrUnexpectedEOF
 11153  				}
 11154  				b := dAtA[iNdEx]
 11155  				iNdEx++
 11156  				stringLen |= uint64(b&0x7F) << shift
 11157  				if b < 0x80 {
 11158  					break
 11159  				}
 11160  			}
 11161  			intStringLen := int(stringLen)
 11162  			if intStringLen < 0 {
 11163  				return ErrInvalidLengthTypes
 11164  			}
 11165  			postIndex := iNdEx + intStringLen
 11166  			if postIndex < 0 {
 11167  				return ErrInvalidLengthTypes
 11168  			}
 11169  			if postIndex > l {
 11170  				return io.ErrUnexpectedEOF
 11171  			}
 11172  			m.Info = string(dAtA[iNdEx:postIndex])
 11173  			iNdEx = postIndex
 11174  		default:
 11175  			iNdEx = preIndex
 11176  			skippy, err := skipTypes(dAtA[iNdEx:])
 11177  			if err != nil {
 11178  				return err
 11179  			}
 11180  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11181  				return ErrInvalidLengthTypes
 11182  			}
 11183  			if (iNdEx + skippy) > l {
 11184  				return io.ErrUnexpectedEOF
 11185  			}
 11186  			iNdEx += skippy
 11187  		}
 11188  	}
 11189  
 11190  	if iNdEx > l {
 11191  		return io.ErrUnexpectedEOF
 11192  	}
 11193  	return nil
 11194  }
 11195  func (m *ResponseInitChain) Unmarshal(dAtA []byte) error {
 11196  	l := len(dAtA)
 11197  	iNdEx := 0
 11198  	for iNdEx < l {
 11199  		preIndex := iNdEx
 11200  		var wire uint64
 11201  		for shift := uint(0); ; shift += 7 {
 11202  			if shift >= 64 {
 11203  				return ErrIntOverflowTypes
 11204  			}
 11205  			if iNdEx >= l {
 11206  				return io.ErrUnexpectedEOF
 11207  			}
 11208  			b := dAtA[iNdEx]
 11209  			iNdEx++
 11210  			wire |= uint64(b&0x7F) << shift
 11211  			if b < 0x80 {
 11212  				break
 11213  			}
 11214  		}
 11215  		fieldNum := int32(wire >> 3)
 11216  		wireType := int(wire & 0x7)
 11217  		if wireType == 4 {
 11218  			return fmt.Errorf("proto: ResponseInitChain: wiretype end group for non-group")
 11219  		}
 11220  		if fieldNum <= 0 {
 11221  			return fmt.Errorf("proto: ResponseInitChain: illegal tag %d (wire type %d)", fieldNum, wire)
 11222  		}
 11223  		switch fieldNum {
 11224  		case 1:
 11225  			if wireType != 2 {
 11226  				return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
 11227  			}
 11228  			var msglen int
 11229  			for shift := uint(0); ; shift += 7 {
 11230  				if shift >= 64 {
 11231  					return ErrIntOverflowTypes
 11232  				}
 11233  				if iNdEx >= l {
 11234  					return io.ErrUnexpectedEOF
 11235  				}
 11236  				b := dAtA[iNdEx]
 11237  				iNdEx++
 11238  				msglen |= int(b&0x7F) << shift
 11239  				if b < 0x80 {
 11240  					break
 11241  				}
 11242  			}
 11243  			if msglen < 0 {
 11244  				return ErrInvalidLengthTypes
 11245  			}
 11246  			postIndex := iNdEx + msglen
 11247  			if postIndex < 0 {
 11248  				return ErrInvalidLengthTypes
 11249  			}
 11250  			if postIndex > l {
 11251  				return io.ErrUnexpectedEOF
 11252  			}
 11253  			if m.ConsensusParams == nil {
 11254  				m.ConsensusParams = &ConsensusParams{}
 11255  			}
 11256  			if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11257  				return err
 11258  			}
 11259  			iNdEx = postIndex
 11260  		case 2:
 11261  			if wireType != 2 {
 11262  				return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
 11263  			}
 11264  			var msglen int
 11265  			for shift := uint(0); ; shift += 7 {
 11266  				if shift >= 64 {
 11267  					return ErrIntOverflowTypes
 11268  				}
 11269  				if iNdEx >= l {
 11270  					return io.ErrUnexpectedEOF
 11271  				}
 11272  				b := dAtA[iNdEx]
 11273  				iNdEx++
 11274  				msglen |= int(b&0x7F) << shift
 11275  				if b < 0x80 {
 11276  					break
 11277  				}
 11278  			}
 11279  			if msglen < 0 {
 11280  				return ErrInvalidLengthTypes
 11281  			}
 11282  			postIndex := iNdEx + msglen
 11283  			if postIndex < 0 {
 11284  				return ErrInvalidLengthTypes
 11285  			}
 11286  			if postIndex > l {
 11287  				return io.ErrUnexpectedEOF
 11288  			}
 11289  			m.Validators = append(m.Validators, ValidatorUpdate{})
 11290  			if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11291  				return err
 11292  			}
 11293  			iNdEx = postIndex
 11294  		case 3:
 11295  			if wireType != 2 {
 11296  				return fmt.Errorf("proto: wrong wireType = %d for field AppHash", wireType)
 11297  			}
 11298  			var byteLen int
 11299  			for shift := uint(0); ; shift += 7 {
 11300  				if shift >= 64 {
 11301  					return ErrIntOverflowTypes
 11302  				}
 11303  				if iNdEx >= l {
 11304  					return io.ErrUnexpectedEOF
 11305  				}
 11306  				b := dAtA[iNdEx]
 11307  				iNdEx++
 11308  				byteLen |= int(b&0x7F) << shift
 11309  				if b < 0x80 {
 11310  					break
 11311  				}
 11312  			}
 11313  			if byteLen < 0 {
 11314  				return ErrInvalidLengthTypes
 11315  			}
 11316  			postIndex := iNdEx + byteLen
 11317  			if postIndex < 0 {
 11318  				return ErrInvalidLengthTypes
 11319  			}
 11320  			if postIndex > l {
 11321  				return io.ErrUnexpectedEOF
 11322  			}
 11323  			m.AppHash = append(m.AppHash[:0], dAtA[iNdEx:postIndex]...)
 11324  			if m.AppHash == nil {
 11325  				m.AppHash = []byte{}
 11326  			}
 11327  			iNdEx = postIndex
 11328  		default:
 11329  			iNdEx = preIndex
 11330  			skippy, err := skipTypes(dAtA[iNdEx:])
 11331  			if err != nil {
 11332  				return err
 11333  			}
 11334  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11335  				return ErrInvalidLengthTypes
 11336  			}
 11337  			if (iNdEx + skippy) > l {
 11338  				return io.ErrUnexpectedEOF
 11339  			}
 11340  			iNdEx += skippy
 11341  		}
 11342  	}
 11343  
 11344  	if iNdEx > l {
 11345  		return io.ErrUnexpectedEOF
 11346  	}
 11347  	return nil
 11348  }
 11349  func (m *ResponseQuery) Unmarshal(dAtA []byte) error {
 11350  	l := len(dAtA)
 11351  	iNdEx := 0
 11352  	for iNdEx < l {
 11353  		preIndex := iNdEx
 11354  		var wire uint64
 11355  		for shift := uint(0); ; shift += 7 {
 11356  			if shift >= 64 {
 11357  				return ErrIntOverflowTypes
 11358  			}
 11359  			if iNdEx >= l {
 11360  				return io.ErrUnexpectedEOF
 11361  			}
 11362  			b := dAtA[iNdEx]
 11363  			iNdEx++
 11364  			wire |= uint64(b&0x7F) << shift
 11365  			if b < 0x80 {
 11366  				break
 11367  			}
 11368  		}
 11369  		fieldNum := int32(wire >> 3)
 11370  		wireType := int(wire & 0x7)
 11371  		if wireType == 4 {
 11372  			return fmt.Errorf("proto: ResponseQuery: wiretype end group for non-group")
 11373  		}
 11374  		if fieldNum <= 0 {
 11375  			return fmt.Errorf("proto: ResponseQuery: illegal tag %d (wire type %d)", fieldNum, wire)
 11376  		}
 11377  		switch fieldNum {
 11378  		case 1:
 11379  			if wireType != 0 {
 11380  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
 11381  			}
 11382  			m.Code = 0
 11383  			for shift := uint(0); ; shift += 7 {
 11384  				if shift >= 64 {
 11385  					return ErrIntOverflowTypes
 11386  				}
 11387  				if iNdEx >= l {
 11388  					return io.ErrUnexpectedEOF
 11389  				}
 11390  				b := dAtA[iNdEx]
 11391  				iNdEx++
 11392  				m.Code |= uint32(b&0x7F) << shift
 11393  				if b < 0x80 {
 11394  					break
 11395  				}
 11396  			}
 11397  		case 3:
 11398  			if wireType != 2 {
 11399  				return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
 11400  			}
 11401  			var stringLen uint64
 11402  			for shift := uint(0); ; shift += 7 {
 11403  				if shift >= 64 {
 11404  					return ErrIntOverflowTypes
 11405  				}
 11406  				if iNdEx >= l {
 11407  					return io.ErrUnexpectedEOF
 11408  				}
 11409  				b := dAtA[iNdEx]
 11410  				iNdEx++
 11411  				stringLen |= uint64(b&0x7F) << shift
 11412  				if b < 0x80 {
 11413  					break
 11414  				}
 11415  			}
 11416  			intStringLen := int(stringLen)
 11417  			if intStringLen < 0 {
 11418  				return ErrInvalidLengthTypes
 11419  			}
 11420  			postIndex := iNdEx + intStringLen
 11421  			if postIndex < 0 {
 11422  				return ErrInvalidLengthTypes
 11423  			}
 11424  			if postIndex > l {
 11425  				return io.ErrUnexpectedEOF
 11426  			}
 11427  			m.Log = string(dAtA[iNdEx:postIndex])
 11428  			iNdEx = postIndex
 11429  		case 4:
 11430  			if wireType != 2 {
 11431  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
 11432  			}
 11433  			var stringLen uint64
 11434  			for shift := uint(0); ; shift += 7 {
 11435  				if shift >= 64 {
 11436  					return ErrIntOverflowTypes
 11437  				}
 11438  				if iNdEx >= l {
 11439  					return io.ErrUnexpectedEOF
 11440  				}
 11441  				b := dAtA[iNdEx]
 11442  				iNdEx++
 11443  				stringLen |= uint64(b&0x7F) << shift
 11444  				if b < 0x80 {
 11445  					break
 11446  				}
 11447  			}
 11448  			intStringLen := int(stringLen)
 11449  			if intStringLen < 0 {
 11450  				return ErrInvalidLengthTypes
 11451  			}
 11452  			postIndex := iNdEx + intStringLen
 11453  			if postIndex < 0 {
 11454  				return ErrInvalidLengthTypes
 11455  			}
 11456  			if postIndex > l {
 11457  				return io.ErrUnexpectedEOF
 11458  			}
 11459  			m.Info = string(dAtA[iNdEx:postIndex])
 11460  			iNdEx = postIndex
 11461  		case 5:
 11462  			if wireType != 0 {
 11463  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
 11464  			}
 11465  			m.Index = 0
 11466  			for shift := uint(0); ; shift += 7 {
 11467  				if shift >= 64 {
 11468  					return ErrIntOverflowTypes
 11469  				}
 11470  				if iNdEx >= l {
 11471  					return io.ErrUnexpectedEOF
 11472  				}
 11473  				b := dAtA[iNdEx]
 11474  				iNdEx++
 11475  				m.Index |= int64(b&0x7F) << shift
 11476  				if b < 0x80 {
 11477  					break
 11478  				}
 11479  			}
 11480  		case 6:
 11481  			if wireType != 2 {
 11482  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 11483  			}
 11484  			var byteLen int
 11485  			for shift := uint(0); ; shift += 7 {
 11486  				if shift >= 64 {
 11487  					return ErrIntOverflowTypes
 11488  				}
 11489  				if iNdEx >= l {
 11490  					return io.ErrUnexpectedEOF
 11491  				}
 11492  				b := dAtA[iNdEx]
 11493  				iNdEx++
 11494  				byteLen |= int(b&0x7F) << shift
 11495  				if b < 0x80 {
 11496  					break
 11497  				}
 11498  			}
 11499  			if byteLen < 0 {
 11500  				return ErrInvalidLengthTypes
 11501  			}
 11502  			postIndex := iNdEx + byteLen
 11503  			if postIndex < 0 {
 11504  				return ErrInvalidLengthTypes
 11505  			}
 11506  			if postIndex > l {
 11507  				return io.ErrUnexpectedEOF
 11508  			}
 11509  			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
 11510  			if m.Key == nil {
 11511  				m.Key = []byte{}
 11512  			}
 11513  			iNdEx = postIndex
 11514  		case 7:
 11515  			if wireType != 2 {
 11516  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
 11517  			}
 11518  			var byteLen int
 11519  			for shift := uint(0); ; shift += 7 {
 11520  				if shift >= 64 {
 11521  					return ErrIntOverflowTypes
 11522  				}
 11523  				if iNdEx >= l {
 11524  					return io.ErrUnexpectedEOF
 11525  				}
 11526  				b := dAtA[iNdEx]
 11527  				iNdEx++
 11528  				byteLen |= int(b&0x7F) << shift
 11529  				if b < 0x80 {
 11530  					break
 11531  				}
 11532  			}
 11533  			if byteLen < 0 {
 11534  				return ErrInvalidLengthTypes
 11535  			}
 11536  			postIndex := iNdEx + byteLen
 11537  			if postIndex < 0 {
 11538  				return ErrInvalidLengthTypes
 11539  			}
 11540  			if postIndex > l {
 11541  				return io.ErrUnexpectedEOF
 11542  			}
 11543  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
 11544  			if m.Value == nil {
 11545  				m.Value = []byte{}
 11546  			}
 11547  			iNdEx = postIndex
 11548  		case 8:
 11549  			if wireType != 2 {
 11550  				return fmt.Errorf("proto: wrong wireType = %d for field ProofOps", wireType)
 11551  			}
 11552  			var msglen int
 11553  			for shift := uint(0); ; shift += 7 {
 11554  				if shift >= 64 {
 11555  					return ErrIntOverflowTypes
 11556  				}
 11557  				if iNdEx >= l {
 11558  					return io.ErrUnexpectedEOF
 11559  				}
 11560  				b := dAtA[iNdEx]
 11561  				iNdEx++
 11562  				msglen |= int(b&0x7F) << shift
 11563  				if b < 0x80 {
 11564  					break
 11565  				}
 11566  			}
 11567  			if msglen < 0 {
 11568  				return ErrInvalidLengthTypes
 11569  			}
 11570  			postIndex := iNdEx + msglen
 11571  			if postIndex < 0 {
 11572  				return ErrInvalidLengthTypes
 11573  			}
 11574  			if postIndex > l {
 11575  				return io.ErrUnexpectedEOF
 11576  			}
 11577  			if m.ProofOps == nil {
 11578  				m.ProofOps = &crypto.ProofOps{}
 11579  			}
 11580  			if err := m.ProofOps.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11581  				return err
 11582  			}
 11583  			iNdEx = postIndex
 11584  		case 9:
 11585  			if wireType != 0 {
 11586  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
 11587  			}
 11588  			m.Height = 0
 11589  			for shift := uint(0); ; shift += 7 {
 11590  				if shift >= 64 {
 11591  					return ErrIntOverflowTypes
 11592  				}
 11593  				if iNdEx >= l {
 11594  					return io.ErrUnexpectedEOF
 11595  				}
 11596  				b := dAtA[iNdEx]
 11597  				iNdEx++
 11598  				m.Height |= int64(b&0x7F) << shift
 11599  				if b < 0x80 {
 11600  					break
 11601  				}
 11602  			}
 11603  		case 10:
 11604  			if wireType != 2 {
 11605  				return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType)
 11606  			}
 11607  			var stringLen uint64
 11608  			for shift := uint(0); ; shift += 7 {
 11609  				if shift >= 64 {
 11610  					return ErrIntOverflowTypes
 11611  				}
 11612  				if iNdEx >= l {
 11613  					return io.ErrUnexpectedEOF
 11614  				}
 11615  				b := dAtA[iNdEx]
 11616  				iNdEx++
 11617  				stringLen |= uint64(b&0x7F) << shift
 11618  				if b < 0x80 {
 11619  					break
 11620  				}
 11621  			}
 11622  			intStringLen := int(stringLen)
 11623  			if intStringLen < 0 {
 11624  				return ErrInvalidLengthTypes
 11625  			}
 11626  			postIndex := iNdEx + intStringLen
 11627  			if postIndex < 0 {
 11628  				return ErrInvalidLengthTypes
 11629  			}
 11630  			if postIndex > l {
 11631  				return io.ErrUnexpectedEOF
 11632  			}
 11633  			m.Codespace = string(dAtA[iNdEx:postIndex])
 11634  			iNdEx = postIndex
 11635  		default:
 11636  			iNdEx = preIndex
 11637  			skippy, err := skipTypes(dAtA[iNdEx:])
 11638  			if err != nil {
 11639  				return err
 11640  			}
 11641  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11642  				return ErrInvalidLengthTypes
 11643  			}
 11644  			if (iNdEx + skippy) > l {
 11645  				return io.ErrUnexpectedEOF
 11646  			}
 11647  			iNdEx += skippy
 11648  		}
 11649  	}
 11650  
 11651  	if iNdEx > l {
 11652  		return io.ErrUnexpectedEOF
 11653  	}
 11654  	return nil
 11655  }
 11656  func (m *ResponseBeginBlock) Unmarshal(dAtA []byte) error {
 11657  	l := len(dAtA)
 11658  	iNdEx := 0
 11659  	for iNdEx < l {
 11660  		preIndex := iNdEx
 11661  		var wire uint64
 11662  		for shift := uint(0); ; shift += 7 {
 11663  			if shift >= 64 {
 11664  				return ErrIntOverflowTypes
 11665  			}
 11666  			if iNdEx >= l {
 11667  				return io.ErrUnexpectedEOF
 11668  			}
 11669  			b := dAtA[iNdEx]
 11670  			iNdEx++
 11671  			wire |= uint64(b&0x7F) << shift
 11672  			if b < 0x80 {
 11673  				break
 11674  			}
 11675  		}
 11676  		fieldNum := int32(wire >> 3)
 11677  		wireType := int(wire & 0x7)
 11678  		if wireType == 4 {
 11679  			return fmt.Errorf("proto: ResponseBeginBlock: wiretype end group for non-group")
 11680  		}
 11681  		if fieldNum <= 0 {
 11682  			return fmt.Errorf("proto: ResponseBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire)
 11683  		}
 11684  		switch fieldNum {
 11685  		case 1:
 11686  			if wireType != 2 {
 11687  				return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
 11688  			}
 11689  			var msglen int
 11690  			for shift := uint(0); ; shift += 7 {
 11691  				if shift >= 64 {
 11692  					return ErrIntOverflowTypes
 11693  				}
 11694  				if iNdEx >= l {
 11695  					return io.ErrUnexpectedEOF
 11696  				}
 11697  				b := dAtA[iNdEx]
 11698  				iNdEx++
 11699  				msglen |= int(b&0x7F) << shift
 11700  				if b < 0x80 {
 11701  					break
 11702  				}
 11703  			}
 11704  			if msglen < 0 {
 11705  				return ErrInvalidLengthTypes
 11706  			}
 11707  			postIndex := iNdEx + msglen
 11708  			if postIndex < 0 {
 11709  				return ErrInvalidLengthTypes
 11710  			}
 11711  			if postIndex > l {
 11712  				return io.ErrUnexpectedEOF
 11713  			}
 11714  			m.Events = append(m.Events, Event{})
 11715  			if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11716  				return err
 11717  			}
 11718  			iNdEx = postIndex
 11719  		default:
 11720  			iNdEx = preIndex
 11721  			skippy, err := skipTypes(dAtA[iNdEx:])
 11722  			if err != nil {
 11723  				return err
 11724  			}
 11725  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11726  				return ErrInvalidLengthTypes
 11727  			}
 11728  			if (iNdEx + skippy) > l {
 11729  				return io.ErrUnexpectedEOF
 11730  			}
 11731  			iNdEx += skippy
 11732  		}
 11733  	}
 11734  
 11735  	if iNdEx > l {
 11736  		return io.ErrUnexpectedEOF
 11737  	}
 11738  	return nil
 11739  }
 11740  func (m *ResponseCheckTx) Unmarshal(dAtA []byte) error {
 11741  	l := len(dAtA)
 11742  	iNdEx := 0
 11743  	for iNdEx < l {
 11744  		preIndex := iNdEx
 11745  		var wire uint64
 11746  		for shift := uint(0); ; shift += 7 {
 11747  			if shift >= 64 {
 11748  				return ErrIntOverflowTypes
 11749  			}
 11750  			if iNdEx >= l {
 11751  				return io.ErrUnexpectedEOF
 11752  			}
 11753  			b := dAtA[iNdEx]
 11754  			iNdEx++
 11755  			wire |= uint64(b&0x7F) << shift
 11756  			if b < 0x80 {
 11757  				break
 11758  			}
 11759  		}
 11760  		fieldNum := int32(wire >> 3)
 11761  		wireType := int(wire & 0x7)
 11762  		if wireType == 4 {
 11763  			return fmt.Errorf("proto: ResponseCheckTx: wiretype end group for non-group")
 11764  		}
 11765  		if fieldNum <= 0 {
 11766  			return fmt.Errorf("proto: ResponseCheckTx: illegal tag %d (wire type %d)", fieldNum, wire)
 11767  		}
 11768  		switch fieldNum {
 11769  		case 1:
 11770  			if wireType != 0 {
 11771  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
 11772  			}
 11773  			m.Code = 0
 11774  			for shift := uint(0); ; shift += 7 {
 11775  				if shift >= 64 {
 11776  					return ErrIntOverflowTypes
 11777  				}
 11778  				if iNdEx >= l {
 11779  					return io.ErrUnexpectedEOF
 11780  				}
 11781  				b := dAtA[iNdEx]
 11782  				iNdEx++
 11783  				m.Code |= uint32(b&0x7F) << shift
 11784  				if b < 0x80 {
 11785  					break
 11786  				}
 11787  			}
 11788  		case 2:
 11789  			if wireType != 2 {
 11790  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
 11791  			}
 11792  			var byteLen int
 11793  			for shift := uint(0); ; shift += 7 {
 11794  				if shift >= 64 {
 11795  					return ErrIntOverflowTypes
 11796  				}
 11797  				if iNdEx >= l {
 11798  					return io.ErrUnexpectedEOF
 11799  				}
 11800  				b := dAtA[iNdEx]
 11801  				iNdEx++
 11802  				byteLen |= int(b&0x7F) << shift
 11803  				if b < 0x80 {
 11804  					break
 11805  				}
 11806  			}
 11807  			if byteLen < 0 {
 11808  				return ErrInvalidLengthTypes
 11809  			}
 11810  			postIndex := iNdEx + byteLen
 11811  			if postIndex < 0 {
 11812  				return ErrInvalidLengthTypes
 11813  			}
 11814  			if postIndex > l {
 11815  				return io.ErrUnexpectedEOF
 11816  			}
 11817  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
 11818  			if m.Data == nil {
 11819  				m.Data = []byte{}
 11820  			}
 11821  			iNdEx = postIndex
 11822  		case 3:
 11823  			if wireType != 2 {
 11824  				return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
 11825  			}
 11826  			var stringLen uint64
 11827  			for shift := uint(0); ; shift += 7 {
 11828  				if shift >= 64 {
 11829  					return ErrIntOverflowTypes
 11830  				}
 11831  				if iNdEx >= l {
 11832  					return io.ErrUnexpectedEOF
 11833  				}
 11834  				b := dAtA[iNdEx]
 11835  				iNdEx++
 11836  				stringLen |= uint64(b&0x7F) << shift
 11837  				if b < 0x80 {
 11838  					break
 11839  				}
 11840  			}
 11841  			intStringLen := int(stringLen)
 11842  			if intStringLen < 0 {
 11843  				return ErrInvalidLengthTypes
 11844  			}
 11845  			postIndex := iNdEx + intStringLen
 11846  			if postIndex < 0 {
 11847  				return ErrInvalidLengthTypes
 11848  			}
 11849  			if postIndex > l {
 11850  				return io.ErrUnexpectedEOF
 11851  			}
 11852  			m.Log = string(dAtA[iNdEx:postIndex])
 11853  			iNdEx = postIndex
 11854  		case 4:
 11855  			if wireType != 2 {
 11856  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
 11857  			}
 11858  			var stringLen uint64
 11859  			for shift := uint(0); ; shift += 7 {
 11860  				if shift >= 64 {
 11861  					return ErrIntOverflowTypes
 11862  				}
 11863  				if iNdEx >= l {
 11864  					return io.ErrUnexpectedEOF
 11865  				}
 11866  				b := dAtA[iNdEx]
 11867  				iNdEx++
 11868  				stringLen |= uint64(b&0x7F) << shift
 11869  				if b < 0x80 {
 11870  					break
 11871  				}
 11872  			}
 11873  			intStringLen := int(stringLen)
 11874  			if intStringLen < 0 {
 11875  				return ErrInvalidLengthTypes
 11876  			}
 11877  			postIndex := iNdEx + intStringLen
 11878  			if postIndex < 0 {
 11879  				return ErrInvalidLengthTypes
 11880  			}
 11881  			if postIndex > l {
 11882  				return io.ErrUnexpectedEOF
 11883  			}
 11884  			m.Info = string(dAtA[iNdEx:postIndex])
 11885  			iNdEx = postIndex
 11886  		case 5:
 11887  			if wireType != 0 {
 11888  				return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType)
 11889  			}
 11890  			m.GasWanted = 0
 11891  			for shift := uint(0); ; shift += 7 {
 11892  				if shift >= 64 {
 11893  					return ErrIntOverflowTypes
 11894  				}
 11895  				if iNdEx >= l {
 11896  					return io.ErrUnexpectedEOF
 11897  				}
 11898  				b := dAtA[iNdEx]
 11899  				iNdEx++
 11900  				m.GasWanted |= int64(b&0x7F) << shift
 11901  				if b < 0x80 {
 11902  					break
 11903  				}
 11904  			}
 11905  		case 6:
 11906  			if wireType != 0 {
 11907  				return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType)
 11908  			}
 11909  			m.GasUsed = 0
 11910  			for shift := uint(0); ; shift += 7 {
 11911  				if shift >= 64 {
 11912  					return ErrIntOverflowTypes
 11913  				}
 11914  				if iNdEx >= l {
 11915  					return io.ErrUnexpectedEOF
 11916  				}
 11917  				b := dAtA[iNdEx]
 11918  				iNdEx++
 11919  				m.GasUsed |= int64(b&0x7F) << shift
 11920  				if b < 0x80 {
 11921  					break
 11922  				}
 11923  			}
 11924  		case 7:
 11925  			if wireType != 2 {
 11926  				return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
 11927  			}
 11928  			var msglen int
 11929  			for shift := uint(0); ; shift += 7 {
 11930  				if shift >= 64 {
 11931  					return ErrIntOverflowTypes
 11932  				}
 11933  				if iNdEx >= l {
 11934  					return io.ErrUnexpectedEOF
 11935  				}
 11936  				b := dAtA[iNdEx]
 11937  				iNdEx++
 11938  				msglen |= int(b&0x7F) << shift
 11939  				if b < 0x80 {
 11940  					break
 11941  				}
 11942  			}
 11943  			if msglen < 0 {
 11944  				return ErrInvalidLengthTypes
 11945  			}
 11946  			postIndex := iNdEx + msglen
 11947  			if postIndex < 0 {
 11948  				return ErrInvalidLengthTypes
 11949  			}
 11950  			if postIndex > l {
 11951  				return io.ErrUnexpectedEOF
 11952  			}
 11953  			m.Events = append(m.Events, Event{})
 11954  			if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11955  				return err
 11956  			}
 11957  			iNdEx = postIndex
 11958  		case 8:
 11959  			if wireType != 2 {
 11960  				return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType)
 11961  			}
 11962  			var stringLen uint64
 11963  			for shift := uint(0); ; shift += 7 {
 11964  				if shift >= 64 {
 11965  					return ErrIntOverflowTypes
 11966  				}
 11967  				if iNdEx >= l {
 11968  					return io.ErrUnexpectedEOF
 11969  				}
 11970  				b := dAtA[iNdEx]
 11971  				iNdEx++
 11972  				stringLen |= uint64(b&0x7F) << shift
 11973  				if b < 0x80 {
 11974  					break
 11975  				}
 11976  			}
 11977  			intStringLen := int(stringLen)
 11978  			if intStringLen < 0 {
 11979  				return ErrInvalidLengthTypes
 11980  			}
 11981  			postIndex := iNdEx + intStringLen
 11982  			if postIndex < 0 {
 11983  				return ErrInvalidLengthTypes
 11984  			}
 11985  			if postIndex > l {
 11986  				return io.ErrUnexpectedEOF
 11987  			}
 11988  			m.Codespace = string(dAtA[iNdEx:postIndex])
 11989  			iNdEx = postIndex
 11990  		case 9:
 11991  			if wireType != 2 {
 11992  				return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
 11993  			}
 11994  			var stringLen uint64
 11995  			for shift := uint(0); ; shift += 7 {
 11996  				if shift >= 64 {
 11997  					return ErrIntOverflowTypes
 11998  				}
 11999  				if iNdEx >= l {
 12000  					return io.ErrUnexpectedEOF
 12001  				}
 12002  				b := dAtA[iNdEx]
 12003  				iNdEx++
 12004  				stringLen |= uint64(b&0x7F) << shift
 12005  				if b < 0x80 {
 12006  					break
 12007  				}
 12008  			}
 12009  			intStringLen := int(stringLen)
 12010  			if intStringLen < 0 {
 12011  				return ErrInvalidLengthTypes
 12012  			}
 12013  			postIndex := iNdEx + intStringLen
 12014  			if postIndex < 0 {
 12015  				return ErrInvalidLengthTypes
 12016  			}
 12017  			if postIndex > l {
 12018  				return io.ErrUnexpectedEOF
 12019  			}
 12020  			m.Sender = string(dAtA[iNdEx:postIndex])
 12021  			iNdEx = postIndex
 12022  		case 10:
 12023  			if wireType != 0 {
 12024  				return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType)
 12025  			}
 12026  			m.Priority = 0
 12027  			for shift := uint(0); ; shift += 7 {
 12028  				if shift >= 64 {
 12029  					return ErrIntOverflowTypes
 12030  				}
 12031  				if iNdEx >= l {
 12032  					return io.ErrUnexpectedEOF
 12033  				}
 12034  				b := dAtA[iNdEx]
 12035  				iNdEx++
 12036  				m.Priority |= int64(b&0x7F) << shift
 12037  				if b < 0x80 {
 12038  					break
 12039  				}
 12040  			}
 12041  		case 11:
 12042  			if wireType != 2 {
 12043  				return fmt.Errorf("proto: wrong wireType = %d for field MempoolError", wireType)
 12044  			}
 12045  			var stringLen uint64
 12046  			for shift := uint(0); ; shift += 7 {
 12047  				if shift >= 64 {
 12048  					return ErrIntOverflowTypes
 12049  				}
 12050  				if iNdEx >= l {
 12051  					return io.ErrUnexpectedEOF
 12052  				}
 12053  				b := dAtA[iNdEx]
 12054  				iNdEx++
 12055  				stringLen |= uint64(b&0x7F) << shift
 12056  				if b < 0x80 {
 12057  					break
 12058  				}
 12059  			}
 12060  			intStringLen := int(stringLen)
 12061  			if intStringLen < 0 {
 12062  				return ErrInvalidLengthTypes
 12063  			}
 12064  			postIndex := iNdEx + intStringLen
 12065  			if postIndex < 0 {
 12066  				return ErrInvalidLengthTypes
 12067  			}
 12068  			if postIndex > l {
 12069  				return io.ErrUnexpectedEOF
 12070  			}
 12071  			m.MempoolError = string(dAtA[iNdEx:postIndex])
 12072  			iNdEx = postIndex
 12073  		default:
 12074  			iNdEx = preIndex
 12075  			skippy, err := skipTypes(dAtA[iNdEx:])
 12076  			if err != nil {
 12077  				return err
 12078  			}
 12079  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12080  				return ErrInvalidLengthTypes
 12081  			}
 12082  			if (iNdEx + skippy) > l {
 12083  				return io.ErrUnexpectedEOF
 12084  			}
 12085  			iNdEx += skippy
 12086  		}
 12087  	}
 12088  
 12089  	if iNdEx > l {
 12090  		return io.ErrUnexpectedEOF
 12091  	}
 12092  	return nil
 12093  }
 12094  func (m *ResponseDeliverTx) Unmarshal(dAtA []byte) error {
 12095  	l := len(dAtA)
 12096  	iNdEx := 0
 12097  	for iNdEx < l {
 12098  		preIndex := iNdEx
 12099  		var wire uint64
 12100  		for shift := uint(0); ; shift += 7 {
 12101  			if shift >= 64 {
 12102  				return ErrIntOverflowTypes
 12103  			}
 12104  			if iNdEx >= l {
 12105  				return io.ErrUnexpectedEOF
 12106  			}
 12107  			b := dAtA[iNdEx]
 12108  			iNdEx++
 12109  			wire |= uint64(b&0x7F) << shift
 12110  			if b < 0x80 {
 12111  				break
 12112  			}
 12113  		}
 12114  		fieldNum := int32(wire >> 3)
 12115  		wireType := int(wire & 0x7)
 12116  		if wireType == 4 {
 12117  			return fmt.Errorf("proto: ResponseDeliverTx: wiretype end group for non-group")
 12118  		}
 12119  		if fieldNum <= 0 {
 12120  			return fmt.Errorf("proto: ResponseDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire)
 12121  		}
 12122  		switch fieldNum {
 12123  		case 1:
 12124  			if wireType != 0 {
 12125  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
 12126  			}
 12127  			m.Code = 0
 12128  			for shift := uint(0); ; shift += 7 {
 12129  				if shift >= 64 {
 12130  					return ErrIntOverflowTypes
 12131  				}
 12132  				if iNdEx >= l {
 12133  					return io.ErrUnexpectedEOF
 12134  				}
 12135  				b := dAtA[iNdEx]
 12136  				iNdEx++
 12137  				m.Code |= uint32(b&0x7F) << shift
 12138  				if b < 0x80 {
 12139  					break
 12140  				}
 12141  			}
 12142  		case 2:
 12143  			if wireType != 2 {
 12144  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
 12145  			}
 12146  			var byteLen int
 12147  			for shift := uint(0); ; shift += 7 {
 12148  				if shift >= 64 {
 12149  					return ErrIntOverflowTypes
 12150  				}
 12151  				if iNdEx >= l {
 12152  					return io.ErrUnexpectedEOF
 12153  				}
 12154  				b := dAtA[iNdEx]
 12155  				iNdEx++
 12156  				byteLen |= int(b&0x7F) << shift
 12157  				if b < 0x80 {
 12158  					break
 12159  				}
 12160  			}
 12161  			if byteLen < 0 {
 12162  				return ErrInvalidLengthTypes
 12163  			}
 12164  			postIndex := iNdEx + byteLen
 12165  			if postIndex < 0 {
 12166  				return ErrInvalidLengthTypes
 12167  			}
 12168  			if postIndex > l {
 12169  				return io.ErrUnexpectedEOF
 12170  			}
 12171  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
 12172  			if m.Data == nil {
 12173  				m.Data = []byte{}
 12174  			}
 12175  			iNdEx = postIndex
 12176  		case 3:
 12177  			if wireType != 2 {
 12178  				return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
 12179  			}
 12180  			var stringLen uint64
 12181  			for shift := uint(0); ; shift += 7 {
 12182  				if shift >= 64 {
 12183  					return ErrIntOverflowTypes
 12184  				}
 12185  				if iNdEx >= l {
 12186  					return io.ErrUnexpectedEOF
 12187  				}
 12188  				b := dAtA[iNdEx]
 12189  				iNdEx++
 12190  				stringLen |= uint64(b&0x7F) << shift
 12191  				if b < 0x80 {
 12192  					break
 12193  				}
 12194  			}
 12195  			intStringLen := int(stringLen)
 12196  			if intStringLen < 0 {
 12197  				return ErrInvalidLengthTypes
 12198  			}
 12199  			postIndex := iNdEx + intStringLen
 12200  			if postIndex < 0 {
 12201  				return ErrInvalidLengthTypes
 12202  			}
 12203  			if postIndex > l {
 12204  				return io.ErrUnexpectedEOF
 12205  			}
 12206  			m.Log = string(dAtA[iNdEx:postIndex])
 12207  			iNdEx = postIndex
 12208  		case 4:
 12209  			if wireType != 2 {
 12210  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
 12211  			}
 12212  			var stringLen uint64
 12213  			for shift := uint(0); ; shift += 7 {
 12214  				if shift >= 64 {
 12215  					return ErrIntOverflowTypes
 12216  				}
 12217  				if iNdEx >= l {
 12218  					return io.ErrUnexpectedEOF
 12219  				}
 12220  				b := dAtA[iNdEx]
 12221  				iNdEx++
 12222  				stringLen |= uint64(b&0x7F) << shift
 12223  				if b < 0x80 {
 12224  					break
 12225  				}
 12226  			}
 12227  			intStringLen := int(stringLen)
 12228  			if intStringLen < 0 {
 12229  				return ErrInvalidLengthTypes
 12230  			}
 12231  			postIndex := iNdEx + intStringLen
 12232  			if postIndex < 0 {
 12233  				return ErrInvalidLengthTypes
 12234  			}
 12235  			if postIndex > l {
 12236  				return io.ErrUnexpectedEOF
 12237  			}
 12238  			m.Info = string(dAtA[iNdEx:postIndex])
 12239  			iNdEx = postIndex
 12240  		case 5:
 12241  			if wireType != 0 {
 12242  				return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType)
 12243  			}
 12244  			m.GasWanted = 0
 12245  			for shift := uint(0); ; shift += 7 {
 12246  				if shift >= 64 {
 12247  					return ErrIntOverflowTypes
 12248  				}
 12249  				if iNdEx >= l {
 12250  					return io.ErrUnexpectedEOF
 12251  				}
 12252  				b := dAtA[iNdEx]
 12253  				iNdEx++
 12254  				m.GasWanted |= int64(b&0x7F) << shift
 12255  				if b < 0x80 {
 12256  					break
 12257  				}
 12258  			}
 12259  		case 6:
 12260  			if wireType != 0 {
 12261  				return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType)
 12262  			}
 12263  			m.GasUsed = 0
 12264  			for shift := uint(0); ; shift += 7 {
 12265  				if shift >= 64 {
 12266  					return ErrIntOverflowTypes
 12267  				}
 12268  				if iNdEx >= l {
 12269  					return io.ErrUnexpectedEOF
 12270  				}
 12271  				b := dAtA[iNdEx]
 12272  				iNdEx++
 12273  				m.GasUsed |= int64(b&0x7F) << shift
 12274  				if b < 0x80 {
 12275  					break
 12276  				}
 12277  			}
 12278  		case 7:
 12279  			if wireType != 2 {
 12280  				return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
 12281  			}
 12282  			var msglen int
 12283  			for shift := uint(0); ; shift += 7 {
 12284  				if shift >= 64 {
 12285  					return ErrIntOverflowTypes
 12286  				}
 12287  				if iNdEx >= l {
 12288  					return io.ErrUnexpectedEOF
 12289  				}
 12290  				b := dAtA[iNdEx]
 12291  				iNdEx++
 12292  				msglen |= int(b&0x7F) << shift
 12293  				if b < 0x80 {
 12294  					break
 12295  				}
 12296  			}
 12297  			if msglen < 0 {
 12298  				return ErrInvalidLengthTypes
 12299  			}
 12300  			postIndex := iNdEx + msglen
 12301  			if postIndex < 0 {
 12302  				return ErrInvalidLengthTypes
 12303  			}
 12304  			if postIndex > l {
 12305  				return io.ErrUnexpectedEOF
 12306  			}
 12307  			m.Events = append(m.Events, Event{})
 12308  			if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12309  				return err
 12310  			}
 12311  			iNdEx = postIndex
 12312  		case 8:
 12313  			if wireType != 2 {
 12314  				return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType)
 12315  			}
 12316  			var stringLen uint64
 12317  			for shift := uint(0); ; shift += 7 {
 12318  				if shift >= 64 {
 12319  					return ErrIntOverflowTypes
 12320  				}
 12321  				if iNdEx >= l {
 12322  					return io.ErrUnexpectedEOF
 12323  				}
 12324  				b := dAtA[iNdEx]
 12325  				iNdEx++
 12326  				stringLen |= uint64(b&0x7F) << shift
 12327  				if b < 0x80 {
 12328  					break
 12329  				}
 12330  			}
 12331  			intStringLen := int(stringLen)
 12332  			if intStringLen < 0 {
 12333  				return ErrInvalidLengthTypes
 12334  			}
 12335  			postIndex := iNdEx + intStringLen
 12336  			if postIndex < 0 {
 12337  				return ErrInvalidLengthTypes
 12338  			}
 12339  			if postIndex > l {
 12340  				return io.ErrUnexpectedEOF
 12341  			}
 12342  			m.Codespace = string(dAtA[iNdEx:postIndex])
 12343  			iNdEx = postIndex
 12344  		default:
 12345  			iNdEx = preIndex
 12346  			skippy, err := skipTypes(dAtA[iNdEx:])
 12347  			if err != nil {
 12348  				return err
 12349  			}
 12350  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12351  				return ErrInvalidLengthTypes
 12352  			}
 12353  			if (iNdEx + skippy) > l {
 12354  				return io.ErrUnexpectedEOF
 12355  			}
 12356  			iNdEx += skippy
 12357  		}
 12358  	}
 12359  
 12360  	if iNdEx > l {
 12361  		return io.ErrUnexpectedEOF
 12362  	}
 12363  	return nil
 12364  }
 12365  func (m *ResponseEndBlock) Unmarshal(dAtA []byte) error {
 12366  	l := len(dAtA)
 12367  	iNdEx := 0
 12368  	for iNdEx < l {
 12369  		preIndex := iNdEx
 12370  		var wire uint64
 12371  		for shift := uint(0); ; shift += 7 {
 12372  			if shift >= 64 {
 12373  				return ErrIntOverflowTypes
 12374  			}
 12375  			if iNdEx >= l {
 12376  				return io.ErrUnexpectedEOF
 12377  			}
 12378  			b := dAtA[iNdEx]
 12379  			iNdEx++
 12380  			wire |= uint64(b&0x7F) << shift
 12381  			if b < 0x80 {
 12382  				break
 12383  			}
 12384  		}
 12385  		fieldNum := int32(wire >> 3)
 12386  		wireType := int(wire & 0x7)
 12387  		if wireType == 4 {
 12388  			return fmt.Errorf("proto: ResponseEndBlock: wiretype end group for non-group")
 12389  		}
 12390  		if fieldNum <= 0 {
 12391  			return fmt.Errorf("proto: ResponseEndBlock: illegal tag %d (wire type %d)", fieldNum, wire)
 12392  		}
 12393  		switch fieldNum {
 12394  		case 1:
 12395  			if wireType != 2 {
 12396  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorUpdates", wireType)
 12397  			}
 12398  			var msglen int
 12399  			for shift := uint(0); ; shift += 7 {
 12400  				if shift >= 64 {
 12401  					return ErrIntOverflowTypes
 12402  				}
 12403  				if iNdEx >= l {
 12404  					return io.ErrUnexpectedEOF
 12405  				}
 12406  				b := dAtA[iNdEx]
 12407  				iNdEx++
 12408  				msglen |= int(b&0x7F) << shift
 12409  				if b < 0x80 {
 12410  					break
 12411  				}
 12412  			}
 12413  			if msglen < 0 {
 12414  				return ErrInvalidLengthTypes
 12415  			}
 12416  			postIndex := iNdEx + msglen
 12417  			if postIndex < 0 {
 12418  				return ErrInvalidLengthTypes
 12419  			}
 12420  			if postIndex > l {
 12421  				return io.ErrUnexpectedEOF
 12422  			}
 12423  			m.ValidatorUpdates = append(m.ValidatorUpdates, ValidatorUpdate{})
 12424  			if err := m.ValidatorUpdates[len(m.ValidatorUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12425  				return err
 12426  			}
 12427  			iNdEx = postIndex
 12428  		case 2:
 12429  			if wireType != 2 {
 12430  				return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParamUpdates", wireType)
 12431  			}
 12432  			var msglen int
 12433  			for shift := uint(0); ; shift += 7 {
 12434  				if shift >= 64 {
 12435  					return ErrIntOverflowTypes
 12436  				}
 12437  				if iNdEx >= l {
 12438  					return io.ErrUnexpectedEOF
 12439  				}
 12440  				b := dAtA[iNdEx]
 12441  				iNdEx++
 12442  				msglen |= int(b&0x7F) << shift
 12443  				if b < 0x80 {
 12444  					break
 12445  				}
 12446  			}
 12447  			if msglen < 0 {
 12448  				return ErrInvalidLengthTypes
 12449  			}
 12450  			postIndex := iNdEx + msglen
 12451  			if postIndex < 0 {
 12452  				return ErrInvalidLengthTypes
 12453  			}
 12454  			if postIndex > l {
 12455  				return io.ErrUnexpectedEOF
 12456  			}
 12457  			if m.ConsensusParamUpdates == nil {
 12458  				m.ConsensusParamUpdates = &ConsensusParams{}
 12459  			}
 12460  			if err := m.ConsensusParamUpdates.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12461  				return err
 12462  			}
 12463  			iNdEx = postIndex
 12464  		case 3:
 12465  			if wireType != 2 {
 12466  				return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
 12467  			}
 12468  			var msglen int
 12469  			for shift := uint(0); ; shift += 7 {
 12470  				if shift >= 64 {
 12471  					return ErrIntOverflowTypes
 12472  				}
 12473  				if iNdEx >= l {
 12474  					return io.ErrUnexpectedEOF
 12475  				}
 12476  				b := dAtA[iNdEx]
 12477  				iNdEx++
 12478  				msglen |= int(b&0x7F) << shift
 12479  				if b < 0x80 {
 12480  					break
 12481  				}
 12482  			}
 12483  			if msglen < 0 {
 12484  				return ErrInvalidLengthTypes
 12485  			}
 12486  			postIndex := iNdEx + msglen
 12487  			if postIndex < 0 {
 12488  				return ErrInvalidLengthTypes
 12489  			}
 12490  			if postIndex > l {
 12491  				return io.ErrUnexpectedEOF
 12492  			}
 12493  			m.Events = append(m.Events, Event{})
 12494  			if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12495  				return err
 12496  			}
 12497  			iNdEx = postIndex
 12498  		default:
 12499  			iNdEx = preIndex
 12500  			skippy, err := skipTypes(dAtA[iNdEx:])
 12501  			if err != nil {
 12502  				return err
 12503  			}
 12504  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12505  				return ErrInvalidLengthTypes
 12506  			}
 12507  			if (iNdEx + skippy) > l {
 12508  				return io.ErrUnexpectedEOF
 12509  			}
 12510  			iNdEx += skippy
 12511  		}
 12512  	}
 12513  
 12514  	if iNdEx > l {
 12515  		return io.ErrUnexpectedEOF
 12516  	}
 12517  	return nil
 12518  }
 12519  func (m *ResponseCommit) Unmarshal(dAtA []byte) error {
 12520  	l := len(dAtA)
 12521  	iNdEx := 0
 12522  	for iNdEx < l {
 12523  		preIndex := iNdEx
 12524  		var wire uint64
 12525  		for shift := uint(0); ; shift += 7 {
 12526  			if shift >= 64 {
 12527  				return ErrIntOverflowTypes
 12528  			}
 12529  			if iNdEx >= l {
 12530  				return io.ErrUnexpectedEOF
 12531  			}
 12532  			b := dAtA[iNdEx]
 12533  			iNdEx++
 12534  			wire |= uint64(b&0x7F) << shift
 12535  			if b < 0x80 {
 12536  				break
 12537  			}
 12538  		}
 12539  		fieldNum := int32(wire >> 3)
 12540  		wireType := int(wire & 0x7)
 12541  		if wireType == 4 {
 12542  			return fmt.Errorf("proto: ResponseCommit: wiretype end group for non-group")
 12543  		}
 12544  		if fieldNum <= 0 {
 12545  			return fmt.Errorf("proto: ResponseCommit: illegal tag %d (wire type %d)", fieldNum, wire)
 12546  		}
 12547  		switch fieldNum {
 12548  		case 2:
 12549  			if wireType != 2 {
 12550  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
 12551  			}
 12552  			var byteLen int
 12553  			for shift := uint(0); ; shift += 7 {
 12554  				if shift >= 64 {
 12555  					return ErrIntOverflowTypes
 12556  				}
 12557  				if iNdEx >= l {
 12558  					return io.ErrUnexpectedEOF
 12559  				}
 12560  				b := dAtA[iNdEx]
 12561  				iNdEx++
 12562  				byteLen |= int(b&0x7F) << shift
 12563  				if b < 0x80 {
 12564  					break
 12565  				}
 12566  			}
 12567  			if byteLen < 0 {
 12568  				return ErrInvalidLengthTypes
 12569  			}
 12570  			postIndex := iNdEx + byteLen
 12571  			if postIndex < 0 {
 12572  				return ErrInvalidLengthTypes
 12573  			}
 12574  			if postIndex > l {
 12575  				return io.ErrUnexpectedEOF
 12576  			}
 12577  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
 12578  			if m.Data == nil {
 12579  				m.Data = []byte{}
 12580  			}
 12581  			iNdEx = postIndex
 12582  		case 3:
 12583  			if wireType != 0 {
 12584  				return fmt.Errorf("proto: wrong wireType = %d for field RetainHeight", wireType)
 12585  			}
 12586  			m.RetainHeight = 0
 12587  			for shift := uint(0); ; shift += 7 {
 12588  				if shift >= 64 {
 12589  					return ErrIntOverflowTypes
 12590  				}
 12591  				if iNdEx >= l {
 12592  					return io.ErrUnexpectedEOF
 12593  				}
 12594  				b := dAtA[iNdEx]
 12595  				iNdEx++
 12596  				m.RetainHeight |= int64(b&0x7F) << shift
 12597  				if b < 0x80 {
 12598  					break
 12599  				}
 12600  			}
 12601  		default:
 12602  			iNdEx = preIndex
 12603  			skippy, err := skipTypes(dAtA[iNdEx:])
 12604  			if err != nil {
 12605  				return err
 12606  			}
 12607  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12608  				return ErrInvalidLengthTypes
 12609  			}
 12610  			if (iNdEx + skippy) > l {
 12611  				return io.ErrUnexpectedEOF
 12612  			}
 12613  			iNdEx += skippy
 12614  		}
 12615  	}
 12616  
 12617  	if iNdEx > l {
 12618  		return io.ErrUnexpectedEOF
 12619  	}
 12620  	return nil
 12621  }
 12622  func (m *ResponseListSnapshots) Unmarshal(dAtA []byte) error {
 12623  	l := len(dAtA)
 12624  	iNdEx := 0
 12625  	for iNdEx < l {
 12626  		preIndex := iNdEx
 12627  		var wire uint64
 12628  		for shift := uint(0); ; shift += 7 {
 12629  			if shift >= 64 {
 12630  				return ErrIntOverflowTypes
 12631  			}
 12632  			if iNdEx >= l {
 12633  				return io.ErrUnexpectedEOF
 12634  			}
 12635  			b := dAtA[iNdEx]
 12636  			iNdEx++
 12637  			wire |= uint64(b&0x7F) << shift
 12638  			if b < 0x80 {
 12639  				break
 12640  			}
 12641  		}
 12642  		fieldNum := int32(wire >> 3)
 12643  		wireType := int(wire & 0x7)
 12644  		if wireType == 4 {
 12645  			return fmt.Errorf("proto: ResponseListSnapshots: wiretype end group for non-group")
 12646  		}
 12647  		if fieldNum <= 0 {
 12648  			return fmt.Errorf("proto: ResponseListSnapshots: illegal tag %d (wire type %d)", fieldNum, wire)
 12649  		}
 12650  		switch fieldNum {
 12651  		case 1:
 12652  			if wireType != 2 {
 12653  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshots", wireType)
 12654  			}
 12655  			var msglen int
 12656  			for shift := uint(0); ; shift += 7 {
 12657  				if shift >= 64 {
 12658  					return ErrIntOverflowTypes
 12659  				}
 12660  				if iNdEx >= l {
 12661  					return io.ErrUnexpectedEOF
 12662  				}
 12663  				b := dAtA[iNdEx]
 12664  				iNdEx++
 12665  				msglen |= int(b&0x7F) << shift
 12666  				if b < 0x80 {
 12667  					break
 12668  				}
 12669  			}
 12670  			if msglen < 0 {
 12671  				return ErrInvalidLengthTypes
 12672  			}
 12673  			postIndex := iNdEx + msglen
 12674  			if postIndex < 0 {
 12675  				return ErrInvalidLengthTypes
 12676  			}
 12677  			if postIndex > l {
 12678  				return io.ErrUnexpectedEOF
 12679  			}
 12680  			m.Snapshots = append(m.Snapshots, &Snapshot{})
 12681  			if err := m.Snapshots[len(m.Snapshots)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12682  				return err
 12683  			}
 12684  			iNdEx = postIndex
 12685  		default:
 12686  			iNdEx = preIndex
 12687  			skippy, err := skipTypes(dAtA[iNdEx:])
 12688  			if err != nil {
 12689  				return err
 12690  			}
 12691  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12692  				return ErrInvalidLengthTypes
 12693  			}
 12694  			if (iNdEx + skippy) > l {
 12695  				return io.ErrUnexpectedEOF
 12696  			}
 12697  			iNdEx += skippy
 12698  		}
 12699  	}
 12700  
 12701  	if iNdEx > l {
 12702  		return io.ErrUnexpectedEOF
 12703  	}
 12704  	return nil
 12705  }
 12706  func (m *ResponseOfferSnapshot) Unmarshal(dAtA []byte) error {
 12707  	l := len(dAtA)
 12708  	iNdEx := 0
 12709  	for iNdEx < l {
 12710  		preIndex := iNdEx
 12711  		var wire uint64
 12712  		for shift := uint(0); ; shift += 7 {
 12713  			if shift >= 64 {
 12714  				return ErrIntOverflowTypes
 12715  			}
 12716  			if iNdEx >= l {
 12717  				return io.ErrUnexpectedEOF
 12718  			}
 12719  			b := dAtA[iNdEx]
 12720  			iNdEx++
 12721  			wire |= uint64(b&0x7F) << shift
 12722  			if b < 0x80 {
 12723  				break
 12724  			}
 12725  		}
 12726  		fieldNum := int32(wire >> 3)
 12727  		wireType := int(wire & 0x7)
 12728  		if wireType == 4 {
 12729  			return fmt.Errorf("proto: ResponseOfferSnapshot: wiretype end group for non-group")
 12730  		}
 12731  		if fieldNum <= 0 {
 12732  			return fmt.Errorf("proto: ResponseOfferSnapshot: illegal tag %d (wire type %d)", fieldNum, wire)
 12733  		}
 12734  		switch fieldNum {
 12735  		case 1:
 12736  			if wireType != 0 {
 12737  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 12738  			}
 12739  			m.Result = 0
 12740  			for shift := uint(0); ; shift += 7 {
 12741  				if shift >= 64 {
 12742  					return ErrIntOverflowTypes
 12743  				}
 12744  				if iNdEx >= l {
 12745  					return io.ErrUnexpectedEOF
 12746  				}
 12747  				b := dAtA[iNdEx]
 12748  				iNdEx++
 12749  				m.Result |= ResponseOfferSnapshot_Result(b&0x7F) << shift
 12750  				if b < 0x80 {
 12751  					break
 12752  				}
 12753  			}
 12754  		default:
 12755  			iNdEx = preIndex
 12756  			skippy, err := skipTypes(dAtA[iNdEx:])
 12757  			if err != nil {
 12758  				return err
 12759  			}
 12760  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12761  				return ErrInvalidLengthTypes
 12762  			}
 12763  			if (iNdEx + skippy) > l {
 12764  				return io.ErrUnexpectedEOF
 12765  			}
 12766  			iNdEx += skippy
 12767  		}
 12768  	}
 12769  
 12770  	if iNdEx > l {
 12771  		return io.ErrUnexpectedEOF
 12772  	}
 12773  	return nil
 12774  }
 12775  func (m *ResponseLoadSnapshotChunk) Unmarshal(dAtA []byte) error {
 12776  	l := len(dAtA)
 12777  	iNdEx := 0
 12778  	for iNdEx < l {
 12779  		preIndex := iNdEx
 12780  		var wire uint64
 12781  		for shift := uint(0); ; shift += 7 {
 12782  			if shift >= 64 {
 12783  				return ErrIntOverflowTypes
 12784  			}
 12785  			if iNdEx >= l {
 12786  				return io.ErrUnexpectedEOF
 12787  			}
 12788  			b := dAtA[iNdEx]
 12789  			iNdEx++
 12790  			wire |= uint64(b&0x7F) << shift
 12791  			if b < 0x80 {
 12792  				break
 12793  			}
 12794  		}
 12795  		fieldNum := int32(wire >> 3)
 12796  		wireType := int(wire & 0x7)
 12797  		if wireType == 4 {
 12798  			return fmt.Errorf("proto: ResponseLoadSnapshotChunk: wiretype end group for non-group")
 12799  		}
 12800  		if fieldNum <= 0 {
 12801  			return fmt.Errorf("proto: ResponseLoadSnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire)
 12802  		}
 12803  		switch fieldNum {
 12804  		case 1:
 12805  			if wireType != 2 {
 12806  				return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType)
 12807  			}
 12808  			var byteLen int
 12809  			for shift := uint(0); ; shift += 7 {
 12810  				if shift >= 64 {
 12811  					return ErrIntOverflowTypes
 12812  				}
 12813  				if iNdEx >= l {
 12814  					return io.ErrUnexpectedEOF
 12815  				}
 12816  				b := dAtA[iNdEx]
 12817  				iNdEx++
 12818  				byteLen |= int(b&0x7F) << shift
 12819  				if b < 0x80 {
 12820  					break
 12821  				}
 12822  			}
 12823  			if byteLen < 0 {
 12824  				return ErrInvalidLengthTypes
 12825  			}
 12826  			postIndex := iNdEx + byteLen
 12827  			if postIndex < 0 {
 12828  				return ErrInvalidLengthTypes
 12829  			}
 12830  			if postIndex > l {
 12831  				return io.ErrUnexpectedEOF
 12832  			}
 12833  			m.Chunk = append(m.Chunk[:0], dAtA[iNdEx:postIndex]...)
 12834  			if m.Chunk == nil {
 12835  				m.Chunk = []byte{}
 12836  			}
 12837  			iNdEx = postIndex
 12838  		default:
 12839  			iNdEx = preIndex
 12840  			skippy, err := skipTypes(dAtA[iNdEx:])
 12841  			if err != nil {
 12842  				return err
 12843  			}
 12844  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12845  				return ErrInvalidLengthTypes
 12846  			}
 12847  			if (iNdEx + skippy) > l {
 12848  				return io.ErrUnexpectedEOF
 12849  			}
 12850  			iNdEx += skippy
 12851  		}
 12852  	}
 12853  
 12854  	if iNdEx > l {
 12855  		return io.ErrUnexpectedEOF
 12856  	}
 12857  	return nil
 12858  }
 12859  func (m *ResponseApplySnapshotChunk) Unmarshal(dAtA []byte) error {
 12860  	l := len(dAtA)
 12861  	iNdEx := 0
 12862  	for iNdEx < l {
 12863  		preIndex := iNdEx
 12864  		var wire uint64
 12865  		for shift := uint(0); ; shift += 7 {
 12866  			if shift >= 64 {
 12867  				return ErrIntOverflowTypes
 12868  			}
 12869  			if iNdEx >= l {
 12870  				return io.ErrUnexpectedEOF
 12871  			}
 12872  			b := dAtA[iNdEx]
 12873  			iNdEx++
 12874  			wire |= uint64(b&0x7F) << shift
 12875  			if b < 0x80 {
 12876  				break
 12877  			}
 12878  		}
 12879  		fieldNum := int32(wire >> 3)
 12880  		wireType := int(wire & 0x7)
 12881  		if wireType == 4 {
 12882  			return fmt.Errorf("proto: ResponseApplySnapshotChunk: wiretype end group for non-group")
 12883  		}
 12884  		if fieldNum <= 0 {
 12885  			return fmt.Errorf("proto: ResponseApplySnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire)
 12886  		}
 12887  		switch fieldNum {
 12888  		case 1:
 12889  			if wireType != 0 {
 12890  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 12891  			}
 12892  			m.Result = 0
 12893  			for shift := uint(0); ; shift += 7 {
 12894  				if shift >= 64 {
 12895  					return ErrIntOverflowTypes
 12896  				}
 12897  				if iNdEx >= l {
 12898  					return io.ErrUnexpectedEOF
 12899  				}
 12900  				b := dAtA[iNdEx]
 12901  				iNdEx++
 12902  				m.Result |= ResponseApplySnapshotChunk_Result(b&0x7F) << shift
 12903  				if b < 0x80 {
 12904  					break
 12905  				}
 12906  			}
 12907  		case 2:
 12908  			if wireType == 0 {
 12909  				var v uint32
 12910  				for shift := uint(0); ; shift += 7 {
 12911  					if shift >= 64 {
 12912  						return ErrIntOverflowTypes
 12913  					}
 12914  					if iNdEx >= l {
 12915  						return io.ErrUnexpectedEOF
 12916  					}
 12917  					b := dAtA[iNdEx]
 12918  					iNdEx++
 12919  					v |= uint32(b&0x7F) << shift
 12920  					if b < 0x80 {
 12921  						break
 12922  					}
 12923  				}
 12924  				m.RefetchChunks = append(m.RefetchChunks, v)
 12925  			} else if wireType == 2 {
 12926  				var packedLen int
 12927  				for shift := uint(0); ; shift += 7 {
 12928  					if shift >= 64 {
 12929  						return ErrIntOverflowTypes
 12930  					}
 12931  					if iNdEx >= l {
 12932  						return io.ErrUnexpectedEOF
 12933  					}
 12934  					b := dAtA[iNdEx]
 12935  					iNdEx++
 12936  					packedLen |= int(b&0x7F) << shift
 12937  					if b < 0x80 {
 12938  						break
 12939  					}
 12940  				}
 12941  				if packedLen < 0 {
 12942  					return ErrInvalidLengthTypes
 12943  				}
 12944  				postIndex := iNdEx + packedLen
 12945  				if postIndex < 0 {
 12946  					return ErrInvalidLengthTypes
 12947  				}
 12948  				if postIndex > l {
 12949  					return io.ErrUnexpectedEOF
 12950  				}
 12951  				var elementCount int
 12952  				var count int
 12953  				for _, integer := range dAtA[iNdEx:postIndex] {
 12954  					if integer < 128 {
 12955  						count++
 12956  					}
 12957  				}
 12958  				elementCount = count
 12959  				if elementCount != 0 && len(m.RefetchChunks) == 0 {
 12960  					m.RefetchChunks = make([]uint32, 0, elementCount)
 12961  				}
 12962  				for iNdEx < postIndex {
 12963  					var v uint32
 12964  					for shift := uint(0); ; shift += 7 {
 12965  						if shift >= 64 {
 12966  							return ErrIntOverflowTypes
 12967  						}
 12968  						if iNdEx >= l {
 12969  							return io.ErrUnexpectedEOF
 12970  						}
 12971  						b := dAtA[iNdEx]
 12972  						iNdEx++
 12973  						v |= uint32(b&0x7F) << shift
 12974  						if b < 0x80 {
 12975  							break
 12976  						}
 12977  					}
 12978  					m.RefetchChunks = append(m.RefetchChunks, v)
 12979  				}
 12980  			} else {
 12981  				return fmt.Errorf("proto: wrong wireType = %d for field RefetchChunks", wireType)
 12982  			}
 12983  		case 3:
 12984  			if wireType != 2 {
 12985  				return fmt.Errorf("proto: wrong wireType = %d for field RejectSenders", wireType)
 12986  			}
 12987  			var stringLen uint64
 12988  			for shift := uint(0); ; shift += 7 {
 12989  				if shift >= 64 {
 12990  					return ErrIntOverflowTypes
 12991  				}
 12992  				if iNdEx >= l {
 12993  					return io.ErrUnexpectedEOF
 12994  				}
 12995  				b := dAtA[iNdEx]
 12996  				iNdEx++
 12997  				stringLen |= uint64(b&0x7F) << shift
 12998  				if b < 0x80 {
 12999  					break
 13000  				}
 13001  			}
 13002  			intStringLen := int(stringLen)
 13003  			if intStringLen < 0 {
 13004  				return ErrInvalidLengthTypes
 13005  			}
 13006  			postIndex := iNdEx + intStringLen
 13007  			if postIndex < 0 {
 13008  				return ErrInvalidLengthTypes
 13009  			}
 13010  			if postIndex > l {
 13011  				return io.ErrUnexpectedEOF
 13012  			}
 13013  			m.RejectSenders = append(m.RejectSenders, string(dAtA[iNdEx:postIndex]))
 13014  			iNdEx = postIndex
 13015  		default:
 13016  			iNdEx = preIndex
 13017  			skippy, err := skipTypes(dAtA[iNdEx:])
 13018  			if err != nil {
 13019  				return err
 13020  			}
 13021  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13022  				return ErrInvalidLengthTypes
 13023  			}
 13024  			if (iNdEx + skippy) > l {
 13025  				return io.ErrUnexpectedEOF
 13026  			}
 13027  			iNdEx += skippy
 13028  		}
 13029  	}
 13030  
 13031  	if iNdEx > l {
 13032  		return io.ErrUnexpectedEOF
 13033  	}
 13034  	return nil
 13035  }
 13036  func (m *ConsensusParams) Unmarshal(dAtA []byte) error {
 13037  	l := len(dAtA)
 13038  	iNdEx := 0
 13039  	for iNdEx < l {
 13040  		preIndex := iNdEx
 13041  		var wire uint64
 13042  		for shift := uint(0); ; shift += 7 {
 13043  			if shift >= 64 {
 13044  				return ErrIntOverflowTypes
 13045  			}
 13046  			if iNdEx >= l {
 13047  				return io.ErrUnexpectedEOF
 13048  			}
 13049  			b := dAtA[iNdEx]
 13050  			iNdEx++
 13051  			wire |= uint64(b&0x7F) << shift
 13052  			if b < 0x80 {
 13053  				break
 13054  			}
 13055  		}
 13056  		fieldNum := int32(wire >> 3)
 13057  		wireType := int(wire & 0x7)
 13058  		if wireType == 4 {
 13059  			return fmt.Errorf("proto: ConsensusParams: wiretype end group for non-group")
 13060  		}
 13061  		if fieldNum <= 0 {
 13062  			return fmt.Errorf("proto: ConsensusParams: illegal tag %d (wire type %d)", fieldNum, wire)
 13063  		}
 13064  		switch fieldNum {
 13065  		case 1:
 13066  			if wireType != 2 {
 13067  				return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType)
 13068  			}
 13069  			var msglen int
 13070  			for shift := uint(0); ; shift += 7 {
 13071  				if shift >= 64 {
 13072  					return ErrIntOverflowTypes
 13073  				}
 13074  				if iNdEx >= l {
 13075  					return io.ErrUnexpectedEOF
 13076  				}
 13077  				b := dAtA[iNdEx]
 13078  				iNdEx++
 13079  				msglen |= int(b&0x7F) << shift
 13080  				if b < 0x80 {
 13081  					break
 13082  				}
 13083  			}
 13084  			if msglen < 0 {
 13085  				return ErrInvalidLengthTypes
 13086  			}
 13087  			postIndex := iNdEx + msglen
 13088  			if postIndex < 0 {
 13089  				return ErrInvalidLengthTypes
 13090  			}
 13091  			if postIndex > l {
 13092  				return io.ErrUnexpectedEOF
 13093  			}
 13094  			if m.Block == nil {
 13095  				m.Block = &BlockParams{}
 13096  			}
 13097  			if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13098  				return err
 13099  			}
 13100  			iNdEx = postIndex
 13101  		case 2:
 13102  			if wireType != 2 {
 13103  				return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType)
 13104  			}
 13105  			var msglen int
 13106  			for shift := uint(0); ; shift += 7 {
 13107  				if shift >= 64 {
 13108  					return ErrIntOverflowTypes
 13109  				}
 13110  				if iNdEx >= l {
 13111  					return io.ErrUnexpectedEOF
 13112  				}
 13113  				b := dAtA[iNdEx]
 13114  				iNdEx++
 13115  				msglen |= int(b&0x7F) << shift
 13116  				if b < 0x80 {
 13117  					break
 13118  				}
 13119  			}
 13120  			if msglen < 0 {
 13121  				return ErrInvalidLengthTypes
 13122  			}
 13123  			postIndex := iNdEx + msglen
 13124  			if postIndex < 0 {
 13125  				return ErrInvalidLengthTypes
 13126  			}
 13127  			if postIndex > l {
 13128  				return io.ErrUnexpectedEOF
 13129  			}
 13130  			if m.Evidence == nil {
 13131  				m.Evidence = &types1.EvidenceParams{}
 13132  			}
 13133  			if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13134  				return err
 13135  			}
 13136  			iNdEx = postIndex
 13137  		case 3:
 13138  			if wireType != 2 {
 13139  				return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
 13140  			}
 13141  			var msglen int
 13142  			for shift := uint(0); ; shift += 7 {
 13143  				if shift >= 64 {
 13144  					return ErrIntOverflowTypes
 13145  				}
 13146  				if iNdEx >= l {
 13147  					return io.ErrUnexpectedEOF
 13148  				}
 13149  				b := dAtA[iNdEx]
 13150  				iNdEx++
 13151  				msglen |= int(b&0x7F) << shift
 13152  				if b < 0x80 {
 13153  					break
 13154  				}
 13155  			}
 13156  			if msglen < 0 {
 13157  				return ErrInvalidLengthTypes
 13158  			}
 13159  			postIndex := iNdEx + msglen
 13160  			if postIndex < 0 {
 13161  				return ErrInvalidLengthTypes
 13162  			}
 13163  			if postIndex > l {
 13164  				return io.ErrUnexpectedEOF
 13165  			}
 13166  			if m.Validator == nil {
 13167  				m.Validator = &types1.ValidatorParams{}
 13168  			}
 13169  			if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13170  				return err
 13171  			}
 13172  			iNdEx = postIndex
 13173  		case 4:
 13174  			if wireType != 2 {
 13175  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
 13176  			}
 13177  			var msglen int
 13178  			for shift := uint(0); ; shift += 7 {
 13179  				if shift >= 64 {
 13180  					return ErrIntOverflowTypes
 13181  				}
 13182  				if iNdEx >= l {
 13183  					return io.ErrUnexpectedEOF
 13184  				}
 13185  				b := dAtA[iNdEx]
 13186  				iNdEx++
 13187  				msglen |= int(b&0x7F) << shift
 13188  				if b < 0x80 {
 13189  					break
 13190  				}
 13191  			}
 13192  			if msglen < 0 {
 13193  				return ErrInvalidLengthTypes
 13194  			}
 13195  			postIndex := iNdEx + msglen
 13196  			if postIndex < 0 {
 13197  				return ErrInvalidLengthTypes
 13198  			}
 13199  			if postIndex > l {
 13200  				return io.ErrUnexpectedEOF
 13201  			}
 13202  			if m.Version == nil {
 13203  				m.Version = &types1.VersionParams{}
 13204  			}
 13205  			if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13206  				return err
 13207  			}
 13208  			iNdEx = postIndex
 13209  		default:
 13210  			iNdEx = preIndex
 13211  			skippy, err := skipTypes(dAtA[iNdEx:])
 13212  			if err != nil {
 13213  				return err
 13214  			}
 13215  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13216  				return ErrInvalidLengthTypes
 13217  			}
 13218  			if (iNdEx + skippy) > l {
 13219  				return io.ErrUnexpectedEOF
 13220  			}
 13221  			iNdEx += skippy
 13222  		}
 13223  	}
 13224  
 13225  	if iNdEx > l {
 13226  		return io.ErrUnexpectedEOF
 13227  	}
 13228  	return nil
 13229  }
 13230  func (m *BlockParams) Unmarshal(dAtA []byte) error {
 13231  	l := len(dAtA)
 13232  	iNdEx := 0
 13233  	for iNdEx < l {
 13234  		preIndex := iNdEx
 13235  		var wire uint64
 13236  		for shift := uint(0); ; shift += 7 {
 13237  			if shift >= 64 {
 13238  				return ErrIntOverflowTypes
 13239  			}
 13240  			if iNdEx >= l {
 13241  				return io.ErrUnexpectedEOF
 13242  			}
 13243  			b := dAtA[iNdEx]
 13244  			iNdEx++
 13245  			wire |= uint64(b&0x7F) << shift
 13246  			if b < 0x80 {
 13247  				break
 13248  			}
 13249  		}
 13250  		fieldNum := int32(wire >> 3)
 13251  		wireType := int(wire & 0x7)
 13252  		if wireType == 4 {
 13253  			return fmt.Errorf("proto: BlockParams: wiretype end group for non-group")
 13254  		}
 13255  		if fieldNum <= 0 {
 13256  			return fmt.Errorf("proto: BlockParams: illegal tag %d (wire type %d)", fieldNum, wire)
 13257  		}
 13258  		switch fieldNum {
 13259  		case 1:
 13260  			if wireType != 0 {
 13261  				return fmt.Errorf("proto: wrong wireType = %d for field MaxBytes", wireType)
 13262  			}
 13263  			m.MaxBytes = 0
 13264  			for shift := uint(0); ; shift += 7 {
 13265  				if shift >= 64 {
 13266  					return ErrIntOverflowTypes
 13267  				}
 13268  				if iNdEx >= l {
 13269  					return io.ErrUnexpectedEOF
 13270  				}
 13271  				b := dAtA[iNdEx]
 13272  				iNdEx++
 13273  				m.MaxBytes |= int64(b&0x7F) << shift
 13274  				if b < 0x80 {
 13275  					break
 13276  				}
 13277  			}
 13278  		case 2:
 13279  			if wireType != 0 {
 13280  				return fmt.Errorf("proto: wrong wireType = %d for field MaxGas", wireType)
 13281  			}
 13282  			m.MaxGas = 0
 13283  			for shift := uint(0); ; shift += 7 {
 13284  				if shift >= 64 {
 13285  					return ErrIntOverflowTypes
 13286  				}
 13287  				if iNdEx >= l {
 13288  					return io.ErrUnexpectedEOF
 13289  				}
 13290  				b := dAtA[iNdEx]
 13291  				iNdEx++
 13292  				m.MaxGas |= int64(b&0x7F) << shift
 13293  				if b < 0x80 {
 13294  					break
 13295  				}
 13296  			}
 13297  		default:
 13298  			iNdEx = preIndex
 13299  			skippy, err := skipTypes(dAtA[iNdEx:])
 13300  			if err != nil {
 13301  				return err
 13302  			}
 13303  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13304  				return ErrInvalidLengthTypes
 13305  			}
 13306  			if (iNdEx + skippy) > l {
 13307  				return io.ErrUnexpectedEOF
 13308  			}
 13309  			iNdEx += skippy
 13310  		}
 13311  	}
 13312  
 13313  	if iNdEx > l {
 13314  		return io.ErrUnexpectedEOF
 13315  	}
 13316  	return nil
 13317  }
 13318  func (m *LastCommitInfo) Unmarshal(dAtA []byte) error {
 13319  	l := len(dAtA)
 13320  	iNdEx := 0
 13321  	for iNdEx < l {
 13322  		preIndex := iNdEx
 13323  		var wire uint64
 13324  		for shift := uint(0); ; shift += 7 {
 13325  			if shift >= 64 {
 13326  				return ErrIntOverflowTypes
 13327  			}
 13328  			if iNdEx >= l {
 13329  				return io.ErrUnexpectedEOF
 13330  			}
 13331  			b := dAtA[iNdEx]
 13332  			iNdEx++
 13333  			wire |= uint64(b&0x7F) << shift
 13334  			if b < 0x80 {
 13335  				break
 13336  			}
 13337  		}
 13338  		fieldNum := int32(wire >> 3)
 13339  		wireType := int(wire & 0x7)
 13340  		if wireType == 4 {
 13341  			return fmt.Errorf("proto: LastCommitInfo: wiretype end group for non-group")
 13342  		}
 13343  		if fieldNum <= 0 {
 13344  			return fmt.Errorf("proto: LastCommitInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 13345  		}
 13346  		switch fieldNum {
 13347  		case 1:
 13348  			if wireType != 0 {
 13349  				return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
 13350  			}
 13351  			m.Round = 0
 13352  			for shift := uint(0); ; shift += 7 {
 13353  				if shift >= 64 {
 13354  					return ErrIntOverflowTypes
 13355  				}
 13356  				if iNdEx >= l {
 13357  					return io.ErrUnexpectedEOF
 13358  				}
 13359  				b := dAtA[iNdEx]
 13360  				iNdEx++
 13361  				m.Round |= int32(b&0x7F) << shift
 13362  				if b < 0x80 {
 13363  					break
 13364  				}
 13365  			}
 13366  		case 2:
 13367  			if wireType != 2 {
 13368  				return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType)
 13369  			}
 13370  			var msglen int
 13371  			for shift := uint(0); ; shift += 7 {
 13372  				if shift >= 64 {
 13373  					return ErrIntOverflowTypes
 13374  				}
 13375  				if iNdEx >= l {
 13376  					return io.ErrUnexpectedEOF
 13377  				}
 13378  				b := dAtA[iNdEx]
 13379  				iNdEx++
 13380  				msglen |= int(b&0x7F) << shift
 13381  				if b < 0x80 {
 13382  					break
 13383  				}
 13384  			}
 13385  			if msglen < 0 {
 13386  				return ErrInvalidLengthTypes
 13387  			}
 13388  			postIndex := iNdEx + msglen
 13389  			if postIndex < 0 {
 13390  				return ErrInvalidLengthTypes
 13391  			}
 13392  			if postIndex > l {
 13393  				return io.ErrUnexpectedEOF
 13394  			}
 13395  			m.Votes = append(m.Votes, VoteInfo{})
 13396  			if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13397  				return err
 13398  			}
 13399  			iNdEx = postIndex
 13400  		default:
 13401  			iNdEx = preIndex
 13402  			skippy, err := skipTypes(dAtA[iNdEx:])
 13403  			if err != nil {
 13404  				return err
 13405  			}
 13406  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13407  				return ErrInvalidLengthTypes
 13408  			}
 13409  			if (iNdEx + skippy) > l {
 13410  				return io.ErrUnexpectedEOF
 13411  			}
 13412  			iNdEx += skippy
 13413  		}
 13414  	}
 13415  
 13416  	if iNdEx > l {
 13417  		return io.ErrUnexpectedEOF
 13418  	}
 13419  	return nil
 13420  }
 13421  func (m *Event) Unmarshal(dAtA []byte) error {
 13422  	l := len(dAtA)
 13423  	iNdEx := 0
 13424  	for iNdEx < l {
 13425  		preIndex := iNdEx
 13426  		var wire uint64
 13427  		for shift := uint(0); ; shift += 7 {
 13428  			if shift >= 64 {
 13429  				return ErrIntOverflowTypes
 13430  			}
 13431  			if iNdEx >= l {
 13432  				return io.ErrUnexpectedEOF
 13433  			}
 13434  			b := dAtA[iNdEx]
 13435  			iNdEx++
 13436  			wire |= uint64(b&0x7F) << shift
 13437  			if b < 0x80 {
 13438  				break
 13439  			}
 13440  		}
 13441  		fieldNum := int32(wire >> 3)
 13442  		wireType := int(wire & 0x7)
 13443  		if wireType == 4 {
 13444  			return fmt.Errorf("proto: Event: wiretype end group for non-group")
 13445  		}
 13446  		if fieldNum <= 0 {
 13447  			return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire)
 13448  		}
 13449  		switch fieldNum {
 13450  		case 1:
 13451  			if wireType != 2 {
 13452  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
 13453  			}
 13454  			var stringLen uint64
 13455  			for shift := uint(0); ; shift += 7 {
 13456  				if shift >= 64 {
 13457  					return ErrIntOverflowTypes
 13458  				}
 13459  				if iNdEx >= l {
 13460  					return io.ErrUnexpectedEOF
 13461  				}
 13462  				b := dAtA[iNdEx]
 13463  				iNdEx++
 13464  				stringLen |= uint64(b&0x7F) << shift
 13465  				if b < 0x80 {
 13466  					break
 13467  				}
 13468  			}
 13469  			intStringLen := int(stringLen)
 13470  			if intStringLen < 0 {
 13471  				return ErrInvalidLengthTypes
 13472  			}
 13473  			postIndex := iNdEx + intStringLen
 13474  			if postIndex < 0 {
 13475  				return ErrInvalidLengthTypes
 13476  			}
 13477  			if postIndex > l {
 13478  				return io.ErrUnexpectedEOF
 13479  			}
 13480  			m.Type = string(dAtA[iNdEx:postIndex])
 13481  			iNdEx = postIndex
 13482  		case 2:
 13483  			if wireType != 2 {
 13484  				return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType)
 13485  			}
 13486  			var msglen int
 13487  			for shift := uint(0); ; shift += 7 {
 13488  				if shift >= 64 {
 13489  					return ErrIntOverflowTypes
 13490  				}
 13491  				if iNdEx >= l {
 13492  					return io.ErrUnexpectedEOF
 13493  				}
 13494  				b := dAtA[iNdEx]
 13495  				iNdEx++
 13496  				msglen |= int(b&0x7F) << shift
 13497  				if b < 0x80 {
 13498  					break
 13499  				}
 13500  			}
 13501  			if msglen < 0 {
 13502  				return ErrInvalidLengthTypes
 13503  			}
 13504  			postIndex := iNdEx + msglen
 13505  			if postIndex < 0 {
 13506  				return ErrInvalidLengthTypes
 13507  			}
 13508  			if postIndex > l {
 13509  				return io.ErrUnexpectedEOF
 13510  			}
 13511  			m.Attributes = append(m.Attributes, EventAttribute{})
 13512  			if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13513  				return err
 13514  			}
 13515  			iNdEx = postIndex
 13516  		default:
 13517  			iNdEx = preIndex
 13518  			skippy, err := skipTypes(dAtA[iNdEx:])
 13519  			if err != nil {
 13520  				return err
 13521  			}
 13522  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13523  				return ErrInvalidLengthTypes
 13524  			}
 13525  			if (iNdEx + skippy) > l {
 13526  				return io.ErrUnexpectedEOF
 13527  			}
 13528  			iNdEx += skippy
 13529  		}
 13530  	}
 13531  
 13532  	if iNdEx > l {
 13533  		return io.ErrUnexpectedEOF
 13534  	}
 13535  	return nil
 13536  }
 13537  func (m *EventAttribute) Unmarshal(dAtA []byte) error {
 13538  	l := len(dAtA)
 13539  	iNdEx := 0
 13540  	for iNdEx < l {
 13541  		preIndex := iNdEx
 13542  		var wire uint64
 13543  		for shift := uint(0); ; shift += 7 {
 13544  			if shift >= 64 {
 13545  				return ErrIntOverflowTypes
 13546  			}
 13547  			if iNdEx >= l {
 13548  				return io.ErrUnexpectedEOF
 13549  			}
 13550  			b := dAtA[iNdEx]
 13551  			iNdEx++
 13552  			wire |= uint64(b&0x7F) << shift
 13553  			if b < 0x80 {
 13554  				break
 13555  			}
 13556  		}
 13557  		fieldNum := int32(wire >> 3)
 13558  		wireType := int(wire & 0x7)
 13559  		if wireType == 4 {
 13560  			return fmt.Errorf("proto: EventAttribute: wiretype end group for non-group")
 13561  		}
 13562  		if fieldNum <= 0 {
 13563  			return fmt.Errorf("proto: EventAttribute: illegal tag %d (wire type %d)", fieldNum, wire)
 13564  		}
 13565  		switch fieldNum {
 13566  		case 1:
 13567  			if wireType != 2 {
 13568  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 13569  			}
 13570  			var byteLen int
 13571  			for shift := uint(0); ; shift += 7 {
 13572  				if shift >= 64 {
 13573  					return ErrIntOverflowTypes
 13574  				}
 13575  				if iNdEx >= l {
 13576  					return io.ErrUnexpectedEOF
 13577  				}
 13578  				b := dAtA[iNdEx]
 13579  				iNdEx++
 13580  				byteLen |= int(b&0x7F) << shift
 13581  				if b < 0x80 {
 13582  					break
 13583  				}
 13584  			}
 13585  			if byteLen < 0 {
 13586  				return ErrInvalidLengthTypes
 13587  			}
 13588  			postIndex := iNdEx + byteLen
 13589  			if postIndex < 0 {
 13590  				return ErrInvalidLengthTypes
 13591  			}
 13592  			if postIndex > l {
 13593  				return io.ErrUnexpectedEOF
 13594  			}
 13595  			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
 13596  			if m.Key == nil {
 13597  				m.Key = []byte{}
 13598  			}
 13599  			iNdEx = postIndex
 13600  		case 2:
 13601  			if wireType != 2 {
 13602  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
 13603  			}
 13604  			var byteLen int
 13605  			for shift := uint(0); ; shift += 7 {
 13606  				if shift >= 64 {
 13607  					return ErrIntOverflowTypes
 13608  				}
 13609  				if iNdEx >= l {
 13610  					return io.ErrUnexpectedEOF
 13611  				}
 13612  				b := dAtA[iNdEx]
 13613  				iNdEx++
 13614  				byteLen |= int(b&0x7F) << shift
 13615  				if b < 0x80 {
 13616  					break
 13617  				}
 13618  			}
 13619  			if byteLen < 0 {
 13620  				return ErrInvalidLengthTypes
 13621  			}
 13622  			postIndex := iNdEx + byteLen
 13623  			if postIndex < 0 {
 13624  				return ErrInvalidLengthTypes
 13625  			}
 13626  			if postIndex > l {
 13627  				return io.ErrUnexpectedEOF
 13628  			}
 13629  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
 13630  			if m.Value == nil {
 13631  				m.Value = []byte{}
 13632  			}
 13633  			iNdEx = postIndex
 13634  		case 3:
 13635  			if wireType != 0 {
 13636  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
 13637  			}
 13638  			var v int
 13639  			for shift := uint(0); ; shift += 7 {
 13640  				if shift >= 64 {
 13641  					return ErrIntOverflowTypes
 13642  				}
 13643  				if iNdEx >= l {
 13644  					return io.ErrUnexpectedEOF
 13645  				}
 13646  				b := dAtA[iNdEx]
 13647  				iNdEx++
 13648  				v |= int(b&0x7F) << shift
 13649  				if b < 0x80 {
 13650  					break
 13651  				}
 13652  			}
 13653  			m.Index = bool(v != 0)
 13654  		default:
 13655  			iNdEx = preIndex
 13656  			skippy, err := skipTypes(dAtA[iNdEx:])
 13657  			if err != nil {
 13658  				return err
 13659  			}
 13660  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13661  				return ErrInvalidLengthTypes
 13662  			}
 13663  			if (iNdEx + skippy) > l {
 13664  				return io.ErrUnexpectedEOF
 13665  			}
 13666  			iNdEx += skippy
 13667  		}
 13668  	}
 13669  
 13670  	if iNdEx > l {
 13671  		return io.ErrUnexpectedEOF
 13672  	}
 13673  	return nil
 13674  }
 13675  func (m *TxResult) Unmarshal(dAtA []byte) error {
 13676  	l := len(dAtA)
 13677  	iNdEx := 0
 13678  	for iNdEx < l {
 13679  		preIndex := iNdEx
 13680  		var wire uint64
 13681  		for shift := uint(0); ; shift += 7 {
 13682  			if shift >= 64 {
 13683  				return ErrIntOverflowTypes
 13684  			}
 13685  			if iNdEx >= l {
 13686  				return io.ErrUnexpectedEOF
 13687  			}
 13688  			b := dAtA[iNdEx]
 13689  			iNdEx++
 13690  			wire |= uint64(b&0x7F) << shift
 13691  			if b < 0x80 {
 13692  				break
 13693  			}
 13694  		}
 13695  		fieldNum := int32(wire >> 3)
 13696  		wireType := int(wire & 0x7)
 13697  		if wireType == 4 {
 13698  			return fmt.Errorf("proto: TxResult: wiretype end group for non-group")
 13699  		}
 13700  		if fieldNum <= 0 {
 13701  			return fmt.Errorf("proto: TxResult: illegal tag %d (wire type %d)", fieldNum, wire)
 13702  		}
 13703  		switch fieldNum {
 13704  		case 1:
 13705  			if wireType != 0 {
 13706  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
 13707  			}
 13708  			m.Height = 0
 13709  			for shift := uint(0); ; shift += 7 {
 13710  				if shift >= 64 {
 13711  					return ErrIntOverflowTypes
 13712  				}
 13713  				if iNdEx >= l {
 13714  					return io.ErrUnexpectedEOF
 13715  				}
 13716  				b := dAtA[iNdEx]
 13717  				iNdEx++
 13718  				m.Height |= int64(b&0x7F) << shift
 13719  				if b < 0x80 {
 13720  					break
 13721  				}
 13722  			}
 13723  		case 2:
 13724  			if wireType != 0 {
 13725  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
 13726  			}
 13727  			m.Index = 0
 13728  			for shift := uint(0); ; shift += 7 {
 13729  				if shift >= 64 {
 13730  					return ErrIntOverflowTypes
 13731  				}
 13732  				if iNdEx >= l {
 13733  					return io.ErrUnexpectedEOF
 13734  				}
 13735  				b := dAtA[iNdEx]
 13736  				iNdEx++
 13737  				m.Index |= uint32(b&0x7F) << shift
 13738  				if b < 0x80 {
 13739  					break
 13740  				}
 13741  			}
 13742  		case 3:
 13743  			if wireType != 2 {
 13744  				return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
 13745  			}
 13746  			var byteLen int
 13747  			for shift := uint(0); ; shift += 7 {
 13748  				if shift >= 64 {
 13749  					return ErrIntOverflowTypes
 13750  				}
 13751  				if iNdEx >= l {
 13752  					return io.ErrUnexpectedEOF
 13753  				}
 13754  				b := dAtA[iNdEx]
 13755  				iNdEx++
 13756  				byteLen |= int(b&0x7F) << shift
 13757  				if b < 0x80 {
 13758  					break
 13759  				}
 13760  			}
 13761  			if byteLen < 0 {
 13762  				return ErrInvalidLengthTypes
 13763  			}
 13764  			postIndex := iNdEx + byteLen
 13765  			if postIndex < 0 {
 13766  				return ErrInvalidLengthTypes
 13767  			}
 13768  			if postIndex > l {
 13769  				return io.ErrUnexpectedEOF
 13770  			}
 13771  			m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...)
 13772  			if m.Tx == nil {
 13773  				m.Tx = []byte{}
 13774  			}
 13775  			iNdEx = postIndex
 13776  		case 4:
 13777  			if wireType != 2 {
 13778  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 13779  			}
 13780  			var msglen int
 13781  			for shift := uint(0); ; shift += 7 {
 13782  				if shift >= 64 {
 13783  					return ErrIntOverflowTypes
 13784  				}
 13785  				if iNdEx >= l {
 13786  					return io.ErrUnexpectedEOF
 13787  				}
 13788  				b := dAtA[iNdEx]
 13789  				iNdEx++
 13790  				msglen |= int(b&0x7F) << shift
 13791  				if b < 0x80 {
 13792  					break
 13793  				}
 13794  			}
 13795  			if msglen < 0 {
 13796  				return ErrInvalidLengthTypes
 13797  			}
 13798  			postIndex := iNdEx + msglen
 13799  			if postIndex < 0 {
 13800  				return ErrInvalidLengthTypes
 13801  			}
 13802  			if postIndex > l {
 13803  				return io.ErrUnexpectedEOF
 13804  			}
 13805  			if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13806  				return err
 13807  			}
 13808  			iNdEx = postIndex
 13809  		default:
 13810  			iNdEx = preIndex
 13811  			skippy, err := skipTypes(dAtA[iNdEx:])
 13812  			if err != nil {
 13813  				return err
 13814  			}
 13815  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13816  				return ErrInvalidLengthTypes
 13817  			}
 13818  			if (iNdEx + skippy) > l {
 13819  				return io.ErrUnexpectedEOF
 13820  			}
 13821  			iNdEx += skippy
 13822  		}
 13823  	}
 13824  
 13825  	if iNdEx > l {
 13826  		return io.ErrUnexpectedEOF
 13827  	}
 13828  	return nil
 13829  }
 13830  func (m *Validator) Unmarshal(dAtA []byte) error {
 13831  	l := len(dAtA)
 13832  	iNdEx := 0
 13833  	for iNdEx < l {
 13834  		preIndex := iNdEx
 13835  		var wire uint64
 13836  		for shift := uint(0); ; shift += 7 {
 13837  			if shift >= 64 {
 13838  				return ErrIntOverflowTypes
 13839  			}
 13840  			if iNdEx >= l {
 13841  				return io.ErrUnexpectedEOF
 13842  			}
 13843  			b := dAtA[iNdEx]
 13844  			iNdEx++
 13845  			wire |= uint64(b&0x7F) << shift
 13846  			if b < 0x80 {
 13847  				break
 13848  			}
 13849  		}
 13850  		fieldNum := int32(wire >> 3)
 13851  		wireType := int(wire & 0x7)
 13852  		if wireType == 4 {
 13853  			return fmt.Errorf("proto: Validator: wiretype end group for non-group")
 13854  		}
 13855  		if fieldNum <= 0 {
 13856  			return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire)
 13857  		}
 13858  		switch fieldNum {
 13859  		case 1:
 13860  			if wireType != 2 {
 13861  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
 13862  			}
 13863  			var byteLen int
 13864  			for shift := uint(0); ; shift += 7 {
 13865  				if shift >= 64 {
 13866  					return ErrIntOverflowTypes
 13867  				}
 13868  				if iNdEx >= l {
 13869  					return io.ErrUnexpectedEOF
 13870  				}
 13871  				b := dAtA[iNdEx]
 13872  				iNdEx++
 13873  				byteLen |= int(b&0x7F) << shift
 13874  				if b < 0x80 {
 13875  					break
 13876  				}
 13877  			}
 13878  			if byteLen < 0 {
 13879  				return ErrInvalidLengthTypes
 13880  			}
 13881  			postIndex := iNdEx + byteLen
 13882  			if postIndex < 0 {
 13883  				return ErrInvalidLengthTypes
 13884  			}
 13885  			if postIndex > l {
 13886  				return io.ErrUnexpectedEOF
 13887  			}
 13888  			m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...)
 13889  			if m.Address == nil {
 13890  				m.Address = []byte{}
 13891  			}
 13892  			iNdEx = postIndex
 13893  		case 3:
 13894  			if wireType != 0 {
 13895  				return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType)
 13896  			}
 13897  			m.Power = 0
 13898  			for shift := uint(0); ; shift += 7 {
 13899  				if shift >= 64 {
 13900  					return ErrIntOverflowTypes
 13901  				}
 13902  				if iNdEx >= l {
 13903  					return io.ErrUnexpectedEOF
 13904  				}
 13905  				b := dAtA[iNdEx]
 13906  				iNdEx++
 13907  				m.Power |= int64(b&0x7F) << shift
 13908  				if b < 0x80 {
 13909  					break
 13910  				}
 13911  			}
 13912  		default:
 13913  			iNdEx = preIndex
 13914  			skippy, err := skipTypes(dAtA[iNdEx:])
 13915  			if err != nil {
 13916  				return err
 13917  			}
 13918  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13919  				return ErrInvalidLengthTypes
 13920  			}
 13921  			if (iNdEx + skippy) > l {
 13922  				return io.ErrUnexpectedEOF
 13923  			}
 13924  			iNdEx += skippy
 13925  		}
 13926  	}
 13927  
 13928  	if iNdEx > l {
 13929  		return io.ErrUnexpectedEOF
 13930  	}
 13931  	return nil
 13932  }
 13933  func (m *ValidatorUpdate) Unmarshal(dAtA []byte) error {
 13934  	l := len(dAtA)
 13935  	iNdEx := 0
 13936  	for iNdEx < l {
 13937  		preIndex := iNdEx
 13938  		var wire uint64
 13939  		for shift := uint(0); ; shift += 7 {
 13940  			if shift >= 64 {
 13941  				return ErrIntOverflowTypes
 13942  			}
 13943  			if iNdEx >= l {
 13944  				return io.ErrUnexpectedEOF
 13945  			}
 13946  			b := dAtA[iNdEx]
 13947  			iNdEx++
 13948  			wire |= uint64(b&0x7F) << shift
 13949  			if b < 0x80 {
 13950  				break
 13951  			}
 13952  		}
 13953  		fieldNum := int32(wire >> 3)
 13954  		wireType := int(wire & 0x7)
 13955  		if wireType == 4 {
 13956  			return fmt.Errorf("proto: ValidatorUpdate: wiretype end group for non-group")
 13957  		}
 13958  		if fieldNum <= 0 {
 13959  			return fmt.Errorf("proto: ValidatorUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
 13960  		}
 13961  		switch fieldNum {
 13962  		case 1:
 13963  			if wireType != 2 {
 13964  				return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType)
 13965  			}
 13966  			var msglen int
 13967  			for shift := uint(0); ; shift += 7 {
 13968  				if shift >= 64 {
 13969  					return ErrIntOverflowTypes
 13970  				}
 13971  				if iNdEx >= l {
 13972  					return io.ErrUnexpectedEOF
 13973  				}
 13974  				b := dAtA[iNdEx]
 13975  				iNdEx++
 13976  				msglen |= int(b&0x7F) << shift
 13977  				if b < 0x80 {
 13978  					break
 13979  				}
 13980  			}
 13981  			if msglen < 0 {
 13982  				return ErrInvalidLengthTypes
 13983  			}
 13984  			postIndex := iNdEx + msglen
 13985  			if postIndex < 0 {
 13986  				return ErrInvalidLengthTypes
 13987  			}
 13988  			if postIndex > l {
 13989  				return io.ErrUnexpectedEOF
 13990  			}
 13991  			if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13992  				return err
 13993  			}
 13994  			iNdEx = postIndex
 13995  		case 2:
 13996  			if wireType != 0 {
 13997  				return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType)
 13998  			}
 13999  			m.Power = 0
 14000  			for shift := uint(0); ; shift += 7 {
 14001  				if shift >= 64 {
 14002  					return ErrIntOverflowTypes
 14003  				}
 14004  				if iNdEx >= l {
 14005  					return io.ErrUnexpectedEOF
 14006  				}
 14007  				b := dAtA[iNdEx]
 14008  				iNdEx++
 14009  				m.Power |= int64(b&0x7F) << shift
 14010  				if b < 0x80 {
 14011  					break
 14012  				}
 14013  			}
 14014  		default:
 14015  			iNdEx = preIndex
 14016  			skippy, err := skipTypes(dAtA[iNdEx:])
 14017  			if err != nil {
 14018  				return err
 14019  			}
 14020  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14021  				return ErrInvalidLengthTypes
 14022  			}
 14023  			if (iNdEx + skippy) > l {
 14024  				return io.ErrUnexpectedEOF
 14025  			}
 14026  			iNdEx += skippy
 14027  		}
 14028  	}
 14029  
 14030  	if iNdEx > l {
 14031  		return io.ErrUnexpectedEOF
 14032  	}
 14033  	return nil
 14034  }
 14035  func (m *VoteInfo) Unmarshal(dAtA []byte) error {
 14036  	l := len(dAtA)
 14037  	iNdEx := 0
 14038  	for iNdEx < l {
 14039  		preIndex := iNdEx
 14040  		var wire uint64
 14041  		for shift := uint(0); ; shift += 7 {
 14042  			if shift >= 64 {
 14043  				return ErrIntOverflowTypes
 14044  			}
 14045  			if iNdEx >= l {
 14046  				return io.ErrUnexpectedEOF
 14047  			}
 14048  			b := dAtA[iNdEx]
 14049  			iNdEx++
 14050  			wire |= uint64(b&0x7F) << shift
 14051  			if b < 0x80 {
 14052  				break
 14053  			}
 14054  		}
 14055  		fieldNum := int32(wire >> 3)
 14056  		wireType := int(wire & 0x7)
 14057  		if wireType == 4 {
 14058  			return fmt.Errorf("proto: VoteInfo: wiretype end group for non-group")
 14059  		}
 14060  		if fieldNum <= 0 {
 14061  			return fmt.Errorf("proto: VoteInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 14062  		}
 14063  		switch fieldNum {
 14064  		case 1:
 14065  			if wireType != 2 {
 14066  				return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
 14067  			}
 14068  			var msglen int
 14069  			for shift := uint(0); ; shift += 7 {
 14070  				if shift >= 64 {
 14071  					return ErrIntOverflowTypes
 14072  				}
 14073  				if iNdEx >= l {
 14074  					return io.ErrUnexpectedEOF
 14075  				}
 14076  				b := dAtA[iNdEx]
 14077  				iNdEx++
 14078  				msglen |= int(b&0x7F) << shift
 14079  				if b < 0x80 {
 14080  					break
 14081  				}
 14082  			}
 14083  			if msglen < 0 {
 14084  				return ErrInvalidLengthTypes
 14085  			}
 14086  			postIndex := iNdEx + msglen
 14087  			if postIndex < 0 {
 14088  				return ErrInvalidLengthTypes
 14089  			}
 14090  			if postIndex > l {
 14091  				return io.ErrUnexpectedEOF
 14092  			}
 14093  			if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14094  				return err
 14095  			}
 14096  			iNdEx = postIndex
 14097  		case 2:
 14098  			if wireType != 0 {
 14099  				return fmt.Errorf("proto: wrong wireType = %d for field SignedLastBlock", wireType)
 14100  			}
 14101  			var v int
 14102  			for shift := uint(0); ; shift += 7 {
 14103  				if shift >= 64 {
 14104  					return ErrIntOverflowTypes
 14105  				}
 14106  				if iNdEx >= l {
 14107  					return io.ErrUnexpectedEOF
 14108  				}
 14109  				b := dAtA[iNdEx]
 14110  				iNdEx++
 14111  				v |= int(b&0x7F) << shift
 14112  				if b < 0x80 {
 14113  					break
 14114  				}
 14115  			}
 14116  			m.SignedLastBlock = bool(v != 0)
 14117  		default:
 14118  			iNdEx = preIndex
 14119  			skippy, err := skipTypes(dAtA[iNdEx:])
 14120  			if err != nil {
 14121  				return err
 14122  			}
 14123  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14124  				return ErrInvalidLengthTypes
 14125  			}
 14126  			if (iNdEx + skippy) > l {
 14127  				return io.ErrUnexpectedEOF
 14128  			}
 14129  			iNdEx += skippy
 14130  		}
 14131  	}
 14132  
 14133  	if iNdEx > l {
 14134  		return io.ErrUnexpectedEOF
 14135  	}
 14136  	return nil
 14137  }
 14138  func (m *Evidence) Unmarshal(dAtA []byte) error {
 14139  	l := len(dAtA)
 14140  	iNdEx := 0
 14141  	for iNdEx < l {
 14142  		preIndex := iNdEx
 14143  		var wire uint64
 14144  		for shift := uint(0); ; shift += 7 {
 14145  			if shift >= 64 {
 14146  				return ErrIntOverflowTypes
 14147  			}
 14148  			if iNdEx >= l {
 14149  				return io.ErrUnexpectedEOF
 14150  			}
 14151  			b := dAtA[iNdEx]
 14152  			iNdEx++
 14153  			wire |= uint64(b&0x7F) << shift
 14154  			if b < 0x80 {
 14155  				break
 14156  			}
 14157  		}
 14158  		fieldNum := int32(wire >> 3)
 14159  		wireType := int(wire & 0x7)
 14160  		if wireType == 4 {
 14161  			return fmt.Errorf("proto: Evidence: wiretype end group for non-group")
 14162  		}
 14163  		if fieldNum <= 0 {
 14164  			return fmt.Errorf("proto: Evidence: illegal tag %d (wire type %d)", fieldNum, wire)
 14165  		}
 14166  		switch fieldNum {
 14167  		case 1:
 14168  			if wireType != 0 {
 14169  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
 14170  			}
 14171  			m.Type = 0
 14172  			for shift := uint(0); ; shift += 7 {
 14173  				if shift >= 64 {
 14174  					return ErrIntOverflowTypes
 14175  				}
 14176  				if iNdEx >= l {
 14177  					return io.ErrUnexpectedEOF
 14178  				}
 14179  				b := dAtA[iNdEx]
 14180  				iNdEx++
 14181  				m.Type |= EvidenceType(b&0x7F) << shift
 14182  				if b < 0x80 {
 14183  					break
 14184  				}
 14185  			}
 14186  		case 2:
 14187  			if wireType != 2 {
 14188  				return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
 14189  			}
 14190  			var msglen int
 14191  			for shift := uint(0); ; shift += 7 {
 14192  				if shift >= 64 {
 14193  					return ErrIntOverflowTypes
 14194  				}
 14195  				if iNdEx >= l {
 14196  					return io.ErrUnexpectedEOF
 14197  				}
 14198  				b := dAtA[iNdEx]
 14199  				iNdEx++
 14200  				msglen |= int(b&0x7F) << shift
 14201  				if b < 0x80 {
 14202  					break
 14203  				}
 14204  			}
 14205  			if msglen < 0 {
 14206  				return ErrInvalidLengthTypes
 14207  			}
 14208  			postIndex := iNdEx + msglen
 14209  			if postIndex < 0 {
 14210  				return ErrInvalidLengthTypes
 14211  			}
 14212  			if postIndex > l {
 14213  				return io.ErrUnexpectedEOF
 14214  			}
 14215  			if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14216  				return err
 14217  			}
 14218  			iNdEx = postIndex
 14219  		case 3:
 14220  			if wireType != 0 {
 14221  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
 14222  			}
 14223  			m.Height = 0
 14224  			for shift := uint(0); ; shift += 7 {
 14225  				if shift >= 64 {
 14226  					return ErrIntOverflowTypes
 14227  				}
 14228  				if iNdEx >= l {
 14229  					return io.ErrUnexpectedEOF
 14230  				}
 14231  				b := dAtA[iNdEx]
 14232  				iNdEx++
 14233  				m.Height |= int64(b&0x7F) << shift
 14234  				if b < 0x80 {
 14235  					break
 14236  				}
 14237  			}
 14238  		case 4:
 14239  			if wireType != 2 {
 14240  				return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
 14241  			}
 14242  			var msglen int
 14243  			for shift := uint(0); ; shift += 7 {
 14244  				if shift >= 64 {
 14245  					return ErrIntOverflowTypes
 14246  				}
 14247  				if iNdEx >= l {
 14248  					return io.ErrUnexpectedEOF
 14249  				}
 14250  				b := dAtA[iNdEx]
 14251  				iNdEx++
 14252  				msglen |= int(b&0x7F) << shift
 14253  				if b < 0x80 {
 14254  					break
 14255  				}
 14256  			}
 14257  			if msglen < 0 {
 14258  				return ErrInvalidLengthTypes
 14259  			}
 14260  			postIndex := iNdEx + msglen
 14261  			if postIndex < 0 {
 14262  				return ErrInvalidLengthTypes
 14263  			}
 14264  			if postIndex > l {
 14265  				return io.ErrUnexpectedEOF
 14266  			}
 14267  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
 14268  				return err
 14269  			}
 14270  			iNdEx = postIndex
 14271  		case 5:
 14272  			if wireType != 0 {
 14273  				return fmt.Errorf("proto: wrong wireType = %d for field TotalVotingPower", wireType)
 14274  			}
 14275  			m.TotalVotingPower = 0
 14276  			for shift := uint(0); ; shift += 7 {
 14277  				if shift >= 64 {
 14278  					return ErrIntOverflowTypes
 14279  				}
 14280  				if iNdEx >= l {
 14281  					return io.ErrUnexpectedEOF
 14282  				}
 14283  				b := dAtA[iNdEx]
 14284  				iNdEx++
 14285  				m.TotalVotingPower |= int64(b&0x7F) << shift
 14286  				if b < 0x80 {
 14287  					break
 14288  				}
 14289  			}
 14290  		default:
 14291  			iNdEx = preIndex
 14292  			skippy, err := skipTypes(dAtA[iNdEx:])
 14293  			if err != nil {
 14294  				return err
 14295  			}
 14296  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14297  				return ErrInvalidLengthTypes
 14298  			}
 14299  			if (iNdEx + skippy) > l {
 14300  				return io.ErrUnexpectedEOF
 14301  			}
 14302  			iNdEx += skippy
 14303  		}
 14304  	}
 14305  
 14306  	if iNdEx > l {
 14307  		return io.ErrUnexpectedEOF
 14308  	}
 14309  	return nil
 14310  }
 14311  func (m *Snapshot) Unmarshal(dAtA []byte) error {
 14312  	l := len(dAtA)
 14313  	iNdEx := 0
 14314  	for iNdEx < l {
 14315  		preIndex := iNdEx
 14316  		var wire uint64
 14317  		for shift := uint(0); ; shift += 7 {
 14318  			if shift >= 64 {
 14319  				return ErrIntOverflowTypes
 14320  			}
 14321  			if iNdEx >= l {
 14322  				return io.ErrUnexpectedEOF
 14323  			}
 14324  			b := dAtA[iNdEx]
 14325  			iNdEx++
 14326  			wire |= uint64(b&0x7F) << shift
 14327  			if b < 0x80 {
 14328  				break
 14329  			}
 14330  		}
 14331  		fieldNum := int32(wire >> 3)
 14332  		wireType := int(wire & 0x7)
 14333  		if wireType == 4 {
 14334  			return fmt.Errorf("proto: Snapshot: wiretype end group for non-group")
 14335  		}
 14336  		if fieldNum <= 0 {
 14337  			return fmt.Errorf("proto: Snapshot: illegal tag %d (wire type %d)", fieldNum, wire)
 14338  		}
 14339  		switch fieldNum {
 14340  		case 1:
 14341  			if wireType != 0 {
 14342  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
 14343  			}
 14344  			m.Height = 0
 14345  			for shift := uint(0); ; shift += 7 {
 14346  				if shift >= 64 {
 14347  					return ErrIntOverflowTypes
 14348  				}
 14349  				if iNdEx >= l {
 14350  					return io.ErrUnexpectedEOF
 14351  				}
 14352  				b := dAtA[iNdEx]
 14353  				iNdEx++
 14354  				m.Height |= uint64(b&0x7F) << shift
 14355  				if b < 0x80 {
 14356  					break
 14357  				}
 14358  			}
 14359  		case 2:
 14360  			if wireType != 0 {
 14361  				return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType)
 14362  			}
 14363  			m.Format = 0
 14364  			for shift := uint(0); ; shift += 7 {
 14365  				if shift >= 64 {
 14366  					return ErrIntOverflowTypes
 14367  				}
 14368  				if iNdEx >= l {
 14369  					return io.ErrUnexpectedEOF
 14370  				}
 14371  				b := dAtA[iNdEx]
 14372  				iNdEx++
 14373  				m.Format |= uint32(b&0x7F) << shift
 14374  				if b < 0x80 {
 14375  					break
 14376  				}
 14377  			}
 14378  		case 3:
 14379  			if wireType != 0 {
 14380  				return fmt.Errorf("proto: wrong wireType = %d for field Chunks", wireType)
 14381  			}
 14382  			m.Chunks = 0
 14383  			for shift := uint(0); ; shift += 7 {
 14384  				if shift >= 64 {
 14385  					return ErrIntOverflowTypes
 14386  				}
 14387  				if iNdEx >= l {
 14388  					return io.ErrUnexpectedEOF
 14389  				}
 14390  				b := dAtA[iNdEx]
 14391  				iNdEx++
 14392  				m.Chunks |= uint32(b&0x7F) << shift
 14393  				if b < 0x80 {
 14394  					break
 14395  				}
 14396  			}
 14397  		case 4:
 14398  			if wireType != 2 {
 14399  				return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
 14400  			}
 14401  			var byteLen int
 14402  			for shift := uint(0); ; shift += 7 {
 14403  				if shift >= 64 {
 14404  					return ErrIntOverflowTypes
 14405  				}
 14406  				if iNdEx >= l {
 14407  					return io.ErrUnexpectedEOF
 14408  				}
 14409  				b := dAtA[iNdEx]
 14410  				iNdEx++
 14411  				byteLen |= int(b&0x7F) << shift
 14412  				if b < 0x80 {
 14413  					break
 14414  				}
 14415  			}
 14416  			if byteLen < 0 {
 14417  				return ErrInvalidLengthTypes
 14418  			}
 14419  			postIndex := iNdEx + byteLen
 14420  			if postIndex < 0 {
 14421  				return ErrInvalidLengthTypes
 14422  			}
 14423  			if postIndex > l {
 14424  				return io.ErrUnexpectedEOF
 14425  			}
 14426  			m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
 14427  			if m.Hash == nil {
 14428  				m.Hash = []byte{}
 14429  			}
 14430  			iNdEx = postIndex
 14431  		case 5:
 14432  			if wireType != 2 {
 14433  				return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
 14434  			}
 14435  			var byteLen int
 14436  			for shift := uint(0); ; shift += 7 {
 14437  				if shift >= 64 {
 14438  					return ErrIntOverflowTypes
 14439  				}
 14440  				if iNdEx >= l {
 14441  					return io.ErrUnexpectedEOF
 14442  				}
 14443  				b := dAtA[iNdEx]
 14444  				iNdEx++
 14445  				byteLen |= int(b&0x7F) << shift
 14446  				if b < 0x80 {
 14447  					break
 14448  				}
 14449  			}
 14450  			if byteLen < 0 {
 14451  				return ErrInvalidLengthTypes
 14452  			}
 14453  			postIndex := iNdEx + byteLen
 14454  			if postIndex < 0 {
 14455  				return ErrInvalidLengthTypes
 14456  			}
 14457  			if postIndex > l {
 14458  				return io.ErrUnexpectedEOF
 14459  			}
 14460  			m.Metadata = append(m.Metadata[:0], dAtA[iNdEx:postIndex]...)
 14461  			if m.Metadata == nil {
 14462  				m.Metadata = []byte{}
 14463  			}
 14464  			iNdEx = postIndex
 14465  		default:
 14466  			iNdEx = preIndex
 14467  			skippy, err := skipTypes(dAtA[iNdEx:])
 14468  			if err != nil {
 14469  				return err
 14470  			}
 14471  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14472  				return ErrInvalidLengthTypes
 14473  			}
 14474  			if (iNdEx + skippy) > l {
 14475  				return io.ErrUnexpectedEOF
 14476  			}
 14477  			iNdEx += skippy
 14478  		}
 14479  	}
 14480  
 14481  	if iNdEx > l {
 14482  		return io.ErrUnexpectedEOF
 14483  	}
 14484  	return nil
 14485  }
 14486  func skipTypes(dAtA []byte) (n int, err error) {
 14487  	l := len(dAtA)
 14488  	iNdEx := 0
 14489  	depth := 0
 14490  	for iNdEx < l {
 14491  		var wire uint64
 14492  		for shift := uint(0); ; shift += 7 {
 14493  			if shift >= 64 {
 14494  				return 0, ErrIntOverflowTypes
 14495  			}
 14496  			if iNdEx >= l {
 14497  				return 0, io.ErrUnexpectedEOF
 14498  			}
 14499  			b := dAtA[iNdEx]
 14500  			iNdEx++
 14501  			wire |= (uint64(b) & 0x7F) << shift
 14502  			if b < 0x80 {
 14503  				break
 14504  			}
 14505  		}
 14506  		wireType := int(wire & 0x7)
 14507  		switch wireType {
 14508  		case 0:
 14509  			for shift := uint(0); ; shift += 7 {
 14510  				if shift >= 64 {
 14511  					return 0, ErrIntOverflowTypes
 14512  				}
 14513  				if iNdEx >= l {
 14514  					return 0, io.ErrUnexpectedEOF
 14515  				}
 14516  				iNdEx++
 14517  				if dAtA[iNdEx-1] < 0x80 {
 14518  					break
 14519  				}
 14520  			}
 14521  		case 1:
 14522  			iNdEx += 8
 14523  		case 2:
 14524  			var length int
 14525  			for shift := uint(0); ; shift += 7 {
 14526  				if shift >= 64 {
 14527  					return 0, ErrIntOverflowTypes
 14528  				}
 14529  				if iNdEx >= l {
 14530  					return 0, io.ErrUnexpectedEOF
 14531  				}
 14532  				b := dAtA[iNdEx]
 14533  				iNdEx++
 14534  				length |= (int(b) & 0x7F) << shift
 14535  				if b < 0x80 {
 14536  					break
 14537  				}
 14538  			}
 14539  			if length < 0 {
 14540  				return 0, ErrInvalidLengthTypes
 14541  			}
 14542  			iNdEx += length
 14543  		case 3:
 14544  			depth++
 14545  		case 4:
 14546  			if depth == 0 {
 14547  				return 0, ErrUnexpectedEndOfGroupTypes
 14548  			}
 14549  			depth--
 14550  		case 5:
 14551  			iNdEx += 4
 14552  		default:
 14553  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 14554  		}
 14555  		if iNdEx < 0 {
 14556  			return 0, ErrInvalidLengthTypes
 14557  		}
 14558  		if depth == 0 {
 14559  			return iNdEx, nil
 14560  		}
 14561  	}
 14562  	return 0, io.ErrUnexpectedEOF
 14563  }
 14564  
 14565  var (
 14566  	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
 14567  	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
 14568  	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
 14569  )