github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/types/ibc-adapter/abci.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/base/abci/v1beta1/abci.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec/types"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	types1 "github.com/fibonacci-chain/fbc/libs/tendermint/abci/types"
    12  	//costypes "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types"
    13  	io "io"
    14  	math "math"
    15  	math_bits "math/bits"
    16  	reflect "reflect"
    17  	strings "strings"
    18  )
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  var _ = fmt.Errorf
    23  var _ = math.Inf
    24  
    25  // This is a compile-time assertion to ensure that this generated file
    26  // is compatible with the proto package it is being compiled against.
    27  // A compilation error at this line likely means your copy of the
    28  // proto package needs to be updated.
    29  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    30  
    31  // TxResponse defines a structure containing relevant tx data and metadata. The
    32  // tags are stringified and the log is JSON decoded.
    33  type TxResponse struct {
    34  	// The block height
    35  	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
    36  	// The transaction hash.
    37  	TxHash string `protobuf:"bytes,2,opt,name=txhash,proto3" json:"txhash,omitempty"`
    38  	// Namespace for the Code
    39  	Codespace string `protobuf:"bytes,3,opt,name=codespace,proto3" json:"codespace,omitempty"`
    40  	// Response code.
    41  	Code uint32 `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"`
    42  	// Result bytes, if any.
    43  	Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
    44  	// The output of the application's logger (raw string). May be
    45  	// non-deterministic.
    46  	RawLog string `protobuf:"bytes,6,opt,name=raw_log,json=rawLog,proto3" json:"raw_log,omitempty"`
    47  	// The output of the application's logger (typed). May be non-deterministic.
    48  	Logs ABCIMessageLogs `protobuf:"bytes,7,rep,name=logs,proto3,castrepeated=ABCIMessageLogs" json:"logs"`
    49  	// Additional information. May be non-deterministic.
    50  	Info string `protobuf:"bytes,8,opt,name=info,proto3" json:"info,omitempty"`
    51  	// Amount of gas requested for transaction.
    52  	GasWanted int64 `protobuf:"varint,9,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
    53  	// Amount of gas consumed by transaction.
    54  	GasUsed int64 `protobuf:"varint,10,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
    55  	// The request transaction bytes.
    56  	Tx *types.Any `protobuf:"bytes,11,opt,name=tx,proto3" json:"tx,omitempty"`
    57  	// Time of the previous block. For heights > 1, it's the weighted median of
    58  	// the timestamps of the valid votes in the block.LastCommit. For height == 1,
    59  	// it's genesis time.
    60  	Timestamp string `protobuf:"bytes,12,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
    61  	// Events defines all the events emitted by processing a transaction. Note,
    62  	// these events include those emitted by processing all the messages and those
    63  	// emitted from the ante handler. Whereas Logs contains the events, with
    64  	// additional metadata, emitted only by processing the messages.
    65  	//
    66  	// Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
    67  	Events []types1.Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events"`
    68  }
    69  
    70  func (m *TxResponse) Reset()      { *m = TxResponse{} }
    71  func (*TxResponse) ProtoMessage() {}
    72  func (*TxResponse) Descriptor() ([]byte, []int) {
    73  	return fileDescriptor_4e37629bc7eb0df8, []int{0}
    74  }
    75  func (m *TxResponse) XXX_Unmarshal(b []byte) error {
    76  	return m.Unmarshal(b)
    77  }
    78  func (m *TxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    79  	if deterministic {
    80  		return xxx_messageInfo_TxResponse.Marshal(b, m, deterministic)
    81  	} else {
    82  		b = b[:cap(b)]
    83  		n, err := m.MarshalToSizedBuffer(b)
    84  		if err != nil {
    85  			return nil, err
    86  		}
    87  		return b[:n], nil
    88  	}
    89  }
    90  func (m *TxResponse) XXX_Merge(src proto.Message) {
    91  	xxx_messageInfo_TxResponse.Merge(m, src)
    92  }
    93  func (m *TxResponse) XXX_Size() int {
    94  	return m.Size()
    95  }
    96  func (m *TxResponse) XXX_DiscardUnknown() {
    97  	xxx_messageInfo_TxResponse.DiscardUnknown(m)
    98  }
    99  
   100  var xxx_messageInfo_TxResponse proto.InternalMessageInfo
   101  
   102  // ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
   103  type ABCIMessageLog struct {
   104  	MsgIndex uint32 `protobuf:"varint,1,opt,name=msg_index,json=msgIndex,proto3" json:"msg_index,omitempty"`
   105  	Log      string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
   106  	// Events contains a slice of Event objects that were emitted during some
   107  	// execution.
   108  	Events StringEvents `protobuf:"bytes,3,rep,name=events,proto3,castrepeated=StringEvents" json:"events"`
   109  }
   110  
   111  func (m *ABCIMessageLog) Reset()      { *m = ABCIMessageLog{} }
   112  func (*ABCIMessageLog) ProtoMessage() {}
   113  func (*ABCIMessageLog) Descriptor() ([]byte, []int) {
   114  	return fileDescriptor_4e37629bc7eb0df8, []int{1}
   115  }
   116  func (m *ABCIMessageLog) XXX_Unmarshal(b []byte) error {
   117  	return m.Unmarshal(b)
   118  }
   119  func (m *ABCIMessageLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   120  	if deterministic {
   121  		return xxx_messageInfo_ABCIMessageLog.Marshal(b, m, deterministic)
   122  	} else {
   123  		b = b[:cap(b)]
   124  		n, err := m.MarshalToSizedBuffer(b)
   125  		if err != nil {
   126  			return nil, err
   127  		}
   128  		return b[:n], nil
   129  	}
   130  }
   131  func (m *ABCIMessageLog) XXX_Merge(src proto.Message) {
   132  	xxx_messageInfo_ABCIMessageLog.Merge(m, src)
   133  }
   134  func (m *ABCIMessageLog) XXX_Size() int {
   135  	return m.Size()
   136  }
   137  func (m *ABCIMessageLog) XXX_DiscardUnknown() {
   138  	xxx_messageInfo_ABCIMessageLog.DiscardUnknown(m)
   139  }
   140  
   141  var xxx_messageInfo_ABCIMessageLog proto.InternalMessageInfo
   142  
   143  func (m *ABCIMessageLog) GetMsgIndex() uint32 {
   144  	if m != nil {
   145  		return m.MsgIndex
   146  	}
   147  	return 0
   148  }
   149  
   150  func (m *ABCIMessageLog) GetLog() string {
   151  	if m != nil {
   152  		return m.Log
   153  	}
   154  	return ""
   155  }
   156  
   157  func (m *ABCIMessageLog) GetEvents() StringEvents {
   158  	if m != nil {
   159  		return m.Events
   160  	}
   161  	return nil
   162  }
   163  
   164  // StringEvent defines en Event object wrapper where all the attributes
   165  // contain key/value pairs that are strings instead of raw bytes.
   166  type StringEvent struct {
   167  	Type       string      `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
   168  	Attributes []Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes"`
   169  }
   170  
   171  func (m *StringEvent) Reset()      { *m = StringEvent{} }
   172  func (*StringEvent) ProtoMessage() {}
   173  func (*StringEvent) Descriptor() ([]byte, []int) {
   174  	return fileDescriptor_4e37629bc7eb0df8, []int{2}
   175  }
   176  func (m *StringEvent) XXX_Unmarshal(b []byte) error {
   177  	return m.Unmarshal(b)
   178  }
   179  func (m *StringEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   180  	if deterministic {
   181  		return xxx_messageInfo_StringEvent.Marshal(b, m, deterministic)
   182  	} else {
   183  		b = b[:cap(b)]
   184  		n, err := m.MarshalToSizedBuffer(b)
   185  		if err != nil {
   186  			return nil, err
   187  		}
   188  		return b[:n], nil
   189  	}
   190  }
   191  func (m *StringEvent) XXX_Merge(src proto.Message) {
   192  	xxx_messageInfo_StringEvent.Merge(m, src)
   193  }
   194  func (m *StringEvent) XXX_Size() int {
   195  	return m.Size()
   196  }
   197  func (m *StringEvent) XXX_DiscardUnknown() {
   198  	xxx_messageInfo_StringEvent.DiscardUnknown(m)
   199  }
   200  
   201  var xxx_messageInfo_StringEvent proto.InternalMessageInfo
   202  
   203  func (m *StringEvent) GetType() string {
   204  	if m != nil {
   205  		return m.Type
   206  	}
   207  	return ""
   208  }
   209  
   210  func (m *StringEvent) GetAttributes() []Attribute {
   211  	if m != nil {
   212  		return m.Attributes
   213  	}
   214  	m.String()
   215  	return nil
   216  }
   217  
   218  // Attribute defines an attribute wrapper where the key and value are
   219  // strings instead of raw bytes.
   220  type Attribute struct {
   221  	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   222  	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
   223  }
   224  
   225  func (m *Attribute) Reset()      { *m = Attribute{} }
   226  func (*Attribute) ProtoMessage() {}
   227  func (*Attribute) Descriptor() ([]byte, []int) {
   228  	return fileDescriptor_4e37629bc7eb0df8, []int{3}
   229  }
   230  func (m *Attribute) XXX_Unmarshal(b []byte) error {
   231  	return m.Unmarshal(b)
   232  }
   233  func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   234  	if deterministic {
   235  		return xxx_messageInfo_Attribute.Marshal(b, m, deterministic)
   236  	} else {
   237  		b = b[:cap(b)]
   238  		n, err := m.MarshalToSizedBuffer(b)
   239  		if err != nil {
   240  			return nil, err
   241  		}
   242  		return b[:n], nil
   243  	}
   244  }
   245  func (m *Attribute) XXX_Merge(src proto.Message) {
   246  	xxx_messageInfo_Attribute.Merge(m, src)
   247  }
   248  func (m *Attribute) XXX_Size() int {
   249  	return m.Size()
   250  }
   251  func (m *Attribute) XXX_DiscardUnknown() {
   252  	xxx_messageInfo_Attribute.DiscardUnknown(m)
   253  }
   254  
   255  var xxx_messageInfo_Attribute proto.InternalMessageInfo
   256  
   257  func (m *Attribute) GetKey() string {
   258  	if m != nil {
   259  		return m.Key
   260  	}
   261  	return ""
   262  }
   263  
   264  func (m *Attribute) GetValue() string {
   265  	if m != nil {
   266  		return m.Value
   267  	}
   268  	return ""
   269  }
   270  
   271  // GasInfo defines tx execution gas context.
   272  type GasInfo struct {
   273  	// GasWanted is the maximum units of work we allow this tx to perform.
   274  	GasWanted uint64 `protobuf:"varint,1,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty" yaml:"gas_wanted"`
   275  	// GasUsed is the amount of gas actually consumed.
   276  	GasUsed uint64 `protobuf:"varint,2,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty" yaml:"gas_used"`
   277  }
   278  
   279  func (m *GasInfo) Reset()      { *m = GasInfo{} }
   280  func (*GasInfo) ProtoMessage() {}
   281  func (*GasInfo) Descriptor() ([]byte, []int) {
   282  	return fileDescriptor_4e37629bc7eb0df8, []int{4}
   283  }
   284  func (m *GasInfo) XXX_Unmarshal(b []byte) error {
   285  	return m.Unmarshal(b)
   286  }
   287  func (m *GasInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   288  	if deterministic {
   289  		return xxx_messageInfo_GasInfo.Marshal(b, m, deterministic)
   290  	} else {
   291  		b = b[:cap(b)]
   292  		n, err := m.MarshalToSizedBuffer(b)
   293  		if err != nil {
   294  			return nil, err
   295  		}
   296  		return b[:n], nil
   297  	}
   298  }
   299  func (m *GasInfo) XXX_Merge(src proto.Message) {
   300  	xxx_messageInfo_GasInfo.Merge(m, src)
   301  }
   302  func (m *GasInfo) XXX_Size() int {
   303  	return m.Size()
   304  }
   305  func (m *GasInfo) XXX_DiscardUnknown() {
   306  	xxx_messageInfo_GasInfo.DiscardUnknown(m)
   307  }
   308  
   309  var xxx_messageInfo_GasInfo proto.InternalMessageInfo
   310  
   311  func (m *GasInfo) GetGasWanted() uint64 {
   312  	if m != nil {
   313  		return m.GasWanted
   314  	}
   315  	return 0
   316  }
   317  
   318  func (m *GasInfo) GetGasUsed() uint64 {
   319  	if m != nil {
   320  		return m.GasUsed
   321  	}
   322  	return 0
   323  }
   324  
   325  // Result is the union of ResponseFormat and ResponseCheckTx.
   326  type Result struct {
   327  	// Data is any data returned from message or handler execution. It MUST be
   328  	// length prefixed in order to separate data from multiple message executions.
   329  	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
   330  	// Log contains the log information from message or handler execution.
   331  	Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
   332  	// Events contains a slice of Event objects that were emitted during message
   333  	// or handler execution.
   334  	Events []types1.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events"`
   335  }
   336  
   337  func (m *Result) Reset()      { *m = Result{} }
   338  func (*Result) ProtoMessage() {}
   339  func (*Result) Descriptor() ([]byte, []int) {
   340  	return fileDescriptor_4e37629bc7eb0df8, []int{5}
   341  }
   342  func (m *Result) XXX_Unmarshal(b []byte) error {
   343  	return m.Unmarshal(b)
   344  }
   345  func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   346  	if deterministic {
   347  		return xxx_messageInfo_Result.Marshal(b, m, deterministic)
   348  	} else {
   349  		b = b[:cap(b)]
   350  		n, err := m.MarshalToSizedBuffer(b)
   351  		if err != nil {
   352  			return nil, err
   353  		}
   354  		return b[:n], nil
   355  	}
   356  }
   357  func (m *Result) XXX_Merge(src proto.Message) {
   358  	xxx_messageInfo_Result.Merge(m, src)
   359  }
   360  func (m *Result) XXX_Size() int {
   361  	return m.Size()
   362  }
   363  func (m *Result) XXX_DiscardUnknown() {
   364  	xxx_messageInfo_Result.DiscardUnknown(m)
   365  }
   366  
   367  var xxx_messageInfo_Result proto.InternalMessageInfo
   368  
   369  // SimulationResponse defines the response generated when a transaction is
   370  // successfully simulated.
   371  type SimulationResponse struct {
   372  	GasInfo `protobuf:"bytes,1,opt,name=gas_info,json=gasInfo,proto3,embedded=gas_info" json:"gas_info"`
   373  	Result  *Result `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
   374  }
   375  
   376  func (m *SimulationResponse) Reset()      { *m = SimulationResponse{} }
   377  func (*SimulationResponse) ProtoMessage() {}
   378  func (*SimulationResponse) Descriptor() ([]byte, []int) {
   379  	return fileDescriptor_4e37629bc7eb0df8, []int{6}
   380  }
   381  func (m *SimulationResponse) XXX_Unmarshal(b []byte) error {
   382  	return m.Unmarshal(b)
   383  }
   384  func (m *SimulationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   385  	if deterministic {
   386  		return xxx_messageInfo_SimulationResponse.Marshal(b, m, deterministic)
   387  	} else {
   388  		b = b[:cap(b)]
   389  		n, err := m.MarshalToSizedBuffer(b)
   390  		if err != nil {
   391  			return nil, err
   392  		}
   393  		return b[:n], nil
   394  	}
   395  }
   396  func (m *SimulationResponse) XXX_Merge(src proto.Message) {
   397  	xxx_messageInfo_SimulationResponse.Merge(m, src)
   398  }
   399  func (m *SimulationResponse) XXX_Size() int {
   400  	return m.Size()
   401  }
   402  func (m *SimulationResponse) XXX_DiscardUnknown() {
   403  	xxx_messageInfo_SimulationResponse.DiscardUnknown(m)
   404  }
   405  
   406  var xxx_messageInfo_SimulationResponse proto.InternalMessageInfo
   407  
   408  func (m *SimulationResponse) GetResult() *Result {
   409  	if m != nil {
   410  		return m.Result
   411  	}
   412  	return nil
   413  }
   414  
   415  // MsgData defines the data returned in a Result object during message
   416  // execution.
   417  type MsgData struct {
   418  	MsgType string `protobuf:"bytes,1,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"`
   419  	Data    []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
   420  }
   421  
   422  func (m *MsgData) Reset()      { *m = MsgData{} }
   423  func (*MsgData) ProtoMessage() {}
   424  func (*MsgData) Descriptor() ([]byte, []int) {
   425  	return fileDescriptor_4e37629bc7eb0df8, []int{7}
   426  }
   427  func (m *MsgData) XXX_Unmarshal(b []byte) error {
   428  	return m.Unmarshal(b)
   429  }
   430  func (m *MsgData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   431  	if deterministic {
   432  		return xxx_messageInfo_MsgData.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 *MsgData) XXX_Merge(src proto.Message) {
   443  	xxx_messageInfo_MsgData.Merge(m, src)
   444  }
   445  func (m *MsgData) XXX_Size() int {
   446  	return m.Size()
   447  }
   448  func (m *MsgData) XXX_DiscardUnknown() {
   449  	xxx_messageInfo_MsgData.DiscardUnknown(m)
   450  }
   451  
   452  var xxx_messageInfo_MsgData proto.InternalMessageInfo
   453  
   454  func (m *MsgData) GetMsgType() string {
   455  	if m != nil {
   456  		return m.MsgType
   457  	}
   458  	return ""
   459  }
   460  
   461  func (m *MsgData) GetData() []byte {
   462  	if m != nil {
   463  		return m.Data
   464  	}
   465  	return nil
   466  }
   467  
   468  // TxMsgData defines a list of MsgData. A transaction will have a MsgData object
   469  // for each message.
   470  type TxMsgData struct {
   471  	Data []*MsgData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
   472  }
   473  
   474  func (m *TxMsgData) Reset()      { *m = TxMsgData{} }
   475  func (*TxMsgData) ProtoMessage() {}
   476  func (*TxMsgData) Descriptor() ([]byte, []int) {
   477  	return fileDescriptor_4e37629bc7eb0df8, []int{8}
   478  }
   479  func (m *TxMsgData) XXX_Unmarshal(b []byte) error {
   480  	return m.Unmarshal(b)
   481  }
   482  func (m *TxMsgData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   483  	if deterministic {
   484  		return xxx_messageInfo_TxMsgData.Marshal(b, m, deterministic)
   485  	} else {
   486  		b = b[:cap(b)]
   487  		n, err := m.MarshalToSizedBuffer(b)
   488  		if err != nil {
   489  			return nil, err
   490  		}
   491  		return b[:n], nil
   492  	}
   493  }
   494  func (m *TxMsgData) XXX_Merge(src proto.Message) {
   495  	xxx_messageInfo_TxMsgData.Merge(m, src)
   496  }
   497  func (m *TxMsgData) XXX_Size() int {
   498  	return m.Size()
   499  }
   500  func (m *TxMsgData) XXX_DiscardUnknown() {
   501  	xxx_messageInfo_TxMsgData.DiscardUnknown(m)
   502  }
   503  
   504  var xxx_messageInfo_TxMsgData proto.InternalMessageInfo
   505  
   506  func (m *TxMsgData) GetData() []*MsgData {
   507  	if m != nil {
   508  		return m.Data
   509  	}
   510  	return nil
   511  }
   512  
   513  // SearchTxsResult defines a structure for querying txs pageable
   514  type SearchTxsResult struct {
   515  	// Count of all txs
   516  	TotalCount uint64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count" yaml:"total_count"`
   517  	// Count of txs in current page
   518  	Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
   519  	// Index of current page, start from 1
   520  	PageNumber uint64 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number" yaml:"page_number"`
   521  	// Count of total pages
   522  	PageTotal uint64 `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total" yaml:"page_total"`
   523  	// Max count txs per page
   524  	Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
   525  	// List of txs in current page
   526  	Txs []*TxResponse `protobuf:"bytes,6,rep,name=txs,proto3" json:"txs,omitempty"`
   527  }
   528  
   529  func (m *SearchTxsResult) Reset()      { *m = SearchTxsResult{} }
   530  func (*SearchTxsResult) ProtoMessage() {}
   531  func (*SearchTxsResult) Descriptor() ([]byte, []int) {
   532  	return fileDescriptor_4e37629bc7eb0df8, []int{9}
   533  }
   534  func (m *SearchTxsResult) XXX_Unmarshal(b []byte) error {
   535  	return m.Unmarshal(b)
   536  }
   537  func (m *SearchTxsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   538  	if deterministic {
   539  		return xxx_messageInfo_SearchTxsResult.Marshal(b, m, deterministic)
   540  	} else {
   541  		b = b[:cap(b)]
   542  		n, err := m.MarshalToSizedBuffer(b)
   543  		if err != nil {
   544  			return nil, err
   545  		}
   546  		return b[:n], nil
   547  	}
   548  }
   549  func (m *SearchTxsResult) XXX_Merge(src proto.Message) {
   550  	xxx_messageInfo_SearchTxsResult.Merge(m, src)
   551  }
   552  func (m *SearchTxsResult) XXX_Size() int {
   553  	return m.Size()
   554  }
   555  func (m *SearchTxsResult) XXX_DiscardUnknown() {
   556  	xxx_messageInfo_SearchTxsResult.DiscardUnknown(m)
   557  }
   558  
   559  var xxx_messageInfo_SearchTxsResult proto.InternalMessageInfo
   560  
   561  func (m *SearchTxsResult) GetTotalCount() uint64 {
   562  	if m != nil {
   563  		return m.TotalCount
   564  	}
   565  	return 0
   566  }
   567  
   568  func (m *SearchTxsResult) GetCount() uint64 {
   569  	if m != nil {
   570  		return m.Count
   571  	}
   572  	return 0
   573  }
   574  
   575  func (m *SearchTxsResult) GetPageNumber() uint64 {
   576  	if m != nil {
   577  		return m.PageNumber
   578  	}
   579  	return 0
   580  }
   581  
   582  func (m *SearchTxsResult) GetPageTotal() uint64 {
   583  	if m != nil {
   584  		return m.PageTotal
   585  	}
   586  	return 0
   587  }
   588  
   589  func (m *SearchTxsResult) GetLimit() uint64 {
   590  	if m != nil {
   591  		return m.Limit
   592  	}
   593  	return 0
   594  }
   595  
   596  func (m *SearchTxsResult) GetTxs() []*TxResponse {
   597  	if m != nil {
   598  		return m.Txs
   599  	}
   600  	return nil
   601  }
   602  
   603  func init() {
   604  	proto.RegisterType((*TxResponse)(nil), "cosmos.base.abci.v1beta1.TxResponse")
   605  	proto.RegisterType((*ABCIMessageLog)(nil), "cosmos.base.abci.v1beta1.ABCIMessageLog")
   606  	proto.RegisterType((*StringEvent)(nil), "cosmos.base.abci.v1beta1.StringEvent")
   607  	proto.RegisterType((*Attribute)(nil), "cosmos.base.abci.v1beta1.Attribute")
   608  	proto.RegisterType((*GasInfo)(nil), "cosmos.base.abci.v1beta1.GasInfo")
   609  	proto.RegisterType((*Result)(nil), "cosmos.base.abci.v1beta1.Result")
   610  	proto.RegisterType((*SimulationResponse)(nil), "cosmos.base.abci.v1beta1.SimulationResponse")
   611  	proto.RegisterType((*MsgData)(nil), "cosmos.base.abci.v1beta1.MsgData")
   612  	proto.RegisterType((*TxMsgData)(nil), "cosmos.base.abci.v1beta1.TxMsgData")
   613  	proto.RegisterType((*SearchTxsResult)(nil), "cosmos.base.abci.v1beta1.SearchTxsResult")
   614  }
   615  
   616  func init() {
   617  	proto.RegisterFile("cosmos/base/abci/v1beta1/abci.proto", fileDescriptor_4e37629bc7eb0df8)
   618  }
   619  
   620  var fileDescriptor_4e37629bc7eb0df8 = []byte{
   621  	// 929 bytes of a gzipped FileDescriptorProto
   622  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xcf, 0x6f, 0x1b, 0x45,
   623  	0x14, 0xf6, 0xda, 0xee, 0x3a, 0x7e, 0x4e, 0x08, 0x0c, 0xa1, 0xdd, 0xb4, 0xe0, 0x35, 0x9b, 0x56,
   624  	0xf2, 0x85, 0xb5, 0x9a, 0x06, 0x84, 0x7a, 0x40, 0xd4, 0x85, 0xd2, 0x48, 0x2d, 0x87, 0x89, 0x2b,
   625  	0x24, 0x2e, 0xd6, 0xd8, 0x9e, 0x8e, 0x97, 0x7a, 0x77, 0xac, 0x9d, 0xd9, 0x64, 0x7d, 0xe3, 0xc8,
   626  	0x91, 0x13, 0x07, 0x4e, 0x9c, 0xf9, 0x4b, 0x7a, 0x40, 0x22, 0xc7, 0x1e, 0x90, 0x81, 0xe4, 0xd6,
   627  	0x63, 0xfe, 0x02, 0x34, 0x3f, 0xe2, 0xdd, 0x80, 0x5c, 0x89, 0x93, 0xdf, 0xfb, 0xde, 0x9b, 0x37,
   628  	0xef, 0x7d, 0xef, 0xdb, 0x31, 0xec, 0x8d, 0xb9, 0x88, 0xb9, 0xe8, 0x8d, 0x88, 0xa0, 0x3d, 0x32,
   629  	0x1a, 0x47, 0xbd, 0xe3, 0xbb, 0x23, 0x2a, 0xc9, 0x5d, 0xed, 0x84, 0xf3, 0x94, 0x4b, 0x8e, 0x3c,
   630  	0x93, 0x14, 0xaa, 0xa4, 0x50, 0xe3, 0x36, 0xe9, 0xe6, 0x0e, 0xe3, 0x8c, 0xeb, 0xa4, 0x9e, 0xb2,
   631  	0x4c, 0xfe, 0xcd, 0x5b, 0x92, 0x26, 0x13, 0x9a, 0xc6, 0x51, 0x22, 0x4d, 0x4d, 0xb9, 0x98, 0x53,
   632  	0x61, 0x83, 0xbb, 0x8c, 0x73, 0x36, 0xa3, 0x3d, 0xed, 0x8d, 0xb2, 0xe7, 0x3d, 0x92, 0x2c, 0x4c,
   633  	0x28, 0xf8, 0xad, 0x06, 0x30, 0xc8, 0x31, 0x15, 0x73, 0x9e, 0x08, 0x8a, 0xae, 0x83, 0x3b, 0xa5,
   634  	0x11, 0x9b, 0x4a, 0xcf, 0xe9, 0x38, 0xdd, 0x1a, 0xb6, 0x1e, 0x0a, 0xc0, 0x95, 0xf9, 0x94, 0x88,
   635  	0xa9, 0x57, 0xed, 0x38, 0xdd, 0x66, 0x1f, 0xce, 0x96, 0xbe, 0x3b, 0xc8, 0x1f, 0x13, 0x31, 0xc5,
   636  	0x36, 0x82, 0xde, 0x87, 0xe6, 0x98, 0x4f, 0xa8, 0x98, 0x93, 0x31, 0xf5, 0x6a, 0x2a, 0x0d, 0x17,
   637  	0x00, 0x42, 0x50, 0x57, 0x8e, 0x57, 0xef, 0x38, 0xdd, 0x2d, 0xac, 0x6d, 0x85, 0x4d, 0x88, 0x24,
   638  	0xde, 0x35, 0x9d, 0xac, 0x6d, 0x74, 0x03, 0x1a, 0x29, 0x39, 0x19, 0xce, 0x38, 0xf3, 0x5c, 0x0d,
   639  	0xbb, 0x29, 0x39, 0x79, 0xc2, 0x19, 0x7a, 0x06, 0xf5, 0x19, 0x67, 0xc2, 0x6b, 0x74, 0x6a, 0xdd,
   640  	0xd6, 0x7e, 0x37, 0x5c, 0x47, 0x50, 0xf8, 0xa0, 0xff, 0xf0, 0xf0, 0x29, 0x15, 0x82, 0x30, 0xfa,
   641  	0x84, 0xb3, 0xfe, 0x8d, 0x97, 0x4b, 0xbf, 0xf2, 0xeb, 0x9f, 0xfe, 0xf6, 0x55, 0x5c, 0x60, 0x5d,
   642  	0x4e, 0xf5, 0x10, 0x25, 0xcf, 0xb9, 0xb7, 0x61, 0x7a, 0x50, 0x36, 0xfa, 0x00, 0x80, 0x11, 0x31,
   643  	0x3c, 0x21, 0x89, 0xa4, 0x13, 0xaf, 0xa9, 0x99, 0x68, 0x32, 0x22, 0xbe, 0xd1, 0x00, 0xda, 0x85,
   644  	0x0d, 0x15, 0xce, 0x04, 0x9d, 0x78, 0xa0, 0x83, 0x0d, 0x46, 0xc4, 0x33, 0x41, 0x27, 0xe8, 0x36,
   645  	0x54, 0x65, 0xee, 0xb5, 0x3a, 0x4e, 0xb7, 0xb5, 0xbf, 0x13, 0x1a, 0xda, 0xc3, 0x4b, 0xda, 0xc3,
   646  	0x07, 0xc9, 0x02, 0x57, 0x65, 0xae, 0x98, 0x92, 0x51, 0x4c, 0x85, 0x24, 0xf1, 0xdc, 0xdb, 0x34,
   647  	0x4c, 0xad, 0x00, 0x74, 0x00, 0x2e, 0x3d, 0xa6, 0x89, 0x14, 0xde, 0x96, 0x1e, 0xf5, 0x7a, 0x58,
   648  	0xec, 0xd6, 0x4c, 0xfa, 0xa5, 0x0a, 0xf7, 0xeb, 0x6a, 0x30, 0x6c, 0x73, 0xef, 0xd7, 0x7f, 0xf8,
   649  	0xc5, 0xaf, 0x04, 0x3f, 0x3b, 0xf0, 0xd6, 0xd5, 0x39, 0xd1, 0x2d, 0x68, 0xc6, 0x82, 0x0d, 0xa3,
   650  	0x64, 0x42, 0x73, 0xbd, 0xd5, 0x2d, 0xbc, 0x11, 0x0b, 0x76, 0xa8, 0x7c, 0xf4, 0x36, 0xd4, 0x14,
   651  	0xd3, 0x7a, 0xa9, 0x58, 0x99, 0xe8, 0x68, 0x75, 0x7b, 0x4d, 0xdf, 0x7e, 0x67, 0x3d, 0xd1, 0x47,
   652  	0x32, 0x8d, 0x12, 0x66, 0x9a, 0xd9, 0xb1, 0x2c, 0x6f, 0x96, 0x40, 0x51, 0x34, 0xf7, 0xfd, 0x1f,
   653  	0x1d, 0x27, 0x48, 0xa1, 0x55, 0x8a, 0x2a, 0xe6, 0x95, 0x48, 0x75, 0x4f, 0x4d, 0xac, 0x6d, 0x74,
   654  	0x08, 0x40, 0xa4, 0x4c, 0xa3, 0x51, 0x26, 0xa9, 0xf0, 0xaa, 0xba, 0x83, 0xbd, 0x37, 0xac, 0xfa,
   655  	0x32, 0xd7, 0x92, 0x51, 0x3a, 0x6c, 0xef, 0xbc, 0x07, 0xcd, 0x55, 0x92, 0x9a, 0xf6, 0x05, 0x5d,
   656  	0xd8, 0x0b, 0x95, 0x89, 0x76, 0xe0, 0xda, 0x31, 0x99, 0x65, 0xd4, 0x32, 0x60, 0x9c, 0x80, 0x43,
   657  	0xe3, 0x2b, 0x22, 0x0e, 0x95, 0x14, 0x0e, 0xae, 0x48, 0x41, 0x9d, 0xac, 0xf7, 0xdf, 0xbb, 0x58,
   658  	0xfa, 0xef, 0x2c, 0x48, 0x3c, 0xbb, 0x1f, 0x14, 0xb1, 0xa0, 0xac, 0x90, 0xb0, 0xa4, 0x90, 0xaa,
   659  	0x3e, 0xf3, 0xee, 0xc5, 0xd2, 0xdf, 0x2e, 0xce, 0xa8, 0x48, 0xb0, 0x92, 0x4d, 0xf0, 0x1d, 0xb8,
   660  	0x98, 0x8a, 0x6c, 0x26, 0x57, 0x9f, 0x84, 0xba, 0x69, 0xd3, 0x7e, 0x12, 0xff, 0x5d, 0xd2, 0xc1,
   661  	0xbf, 0x96, 0xf4, 0x7f, 0x24, 0xf2, 0x93, 0x03, 0xe8, 0x28, 0x8a, 0xb3, 0x19, 0x91, 0x11, 0x4f,
   662  	0x56, 0x5f, 0xfe, 0x23, 0xd3, 0xb2, 0xfe, 0x16, 0x1c, 0xad, 0xdf, 0x0f, 0xd7, 0xf3, 0x6e, 0xd9,
   663  	0xe9, 0x6f, 0xa8, 0xfa, 0xa7, 0x4b, 0xdf, 0xd1, 0xa3, 0x68, 0xc2, 0x3e, 0x05, 0x37, 0xd5, 0xa3,
   664  	0xe8, 0x7e, 0x5b, 0xfb, 0x9d, 0xf5, 0x55, 0xcc, 0xc8, 0xd8, 0xe6, 0x07, 0x9f, 0x41, 0xe3, 0xa9,
   665  	0x60, 0x5f, 0xa8, 0x89, 0x77, 0x41, 0x49, 0x74, 0x58, 0x92, 0x47, 0x23, 0x16, 0x6c, 0xa0, 0x14,
   666  	0x72, 0x49, 0x50, 0xb5, 0x20, 0xc8, 0xae, 0xfa, 0x31, 0x34, 0x07, 0xf9, 0x65, 0x85, 0x8f, 0x57,
   667  	0x3c, 0xd6, 0xde, 0x3c, 0x8a, 0x3d, 0x70, 0xa5, 0xd2, 0xef, 0x55, 0xd8, 0x3e, 0xa2, 0x24, 0x1d,
   668  	0x4f, 0x07, 0xb9, 0xb0, 0x8b, 0x79, 0x04, 0x2d, 0xc9, 0x25, 0x99, 0x0d, 0xc7, 0x3c, 0x4b, 0xa4,
   669  	0x55, 0xc2, 0x9d, 0xd7, 0x4b, 0xbf, 0x0c, 0x5f, 0x2c, 0x7d, 0x64, 0x96, 0x5c, 0x02, 0x03, 0x0c,
   670  	0xda, 0x7b, 0xa8, 0x1c, 0xa5, 0x38, 0x53, 0x41, 0xeb, 0x02, 0x1b, 0x47, 0x55, 0x9f, 0x13, 0x46,
   671  	0x87, 0x49, 0x16, 0x8f, 0x68, 0xaa, 0x5f, 0x4f, 0x5b, 0xbd, 0x04, 0x17, 0xd5, 0x4b, 0x60, 0x80,
   672  	0x41, 0x79, 0x5f, 0x6b, 0x07, 0xf5, 0x41, 0x7b, 0x43, 0x7d, 0xa1, 0x7e, 0x6b, 0xeb, 0xfd, 0xbd,
   673  	0xd7, 0x4b, 0xbf, 0x84, 0x16, 0xe2, 0x2d, 0xb0, 0x00, 0x37, 0x95, 0x33, 0x50, 0xb6, 0xea, 0x70,
   674  	0x16, 0xc5, 0x91, 0xd4, 0xcf, 0x72, 0x1d, 0x1b, 0x07, 0x7d, 0x02, 0x35, 0x99, 0x0b, 0xcf, 0xd5,
   675  	0x7c, 0xde, 0x5e, 0xcf, 0x67, 0xf1, 0x67, 0x82, 0xd5, 0x01, 0xc3, 0x68, 0xff, 0xf3, 0x57, 0x7f,
   676  	0xb7, 0x2b, 0x2f, 0xcf, 0xda, 0xce, 0xe9, 0x59, 0xdb, 0xf9, 0xeb, 0xac, 0xed, 0xfc, 0x78, 0xde,
   677  	0xae, 0x9c, 0x9e, 0xb7, 0x2b, 0xaf, 0xce, 0xdb, 0x95, 0x6f, 0x03, 0x16, 0xc9, 0x69, 0x36, 0x0a,
   678  	0xc7, 0x3c, 0xee, 0xd9, 0x3f, 0x47, 0xf3, 0xf3, 0x91, 0x98, 0xbc, 0x30, 0xff, 0x64, 0x23, 0x57,
   679  	0xbf, 0xa2, 0xf7, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x03, 0x85, 0x77, 0x9d, 0x3e, 0x07, 0x00,
   680  	0x00,
   681  }
   682  
   683  func (m *TxResponse) Marshal() (dAtA []byte, err error) {
   684  	size := m.Size()
   685  	dAtA = make([]byte, size)
   686  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   687  	if err != nil {
   688  		return nil, err
   689  	}
   690  	return dAtA[:n], nil
   691  }
   692  
   693  func (m *TxResponse) MarshalTo(dAtA []byte) (int, error) {
   694  	size := m.Size()
   695  	return m.MarshalToSizedBuffer(dAtA[:size])
   696  }
   697  
   698  func (m *TxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   699  	i := len(dAtA)
   700  	_ = i
   701  	var l int
   702  	_ = l
   703  	if len(m.Events) > 0 {
   704  		for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
   705  			{
   706  				size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   707  				if err != nil {
   708  					return 0, err
   709  				}
   710  				i -= size
   711  				i = encodeVarintAbci(dAtA, i, uint64(size))
   712  			}
   713  			i--
   714  			dAtA[i] = 0x6a
   715  		}
   716  	}
   717  	if len(m.Timestamp) > 0 {
   718  		i -= len(m.Timestamp)
   719  		copy(dAtA[i:], m.Timestamp)
   720  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Timestamp)))
   721  		i--
   722  		dAtA[i] = 0x62
   723  	}
   724  	if m.Tx != nil {
   725  		{
   726  			size, err := m.Tx.MarshalToSizedBuffer(dAtA[:i])
   727  			if err != nil {
   728  				return 0, err
   729  			}
   730  			i -= size
   731  			i = encodeVarintAbci(dAtA, i, uint64(size))
   732  		}
   733  		i--
   734  		dAtA[i] = 0x5a
   735  	}
   736  	if m.GasUsed != 0 {
   737  		i = encodeVarintAbci(dAtA, i, uint64(m.GasUsed))
   738  		i--
   739  		dAtA[i] = 0x50
   740  	}
   741  	if m.GasWanted != 0 {
   742  		i = encodeVarintAbci(dAtA, i, uint64(m.GasWanted))
   743  		i--
   744  		dAtA[i] = 0x48
   745  	}
   746  	if len(m.Info) > 0 {
   747  		i -= len(m.Info)
   748  		copy(dAtA[i:], m.Info)
   749  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Info)))
   750  		i--
   751  		dAtA[i] = 0x42
   752  	}
   753  	if len(m.Logs) > 0 {
   754  		for iNdEx := len(m.Logs) - 1; iNdEx >= 0; iNdEx-- {
   755  			{
   756  				size, err := m.Logs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   757  				if err != nil {
   758  					return 0, err
   759  				}
   760  				i -= size
   761  				i = encodeVarintAbci(dAtA, i, uint64(size))
   762  			}
   763  			i--
   764  			dAtA[i] = 0x3a
   765  		}
   766  	}
   767  	if len(m.RawLog) > 0 {
   768  		i -= len(m.RawLog)
   769  		copy(dAtA[i:], m.RawLog)
   770  		i = encodeVarintAbci(dAtA, i, uint64(len(m.RawLog)))
   771  		i--
   772  		dAtA[i] = 0x32
   773  	}
   774  	if len(m.Data) > 0 {
   775  		i -= len(m.Data)
   776  		copy(dAtA[i:], m.Data)
   777  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Data)))
   778  		i--
   779  		dAtA[i] = 0x2a
   780  	}
   781  	if m.Code != 0 {
   782  		i = encodeVarintAbci(dAtA, i, uint64(m.Code))
   783  		i--
   784  		dAtA[i] = 0x20
   785  	}
   786  	if len(m.Codespace) > 0 {
   787  		i -= len(m.Codespace)
   788  		copy(dAtA[i:], m.Codespace)
   789  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Codespace)))
   790  		i--
   791  		dAtA[i] = 0x1a
   792  	}
   793  	if len(m.TxHash) > 0 {
   794  		i -= len(m.TxHash)
   795  		copy(dAtA[i:], m.TxHash)
   796  		i = encodeVarintAbci(dAtA, i, uint64(len(m.TxHash)))
   797  		i--
   798  		dAtA[i] = 0x12
   799  	}
   800  	if m.Height != 0 {
   801  		i = encodeVarintAbci(dAtA, i, uint64(m.Height))
   802  		i--
   803  		dAtA[i] = 0x8
   804  	}
   805  	return len(dAtA) - i, nil
   806  }
   807  
   808  func (m *ABCIMessageLog) Marshal() (dAtA []byte, err error) {
   809  	size := m.Size()
   810  	dAtA = make([]byte, size)
   811  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   812  	if err != nil {
   813  		return nil, err
   814  	}
   815  	return dAtA[:n], nil
   816  }
   817  
   818  func (m *ABCIMessageLog) MarshalTo(dAtA []byte) (int, error) {
   819  	size := m.Size()
   820  	return m.MarshalToSizedBuffer(dAtA[:size])
   821  }
   822  
   823  func (m *ABCIMessageLog) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   824  	i := len(dAtA)
   825  	_ = i
   826  	var l int
   827  	_ = l
   828  	if len(m.Events) > 0 {
   829  		for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
   830  			{
   831  				size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   832  				if err != nil {
   833  					return 0, err
   834  				}
   835  				i -= size
   836  				i = encodeVarintAbci(dAtA, i, uint64(size))
   837  			}
   838  			i--
   839  			dAtA[i] = 0x1a
   840  		}
   841  	}
   842  	if len(m.Log) > 0 {
   843  		i -= len(m.Log)
   844  		copy(dAtA[i:], m.Log)
   845  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Log)))
   846  		i--
   847  		dAtA[i] = 0x12
   848  	}
   849  	if m.MsgIndex != 0 {
   850  		i = encodeVarintAbci(dAtA, i, uint64(m.MsgIndex))
   851  		i--
   852  		dAtA[i] = 0x8
   853  	}
   854  	return len(dAtA) - i, nil
   855  }
   856  
   857  func (m *StringEvent) Marshal() (dAtA []byte, err error) {
   858  	size := m.Size()
   859  	dAtA = make([]byte, size)
   860  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   861  	if err != nil {
   862  		return nil, err
   863  	}
   864  	return dAtA[:n], nil
   865  }
   866  
   867  func (m *StringEvent) MarshalTo(dAtA []byte) (int, error) {
   868  	size := m.Size()
   869  	return m.MarshalToSizedBuffer(dAtA[:size])
   870  }
   871  
   872  func (m *StringEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   873  	i := len(dAtA)
   874  	_ = i
   875  	var l int
   876  	_ = l
   877  	if len(m.Attributes) > 0 {
   878  		for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- {
   879  			{
   880  				size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   881  				if err != nil {
   882  					return 0, err
   883  				}
   884  				i -= size
   885  				i = encodeVarintAbci(dAtA, i, uint64(size))
   886  			}
   887  			i--
   888  			dAtA[i] = 0x12
   889  		}
   890  	}
   891  	if len(m.Type) > 0 {
   892  		i -= len(m.Type)
   893  		copy(dAtA[i:], m.Type)
   894  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Type)))
   895  		i--
   896  		dAtA[i] = 0xa
   897  	}
   898  	return len(dAtA) - i, nil
   899  }
   900  
   901  func (m *Attribute) Marshal() (dAtA []byte, err error) {
   902  	size := m.Size()
   903  	dAtA = make([]byte, size)
   904  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   905  	if err != nil {
   906  		return nil, err
   907  	}
   908  	return dAtA[:n], nil
   909  }
   910  
   911  func (m *Attribute) MarshalTo(dAtA []byte) (int, error) {
   912  	size := m.Size()
   913  	return m.MarshalToSizedBuffer(dAtA[:size])
   914  }
   915  
   916  func (m *Attribute) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   917  	i := len(dAtA)
   918  	_ = i
   919  	var l int
   920  	_ = l
   921  	if len(m.Value) > 0 {
   922  		i -= len(m.Value)
   923  		copy(dAtA[i:], m.Value)
   924  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Value)))
   925  		i--
   926  		dAtA[i] = 0x12
   927  	}
   928  	if len(m.Key) > 0 {
   929  		i -= len(m.Key)
   930  		copy(dAtA[i:], m.Key)
   931  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Key)))
   932  		i--
   933  		dAtA[i] = 0xa
   934  	}
   935  	return len(dAtA) - i, nil
   936  }
   937  
   938  func (m *GasInfo) Marshal() (dAtA []byte, err error) {
   939  	size := m.Size()
   940  	dAtA = make([]byte, size)
   941  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   942  	if err != nil {
   943  		return nil, err
   944  	}
   945  	return dAtA[:n], nil
   946  }
   947  
   948  func (m *GasInfo) MarshalTo(dAtA []byte) (int, error) {
   949  	size := m.Size()
   950  	return m.MarshalToSizedBuffer(dAtA[:size])
   951  }
   952  
   953  func (m *GasInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   954  	i := len(dAtA)
   955  	_ = i
   956  	var l int
   957  	_ = l
   958  	if m.GasUsed != 0 {
   959  		i = encodeVarintAbci(dAtA, i, uint64(m.GasUsed))
   960  		i--
   961  		dAtA[i] = 0x10
   962  	}
   963  	if m.GasWanted != 0 {
   964  		i = encodeVarintAbci(dAtA, i, uint64(m.GasWanted))
   965  		i--
   966  		dAtA[i] = 0x8
   967  	}
   968  	return len(dAtA) - i, nil
   969  }
   970  
   971  func (m *Result) Marshal() (dAtA []byte, err error) {
   972  	size := m.Size()
   973  	dAtA = make([]byte, size)
   974  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   975  	if err != nil {
   976  		return nil, err
   977  	}
   978  	return dAtA[:n], nil
   979  }
   980  
   981  func (m *Result) MarshalTo(dAtA []byte) (int, error) {
   982  	size := m.Size()
   983  	return m.MarshalToSizedBuffer(dAtA[:size])
   984  }
   985  
   986  func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   987  	i := len(dAtA)
   988  	_ = i
   989  	var l int
   990  	_ = l
   991  	if len(m.Events) > 0 {
   992  		for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
   993  			{
   994  				size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   995  				if err != nil {
   996  					return 0, err
   997  				}
   998  				i -= size
   999  				i = encodeVarintAbci(dAtA, i, uint64(size))
  1000  			}
  1001  			i--
  1002  			dAtA[i] = 0x1a
  1003  		}
  1004  	}
  1005  	if len(m.Log) > 0 {
  1006  		i -= len(m.Log)
  1007  		copy(dAtA[i:], m.Log)
  1008  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Log)))
  1009  		i--
  1010  		dAtA[i] = 0x12
  1011  	}
  1012  	if len(m.Data) > 0 {
  1013  		i -= len(m.Data)
  1014  		copy(dAtA[i:], m.Data)
  1015  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Data)))
  1016  		i--
  1017  		dAtA[i] = 0xa
  1018  	}
  1019  	return len(dAtA) - i, nil
  1020  }
  1021  
  1022  func (m *SimulationResponse) Marshal() (dAtA []byte, err error) {
  1023  	size := m.Size()
  1024  	dAtA = make([]byte, size)
  1025  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1026  	if err != nil {
  1027  		return nil, err
  1028  	}
  1029  	return dAtA[:n], nil
  1030  }
  1031  
  1032  func (m *SimulationResponse) MarshalTo(dAtA []byte) (int, error) {
  1033  	size := m.Size()
  1034  	return m.MarshalToSizedBuffer(dAtA[:size])
  1035  }
  1036  
  1037  func (m *SimulationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1038  	i := len(dAtA)
  1039  	_ = i
  1040  	var l int
  1041  	_ = l
  1042  	if m.Result != nil {
  1043  		{
  1044  			size, err := m.Result.MarshalToSizedBuffer(dAtA[:i])
  1045  			if err != nil {
  1046  				return 0, err
  1047  			}
  1048  			i -= size
  1049  			i = encodeVarintAbci(dAtA, i, uint64(size))
  1050  		}
  1051  		i--
  1052  		dAtA[i] = 0x12
  1053  	}
  1054  	{
  1055  		size, err := m.GasInfo.MarshalToSizedBuffer(dAtA[:i])
  1056  		if err != nil {
  1057  			return 0, err
  1058  		}
  1059  		i -= size
  1060  		i = encodeVarintAbci(dAtA, i, uint64(size))
  1061  	}
  1062  	i--
  1063  	dAtA[i] = 0xa
  1064  	return len(dAtA) - i, nil
  1065  }
  1066  
  1067  func (m *MsgData) Marshal() (dAtA []byte, err error) {
  1068  	size := m.Size()
  1069  	dAtA = make([]byte, size)
  1070  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1071  	if err != nil {
  1072  		return nil, err
  1073  	}
  1074  	return dAtA[:n], nil
  1075  }
  1076  
  1077  func (m *MsgData) MarshalTo(dAtA []byte) (int, error) {
  1078  	size := m.Size()
  1079  	return m.MarshalToSizedBuffer(dAtA[:size])
  1080  }
  1081  
  1082  func (m *MsgData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1083  	i := len(dAtA)
  1084  	_ = i
  1085  	var l int
  1086  	_ = l
  1087  	if len(m.Data) > 0 {
  1088  		i -= len(m.Data)
  1089  		copy(dAtA[i:], m.Data)
  1090  		i = encodeVarintAbci(dAtA, i, uint64(len(m.Data)))
  1091  		i--
  1092  		dAtA[i] = 0x12
  1093  	}
  1094  	if len(m.MsgType) > 0 {
  1095  		i -= len(m.MsgType)
  1096  		copy(dAtA[i:], m.MsgType)
  1097  		i = encodeVarintAbci(dAtA, i, uint64(len(m.MsgType)))
  1098  		i--
  1099  		dAtA[i] = 0xa
  1100  	}
  1101  	return len(dAtA) - i, nil
  1102  }
  1103  
  1104  func (m *TxMsgData) Marshal() (dAtA []byte, err error) {
  1105  	size := m.Size()
  1106  	dAtA = make([]byte, size)
  1107  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1108  	if err != nil {
  1109  		return nil, err
  1110  	}
  1111  	return dAtA[:n], nil
  1112  }
  1113  
  1114  func (m *TxMsgData) MarshalTo(dAtA []byte) (int, error) {
  1115  	size := m.Size()
  1116  	return m.MarshalToSizedBuffer(dAtA[:size])
  1117  }
  1118  
  1119  func (m *TxMsgData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1120  	i := len(dAtA)
  1121  	_ = i
  1122  	var l int
  1123  	_ = l
  1124  	if len(m.Data) > 0 {
  1125  		for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- {
  1126  			{
  1127  				size, err := m.Data[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1128  				if err != nil {
  1129  					return 0, err
  1130  				}
  1131  				i -= size
  1132  				i = encodeVarintAbci(dAtA, i, uint64(size))
  1133  			}
  1134  			i--
  1135  			dAtA[i] = 0xa
  1136  		}
  1137  	}
  1138  	return len(dAtA) - i, nil
  1139  }
  1140  
  1141  func (m *SearchTxsResult) Marshal() (dAtA []byte, err error) {
  1142  	size := m.Size()
  1143  	dAtA = make([]byte, size)
  1144  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1145  	if err != nil {
  1146  		return nil, err
  1147  	}
  1148  	return dAtA[:n], nil
  1149  }
  1150  
  1151  func (m *SearchTxsResult) MarshalTo(dAtA []byte) (int, error) {
  1152  	size := m.Size()
  1153  	return m.MarshalToSizedBuffer(dAtA[:size])
  1154  }
  1155  
  1156  func (m *SearchTxsResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1157  	i := len(dAtA)
  1158  	_ = i
  1159  	var l int
  1160  	_ = l
  1161  	if len(m.Txs) > 0 {
  1162  		for iNdEx := len(m.Txs) - 1; iNdEx >= 0; iNdEx-- {
  1163  			{
  1164  				size, err := m.Txs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1165  				if err != nil {
  1166  					return 0, err
  1167  				}
  1168  				i -= size
  1169  				i = encodeVarintAbci(dAtA, i, uint64(size))
  1170  			}
  1171  			i--
  1172  			dAtA[i] = 0x32
  1173  		}
  1174  	}
  1175  	if m.Limit != 0 {
  1176  		i = encodeVarintAbci(dAtA, i, uint64(m.Limit))
  1177  		i--
  1178  		dAtA[i] = 0x28
  1179  	}
  1180  	if m.PageTotal != 0 {
  1181  		i = encodeVarintAbci(dAtA, i, uint64(m.PageTotal))
  1182  		i--
  1183  		dAtA[i] = 0x20
  1184  	}
  1185  	if m.PageNumber != 0 {
  1186  		i = encodeVarintAbci(dAtA, i, uint64(m.PageNumber))
  1187  		i--
  1188  		dAtA[i] = 0x18
  1189  	}
  1190  	if m.Count != 0 {
  1191  		i = encodeVarintAbci(dAtA, i, uint64(m.Count))
  1192  		i--
  1193  		dAtA[i] = 0x10
  1194  	}
  1195  	if m.TotalCount != 0 {
  1196  		i = encodeVarintAbci(dAtA, i, uint64(m.TotalCount))
  1197  		i--
  1198  		dAtA[i] = 0x8
  1199  	}
  1200  	return len(dAtA) - i, nil
  1201  }
  1202  
  1203  func encodeVarintAbci(dAtA []byte, offset int, v uint64) int {
  1204  	offset -= sovAbci(v)
  1205  	base := offset
  1206  	for v >= 1<<7 {
  1207  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1208  		v >>= 7
  1209  		offset++
  1210  	}
  1211  	dAtA[offset] = uint8(v)
  1212  	return base
  1213  }
  1214  func (m *TxResponse) Size() (n int) {
  1215  	if m == nil {
  1216  		return 0
  1217  	}
  1218  	var l int
  1219  	_ = l
  1220  	if m.Height != 0 {
  1221  		n += 1 + sovAbci(uint64(m.Height))
  1222  	}
  1223  	l = len(m.TxHash)
  1224  	if l > 0 {
  1225  		n += 1 + l + sovAbci(uint64(l))
  1226  	}
  1227  	l = len(m.Codespace)
  1228  	if l > 0 {
  1229  		n += 1 + l + sovAbci(uint64(l))
  1230  	}
  1231  	if m.Code != 0 {
  1232  		n += 1 + sovAbci(uint64(m.Code))
  1233  	}
  1234  	l = len(m.Data)
  1235  	if l > 0 {
  1236  		n += 1 + l + sovAbci(uint64(l))
  1237  	}
  1238  	l = len(m.RawLog)
  1239  	if l > 0 {
  1240  		n += 1 + l + sovAbci(uint64(l))
  1241  	}
  1242  	if len(m.Logs) > 0 {
  1243  		for _, e := range m.Logs {
  1244  			l = e.Size()
  1245  			n += 1 + l + sovAbci(uint64(l))
  1246  		}
  1247  	}
  1248  	l = len(m.Info)
  1249  	if l > 0 {
  1250  		n += 1 + l + sovAbci(uint64(l))
  1251  	}
  1252  	if m.GasWanted != 0 {
  1253  		n += 1 + sovAbci(uint64(m.GasWanted))
  1254  	}
  1255  	if m.GasUsed != 0 {
  1256  		n += 1 + sovAbci(uint64(m.GasUsed))
  1257  	}
  1258  	if m.Tx != nil {
  1259  		l = m.Tx.Size()
  1260  		n += 1 + l + sovAbci(uint64(l))
  1261  	}
  1262  	l = len(m.Timestamp)
  1263  	if l > 0 {
  1264  		n += 1 + l + sovAbci(uint64(l))
  1265  	}
  1266  	if len(m.Events) > 0 {
  1267  		for _, e := range m.Events {
  1268  			l = e.Size()
  1269  			n += 1 + l + sovAbci(uint64(l))
  1270  		}
  1271  	}
  1272  	return n
  1273  }
  1274  
  1275  func (m *ABCIMessageLog) Size() (n int) {
  1276  	if m == nil {
  1277  		return 0
  1278  	}
  1279  	var l int
  1280  	_ = l
  1281  	if m.MsgIndex != 0 {
  1282  		n += 1 + sovAbci(uint64(m.MsgIndex))
  1283  	}
  1284  	l = len(m.Log)
  1285  	if l > 0 {
  1286  		n += 1 + l + sovAbci(uint64(l))
  1287  	}
  1288  	if len(m.Events) > 0 {
  1289  		for _, e := range m.Events {
  1290  			l = e.Size()
  1291  			n += 1 + l + sovAbci(uint64(l))
  1292  		}
  1293  	}
  1294  	return n
  1295  }
  1296  
  1297  func (m *StringEvent) Size() (n int) {
  1298  	if m == nil {
  1299  		return 0
  1300  	}
  1301  	var l int
  1302  	_ = l
  1303  	l = len(m.Type)
  1304  	if l > 0 {
  1305  		n += 1 + l + sovAbci(uint64(l))
  1306  	}
  1307  	if len(m.Attributes) > 0 {
  1308  		for _, e := range m.Attributes {
  1309  			l = e.Size()
  1310  			n += 1 + l + sovAbci(uint64(l))
  1311  		}
  1312  	}
  1313  	return n
  1314  }
  1315  
  1316  func (m *Attribute) Size() (n int) {
  1317  	if m == nil {
  1318  		return 0
  1319  	}
  1320  	var l int
  1321  	_ = l
  1322  	l = len(m.Key)
  1323  	if l > 0 {
  1324  		n += 1 + l + sovAbci(uint64(l))
  1325  	}
  1326  	l = len(m.Value)
  1327  	if l > 0 {
  1328  		n += 1 + l + sovAbci(uint64(l))
  1329  	}
  1330  	return n
  1331  }
  1332  
  1333  func (m *GasInfo) Size() (n int) {
  1334  	if m == nil {
  1335  		return 0
  1336  	}
  1337  	var l int
  1338  	_ = l
  1339  	if m.GasWanted != 0 {
  1340  		n += 1 + sovAbci(uint64(m.GasWanted))
  1341  	}
  1342  	if m.GasUsed != 0 {
  1343  		n += 1 + sovAbci(uint64(m.GasUsed))
  1344  	}
  1345  	return n
  1346  }
  1347  
  1348  func (m *Result) Size() (n int) {
  1349  	if m == nil {
  1350  		return 0
  1351  	}
  1352  	var l int
  1353  	_ = l
  1354  	l = len(m.Data)
  1355  	if l > 0 {
  1356  		n += 1 + l + sovAbci(uint64(l))
  1357  	}
  1358  	l = len(m.Log)
  1359  	if l > 0 {
  1360  		n += 1 + l + sovAbci(uint64(l))
  1361  	}
  1362  	if len(m.Events) > 0 {
  1363  		for _, e := range m.Events {
  1364  			l = e.Size()
  1365  			n += 1 + l + sovAbci(uint64(l))
  1366  		}
  1367  	}
  1368  	return n
  1369  }
  1370  
  1371  func (m *SimulationResponse) Size() (n int) {
  1372  	if m == nil {
  1373  		return 0
  1374  	}
  1375  	var l int
  1376  	_ = l
  1377  	l = m.GasInfo.Size()
  1378  	n += 1 + l + sovAbci(uint64(l))
  1379  	if m.Result != nil {
  1380  		l = m.Result.Size()
  1381  		n += 1 + l + sovAbci(uint64(l))
  1382  	}
  1383  	return n
  1384  }
  1385  
  1386  func (m *MsgData) Size() (n int) {
  1387  	if m == nil {
  1388  		return 0
  1389  	}
  1390  	var l int
  1391  	_ = l
  1392  	l = len(m.MsgType)
  1393  	if l > 0 {
  1394  		n += 1 + l + sovAbci(uint64(l))
  1395  	}
  1396  	l = len(m.Data)
  1397  	if l > 0 {
  1398  		n += 1 + l + sovAbci(uint64(l))
  1399  	}
  1400  	return n
  1401  }
  1402  
  1403  func (m *TxMsgData) Size() (n int) {
  1404  	if m == nil {
  1405  		return 0
  1406  	}
  1407  	var l int
  1408  	_ = l
  1409  	if len(m.Data) > 0 {
  1410  		for _, e := range m.Data {
  1411  			l = e.Size()
  1412  			n += 1 + l + sovAbci(uint64(l))
  1413  		}
  1414  	}
  1415  	return n
  1416  }
  1417  
  1418  func (m *SearchTxsResult) Size() (n int) {
  1419  	if m == nil {
  1420  		return 0
  1421  	}
  1422  	var l int
  1423  	_ = l
  1424  	if m.TotalCount != 0 {
  1425  		n += 1 + sovAbci(uint64(m.TotalCount))
  1426  	}
  1427  	if m.Count != 0 {
  1428  		n += 1 + sovAbci(uint64(m.Count))
  1429  	}
  1430  	if m.PageNumber != 0 {
  1431  		n += 1 + sovAbci(uint64(m.PageNumber))
  1432  	}
  1433  	if m.PageTotal != 0 {
  1434  		n += 1 + sovAbci(uint64(m.PageTotal))
  1435  	}
  1436  	if m.Limit != 0 {
  1437  		n += 1 + sovAbci(uint64(m.Limit))
  1438  	}
  1439  	if len(m.Txs) > 0 {
  1440  		for _, e := range m.Txs {
  1441  			l = e.Size()
  1442  			n += 1 + l + sovAbci(uint64(l))
  1443  		}
  1444  	}
  1445  	return n
  1446  }
  1447  
  1448  func sovAbci(x uint64) (n int) {
  1449  	return (math_bits.Len64(x|1) + 6) / 7
  1450  }
  1451  func sozAbci(x uint64) (n int) {
  1452  	return sovAbci(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1453  }
  1454  func (this *ABCIMessageLog) String() string {
  1455  	if this == nil {
  1456  		return "nil"
  1457  	}
  1458  	repeatedStringForEvents := "[]StringEvent{"
  1459  	for _, f := range this.Events {
  1460  		repeatedStringForEvents += strings.Replace(strings.Replace(f.String(), "StringEvent", "StringEvent", 1), `&`, ``, 1) + ","
  1461  	}
  1462  	repeatedStringForEvents += "}"
  1463  	s := strings.Join([]string{`&ABCIMessageLog{`,
  1464  		`MsgIndex:` + fmt.Sprintf("%v", this.MsgIndex) + `,`,
  1465  		`Log:` + fmt.Sprintf("%v", this.Log) + `,`,
  1466  		`Events:` + repeatedStringForEvents + `,`,
  1467  		`}`,
  1468  	}, "")
  1469  	return s
  1470  }
  1471  func (this *StringEvent) String() string {
  1472  	if this == nil {
  1473  		return "nil"
  1474  	}
  1475  	repeatedStringForAttributes := "[]Attribute{"
  1476  	for _, f := range this.Attributes {
  1477  		repeatedStringForAttributes += fmt.Sprintf("%v", f) + ","
  1478  	}
  1479  	repeatedStringForAttributes += "}"
  1480  	s := strings.Join([]string{`&StringEvent{`,
  1481  		`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  1482  		`Attributes:` + repeatedStringForAttributes + `,`,
  1483  		`}`,
  1484  	}, "")
  1485  	return s
  1486  }
  1487  func (this *MsgData) String() string {
  1488  	if this == nil {
  1489  		return "nil"
  1490  	}
  1491  	s := strings.Join([]string{`&MsgData{`,
  1492  		`MsgType:` + fmt.Sprintf("%v", this.MsgType) + `,`,
  1493  		`Data:` + fmt.Sprintf("%v", this.Data) + `,`,
  1494  		`}`,
  1495  	}, "")
  1496  	return s
  1497  }
  1498  func (this *TxMsgData) String() string {
  1499  	if this == nil {
  1500  		return "nil"
  1501  	}
  1502  	repeatedStringForData := "[]*MsgData{"
  1503  	for _, f := range this.Data {
  1504  		repeatedStringForData += strings.Replace(f.String(), "MsgData", "MsgData", 1) + ","
  1505  	}
  1506  	repeatedStringForData += "}"
  1507  	s := strings.Join([]string{`&TxMsgData{`,
  1508  		`Data:` + repeatedStringForData + `,`,
  1509  		`}`,
  1510  	}, "")
  1511  	return s
  1512  }
  1513  func (this *SearchTxsResult) String() string {
  1514  	if this == nil {
  1515  		return "nil"
  1516  	}
  1517  	repeatedStringForTxs := "[]*TxResponse{"
  1518  	for _, f := range this.Txs {
  1519  		repeatedStringForTxs += strings.Replace(fmt.Sprintf("%v", f), "TxResponse", "TxResponse", 1) + ","
  1520  	}
  1521  	repeatedStringForTxs += "}"
  1522  	s := strings.Join([]string{`&SearchTxsResult{`,
  1523  		`TotalCount:` + fmt.Sprintf("%v", this.TotalCount) + `,`,
  1524  		`Count:` + fmt.Sprintf("%v", this.Count) + `,`,
  1525  		`PageNumber:` + fmt.Sprintf("%v", this.PageNumber) + `,`,
  1526  		`PageTotal:` + fmt.Sprintf("%v", this.PageTotal) + `,`,
  1527  		`Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
  1528  		`Txs:` + repeatedStringForTxs + `,`,
  1529  		`}`,
  1530  	}, "")
  1531  	return s
  1532  }
  1533  func valueToStringAbci(v interface{}) string {
  1534  	rv := reflect.ValueOf(v)
  1535  	if rv.IsNil() {
  1536  		return "nil"
  1537  	}
  1538  	pv := reflect.Indirect(rv).Interface()
  1539  	return fmt.Sprintf("*%v", pv)
  1540  }
  1541  func (m *TxResponse) Unmarshal(dAtA []byte) error {
  1542  	l := len(dAtA)
  1543  	iNdEx := 0
  1544  	for iNdEx < l {
  1545  		preIndex := iNdEx
  1546  		var wire uint64
  1547  		for shift := uint(0); ; shift += 7 {
  1548  			if shift >= 64 {
  1549  				return ErrIntOverflowAbci
  1550  			}
  1551  			if iNdEx >= l {
  1552  				return io.ErrUnexpectedEOF
  1553  			}
  1554  			b := dAtA[iNdEx]
  1555  			iNdEx++
  1556  			wire |= uint64(b&0x7F) << shift
  1557  			if b < 0x80 {
  1558  				break
  1559  			}
  1560  		}
  1561  		fieldNum := int32(wire >> 3)
  1562  		wireType := int(wire & 0x7)
  1563  		if wireType == 4 {
  1564  			return fmt.Errorf("proto: TxResponse: wiretype end group for non-group")
  1565  		}
  1566  		if fieldNum <= 0 {
  1567  			return fmt.Errorf("proto: TxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1568  		}
  1569  		switch fieldNum {
  1570  		case 1:
  1571  			if wireType != 0 {
  1572  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  1573  			}
  1574  			m.Height = 0
  1575  			for shift := uint(0); ; shift += 7 {
  1576  				if shift >= 64 {
  1577  					return ErrIntOverflowAbci
  1578  				}
  1579  				if iNdEx >= l {
  1580  					return io.ErrUnexpectedEOF
  1581  				}
  1582  				b := dAtA[iNdEx]
  1583  				iNdEx++
  1584  				m.Height |= int64(b&0x7F) << shift
  1585  				if b < 0x80 {
  1586  					break
  1587  				}
  1588  			}
  1589  		case 2:
  1590  			if wireType != 2 {
  1591  				return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType)
  1592  			}
  1593  			var stringLen uint64
  1594  			for shift := uint(0); ; shift += 7 {
  1595  				if shift >= 64 {
  1596  					return ErrIntOverflowAbci
  1597  				}
  1598  				if iNdEx >= l {
  1599  					return io.ErrUnexpectedEOF
  1600  				}
  1601  				b := dAtA[iNdEx]
  1602  				iNdEx++
  1603  				stringLen |= uint64(b&0x7F) << shift
  1604  				if b < 0x80 {
  1605  					break
  1606  				}
  1607  			}
  1608  			intStringLen := int(stringLen)
  1609  			if intStringLen < 0 {
  1610  				return ErrInvalidLengthAbci
  1611  			}
  1612  			postIndex := iNdEx + intStringLen
  1613  			if postIndex < 0 {
  1614  				return ErrInvalidLengthAbci
  1615  			}
  1616  			if postIndex > l {
  1617  				return io.ErrUnexpectedEOF
  1618  			}
  1619  			m.TxHash = string(dAtA[iNdEx:postIndex])
  1620  			iNdEx = postIndex
  1621  		case 3:
  1622  			if wireType != 2 {
  1623  				return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType)
  1624  			}
  1625  			var stringLen uint64
  1626  			for shift := uint(0); ; shift += 7 {
  1627  				if shift >= 64 {
  1628  					return ErrIntOverflowAbci
  1629  				}
  1630  				if iNdEx >= l {
  1631  					return io.ErrUnexpectedEOF
  1632  				}
  1633  				b := dAtA[iNdEx]
  1634  				iNdEx++
  1635  				stringLen |= uint64(b&0x7F) << shift
  1636  				if b < 0x80 {
  1637  					break
  1638  				}
  1639  			}
  1640  			intStringLen := int(stringLen)
  1641  			if intStringLen < 0 {
  1642  				return ErrInvalidLengthAbci
  1643  			}
  1644  			postIndex := iNdEx + intStringLen
  1645  			if postIndex < 0 {
  1646  				return ErrInvalidLengthAbci
  1647  			}
  1648  			if postIndex > l {
  1649  				return io.ErrUnexpectedEOF
  1650  			}
  1651  			m.Codespace = string(dAtA[iNdEx:postIndex])
  1652  			iNdEx = postIndex
  1653  		case 4:
  1654  			if wireType != 0 {
  1655  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  1656  			}
  1657  			m.Code = 0
  1658  			for shift := uint(0); ; shift += 7 {
  1659  				if shift >= 64 {
  1660  					return ErrIntOverflowAbci
  1661  				}
  1662  				if iNdEx >= l {
  1663  					return io.ErrUnexpectedEOF
  1664  				}
  1665  				b := dAtA[iNdEx]
  1666  				iNdEx++
  1667  				m.Code |= uint32(b&0x7F) << shift
  1668  				if b < 0x80 {
  1669  					break
  1670  				}
  1671  			}
  1672  		case 5:
  1673  			if wireType != 2 {
  1674  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  1675  			}
  1676  			var stringLen uint64
  1677  			for shift := uint(0); ; shift += 7 {
  1678  				if shift >= 64 {
  1679  					return ErrIntOverflowAbci
  1680  				}
  1681  				if iNdEx >= l {
  1682  					return io.ErrUnexpectedEOF
  1683  				}
  1684  				b := dAtA[iNdEx]
  1685  				iNdEx++
  1686  				stringLen |= uint64(b&0x7F) << shift
  1687  				if b < 0x80 {
  1688  					break
  1689  				}
  1690  			}
  1691  			intStringLen := int(stringLen)
  1692  			if intStringLen < 0 {
  1693  				return ErrInvalidLengthAbci
  1694  			}
  1695  			postIndex := iNdEx + intStringLen
  1696  			if postIndex < 0 {
  1697  				return ErrInvalidLengthAbci
  1698  			}
  1699  			if postIndex > l {
  1700  				return io.ErrUnexpectedEOF
  1701  			}
  1702  			m.Data = string(dAtA[iNdEx:postIndex])
  1703  			iNdEx = postIndex
  1704  		case 6:
  1705  			if wireType != 2 {
  1706  				return fmt.Errorf("proto: wrong wireType = %d for field RawLog", wireType)
  1707  			}
  1708  			var stringLen uint64
  1709  			for shift := uint(0); ; shift += 7 {
  1710  				if shift >= 64 {
  1711  					return ErrIntOverflowAbci
  1712  				}
  1713  				if iNdEx >= l {
  1714  					return io.ErrUnexpectedEOF
  1715  				}
  1716  				b := dAtA[iNdEx]
  1717  				iNdEx++
  1718  				stringLen |= uint64(b&0x7F) << shift
  1719  				if b < 0x80 {
  1720  					break
  1721  				}
  1722  			}
  1723  			intStringLen := int(stringLen)
  1724  			if intStringLen < 0 {
  1725  				return ErrInvalidLengthAbci
  1726  			}
  1727  			postIndex := iNdEx + intStringLen
  1728  			if postIndex < 0 {
  1729  				return ErrInvalidLengthAbci
  1730  			}
  1731  			if postIndex > l {
  1732  				return io.ErrUnexpectedEOF
  1733  			}
  1734  			m.RawLog = string(dAtA[iNdEx:postIndex])
  1735  			iNdEx = postIndex
  1736  		case 7:
  1737  			if wireType != 2 {
  1738  				return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType)
  1739  			}
  1740  			var msglen int
  1741  			for shift := uint(0); ; shift += 7 {
  1742  				if shift >= 64 {
  1743  					return ErrIntOverflowAbci
  1744  				}
  1745  				if iNdEx >= l {
  1746  					return io.ErrUnexpectedEOF
  1747  				}
  1748  				b := dAtA[iNdEx]
  1749  				iNdEx++
  1750  				msglen |= int(b&0x7F) << shift
  1751  				if b < 0x80 {
  1752  					break
  1753  				}
  1754  			}
  1755  			if msglen < 0 {
  1756  				return ErrInvalidLengthAbci
  1757  			}
  1758  			postIndex := iNdEx + msglen
  1759  			if postIndex < 0 {
  1760  				return ErrInvalidLengthAbci
  1761  			}
  1762  			if postIndex > l {
  1763  				return io.ErrUnexpectedEOF
  1764  			}
  1765  			m.Logs = append(m.Logs, ABCIMessageLog{})
  1766  			if err := m.Logs[len(m.Logs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1767  				return err
  1768  			}
  1769  			iNdEx = postIndex
  1770  		case 8:
  1771  			if wireType != 2 {
  1772  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  1773  			}
  1774  			var stringLen uint64
  1775  			for shift := uint(0); ; shift += 7 {
  1776  				if shift >= 64 {
  1777  					return ErrIntOverflowAbci
  1778  				}
  1779  				if iNdEx >= l {
  1780  					return io.ErrUnexpectedEOF
  1781  				}
  1782  				b := dAtA[iNdEx]
  1783  				iNdEx++
  1784  				stringLen |= uint64(b&0x7F) << shift
  1785  				if b < 0x80 {
  1786  					break
  1787  				}
  1788  			}
  1789  			intStringLen := int(stringLen)
  1790  			if intStringLen < 0 {
  1791  				return ErrInvalidLengthAbci
  1792  			}
  1793  			postIndex := iNdEx + intStringLen
  1794  			if postIndex < 0 {
  1795  				return ErrInvalidLengthAbci
  1796  			}
  1797  			if postIndex > l {
  1798  				return io.ErrUnexpectedEOF
  1799  			}
  1800  			m.Info = string(dAtA[iNdEx:postIndex])
  1801  			iNdEx = postIndex
  1802  		case 9:
  1803  			if wireType != 0 {
  1804  				return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType)
  1805  			}
  1806  			m.GasWanted = 0
  1807  			for shift := uint(0); ; shift += 7 {
  1808  				if shift >= 64 {
  1809  					return ErrIntOverflowAbci
  1810  				}
  1811  				if iNdEx >= l {
  1812  					return io.ErrUnexpectedEOF
  1813  				}
  1814  				b := dAtA[iNdEx]
  1815  				iNdEx++
  1816  				m.GasWanted |= int64(b&0x7F) << shift
  1817  				if b < 0x80 {
  1818  					break
  1819  				}
  1820  			}
  1821  		case 10:
  1822  			if wireType != 0 {
  1823  				return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType)
  1824  			}
  1825  			m.GasUsed = 0
  1826  			for shift := uint(0); ; shift += 7 {
  1827  				if shift >= 64 {
  1828  					return ErrIntOverflowAbci
  1829  				}
  1830  				if iNdEx >= l {
  1831  					return io.ErrUnexpectedEOF
  1832  				}
  1833  				b := dAtA[iNdEx]
  1834  				iNdEx++
  1835  				m.GasUsed |= int64(b&0x7F) << shift
  1836  				if b < 0x80 {
  1837  					break
  1838  				}
  1839  			}
  1840  		case 11:
  1841  			if wireType != 2 {
  1842  				return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
  1843  			}
  1844  			var msglen int
  1845  			for shift := uint(0); ; shift += 7 {
  1846  				if shift >= 64 {
  1847  					return ErrIntOverflowAbci
  1848  				}
  1849  				if iNdEx >= l {
  1850  					return io.ErrUnexpectedEOF
  1851  				}
  1852  				b := dAtA[iNdEx]
  1853  				iNdEx++
  1854  				msglen |= int(b&0x7F) << shift
  1855  				if b < 0x80 {
  1856  					break
  1857  				}
  1858  			}
  1859  			if msglen < 0 {
  1860  				return ErrInvalidLengthAbci
  1861  			}
  1862  			postIndex := iNdEx + msglen
  1863  			if postIndex < 0 {
  1864  				return ErrInvalidLengthAbci
  1865  			}
  1866  			if postIndex > l {
  1867  				return io.ErrUnexpectedEOF
  1868  			}
  1869  			if m.Tx == nil {
  1870  				m.Tx = &types.Any{}
  1871  			}
  1872  			if err := m.Tx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1873  				return err
  1874  			}
  1875  			iNdEx = postIndex
  1876  		case 12:
  1877  			if wireType != 2 {
  1878  				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  1879  			}
  1880  			var stringLen uint64
  1881  			for shift := uint(0); ; shift += 7 {
  1882  				if shift >= 64 {
  1883  					return ErrIntOverflowAbci
  1884  				}
  1885  				if iNdEx >= l {
  1886  					return io.ErrUnexpectedEOF
  1887  				}
  1888  				b := dAtA[iNdEx]
  1889  				iNdEx++
  1890  				stringLen |= uint64(b&0x7F) << shift
  1891  				if b < 0x80 {
  1892  					break
  1893  				}
  1894  			}
  1895  			intStringLen := int(stringLen)
  1896  			if intStringLen < 0 {
  1897  				return ErrInvalidLengthAbci
  1898  			}
  1899  			postIndex := iNdEx + intStringLen
  1900  			if postIndex < 0 {
  1901  				return ErrInvalidLengthAbci
  1902  			}
  1903  			if postIndex > l {
  1904  				return io.ErrUnexpectedEOF
  1905  			}
  1906  			m.Timestamp = string(dAtA[iNdEx:postIndex])
  1907  			iNdEx = postIndex
  1908  		case 13:
  1909  			if wireType != 2 {
  1910  				return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
  1911  			}
  1912  			var msglen int
  1913  			for shift := uint(0); ; shift += 7 {
  1914  				if shift >= 64 {
  1915  					return ErrIntOverflowAbci
  1916  				}
  1917  				if iNdEx >= l {
  1918  					return io.ErrUnexpectedEOF
  1919  				}
  1920  				b := dAtA[iNdEx]
  1921  				iNdEx++
  1922  				msglen |= int(b&0x7F) << shift
  1923  				if b < 0x80 {
  1924  					break
  1925  				}
  1926  			}
  1927  			if msglen < 0 {
  1928  				return ErrInvalidLengthAbci
  1929  			}
  1930  			postIndex := iNdEx + msglen
  1931  			if postIndex < 0 {
  1932  				return ErrInvalidLengthAbci
  1933  			}
  1934  			if postIndex > l {
  1935  				return io.ErrUnexpectedEOF
  1936  			}
  1937  			m.Events = append(m.Events, types1.Event{})
  1938  			if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1939  				return err
  1940  			}
  1941  			iNdEx = postIndex
  1942  		default:
  1943  			iNdEx = preIndex
  1944  			skippy, err := skipAbci(dAtA[iNdEx:])
  1945  			if err != nil {
  1946  				return err
  1947  			}
  1948  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1949  				return ErrInvalidLengthAbci
  1950  			}
  1951  			if (iNdEx + skippy) > l {
  1952  				return io.ErrUnexpectedEOF
  1953  			}
  1954  			iNdEx += skippy
  1955  		}
  1956  	}
  1957  
  1958  	if iNdEx > l {
  1959  		return io.ErrUnexpectedEOF
  1960  	}
  1961  	return nil
  1962  }
  1963  func (m *ABCIMessageLog) Unmarshal(dAtA []byte) error {
  1964  	l := len(dAtA)
  1965  	iNdEx := 0
  1966  	for iNdEx < l {
  1967  		preIndex := iNdEx
  1968  		var wire uint64
  1969  		for shift := uint(0); ; shift += 7 {
  1970  			if shift >= 64 {
  1971  				return ErrIntOverflowAbci
  1972  			}
  1973  			if iNdEx >= l {
  1974  				return io.ErrUnexpectedEOF
  1975  			}
  1976  			b := dAtA[iNdEx]
  1977  			iNdEx++
  1978  			wire |= uint64(b&0x7F) << shift
  1979  			if b < 0x80 {
  1980  				break
  1981  			}
  1982  		}
  1983  		fieldNum := int32(wire >> 3)
  1984  		wireType := int(wire & 0x7)
  1985  		if wireType == 4 {
  1986  			return fmt.Errorf("proto: ABCIMessageLog: wiretype end group for non-group")
  1987  		}
  1988  		if fieldNum <= 0 {
  1989  			return fmt.Errorf("proto: ABCIMessageLog: illegal tag %d (wire type %d)", fieldNum, wire)
  1990  		}
  1991  		switch fieldNum {
  1992  		case 1:
  1993  			if wireType != 0 {
  1994  				return fmt.Errorf("proto: wrong wireType = %d for field MsgIndex", wireType)
  1995  			}
  1996  			m.MsgIndex = 0
  1997  			for shift := uint(0); ; shift += 7 {
  1998  				if shift >= 64 {
  1999  					return ErrIntOverflowAbci
  2000  				}
  2001  				if iNdEx >= l {
  2002  					return io.ErrUnexpectedEOF
  2003  				}
  2004  				b := dAtA[iNdEx]
  2005  				iNdEx++
  2006  				m.MsgIndex |= uint32(b&0x7F) << shift
  2007  				if b < 0x80 {
  2008  					break
  2009  				}
  2010  			}
  2011  		case 2:
  2012  			if wireType != 2 {
  2013  				return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  2014  			}
  2015  			var stringLen uint64
  2016  			for shift := uint(0); ; shift += 7 {
  2017  				if shift >= 64 {
  2018  					return ErrIntOverflowAbci
  2019  				}
  2020  				if iNdEx >= l {
  2021  					return io.ErrUnexpectedEOF
  2022  				}
  2023  				b := dAtA[iNdEx]
  2024  				iNdEx++
  2025  				stringLen |= uint64(b&0x7F) << shift
  2026  				if b < 0x80 {
  2027  					break
  2028  				}
  2029  			}
  2030  			intStringLen := int(stringLen)
  2031  			if intStringLen < 0 {
  2032  				return ErrInvalidLengthAbci
  2033  			}
  2034  			postIndex := iNdEx + intStringLen
  2035  			if postIndex < 0 {
  2036  				return ErrInvalidLengthAbci
  2037  			}
  2038  			if postIndex > l {
  2039  				return io.ErrUnexpectedEOF
  2040  			}
  2041  			m.Log = string(dAtA[iNdEx:postIndex])
  2042  			iNdEx = postIndex
  2043  		case 3:
  2044  			if wireType != 2 {
  2045  				return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
  2046  			}
  2047  			var msglen int
  2048  			for shift := uint(0); ; shift += 7 {
  2049  				if shift >= 64 {
  2050  					return ErrIntOverflowAbci
  2051  				}
  2052  				if iNdEx >= l {
  2053  					return io.ErrUnexpectedEOF
  2054  				}
  2055  				b := dAtA[iNdEx]
  2056  				iNdEx++
  2057  				msglen |= int(b&0x7F) << shift
  2058  				if b < 0x80 {
  2059  					break
  2060  				}
  2061  			}
  2062  			if msglen < 0 {
  2063  				return ErrInvalidLengthAbci
  2064  			}
  2065  			postIndex := iNdEx + msglen
  2066  			if postIndex < 0 {
  2067  				return ErrInvalidLengthAbci
  2068  			}
  2069  			if postIndex > l {
  2070  				return io.ErrUnexpectedEOF
  2071  			}
  2072  			m.Events = append(m.Events, StringEvent{})
  2073  			if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2074  				return err
  2075  			}
  2076  			iNdEx = postIndex
  2077  		default:
  2078  			iNdEx = preIndex
  2079  			skippy, err := skipAbci(dAtA[iNdEx:])
  2080  			if err != nil {
  2081  				return err
  2082  			}
  2083  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2084  				return ErrInvalidLengthAbci
  2085  			}
  2086  			if (iNdEx + skippy) > l {
  2087  				return io.ErrUnexpectedEOF
  2088  			}
  2089  			iNdEx += skippy
  2090  		}
  2091  	}
  2092  
  2093  	if iNdEx > l {
  2094  		return io.ErrUnexpectedEOF
  2095  	}
  2096  	return nil
  2097  }
  2098  func (m *StringEvent) Unmarshal(dAtA []byte) error {
  2099  	l := len(dAtA)
  2100  	iNdEx := 0
  2101  	for iNdEx < l {
  2102  		preIndex := iNdEx
  2103  		var wire uint64
  2104  		for shift := uint(0); ; shift += 7 {
  2105  			if shift >= 64 {
  2106  				return ErrIntOverflowAbci
  2107  			}
  2108  			if iNdEx >= l {
  2109  				return io.ErrUnexpectedEOF
  2110  			}
  2111  			b := dAtA[iNdEx]
  2112  			iNdEx++
  2113  			wire |= uint64(b&0x7F) << shift
  2114  			if b < 0x80 {
  2115  				break
  2116  			}
  2117  		}
  2118  		fieldNum := int32(wire >> 3)
  2119  		wireType := int(wire & 0x7)
  2120  		if wireType == 4 {
  2121  			return fmt.Errorf("proto: StringEvent: wiretype end group for non-group")
  2122  		}
  2123  		if fieldNum <= 0 {
  2124  			return fmt.Errorf("proto: StringEvent: illegal tag %d (wire type %d)", fieldNum, wire)
  2125  		}
  2126  		switch fieldNum {
  2127  		case 1:
  2128  			if wireType != 2 {
  2129  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2130  			}
  2131  			var stringLen uint64
  2132  			for shift := uint(0); ; shift += 7 {
  2133  				if shift >= 64 {
  2134  					return ErrIntOverflowAbci
  2135  				}
  2136  				if iNdEx >= l {
  2137  					return io.ErrUnexpectedEOF
  2138  				}
  2139  				b := dAtA[iNdEx]
  2140  				iNdEx++
  2141  				stringLen |= uint64(b&0x7F) << shift
  2142  				if b < 0x80 {
  2143  					break
  2144  				}
  2145  			}
  2146  			intStringLen := int(stringLen)
  2147  			if intStringLen < 0 {
  2148  				return ErrInvalidLengthAbci
  2149  			}
  2150  			postIndex := iNdEx + intStringLen
  2151  			if postIndex < 0 {
  2152  				return ErrInvalidLengthAbci
  2153  			}
  2154  			if postIndex > l {
  2155  				return io.ErrUnexpectedEOF
  2156  			}
  2157  			m.Type = string(dAtA[iNdEx:postIndex])
  2158  			iNdEx = postIndex
  2159  		case 2:
  2160  			if wireType != 2 {
  2161  				return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType)
  2162  			}
  2163  			var msglen int
  2164  			for shift := uint(0); ; shift += 7 {
  2165  				if shift >= 64 {
  2166  					return ErrIntOverflowAbci
  2167  				}
  2168  				if iNdEx >= l {
  2169  					return io.ErrUnexpectedEOF
  2170  				}
  2171  				b := dAtA[iNdEx]
  2172  				iNdEx++
  2173  				msglen |= int(b&0x7F) << shift
  2174  				if b < 0x80 {
  2175  					break
  2176  				}
  2177  			}
  2178  			if msglen < 0 {
  2179  				return ErrInvalidLengthAbci
  2180  			}
  2181  			postIndex := iNdEx + msglen
  2182  			if postIndex < 0 {
  2183  				return ErrInvalidLengthAbci
  2184  			}
  2185  			if postIndex > l {
  2186  				return io.ErrUnexpectedEOF
  2187  			}
  2188  			m.Attributes = append(m.Attributes, Attribute{})
  2189  			if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2190  				return err
  2191  			}
  2192  			iNdEx = postIndex
  2193  		default:
  2194  			iNdEx = preIndex
  2195  			skippy, err := skipAbci(dAtA[iNdEx:])
  2196  			if err != nil {
  2197  				return err
  2198  			}
  2199  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2200  				return ErrInvalidLengthAbci
  2201  			}
  2202  			if (iNdEx + skippy) > l {
  2203  				return io.ErrUnexpectedEOF
  2204  			}
  2205  			iNdEx += skippy
  2206  		}
  2207  	}
  2208  
  2209  	if iNdEx > l {
  2210  		return io.ErrUnexpectedEOF
  2211  	}
  2212  	return nil
  2213  }
  2214  func (m *Attribute) Unmarshal(dAtA []byte) error {
  2215  	l := len(dAtA)
  2216  	iNdEx := 0
  2217  	for iNdEx < l {
  2218  		preIndex := iNdEx
  2219  		var wire uint64
  2220  		for shift := uint(0); ; shift += 7 {
  2221  			if shift >= 64 {
  2222  				return ErrIntOverflowAbci
  2223  			}
  2224  			if iNdEx >= l {
  2225  				return io.ErrUnexpectedEOF
  2226  			}
  2227  			b := dAtA[iNdEx]
  2228  			iNdEx++
  2229  			wire |= uint64(b&0x7F) << shift
  2230  			if b < 0x80 {
  2231  				break
  2232  			}
  2233  		}
  2234  		fieldNum := int32(wire >> 3)
  2235  		wireType := int(wire & 0x7)
  2236  		if wireType == 4 {
  2237  			return fmt.Errorf("proto: Attribute: wiretype end group for non-group")
  2238  		}
  2239  		if fieldNum <= 0 {
  2240  			return fmt.Errorf("proto: Attribute: illegal tag %d (wire type %d)", fieldNum, wire)
  2241  		}
  2242  		switch fieldNum {
  2243  		case 1:
  2244  			if wireType != 2 {
  2245  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  2246  			}
  2247  			var stringLen uint64
  2248  			for shift := uint(0); ; shift += 7 {
  2249  				if shift >= 64 {
  2250  					return ErrIntOverflowAbci
  2251  				}
  2252  				if iNdEx >= l {
  2253  					return io.ErrUnexpectedEOF
  2254  				}
  2255  				b := dAtA[iNdEx]
  2256  				iNdEx++
  2257  				stringLen |= uint64(b&0x7F) << shift
  2258  				if b < 0x80 {
  2259  					break
  2260  				}
  2261  			}
  2262  			intStringLen := int(stringLen)
  2263  			if intStringLen < 0 {
  2264  				return ErrInvalidLengthAbci
  2265  			}
  2266  			postIndex := iNdEx + intStringLen
  2267  			if postIndex < 0 {
  2268  				return ErrInvalidLengthAbci
  2269  			}
  2270  			if postIndex > l {
  2271  				return io.ErrUnexpectedEOF
  2272  			}
  2273  			m.Key = string(dAtA[iNdEx:postIndex])
  2274  			iNdEx = postIndex
  2275  		case 2:
  2276  			if wireType != 2 {
  2277  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  2278  			}
  2279  			var stringLen uint64
  2280  			for shift := uint(0); ; shift += 7 {
  2281  				if shift >= 64 {
  2282  					return ErrIntOverflowAbci
  2283  				}
  2284  				if iNdEx >= l {
  2285  					return io.ErrUnexpectedEOF
  2286  				}
  2287  				b := dAtA[iNdEx]
  2288  				iNdEx++
  2289  				stringLen |= uint64(b&0x7F) << shift
  2290  				if b < 0x80 {
  2291  					break
  2292  				}
  2293  			}
  2294  			intStringLen := int(stringLen)
  2295  			if intStringLen < 0 {
  2296  				return ErrInvalidLengthAbci
  2297  			}
  2298  			postIndex := iNdEx + intStringLen
  2299  			if postIndex < 0 {
  2300  				return ErrInvalidLengthAbci
  2301  			}
  2302  			if postIndex > l {
  2303  				return io.ErrUnexpectedEOF
  2304  			}
  2305  			m.Value = string(dAtA[iNdEx:postIndex])
  2306  			iNdEx = postIndex
  2307  		default:
  2308  			iNdEx = preIndex
  2309  			skippy, err := skipAbci(dAtA[iNdEx:])
  2310  			if err != nil {
  2311  				return err
  2312  			}
  2313  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2314  				return ErrInvalidLengthAbci
  2315  			}
  2316  			if (iNdEx + skippy) > l {
  2317  				return io.ErrUnexpectedEOF
  2318  			}
  2319  			iNdEx += skippy
  2320  		}
  2321  	}
  2322  
  2323  	if iNdEx > l {
  2324  		return io.ErrUnexpectedEOF
  2325  	}
  2326  	return nil
  2327  }
  2328  func (m *GasInfo) Unmarshal(dAtA []byte) error {
  2329  	l := len(dAtA)
  2330  	iNdEx := 0
  2331  	for iNdEx < l {
  2332  		preIndex := iNdEx
  2333  		var wire uint64
  2334  		for shift := uint(0); ; shift += 7 {
  2335  			if shift >= 64 {
  2336  				return ErrIntOverflowAbci
  2337  			}
  2338  			if iNdEx >= l {
  2339  				return io.ErrUnexpectedEOF
  2340  			}
  2341  			b := dAtA[iNdEx]
  2342  			iNdEx++
  2343  			wire |= uint64(b&0x7F) << shift
  2344  			if b < 0x80 {
  2345  				break
  2346  			}
  2347  		}
  2348  		fieldNum := int32(wire >> 3)
  2349  		wireType := int(wire & 0x7)
  2350  		if wireType == 4 {
  2351  			return fmt.Errorf("proto: GasInfo: wiretype end group for non-group")
  2352  		}
  2353  		if fieldNum <= 0 {
  2354  			return fmt.Errorf("proto: GasInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  2355  		}
  2356  		switch fieldNum {
  2357  		case 1:
  2358  			if wireType != 0 {
  2359  				return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType)
  2360  			}
  2361  			m.GasWanted = 0
  2362  			for shift := uint(0); ; shift += 7 {
  2363  				if shift >= 64 {
  2364  					return ErrIntOverflowAbci
  2365  				}
  2366  				if iNdEx >= l {
  2367  					return io.ErrUnexpectedEOF
  2368  				}
  2369  				b := dAtA[iNdEx]
  2370  				iNdEx++
  2371  				m.GasWanted |= uint64(b&0x7F) << shift
  2372  				if b < 0x80 {
  2373  					break
  2374  				}
  2375  			}
  2376  		case 2:
  2377  			if wireType != 0 {
  2378  				return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType)
  2379  			}
  2380  			m.GasUsed = 0
  2381  			for shift := uint(0); ; shift += 7 {
  2382  				if shift >= 64 {
  2383  					return ErrIntOverflowAbci
  2384  				}
  2385  				if iNdEx >= l {
  2386  					return io.ErrUnexpectedEOF
  2387  				}
  2388  				b := dAtA[iNdEx]
  2389  				iNdEx++
  2390  				m.GasUsed |= uint64(b&0x7F) << shift
  2391  				if b < 0x80 {
  2392  					break
  2393  				}
  2394  			}
  2395  		default:
  2396  			iNdEx = preIndex
  2397  			skippy, err := skipAbci(dAtA[iNdEx:])
  2398  			if err != nil {
  2399  				return err
  2400  			}
  2401  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2402  				return ErrInvalidLengthAbci
  2403  			}
  2404  			if (iNdEx + skippy) > l {
  2405  				return io.ErrUnexpectedEOF
  2406  			}
  2407  			iNdEx += skippy
  2408  		}
  2409  	}
  2410  
  2411  	if iNdEx > l {
  2412  		return io.ErrUnexpectedEOF
  2413  	}
  2414  	return nil
  2415  }
  2416  func (m *Result) Unmarshal(dAtA []byte) error {
  2417  	l := len(dAtA)
  2418  	iNdEx := 0
  2419  	for iNdEx < l {
  2420  		preIndex := iNdEx
  2421  		var wire uint64
  2422  		for shift := uint(0); ; shift += 7 {
  2423  			if shift >= 64 {
  2424  				return ErrIntOverflowAbci
  2425  			}
  2426  			if iNdEx >= l {
  2427  				return io.ErrUnexpectedEOF
  2428  			}
  2429  			b := dAtA[iNdEx]
  2430  			iNdEx++
  2431  			wire |= uint64(b&0x7F) << shift
  2432  			if b < 0x80 {
  2433  				break
  2434  			}
  2435  		}
  2436  		fieldNum := int32(wire >> 3)
  2437  		wireType := int(wire & 0x7)
  2438  		if wireType == 4 {
  2439  			return fmt.Errorf("proto: Result: wiretype end group for non-group")
  2440  		}
  2441  		if fieldNum <= 0 {
  2442  			return fmt.Errorf("proto: Result: illegal tag %d (wire type %d)", fieldNum, wire)
  2443  		}
  2444  		switch fieldNum {
  2445  		case 1:
  2446  			if wireType != 2 {
  2447  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2448  			}
  2449  			var byteLen int
  2450  			for shift := uint(0); ; shift += 7 {
  2451  				if shift >= 64 {
  2452  					return ErrIntOverflowAbci
  2453  				}
  2454  				if iNdEx >= l {
  2455  					return io.ErrUnexpectedEOF
  2456  				}
  2457  				b := dAtA[iNdEx]
  2458  				iNdEx++
  2459  				byteLen |= int(b&0x7F) << shift
  2460  				if b < 0x80 {
  2461  					break
  2462  				}
  2463  			}
  2464  			if byteLen < 0 {
  2465  				return ErrInvalidLengthAbci
  2466  			}
  2467  			postIndex := iNdEx + byteLen
  2468  			if postIndex < 0 {
  2469  				return ErrInvalidLengthAbci
  2470  			}
  2471  			if postIndex > l {
  2472  				return io.ErrUnexpectedEOF
  2473  			}
  2474  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  2475  			if m.Data == nil {
  2476  				m.Data = []byte{}
  2477  			}
  2478  			iNdEx = postIndex
  2479  		case 2:
  2480  			if wireType != 2 {
  2481  				return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  2482  			}
  2483  			var stringLen uint64
  2484  			for shift := uint(0); ; shift += 7 {
  2485  				if shift >= 64 {
  2486  					return ErrIntOverflowAbci
  2487  				}
  2488  				if iNdEx >= l {
  2489  					return io.ErrUnexpectedEOF
  2490  				}
  2491  				b := dAtA[iNdEx]
  2492  				iNdEx++
  2493  				stringLen |= uint64(b&0x7F) << shift
  2494  				if b < 0x80 {
  2495  					break
  2496  				}
  2497  			}
  2498  			intStringLen := int(stringLen)
  2499  			if intStringLen < 0 {
  2500  				return ErrInvalidLengthAbci
  2501  			}
  2502  			postIndex := iNdEx + intStringLen
  2503  			if postIndex < 0 {
  2504  				return ErrInvalidLengthAbci
  2505  			}
  2506  			if postIndex > l {
  2507  				return io.ErrUnexpectedEOF
  2508  			}
  2509  			m.Log = string(dAtA[iNdEx:postIndex])
  2510  			iNdEx = postIndex
  2511  		case 3:
  2512  			if wireType != 2 {
  2513  				return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
  2514  			}
  2515  			var msglen int
  2516  			for shift := uint(0); ; shift += 7 {
  2517  				if shift >= 64 {
  2518  					return ErrIntOverflowAbci
  2519  				}
  2520  				if iNdEx >= l {
  2521  					return io.ErrUnexpectedEOF
  2522  				}
  2523  				b := dAtA[iNdEx]
  2524  				iNdEx++
  2525  				msglen |= int(b&0x7F) << shift
  2526  				if b < 0x80 {
  2527  					break
  2528  				}
  2529  			}
  2530  			if msglen < 0 {
  2531  				return ErrInvalidLengthAbci
  2532  			}
  2533  			postIndex := iNdEx + msglen
  2534  			if postIndex < 0 {
  2535  				return ErrInvalidLengthAbci
  2536  			}
  2537  			if postIndex > l {
  2538  				return io.ErrUnexpectedEOF
  2539  			}
  2540  			m.Events = append(m.Events, types1.Event{})
  2541  			if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2542  				return err
  2543  			}
  2544  			iNdEx = postIndex
  2545  		default:
  2546  			iNdEx = preIndex
  2547  			skippy, err := skipAbci(dAtA[iNdEx:])
  2548  			if err != nil {
  2549  				return err
  2550  			}
  2551  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2552  				return ErrInvalidLengthAbci
  2553  			}
  2554  			if (iNdEx + skippy) > l {
  2555  				return io.ErrUnexpectedEOF
  2556  			}
  2557  			iNdEx += skippy
  2558  		}
  2559  	}
  2560  
  2561  	if iNdEx > l {
  2562  		return io.ErrUnexpectedEOF
  2563  	}
  2564  	return nil
  2565  }
  2566  func (m *SimulationResponse) Unmarshal(dAtA []byte) error {
  2567  	l := len(dAtA)
  2568  	iNdEx := 0
  2569  	for iNdEx < l {
  2570  		preIndex := iNdEx
  2571  		var wire uint64
  2572  		for shift := uint(0); ; shift += 7 {
  2573  			if shift >= 64 {
  2574  				return ErrIntOverflowAbci
  2575  			}
  2576  			if iNdEx >= l {
  2577  				return io.ErrUnexpectedEOF
  2578  			}
  2579  			b := dAtA[iNdEx]
  2580  			iNdEx++
  2581  			wire |= uint64(b&0x7F) << shift
  2582  			if b < 0x80 {
  2583  				break
  2584  			}
  2585  		}
  2586  		fieldNum := int32(wire >> 3)
  2587  		wireType := int(wire & 0x7)
  2588  		if wireType == 4 {
  2589  			return fmt.Errorf("proto: SimulationResponse: wiretype end group for non-group")
  2590  		}
  2591  		if fieldNum <= 0 {
  2592  			return fmt.Errorf("proto: SimulationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2593  		}
  2594  		switch fieldNum {
  2595  		case 1:
  2596  			if wireType != 2 {
  2597  				return fmt.Errorf("proto: wrong wireType = %d for field GasInfo", wireType)
  2598  			}
  2599  			var msglen int
  2600  			for shift := uint(0); ; shift += 7 {
  2601  				if shift >= 64 {
  2602  					return ErrIntOverflowAbci
  2603  				}
  2604  				if iNdEx >= l {
  2605  					return io.ErrUnexpectedEOF
  2606  				}
  2607  				b := dAtA[iNdEx]
  2608  				iNdEx++
  2609  				msglen |= int(b&0x7F) << shift
  2610  				if b < 0x80 {
  2611  					break
  2612  				}
  2613  			}
  2614  			if msglen < 0 {
  2615  				return ErrInvalidLengthAbci
  2616  			}
  2617  			postIndex := iNdEx + msglen
  2618  			if postIndex < 0 {
  2619  				return ErrInvalidLengthAbci
  2620  			}
  2621  			if postIndex > l {
  2622  				return io.ErrUnexpectedEOF
  2623  			}
  2624  			if err := m.GasInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2625  				return err
  2626  			}
  2627  			iNdEx = postIndex
  2628  		case 2:
  2629  			if wireType != 2 {
  2630  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  2631  			}
  2632  			var msglen int
  2633  			for shift := uint(0); ; shift += 7 {
  2634  				if shift >= 64 {
  2635  					return ErrIntOverflowAbci
  2636  				}
  2637  				if iNdEx >= l {
  2638  					return io.ErrUnexpectedEOF
  2639  				}
  2640  				b := dAtA[iNdEx]
  2641  				iNdEx++
  2642  				msglen |= int(b&0x7F) << shift
  2643  				if b < 0x80 {
  2644  					break
  2645  				}
  2646  			}
  2647  			if msglen < 0 {
  2648  				return ErrInvalidLengthAbci
  2649  			}
  2650  			postIndex := iNdEx + msglen
  2651  			if postIndex < 0 {
  2652  				return ErrInvalidLengthAbci
  2653  			}
  2654  			if postIndex > l {
  2655  				return io.ErrUnexpectedEOF
  2656  			}
  2657  			if m.Result == nil {
  2658  				m.Result = &Result{}
  2659  			}
  2660  			if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2661  				return err
  2662  			}
  2663  			iNdEx = postIndex
  2664  		default:
  2665  			iNdEx = preIndex
  2666  			skippy, err := skipAbci(dAtA[iNdEx:])
  2667  			if err != nil {
  2668  				return err
  2669  			}
  2670  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2671  				return ErrInvalidLengthAbci
  2672  			}
  2673  			if (iNdEx + skippy) > l {
  2674  				return io.ErrUnexpectedEOF
  2675  			}
  2676  			iNdEx += skippy
  2677  		}
  2678  	}
  2679  
  2680  	if iNdEx > l {
  2681  		return io.ErrUnexpectedEOF
  2682  	}
  2683  	return nil
  2684  }
  2685  func (m *MsgData) Unmarshal(dAtA []byte) error {
  2686  	l := len(dAtA)
  2687  	iNdEx := 0
  2688  	for iNdEx < l {
  2689  		preIndex := iNdEx
  2690  		var wire uint64
  2691  		for shift := uint(0); ; shift += 7 {
  2692  			if shift >= 64 {
  2693  				return ErrIntOverflowAbci
  2694  			}
  2695  			if iNdEx >= l {
  2696  				return io.ErrUnexpectedEOF
  2697  			}
  2698  			b := dAtA[iNdEx]
  2699  			iNdEx++
  2700  			wire |= uint64(b&0x7F) << shift
  2701  			if b < 0x80 {
  2702  				break
  2703  			}
  2704  		}
  2705  		fieldNum := int32(wire >> 3)
  2706  		wireType := int(wire & 0x7)
  2707  		if wireType == 4 {
  2708  			return fmt.Errorf("proto: MsgData: wiretype end group for non-group")
  2709  		}
  2710  		if fieldNum <= 0 {
  2711  			return fmt.Errorf("proto: MsgData: illegal tag %d (wire type %d)", fieldNum, wire)
  2712  		}
  2713  		switch fieldNum {
  2714  		case 1:
  2715  			if wireType != 2 {
  2716  				return fmt.Errorf("proto: wrong wireType = %d for field MsgType", wireType)
  2717  			}
  2718  			var stringLen uint64
  2719  			for shift := uint(0); ; shift += 7 {
  2720  				if shift >= 64 {
  2721  					return ErrIntOverflowAbci
  2722  				}
  2723  				if iNdEx >= l {
  2724  					return io.ErrUnexpectedEOF
  2725  				}
  2726  				b := dAtA[iNdEx]
  2727  				iNdEx++
  2728  				stringLen |= uint64(b&0x7F) << shift
  2729  				if b < 0x80 {
  2730  					break
  2731  				}
  2732  			}
  2733  			intStringLen := int(stringLen)
  2734  			if intStringLen < 0 {
  2735  				return ErrInvalidLengthAbci
  2736  			}
  2737  			postIndex := iNdEx + intStringLen
  2738  			if postIndex < 0 {
  2739  				return ErrInvalidLengthAbci
  2740  			}
  2741  			if postIndex > l {
  2742  				return io.ErrUnexpectedEOF
  2743  			}
  2744  			m.MsgType = string(dAtA[iNdEx:postIndex])
  2745  			iNdEx = postIndex
  2746  		case 2:
  2747  			if wireType != 2 {
  2748  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2749  			}
  2750  			var byteLen int
  2751  			for shift := uint(0); ; shift += 7 {
  2752  				if shift >= 64 {
  2753  					return ErrIntOverflowAbci
  2754  				}
  2755  				if iNdEx >= l {
  2756  					return io.ErrUnexpectedEOF
  2757  				}
  2758  				b := dAtA[iNdEx]
  2759  				iNdEx++
  2760  				byteLen |= int(b&0x7F) << shift
  2761  				if b < 0x80 {
  2762  					break
  2763  				}
  2764  			}
  2765  			if byteLen < 0 {
  2766  				return ErrInvalidLengthAbci
  2767  			}
  2768  			postIndex := iNdEx + byteLen
  2769  			if postIndex < 0 {
  2770  				return ErrInvalidLengthAbci
  2771  			}
  2772  			if postIndex > l {
  2773  				return io.ErrUnexpectedEOF
  2774  			}
  2775  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  2776  			if m.Data == nil {
  2777  				m.Data = []byte{}
  2778  			}
  2779  			iNdEx = postIndex
  2780  		default:
  2781  			iNdEx = preIndex
  2782  			skippy, err := skipAbci(dAtA[iNdEx:])
  2783  			if err != nil {
  2784  				return err
  2785  			}
  2786  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2787  				return ErrInvalidLengthAbci
  2788  			}
  2789  			if (iNdEx + skippy) > l {
  2790  				return io.ErrUnexpectedEOF
  2791  			}
  2792  			iNdEx += skippy
  2793  		}
  2794  	}
  2795  
  2796  	if iNdEx > l {
  2797  		return io.ErrUnexpectedEOF
  2798  	}
  2799  	return nil
  2800  }
  2801  func (m *TxMsgData) Unmarshal(dAtA []byte) error {
  2802  	l := len(dAtA)
  2803  	iNdEx := 0
  2804  	for iNdEx < l {
  2805  		preIndex := iNdEx
  2806  		var wire uint64
  2807  		for shift := uint(0); ; shift += 7 {
  2808  			if shift >= 64 {
  2809  				return ErrIntOverflowAbci
  2810  			}
  2811  			if iNdEx >= l {
  2812  				return io.ErrUnexpectedEOF
  2813  			}
  2814  			b := dAtA[iNdEx]
  2815  			iNdEx++
  2816  			wire |= uint64(b&0x7F) << shift
  2817  			if b < 0x80 {
  2818  				break
  2819  			}
  2820  		}
  2821  		fieldNum := int32(wire >> 3)
  2822  		wireType := int(wire & 0x7)
  2823  		if wireType == 4 {
  2824  			return fmt.Errorf("proto: TxMsgData: wiretype end group for non-group")
  2825  		}
  2826  		if fieldNum <= 0 {
  2827  			return fmt.Errorf("proto: TxMsgData: illegal tag %d (wire type %d)", fieldNum, wire)
  2828  		}
  2829  		switch fieldNum {
  2830  		case 1:
  2831  			if wireType != 2 {
  2832  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2833  			}
  2834  			var msglen int
  2835  			for shift := uint(0); ; shift += 7 {
  2836  				if shift >= 64 {
  2837  					return ErrIntOverflowAbci
  2838  				}
  2839  				if iNdEx >= l {
  2840  					return io.ErrUnexpectedEOF
  2841  				}
  2842  				b := dAtA[iNdEx]
  2843  				iNdEx++
  2844  				msglen |= int(b&0x7F) << shift
  2845  				if b < 0x80 {
  2846  					break
  2847  				}
  2848  			}
  2849  			if msglen < 0 {
  2850  				return ErrInvalidLengthAbci
  2851  			}
  2852  			postIndex := iNdEx + msglen
  2853  			if postIndex < 0 {
  2854  				return ErrInvalidLengthAbci
  2855  			}
  2856  			if postIndex > l {
  2857  				return io.ErrUnexpectedEOF
  2858  			}
  2859  			m.Data = append(m.Data, &MsgData{})
  2860  			if err := m.Data[len(m.Data)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2861  				return err
  2862  			}
  2863  			iNdEx = postIndex
  2864  		default:
  2865  			iNdEx = preIndex
  2866  			skippy, err := skipAbci(dAtA[iNdEx:])
  2867  			if err != nil {
  2868  				return err
  2869  			}
  2870  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2871  				return ErrInvalidLengthAbci
  2872  			}
  2873  			if (iNdEx + skippy) > l {
  2874  				return io.ErrUnexpectedEOF
  2875  			}
  2876  			iNdEx += skippy
  2877  		}
  2878  	}
  2879  
  2880  	if iNdEx > l {
  2881  		return io.ErrUnexpectedEOF
  2882  	}
  2883  	return nil
  2884  }
  2885  func (m *SearchTxsResult) Unmarshal(dAtA []byte) error {
  2886  	l := len(dAtA)
  2887  	iNdEx := 0
  2888  	for iNdEx < l {
  2889  		preIndex := iNdEx
  2890  		var wire uint64
  2891  		for shift := uint(0); ; shift += 7 {
  2892  			if shift >= 64 {
  2893  				return ErrIntOverflowAbci
  2894  			}
  2895  			if iNdEx >= l {
  2896  				return io.ErrUnexpectedEOF
  2897  			}
  2898  			b := dAtA[iNdEx]
  2899  			iNdEx++
  2900  			wire |= uint64(b&0x7F) << shift
  2901  			if b < 0x80 {
  2902  				break
  2903  			}
  2904  		}
  2905  		fieldNum := int32(wire >> 3)
  2906  		wireType := int(wire & 0x7)
  2907  		if wireType == 4 {
  2908  			return fmt.Errorf("proto: SearchTxsResult: wiretype end group for non-group")
  2909  		}
  2910  		if fieldNum <= 0 {
  2911  			return fmt.Errorf("proto: SearchTxsResult: illegal tag %d (wire type %d)", fieldNum, wire)
  2912  		}
  2913  		switch fieldNum {
  2914  		case 1:
  2915  			if wireType != 0 {
  2916  				return fmt.Errorf("proto: wrong wireType = %d for field TotalCount", wireType)
  2917  			}
  2918  			m.TotalCount = 0
  2919  			for shift := uint(0); ; shift += 7 {
  2920  				if shift >= 64 {
  2921  					return ErrIntOverflowAbci
  2922  				}
  2923  				if iNdEx >= l {
  2924  					return io.ErrUnexpectedEOF
  2925  				}
  2926  				b := dAtA[iNdEx]
  2927  				iNdEx++
  2928  				m.TotalCount |= uint64(b&0x7F) << shift
  2929  				if b < 0x80 {
  2930  					break
  2931  				}
  2932  			}
  2933  		case 2:
  2934  			if wireType != 0 {
  2935  				return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
  2936  			}
  2937  			m.Count = 0
  2938  			for shift := uint(0); ; shift += 7 {
  2939  				if shift >= 64 {
  2940  					return ErrIntOverflowAbci
  2941  				}
  2942  				if iNdEx >= l {
  2943  					return io.ErrUnexpectedEOF
  2944  				}
  2945  				b := dAtA[iNdEx]
  2946  				iNdEx++
  2947  				m.Count |= uint64(b&0x7F) << shift
  2948  				if b < 0x80 {
  2949  					break
  2950  				}
  2951  			}
  2952  		case 3:
  2953  			if wireType != 0 {
  2954  				return fmt.Errorf("proto: wrong wireType = %d for field PageNumber", wireType)
  2955  			}
  2956  			m.PageNumber = 0
  2957  			for shift := uint(0); ; shift += 7 {
  2958  				if shift >= 64 {
  2959  					return ErrIntOverflowAbci
  2960  				}
  2961  				if iNdEx >= l {
  2962  					return io.ErrUnexpectedEOF
  2963  				}
  2964  				b := dAtA[iNdEx]
  2965  				iNdEx++
  2966  				m.PageNumber |= uint64(b&0x7F) << shift
  2967  				if b < 0x80 {
  2968  					break
  2969  				}
  2970  			}
  2971  		case 4:
  2972  			if wireType != 0 {
  2973  				return fmt.Errorf("proto: wrong wireType = %d for field PageTotal", wireType)
  2974  			}
  2975  			m.PageTotal = 0
  2976  			for shift := uint(0); ; shift += 7 {
  2977  				if shift >= 64 {
  2978  					return ErrIntOverflowAbci
  2979  				}
  2980  				if iNdEx >= l {
  2981  					return io.ErrUnexpectedEOF
  2982  				}
  2983  				b := dAtA[iNdEx]
  2984  				iNdEx++
  2985  				m.PageTotal |= uint64(b&0x7F) << shift
  2986  				if b < 0x80 {
  2987  					break
  2988  				}
  2989  			}
  2990  		case 5:
  2991  			if wireType != 0 {
  2992  				return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  2993  			}
  2994  			m.Limit = 0
  2995  			for shift := uint(0); ; shift += 7 {
  2996  				if shift >= 64 {
  2997  					return ErrIntOverflowAbci
  2998  				}
  2999  				if iNdEx >= l {
  3000  					return io.ErrUnexpectedEOF
  3001  				}
  3002  				b := dAtA[iNdEx]
  3003  				iNdEx++
  3004  				m.Limit |= uint64(b&0x7F) << shift
  3005  				if b < 0x80 {
  3006  					break
  3007  				}
  3008  			}
  3009  		case 6:
  3010  			if wireType != 2 {
  3011  				return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType)
  3012  			}
  3013  			var msglen int
  3014  			for shift := uint(0); ; shift += 7 {
  3015  				if shift >= 64 {
  3016  					return ErrIntOverflowAbci
  3017  				}
  3018  				if iNdEx >= l {
  3019  					return io.ErrUnexpectedEOF
  3020  				}
  3021  				b := dAtA[iNdEx]
  3022  				iNdEx++
  3023  				msglen |= int(b&0x7F) << shift
  3024  				if b < 0x80 {
  3025  					break
  3026  				}
  3027  			}
  3028  			if msglen < 0 {
  3029  				return ErrInvalidLengthAbci
  3030  			}
  3031  			postIndex := iNdEx + msglen
  3032  			if postIndex < 0 {
  3033  				return ErrInvalidLengthAbci
  3034  			}
  3035  			if postIndex > l {
  3036  				return io.ErrUnexpectedEOF
  3037  			}
  3038  			m.Txs = append(m.Txs, &TxResponse{})
  3039  			if err := m.Txs[len(m.Txs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3040  				return err
  3041  			}
  3042  			iNdEx = postIndex
  3043  		default:
  3044  			iNdEx = preIndex
  3045  			skippy, err := skipAbci(dAtA[iNdEx:])
  3046  			if err != nil {
  3047  				return err
  3048  			}
  3049  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3050  				return ErrInvalidLengthAbci
  3051  			}
  3052  			if (iNdEx + skippy) > l {
  3053  				return io.ErrUnexpectedEOF
  3054  			}
  3055  			iNdEx += skippy
  3056  		}
  3057  	}
  3058  
  3059  	if iNdEx > l {
  3060  		return io.ErrUnexpectedEOF
  3061  	}
  3062  	return nil
  3063  }
  3064  func skipAbci(dAtA []byte) (n int, err error) {
  3065  	l := len(dAtA)
  3066  	iNdEx := 0
  3067  	depth := 0
  3068  	for iNdEx < l {
  3069  		var wire uint64
  3070  		for shift := uint(0); ; shift += 7 {
  3071  			if shift >= 64 {
  3072  				return 0, ErrIntOverflowAbci
  3073  			}
  3074  			if iNdEx >= l {
  3075  				return 0, io.ErrUnexpectedEOF
  3076  			}
  3077  			b := dAtA[iNdEx]
  3078  			iNdEx++
  3079  			wire |= (uint64(b) & 0x7F) << shift
  3080  			if b < 0x80 {
  3081  				break
  3082  			}
  3083  		}
  3084  		wireType := int(wire & 0x7)
  3085  		switch wireType {
  3086  		case 0:
  3087  			for shift := uint(0); ; shift += 7 {
  3088  				if shift >= 64 {
  3089  					return 0, ErrIntOverflowAbci
  3090  				}
  3091  				if iNdEx >= l {
  3092  					return 0, io.ErrUnexpectedEOF
  3093  				}
  3094  				iNdEx++
  3095  				if dAtA[iNdEx-1] < 0x80 {
  3096  					break
  3097  				}
  3098  			}
  3099  		case 1:
  3100  			iNdEx += 8
  3101  		case 2:
  3102  			var length int
  3103  			for shift := uint(0); ; shift += 7 {
  3104  				if shift >= 64 {
  3105  					return 0, ErrIntOverflowAbci
  3106  				}
  3107  				if iNdEx >= l {
  3108  					return 0, io.ErrUnexpectedEOF
  3109  				}
  3110  				b := dAtA[iNdEx]
  3111  				iNdEx++
  3112  				length |= (int(b) & 0x7F) << shift
  3113  				if b < 0x80 {
  3114  					break
  3115  				}
  3116  			}
  3117  			if length < 0 {
  3118  				return 0, ErrInvalidLengthAbci
  3119  			}
  3120  			iNdEx += length
  3121  		case 3:
  3122  			depth++
  3123  		case 4:
  3124  			if depth == 0 {
  3125  				return 0, ErrUnexpectedEndOfGroupAbci
  3126  			}
  3127  			depth--
  3128  		case 5:
  3129  			iNdEx += 4
  3130  		default:
  3131  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3132  		}
  3133  		if iNdEx < 0 {
  3134  			return 0, ErrInvalidLengthAbci
  3135  		}
  3136  		if depth == 0 {
  3137  			return iNdEx, nil
  3138  		}
  3139  	}
  3140  	return 0, io.ErrUnexpectedEOF
  3141  }
  3142  
  3143  var (
  3144  	ErrInvalidLengthAbci        = fmt.Errorf("proto: negative length found during unmarshaling")
  3145  	ErrIntOverflowAbci          = fmt.Errorf("proto: integer overflow")
  3146  	ErrUnexpectedEndOfGroupAbci = fmt.Errorf("proto: unexpected end of group")
  3147  )