github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/evm/watcher/proto/types.pb.go (about)

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