github.com/KiraCore/sekai@v0.3.43/x/gov/legacy/v01228/genesis.pb.go (about)

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