github.com/InjectiveLabs/sdk-go@v1.53.0/chain/peggy/types/genesis.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: injective/peggy/v1/genesis.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/cosmos/cosmos-sdk/types"
     9  	_ "github.com/cosmos/gogoproto/gogoproto"
    10  	proto "github.com/cosmos/gogoproto/proto"
    11  	io "io"
    12  	math "math"
    13  	math_bits "math/bits"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  // GenesisState struct
    28  type GenesisState struct {
    29  	Params                     *Params                        `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
    30  	LastObservedNonce          uint64                         `protobuf:"varint,2,opt,name=last_observed_nonce,json=lastObservedNonce,proto3" json:"last_observed_nonce,omitempty"`
    31  	Valsets                    []*Valset                      `protobuf:"bytes,3,rep,name=valsets,proto3" json:"valsets,omitempty"`
    32  	ValsetConfirms             []*MsgValsetConfirm            `protobuf:"bytes,4,rep,name=valset_confirms,json=valsetConfirms,proto3" json:"valset_confirms,omitempty"`
    33  	Batches                    []*OutgoingTxBatch             `protobuf:"bytes,5,rep,name=batches,proto3" json:"batches,omitempty"`
    34  	BatchConfirms              []*MsgConfirmBatch             `protobuf:"bytes,6,rep,name=batch_confirms,json=batchConfirms,proto3" json:"batch_confirms,omitempty"`
    35  	Attestations               []*Attestation                 `protobuf:"bytes,7,rep,name=attestations,proto3" json:"attestations,omitempty"`
    36  	OrchestratorAddresses      []*MsgSetOrchestratorAddresses `protobuf:"bytes,8,rep,name=orchestrator_addresses,json=orchestratorAddresses,proto3" json:"orchestrator_addresses,omitempty"`
    37  	Erc20ToDenoms              []*ERC20ToDenom                `protobuf:"bytes,9,rep,name=erc20_to_denoms,json=erc20ToDenoms,proto3" json:"erc20_to_denoms,omitempty"`
    38  	UnbatchedTransfers         []*OutgoingTransferTx          `protobuf:"bytes,10,rep,name=unbatched_transfers,json=unbatchedTransfers,proto3" json:"unbatched_transfers,omitempty"`
    39  	LastObservedEthereumHeight uint64                         `protobuf:"varint,11,opt,name=last_observed_ethereum_height,json=lastObservedEthereumHeight,proto3" json:"last_observed_ethereum_height,omitempty"`
    40  	LastOutgoingBatchId        uint64                         `protobuf:"varint,12,opt,name=last_outgoing_batch_id,json=lastOutgoingBatchId,proto3" json:"last_outgoing_batch_id,omitempty"`
    41  	LastOutgoingPoolId         uint64                         `protobuf:"varint,13,opt,name=last_outgoing_pool_id,json=lastOutgoingPoolId,proto3" json:"last_outgoing_pool_id,omitempty"`
    42  	LastObservedValset         Valset                         `protobuf:"bytes,14,opt,name=last_observed_valset,json=lastObservedValset,proto3" json:"last_observed_valset"`
    43  	EthereumBlacklist          []string                       `protobuf:"bytes,15,rep,name=ethereum_blacklist,json=ethereumBlacklist,proto3" json:"ethereum_blacklist,omitempty"`
    44  }
    45  
    46  func (m *GenesisState) Reset()         { *m = GenesisState{} }
    47  func (m *GenesisState) String() string { return proto.CompactTextString(m) }
    48  func (*GenesisState) ProtoMessage()    {}
    49  func (*GenesisState) Descriptor() ([]byte, []int) {
    50  	return fileDescriptor_3b8a70f18b346efa, []int{0}
    51  }
    52  func (m *GenesisState) XXX_Unmarshal(b []byte) error {
    53  	return m.Unmarshal(b)
    54  }
    55  func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    56  	if deterministic {
    57  		return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
    58  	} else {
    59  		b = b[:cap(b)]
    60  		n, err := m.MarshalToSizedBuffer(b)
    61  		if err != nil {
    62  			return nil, err
    63  		}
    64  		return b[:n], nil
    65  	}
    66  }
    67  func (m *GenesisState) XXX_Merge(src proto.Message) {
    68  	xxx_messageInfo_GenesisState.Merge(m, src)
    69  }
    70  func (m *GenesisState) XXX_Size() int {
    71  	return m.Size()
    72  }
    73  func (m *GenesisState) XXX_DiscardUnknown() {
    74  	xxx_messageInfo_GenesisState.DiscardUnknown(m)
    75  }
    76  
    77  var xxx_messageInfo_GenesisState proto.InternalMessageInfo
    78  
    79  func (m *GenesisState) GetParams() *Params {
    80  	if m != nil {
    81  		return m.Params
    82  	}
    83  	return nil
    84  }
    85  
    86  func (m *GenesisState) GetLastObservedNonce() uint64 {
    87  	if m != nil {
    88  		return m.LastObservedNonce
    89  	}
    90  	return 0
    91  }
    92  
    93  func (m *GenesisState) GetValsets() []*Valset {
    94  	if m != nil {
    95  		return m.Valsets
    96  	}
    97  	return nil
    98  }
    99  
   100  func (m *GenesisState) GetValsetConfirms() []*MsgValsetConfirm {
   101  	if m != nil {
   102  		return m.ValsetConfirms
   103  	}
   104  	return nil
   105  }
   106  
   107  func (m *GenesisState) GetBatches() []*OutgoingTxBatch {
   108  	if m != nil {
   109  		return m.Batches
   110  	}
   111  	return nil
   112  }
   113  
   114  func (m *GenesisState) GetBatchConfirms() []*MsgConfirmBatch {
   115  	if m != nil {
   116  		return m.BatchConfirms
   117  	}
   118  	return nil
   119  }
   120  
   121  func (m *GenesisState) GetAttestations() []*Attestation {
   122  	if m != nil {
   123  		return m.Attestations
   124  	}
   125  	return nil
   126  }
   127  
   128  func (m *GenesisState) GetOrchestratorAddresses() []*MsgSetOrchestratorAddresses {
   129  	if m != nil {
   130  		return m.OrchestratorAddresses
   131  	}
   132  	return nil
   133  }
   134  
   135  func (m *GenesisState) GetErc20ToDenoms() []*ERC20ToDenom {
   136  	if m != nil {
   137  		return m.Erc20ToDenoms
   138  	}
   139  	return nil
   140  }
   141  
   142  func (m *GenesisState) GetUnbatchedTransfers() []*OutgoingTransferTx {
   143  	if m != nil {
   144  		return m.UnbatchedTransfers
   145  	}
   146  	return nil
   147  }
   148  
   149  func (m *GenesisState) GetLastObservedEthereumHeight() uint64 {
   150  	if m != nil {
   151  		return m.LastObservedEthereumHeight
   152  	}
   153  	return 0
   154  }
   155  
   156  func (m *GenesisState) GetLastOutgoingBatchId() uint64 {
   157  	if m != nil {
   158  		return m.LastOutgoingBatchId
   159  	}
   160  	return 0
   161  }
   162  
   163  func (m *GenesisState) GetLastOutgoingPoolId() uint64 {
   164  	if m != nil {
   165  		return m.LastOutgoingPoolId
   166  	}
   167  	return 0
   168  }
   169  
   170  func (m *GenesisState) GetLastObservedValset() Valset {
   171  	if m != nil {
   172  		return m.LastObservedValset
   173  	}
   174  	return Valset{}
   175  }
   176  
   177  func (m *GenesisState) GetEthereumBlacklist() []string {
   178  	if m != nil {
   179  		return m.EthereumBlacklist
   180  	}
   181  	return nil
   182  }
   183  
   184  func init() {
   185  	proto.RegisterType((*GenesisState)(nil), "injective.peggy.v1.GenesisState")
   186  }
   187  
   188  func init() { proto.RegisterFile("injective/peggy/v1/genesis.proto", fileDescriptor_3b8a70f18b346efa) }
   189  
   190  var fileDescriptor_3b8a70f18b346efa = []byte{
   191  	// 655 bytes of a gzipped FileDescriptorProto
   192  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xcb, 0x4e, 0xdb, 0x4e,
   193  	0x14, 0xc6, 0x93, 0x3f, 0xfc, 0xb9, 0x0c, 0x37, 0x31, 0x5c, 0x64, 0x45, 0x22, 0x44, 0x2d, 0xaa,
   194  	0xd8, 0x60, 0x93, 0xd0, 0x6d, 0x17, 0x84, 0xa2, 0x42, 0x5b, 0x0a, 0x32, 0xa8, 0x95, 0xba, 0xb1,
   195  	0xc6, 0xf6, 0xc1, 0x71, 0x6b, 0x7b, 0xa2, 0x39, 0x13, 0x0b, 0x76, 0x7d, 0x84, 0x3e, 0x16, 0x4b,
   196  	0x96, 0x5d, 0x55, 0x15, 0xbc, 0x48, 0xe5, 0x99, 0x71, 0x48, 0x54, 0x87, 0xdd, 0x8c, 0xbf, 0xef,
   197  	0xfb, 0x9d, 0x93, 0x99, 0x93, 0x21, 0xad, 0x38, 0xfb, 0x06, 0x81, 0x8c, 0x73, 0x70, 0xfa, 0x10,
   198  	0x45, 0xb7, 0x4e, 0xde, 0x76, 0x22, 0xc8, 0x00, 0x63, 0xb4, 0xfb, 0x82, 0x4b, 0x4e, 0xe9, 0xd0,
   199  	0x61, 0x2b, 0x87, 0x9d, 0xb7, 0x1b, 0xeb, 0x11, 0x8f, 0xb8, 0x92, 0x9d, 0x62, 0xa5, 0x9d, 0x8d,
   200  	0x66, 0x05, 0x4b, 0xde, 0xf6, 0xc1, 0x90, 0x1a, 0x5b, 0x15, 0x7a, 0x8a, 0x11, 0x3e, 0x13, 0xf7,
   201  	0x99, 0x0c, 0x7a, 0x46, 0xdf, 0xa9, 0xd0, 0x99, 0x94, 0x80, 0x92, 0xc9, 0x98, 0x67, 0xc6, 0xb5,
   202  	0x5d, 0xe1, 0xea, 0x33, 0xc1, 0xd2, 0x61, 0x99, 0x80, 0x63, 0xca, 0xd1, 0xf1, 0x19, 0x82, 0x93,
   203  	0xb7, 0x7d, 0x90, 0xac, 0xed, 0x04, 0x3c, 0x36, 0x80, 0x17, 0x3f, 0xe6, 0xc8, 0xe2, 0x3b, 0x7d,
   204  	0x02, 0x97, 0x92, 0x49, 0xa0, 0x1d, 0x32, 0xa3, 0x01, 0x56, 0xbd, 0x55, 0xdf, 0x5d, 0xe8, 0x34,
   205  	0xec, 0x7f, 0x4f, 0xc4, 0xbe, 0x50, 0x0e, 0xd7, 0x38, 0xa9, 0x4d, 0xd6, 0x12, 0x86, 0xd2, 0xe3,
   206  	0x3e, 0x82, 0xc8, 0x21, 0xf4, 0x32, 0x9e, 0x05, 0x60, 0xfd, 0xd7, 0xaa, 0xef, 0x4e, 0xbb, 0xab,
   207  	0x85, 0x74, 0x6e, 0x94, 0x4f, 0x85, 0x40, 0x5f, 0x93, 0xd9, 0x9c, 0x25, 0x08, 0x12, 0xad, 0xa9,
   208  	0xd6, 0xd4, 0xa4, 0x22, 0x9f, 0x95, 0xc5, 0x2d, 0xad, 0xf4, 0x8c, 0xac, 0xe8, 0xa5, 0x17, 0xf0,
   209  	0xec, 0x3a, 0x16, 0x29, 0x5a, 0xd3, 0x2a, 0xbd, 0x53, 0x95, 0x3e, 0xc3, 0x48, 0x03, 0x8e, 0xb4,
   210  	0xd9, 0x5d, 0xce, 0x47, 0xb7, 0x48, 0xdf, 0x90, 0x59, 0x75, 0xde, 0x80, 0xd6, 0xff, 0x0a, 0xf3,
   211  	0xb2, 0x0a, 0x73, 0x3e, 0x90, 0x11, 0x8f, 0xb3, 0xe8, 0xea, 0xa6, 0x5b, 0x98, 0xdd, 0x32, 0x43,
   212  	0xdf, 0x93, 0x65, 0xb5, 0x7c, 0x6a, 0x66, 0x66, 0x32, 0xe5, 0x0c, 0x23, 0x53, 0x57, 0x53, 0x96,
   213  	0x54, 0x74, 0xd8, 0xca, 0x11, 0x59, 0x1c, 0xb9, 0x5a, 0xb4, 0x66, 0x15, 0x69, 0xbb, 0x8a, 0x74,
   214  	0xf8, 0xe4, 0x73, 0xc7, 0x42, 0xf4, 0x9a, 0x6c, 0x72, 0x51, 0xb4, 0x26, 0x05, 0x93, 0x5c, 0x78,
   215  	0x2c, 0x0c, 0x05, 0x20, 0x02, 0x5a, 0x73, 0x0a, 0xe7, 0x4c, 0x68, 0xec, 0x12, 0xe4, 0xf9, 0x48,
   216  	0xee, 0xb0, 0x8c, 0xb9, 0x1b, 0xbc, 0xea, 0x33, 0x3d, 0x21, 0x2b, 0x20, 0x82, 0xce, 0xbe, 0x27,
   217  	0xb9, 0x17, 0x42, 0xc6, 0x53, 0xb4, 0xe6, 0x55, 0x81, 0x56, 0x55, 0x81, 0x63, 0xf7, 0xa8, 0xb3,
   218  	0x7f, 0xc5, 0xdf, 0x16, 0x46, 0x77, 0x49, 0x05, 0xcd, 0x0e, 0xe9, 0x17, 0xb2, 0x36, 0xc8, 0xf4,
   219  	0x79, 0x86, 0x9e, 0x14, 0x2c, 0xc3, 0x6b, 0x10, 0x68, 0x11, 0x45, 0x7b, 0xf5, 0xec, 0x6d, 0x18,
   220  	0xf3, 0xd5, 0x8d, 0x4b, 0x87, 0x88, 0xf2, 0x23, 0xd2, 0x43, 0xb2, 0x35, 0x3e, 0x8f, 0x20, 0x7b,
   221  	0x20, 0x60, 0x90, 0x7a, 0x3d, 0x88, 0xa3, 0x9e, 0xb4, 0x16, 0xd4, 0x64, 0x36, 0x46, 0x27, 0xf3,
   222  	0xd8, 0x58, 0x4e, 0x94, 0x83, 0x1e, 0x90, 0x4d, 0x8d, 0x30, 0x15, 0x3d, 0x7d, 0xd9, 0x71, 0x68,
   223  	0x2d, 0xaa, 0xac, 0x1a, 0xf8, 0xb2, 0x1d, 0x75, 0xa9, 0xa7, 0x21, 0x6d, 0x93, 0x8d, 0xf1, 0x50,
   224  	0x9f, 0xf3, 0xa4, 0xc8, 0x2c, 0xa9, 0x0c, 0x1d, 0xcd, 0x5c, 0x70, 0x9e, 0x9c, 0x86, 0xd4, 0x25,
   225  	0xeb, 0xe3, 0xad, 0xea, 0x29, 0xb5, 0x96, 0x27, 0xff, 0xf9, 0xf4, 0x58, 0x77, 0xa7, 0xef, 0x7e,
   226  	0x6f, 0xd7, 0x0c, 0xd3, 0x84, 0xb5, 0x42, 0xf7, 0x08, 0x1d, 0xfe, 0x60, 0x3f, 0x61, 0xc1, 0xf7,
   227  	0x24, 0x46, 0x69, 0xad, 0xb4, 0xa6, 0x76, 0xe7, 0xdd, 0xd5, 0x52, 0xe9, 0x96, 0x42, 0x17, 0xee,
   228  	0x1e, 0x9a, 0xf5, 0xfb, 0x87, 0x66, 0xfd, 0xcf, 0x43, 0xb3, 0xfe, 0xf3, 0xb1, 0x59, 0xbb, 0x7f,
   229  	0x6c, 0xd6, 0x7e, 0x3d, 0x36, 0x6b, 0x5f, 0x3f, 0x44, 0xb1, 0xec, 0x0d, 0x7c, 0x3b, 0xe0, 0xa9,
   230  	0x73, 0x5a, 0x36, 0xf2, 0x91, 0xf9, 0xe8, 0x0c, 0xdb, 0xda, 0x0b, 0xb8, 0x80, 0xd1, 0x6d, 0x8f,
   231  	0xc5, 0x99, 0x93, 0xf2, 0x70, 0x90, 0x00, 0x9a, 0x37, 0x49, 0xbd, 0x8a, 0xfe, 0x8c, 0x7a, 0x70,
   232  	0x0e, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xed, 0x3d, 0xb9, 0x4e, 0x84, 0x05, 0x00, 0x00,
   233  }
   234  
   235  func (m *GenesisState) Marshal() (dAtA []byte, err error) {
   236  	size := m.Size()
   237  	dAtA = make([]byte, size)
   238  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   239  	if err != nil {
   240  		return nil, err
   241  	}
   242  	return dAtA[:n], nil
   243  }
   244  
   245  func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
   246  	size := m.Size()
   247  	return m.MarshalToSizedBuffer(dAtA[:size])
   248  }
   249  
   250  func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   251  	i := len(dAtA)
   252  	_ = i
   253  	var l int
   254  	_ = l
   255  	if len(m.EthereumBlacklist) > 0 {
   256  		for iNdEx := len(m.EthereumBlacklist) - 1; iNdEx >= 0; iNdEx-- {
   257  			i -= len(m.EthereumBlacklist[iNdEx])
   258  			copy(dAtA[i:], m.EthereumBlacklist[iNdEx])
   259  			i = encodeVarintGenesis(dAtA, i, uint64(len(m.EthereumBlacklist[iNdEx])))
   260  			i--
   261  			dAtA[i] = 0x7a
   262  		}
   263  	}
   264  	{
   265  		size, err := m.LastObservedValset.MarshalToSizedBuffer(dAtA[:i])
   266  		if err != nil {
   267  			return 0, err
   268  		}
   269  		i -= size
   270  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   271  	}
   272  	i--
   273  	dAtA[i] = 0x72
   274  	if m.LastOutgoingPoolId != 0 {
   275  		i = encodeVarintGenesis(dAtA, i, uint64(m.LastOutgoingPoolId))
   276  		i--
   277  		dAtA[i] = 0x68
   278  	}
   279  	if m.LastOutgoingBatchId != 0 {
   280  		i = encodeVarintGenesis(dAtA, i, uint64(m.LastOutgoingBatchId))
   281  		i--
   282  		dAtA[i] = 0x60
   283  	}
   284  	if m.LastObservedEthereumHeight != 0 {
   285  		i = encodeVarintGenesis(dAtA, i, uint64(m.LastObservedEthereumHeight))
   286  		i--
   287  		dAtA[i] = 0x58
   288  	}
   289  	if len(m.UnbatchedTransfers) > 0 {
   290  		for iNdEx := len(m.UnbatchedTransfers) - 1; iNdEx >= 0; iNdEx-- {
   291  			{
   292  				size, err := m.UnbatchedTransfers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   293  				if err != nil {
   294  					return 0, err
   295  				}
   296  				i -= size
   297  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   298  			}
   299  			i--
   300  			dAtA[i] = 0x52
   301  		}
   302  	}
   303  	if len(m.Erc20ToDenoms) > 0 {
   304  		for iNdEx := len(m.Erc20ToDenoms) - 1; iNdEx >= 0; iNdEx-- {
   305  			{
   306  				size, err := m.Erc20ToDenoms[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   307  				if err != nil {
   308  					return 0, err
   309  				}
   310  				i -= size
   311  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   312  			}
   313  			i--
   314  			dAtA[i] = 0x4a
   315  		}
   316  	}
   317  	if len(m.OrchestratorAddresses) > 0 {
   318  		for iNdEx := len(m.OrchestratorAddresses) - 1; iNdEx >= 0; iNdEx-- {
   319  			{
   320  				size, err := m.OrchestratorAddresses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   321  				if err != nil {
   322  					return 0, err
   323  				}
   324  				i -= size
   325  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   326  			}
   327  			i--
   328  			dAtA[i] = 0x42
   329  		}
   330  	}
   331  	if len(m.Attestations) > 0 {
   332  		for iNdEx := len(m.Attestations) - 1; iNdEx >= 0; iNdEx-- {
   333  			{
   334  				size, err := m.Attestations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   335  				if err != nil {
   336  					return 0, err
   337  				}
   338  				i -= size
   339  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   340  			}
   341  			i--
   342  			dAtA[i] = 0x3a
   343  		}
   344  	}
   345  	if len(m.BatchConfirms) > 0 {
   346  		for iNdEx := len(m.BatchConfirms) - 1; iNdEx >= 0; iNdEx-- {
   347  			{
   348  				size, err := m.BatchConfirms[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   349  				if err != nil {
   350  					return 0, err
   351  				}
   352  				i -= size
   353  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   354  			}
   355  			i--
   356  			dAtA[i] = 0x32
   357  		}
   358  	}
   359  	if len(m.Batches) > 0 {
   360  		for iNdEx := len(m.Batches) - 1; iNdEx >= 0; iNdEx-- {
   361  			{
   362  				size, err := m.Batches[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   363  				if err != nil {
   364  					return 0, err
   365  				}
   366  				i -= size
   367  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   368  			}
   369  			i--
   370  			dAtA[i] = 0x2a
   371  		}
   372  	}
   373  	if len(m.ValsetConfirms) > 0 {
   374  		for iNdEx := len(m.ValsetConfirms) - 1; iNdEx >= 0; iNdEx-- {
   375  			{
   376  				size, err := m.ValsetConfirms[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   377  				if err != nil {
   378  					return 0, err
   379  				}
   380  				i -= size
   381  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   382  			}
   383  			i--
   384  			dAtA[i] = 0x22
   385  		}
   386  	}
   387  	if len(m.Valsets) > 0 {
   388  		for iNdEx := len(m.Valsets) - 1; iNdEx >= 0; iNdEx-- {
   389  			{
   390  				size, err := m.Valsets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   391  				if err != nil {
   392  					return 0, err
   393  				}
   394  				i -= size
   395  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   396  			}
   397  			i--
   398  			dAtA[i] = 0x1a
   399  		}
   400  	}
   401  	if m.LastObservedNonce != 0 {
   402  		i = encodeVarintGenesis(dAtA, i, uint64(m.LastObservedNonce))
   403  		i--
   404  		dAtA[i] = 0x10
   405  	}
   406  	if m.Params != nil {
   407  		{
   408  			size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
   409  			if err != nil {
   410  				return 0, err
   411  			}
   412  			i -= size
   413  			i = encodeVarintGenesis(dAtA, i, uint64(size))
   414  		}
   415  		i--
   416  		dAtA[i] = 0xa
   417  	}
   418  	return len(dAtA) - i, nil
   419  }
   420  
   421  func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
   422  	offset -= sovGenesis(v)
   423  	base := offset
   424  	for v >= 1<<7 {
   425  		dAtA[offset] = uint8(v&0x7f | 0x80)
   426  		v >>= 7
   427  		offset++
   428  	}
   429  	dAtA[offset] = uint8(v)
   430  	return base
   431  }
   432  func (m *GenesisState) Size() (n int) {
   433  	if m == nil {
   434  		return 0
   435  	}
   436  	var l int
   437  	_ = l
   438  	if m.Params != nil {
   439  		l = m.Params.Size()
   440  		n += 1 + l + sovGenesis(uint64(l))
   441  	}
   442  	if m.LastObservedNonce != 0 {
   443  		n += 1 + sovGenesis(uint64(m.LastObservedNonce))
   444  	}
   445  	if len(m.Valsets) > 0 {
   446  		for _, e := range m.Valsets {
   447  			l = e.Size()
   448  			n += 1 + l + sovGenesis(uint64(l))
   449  		}
   450  	}
   451  	if len(m.ValsetConfirms) > 0 {
   452  		for _, e := range m.ValsetConfirms {
   453  			l = e.Size()
   454  			n += 1 + l + sovGenesis(uint64(l))
   455  		}
   456  	}
   457  	if len(m.Batches) > 0 {
   458  		for _, e := range m.Batches {
   459  			l = e.Size()
   460  			n += 1 + l + sovGenesis(uint64(l))
   461  		}
   462  	}
   463  	if len(m.BatchConfirms) > 0 {
   464  		for _, e := range m.BatchConfirms {
   465  			l = e.Size()
   466  			n += 1 + l + sovGenesis(uint64(l))
   467  		}
   468  	}
   469  	if len(m.Attestations) > 0 {
   470  		for _, e := range m.Attestations {
   471  			l = e.Size()
   472  			n += 1 + l + sovGenesis(uint64(l))
   473  		}
   474  	}
   475  	if len(m.OrchestratorAddresses) > 0 {
   476  		for _, e := range m.OrchestratorAddresses {
   477  			l = e.Size()
   478  			n += 1 + l + sovGenesis(uint64(l))
   479  		}
   480  	}
   481  	if len(m.Erc20ToDenoms) > 0 {
   482  		for _, e := range m.Erc20ToDenoms {
   483  			l = e.Size()
   484  			n += 1 + l + sovGenesis(uint64(l))
   485  		}
   486  	}
   487  	if len(m.UnbatchedTransfers) > 0 {
   488  		for _, e := range m.UnbatchedTransfers {
   489  			l = e.Size()
   490  			n += 1 + l + sovGenesis(uint64(l))
   491  		}
   492  	}
   493  	if m.LastObservedEthereumHeight != 0 {
   494  		n += 1 + sovGenesis(uint64(m.LastObservedEthereumHeight))
   495  	}
   496  	if m.LastOutgoingBatchId != 0 {
   497  		n += 1 + sovGenesis(uint64(m.LastOutgoingBatchId))
   498  	}
   499  	if m.LastOutgoingPoolId != 0 {
   500  		n += 1 + sovGenesis(uint64(m.LastOutgoingPoolId))
   501  	}
   502  	l = m.LastObservedValset.Size()
   503  	n += 1 + l + sovGenesis(uint64(l))
   504  	if len(m.EthereumBlacklist) > 0 {
   505  		for _, s := range m.EthereumBlacklist {
   506  			l = len(s)
   507  			n += 1 + l + sovGenesis(uint64(l))
   508  		}
   509  	}
   510  	return n
   511  }
   512  
   513  func sovGenesis(x uint64) (n int) {
   514  	return (math_bits.Len64(x|1) + 6) / 7
   515  }
   516  func sozGenesis(x uint64) (n int) {
   517  	return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   518  }
   519  func (m *GenesisState) Unmarshal(dAtA []byte) error {
   520  	l := len(dAtA)
   521  	iNdEx := 0
   522  	for iNdEx < l {
   523  		preIndex := iNdEx
   524  		var wire uint64
   525  		for shift := uint(0); ; shift += 7 {
   526  			if shift >= 64 {
   527  				return ErrIntOverflowGenesis
   528  			}
   529  			if iNdEx >= l {
   530  				return io.ErrUnexpectedEOF
   531  			}
   532  			b := dAtA[iNdEx]
   533  			iNdEx++
   534  			wire |= uint64(b&0x7F) << shift
   535  			if b < 0x80 {
   536  				break
   537  			}
   538  		}
   539  		fieldNum := int32(wire >> 3)
   540  		wireType := int(wire & 0x7)
   541  		if wireType == 4 {
   542  			return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
   543  		}
   544  		if fieldNum <= 0 {
   545  			return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
   546  		}
   547  		switch fieldNum {
   548  		case 1:
   549  			if wireType != 2 {
   550  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
   551  			}
   552  			var msglen int
   553  			for shift := uint(0); ; shift += 7 {
   554  				if shift >= 64 {
   555  					return ErrIntOverflowGenesis
   556  				}
   557  				if iNdEx >= l {
   558  					return io.ErrUnexpectedEOF
   559  				}
   560  				b := dAtA[iNdEx]
   561  				iNdEx++
   562  				msglen |= int(b&0x7F) << shift
   563  				if b < 0x80 {
   564  					break
   565  				}
   566  			}
   567  			if msglen < 0 {
   568  				return ErrInvalidLengthGenesis
   569  			}
   570  			postIndex := iNdEx + msglen
   571  			if postIndex < 0 {
   572  				return ErrInvalidLengthGenesis
   573  			}
   574  			if postIndex > l {
   575  				return io.ErrUnexpectedEOF
   576  			}
   577  			if m.Params == nil {
   578  				m.Params = &Params{}
   579  			}
   580  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   581  				return err
   582  			}
   583  			iNdEx = postIndex
   584  		case 2:
   585  			if wireType != 0 {
   586  				return fmt.Errorf("proto: wrong wireType = %d for field LastObservedNonce", wireType)
   587  			}
   588  			m.LastObservedNonce = 0
   589  			for shift := uint(0); ; shift += 7 {
   590  				if shift >= 64 {
   591  					return ErrIntOverflowGenesis
   592  				}
   593  				if iNdEx >= l {
   594  					return io.ErrUnexpectedEOF
   595  				}
   596  				b := dAtA[iNdEx]
   597  				iNdEx++
   598  				m.LastObservedNonce |= uint64(b&0x7F) << shift
   599  				if b < 0x80 {
   600  					break
   601  				}
   602  			}
   603  		case 3:
   604  			if wireType != 2 {
   605  				return fmt.Errorf("proto: wrong wireType = %d for field Valsets", wireType)
   606  			}
   607  			var msglen int
   608  			for shift := uint(0); ; shift += 7 {
   609  				if shift >= 64 {
   610  					return ErrIntOverflowGenesis
   611  				}
   612  				if iNdEx >= l {
   613  					return io.ErrUnexpectedEOF
   614  				}
   615  				b := dAtA[iNdEx]
   616  				iNdEx++
   617  				msglen |= int(b&0x7F) << shift
   618  				if b < 0x80 {
   619  					break
   620  				}
   621  			}
   622  			if msglen < 0 {
   623  				return ErrInvalidLengthGenesis
   624  			}
   625  			postIndex := iNdEx + msglen
   626  			if postIndex < 0 {
   627  				return ErrInvalidLengthGenesis
   628  			}
   629  			if postIndex > l {
   630  				return io.ErrUnexpectedEOF
   631  			}
   632  			m.Valsets = append(m.Valsets, &Valset{})
   633  			if err := m.Valsets[len(m.Valsets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   634  				return err
   635  			}
   636  			iNdEx = postIndex
   637  		case 4:
   638  			if wireType != 2 {
   639  				return fmt.Errorf("proto: wrong wireType = %d for field ValsetConfirms", wireType)
   640  			}
   641  			var msglen int
   642  			for shift := uint(0); ; shift += 7 {
   643  				if shift >= 64 {
   644  					return ErrIntOverflowGenesis
   645  				}
   646  				if iNdEx >= l {
   647  					return io.ErrUnexpectedEOF
   648  				}
   649  				b := dAtA[iNdEx]
   650  				iNdEx++
   651  				msglen |= int(b&0x7F) << shift
   652  				if b < 0x80 {
   653  					break
   654  				}
   655  			}
   656  			if msglen < 0 {
   657  				return ErrInvalidLengthGenesis
   658  			}
   659  			postIndex := iNdEx + msglen
   660  			if postIndex < 0 {
   661  				return ErrInvalidLengthGenesis
   662  			}
   663  			if postIndex > l {
   664  				return io.ErrUnexpectedEOF
   665  			}
   666  			m.ValsetConfirms = append(m.ValsetConfirms, &MsgValsetConfirm{})
   667  			if err := m.ValsetConfirms[len(m.ValsetConfirms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   668  				return err
   669  			}
   670  			iNdEx = postIndex
   671  		case 5:
   672  			if wireType != 2 {
   673  				return fmt.Errorf("proto: wrong wireType = %d for field Batches", wireType)
   674  			}
   675  			var msglen int
   676  			for shift := uint(0); ; shift += 7 {
   677  				if shift >= 64 {
   678  					return ErrIntOverflowGenesis
   679  				}
   680  				if iNdEx >= l {
   681  					return io.ErrUnexpectedEOF
   682  				}
   683  				b := dAtA[iNdEx]
   684  				iNdEx++
   685  				msglen |= int(b&0x7F) << shift
   686  				if b < 0x80 {
   687  					break
   688  				}
   689  			}
   690  			if msglen < 0 {
   691  				return ErrInvalidLengthGenesis
   692  			}
   693  			postIndex := iNdEx + msglen
   694  			if postIndex < 0 {
   695  				return ErrInvalidLengthGenesis
   696  			}
   697  			if postIndex > l {
   698  				return io.ErrUnexpectedEOF
   699  			}
   700  			m.Batches = append(m.Batches, &OutgoingTxBatch{})
   701  			if err := m.Batches[len(m.Batches)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   702  				return err
   703  			}
   704  			iNdEx = postIndex
   705  		case 6:
   706  			if wireType != 2 {
   707  				return fmt.Errorf("proto: wrong wireType = %d for field BatchConfirms", wireType)
   708  			}
   709  			var msglen int
   710  			for shift := uint(0); ; shift += 7 {
   711  				if shift >= 64 {
   712  					return ErrIntOverflowGenesis
   713  				}
   714  				if iNdEx >= l {
   715  					return io.ErrUnexpectedEOF
   716  				}
   717  				b := dAtA[iNdEx]
   718  				iNdEx++
   719  				msglen |= int(b&0x7F) << shift
   720  				if b < 0x80 {
   721  					break
   722  				}
   723  			}
   724  			if msglen < 0 {
   725  				return ErrInvalidLengthGenesis
   726  			}
   727  			postIndex := iNdEx + msglen
   728  			if postIndex < 0 {
   729  				return ErrInvalidLengthGenesis
   730  			}
   731  			if postIndex > l {
   732  				return io.ErrUnexpectedEOF
   733  			}
   734  			m.BatchConfirms = append(m.BatchConfirms, &MsgConfirmBatch{})
   735  			if err := m.BatchConfirms[len(m.BatchConfirms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   736  				return err
   737  			}
   738  			iNdEx = postIndex
   739  		case 7:
   740  			if wireType != 2 {
   741  				return fmt.Errorf("proto: wrong wireType = %d for field Attestations", wireType)
   742  			}
   743  			var msglen int
   744  			for shift := uint(0); ; shift += 7 {
   745  				if shift >= 64 {
   746  					return ErrIntOverflowGenesis
   747  				}
   748  				if iNdEx >= l {
   749  					return io.ErrUnexpectedEOF
   750  				}
   751  				b := dAtA[iNdEx]
   752  				iNdEx++
   753  				msglen |= int(b&0x7F) << shift
   754  				if b < 0x80 {
   755  					break
   756  				}
   757  			}
   758  			if msglen < 0 {
   759  				return ErrInvalidLengthGenesis
   760  			}
   761  			postIndex := iNdEx + msglen
   762  			if postIndex < 0 {
   763  				return ErrInvalidLengthGenesis
   764  			}
   765  			if postIndex > l {
   766  				return io.ErrUnexpectedEOF
   767  			}
   768  			m.Attestations = append(m.Attestations, &Attestation{})
   769  			if err := m.Attestations[len(m.Attestations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   770  				return err
   771  			}
   772  			iNdEx = postIndex
   773  		case 8:
   774  			if wireType != 2 {
   775  				return fmt.Errorf("proto: wrong wireType = %d for field OrchestratorAddresses", wireType)
   776  			}
   777  			var msglen int
   778  			for shift := uint(0); ; shift += 7 {
   779  				if shift >= 64 {
   780  					return ErrIntOverflowGenesis
   781  				}
   782  				if iNdEx >= l {
   783  					return io.ErrUnexpectedEOF
   784  				}
   785  				b := dAtA[iNdEx]
   786  				iNdEx++
   787  				msglen |= int(b&0x7F) << shift
   788  				if b < 0x80 {
   789  					break
   790  				}
   791  			}
   792  			if msglen < 0 {
   793  				return ErrInvalidLengthGenesis
   794  			}
   795  			postIndex := iNdEx + msglen
   796  			if postIndex < 0 {
   797  				return ErrInvalidLengthGenesis
   798  			}
   799  			if postIndex > l {
   800  				return io.ErrUnexpectedEOF
   801  			}
   802  			m.OrchestratorAddresses = append(m.OrchestratorAddresses, &MsgSetOrchestratorAddresses{})
   803  			if err := m.OrchestratorAddresses[len(m.OrchestratorAddresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   804  				return err
   805  			}
   806  			iNdEx = postIndex
   807  		case 9:
   808  			if wireType != 2 {
   809  				return fmt.Errorf("proto: wrong wireType = %d for field Erc20ToDenoms", wireType)
   810  			}
   811  			var msglen int
   812  			for shift := uint(0); ; shift += 7 {
   813  				if shift >= 64 {
   814  					return ErrIntOverflowGenesis
   815  				}
   816  				if iNdEx >= l {
   817  					return io.ErrUnexpectedEOF
   818  				}
   819  				b := dAtA[iNdEx]
   820  				iNdEx++
   821  				msglen |= int(b&0x7F) << shift
   822  				if b < 0x80 {
   823  					break
   824  				}
   825  			}
   826  			if msglen < 0 {
   827  				return ErrInvalidLengthGenesis
   828  			}
   829  			postIndex := iNdEx + msglen
   830  			if postIndex < 0 {
   831  				return ErrInvalidLengthGenesis
   832  			}
   833  			if postIndex > l {
   834  				return io.ErrUnexpectedEOF
   835  			}
   836  			m.Erc20ToDenoms = append(m.Erc20ToDenoms, &ERC20ToDenom{})
   837  			if err := m.Erc20ToDenoms[len(m.Erc20ToDenoms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   838  				return err
   839  			}
   840  			iNdEx = postIndex
   841  		case 10:
   842  			if wireType != 2 {
   843  				return fmt.Errorf("proto: wrong wireType = %d for field UnbatchedTransfers", wireType)
   844  			}
   845  			var msglen int
   846  			for shift := uint(0); ; shift += 7 {
   847  				if shift >= 64 {
   848  					return ErrIntOverflowGenesis
   849  				}
   850  				if iNdEx >= l {
   851  					return io.ErrUnexpectedEOF
   852  				}
   853  				b := dAtA[iNdEx]
   854  				iNdEx++
   855  				msglen |= int(b&0x7F) << shift
   856  				if b < 0x80 {
   857  					break
   858  				}
   859  			}
   860  			if msglen < 0 {
   861  				return ErrInvalidLengthGenesis
   862  			}
   863  			postIndex := iNdEx + msglen
   864  			if postIndex < 0 {
   865  				return ErrInvalidLengthGenesis
   866  			}
   867  			if postIndex > l {
   868  				return io.ErrUnexpectedEOF
   869  			}
   870  			m.UnbatchedTransfers = append(m.UnbatchedTransfers, &OutgoingTransferTx{})
   871  			if err := m.UnbatchedTransfers[len(m.UnbatchedTransfers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   872  				return err
   873  			}
   874  			iNdEx = postIndex
   875  		case 11:
   876  			if wireType != 0 {
   877  				return fmt.Errorf("proto: wrong wireType = %d for field LastObservedEthereumHeight", wireType)
   878  			}
   879  			m.LastObservedEthereumHeight = 0
   880  			for shift := uint(0); ; shift += 7 {
   881  				if shift >= 64 {
   882  					return ErrIntOverflowGenesis
   883  				}
   884  				if iNdEx >= l {
   885  					return io.ErrUnexpectedEOF
   886  				}
   887  				b := dAtA[iNdEx]
   888  				iNdEx++
   889  				m.LastObservedEthereumHeight |= uint64(b&0x7F) << shift
   890  				if b < 0x80 {
   891  					break
   892  				}
   893  			}
   894  		case 12:
   895  			if wireType != 0 {
   896  				return fmt.Errorf("proto: wrong wireType = %d for field LastOutgoingBatchId", wireType)
   897  			}
   898  			m.LastOutgoingBatchId = 0
   899  			for shift := uint(0); ; shift += 7 {
   900  				if shift >= 64 {
   901  					return ErrIntOverflowGenesis
   902  				}
   903  				if iNdEx >= l {
   904  					return io.ErrUnexpectedEOF
   905  				}
   906  				b := dAtA[iNdEx]
   907  				iNdEx++
   908  				m.LastOutgoingBatchId |= uint64(b&0x7F) << shift
   909  				if b < 0x80 {
   910  					break
   911  				}
   912  			}
   913  		case 13:
   914  			if wireType != 0 {
   915  				return fmt.Errorf("proto: wrong wireType = %d for field LastOutgoingPoolId", wireType)
   916  			}
   917  			m.LastOutgoingPoolId = 0
   918  			for shift := uint(0); ; shift += 7 {
   919  				if shift >= 64 {
   920  					return ErrIntOverflowGenesis
   921  				}
   922  				if iNdEx >= l {
   923  					return io.ErrUnexpectedEOF
   924  				}
   925  				b := dAtA[iNdEx]
   926  				iNdEx++
   927  				m.LastOutgoingPoolId |= uint64(b&0x7F) << shift
   928  				if b < 0x80 {
   929  					break
   930  				}
   931  			}
   932  		case 14:
   933  			if wireType != 2 {
   934  				return fmt.Errorf("proto: wrong wireType = %d for field LastObservedValset", wireType)
   935  			}
   936  			var msglen int
   937  			for shift := uint(0); ; shift += 7 {
   938  				if shift >= 64 {
   939  					return ErrIntOverflowGenesis
   940  				}
   941  				if iNdEx >= l {
   942  					return io.ErrUnexpectedEOF
   943  				}
   944  				b := dAtA[iNdEx]
   945  				iNdEx++
   946  				msglen |= int(b&0x7F) << shift
   947  				if b < 0x80 {
   948  					break
   949  				}
   950  			}
   951  			if msglen < 0 {
   952  				return ErrInvalidLengthGenesis
   953  			}
   954  			postIndex := iNdEx + msglen
   955  			if postIndex < 0 {
   956  				return ErrInvalidLengthGenesis
   957  			}
   958  			if postIndex > l {
   959  				return io.ErrUnexpectedEOF
   960  			}
   961  			if err := m.LastObservedValset.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   962  				return err
   963  			}
   964  			iNdEx = postIndex
   965  		case 15:
   966  			if wireType != 2 {
   967  				return fmt.Errorf("proto: wrong wireType = %d for field EthereumBlacklist", wireType)
   968  			}
   969  			var stringLen uint64
   970  			for shift := uint(0); ; shift += 7 {
   971  				if shift >= 64 {
   972  					return ErrIntOverflowGenesis
   973  				}
   974  				if iNdEx >= l {
   975  					return io.ErrUnexpectedEOF
   976  				}
   977  				b := dAtA[iNdEx]
   978  				iNdEx++
   979  				stringLen |= uint64(b&0x7F) << shift
   980  				if b < 0x80 {
   981  					break
   982  				}
   983  			}
   984  			intStringLen := int(stringLen)
   985  			if intStringLen < 0 {
   986  				return ErrInvalidLengthGenesis
   987  			}
   988  			postIndex := iNdEx + intStringLen
   989  			if postIndex < 0 {
   990  				return ErrInvalidLengthGenesis
   991  			}
   992  			if postIndex > l {
   993  				return io.ErrUnexpectedEOF
   994  			}
   995  			m.EthereumBlacklist = append(m.EthereumBlacklist, string(dAtA[iNdEx:postIndex]))
   996  			iNdEx = postIndex
   997  		default:
   998  			iNdEx = preIndex
   999  			skippy, err := skipGenesis(dAtA[iNdEx:])
  1000  			if err != nil {
  1001  				return err
  1002  			}
  1003  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1004  				return ErrInvalidLengthGenesis
  1005  			}
  1006  			if (iNdEx + skippy) > l {
  1007  				return io.ErrUnexpectedEOF
  1008  			}
  1009  			iNdEx += skippy
  1010  		}
  1011  	}
  1012  
  1013  	if iNdEx > l {
  1014  		return io.ErrUnexpectedEOF
  1015  	}
  1016  	return nil
  1017  }
  1018  func skipGenesis(dAtA []byte) (n int, err error) {
  1019  	l := len(dAtA)
  1020  	iNdEx := 0
  1021  	depth := 0
  1022  	for iNdEx < l {
  1023  		var wire uint64
  1024  		for shift := uint(0); ; shift += 7 {
  1025  			if shift >= 64 {
  1026  				return 0, ErrIntOverflowGenesis
  1027  			}
  1028  			if iNdEx >= l {
  1029  				return 0, io.ErrUnexpectedEOF
  1030  			}
  1031  			b := dAtA[iNdEx]
  1032  			iNdEx++
  1033  			wire |= (uint64(b) & 0x7F) << shift
  1034  			if b < 0x80 {
  1035  				break
  1036  			}
  1037  		}
  1038  		wireType := int(wire & 0x7)
  1039  		switch wireType {
  1040  		case 0:
  1041  			for shift := uint(0); ; shift += 7 {
  1042  				if shift >= 64 {
  1043  					return 0, ErrIntOverflowGenesis
  1044  				}
  1045  				if iNdEx >= l {
  1046  					return 0, io.ErrUnexpectedEOF
  1047  				}
  1048  				iNdEx++
  1049  				if dAtA[iNdEx-1] < 0x80 {
  1050  					break
  1051  				}
  1052  			}
  1053  		case 1:
  1054  			iNdEx += 8
  1055  		case 2:
  1056  			var length int
  1057  			for shift := uint(0); ; shift += 7 {
  1058  				if shift >= 64 {
  1059  					return 0, ErrIntOverflowGenesis
  1060  				}
  1061  				if iNdEx >= l {
  1062  					return 0, io.ErrUnexpectedEOF
  1063  				}
  1064  				b := dAtA[iNdEx]
  1065  				iNdEx++
  1066  				length |= (int(b) & 0x7F) << shift
  1067  				if b < 0x80 {
  1068  					break
  1069  				}
  1070  			}
  1071  			if length < 0 {
  1072  				return 0, ErrInvalidLengthGenesis
  1073  			}
  1074  			iNdEx += length
  1075  		case 3:
  1076  			depth++
  1077  		case 4:
  1078  			if depth == 0 {
  1079  				return 0, ErrUnexpectedEndOfGroupGenesis
  1080  			}
  1081  			depth--
  1082  		case 5:
  1083  			iNdEx += 4
  1084  		default:
  1085  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1086  		}
  1087  		if iNdEx < 0 {
  1088  			return 0, ErrInvalidLengthGenesis
  1089  		}
  1090  		if depth == 0 {
  1091  			return iNdEx, nil
  1092  		}
  1093  	}
  1094  	return 0, io.ErrUnexpectedEOF
  1095  }
  1096  
  1097  var (
  1098  	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
  1099  	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
  1100  	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
  1101  )