github.com/Finschia/finschia-sdk@v0.49.1/x/collection/genesis.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: lbm/collection/v1/genesis.proto
     3  
     4  package collection
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/Finschia/finschia-sdk/codec/types"
     9  	github_com_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types"
    10  	_ "github.com/gogo/protobuf/gogoproto"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	_ "github.com/regen-network/cosmos-proto"
    13  	io "io"
    14  	math "math"
    15  	math_bits "math/bits"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  // GenesisState defines the collection module's genesis state.
    30  type GenesisState struct {
    31  	// params defines all the paramaters of the module.
    32  	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
    33  	// contracts defines the metadata of the contracts.
    34  	Contracts []Contract `protobuf:"bytes,2,rep,name=contracts,proto3" json:"contracts"`
    35  	// next ids for token classes.
    36  	NextClassIds []NextClassIDs `protobuf:"bytes,3,rep,name=next_class_ids,json=nextClassIds,proto3" json:"next_class_ids"`
    37  	// classes defines the metadata of the tokens.
    38  	Classes []ContractClasses `protobuf:"bytes,4,rep,name=classes,proto3" json:"classes"`
    39  	// next ids for (non-fungible) tokens.
    40  	NextTokenIds []ContractNextTokenIDs `protobuf:"bytes,5,rep,name=next_token_ids,json=nextTokenIds,proto3" json:"next_token_ids"`
    41  	// balances is an array containing the balances of all the accounts.
    42  	Balances []ContractBalances `protobuf:"bytes,6,rep,name=balances,proto3" json:"balances"`
    43  	// nfts is an array containing the nfts.
    44  	Nfts []ContractNFTs `protobuf:"bytes,7,rep,name=nfts,proto3" json:"nfts"`
    45  	// parents represents the parents of (non-fungible) tokens.
    46  	Parents []ContractTokenRelations `protobuf:"bytes,8,rep,name=parents,proto3" json:"parents"` // Deprecated: Do not use.
    47  	// grants defines the grant information.
    48  	Grants []ContractGrants `protobuf:"bytes,9,rep,name=grants,proto3" json:"grants"`
    49  	// authorizations defines the approve information.
    50  	Authorizations []ContractAuthorizations `protobuf:"bytes,10,rep,name=authorizations,proto3" json:"authorizations"`
    51  	// supplies represents the total supplies of tokens.
    52  	Supplies []ContractStatistics `protobuf:"bytes,11,rep,name=supplies,proto3" json:"supplies"`
    53  	// burnts represents the total amount of burnt tokens.
    54  	Burnts []ContractStatistics `protobuf:"bytes,12,rep,name=burnts,proto3" json:"burnts"`
    55  }
    56  
    57  func (m *GenesisState) Reset()         { *m = GenesisState{} }
    58  func (m *GenesisState) String() string { return proto.CompactTextString(m) }
    59  func (*GenesisState) ProtoMessage()    {}
    60  func (*GenesisState) Descriptor() ([]byte, []int) {
    61  	return fileDescriptor_2b8b3f666cffb1ec, []int{0}
    62  }
    63  func (m *GenesisState) XXX_Unmarshal(b []byte) error {
    64  	return m.Unmarshal(b)
    65  }
    66  func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    67  	if deterministic {
    68  		return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
    69  	} else {
    70  		b = b[:cap(b)]
    71  		n, err := m.MarshalToSizedBuffer(b)
    72  		if err != nil {
    73  			return nil, err
    74  		}
    75  		return b[:n], nil
    76  	}
    77  }
    78  func (m *GenesisState) XXX_Merge(src proto.Message) {
    79  	xxx_messageInfo_GenesisState.Merge(m, src)
    80  }
    81  func (m *GenesisState) XXX_Size() int {
    82  	return m.Size()
    83  }
    84  func (m *GenesisState) XXX_DiscardUnknown() {
    85  	xxx_messageInfo_GenesisState.DiscardUnknown(m)
    86  }
    87  
    88  var xxx_messageInfo_GenesisState proto.InternalMessageInfo
    89  
    90  func (m *GenesisState) GetParams() Params {
    91  	if m != nil {
    92  		return m.Params
    93  	}
    94  	return Params{}
    95  }
    96  
    97  func (m *GenesisState) GetContracts() []Contract {
    98  	if m != nil {
    99  		return m.Contracts
   100  	}
   101  	return nil
   102  }
   103  
   104  func (m *GenesisState) GetNextClassIds() []NextClassIDs {
   105  	if m != nil {
   106  		return m.NextClassIds
   107  	}
   108  	return nil
   109  }
   110  
   111  func (m *GenesisState) GetClasses() []ContractClasses {
   112  	if m != nil {
   113  		return m.Classes
   114  	}
   115  	return nil
   116  }
   117  
   118  func (m *GenesisState) GetNextTokenIds() []ContractNextTokenIDs {
   119  	if m != nil {
   120  		return m.NextTokenIds
   121  	}
   122  	return nil
   123  }
   124  
   125  func (m *GenesisState) GetBalances() []ContractBalances {
   126  	if m != nil {
   127  		return m.Balances
   128  	}
   129  	return nil
   130  }
   131  
   132  func (m *GenesisState) GetNfts() []ContractNFTs {
   133  	if m != nil {
   134  		return m.Nfts
   135  	}
   136  	return nil
   137  }
   138  
   139  // Deprecated: Do not use.
   140  func (m *GenesisState) GetParents() []ContractTokenRelations {
   141  	if m != nil {
   142  		return m.Parents
   143  	}
   144  	return nil
   145  }
   146  
   147  func (m *GenesisState) GetGrants() []ContractGrants {
   148  	if m != nil {
   149  		return m.Grants
   150  	}
   151  	return nil
   152  }
   153  
   154  func (m *GenesisState) GetAuthorizations() []ContractAuthorizations {
   155  	if m != nil {
   156  		return m.Authorizations
   157  	}
   158  	return nil
   159  }
   160  
   161  func (m *GenesisState) GetSupplies() []ContractStatistics {
   162  	if m != nil {
   163  		return m.Supplies
   164  	}
   165  	return nil
   166  }
   167  
   168  func (m *GenesisState) GetBurnts() []ContractStatistics {
   169  	if m != nil {
   170  		return m.Burnts
   171  	}
   172  	return nil
   173  }
   174  
   175  // ContractBalances defines balances belong to a contract.
   176  // genesis state.
   177  type ContractBalances struct {
   178  	// contract id associated with the contract.
   179  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   180  	// balances
   181  	Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"`
   182  }
   183  
   184  func (m *ContractBalances) Reset()         { *m = ContractBalances{} }
   185  func (m *ContractBalances) String() string { return proto.CompactTextString(m) }
   186  func (*ContractBalances) ProtoMessage()    {}
   187  func (*ContractBalances) Descriptor() ([]byte, []int) {
   188  	return fileDescriptor_2b8b3f666cffb1ec, []int{1}
   189  }
   190  func (m *ContractBalances) XXX_Unmarshal(b []byte) error {
   191  	return m.Unmarshal(b)
   192  }
   193  func (m *ContractBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   194  	if deterministic {
   195  		return xxx_messageInfo_ContractBalances.Marshal(b, m, deterministic)
   196  	} else {
   197  		b = b[:cap(b)]
   198  		n, err := m.MarshalToSizedBuffer(b)
   199  		if err != nil {
   200  			return nil, err
   201  		}
   202  		return b[:n], nil
   203  	}
   204  }
   205  func (m *ContractBalances) XXX_Merge(src proto.Message) {
   206  	xxx_messageInfo_ContractBalances.Merge(m, src)
   207  }
   208  func (m *ContractBalances) XXX_Size() int {
   209  	return m.Size()
   210  }
   211  func (m *ContractBalances) XXX_DiscardUnknown() {
   212  	xxx_messageInfo_ContractBalances.DiscardUnknown(m)
   213  }
   214  
   215  var xxx_messageInfo_ContractBalances proto.InternalMessageInfo
   216  
   217  func (m *ContractBalances) GetContractId() string {
   218  	if m != nil {
   219  		return m.ContractId
   220  	}
   221  	return ""
   222  }
   223  
   224  func (m *ContractBalances) GetBalances() []Balance {
   225  	if m != nil {
   226  		return m.Balances
   227  	}
   228  	return nil
   229  }
   230  
   231  // ContractStatistics defines statistics belong to a contract.
   232  type ContractStatistics struct {
   233  	// contract id associated with the contract.
   234  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   235  	// statistics
   236  	Statistics []ClassStatistics `protobuf:"bytes,2,rep,name=statistics,proto3" json:"statistics"`
   237  }
   238  
   239  func (m *ContractStatistics) Reset()         { *m = ContractStatistics{} }
   240  func (m *ContractStatistics) String() string { return proto.CompactTextString(m) }
   241  func (*ContractStatistics) ProtoMessage()    {}
   242  func (*ContractStatistics) Descriptor() ([]byte, []int) {
   243  	return fileDescriptor_2b8b3f666cffb1ec, []int{2}
   244  }
   245  func (m *ContractStatistics) XXX_Unmarshal(b []byte) error {
   246  	return m.Unmarshal(b)
   247  }
   248  func (m *ContractStatistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   249  	if deterministic {
   250  		return xxx_messageInfo_ContractStatistics.Marshal(b, m, deterministic)
   251  	} else {
   252  		b = b[:cap(b)]
   253  		n, err := m.MarshalToSizedBuffer(b)
   254  		if err != nil {
   255  			return nil, err
   256  		}
   257  		return b[:n], nil
   258  	}
   259  }
   260  func (m *ContractStatistics) XXX_Merge(src proto.Message) {
   261  	xxx_messageInfo_ContractStatistics.Merge(m, src)
   262  }
   263  func (m *ContractStatistics) XXX_Size() int {
   264  	return m.Size()
   265  }
   266  func (m *ContractStatistics) XXX_DiscardUnknown() {
   267  	xxx_messageInfo_ContractStatistics.DiscardUnknown(m)
   268  }
   269  
   270  var xxx_messageInfo_ContractStatistics proto.InternalMessageInfo
   271  
   272  func (m *ContractStatistics) GetContractId() string {
   273  	if m != nil {
   274  		return m.ContractId
   275  	}
   276  	return ""
   277  }
   278  
   279  func (m *ContractStatistics) GetStatistics() []ClassStatistics {
   280  	if m != nil {
   281  		return m.Statistics
   282  	}
   283  	return nil
   284  }
   285  
   286  // ClassStatistics defines statistics belong to a token class.
   287  type ClassStatistics struct {
   288  	// class id associated with the token class.
   289  	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
   290  	// statistics
   291  	Amount github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"amount"`
   292  }
   293  
   294  func (m *ClassStatistics) Reset()         { *m = ClassStatistics{} }
   295  func (m *ClassStatistics) String() string { return proto.CompactTextString(m) }
   296  func (*ClassStatistics) ProtoMessage()    {}
   297  func (*ClassStatistics) Descriptor() ([]byte, []int) {
   298  	return fileDescriptor_2b8b3f666cffb1ec, []int{3}
   299  }
   300  func (m *ClassStatistics) XXX_Unmarshal(b []byte) error {
   301  	return m.Unmarshal(b)
   302  }
   303  func (m *ClassStatistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   304  	if deterministic {
   305  		return xxx_messageInfo_ClassStatistics.Marshal(b, m, deterministic)
   306  	} else {
   307  		b = b[:cap(b)]
   308  		n, err := m.MarshalToSizedBuffer(b)
   309  		if err != nil {
   310  			return nil, err
   311  		}
   312  		return b[:n], nil
   313  	}
   314  }
   315  func (m *ClassStatistics) XXX_Merge(src proto.Message) {
   316  	xxx_messageInfo_ClassStatistics.Merge(m, src)
   317  }
   318  func (m *ClassStatistics) XXX_Size() int {
   319  	return m.Size()
   320  }
   321  func (m *ClassStatistics) XXX_DiscardUnknown() {
   322  	xxx_messageInfo_ClassStatistics.DiscardUnknown(m)
   323  }
   324  
   325  var xxx_messageInfo_ClassStatistics proto.InternalMessageInfo
   326  
   327  func (m *ClassStatistics) GetClassId() string {
   328  	if m != nil {
   329  		return m.ClassId
   330  	}
   331  	return ""
   332  }
   333  
   334  // Balance defines a balance of an address.
   335  type Balance struct {
   336  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   337  	Amount  Coins  `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=Coins" json:"amount"`
   338  }
   339  
   340  func (m *Balance) Reset()         { *m = Balance{} }
   341  func (m *Balance) String() string { return proto.CompactTextString(m) }
   342  func (*Balance) ProtoMessage()    {}
   343  func (*Balance) Descriptor() ([]byte, []int) {
   344  	return fileDescriptor_2b8b3f666cffb1ec, []int{4}
   345  }
   346  func (m *Balance) XXX_Unmarshal(b []byte) error {
   347  	return m.Unmarshal(b)
   348  }
   349  func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   350  	if deterministic {
   351  		return xxx_messageInfo_Balance.Marshal(b, m, deterministic)
   352  	} else {
   353  		b = b[:cap(b)]
   354  		n, err := m.MarshalToSizedBuffer(b)
   355  		if err != nil {
   356  			return nil, err
   357  		}
   358  		return b[:n], nil
   359  	}
   360  }
   361  func (m *Balance) XXX_Merge(src proto.Message) {
   362  	xxx_messageInfo_Balance.Merge(m, src)
   363  }
   364  func (m *Balance) XXX_Size() int {
   365  	return m.Size()
   366  }
   367  func (m *Balance) XXX_DiscardUnknown() {
   368  	xxx_messageInfo_Balance.DiscardUnknown(m)
   369  }
   370  
   371  var xxx_messageInfo_Balance proto.InternalMessageInfo
   372  
   373  func (m *Balance) GetAddress() string {
   374  	if m != nil {
   375  		return m.Address
   376  	}
   377  	return ""
   378  }
   379  
   380  func (m *Balance) GetAmount() Coins {
   381  	if m != nil {
   382  		return m.Amount
   383  	}
   384  	return nil
   385  }
   386  
   387  // ContractClasses defines token classes belong to a contract.
   388  type ContractClasses struct {
   389  	// contract id associated with the contract.
   390  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   391  	// classes
   392  	Classes []types.Any `protobuf:"bytes,2,rep,name=classes,proto3" json:"classes"`
   393  }
   394  
   395  func (m *ContractClasses) Reset()         { *m = ContractClasses{} }
   396  func (m *ContractClasses) String() string { return proto.CompactTextString(m) }
   397  func (*ContractClasses) ProtoMessage()    {}
   398  func (*ContractClasses) Descriptor() ([]byte, []int) {
   399  	return fileDescriptor_2b8b3f666cffb1ec, []int{5}
   400  }
   401  func (m *ContractClasses) XXX_Unmarshal(b []byte) error {
   402  	return m.Unmarshal(b)
   403  }
   404  func (m *ContractClasses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   405  	if deterministic {
   406  		return xxx_messageInfo_ContractClasses.Marshal(b, m, deterministic)
   407  	} else {
   408  		b = b[:cap(b)]
   409  		n, err := m.MarshalToSizedBuffer(b)
   410  		if err != nil {
   411  			return nil, err
   412  		}
   413  		return b[:n], nil
   414  	}
   415  }
   416  func (m *ContractClasses) XXX_Merge(src proto.Message) {
   417  	xxx_messageInfo_ContractClasses.Merge(m, src)
   418  }
   419  func (m *ContractClasses) XXX_Size() int {
   420  	return m.Size()
   421  }
   422  func (m *ContractClasses) XXX_DiscardUnknown() {
   423  	xxx_messageInfo_ContractClasses.DiscardUnknown(m)
   424  }
   425  
   426  var xxx_messageInfo_ContractClasses proto.InternalMessageInfo
   427  
   428  func (m *ContractClasses) GetContractId() string {
   429  	if m != nil {
   430  		return m.ContractId
   431  	}
   432  	return ""
   433  }
   434  
   435  func (m *ContractClasses) GetClasses() []types.Any {
   436  	if m != nil {
   437  		return m.Classes
   438  	}
   439  	return nil
   440  }
   441  
   442  // ContractNFTs defines token classes belong to a contract.
   443  type ContractNFTs struct {
   444  	// contract id associated with the contract.
   445  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   446  	// nfts
   447  	Nfts []NFT `protobuf:"bytes,2,rep,name=nfts,proto3" json:"nfts"`
   448  }
   449  
   450  func (m *ContractNFTs) Reset()         { *m = ContractNFTs{} }
   451  func (m *ContractNFTs) String() string { return proto.CompactTextString(m) }
   452  func (*ContractNFTs) ProtoMessage()    {}
   453  func (*ContractNFTs) Descriptor() ([]byte, []int) {
   454  	return fileDescriptor_2b8b3f666cffb1ec, []int{6}
   455  }
   456  func (m *ContractNFTs) XXX_Unmarshal(b []byte) error {
   457  	return m.Unmarshal(b)
   458  }
   459  func (m *ContractNFTs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   460  	if deterministic {
   461  		return xxx_messageInfo_ContractNFTs.Marshal(b, m, deterministic)
   462  	} else {
   463  		b = b[:cap(b)]
   464  		n, err := m.MarshalToSizedBuffer(b)
   465  		if err != nil {
   466  			return nil, err
   467  		}
   468  		return b[:n], nil
   469  	}
   470  }
   471  func (m *ContractNFTs) XXX_Merge(src proto.Message) {
   472  	xxx_messageInfo_ContractNFTs.Merge(m, src)
   473  }
   474  func (m *ContractNFTs) XXX_Size() int {
   475  	return m.Size()
   476  }
   477  func (m *ContractNFTs) XXX_DiscardUnknown() {
   478  	xxx_messageInfo_ContractNFTs.DiscardUnknown(m)
   479  }
   480  
   481  var xxx_messageInfo_ContractNFTs proto.InternalMessageInfo
   482  
   483  func (m *ContractNFTs) GetContractId() string {
   484  	if m != nil {
   485  		return m.ContractId
   486  	}
   487  	return ""
   488  }
   489  
   490  func (m *ContractNFTs) GetNfts() []NFT {
   491  	if m != nil {
   492  		return m.Nfts
   493  	}
   494  	return nil
   495  }
   496  
   497  // ContractAuthorizations defines authorizations belong to a contract.
   498  type ContractAuthorizations struct {
   499  	// contract id associated with the contract.
   500  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   501  	// authorizations
   502  	Authorizations []Authorization `protobuf:"bytes,2,rep,name=authorizations,proto3" json:"authorizations"`
   503  }
   504  
   505  func (m *ContractAuthorizations) Reset()         { *m = ContractAuthorizations{} }
   506  func (m *ContractAuthorizations) String() string { return proto.CompactTextString(m) }
   507  func (*ContractAuthorizations) ProtoMessage()    {}
   508  func (*ContractAuthorizations) Descriptor() ([]byte, []int) {
   509  	return fileDescriptor_2b8b3f666cffb1ec, []int{7}
   510  }
   511  func (m *ContractAuthorizations) XXX_Unmarshal(b []byte) error {
   512  	return m.Unmarshal(b)
   513  }
   514  func (m *ContractAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   515  	if deterministic {
   516  		return xxx_messageInfo_ContractAuthorizations.Marshal(b, m, deterministic)
   517  	} else {
   518  		b = b[:cap(b)]
   519  		n, err := m.MarshalToSizedBuffer(b)
   520  		if err != nil {
   521  			return nil, err
   522  		}
   523  		return b[:n], nil
   524  	}
   525  }
   526  func (m *ContractAuthorizations) XXX_Merge(src proto.Message) {
   527  	xxx_messageInfo_ContractAuthorizations.Merge(m, src)
   528  }
   529  func (m *ContractAuthorizations) XXX_Size() int {
   530  	return m.Size()
   531  }
   532  func (m *ContractAuthorizations) XXX_DiscardUnknown() {
   533  	xxx_messageInfo_ContractAuthorizations.DiscardUnknown(m)
   534  }
   535  
   536  var xxx_messageInfo_ContractAuthorizations proto.InternalMessageInfo
   537  
   538  func (m *ContractAuthorizations) GetContractId() string {
   539  	if m != nil {
   540  		return m.ContractId
   541  	}
   542  	return ""
   543  }
   544  
   545  func (m *ContractAuthorizations) GetAuthorizations() []Authorization {
   546  	if m != nil {
   547  		return m.Authorizations
   548  	}
   549  	return nil
   550  }
   551  
   552  // ContractGrant defines grants belong to a contract.
   553  type ContractGrants struct {
   554  	// contract id associated with the contract.
   555  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   556  	// grants
   557  	Grants []Grant `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants"`
   558  }
   559  
   560  func (m *ContractGrants) Reset()         { *m = ContractGrants{} }
   561  func (m *ContractGrants) String() string { return proto.CompactTextString(m) }
   562  func (*ContractGrants) ProtoMessage()    {}
   563  func (*ContractGrants) Descriptor() ([]byte, []int) {
   564  	return fileDescriptor_2b8b3f666cffb1ec, []int{8}
   565  }
   566  func (m *ContractGrants) XXX_Unmarshal(b []byte) error {
   567  	return m.Unmarshal(b)
   568  }
   569  func (m *ContractGrants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   570  	if deterministic {
   571  		return xxx_messageInfo_ContractGrants.Marshal(b, m, deterministic)
   572  	} else {
   573  		b = b[:cap(b)]
   574  		n, err := m.MarshalToSizedBuffer(b)
   575  		if err != nil {
   576  			return nil, err
   577  		}
   578  		return b[:n], nil
   579  	}
   580  }
   581  func (m *ContractGrants) XXX_Merge(src proto.Message) {
   582  	xxx_messageInfo_ContractGrants.Merge(m, src)
   583  }
   584  func (m *ContractGrants) XXX_Size() int {
   585  	return m.Size()
   586  }
   587  func (m *ContractGrants) XXX_DiscardUnknown() {
   588  	xxx_messageInfo_ContractGrants.DiscardUnknown(m)
   589  }
   590  
   591  var xxx_messageInfo_ContractGrants proto.InternalMessageInfo
   592  
   593  func (m *ContractGrants) GetContractId() string {
   594  	if m != nil {
   595  		return m.ContractId
   596  	}
   597  	return ""
   598  }
   599  
   600  func (m *ContractGrants) GetGrants() []Grant {
   601  	if m != nil {
   602  		return m.Grants
   603  	}
   604  	return nil
   605  }
   606  
   607  // NextClassIDs defines the next class ids of the contract.
   608  type NextClassIDs struct {
   609  	// contract id associated with the contract.
   610  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   611  	// id for the fungible tokens.
   612  	Fungible github_com_Finschia_finschia_sdk_types.Uint `protobuf:"bytes,2,opt,name=fungible,proto3,customtype=github.com/Finschia/finschia-sdk/types.Uint" json:"fungible"` // Deprecated: Do not use.
   613  	// id for the non-fungible tokens.
   614  	NonFungible github_com_Finschia_finschia_sdk_types.Uint `protobuf:"bytes,3,opt,name=non_fungible,json=nonFungible,proto3,customtype=github.com/Finschia/finschia-sdk/types.Uint" json:"non_fungible"`
   615  }
   616  
   617  func (m *NextClassIDs) Reset()         { *m = NextClassIDs{} }
   618  func (m *NextClassIDs) String() string { return proto.CompactTextString(m) }
   619  func (*NextClassIDs) ProtoMessage()    {}
   620  func (*NextClassIDs) Descriptor() ([]byte, []int) {
   621  	return fileDescriptor_2b8b3f666cffb1ec, []int{9}
   622  }
   623  func (m *NextClassIDs) XXX_Unmarshal(b []byte) error {
   624  	return m.Unmarshal(b)
   625  }
   626  func (m *NextClassIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   627  	if deterministic {
   628  		return xxx_messageInfo_NextClassIDs.Marshal(b, m, deterministic)
   629  	} else {
   630  		b = b[:cap(b)]
   631  		n, err := m.MarshalToSizedBuffer(b)
   632  		if err != nil {
   633  			return nil, err
   634  		}
   635  		return b[:n], nil
   636  	}
   637  }
   638  func (m *NextClassIDs) XXX_Merge(src proto.Message) {
   639  	xxx_messageInfo_NextClassIDs.Merge(m, src)
   640  }
   641  func (m *NextClassIDs) XXX_Size() int {
   642  	return m.Size()
   643  }
   644  func (m *NextClassIDs) XXX_DiscardUnknown() {
   645  	xxx_messageInfo_NextClassIDs.DiscardUnknown(m)
   646  }
   647  
   648  var xxx_messageInfo_NextClassIDs proto.InternalMessageInfo
   649  
   650  func (m *NextClassIDs) GetContractId() string {
   651  	if m != nil {
   652  		return m.ContractId
   653  	}
   654  	return ""
   655  }
   656  
   657  // ContractNextTokenIDs defines the next token ids belong to a contract.
   658  type ContractNextTokenIDs struct {
   659  	ContractId string        `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   660  	TokenIds   []NextTokenID `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids"`
   661  }
   662  
   663  func (m *ContractNextTokenIDs) Reset()         { *m = ContractNextTokenIDs{} }
   664  func (m *ContractNextTokenIDs) String() string { return proto.CompactTextString(m) }
   665  func (*ContractNextTokenIDs) ProtoMessage()    {}
   666  func (*ContractNextTokenIDs) Descriptor() ([]byte, []int) {
   667  	return fileDescriptor_2b8b3f666cffb1ec, []int{10}
   668  }
   669  func (m *ContractNextTokenIDs) XXX_Unmarshal(b []byte) error {
   670  	return m.Unmarshal(b)
   671  }
   672  func (m *ContractNextTokenIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   673  	if deterministic {
   674  		return xxx_messageInfo_ContractNextTokenIDs.Marshal(b, m, deterministic)
   675  	} else {
   676  		b = b[:cap(b)]
   677  		n, err := m.MarshalToSizedBuffer(b)
   678  		if err != nil {
   679  			return nil, err
   680  		}
   681  		return b[:n], nil
   682  	}
   683  }
   684  func (m *ContractNextTokenIDs) XXX_Merge(src proto.Message) {
   685  	xxx_messageInfo_ContractNextTokenIDs.Merge(m, src)
   686  }
   687  func (m *ContractNextTokenIDs) XXX_Size() int {
   688  	return m.Size()
   689  }
   690  func (m *ContractNextTokenIDs) XXX_DiscardUnknown() {
   691  	xxx_messageInfo_ContractNextTokenIDs.DiscardUnknown(m)
   692  }
   693  
   694  var xxx_messageInfo_ContractNextTokenIDs proto.InternalMessageInfo
   695  
   696  func (m *ContractNextTokenIDs) GetContractId() string {
   697  	if m != nil {
   698  		return m.ContractId
   699  	}
   700  	return ""
   701  }
   702  
   703  func (m *ContractNextTokenIDs) GetTokenIds() []NextTokenID {
   704  	if m != nil {
   705  		return m.TokenIds
   706  	}
   707  	return nil
   708  }
   709  
   710  // NextTokenID defines the next (non-fungible) token id of the token class.
   711  type NextTokenID struct {
   712  	// class id associated with the token class.
   713  	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
   714  	// id for the token.
   715  	Id github_com_Finschia_finschia_sdk_types.Uint `protobuf:"bytes,2,opt,name=id,proto3,customtype=github.com/Finschia/finschia-sdk/types.Uint" json:"id"`
   716  }
   717  
   718  func (m *NextTokenID) Reset()         { *m = NextTokenID{} }
   719  func (m *NextTokenID) String() string { return proto.CompactTextString(m) }
   720  func (*NextTokenID) ProtoMessage()    {}
   721  func (*NextTokenID) Descriptor() ([]byte, []int) {
   722  	return fileDescriptor_2b8b3f666cffb1ec, []int{11}
   723  }
   724  func (m *NextTokenID) XXX_Unmarshal(b []byte) error {
   725  	return m.Unmarshal(b)
   726  }
   727  func (m *NextTokenID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   728  	if deterministic {
   729  		return xxx_messageInfo_NextTokenID.Marshal(b, m, deterministic)
   730  	} else {
   731  		b = b[:cap(b)]
   732  		n, err := m.MarshalToSizedBuffer(b)
   733  		if err != nil {
   734  			return nil, err
   735  		}
   736  		return b[:n], nil
   737  	}
   738  }
   739  func (m *NextTokenID) XXX_Merge(src proto.Message) {
   740  	xxx_messageInfo_NextTokenID.Merge(m, src)
   741  }
   742  func (m *NextTokenID) XXX_Size() int {
   743  	return m.Size()
   744  }
   745  func (m *NextTokenID) XXX_DiscardUnknown() {
   746  	xxx_messageInfo_NextTokenID.DiscardUnknown(m)
   747  }
   748  
   749  var xxx_messageInfo_NextTokenID proto.InternalMessageInfo
   750  
   751  func (m *NextTokenID) GetClassId() string {
   752  	if m != nil {
   753  		return m.ClassId
   754  	}
   755  	return ""
   756  }
   757  
   758  // ContractTokenRelations defines token relations belong to a contract.
   759  //
   760  // Deprecated: Do not use.
   761  type ContractTokenRelations struct {
   762  	// contract id associated with the contract.
   763  	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
   764  	// relations
   765  	Relations []TokenRelation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations"`
   766  }
   767  
   768  func (m *ContractTokenRelations) Reset()         { *m = ContractTokenRelations{} }
   769  func (m *ContractTokenRelations) String() string { return proto.CompactTextString(m) }
   770  func (*ContractTokenRelations) ProtoMessage()    {}
   771  func (*ContractTokenRelations) Descriptor() ([]byte, []int) {
   772  	return fileDescriptor_2b8b3f666cffb1ec, []int{12}
   773  }
   774  func (m *ContractTokenRelations) XXX_Unmarshal(b []byte) error {
   775  	return m.Unmarshal(b)
   776  }
   777  func (m *ContractTokenRelations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   778  	if deterministic {
   779  		return xxx_messageInfo_ContractTokenRelations.Marshal(b, m, deterministic)
   780  	} else {
   781  		b = b[:cap(b)]
   782  		n, err := m.MarshalToSizedBuffer(b)
   783  		if err != nil {
   784  			return nil, err
   785  		}
   786  		return b[:n], nil
   787  	}
   788  }
   789  func (m *ContractTokenRelations) XXX_Merge(src proto.Message) {
   790  	xxx_messageInfo_ContractTokenRelations.Merge(m, src)
   791  }
   792  func (m *ContractTokenRelations) XXX_Size() int {
   793  	return m.Size()
   794  }
   795  func (m *ContractTokenRelations) XXX_DiscardUnknown() {
   796  	xxx_messageInfo_ContractTokenRelations.DiscardUnknown(m)
   797  }
   798  
   799  var xxx_messageInfo_ContractTokenRelations proto.InternalMessageInfo
   800  
   801  func (m *ContractTokenRelations) GetContractId() string {
   802  	if m != nil {
   803  		return m.ContractId
   804  	}
   805  	return ""
   806  }
   807  
   808  func (m *ContractTokenRelations) GetRelations() []TokenRelation {
   809  	if m != nil {
   810  		return m.Relations
   811  	}
   812  	return nil
   813  }
   814  
   815  // TokenRelation defines relations between two tokens.
   816  //
   817  // Deprecated: Do not use.
   818  type TokenRelation struct {
   819  	// self
   820  	Self string `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"`
   821  	// other
   822  	Other string `protobuf:"bytes,2,opt,name=other,proto3" json:"other,omitempty"`
   823  }
   824  
   825  func (m *TokenRelation) Reset()         { *m = TokenRelation{} }
   826  func (m *TokenRelation) String() string { return proto.CompactTextString(m) }
   827  func (*TokenRelation) ProtoMessage()    {}
   828  func (*TokenRelation) Descriptor() ([]byte, []int) {
   829  	return fileDescriptor_2b8b3f666cffb1ec, []int{13}
   830  }
   831  func (m *TokenRelation) XXX_Unmarshal(b []byte) error {
   832  	return m.Unmarshal(b)
   833  }
   834  func (m *TokenRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   835  	if deterministic {
   836  		return xxx_messageInfo_TokenRelation.Marshal(b, m, deterministic)
   837  	} else {
   838  		b = b[:cap(b)]
   839  		n, err := m.MarshalToSizedBuffer(b)
   840  		if err != nil {
   841  			return nil, err
   842  		}
   843  		return b[:n], nil
   844  	}
   845  }
   846  func (m *TokenRelation) XXX_Merge(src proto.Message) {
   847  	xxx_messageInfo_TokenRelation.Merge(m, src)
   848  }
   849  func (m *TokenRelation) XXX_Size() int {
   850  	return m.Size()
   851  }
   852  func (m *TokenRelation) XXX_DiscardUnknown() {
   853  	xxx_messageInfo_TokenRelation.DiscardUnknown(m)
   854  }
   855  
   856  var xxx_messageInfo_TokenRelation proto.InternalMessageInfo
   857  
   858  func (m *TokenRelation) GetSelf() string {
   859  	if m != nil {
   860  		return m.Self
   861  	}
   862  	return ""
   863  }
   864  
   865  func (m *TokenRelation) GetOther() string {
   866  	if m != nil {
   867  		return m.Other
   868  	}
   869  	return ""
   870  }
   871  
   872  func init() {
   873  	proto.RegisterType((*GenesisState)(nil), "lbm.collection.v1.GenesisState")
   874  	proto.RegisterType((*ContractBalances)(nil), "lbm.collection.v1.ContractBalances")
   875  	proto.RegisterType((*ContractStatistics)(nil), "lbm.collection.v1.ContractStatistics")
   876  	proto.RegisterType((*ClassStatistics)(nil), "lbm.collection.v1.ClassStatistics")
   877  	proto.RegisterType((*Balance)(nil), "lbm.collection.v1.Balance")
   878  	proto.RegisterType((*ContractClasses)(nil), "lbm.collection.v1.ContractClasses")
   879  	proto.RegisterType((*ContractNFTs)(nil), "lbm.collection.v1.ContractNFTs")
   880  	proto.RegisterType((*ContractAuthorizations)(nil), "lbm.collection.v1.ContractAuthorizations")
   881  	proto.RegisterType((*ContractGrants)(nil), "lbm.collection.v1.ContractGrants")
   882  	proto.RegisterType((*NextClassIDs)(nil), "lbm.collection.v1.NextClassIDs")
   883  	proto.RegisterType((*ContractNextTokenIDs)(nil), "lbm.collection.v1.ContractNextTokenIDs")
   884  	proto.RegisterType((*NextTokenID)(nil), "lbm.collection.v1.NextTokenID")
   885  	proto.RegisterType((*ContractTokenRelations)(nil), "lbm.collection.v1.ContractTokenRelations")
   886  	proto.RegisterType((*TokenRelation)(nil), "lbm.collection.v1.TokenRelation")
   887  }
   888  
   889  func init() { proto.RegisterFile("lbm/collection/v1/genesis.proto", fileDescriptor_2b8b3f666cffb1ec) }
   890  
   891  var fileDescriptor_2b8b3f666cffb1ec = []byte{
   892  	// 940 bytes of a gzipped FileDescriptorProto
   893  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x96, 0xcf, 0x6f, 0x1b, 0x45,
   894  	0x14, 0xc7, 0xb3, 0x8e, 0xe3, 0x1f, 0xcf, 0x6e, 0x0a, 0xa3, 0xa8, 0x6c, 0x82, 0x64, 0x87, 0x45,
   895  	0x88, 0x02, 0xca, 0x2e, 0x4d, 0x05, 0x88, 0x0a, 0xa8, 0x62, 0x97, 0x84, 0x50, 0xa9, 0x02, 0x37,
   896  	0x80, 0xc4, 0xc5, 0x5a, 0xef, 0x8e, 0x9d, 0x51, 0xd7, 0x33, 0x66, 0x67, 0x1c, 0x25, 0xbd, 0x70,
   897  	0xe0, 0xc4, 0x8d, 0x3f, 0x81, 0x33, 0x67, 0xfe, 0x88, 0x8a, 0x53, 0x8f, 0xa8, 0x87, 0x82, 0x12,
   898  	0x21, 0xf1, 0x67, 0xa0, 0xf9, 0xb1, 0x9b, 0xb5, 0xbd, 0xf5, 0xd2, 0xdc, 0x76, 0x77, 0xde, 0xf7,
   899  	0xf3, 0x7d, 0x33, 0x7e, 0xef, 0x8d, 0xa1, 0x1d, 0x0d, 0xc6, 0x5e, 0xc0, 0xa2, 0x08, 0x07, 0x82,
   900  	0x30, 0xea, 0x9d, 0xdc, 0xf2, 0x46, 0x98, 0x62, 0x4e, 0xb8, 0x3b, 0x89, 0x99, 0x60, 0xe8, 0xd5,
   901  	0x68, 0x30, 0x76, 0x2f, 0x03, 0xdc, 0x93, 0x5b, 0x5b, 0x9b, 0x23, 0xc6, 0x46, 0x11, 0xf6, 0x54,
   902  	0xc0, 0x60, 0x3a, 0xf4, 0x7c, 0x7a, 0xa6, 0xa3, 0xb7, 0x36, 0x46, 0x6c, 0xc4, 0xd4, 0xa3, 0x27,
   903  	0x9f, 0xcc, 0xd7, 0xcd, 0x80, 0xf1, 0x31, 0xe3, 0x7d, 0xbd, 0xa0, 0x5f, 0xcc, 0x92, 0xb3, 0xe8,
   904  	0x9f, 0x31, 0x53, 0x31, 0xce, 0x3f, 0x15, 0x68, 0x1e, 0xe8, 0xa4, 0x1e, 0x0a, 0x5f, 0x60, 0xf4,
   905  	0x11, 0x54, 0x26, 0x7e, 0xec, 0x8f, 0xb9, 0x6d, 0x6d, 0x5b, 0x37, 0x1b, 0xbb, 0x9b, 0xee, 0x42,
   906  	0x92, 0xee, 0x57, 0x2a, 0xa0, 0x53, 0x7e, 0xf2, 0xbc, 0xbd, 0xd2, 0x33, 0xe1, 0xe8, 0x2e, 0xd4,
   907  	0x03, 0x46, 0x45, 0xec, 0x07, 0x82, 0xdb, 0xa5, 0xed, 0xd5, 0x9b, 0x8d, 0xdd, 0xd7, 0x73, 0xb4,
   908  	0x5d, 0x13, 0x63, 0xd4, 0x97, 0x1a, 0x74, 0x1f, 0xd6, 0x29, 0x3e, 0x15, 0xfd, 0x20, 0xf2, 0x39,
   909  	0xef, 0x93, 0x90, 0xdb, 0xab, 0x8a, 0xd2, 0xce, 0xa1, 0x3c, 0xc0, 0xa7, 0xa2, 0x2b, 0xe3, 0x0e,
   910  	0xef, 0x25, 0x79, 0x34, 0x69, 0xfa, 0x2d, 0xe4, 0xa8, 0x03, 0x55, 0xc5, 0xc1, 0xdc, 0x2e, 0x2b,
   911  	0x8a, 0xb3, 0x24, 0x97, 0xae, 0x8e, 0x34, 0xa0, 0x44, 0x88, 0x1e, 0x9a, 0x84, 0x04, 0x7b, 0x84,
   912  	0xa9, 0x4a, 0x68, 0x4d, 0xa1, 0xde, 0x5e, 0x82, 0x92, 0x89, 0x1d, 0xc9, 0xf8, 0xb9, 0xc4, 0xf4,
   913  	0xb7, 0x90, 0xa3, 0xcf, 0xa1, 0x36, 0xf0, 0x23, 0x9f, 0x06, 0x98, 0xdb, 0x15, 0x85, 0x7b, 0x73,
   914  	0xd9, 0x29, 0x99, 0x50, 0x83, 0x4a, 0xa5, 0xe8, 0x63, 0x28, 0xd3, 0xa1, 0xe0, 0x76, 0xf5, 0x85,
   915  	0x47, 0x94, 0x66, 0xb4, 0x7f, 0x94, 0xc8, 0x95, 0x04, 0xdd, 0x87, 0xea, 0xc4, 0x8f, 0x31, 0x15,
   916  	0xdc, 0xae, 0x29, 0xf5, 0x3b, 0x4b, 0xd4, 0x2a, 0xef, 0x1e, 0x8e, 0x7c, 0xb9, 0xc0, 0x3b, 0x15,
   917  	0xc9, 0xb1, 0xad, 0x5e, 0x42, 0x40, 0x77, 0xa1, 0x32, 0x8a, 0x7d, 0xc9, 0xaa, 0x2b, 0xd6, 0x1b,
   918  	0x4b, 0x58, 0x07, 0x2a, 0x30, 0x29, 0x1b, 0x2d, 0x43, 0xdf, 0xc1, 0xba, 0x3f, 0x15, 0xc7, 0x2c,
   919  	0x26, 0x8f, 0xb5, 0x87, 0x0d, 0x85, 0x49, 0xed, 0xcd, 0x08, 0x0c, 0x70, 0x0e, 0x83, 0x0e, 0xa0,
   920  	0xc6, 0xa7, 0x93, 0x49, 0x44, 0x30, 0xb7, 0x1b, 0x0a, 0xf9, 0xd6, 0x12, 0xa4, 0x2c, 0x7e, 0xc2,
   921  	0x05, 0x09, 0xd2, 0xa3, 0x4e, 0xc4, 0xa8, 0x0b, 0x95, 0xc1, 0x34, 0x96, 0x5b, 0x6c, 0xbe, 0x3c,
   922  	0xc6, 0x48, 0x9d, 0x1f, 0xe0, 0x95, 0xf9, 0xdf, 0x14, 0xb5, 0xa1, 0x91, 0x54, 0x7f, 0x9f, 0x84,
   923  	0xaa, 0xdf, 0xea, 0x3d, 0x48, 0x3e, 0x1d, 0x86, 0xe8, 0x93, 0x4c, 0xad, 0xe8, 0x8e, 0xda, 0xca,
   924  	0xf1, 0x36, 0xbc, 0xf9, 0x12, 0x71, 0x7e, 0x04, 0xb4, 0x98, 0x56, 0xb1, 0xe9, 0x17, 0x00, 0x3c,
   925  	0x0d, 0x37, 0xb6, 0xb9, 0xcd, 0x23, 0xbb, 0x64, 0x61, 0xbf, 0x19, 0xad, 0x73, 0x0a, 0xd7, 0xe7,
   926  	0x82, 0xd0, 0x26, 0xd4, 0x92, 0xf6, 0x36, 0xd6, 0xba, 0xdb, 0x0e, 0x43, 0xf4, 0x25, 0x54, 0xfc,
   927  	0x31, 0x9b, 0x52, 0x61, 0x97, 0xe4, 0x42, 0x67, 0x57, 0xf2, 0x9e, 0x3d, 0x6f, 0xbf, 0x3b, 0x22,
   928  	0xe2, 0x78, 0x3a, 0x70, 0x03, 0x36, 0xf6, 0xf6, 0x09, 0xe5, 0xc1, 0x31, 0xf1, 0xbd, 0xa1, 0x79,
   929  	0xd8, 0xe1, 0xe1, 0x23, 0x4f, 0x9c, 0x4d, 0x30, 0x77, 0x0f, 0xa9, 0xe8, 0x19, 0x82, 0x43, 0xa0,
   930  	0x6a, 0x4e, 0x05, 0xd9, 0x50, 0xf5, 0xc3, 0x30, 0xc6, 0x9c, 0x27, 0x86, 0xe6, 0x15, 0x7d, 0x96,
   931  	0x31, 0x94, 0x9b, 0x7c, 0x2d, 0xf7, 0x77, 0x25, 0xb4, 0x73, 0x4d, 0x66, 0xf2, 0xdb, 0x5f, 0xed,
   932  	0x35, 0xf9, 0xc6, 0x13, 0x93, 0x3b, 0xe5, 0x7f, 0x7f, 0x6d, 0x5b, 0xce, 0x09, 0x5c, 0x9f, 0x1b,
   933  	0x23, 0xc5, 0x47, 0x9c, 0x19, 0x4e, 0xda, 0x7a, 0xc3, 0xd5, 0x63, 0xdf, 0x4d, 0xc6, 0xbe, 0xbb,
   934  	0x47, 0xcf, 0x3a, 0x48, 0xfa, 0xfe, 0xf1, 0xfb, 0x0e, 0xa8, 0x26, 0x54, 0xf4, 0x74, 0x38, 0x39,
   935  	0x3e, 0x34, 0xb3, 0x1d, 0x5e, 0x6c, 0xfa, 0xbe, 0x99, 0x18, 0xda, 0xf1, 0x46, 0xde, 0x50, 0xdd,
   936  	0x3f, 0xca, 0x0e, 0x0a, 0xe7, 0x67, 0x0b, 0x6e, 0xe4, 0xb7, 0x5c, 0xb1, 0xdb, 0x83, 0x85, 0xb6,
   937  	0xd6, 0xbe, 0xdb, 0x39, 0xbe, 0x33, 0xec, 0xfc, 0x6e, 0x76, 0x08, 0xac, 0xcf, 0x8e, 0x91, 0xe2,
   938  	0x14, 0x3e, 0x4c, 0x47, 0x93, 0xb6, 0xb6, 0x73, 0xac, 0x15, 0x6b, 0x76, 0x22, 0x39, 0xcf, 0x2c,
   939  	0x68, 0x66, 0xef, 0x97, 0x62, 0xa7, 0xaf, 0xa1, 0x36, 0x9c, 0xd2, 0x11, 0x19, 0x44, 0xd8, 0x14,
   940  	0xef, 0x07, 0xa6, 0x78, 0xdf, 0xfb, 0x9f, 0xc5, 0xfb, 0x0d, 0xa1, 0xc2, 0xb6, 0x7a, 0x29, 0x06,
   941  	0x7d, 0x0b, 0x4d, 0xca, 0x68, 0x3f, 0xc5, 0xae, 0x2a, 0xec, 0xed, 0x2b, 0x60, 0x7b, 0x0d, 0xca,
   942  	0xe8, 0xbe, 0xe1, 0x38, 0x8f, 0x61, 0x23, 0xef, 0xaa, 0x2a, 0xde, 0xe3, 0x1e, 0xd4, 0x2f, 0xef,
   943  	0x41, 0x7d, 0xa0, 0xad, 0x17, 0x5c, 0xcc, 0x06, 0x9a, 0x0c, 0x24, 0x61, 0xae, 0x3e, 0x67, 0x0c,
   944  	0x8d, 0xcc, 0xf2, 0xb2, 0x59, 0xd0, 0x85, 0x12, 0x09, 0xcd, 0x51, 0x5e, 0x69, 0xcf, 0x25, 0x12,
   945  	0x3a, 0x3f, 0x65, 0xca, 0x77, 0xf6, 0x1a, 0x2b, 0xde, 0xed, 0x3d, 0xa8, 0xc7, 0x49, 0xf4, 0x92,
   946  	0xca, 0x9d, 0xc1, 0x26, 0xff, 0x68, 0x52, 0xe1, 0x9d, 0x92, 0x6d, 0x39, 0x9f, 0xc2, 0xb5, 0x99,
   947  	0x28, 0x84, 0xa0, 0xcc, 0x71, 0x34, 0x34, 0xa6, 0xea, 0x19, 0x6d, 0xc0, 0x1a, 0x13, 0xc7, 0x38,
   948  	0xd6, 0x5b, 0xee, 0xe9, 0x17, 0x29, 0xef, 0x1c, 0x3c, 0x39, 0x6f, 0x59, 0x4f, 0xcf, 0x5b, 0xd6,
   949  	0xdf, 0xe7, 0x2d, 0xeb, 0x97, 0x8b, 0xd6, 0xca, 0xd3, 0x8b, 0xd6, 0xca, 0x9f, 0x17, 0xad, 0x95,
   950  	0xef, 0x77, 0x0a, 0xcf, 0xe3, 0x34, 0xf3, 0x77, 0x6f, 0x50, 0x51, 0xa3, 0xe5, 0xf6, 0x7f, 0x01,
   951  	0x00, 0x00, 0xff, 0xff, 0xa8, 0x3f, 0x52, 0xda, 0x95, 0x0a, 0x00, 0x00,
   952  }
   953  
   954  func (this *Balance) Equal(that interface{}) bool {
   955  	if that == nil {
   956  		return this == nil
   957  	}
   958  
   959  	that1, ok := that.(*Balance)
   960  	if !ok {
   961  		that2, ok := that.(Balance)
   962  		if ok {
   963  			that1 = &that2
   964  		} else {
   965  			return false
   966  		}
   967  	}
   968  	if that1 == nil {
   969  		return this == nil
   970  	} else if this == nil {
   971  		return false
   972  	}
   973  	if this.Address != that1.Address {
   974  		return false
   975  	}
   976  	if len(this.Amount) != len(that1.Amount) {
   977  		return false
   978  	}
   979  	for i := range this.Amount {
   980  		if !this.Amount[i].Equal(&that1.Amount[i]) {
   981  			return false
   982  		}
   983  	}
   984  	return true
   985  }
   986  func (m *GenesisState) Marshal() (dAtA []byte, err error) {
   987  	size := m.Size()
   988  	dAtA = make([]byte, size)
   989  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   990  	if err != nil {
   991  		return nil, err
   992  	}
   993  	return dAtA[:n], nil
   994  }
   995  
   996  func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
   997  	size := m.Size()
   998  	return m.MarshalToSizedBuffer(dAtA[:size])
   999  }
  1000  
  1001  func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1002  	i := len(dAtA)
  1003  	_ = i
  1004  	var l int
  1005  	_ = l
  1006  	if len(m.Burnts) > 0 {
  1007  		for iNdEx := len(m.Burnts) - 1; iNdEx >= 0; iNdEx-- {
  1008  			{
  1009  				size, err := m.Burnts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1010  				if err != nil {
  1011  					return 0, err
  1012  				}
  1013  				i -= size
  1014  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1015  			}
  1016  			i--
  1017  			dAtA[i] = 0x62
  1018  		}
  1019  	}
  1020  	if len(m.Supplies) > 0 {
  1021  		for iNdEx := len(m.Supplies) - 1; iNdEx >= 0; iNdEx-- {
  1022  			{
  1023  				size, err := m.Supplies[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1024  				if err != nil {
  1025  					return 0, err
  1026  				}
  1027  				i -= size
  1028  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1029  			}
  1030  			i--
  1031  			dAtA[i] = 0x5a
  1032  		}
  1033  	}
  1034  	if len(m.Authorizations) > 0 {
  1035  		for iNdEx := len(m.Authorizations) - 1; iNdEx >= 0; iNdEx-- {
  1036  			{
  1037  				size, err := m.Authorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1038  				if err != nil {
  1039  					return 0, err
  1040  				}
  1041  				i -= size
  1042  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1043  			}
  1044  			i--
  1045  			dAtA[i] = 0x52
  1046  		}
  1047  	}
  1048  	if len(m.Grants) > 0 {
  1049  		for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- {
  1050  			{
  1051  				size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1052  				if err != nil {
  1053  					return 0, err
  1054  				}
  1055  				i -= size
  1056  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1057  			}
  1058  			i--
  1059  			dAtA[i] = 0x4a
  1060  		}
  1061  	}
  1062  	if len(m.Parents) > 0 {
  1063  		for iNdEx := len(m.Parents) - 1; iNdEx >= 0; iNdEx-- {
  1064  			{
  1065  				size, err := m.Parents[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1066  				if err != nil {
  1067  					return 0, err
  1068  				}
  1069  				i -= size
  1070  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1071  			}
  1072  			i--
  1073  			dAtA[i] = 0x42
  1074  		}
  1075  	}
  1076  	if len(m.Nfts) > 0 {
  1077  		for iNdEx := len(m.Nfts) - 1; iNdEx >= 0; iNdEx-- {
  1078  			{
  1079  				size, err := m.Nfts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1080  				if err != nil {
  1081  					return 0, err
  1082  				}
  1083  				i -= size
  1084  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1085  			}
  1086  			i--
  1087  			dAtA[i] = 0x3a
  1088  		}
  1089  	}
  1090  	if len(m.Balances) > 0 {
  1091  		for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- {
  1092  			{
  1093  				size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1094  				if err != nil {
  1095  					return 0, err
  1096  				}
  1097  				i -= size
  1098  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1099  			}
  1100  			i--
  1101  			dAtA[i] = 0x32
  1102  		}
  1103  	}
  1104  	if len(m.NextTokenIds) > 0 {
  1105  		for iNdEx := len(m.NextTokenIds) - 1; iNdEx >= 0; iNdEx-- {
  1106  			{
  1107  				size, err := m.NextTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1108  				if err != nil {
  1109  					return 0, err
  1110  				}
  1111  				i -= size
  1112  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1113  			}
  1114  			i--
  1115  			dAtA[i] = 0x2a
  1116  		}
  1117  	}
  1118  	if len(m.Classes) > 0 {
  1119  		for iNdEx := len(m.Classes) - 1; iNdEx >= 0; iNdEx-- {
  1120  			{
  1121  				size, err := m.Classes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1122  				if err != nil {
  1123  					return 0, err
  1124  				}
  1125  				i -= size
  1126  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1127  			}
  1128  			i--
  1129  			dAtA[i] = 0x22
  1130  		}
  1131  	}
  1132  	if len(m.NextClassIds) > 0 {
  1133  		for iNdEx := len(m.NextClassIds) - 1; iNdEx >= 0; iNdEx-- {
  1134  			{
  1135  				size, err := m.NextClassIds[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1136  				if err != nil {
  1137  					return 0, err
  1138  				}
  1139  				i -= size
  1140  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1141  			}
  1142  			i--
  1143  			dAtA[i] = 0x1a
  1144  		}
  1145  	}
  1146  	if len(m.Contracts) > 0 {
  1147  		for iNdEx := len(m.Contracts) - 1; iNdEx >= 0; iNdEx-- {
  1148  			{
  1149  				size, err := m.Contracts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1150  				if err != nil {
  1151  					return 0, err
  1152  				}
  1153  				i -= size
  1154  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1155  			}
  1156  			i--
  1157  			dAtA[i] = 0x12
  1158  		}
  1159  	}
  1160  	{
  1161  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
  1162  		if err != nil {
  1163  			return 0, err
  1164  		}
  1165  		i -= size
  1166  		i = encodeVarintGenesis(dAtA, i, uint64(size))
  1167  	}
  1168  	i--
  1169  	dAtA[i] = 0xa
  1170  	return len(dAtA) - i, nil
  1171  }
  1172  
  1173  func (m *ContractBalances) Marshal() (dAtA []byte, err error) {
  1174  	size := m.Size()
  1175  	dAtA = make([]byte, size)
  1176  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1177  	if err != nil {
  1178  		return nil, err
  1179  	}
  1180  	return dAtA[:n], nil
  1181  }
  1182  
  1183  func (m *ContractBalances) MarshalTo(dAtA []byte) (int, error) {
  1184  	size := m.Size()
  1185  	return m.MarshalToSizedBuffer(dAtA[:size])
  1186  }
  1187  
  1188  func (m *ContractBalances) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1189  	i := len(dAtA)
  1190  	_ = i
  1191  	var l int
  1192  	_ = l
  1193  	if len(m.Balances) > 0 {
  1194  		for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- {
  1195  			{
  1196  				size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1197  				if err != nil {
  1198  					return 0, err
  1199  				}
  1200  				i -= size
  1201  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1202  			}
  1203  			i--
  1204  			dAtA[i] = 0x12
  1205  		}
  1206  	}
  1207  	if len(m.ContractId) > 0 {
  1208  		i -= len(m.ContractId)
  1209  		copy(dAtA[i:], m.ContractId)
  1210  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId)))
  1211  		i--
  1212  		dAtA[i] = 0xa
  1213  	}
  1214  	return len(dAtA) - i, nil
  1215  }
  1216  
  1217  func (m *ContractStatistics) Marshal() (dAtA []byte, err error) {
  1218  	size := m.Size()
  1219  	dAtA = make([]byte, size)
  1220  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1221  	if err != nil {
  1222  		return nil, err
  1223  	}
  1224  	return dAtA[:n], nil
  1225  }
  1226  
  1227  func (m *ContractStatistics) MarshalTo(dAtA []byte) (int, error) {
  1228  	size := m.Size()
  1229  	return m.MarshalToSizedBuffer(dAtA[:size])
  1230  }
  1231  
  1232  func (m *ContractStatistics) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1233  	i := len(dAtA)
  1234  	_ = i
  1235  	var l int
  1236  	_ = l
  1237  	if len(m.Statistics) > 0 {
  1238  		for iNdEx := len(m.Statistics) - 1; iNdEx >= 0; iNdEx-- {
  1239  			{
  1240  				size, err := m.Statistics[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1241  				if err != nil {
  1242  					return 0, err
  1243  				}
  1244  				i -= size
  1245  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1246  			}
  1247  			i--
  1248  			dAtA[i] = 0x12
  1249  		}
  1250  	}
  1251  	if len(m.ContractId) > 0 {
  1252  		i -= len(m.ContractId)
  1253  		copy(dAtA[i:], m.ContractId)
  1254  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId)))
  1255  		i--
  1256  		dAtA[i] = 0xa
  1257  	}
  1258  	return len(dAtA) - i, nil
  1259  }
  1260  
  1261  func (m *ClassStatistics) Marshal() (dAtA []byte, err error) {
  1262  	size := m.Size()
  1263  	dAtA = make([]byte, size)
  1264  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1265  	if err != nil {
  1266  		return nil, err
  1267  	}
  1268  	return dAtA[:n], nil
  1269  }
  1270  
  1271  func (m *ClassStatistics) MarshalTo(dAtA []byte) (int, error) {
  1272  	size := m.Size()
  1273  	return m.MarshalToSizedBuffer(dAtA[:size])
  1274  }
  1275  
  1276  func (m *ClassStatistics) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1277  	i := len(dAtA)
  1278  	_ = i
  1279  	var l int
  1280  	_ = l
  1281  	{
  1282  		size := m.Amount.Size()
  1283  		i -= size
  1284  		if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil {
  1285  			return 0, err
  1286  		}
  1287  		i = encodeVarintGenesis(dAtA, i, uint64(size))
  1288  	}
  1289  	i--
  1290  	dAtA[i] = 0x12
  1291  	if len(m.ClassId) > 0 {
  1292  		i -= len(m.ClassId)
  1293  		copy(dAtA[i:], m.ClassId)
  1294  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ClassId)))
  1295  		i--
  1296  		dAtA[i] = 0xa
  1297  	}
  1298  	return len(dAtA) - i, nil
  1299  }
  1300  
  1301  func (m *Balance) Marshal() (dAtA []byte, err error) {
  1302  	size := m.Size()
  1303  	dAtA = make([]byte, size)
  1304  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1305  	if err != nil {
  1306  		return nil, err
  1307  	}
  1308  	return dAtA[:n], nil
  1309  }
  1310  
  1311  func (m *Balance) MarshalTo(dAtA []byte) (int, error) {
  1312  	size := m.Size()
  1313  	return m.MarshalToSizedBuffer(dAtA[:size])
  1314  }
  1315  
  1316  func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1317  	i := len(dAtA)
  1318  	_ = i
  1319  	var l int
  1320  	_ = l
  1321  	if len(m.Amount) > 0 {
  1322  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
  1323  			{
  1324  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1325  				if err != nil {
  1326  					return 0, err
  1327  				}
  1328  				i -= size
  1329  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1330  			}
  1331  			i--
  1332  			dAtA[i] = 0x12
  1333  		}
  1334  	}
  1335  	if len(m.Address) > 0 {
  1336  		i -= len(m.Address)
  1337  		copy(dAtA[i:], m.Address)
  1338  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address)))
  1339  		i--
  1340  		dAtA[i] = 0xa
  1341  	}
  1342  	return len(dAtA) - i, nil
  1343  }
  1344  
  1345  func (m *ContractClasses) Marshal() (dAtA []byte, err error) {
  1346  	size := m.Size()
  1347  	dAtA = make([]byte, size)
  1348  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1349  	if err != nil {
  1350  		return nil, err
  1351  	}
  1352  	return dAtA[:n], nil
  1353  }
  1354  
  1355  func (m *ContractClasses) MarshalTo(dAtA []byte) (int, error) {
  1356  	size := m.Size()
  1357  	return m.MarshalToSizedBuffer(dAtA[:size])
  1358  }
  1359  
  1360  func (m *ContractClasses) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1361  	i := len(dAtA)
  1362  	_ = i
  1363  	var l int
  1364  	_ = l
  1365  	if len(m.Classes) > 0 {
  1366  		for iNdEx := len(m.Classes) - 1; iNdEx >= 0; iNdEx-- {
  1367  			{
  1368  				size, err := m.Classes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1369  				if err != nil {
  1370  					return 0, err
  1371  				}
  1372  				i -= size
  1373  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1374  			}
  1375  			i--
  1376  			dAtA[i] = 0x12
  1377  		}
  1378  	}
  1379  	if len(m.ContractId) > 0 {
  1380  		i -= len(m.ContractId)
  1381  		copy(dAtA[i:], m.ContractId)
  1382  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId)))
  1383  		i--
  1384  		dAtA[i] = 0xa
  1385  	}
  1386  	return len(dAtA) - i, nil
  1387  }
  1388  
  1389  func (m *ContractNFTs) Marshal() (dAtA []byte, err error) {
  1390  	size := m.Size()
  1391  	dAtA = make([]byte, size)
  1392  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1393  	if err != nil {
  1394  		return nil, err
  1395  	}
  1396  	return dAtA[:n], nil
  1397  }
  1398  
  1399  func (m *ContractNFTs) MarshalTo(dAtA []byte) (int, error) {
  1400  	size := m.Size()
  1401  	return m.MarshalToSizedBuffer(dAtA[:size])
  1402  }
  1403  
  1404  func (m *ContractNFTs) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1405  	i := len(dAtA)
  1406  	_ = i
  1407  	var l int
  1408  	_ = l
  1409  	if len(m.Nfts) > 0 {
  1410  		for iNdEx := len(m.Nfts) - 1; iNdEx >= 0; iNdEx-- {
  1411  			{
  1412  				size, err := m.Nfts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1413  				if err != nil {
  1414  					return 0, err
  1415  				}
  1416  				i -= size
  1417  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1418  			}
  1419  			i--
  1420  			dAtA[i] = 0x12
  1421  		}
  1422  	}
  1423  	if len(m.ContractId) > 0 {
  1424  		i -= len(m.ContractId)
  1425  		copy(dAtA[i:], m.ContractId)
  1426  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId)))
  1427  		i--
  1428  		dAtA[i] = 0xa
  1429  	}
  1430  	return len(dAtA) - i, nil
  1431  }
  1432  
  1433  func (m *ContractAuthorizations) Marshal() (dAtA []byte, err error) {
  1434  	size := m.Size()
  1435  	dAtA = make([]byte, size)
  1436  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1437  	if err != nil {
  1438  		return nil, err
  1439  	}
  1440  	return dAtA[:n], nil
  1441  }
  1442  
  1443  func (m *ContractAuthorizations) MarshalTo(dAtA []byte) (int, error) {
  1444  	size := m.Size()
  1445  	return m.MarshalToSizedBuffer(dAtA[:size])
  1446  }
  1447  
  1448  func (m *ContractAuthorizations) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1449  	i := len(dAtA)
  1450  	_ = i
  1451  	var l int
  1452  	_ = l
  1453  	if len(m.Authorizations) > 0 {
  1454  		for iNdEx := len(m.Authorizations) - 1; iNdEx >= 0; iNdEx-- {
  1455  			{
  1456  				size, err := m.Authorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1457  				if err != nil {
  1458  					return 0, err
  1459  				}
  1460  				i -= size
  1461  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1462  			}
  1463  			i--
  1464  			dAtA[i] = 0x12
  1465  		}
  1466  	}
  1467  	if len(m.ContractId) > 0 {
  1468  		i -= len(m.ContractId)
  1469  		copy(dAtA[i:], m.ContractId)
  1470  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId)))
  1471  		i--
  1472  		dAtA[i] = 0xa
  1473  	}
  1474  	return len(dAtA) - i, nil
  1475  }
  1476  
  1477  func (m *ContractGrants) Marshal() (dAtA []byte, err error) {
  1478  	size := m.Size()
  1479  	dAtA = make([]byte, size)
  1480  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1481  	if err != nil {
  1482  		return nil, err
  1483  	}
  1484  	return dAtA[:n], nil
  1485  }
  1486  
  1487  func (m *ContractGrants) MarshalTo(dAtA []byte) (int, error) {
  1488  	size := m.Size()
  1489  	return m.MarshalToSizedBuffer(dAtA[:size])
  1490  }
  1491  
  1492  func (m *ContractGrants) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1493  	i := len(dAtA)
  1494  	_ = i
  1495  	var l int
  1496  	_ = l
  1497  	if len(m.Grants) > 0 {
  1498  		for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- {
  1499  			{
  1500  				size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1501  				if err != nil {
  1502  					return 0, err
  1503  				}
  1504  				i -= size
  1505  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1506  			}
  1507  			i--
  1508  			dAtA[i] = 0x12
  1509  		}
  1510  	}
  1511  	if len(m.ContractId) > 0 {
  1512  		i -= len(m.ContractId)
  1513  		copy(dAtA[i:], m.ContractId)
  1514  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId)))
  1515  		i--
  1516  		dAtA[i] = 0xa
  1517  	}
  1518  	return len(dAtA) - i, nil
  1519  }
  1520  
  1521  func (m *NextClassIDs) Marshal() (dAtA []byte, err error) {
  1522  	size := m.Size()
  1523  	dAtA = make([]byte, size)
  1524  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1525  	if err != nil {
  1526  		return nil, err
  1527  	}
  1528  	return dAtA[:n], nil
  1529  }
  1530  
  1531  func (m *NextClassIDs) MarshalTo(dAtA []byte) (int, error) {
  1532  	size := m.Size()
  1533  	return m.MarshalToSizedBuffer(dAtA[:size])
  1534  }
  1535  
  1536  func (m *NextClassIDs) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1537  	i := len(dAtA)
  1538  	_ = i
  1539  	var l int
  1540  	_ = l
  1541  	{
  1542  		size := m.NonFungible.Size()
  1543  		i -= size
  1544  		if _, err := m.NonFungible.MarshalTo(dAtA[i:]); err != nil {
  1545  			return 0, err
  1546  		}
  1547  		i = encodeVarintGenesis(dAtA, i, uint64(size))
  1548  	}
  1549  	i--
  1550  	dAtA[i] = 0x1a
  1551  	{
  1552  		size := m.Fungible.Size()
  1553  		i -= size
  1554  		if _, err := m.Fungible.MarshalTo(dAtA[i:]); err != nil {
  1555  			return 0, err
  1556  		}
  1557  		i = encodeVarintGenesis(dAtA, i, uint64(size))
  1558  	}
  1559  	i--
  1560  	dAtA[i] = 0x12
  1561  	if len(m.ContractId) > 0 {
  1562  		i -= len(m.ContractId)
  1563  		copy(dAtA[i:], m.ContractId)
  1564  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId)))
  1565  		i--
  1566  		dAtA[i] = 0xa
  1567  	}
  1568  	return len(dAtA) - i, nil
  1569  }
  1570  
  1571  func (m *ContractNextTokenIDs) Marshal() (dAtA []byte, err error) {
  1572  	size := m.Size()
  1573  	dAtA = make([]byte, size)
  1574  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1575  	if err != nil {
  1576  		return nil, err
  1577  	}
  1578  	return dAtA[:n], nil
  1579  }
  1580  
  1581  func (m *ContractNextTokenIDs) MarshalTo(dAtA []byte) (int, error) {
  1582  	size := m.Size()
  1583  	return m.MarshalToSizedBuffer(dAtA[:size])
  1584  }
  1585  
  1586  func (m *ContractNextTokenIDs) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1587  	i := len(dAtA)
  1588  	_ = i
  1589  	var l int
  1590  	_ = l
  1591  	if len(m.TokenIds) > 0 {
  1592  		for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- {
  1593  			{
  1594  				size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1595  				if err != nil {
  1596  					return 0, err
  1597  				}
  1598  				i -= size
  1599  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1600  			}
  1601  			i--
  1602  			dAtA[i] = 0x12
  1603  		}
  1604  	}
  1605  	if len(m.ContractId) > 0 {
  1606  		i -= len(m.ContractId)
  1607  		copy(dAtA[i:], m.ContractId)
  1608  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId)))
  1609  		i--
  1610  		dAtA[i] = 0xa
  1611  	}
  1612  	return len(dAtA) - i, nil
  1613  }
  1614  
  1615  func (m *NextTokenID) Marshal() (dAtA []byte, err error) {
  1616  	size := m.Size()
  1617  	dAtA = make([]byte, size)
  1618  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1619  	if err != nil {
  1620  		return nil, err
  1621  	}
  1622  	return dAtA[:n], nil
  1623  }
  1624  
  1625  func (m *NextTokenID) MarshalTo(dAtA []byte) (int, error) {
  1626  	size := m.Size()
  1627  	return m.MarshalToSizedBuffer(dAtA[:size])
  1628  }
  1629  
  1630  func (m *NextTokenID) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1631  	i := len(dAtA)
  1632  	_ = i
  1633  	var l int
  1634  	_ = l
  1635  	{
  1636  		size := m.Id.Size()
  1637  		i -= size
  1638  		if _, err := m.Id.MarshalTo(dAtA[i:]); err != nil {
  1639  			return 0, err
  1640  		}
  1641  		i = encodeVarintGenesis(dAtA, i, uint64(size))
  1642  	}
  1643  	i--
  1644  	dAtA[i] = 0x12
  1645  	if len(m.ClassId) > 0 {
  1646  		i -= len(m.ClassId)
  1647  		copy(dAtA[i:], m.ClassId)
  1648  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ClassId)))
  1649  		i--
  1650  		dAtA[i] = 0xa
  1651  	}
  1652  	return len(dAtA) - i, nil
  1653  }
  1654  
  1655  func (m *ContractTokenRelations) Marshal() (dAtA []byte, err error) {
  1656  	size := m.Size()
  1657  	dAtA = make([]byte, size)
  1658  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1659  	if err != nil {
  1660  		return nil, err
  1661  	}
  1662  	return dAtA[:n], nil
  1663  }
  1664  
  1665  func (m *ContractTokenRelations) MarshalTo(dAtA []byte) (int, error) {
  1666  	size := m.Size()
  1667  	return m.MarshalToSizedBuffer(dAtA[:size])
  1668  }
  1669  
  1670  func (m *ContractTokenRelations) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1671  	i := len(dAtA)
  1672  	_ = i
  1673  	var l int
  1674  	_ = l
  1675  	if len(m.Relations) > 0 {
  1676  		for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- {
  1677  			{
  1678  				size, err := m.Relations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1679  				if err != nil {
  1680  					return 0, err
  1681  				}
  1682  				i -= size
  1683  				i = encodeVarintGenesis(dAtA, i, uint64(size))
  1684  			}
  1685  			i--
  1686  			dAtA[i] = 0x12
  1687  		}
  1688  	}
  1689  	if len(m.ContractId) > 0 {
  1690  		i -= len(m.ContractId)
  1691  		copy(dAtA[i:], m.ContractId)
  1692  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.ContractId)))
  1693  		i--
  1694  		dAtA[i] = 0xa
  1695  	}
  1696  	return len(dAtA) - i, nil
  1697  }
  1698  
  1699  func (m *TokenRelation) Marshal() (dAtA []byte, err error) {
  1700  	size := m.Size()
  1701  	dAtA = make([]byte, size)
  1702  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1703  	if err != nil {
  1704  		return nil, err
  1705  	}
  1706  	return dAtA[:n], nil
  1707  }
  1708  
  1709  func (m *TokenRelation) MarshalTo(dAtA []byte) (int, error) {
  1710  	size := m.Size()
  1711  	return m.MarshalToSizedBuffer(dAtA[:size])
  1712  }
  1713  
  1714  func (m *TokenRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1715  	i := len(dAtA)
  1716  	_ = i
  1717  	var l int
  1718  	_ = l
  1719  	if len(m.Other) > 0 {
  1720  		i -= len(m.Other)
  1721  		copy(dAtA[i:], m.Other)
  1722  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.Other)))
  1723  		i--
  1724  		dAtA[i] = 0x12
  1725  	}
  1726  	if len(m.Self) > 0 {
  1727  		i -= len(m.Self)
  1728  		copy(dAtA[i:], m.Self)
  1729  		i = encodeVarintGenesis(dAtA, i, uint64(len(m.Self)))
  1730  		i--
  1731  		dAtA[i] = 0xa
  1732  	}
  1733  	return len(dAtA) - i, nil
  1734  }
  1735  
  1736  func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
  1737  	offset -= sovGenesis(v)
  1738  	base := offset
  1739  	for v >= 1<<7 {
  1740  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1741  		v >>= 7
  1742  		offset++
  1743  	}
  1744  	dAtA[offset] = uint8(v)
  1745  	return base
  1746  }
  1747  func (m *GenesisState) Size() (n int) {
  1748  	if m == nil {
  1749  		return 0
  1750  	}
  1751  	var l int
  1752  	_ = l
  1753  	l = m.Params.Size()
  1754  	n += 1 + l + sovGenesis(uint64(l))
  1755  	if len(m.Contracts) > 0 {
  1756  		for _, e := range m.Contracts {
  1757  			l = e.Size()
  1758  			n += 1 + l + sovGenesis(uint64(l))
  1759  		}
  1760  	}
  1761  	if len(m.NextClassIds) > 0 {
  1762  		for _, e := range m.NextClassIds {
  1763  			l = e.Size()
  1764  			n += 1 + l + sovGenesis(uint64(l))
  1765  		}
  1766  	}
  1767  	if len(m.Classes) > 0 {
  1768  		for _, e := range m.Classes {
  1769  			l = e.Size()
  1770  			n += 1 + l + sovGenesis(uint64(l))
  1771  		}
  1772  	}
  1773  	if len(m.NextTokenIds) > 0 {
  1774  		for _, e := range m.NextTokenIds {
  1775  			l = e.Size()
  1776  			n += 1 + l + sovGenesis(uint64(l))
  1777  		}
  1778  	}
  1779  	if len(m.Balances) > 0 {
  1780  		for _, e := range m.Balances {
  1781  			l = e.Size()
  1782  			n += 1 + l + sovGenesis(uint64(l))
  1783  		}
  1784  	}
  1785  	if len(m.Nfts) > 0 {
  1786  		for _, e := range m.Nfts {
  1787  			l = e.Size()
  1788  			n += 1 + l + sovGenesis(uint64(l))
  1789  		}
  1790  	}
  1791  	if len(m.Parents) > 0 {
  1792  		for _, e := range m.Parents {
  1793  			l = e.Size()
  1794  			n += 1 + l + sovGenesis(uint64(l))
  1795  		}
  1796  	}
  1797  	if len(m.Grants) > 0 {
  1798  		for _, e := range m.Grants {
  1799  			l = e.Size()
  1800  			n += 1 + l + sovGenesis(uint64(l))
  1801  		}
  1802  	}
  1803  	if len(m.Authorizations) > 0 {
  1804  		for _, e := range m.Authorizations {
  1805  			l = e.Size()
  1806  			n += 1 + l + sovGenesis(uint64(l))
  1807  		}
  1808  	}
  1809  	if len(m.Supplies) > 0 {
  1810  		for _, e := range m.Supplies {
  1811  			l = e.Size()
  1812  			n += 1 + l + sovGenesis(uint64(l))
  1813  		}
  1814  	}
  1815  	if len(m.Burnts) > 0 {
  1816  		for _, e := range m.Burnts {
  1817  			l = e.Size()
  1818  			n += 1 + l + sovGenesis(uint64(l))
  1819  		}
  1820  	}
  1821  	return n
  1822  }
  1823  
  1824  func (m *ContractBalances) Size() (n int) {
  1825  	if m == nil {
  1826  		return 0
  1827  	}
  1828  	var l int
  1829  	_ = l
  1830  	l = len(m.ContractId)
  1831  	if l > 0 {
  1832  		n += 1 + l + sovGenesis(uint64(l))
  1833  	}
  1834  	if len(m.Balances) > 0 {
  1835  		for _, e := range m.Balances {
  1836  			l = e.Size()
  1837  			n += 1 + l + sovGenesis(uint64(l))
  1838  		}
  1839  	}
  1840  	return n
  1841  }
  1842  
  1843  func (m *ContractStatistics) Size() (n int) {
  1844  	if m == nil {
  1845  		return 0
  1846  	}
  1847  	var l int
  1848  	_ = l
  1849  	l = len(m.ContractId)
  1850  	if l > 0 {
  1851  		n += 1 + l + sovGenesis(uint64(l))
  1852  	}
  1853  	if len(m.Statistics) > 0 {
  1854  		for _, e := range m.Statistics {
  1855  			l = e.Size()
  1856  			n += 1 + l + sovGenesis(uint64(l))
  1857  		}
  1858  	}
  1859  	return n
  1860  }
  1861  
  1862  func (m *ClassStatistics) Size() (n int) {
  1863  	if m == nil {
  1864  		return 0
  1865  	}
  1866  	var l int
  1867  	_ = l
  1868  	l = len(m.ClassId)
  1869  	if l > 0 {
  1870  		n += 1 + l + sovGenesis(uint64(l))
  1871  	}
  1872  	l = m.Amount.Size()
  1873  	n += 1 + l + sovGenesis(uint64(l))
  1874  	return n
  1875  }
  1876  
  1877  func (m *Balance) Size() (n int) {
  1878  	if m == nil {
  1879  		return 0
  1880  	}
  1881  	var l int
  1882  	_ = l
  1883  	l = len(m.Address)
  1884  	if l > 0 {
  1885  		n += 1 + l + sovGenesis(uint64(l))
  1886  	}
  1887  	if len(m.Amount) > 0 {
  1888  		for _, e := range m.Amount {
  1889  			l = e.Size()
  1890  			n += 1 + l + sovGenesis(uint64(l))
  1891  		}
  1892  	}
  1893  	return n
  1894  }
  1895  
  1896  func (m *ContractClasses) Size() (n int) {
  1897  	if m == nil {
  1898  		return 0
  1899  	}
  1900  	var l int
  1901  	_ = l
  1902  	l = len(m.ContractId)
  1903  	if l > 0 {
  1904  		n += 1 + l + sovGenesis(uint64(l))
  1905  	}
  1906  	if len(m.Classes) > 0 {
  1907  		for _, e := range m.Classes {
  1908  			l = e.Size()
  1909  			n += 1 + l + sovGenesis(uint64(l))
  1910  		}
  1911  	}
  1912  	return n
  1913  }
  1914  
  1915  func (m *ContractNFTs) Size() (n int) {
  1916  	if m == nil {
  1917  		return 0
  1918  	}
  1919  	var l int
  1920  	_ = l
  1921  	l = len(m.ContractId)
  1922  	if l > 0 {
  1923  		n += 1 + l + sovGenesis(uint64(l))
  1924  	}
  1925  	if len(m.Nfts) > 0 {
  1926  		for _, e := range m.Nfts {
  1927  			l = e.Size()
  1928  			n += 1 + l + sovGenesis(uint64(l))
  1929  		}
  1930  	}
  1931  	return n
  1932  }
  1933  
  1934  func (m *ContractAuthorizations) Size() (n int) {
  1935  	if m == nil {
  1936  		return 0
  1937  	}
  1938  	var l int
  1939  	_ = l
  1940  	l = len(m.ContractId)
  1941  	if l > 0 {
  1942  		n += 1 + l + sovGenesis(uint64(l))
  1943  	}
  1944  	if len(m.Authorizations) > 0 {
  1945  		for _, e := range m.Authorizations {
  1946  			l = e.Size()
  1947  			n += 1 + l + sovGenesis(uint64(l))
  1948  		}
  1949  	}
  1950  	return n
  1951  }
  1952  
  1953  func (m *ContractGrants) Size() (n int) {
  1954  	if m == nil {
  1955  		return 0
  1956  	}
  1957  	var l int
  1958  	_ = l
  1959  	l = len(m.ContractId)
  1960  	if l > 0 {
  1961  		n += 1 + l + sovGenesis(uint64(l))
  1962  	}
  1963  	if len(m.Grants) > 0 {
  1964  		for _, e := range m.Grants {
  1965  			l = e.Size()
  1966  			n += 1 + l + sovGenesis(uint64(l))
  1967  		}
  1968  	}
  1969  	return n
  1970  }
  1971  
  1972  func (m *NextClassIDs) Size() (n int) {
  1973  	if m == nil {
  1974  		return 0
  1975  	}
  1976  	var l int
  1977  	_ = l
  1978  	l = len(m.ContractId)
  1979  	if l > 0 {
  1980  		n += 1 + l + sovGenesis(uint64(l))
  1981  	}
  1982  	l = m.Fungible.Size()
  1983  	n += 1 + l + sovGenesis(uint64(l))
  1984  	l = m.NonFungible.Size()
  1985  	n += 1 + l + sovGenesis(uint64(l))
  1986  	return n
  1987  }
  1988  
  1989  func (m *ContractNextTokenIDs) Size() (n int) {
  1990  	if m == nil {
  1991  		return 0
  1992  	}
  1993  	var l int
  1994  	_ = l
  1995  	l = len(m.ContractId)
  1996  	if l > 0 {
  1997  		n += 1 + l + sovGenesis(uint64(l))
  1998  	}
  1999  	if len(m.TokenIds) > 0 {
  2000  		for _, e := range m.TokenIds {
  2001  			l = e.Size()
  2002  			n += 1 + l + sovGenesis(uint64(l))
  2003  		}
  2004  	}
  2005  	return n
  2006  }
  2007  
  2008  func (m *NextTokenID) Size() (n int) {
  2009  	if m == nil {
  2010  		return 0
  2011  	}
  2012  	var l int
  2013  	_ = l
  2014  	l = len(m.ClassId)
  2015  	if l > 0 {
  2016  		n += 1 + l + sovGenesis(uint64(l))
  2017  	}
  2018  	l = m.Id.Size()
  2019  	n += 1 + l + sovGenesis(uint64(l))
  2020  	return n
  2021  }
  2022  
  2023  func (m *ContractTokenRelations) Size() (n int) {
  2024  	if m == nil {
  2025  		return 0
  2026  	}
  2027  	var l int
  2028  	_ = l
  2029  	l = len(m.ContractId)
  2030  	if l > 0 {
  2031  		n += 1 + l + sovGenesis(uint64(l))
  2032  	}
  2033  	if len(m.Relations) > 0 {
  2034  		for _, e := range m.Relations {
  2035  			l = e.Size()
  2036  			n += 1 + l + sovGenesis(uint64(l))
  2037  		}
  2038  	}
  2039  	return n
  2040  }
  2041  
  2042  func (m *TokenRelation) Size() (n int) {
  2043  	if m == nil {
  2044  		return 0
  2045  	}
  2046  	var l int
  2047  	_ = l
  2048  	l = len(m.Self)
  2049  	if l > 0 {
  2050  		n += 1 + l + sovGenesis(uint64(l))
  2051  	}
  2052  	l = len(m.Other)
  2053  	if l > 0 {
  2054  		n += 1 + l + sovGenesis(uint64(l))
  2055  	}
  2056  	return n
  2057  }
  2058  
  2059  func sovGenesis(x uint64) (n int) {
  2060  	return (math_bits.Len64(x|1) + 6) / 7
  2061  }
  2062  func sozGenesis(x uint64) (n int) {
  2063  	return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2064  }
  2065  func (m *GenesisState) Unmarshal(dAtA []byte) error {
  2066  	l := len(dAtA)
  2067  	iNdEx := 0
  2068  	for iNdEx < l {
  2069  		preIndex := iNdEx
  2070  		var wire uint64
  2071  		for shift := uint(0); ; shift += 7 {
  2072  			if shift >= 64 {
  2073  				return ErrIntOverflowGenesis
  2074  			}
  2075  			if iNdEx >= l {
  2076  				return io.ErrUnexpectedEOF
  2077  			}
  2078  			b := dAtA[iNdEx]
  2079  			iNdEx++
  2080  			wire |= uint64(b&0x7F) << shift
  2081  			if b < 0x80 {
  2082  				break
  2083  			}
  2084  		}
  2085  		fieldNum := int32(wire >> 3)
  2086  		wireType := int(wire & 0x7)
  2087  		if wireType == 4 {
  2088  			return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
  2089  		}
  2090  		if fieldNum <= 0 {
  2091  			return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
  2092  		}
  2093  		switch fieldNum {
  2094  		case 1:
  2095  			if wireType != 2 {
  2096  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  2097  			}
  2098  			var msglen int
  2099  			for shift := uint(0); ; shift += 7 {
  2100  				if shift >= 64 {
  2101  					return ErrIntOverflowGenesis
  2102  				}
  2103  				if iNdEx >= l {
  2104  					return io.ErrUnexpectedEOF
  2105  				}
  2106  				b := dAtA[iNdEx]
  2107  				iNdEx++
  2108  				msglen |= int(b&0x7F) << shift
  2109  				if b < 0x80 {
  2110  					break
  2111  				}
  2112  			}
  2113  			if msglen < 0 {
  2114  				return ErrInvalidLengthGenesis
  2115  			}
  2116  			postIndex := iNdEx + msglen
  2117  			if postIndex < 0 {
  2118  				return ErrInvalidLengthGenesis
  2119  			}
  2120  			if postIndex > l {
  2121  				return io.ErrUnexpectedEOF
  2122  			}
  2123  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2124  				return err
  2125  			}
  2126  			iNdEx = postIndex
  2127  		case 2:
  2128  			if wireType != 2 {
  2129  				return fmt.Errorf("proto: wrong wireType = %d for field Contracts", wireType)
  2130  			}
  2131  			var msglen int
  2132  			for shift := uint(0); ; shift += 7 {
  2133  				if shift >= 64 {
  2134  					return ErrIntOverflowGenesis
  2135  				}
  2136  				if iNdEx >= l {
  2137  					return io.ErrUnexpectedEOF
  2138  				}
  2139  				b := dAtA[iNdEx]
  2140  				iNdEx++
  2141  				msglen |= int(b&0x7F) << shift
  2142  				if b < 0x80 {
  2143  					break
  2144  				}
  2145  			}
  2146  			if msglen < 0 {
  2147  				return ErrInvalidLengthGenesis
  2148  			}
  2149  			postIndex := iNdEx + msglen
  2150  			if postIndex < 0 {
  2151  				return ErrInvalidLengthGenesis
  2152  			}
  2153  			if postIndex > l {
  2154  				return io.ErrUnexpectedEOF
  2155  			}
  2156  			m.Contracts = append(m.Contracts, Contract{})
  2157  			if err := m.Contracts[len(m.Contracts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2158  				return err
  2159  			}
  2160  			iNdEx = postIndex
  2161  		case 3:
  2162  			if wireType != 2 {
  2163  				return fmt.Errorf("proto: wrong wireType = %d for field NextClassIds", wireType)
  2164  			}
  2165  			var msglen int
  2166  			for shift := uint(0); ; shift += 7 {
  2167  				if shift >= 64 {
  2168  					return ErrIntOverflowGenesis
  2169  				}
  2170  				if iNdEx >= l {
  2171  					return io.ErrUnexpectedEOF
  2172  				}
  2173  				b := dAtA[iNdEx]
  2174  				iNdEx++
  2175  				msglen |= int(b&0x7F) << shift
  2176  				if b < 0x80 {
  2177  					break
  2178  				}
  2179  			}
  2180  			if msglen < 0 {
  2181  				return ErrInvalidLengthGenesis
  2182  			}
  2183  			postIndex := iNdEx + msglen
  2184  			if postIndex < 0 {
  2185  				return ErrInvalidLengthGenesis
  2186  			}
  2187  			if postIndex > l {
  2188  				return io.ErrUnexpectedEOF
  2189  			}
  2190  			m.NextClassIds = append(m.NextClassIds, NextClassIDs{})
  2191  			if err := m.NextClassIds[len(m.NextClassIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2192  				return err
  2193  			}
  2194  			iNdEx = postIndex
  2195  		case 4:
  2196  			if wireType != 2 {
  2197  				return fmt.Errorf("proto: wrong wireType = %d for field Classes", wireType)
  2198  			}
  2199  			var msglen int
  2200  			for shift := uint(0); ; shift += 7 {
  2201  				if shift >= 64 {
  2202  					return ErrIntOverflowGenesis
  2203  				}
  2204  				if iNdEx >= l {
  2205  					return io.ErrUnexpectedEOF
  2206  				}
  2207  				b := dAtA[iNdEx]
  2208  				iNdEx++
  2209  				msglen |= int(b&0x7F) << shift
  2210  				if b < 0x80 {
  2211  					break
  2212  				}
  2213  			}
  2214  			if msglen < 0 {
  2215  				return ErrInvalidLengthGenesis
  2216  			}
  2217  			postIndex := iNdEx + msglen
  2218  			if postIndex < 0 {
  2219  				return ErrInvalidLengthGenesis
  2220  			}
  2221  			if postIndex > l {
  2222  				return io.ErrUnexpectedEOF
  2223  			}
  2224  			m.Classes = append(m.Classes, ContractClasses{})
  2225  			if err := m.Classes[len(m.Classes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2226  				return err
  2227  			}
  2228  			iNdEx = postIndex
  2229  		case 5:
  2230  			if wireType != 2 {
  2231  				return fmt.Errorf("proto: wrong wireType = %d for field NextTokenIds", wireType)
  2232  			}
  2233  			var msglen int
  2234  			for shift := uint(0); ; shift += 7 {
  2235  				if shift >= 64 {
  2236  					return ErrIntOverflowGenesis
  2237  				}
  2238  				if iNdEx >= l {
  2239  					return io.ErrUnexpectedEOF
  2240  				}
  2241  				b := dAtA[iNdEx]
  2242  				iNdEx++
  2243  				msglen |= int(b&0x7F) << shift
  2244  				if b < 0x80 {
  2245  					break
  2246  				}
  2247  			}
  2248  			if msglen < 0 {
  2249  				return ErrInvalidLengthGenesis
  2250  			}
  2251  			postIndex := iNdEx + msglen
  2252  			if postIndex < 0 {
  2253  				return ErrInvalidLengthGenesis
  2254  			}
  2255  			if postIndex > l {
  2256  				return io.ErrUnexpectedEOF
  2257  			}
  2258  			m.NextTokenIds = append(m.NextTokenIds, ContractNextTokenIDs{})
  2259  			if err := m.NextTokenIds[len(m.NextTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2260  				return err
  2261  			}
  2262  			iNdEx = postIndex
  2263  		case 6:
  2264  			if wireType != 2 {
  2265  				return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType)
  2266  			}
  2267  			var msglen int
  2268  			for shift := uint(0); ; shift += 7 {
  2269  				if shift >= 64 {
  2270  					return ErrIntOverflowGenesis
  2271  				}
  2272  				if iNdEx >= l {
  2273  					return io.ErrUnexpectedEOF
  2274  				}
  2275  				b := dAtA[iNdEx]
  2276  				iNdEx++
  2277  				msglen |= int(b&0x7F) << shift
  2278  				if b < 0x80 {
  2279  					break
  2280  				}
  2281  			}
  2282  			if msglen < 0 {
  2283  				return ErrInvalidLengthGenesis
  2284  			}
  2285  			postIndex := iNdEx + msglen
  2286  			if postIndex < 0 {
  2287  				return ErrInvalidLengthGenesis
  2288  			}
  2289  			if postIndex > l {
  2290  				return io.ErrUnexpectedEOF
  2291  			}
  2292  			m.Balances = append(m.Balances, ContractBalances{})
  2293  			if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2294  				return err
  2295  			}
  2296  			iNdEx = postIndex
  2297  		case 7:
  2298  			if wireType != 2 {
  2299  				return fmt.Errorf("proto: wrong wireType = %d for field Nfts", wireType)
  2300  			}
  2301  			var msglen int
  2302  			for shift := uint(0); ; shift += 7 {
  2303  				if shift >= 64 {
  2304  					return ErrIntOverflowGenesis
  2305  				}
  2306  				if iNdEx >= l {
  2307  					return io.ErrUnexpectedEOF
  2308  				}
  2309  				b := dAtA[iNdEx]
  2310  				iNdEx++
  2311  				msglen |= int(b&0x7F) << shift
  2312  				if b < 0x80 {
  2313  					break
  2314  				}
  2315  			}
  2316  			if msglen < 0 {
  2317  				return ErrInvalidLengthGenesis
  2318  			}
  2319  			postIndex := iNdEx + msglen
  2320  			if postIndex < 0 {
  2321  				return ErrInvalidLengthGenesis
  2322  			}
  2323  			if postIndex > l {
  2324  				return io.ErrUnexpectedEOF
  2325  			}
  2326  			m.Nfts = append(m.Nfts, ContractNFTs{})
  2327  			if err := m.Nfts[len(m.Nfts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2328  				return err
  2329  			}
  2330  			iNdEx = postIndex
  2331  		case 8:
  2332  			if wireType != 2 {
  2333  				return fmt.Errorf("proto: wrong wireType = %d for field Parents", wireType)
  2334  			}
  2335  			var msglen int
  2336  			for shift := uint(0); ; shift += 7 {
  2337  				if shift >= 64 {
  2338  					return ErrIntOverflowGenesis
  2339  				}
  2340  				if iNdEx >= l {
  2341  					return io.ErrUnexpectedEOF
  2342  				}
  2343  				b := dAtA[iNdEx]
  2344  				iNdEx++
  2345  				msglen |= int(b&0x7F) << shift
  2346  				if b < 0x80 {
  2347  					break
  2348  				}
  2349  			}
  2350  			if msglen < 0 {
  2351  				return ErrInvalidLengthGenesis
  2352  			}
  2353  			postIndex := iNdEx + msglen
  2354  			if postIndex < 0 {
  2355  				return ErrInvalidLengthGenesis
  2356  			}
  2357  			if postIndex > l {
  2358  				return io.ErrUnexpectedEOF
  2359  			}
  2360  			m.Parents = append(m.Parents, ContractTokenRelations{})
  2361  			if err := m.Parents[len(m.Parents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2362  				return err
  2363  			}
  2364  			iNdEx = postIndex
  2365  		case 9:
  2366  			if wireType != 2 {
  2367  				return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType)
  2368  			}
  2369  			var msglen int
  2370  			for shift := uint(0); ; shift += 7 {
  2371  				if shift >= 64 {
  2372  					return ErrIntOverflowGenesis
  2373  				}
  2374  				if iNdEx >= l {
  2375  					return io.ErrUnexpectedEOF
  2376  				}
  2377  				b := dAtA[iNdEx]
  2378  				iNdEx++
  2379  				msglen |= int(b&0x7F) << shift
  2380  				if b < 0x80 {
  2381  					break
  2382  				}
  2383  			}
  2384  			if msglen < 0 {
  2385  				return ErrInvalidLengthGenesis
  2386  			}
  2387  			postIndex := iNdEx + msglen
  2388  			if postIndex < 0 {
  2389  				return ErrInvalidLengthGenesis
  2390  			}
  2391  			if postIndex > l {
  2392  				return io.ErrUnexpectedEOF
  2393  			}
  2394  			m.Grants = append(m.Grants, ContractGrants{})
  2395  			if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2396  				return err
  2397  			}
  2398  			iNdEx = postIndex
  2399  		case 10:
  2400  			if wireType != 2 {
  2401  				return fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType)
  2402  			}
  2403  			var msglen int
  2404  			for shift := uint(0); ; shift += 7 {
  2405  				if shift >= 64 {
  2406  					return ErrIntOverflowGenesis
  2407  				}
  2408  				if iNdEx >= l {
  2409  					return io.ErrUnexpectedEOF
  2410  				}
  2411  				b := dAtA[iNdEx]
  2412  				iNdEx++
  2413  				msglen |= int(b&0x7F) << shift
  2414  				if b < 0x80 {
  2415  					break
  2416  				}
  2417  			}
  2418  			if msglen < 0 {
  2419  				return ErrInvalidLengthGenesis
  2420  			}
  2421  			postIndex := iNdEx + msglen
  2422  			if postIndex < 0 {
  2423  				return ErrInvalidLengthGenesis
  2424  			}
  2425  			if postIndex > l {
  2426  				return io.ErrUnexpectedEOF
  2427  			}
  2428  			m.Authorizations = append(m.Authorizations, ContractAuthorizations{})
  2429  			if err := m.Authorizations[len(m.Authorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2430  				return err
  2431  			}
  2432  			iNdEx = postIndex
  2433  		case 11:
  2434  			if wireType != 2 {
  2435  				return fmt.Errorf("proto: wrong wireType = %d for field Supplies", wireType)
  2436  			}
  2437  			var msglen int
  2438  			for shift := uint(0); ; shift += 7 {
  2439  				if shift >= 64 {
  2440  					return ErrIntOverflowGenesis
  2441  				}
  2442  				if iNdEx >= l {
  2443  					return io.ErrUnexpectedEOF
  2444  				}
  2445  				b := dAtA[iNdEx]
  2446  				iNdEx++
  2447  				msglen |= int(b&0x7F) << shift
  2448  				if b < 0x80 {
  2449  					break
  2450  				}
  2451  			}
  2452  			if msglen < 0 {
  2453  				return ErrInvalidLengthGenesis
  2454  			}
  2455  			postIndex := iNdEx + msglen
  2456  			if postIndex < 0 {
  2457  				return ErrInvalidLengthGenesis
  2458  			}
  2459  			if postIndex > l {
  2460  				return io.ErrUnexpectedEOF
  2461  			}
  2462  			m.Supplies = append(m.Supplies, ContractStatistics{})
  2463  			if err := m.Supplies[len(m.Supplies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2464  				return err
  2465  			}
  2466  			iNdEx = postIndex
  2467  		case 12:
  2468  			if wireType != 2 {
  2469  				return fmt.Errorf("proto: wrong wireType = %d for field Burnts", wireType)
  2470  			}
  2471  			var msglen int
  2472  			for shift := uint(0); ; shift += 7 {
  2473  				if shift >= 64 {
  2474  					return ErrIntOverflowGenesis
  2475  				}
  2476  				if iNdEx >= l {
  2477  					return io.ErrUnexpectedEOF
  2478  				}
  2479  				b := dAtA[iNdEx]
  2480  				iNdEx++
  2481  				msglen |= int(b&0x7F) << shift
  2482  				if b < 0x80 {
  2483  					break
  2484  				}
  2485  			}
  2486  			if msglen < 0 {
  2487  				return ErrInvalidLengthGenesis
  2488  			}
  2489  			postIndex := iNdEx + msglen
  2490  			if postIndex < 0 {
  2491  				return ErrInvalidLengthGenesis
  2492  			}
  2493  			if postIndex > l {
  2494  				return io.ErrUnexpectedEOF
  2495  			}
  2496  			m.Burnts = append(m.Burnts, ContractStatistics{})
  2497  			if err := m.Burnts[len(m.Burnts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2498  				return err
  2499  			}
  2500  			iNdEx = postIndex
  2501  		default:
  2502  			iNdEx = preIndex
  2503  			skippy, err := skipGenesis(dAtA[iNdEx:])
  2504  			if err != nil {
  2505  				return err
  2506  			}
  2507  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2508  				return ErrInvalidLengthGenesis
  2509  			}
  2510  			if (iNdEx + skippy) > l {
  2511  				return io.ErrUnexpectedEOF
  2512  			}
  2513  			iNdEx += skippy
  2514  		}
  2515  	}
  2516  
  2517  	if iNdEx > l {
  2518  		return io.ErrUnexpectedEOF
  2519  	}
  2520  	return nil
  2521  }
  2522  func (m *ContractBalances) Unmarshal(dAtA []byte) error {
  2523  	l := len(dAtA)
  2524  	iNdEx := 0
  2525  	for iNdEx < l {
  2526  		preIndex := iNdEx
  2527  		var wire uint64
  2528  		for shift := uint(0); ; shift += 7 {
  2529  			if shift >= 64 {
  2530  				return ErrIntOverflowGenesis
  2531  			}
  2532  			if iNdEx >= l {
  2533  				return io.ErrUnexpectedEOF
  2534  			}
  2535  			b := dAtA[iNdEx]
  2536  			iNdEx++
  2537  			wire |= uint64(b&0x7F) << shift
  2538  			if b < 0x80 {
  2539  				break
  2540  			}
  2541  		}
  2542  		fieldNum := int32(wire >> 3)
  2543  		wireType := int(wire & 0x7)
  2544  		if wireType == 4 {
  2545  			return fmt.Errorf("proto: ContractBalances: wiretype end group for non-group")
  2546  		}
  2547  		if fieldNum <= 0 {
  2548  			return fmt.Errorf("proto: ContractBalances: illegal tag %d (wire type %d)", fieldNum, wire)
  2549  		}
  2550  		switch fieldNum {
  2551  		case 1:
  2552  			if wireType != 2 {
  2553  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  2554  			}
  2555  			var stringLen uint64
  2556  			for shift := uint(0); ; shift += 7 {
  2557  				if shift >= 64 {
  2558  					return ErrIntOverflowGenesis
  2559  				}
  2560  				if iNdEx >= l {
  2561  					return io.ErrUnexpectedEOF
  2562  				}
  2563  				b := dAtA[iNdEx]
  2564  				iNdEx++
  2565  				stringLen |= uint64(b&0x7F) << shift
  2566  				if b < 0x80 {
  2567  					break
  2568  				}
  2569  			}
  2570  			intStringLen := int(stringLen)
  2571  			if intStringLen < 0 {
  2572  				return ErrInvalidLengthGenesis
  2573  			}
  2574  			postIndex := iNdEx + intStringLen
  2575  			if postIndex < 0 {
  2576  				return ErrInvalidLengthGenesis
  2577  			}
  2578  			if postIndex > l {
  2579  				return io.ErrUnexpectedEOF
  2580  			}
  2581  			m.ContractId = string(dAtA[iNdEx:postIndex])
  2582  			iNdEx = postIndex
  2583  		case 2:
  2584  			if wireType != 2 {
  2585  				return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType)
  2586  			}
  2587  			var msglen int
  2588  			for shift := uint(0); ; shift += 7 {
  2589  				if shift >= 64 {
  2590  					return ErrIntOverflowGenesis
  2591  				}
  2592  				if iNdEx >= l {
  2593  					return io.ErrUnexpectedEOF
  2594  				}
  2595  				b := dAtA[iNdEx]
  2596  				iNdEx++
  2597  				msglen |= int(b&0x7F) << shift
  2598  				if b < 0x80 {
  2599  					break
  2600  				}
  2601  			}
  2602  			if msglen < 0 {
  2603  				return ErrInvalidLengthGenesis
  2604  			}
  2605  			postIndex := iNdEx + msglen
  2606  			if postIndex < 0 {
  2607  				return ErrInvalidLengthGenesis
  2608  			}
  2609  			if postIndex > l {
  2610  				return io.ErrUnexpectedEOF
  2611  			}
  2612  			m.Balances = append(m.Balances, Balance{})
  2613  			if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2614  				return err
  2615  			}
  2616  			iNdEx = postIndex
  2617  		default:
  2618  			iNdEx = preIndex
  2619  			skippy, err := skipGenesis(dAtA[iNdEx:])
  2620  			if err != nil {
  2621  				return err
  2622  			}
  2623  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2624  				return ErrInvalidLengthGenesis
  2625  			}
  2626  			if (iNdEx + skippy) > l {
  2627  				return io.ErrUnexpectedEOF
  2628  			}
  2629  			iNdEx += skippy
  2630  		}
  2631  	}
  2632  
  2633  	if iNdEx > l {
  2634  		return io.ErrUnexpectedEOF
  2635  	}
  2636  	return nil
  2637  }
  2638  func (m *ContractStatistics) Unmarshal(dAtA []byte) error {
  2639  	l := len(dAtA)
  2640  	iNdEx := 0
  2641  	for iNdEx < l {
  2642  		preIndex := iNdEx
  2643  		var wire uint64
  2644  		for shift := uint(0); ; shift += 7 {
  2645  			if shift >= 64 {
  2646  				return ErrIntOverflowGenesis
  2647  			}
  2648  			if iNdEx >= l {
  2649  				return io.ErrUnexpectedEOF
  2650  			}
  2651  			b := dAtA[iNdEx]
  2652  			iNdEx++
  2653  			wire |= uint64(b&0x7F) << shift
  2654  			if b < 0x80 {
  2655  				break
  2656  			}
  2657  		}
  2658  		fieldNum := int32(wire >> 3)
  2659  		wireType := int(wire & 0x7)
  2660  		if wireType == 4 {
  2661  			return fmt.Errorf("proto: ContractStatistics: wiretype end group for non-group")
  2662  		}
  2663  		if fieldNum <= 0 {
  2664  			return fmt.Errorf("proto: ContractStatistics: illegal tag %d (wire type %d)", fieldNum, wire)
  2665  		}
  2666  		switch fieldNum {
  2667  		case 1:
  2668  			if wireType != 2 {
  2669  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  2670  			}
  2671  			var stringLen uint64
  2672  			for shift := uint(0); ; shift += 7 {
  2673  				if shift >= 64 {
  2674  					return ErrIntOverflowGenesis
  2675  				}
  2676  				if iNdEx >= l {
  2677  					return io.ErrUnexpectedEOF
  2678  				}
  2679  				b := dAtA[iNdEx]
  2680  				iNdEx++
  2681  				stringLen |= uint64(b&0x7F) << shift
  2682  				if b < 0x80 {
  2683  					break
  2684  				}
  2685  			}
  2686  			intStringLen := int(stringLen)
  2687  			if intStringLen < 0 {
  2688  				return ErrInvalidLengthGenesis
  2689  			}
  2690  			postIndex := iNdEx + intStringLen
  2691  			if postIndex < 0 {
  2692  				return ErrInvalidLengthGenesis
  2693  			}
  2694  			if postIndex > l {
  2695  				return io.ErrUnexpectedEOF
  2696  			}
  2697  			m.ContractId = string(dAtA[iNdEx:postIndex])
  2698  			iNdEx = postIndex
  2699  		case 2:
  2700  			if wireType != 2 {
  2701  				return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType)
  2702  			}
  2703  			var msglen int
  2704  			for shift := uint(0); ; shift += 7 {
  2705  				if shift >= 64 {
  2706  					return ErrIntOverflowGenesis
  2707  				}
  2708  				if iNdEx >= l {
  2709  					return io.ErrUnexpectedEOF
  2710  				}
  2711  				b := dAtA[iNdEx]
  2712  				iNdEx++
  2713  				msglen |= int(b&0x7F) << shift
  2714  				if b < 0x80 {
  2715  					break
  2716  				}
  2717  			}
  2718  			if msglen < 0 {
  2719  				return ErrInvalidLengthGenesis
  2720  			}
  2721  			postIndex := iNdEx + msglen
  2722  			if postIndex < 0 {
  2723  				return ErrInvalidLengthGenesis
  2724  			}
  2725  			if postIndex > l {
  2726  				return io.ErrUnexpectedEOF
  2727  			}
  2728  			m.Statistics = append(m.Statistics, ClassStatistics{})
  2729  			if err := m.Statistics[len(m.Statistics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2730  				return err
  2731  			}
  2732  			iNdEx = postIndex
  2733  		default:
  2734  			iNdEx = preIndex
  2735  			skippy, err := skipGenesis(dAtA[iNdEx:])
  2736  			if err != nil {
  2737  				return err
  2738  			}
  2739  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2740  				return ErrInvalidLengthGenesis
  2741  			}
  2742  			if (iNdEx + skippy) > l {
  2743  				return io.ErrUnexpectedEOF
  2744  			}
  2745  			iNdEx += skippy
  2746  		}
  2747  	}
  2748  
  2749  	if iNdEx > l {
  2750  		return io.ErrUnexpectedEOF
  2751  	}
  2752  	return nil
  2753  }
  2754  func (m *ClassStatistics) Unmarshal(dAtA []byte) error {
  2755  	l := len(dAtA)
  2756  	iNdEx := 0
  2757  	for iNdEx < l {
  2758  		preIndex := iNdEx
  2759  		var wire uint64
  2760  		for shift := uint(0); ; shift += 7 {
  2761  			if shift >= 64 {
  2762  				return ErrIntOverflowGenesis
  2763  			}
  2764  			if iNdEx >= l {
  2765  				return io.ErrUnexpectedEOF
  2766  			}
  2767  			b := dAtA[iNdEx]
  2768  			iNdEx++
  2769  			wire |= uint64(b&0x7F) << shift
  2770  			if b < 0x80 {
  2771  				break
  2772  			}
  2773  		}
  2774  		fieldNum := int32(wire >> 3)
  2775  		wireType := int(wire & 0x7)
  2776  		if wireType == 4 {
  2777  			return fmt.Errorf("proto: ClassStatistics: wiretype end group for non-group")
  2778  		}
  2779  		if fieldNum <= 0 {
  2780  			return fmt.Errorf("proto: ClassStatistics: illegal tag %d (wire type %d)", fieldNum, wire)
  2781  		}
  2782  		switch fieldNum {
  2783  		case 1:
  2784  			if wireType != 2 {
  2785  				return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType)
  2786  			}
  2787  			var stringLen uint64
  2788  			for shift := uint(0); ; shift += 7 {
  2789  				if shift >= 64 {
  2790  					return ErrIntOverflowGenesis
  2791  				}
  2792  				if iNdEx >= l {
  2793  					return io.ErrUnexpectedEOF
  2794  				}
  2795  				b := dAtA[iNdEx]
  2796  				iNdEx++
  2797  				stringLen |= uint64(b&0x7F) << shift
  2798  				if b < 0x80 {
  2799  					break
  2800  				}
  2801  			}
  2802  			intStringLen := int(stringLen)
  2803  			if intStringLen < 0 {
  2804  				return ErrInvalidLengthGenesis
  2805  			}
  2806  			postIndex := iNdEx + intStringLen
  2807  			if postIndex < 0 {
  2808  				return ErrInvalidLengthGenesis
  2809  			}
  2810  			if postIndex > l {
  2811  				return io.ErrUnexpectedEOF
  2812  			}
  2813  			m.ClassId = string(dAtA[iNdEx:postIndex])
  2814  			iNdEx = postIndex
  2815  		case 2:
  2816  			if wireType != 2 {
  2817  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  2818  			}
  2819  			var stringLen uint64
  2820  			for shift := uint(0); ; shift += 7 {
  2821  				if shift >= 64 {
  2822  					return ErrIntOverflowGenesis
  2823  				}
  2824  				if iNdEx >= l {
  2825  					return io.ErrUnexpectedEOF
  2826  				}
  2827  				b := dAtA[iNdEx]
  2828  				iNdEx++
  2829  				stringLen |= uint64(b&0x7F) << shift
  2830  				if b < 0x80 {
  2831  					break
  2832  				}
  2833  			}
  2834  			intStringLen := int(stringLen)
  2835  			if intStringLen < 0 {
  2836  				return ErrInvalidLengthGenesis
  2837  			}
  2838  			postIndex := iNdEx + intStringLen
  2839  			if postIndex < 0 {
  2840  				return ErrInvalidLengthGenesis
  2841  			}
  2842  			if postIndex > l {
  2843  				return io.ErrUnexpectedEOF
  2844  			}
  2845  			if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2846  				return err
  2847  			}
  2848  			iNdEx = postIndex
  2849  		default:
  2850  			iNdEx = preIndex
  2851  			skippy, err := skipGenesis(dAtA[iNdEx:])
  2852  			if err != nil {
  2853  				return err
  2854  			}
  2855  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2856  				return ErrInvalidLengthGenesis
  2857  			}
  2858  			if (iNdEx + skippy) > l {
  2859  				return io.ErrUnexpectedEOF
  2860  			}
  2861  			iNdEx += skippy
  2862  		}
  2863  	}
  2864  
  2865  	if iNdEx > l {
  2866  		return io.ErrUnexpectedEOF
  2867  	}
  2868  	return nil
  2869  }
  2870  func (m *Balance) Unmarshal(dAtA []byte) error {
  2871  	l := len(dAtA)
  2872  	iNdEx := 0
  2873  	for iNdEx < l {
  2874  		preIndex := iNdEx
  2875  		var wire uint64
  2876  		for shift := uint(0); ; shift += 7 {
  2877  			if shift >= 64 {
  2878  				return ErrIntOverflowGenesis
  2879  			}
  2880  			if iNdEx >= l {
  2881  				return io.ErrUnexpectedEOF
  2882  			}
  2883  			b := dAtA[iNdEx]
  2884  			iNdEx++
  2885  			wire |= uint64(b&0x7F) << shift
  2886  			if b < 0x80 {
  2887  				break
  2888  			}
  2889  		}
  2890  		fieldNum := int32(wire >> 3)
  2891  		wireType := int(wire & 0x7)
  2892  		if wireType == 4 {
  2893  			return fmt.Errorf("proto: Balance: wiretype end group for non-group")
  2894  		}
  2895  		if fieldNum <= 0 {
  2896  			return fmt.Errorf("proto: Balance: illegal tag %d (wire type %d)", fieldNum, wire)
  2897  		}
  2898  		switch fieldNum {
  2899  		case 1:
  2900  			if wireType != 2 {
  2901  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  2902  			}
  2903  			var stringLen uint64
  2904  			for shift := uint(0); ; shift += 7 {
  2905  				if shift >= 64 {
  2906  					return ErrIntOverflowGenesis
  2907  				}
  2908  				if iNdEx >= l {
  2909  					return io.ErrUnexpectedEOF
  2910  				}
  2911  				b := dAtA[iNdEx]
  2912  				iNdEx++
  2913  				stringLen |= uint64(b&0x7F) << shift
  2914  				if b < 0x80 {
  2915  					break
  2916  				}
  2917  			}
  2918  			intStringLen := int(stringLen)
  2919  			if intStringLen < 0 {
  2920  				return ErrInvalidLengthGenesis
  2921  			}
  2922  			postIndex := iNdEx + intStringLen
  2923  			if postIndex < 0 {
  2924  				return ErrInvalidLengthGenesis
  2925  			}
  2926  			if postIndex > l {
  2927  				return io.ErrUnexpectedEOF
  2928  			}
  2929  			m.Address = string(dAtA[iNdEx:postIndex])
  2930  			iNdEx = postIndex
  2931  		case 2:
  2932  			if wireType != 2 {
  2933  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
  2934  			}
  2935  			var msglen int
  2936  			for shift := uint(0); ; shift += 7 {
  2937  				if shift >= 64 {
  2938  					return ErrIntOverflowGenesis
  2939  				}
  2940  				if iNdEx >= l {
  2941  					return io.ErrUnexpectedEOF
  2942  				}
  2943  				b := dAtA[iNdEx]
  2944  				iNdEx++
  2945  				msglen |= int(b&0x7F) << shift
  2946  				if b < 0x80 {
  2947  					break
  2948  				}
  2949  			}
  2950  			if msglen < 0 {
  2951  				return ErrInvalidLengthGenesis
  2952  			}
  2953  			postIndex := iNdEx + msglen
  2954  			if postIndex < 0 {
  2955  				return ErrInvalidLengthGenesis
  2956  			}
  2957  			if postIndex > l {
  2958  				return io.ErrUnexpectedEOF
  2959  			}
  2960  			m.Amount = append(m.Amount, Coin{})
  2961  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2962  				return err
  2963  			}
  2964  			iNdEx = postIndex
  2965  		default:
  2966  			iNdEx = preIndex
  2967  			skippy, err := skipGenesis(dAtA[iNdEx:])
  2968  			if err != nil {
  2969  				return err
  2970  			}
  2971  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2972  				return ErrInvalidLengthGenesis
  2973  			}
  2974  			if (iNdEx + skippy) > l {
  2975  				return io.ErrUnexpectedEOF
  2976  			}
  2977  			iNdEx += skippy
  2978  		}
  2979  	}
  2980  
  2981  	if iNdEx > l {
  2982  		return io.ErrUnexpectedEOF
  2983  	}
  2984  	return nil
  2985  }
  2986  func (m *ContractClasses) Unmarshal(dAtA []byte) error {
  2987  	l := len(dAtA)
  2988  	iNdEx := 0
  2989  	for iNdEx < l {
  2990  		preIndex := iNdEx
  2991  		var wire uint64
  2992  		for shift := uint(0); ; shift += 7 {
  2993  			if shift >= 64 {
  2994  				return ErrIntOverflowGenesis
  2995  			}
  2996  			if iNdEx >= l {
  2997  				return io.ErrUnexpectedEOF
  2998  			}
  2999  			b := dAtA[iNdEx]
  3000  			iNdEx++
  3001  			wire |= uint64(b&0x7F) << shift
  3002  			if b < 0x80 {
  3003  				break
  3004  			}
  3005  		}
  3006  		fieldNum := int32(wire >> 3)
  3007  		wireType := int(wire & 0x7)
  3008  		if wireType == 4 {
  3009  			return fmt.Errorf("proto: ContractClasses: wiretype end group for non-group")
  3010  		}
  3011  		if fieldNum <= 0 {
  3012  			return fmt.Errorf("proto: ContractClasses: illegal tag %d (wire type %d)", fieldNum, wire)
  3013  		}
  3014  		switch fieldNum {
  3015  		case 1:
  3016  			if wireType != 2 {
  3017  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  3018  			}
  3019  			var stringLen uint64
  3020  			for shift := uint(0); ; shift += 7 {
  3021  				if shift >= 64 {
  3022  					return ErrIntOverflowGenesis
  3023  				}
  3024  				if iNdEx >= l {
  3025  					return io.ErrUnexpectedEOF
  3026  				}
  3027  				b := dAtA[iNdEx]
  3028  				iNdEx++
  3029  				stringLen |= uint64(b&0x7F) << shift
  3030  				if b < 0x80 {
  3031  					break
  3032  				}
  3033  			}
  3034  			intStringLen := int(stringLen)
  3035  			if intStringLen < 0 {
  3036  				return ErrInvalidLengthGenesis
  3037  			}
  3038  			postIndex := iNdEx + intStringLen
  3039  			if postIndex < 0 {
  3040  				return ErrInvalidLengthGenesis
  3041  			}
  3042  			if postIndex > l {
  3043  				return io.ErrUnexpectedEOF
  3044  			}
  3045  			m.ContractId = string(dAtA[iNdEx:postIndex])
  3046  			iNdEx = postIndex
  3047  		case 2:
  3048  			if wireType != 2 {
  3049  				return fmt.Errorf("proto: wrong wireType = %d for field Classes", wireType)
  3050  			}
  3051  			var msglen int
  3052  			for shift := uint(0); ; shift += 7 {
  3053  				if shift >= 64 {
  3054  					return ErrIntOverflowGenesis
  3055  				}
  3056  				if iNdEx >= l {
  3057  					return io.ErrUnexpectedEOF
  3058  				}
  3059  				b := dAtA[iNdEx]
  3060  				iNdEx++
  3061  				msglen |= int(b&0x7F) << shift
  3062  				if b < 0x80 {
  3063  					break
  3064  				}
  3065  			}
  3066  			if msglen < 0 {
  3067  				return ErrInvalidLengthGenesis
  3068  			}
  3069  			postIndex := iNdEx + msglen
  3070  			if postIndex < 0 {
  3071  				return ErrInvalidLengthGenesis
  3072  			}
  3073  			if postIndex > l {
  3074  				return io.ErrUnexpectedEOF
  3075  			}
  3076  			m.Classes = append(m.Classes, types.Any{})
  3077  			if err := m.Classes[len(m.Classes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3078  				return err
  3079  			}
  3080  			iNdEx = postIndex
  3081  		default:
  3082  			iNdEx = preIndex
  3083  			skippy, err := skipGenesis(dAtA[iNdEx:])
  3084  			if err != nil {
  3085  				return err
  3086  			}
  3087  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3088  				return ErrInvalidLengthGenesis
  3089  			}
  3090  			if (iNdEx + skippy) > l {
  3091  				return io.ErrUnexpectedEOF
  3092  			}
  3093  			iNdEx += skippy
  3094  		}
  3095  	}
  3096  
  3097  	if iNdEx > l {
  3098  		return io.ErrUnexpectedEOF
  3099  	}
  3100  	return nil
  3101  }
  3102  func (m *ContractNFTs) Unmarshal(dAtA []byte) error {
  3103  	l := len(dAtA)
  3104  	iNdEx := 0
  3105  	for iNdEx < l {
  3106  		preIndex := iNdEx
  3107  		var wire uint64
  3108  		for shift := uint(0); ; shift += 7 {
  3109  			if shift >= 64 {
  3110  				return ErrIntOverflowGenesis
  3111  			}
  3112  			if iNdEx >= l {
  3113  				return io.ErrUnexpectedEOF
  3114  			}
  3115  			b := dAtA[iNdEx]
  3116  			iNdEx++
  3117  			wire |= uint64(b&0x7F) << shift
  3118  			if b < 0x80 {
  3119  				break
  3120  			}
  3121  		}
  3122  		fieldNum := int32(wire >> 3)
  3123  		wireType := int(wire & 0x7)
  3124  		if wireType == 4 {
  3125  			return fmt.Errorf("proto: ContractNFTs: wiretype end group for non-group")
  3126  		}
  3127  		if fieldNum <= 0 {
  3128  			return fmt.Errorf("proto: ContractNFTs: illegal tag %d (wire type %d)", fieldNum, wire)
  3129  		}
  3130  		switch fieldNum {
  3131  		case 1:
  3132  			if wireType != 2 {
  3133  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  3134  			}
  3135  			var stringLen uint64
  3136  			for shift := uint(0); ; shift += 7 {
  3137  				if shift >= 64 {
  3138  					return ErrIntOverflowGenesis
  3139  				}
  3140  				if iNdEx >= l {
  3141  					return io.ErrUnexpectedEOF
  3142  				}
  3143  				b := dAtA[iNdEx]
  3144  				iNdEx++
  3145  				stringLen |= uint64(b&0x7F) << shift
  3146  				if b < 0x80 {
  3147  					break
  3148  				}
  3149  			}
  3150  			intStringLen := int(stringLen)
  3151  			if intStringLen < 0 {
  3152  				return ErrInvalidLengthGenesis
  3153  			}
  3154  			postIndex := iNdEx + intStringLen
  3155  			if postIndex < 0 {
  3156  				return ErrInvalidLengthGenesis
  3157  			}
  3158  			if postIndex > l {
  3159  				return io.ErrUnexpectedEOF
  3160  			}
  3161  			m.ContractId = string(dAtA[iNdEx:postIndex])
  3162  			iNdEx = postIndex
  3163  		case 2:
  3164  			if wireType != 2 {
  3165  				return fmt.Errorf("proto: wrong wireType = %d for field Nfts", wireType)
  3166  			}
  3167  			var msglen int
  3168  			for shift := uint(0); ; shift += 7 {
  3169  				if shift >= 64 {
  3170  					return ErrIntOverflowGenesis
  3171  				}
  3172  				if iNdEx >= l {
  3173  					return io.ErrUnexpectedEOF
  3174  				}
  3175  				b := dAtA[iNdEx]
  3176  				iNdEx++
  3177  				msglen |= int(b&0x7F) << shift
  3178  				if b < 0x80 {
  3179  					break
  3180  				}
  3181  			}
  3182  			if msglen < 0 {
  3183  				return ErrInvalidLengthGenesis
  3184  			}
  3185  			postIndex := iNdEx + msglen
  3186  			if postIndex < 0 {
  3187  				return ErrInvalidLengthGenesis
  3188  			}
  3189  			if postIndex > l {
  3190  				return io.ErrUnexpectedEOF
  3191  			}
  3192  			m.Nfts = append(m.Nfts, NFT{})
  3193  			if err := m.Nfts[len(m.Nfts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3194  				return err
  3195  			}
  3196  			iNdEx = postIndex
  3197  		default:
  3198  			iNdEx = preIndex
  3199  			skippy, err := skipGenesis(dAtA[iNdEx:])
  3200  			if err != nil {
  3201  				return err
  3202  			}
  3203  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3204  				return ErrInvalidLengthGenesis
  3205  			}
  3206  			if (iNdEx + skippy) > l {
  3207  				return io.ErrUnexpectedEOF
  3208  			}
  3209  			iNdEx += skippy
  3210  		}
  3211  	}
  3212  
  3213  	if iNdEx > l {
  3214  		return io.ErrUnexpectedEOF
  3215  	}
  3216  	return nil
  3217  }
  3218  func (m *ContractAuthorizations) Unmarshal(dAtA []byte) error {
  3219  	l := len(dAtA)
  3220  	iNdEx := 0
  3221  	for iNdEx < l {
  3222  		preIndex := iNdEx
  3223  		var wire uint64
  3224  		for shift := uint(0); ; shift += 7 {
  3225  			if shift >= 64 {
  3226  				return ErrIntOverflowGenesis
  3227  			}
  3228  			if iNdEx >= l {
  3229  				return io.ErrUnexpectedEOF
  3230  			}
  3231  			b := dAtA[iNdEx]
  3232  			iNdEx++
  3233  			wire |= uint64(b&0x7F) << shift
  3234  			if b < 0x80 {
  3235  				break
  3236  			}
  3237  		}
  3238  		fieldNum := int32(wire >> 3)
  3239  		wireType := int(wire & 0x7)
  3240  		if wireType == 4 {
  3241  			return fmt.Errorf("proto: ContractAuthorizations: wiretype end group for non-group")
  3242  		}
  3243  		if fieldNum <= 0 {
  3244  			return fmt.Errorf("proto: ContractAuthorizations: illegal tag %d (wire type %d)", fieldNum, wire)
  3245  		}
  3246  		switch fieldNum {
  3247  		case 1:
  3248  			if wireType != 2 {
  3249  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  3250  			}
  3251  			var stringLen uint64
  3252  			for shift := uint(0); ; shift += 7 {
  3253  				if shift >= 64 {
  3254  					return ErrIntOverflowGenesis
  3255  				}
  3256  				if iNdEx >= l {
  3257  					return io.ErrUnexpectedEOF
  3258  				}
  3259  				b := dAtA[iNdEx]
  3260  				iNdEx++
  3261  				stringLen |= uint64(b&0x7F) << shift
  3262  				if b < 0x80 {
  3263  					break
  3264  				}
  3265  			}
  3266  			intStringLen := int(stringLen)
  3267  			if intStringLen < 0 {
  3268  				return ErrInvalidLengthGenesis
  3269  			}
  3270  			postIndex := iNdEx + intStringLen
  3271  			if postIndex < 0 {
  3272  				return ErrInvalidLengthGenesis
  3273  			}
  3274  			if postIndex > l {
  3275  				return io.ErrUnexpectedEOF
  3276  			}
  3277  			m.ContractId = string(dAtA[iNdEx:postIndex])
  3278  			iNdEx = postIndex
  3279  		case 2:
  3280  			if wireType != 2 {
  3281  				return fmt.Errorf("proto: wrong wireType = %d for field Authorizations", wireType)
  3282  			}
  3283  			var msglen int
  3284  			for shift := uint(0); ; shift += 7 {
  3285  				if shift >= 64 {
  3286  					return ErrIntOverflowGenesis
  3287  				}
  3288  				if iNdEx >= l {
  3289  					return io.ErrUnexpectedEOF
  3290  				}
  3291  				b := dAtA[iNdEx]
  3292  				iNdEx++
  3293  				msglen |= int(b&0x7F) << shift
  3294  				if b < 0x80 {
  3295  					break
  3296  				}
  3297  			}
  3298  			if msglen < 0 {
  3299  				return ErrInvalidLengthGenesis
  3300  			}
  3301  			postIndex := iNdEx + msglen
  3302  			if postIndex < 0 {
  3303  				return ErrInvalidLengthGenesis
  3304  			}
  3305  			if postIndex > l {
  3306  				return io.ErrUnexpectedEOF
  3307  			}
  3308  			m.Authorizations = append(m.Authorizations, Authorization{})
  3309  			if err := m.Authorizations[len(m.Authorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3310  				return err
  3311  			}
  3312  			iNdEx = postIndex
  3313  		default:
  3314  			iNdEx = preIndex
  3315  			skippy, err := skipGenesis(dAtA[iNdEx:])
  3316  			if err != nil {
  3317  				return err
  3318  			}
  3319  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3320  				return ErrInvalidLengthGenesis
  3321  			}
  3322  			if (iNdEx + skippy) > l {
  3323  				return io.ErrUnexpectedEOF
  3324  			}
  3325  			iNdEx += skippy
  3326  		}
  3327  	}
  3328  
  3329  	if iNdEx > l {
  3330  		return io.ErrUnexpectedEOF
  3331  	}
  3332  	return nil
  3333  }
  3334  func (m *ContractGrants) Unmarshal(dAtA []byte) error {
  3335  	l := len(dAtA)
  3336  	iNdEx := 0
  3337  	for iNdEx < l {
  3338  		preIndex := iNdEx
  3339  		var wire uint64
  3340  		for shift := uint(0); ; shift += 7 {
  3341  			if shift >= 64 {
  3342  				return ErrIntOverflowGenesis
  3343  			}
  3344  			if iNdEx >= l {
  3345  				return io.ErrUnexpectedEOF
  3346  			}
  3347  			b := dAtA[iNdEx]
  3348  			iNdEx++
  3349  			wire |= uint64(b&0x7F) << shift
  3350  			if b < 0x80 {
  3351  				break
  3352  			}
  3353  		}
  3354  		fieldNum := int32(wire >> 3)
  3355  		wireType := int(wire & 0x7)
  3356  		if wireType == 4 {
  3357  			return fmt.Errorf("proto: ContractGrants: wiretype end group for non-group")
  3358  		}
  3359  		if fieldNum <= 0 {
  3360  			return fmt.Errorf("proto: ContractGrants: illegal tag %d (wire type %d)", fieldNum, wire)
  3361  		}
  3362  		switch fieldNum {
  3363  		case 1:
  3364  			if wireType != 2 {
  3365  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  3366  			}
  3367  			var stringLen uint64
  3368  			for shift := uint(0); ; shift += 7 {
  3369  				if shift >= 64 {
  3370  					return ErrIntOverflowGenesis
  3371  				}
  3372  				if iNdEx >= l {
  3373  					return io.ErrUnexpectedEOF
  3374  				}
  3375  				b := dAtA[iNdEx]
  3376  				iNdEx++
  3377  				stringLen |= uint64(b&0x7F) << shift
  3378  				if b < 0x80 {
  3379  					break
  3380  				}
  3381  			}
  3382  			intStringLen := int(stringLen)
  3383  			if intStringLen < 0 {
  3384  				return ErrInvalidLengthGenesis
  3385  			}
  3386  			postIndex := iNdEx + intStringLen
  3387  			if postIndex < 0 {
  3388  				return ErrInvalidLengthGenesis
  3389  			}
  3390  			if postIndex > l {
  3391  				return io.ErrUnexpectedEOF
  3392  			}
  3393  			m.ContractId = string(dAtA[iNdEx:postIndex])
  3394  			iNdEx = postIndex
  3395  		case 2:
  3396  			if wireType != 2 {
  3397  				return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType)
  3398  			}
  3399  			var msglen int
  3400  			for shift := uint(0); ; shift += 7 {
  3401  				if shift >= 64 {
  3402  					return ErrIntOverflowGenesis
  3403  				}
  3404  				if iNdEx >= l {
  3405  					return io.ErrUnexpectedEOF
  3406  				}
  3407  				b := dAtA[iNdEx]
  3408  				iNdEx++
  3409  				msglen |= int(b&0x7F) << shift
  3410  				if b < 0x80 {
  3411  					break
  3412  				}
  3413  			}
  3414  			if msglen < 0 {
  3415  				return ErrInvalidLengthGenesis
  3416  			}
  3417  			postIndex := iNdEx + msglen
  3418  			if postIndex < 0 {
  3419  				return ErrInvalidLengthGenesis
  3420  			}
  3421  			if postIndex > l {
  3422  				return io.ErrUnexpectedEOF
  3423  			}
  3424  			m.Grants = append(m.Grants, Grant{})
  3425  			if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3426  				return err
  3427  			}
  3428  			iNdEx = postIndex
  3429  		default:
  3430  			iNdEx = preIndex
  3431  			skippy, err := skipGenesis(dAtA[iNdEx:])
  3432  			if err != nil {
  3433  				return err
  3434  			}
  3435  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3436  				return ErrInvalidLengthGenesis
  3437  			}
  3438  			if (iNdEx + skippy) > l {
  3439  				return io.ErrUnexpectedEOF
  3440  			}
  3441  			iNdEx += skippy
  3442  		}
  3443  	}
  3444  
  3445  	if iNdEx > l {
  3446  		return io.ErrUnexpectedEOF
  3447  	}
  3448  	return nil
  3449  }
  3450  func (m *NextClassIDs) Unmarshal(dAtA []byte) error {
  3451  	l := len(dAtA)
  3452  	iNdEx := 0
  3453  	for iNdEx < l {
  3454  		preIndex := iNdEx
  3455  		var wire uint64
  3456  		for shift := uint(0); ; shift += 7 {
  3457  			if shift >= 64 {
  3458  				return ErrIntOverflowGenesis
  3459  			}
  3460  			if iNdEx >= l {
  3461  				return io.ErrUnexpectedEOF
  3462  			}
  3463  			b := dAtA[iNdEx]
  3464  			iNdEx++
  3465  			wire |= uint64(b&0x7F) << shift
  3466  			if b < 0x80 {
  3467  				break
  3468  			}
  3469  		}
  3470  		fieldNum := int32(wire >> 3)
  3471  		wireType := int(wire & 0x7)
  3472  		if wireType == 4 {
  3473  			return fmt.Errorf("proto: NextClassIDs: wiretype end group for non-group")
  3474  		}
  3475  		if fieldNum <= 0 {
  3476  			return fmt.Errorf("proto: NextClassIDs: illegal tag %d (wire type %d)", fieldNum, wire)
  3477  		}
  3478  		switch fieldNum {
  3479  		case 1:
  3480  			if wireType != 2 {
  3481  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  3482  			}
  3483  			var stringLen uint64
  3484  			for shift := uint(0); ; shift += 7 {
  3485  				if shift >= 64 {
  3486  					return ErrIntOverflowGenesis
  3487  				}
  3488  				if iNdEx >= l {
  3489  					return io.ErrUnexpectedEOF
  3490  				}
  3491  				b := dAtA[iNdEx]
  3492  				iNdEx++
  3493  				stringLen |= uint64(b&0x7F) << shift
  3494  				if b < 0x80 {
  3495  					break
  3496  				}
  3497  			}
  3498  			intStringLen := int(stringLen)
  3499  			if intStringLen < 0 {
  3500  				return ErrInvalidLengthGenesis
  3501  			}
  3502  			postIndex := iNdEx + intStringLen
  3503  			if postIndex < 0 {
  3504  				return ErrInvalidLengthGenesis
  3505  			}
  3506  			if postIndex > l {
  3507  				return io.ErrUnexpectedEOF
  3508  			}
  3509  			m.ContractId = string(dAtA[iNdEx:postIndex])
  3510  			iNdEx = postIndex
  3511  		case 2:
  3512  			if wireType != 2 {
  3513  				return fmt.Errorf("proto: wrong wireType = %d for field Fungible", wireType)
  3514  			}
  3515  			var stringLen uint64
  3516  			for shift := uint(0); ; shift += 7 {
  3517  				if shift >= 64 {
  3518  					return ErrIntOverflowGenesis
  3519  				}
  3520  				if iNdEx >= l {
  3521  					return io.ErrUnexpectedEOF
  3522  				}
  3523  				b := dAtA[iNdEx]
  3524  				iNdEx++
  3525  				stringLen |= uint64(b&0x7F) << shift
  3526  				if b < 0x80 {
  3527  					break
  3528  				}
  3529  			}
  3530  			intStringLen := int(stringLen)
  3531  			if intStringLen < 0 {
  3532  				return ErrInvalidLengthGenesis
  3533  			}
  3534  			postIndex := iNdEx + intStringLen
  3535  			if postIndex < 0 {
  3536  				return ErrInvalidLengthGenesis
  3537  			}
  3538  			if postIndex > l {
  3539  				return io.ErrUnexpectedEOF
  3540  			}
  3541  			if err := m.Fungible.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3542  				return err
  3543  			}
  3544  			iNdEx = postIndex
  3545  		case 3:
  3546  			if wireType != 2 {
  3547  				return fmt.Errorf("proto: wrong wireType = %d for field NonFungible", wireType)
  3548  			}
  3549  			var stringLen uint64
  3550  			for shift := uint(0); ; shift += 7 {
  3551  				if shift >= 64 {
  3552  					return ErrIntOverflowGenesis
  3553  				}
  3554  				if iNdEx >= l {
  3555  					return io.ErrUnexpectedEOF
  3556  				}
  3557  				b := dAtA[iNdEx]
  3558  				iNdEx++
  3559  				stringLen |= uint64(b&0x7F) << shift
  3560  				if b < 0x80 {
  3561  					break
  3562  				}
  3563  			}
  3564  			intStringLen := int(stringLen)
  3565  			if intStringLen < 0 {
  3566  				return ErrInvalidLengthGenesis
  3567  			}
  3568  			postIndex := iNdEx + intStringLen
  3569  			if postIndex < 0 {
  3570  				return ErrInvalidLengthGenesis
  3571  			}
  3572  			if postIndex > l {
  3573  				return io.ErrUnexpectedEOF
  3574  			}
  3575  			if err := m.NonFungible.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3576  				return err
  3577  			}
  3578  			iNdEx = postIndex
  3579  		default:
  3580  			iNdEx = preIndex
  3581  			skippy, err := skipGenesis(dAtA[iNdEx:])
  3582  			if err != nil {
  3583  				return err
  3584  			}
  3585  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3586  				return ErrInvalidLengthGenesis
  3587  			}
  3588  			if (iNdEx + skippy) > l {
  3589  				return io.ErrUnexpectedEOF
  3590  			}
  3591  			iNdEx += skippy
  3592  		}
  3593  	}
  3594  
  3595  	if iNdEx > l {
  3596  		return io.ErrUnexpectedEOF
  3597  	}
  3598  	return nil
  3599  }
  3600  func (m *ContractNextTokenIDs) Unmarshal(dAtA []byte) error {
  3601  	l := len(dAtA)
  3602  	iNdEx := 0
  3603  	for iNdEx < l {
  3604  		preIndex := iNdEx
  3605  		var wire uint64
  3606  		for shift := uint(0); ; shift += 7 {
  3607  			if shift >= 64 {
  3608  				return ErrIntOverflowGenesis
  3609  			}
  3610  			if iNdEx >= l {
  3611  				return io.ErrUnexpectedEOF
  3612  			}
  3613  			b := dAtA[iNdEx]
  3614  			iNdEx++
  3615  			wire |= uint64(b&0x7F) << shift
  3616  			if b < 0x80 {
  3617  				break
  3618  			}
  3619  		}
  3620  		fieldNum := int32(wire >> 3)
  3621  		wireType := int(wire & 0x7)
  3622  		if wireType == 4 {
  3623  			return fmt.Errorf("proto: ContractNextTokenIDs: wiretype end group for non-group")
  3624  		}
  3625  		if fieldNum <= 0 {
  3626  			return fmt.Errorf("proto: ContractNextTokenIDs: illegal tag %d (wire type %d)", fieldNum, wire)
  3627  		}
  3628  		switch fieldNum {
  3629  		case 1:
  3630  			if wireType != 2 {
  3631  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  3632  			}
  3633  			var stringLen uint64
  3634  			for shift := uint(0); ; shift += 7 {
  3635  				if shift >= 64 {
  3636  					return ErrIntOverflowGenesis
  3637  				}
  3638  				if iNdEx >= l {
  3639  					return io.ErrUnexpectedEOF
  3640  				}
  3641  				b := dAtA[iNdEx]
  3642  				iNdEx++
  3643  				stringLen |= uint64(b&0x7F) << shift
  3644  				if b < 0x80 {
  3645  					break
  3646  				}
  3647  			}
  3648  			intStringLen := int(stringLen)
  3649  			if intStringLen < 0 {
  3650  				return ErrInvalidLengthGenesis
  3651  			}
  3652  			postIndex := iNdEx + intStringLen
  3653  			if postIndex < 0 {
  3654  				return ErrInvalidLengthGenesis
  3655  			}
  3656  			if postIndex > l {
  3657  				return io.ErrUnexpectedEOF
  3658  			}
  3659  			m.ContractId = string(dAtA[iNdEx:postIndex])
  3660  			iNdEx = postIndex
  3661  		case 2:
  3662  			if wireType != 2 {
  3663  				return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType)
  3664  			}
  3665  			var msglen int
  3666  			for shift := uint(0); ; shift += 7 {
  3667  				if shift >= 64 {
  3668  					return ErrIntOverflowGenesis
  3669  				}
  3670  				if iNdEx >= l {
  3671  					return io.ErrUnexpectedEOF
  3672  				}
  3673  				b := dAtA[iNdEx]
  3674  				iNdEx++
  3675  				msglen |= int(b&0x7F) << shift
  3676  				if b < 0x80 {
  3677  					break
  3678  				}
  3679  			}
  3680  			if msglen < 0 {
  3681  				return ErrInvalidLengthGenesis
  3682  			}
  3683  			postIndex := iNdEx + msglen
  3684  			if postIndex < 0 {
  3685  				return ErrInvalidLengthGenesis
  3686  			}
  3687  			if postIndex > l {
  3688  				return io.ErrUnexpectedEOF
  3689  			}
  3690  			m.TokenIds = append(m.TokenIds, NextTokenID{})
  3691  			if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3692  				return err
  3693  			}
  3694  			iNdEx = postIndex
  3695  		default:
  3696  			iNdEx = preIndex
  3697  			skippy, err := skipGenesis(dAtA[iNdEx:])
  3698  			if err != nil {
  3699  				return err
  3700  			}
  3701  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3702  				return ErrInvalidLengthGenesis
  3703  			}
  3704  			if (iNdEx + skippy) > l {
  3705  				return io.ErrUnexpectedEOF
  3706  			}
  3707  			iNdEx += skippy
  3708  		}
  3709  	}
  3710  
  3711  	if iNdEx > l {
  3712  		return io.ErrUnexpectedEOF
  3713  	}
  3714  	return nil
  3715  }
  3716  func (m *NextTokenID) Unmarshal(dAtA []byte) error {
  3717  	l := len(dAtA)
  3718  	iNdEx := 0
  3719  	for iNdEx < l {
  3720  		preIndex := iNdEx
  3721  		var wire uint64
  3722  		for shift := uint(0); ; shift += 7 {
  3723  			if shift >= 64 {
  3724  				return ErrIntOverflowGenesis
  3725  			}
  3726  			if iNdEx >= l {
  3727  				return io.ErrUnexpectedEOF
  3728  			}
  3729  			b := dAtA[iNdEx]
  3730  			iNdEx++
  3731  			wire |= uint64(b&0x7F) << shift
  3732  			if b < 0x80 {
  3733  				break
  3734  			}
  3735  		}
  3736  		fieldNum := int32(wire >> 3)
  3737  		wireType := int(wire & 0x7)
  3738  		if wireType == 4 {
  3739  			return fmt.Errorf("proto: NextTokenID: wiretype end group for non-group")
  3740  		}
  3741  		if fieldNum <= 0 {
  3742  			return fmt.Errorf("proto: NextTokenID: illegal tag %d (wire type %d)", fieldNum, wire)
  3743  		}
  3744  		switch fieldNum {
  3745  		case 1:
  3746  			if wireType != 2 {
  3747  				return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType)
  3748  			}
  3749  			var stringLen uint64
  3750  			for shift := uint(0); ; shift += 7 {
  3751  				if shift >= 64 {
  3752  					return ErrIntOverflowGenesis
  3753  				}
  3754  				if iNdEx >= l {
  3755  					return io.ErrUnexpectedEOF
  3756  				}
  3757  				b := dAtA[iNdEx]
  3758  				iNdEx++
  3759  				stringLen |= uint64(b&0x7F) << shift
  3760  				if b < 0x80 {
  3761  					break
  3762  				}
  3763  			}
  3764  			intStringLen := int(stringLen)
  3765  			if intStringLen < 0 {
  3766  				return ErrInvalidLengthGenesis
  3767  			}
  3768  			postIndex := iNdEx + intStringLen
  3769  			if postIndex < 0 {
  3770  				return ErrInvalidLengthGenesis
  3771  			}
  3772  			if postIndex > l {
  3773  				return io.ErrUnexpectedEOF
  3774  			}
  3775  			m.ClassId = string(dAtA[iNdEx:postIndex])
  3776  			iNdEx = postIndex
  3777  		case 2:
  3778  			if wireType != 2 {
  3779  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  3780  			}
  3781  			var stringLen uint64
  3782  			for shift := uint(0); ; shift += 7 {
  3783  				if shift >= 64 {
  3784  					return ErrIntOverflowGenesis
  3785  				}
  3786  				if iNdEx >= l {
  3787  					return io.ErrUnexpectedEOF
  3788  				}
  3789  				b := dAtA[iNdEx]
  3790  				iNdEx++
  3791  				stringLen |= uint64(b&0x7F) << shift
  3792  				if b < 0x80 {
  3793  					break
  3794  				}
  3795  			}
  3796  			intStringLen := int(stringLen)
  3797  			if intStringLen < 0 {
  3798  				return ErrInvalidLengthGenesis
  3799  			}
  3800  			postIndex := iNdEx + intStringLen
  3801  			if postIndex < 0 {
  3802  				return ErrInvalidLengthGenesis
  3803  			}
  3804  			if postIndex > l {
  3805  				return io.ErrUnexpectedEOF
  3806  			}
  3807  			if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3808  				return err
  3809  			}
  3810  			iNdEx = postIndex
  3811  		default:
  3812  			iNdEx = preIndex
  3813  			skippy, err := skipGenesis(dAtA[iNdEx:])
  3814  			if err != nil {
  3815  				return err
  3816  			}
  3817  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3818  				return ErrInvalidLengthGenesis
  3819  			}
  3820  			if (iNdEx + skippy) > l {
  3821  				return io.ErrUnexpectedEOF
  3822  			}
  3823  			iNdEx += skippy
  3824  		}
  3825  	}
  3826  
  3827  	if iNdEx > l {
  3828  		return io.ErrUnexpectedEOF
  3829  	}
  3830  	return nil
  3831  }
  3832  func (m *ContractTokenRelations) Unmarshal(dAtA []byte) error {
  3833  	l := len(dAtA)
  3834  	iNdEx := 0
  3835  	for iNdEx < l {
  3836  		preIndex := iNdEx
  3837  		var wire uint64
  3838  		for shift := uint(0); ; shift += 7 {
  3839  			if shift >= 64 {
  3840  				return ErrIntOverflowGenesis
  3841  			}
  3842  			if iNdEx >= l {
  3843  				return io.ErrUnexpectedEOF
  3844  			}
  3845  			b := dAtA[iNdEx]
  3846  			iNdEx++
  3847  			wire |= uint64(b&0x7F) << shift
  3848  			if b < 0x80 {
  3849  				break
  3850  			}
  3851  		}
  3852  		fieldNum := int32(wire >> 3)
  3853  		wireType := int(wire & 0x7)
  3854  		if wireType == 4 {
  3855  			return fmt.Errorf("proto: ContractTokenRelations: wiretype end group for non-group")
  3856  		}
  3857  		if fieldNum <= 0 {
  3858  			return fmt.Errorf("proto: ContractTokenRelations: illegal tag %d (wire type %d)", fieldNum, wire)
  3859  		}
  3860  		switch fieldNum {
  3861  		case 1:
  3862  			if wireType != 2 {
  3863  				return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType)
  3864  			}
  3865  			var stringLen uint64
  3866  			for shift := uint(0); ; shift += 7 {
  3867  				if shift >= 64 {
  3868  					return ErrIntOverflowGenesis
  3869  				}
  3870  				if iNdEx >= l {
  3871  					return io.ErrUnexpectedEOF
  3872  				}
  3873  				b := dAtA[iNdEx]
  3874  				iNdEx++
  3875  				stringLen |= uint64(b&0x7F) << shift
  3876  				if b < 0x80 {
  3877  					break
  3878  				}
  3879  			}
  3880  			intStringLen := int(stringLen)
  3881  			if intStringLen < 0 {
  3882  				return ErrInvalidLengthGenesis
  3883  			}
  3884  			postIndex := iNdEx + intStringLen
  3885  			if postIndex < 0 {
  3886  				return ErrInvalidLengthGenesis
  3887  			}
  3888  			if postIndex > l {
  3889  				return io.ErrUnexpectedEOF
  3890  			}
  3891  			m.ContractId = string(dAtA[iNdEx:postIndex])
  3892  			iNdEx = postIndex
  3893  		case 2:
  3894  			if wireType != 2 {
  3895  				return fmt.Errorf("proto: wrong wireType = %d for field Relations", wireType)
  3896  			}
  3897  			var msglen int
  3898  			for shift := uint(0); ; shift += 7 {
  3899  				if shift >= 64 {
  3900  					return ErrIntOverflowGenesis
  3901  				}
  3902  				if iNdEx >= l {
  3903  					return io.ErrUnexpectedEOF
  3904  				}
  3905  				b := dAtA[iNdEx]
  3906  				iNdEx++
  3907  				msglen |= int(b&0x7F) << shift
  3908  				if b < 0x80 {
  3909  					break
  3910  				}
  3911  			}
  3912  			if msglen < 0 {
  3913  				return ErrInvalidLengthGenesis
  3914  			}
  3915  			postIndex := iNdEx + msglen
  3916  			if postIndex < 0 {
  3917  				return ErrInvalidLengthGenesis
  3918  			}
  3919  			if postIndex > l {
  3920  				return io.ErrUnexpectedEOF
  3921  			}
  3922  			m.Relations = append(m.Relations, TokenRelation{})
  3923  			if err := m.Relations[len(m.Relations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3924  				return err
  3925  			}
  3926  			iNdEx = postIndex
  3927  		default:
  3928  			iNdEx = preIndex
  3929  			skippy, err := skipGenesis(dAtA[iNdEx:])
  3930  			if err != nil {
  3931  				return err
  3932  			}
  3933  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3934  				return ErrInvalidLengthGenesis
  3935  			}
  3936  			if (iNdEx + skippy) > l {
  3937  				return io.ErrUnexpectedEOF
  3938  			}
  3939  			iNdEx += skippy
  3940  		}
  3941  	}
  3942  
  3943  	if iNdEx > l {
  3944  		return io.ErrUnexpectedEOF
  3945  	}
  3946  	return nil
  3947  }
  3948  func (m *TokenRelation) Unmarshal(dAtA []byte) error {
  3949  	l := len(dAtA)
  3950  	iNdEx := 0
  3951  	for iNdEx < l {
  3952  		preIndex := iNdEx
  3953  		var wire uint64
  3954  		for shift := uint(0); ; shift += 7 {
  3955  			if shift >= 64 {
  3956  				return ErrIntOverflowGenesis
  3957  			}
  3958  			if iNdEx >= l {
  3959  				return io.ErrUnexpectedEOF
  3960  			}
  3961  			b := dAtA[iNdEx]
  3962  			iNdEx++
  3963  			wire |= uint64(b&0x7F) << shift
  3964  			if b < 0x80 {
  3965  				break
  3966  			}
  3967  		}
  3968  		fieldNum := int32(wire >> 3)
  3969  		wireType := int(wire & 0x7)
  3970  		if wireType == 4 {
  3971  			return fmt.Errorf("proto: TokenRelation: wiretype end group for non-group")
  3972  		}
  3973  		if fieldNum <= 0 {
  3974  			return fmt.Errorf("proto: TokenRelation: illegal tag %d (wire type %d)", fieldNum, wire)
  3975  		}
  3976  		switch fieldNum {
  3977  		case 1:
  3978  			if wireType != 2 {
  3979  				return fmt.Errorf("proto: wrong wireType = %d for field Self", wireType)
  3980  			}
  3981  			var stringLen uint64
  3982  			for shift := uint(0); ; shift += 7 {
  3983  				if shift >= 64 {
  3984  					return ErrIntOverflowGenesis
  3985  				}
  3986  				if iNdEx >= l {
  3987  					return io.ErrUnexpectedEOF
  3988  				}
  3989  				b := dAtA[iNdEx]
  3990  				iNdEx++
  3991  				stringLen |= uint64(b&0x7F) << shift
  3992  				if b < 0x80 {
  3993  					break
  3994  				}
  3995  			}
  3996  			intStringLen := int(stringLen)
  3997  			if intStringLen < 0 {
  3998  				return ErrInvalidLengthGenesis
  3999  			}
  4000  			postIndex := iNdEx + intStringLen
  4001  			if postIndex < 0 {
  4002  				return ErrInvalidLengthGenesis
  4003  			}
  4004  			if postIndex > l {
  4005  				return io.ErrUnexpectedEOF
  4006  			}
  4007  			m.Self = string(dAtA[iNdEx:postIndex])
  4008  			iNdEx = postIndex
  4009  		case 2:
  4010  			if wireType != 2 {
  4011  				return fmt.Errorf("proto: wrong wireType = %d for field Other", wireType)
  4012  			}
  4013  			var stringLen uint64
  4014  			for shift := uint(0); ; shift += 7 {
  4015  				if shift >= 64 {
  4016  					return ErrIntOverflowGenesis
  4017  				}
  4018  				if iNdEx >= l {
  4019  					return io.ErrUnexpectedEOF
  4020  				}
  4021  				b := dAtA[iNdEx]
  4022  				iNdEx++
  4023  				stringLen |= uint64(b&0x7F) << shift
  4024  				if b < 0x80 {
  4025  					break
  4026  				}
  4027  			}
  4028  			intStringLen := int(stringLen)
  4029  			if intStringLen < 0 {
  4030  				return ErrInvalidLengthGenesis
  4031  			}
  4032  			postIndex := iNdEx + intStringLen
  4033  			if postIndex < 0 {
  4034  				return ErrInvalidLengthGenesis
  4035  			}
  4036  			if postIndex > l {
  4037  				return io.ErrUnexpectedEOF
  4038  			}
  4039  			m.Other = string(dAtA[iNdEx:postIndex])
  4040  			iNdEx = postIndex
  4041  		default:
  4042  			iNdEx = preIndex
  4043  			skippy, err := skipGenesis(dAtA[iNdEx:])
  4044  			if err != nil {
  4045  				return err
  4046  			}
  4047  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4048  				return ErrInvalidLengthGenesis
  4049  			}
  4050  			if (iNdEx + skippy) > l {
  4051  				return io.ErrUnexpectedEOF
  4052  			}
  4053  			iNdEx += skippy
  4054  		}
  4055  	}
  4056  
  4057  	if iNdEx > l {
  4058  		return io.ErrUnexpectedEOF
  4059  	}
  4060  	return nil
  4061  }
  4062  func skipGenesis(dAtA []byte) (n int, err error) {
  4063  	l := len(dAtA)
  4064  	iNdEx := 0
  4065  	depth := 0
  4066  	for iNdEx < l {
  4067  		var wire uint64
  4068  		for shift := uint(0); ; shift += 7 {
  4069  			if shift >= 64 {
  4070  				return 0, ErrIntOverflowGenesis
  4071  			}
  4072  			if iNdEx >= l {
  4073  				return 0, io.ErrUnexpectedEOF
  4074  			}
  4075  			b := dAtA[iNdEx]
  4076  			iNdEx++
  4077  			wire |= (uint64(b) & 0x7F) << shift
  4078  			if b < 0x80 {
  4079  				break
  4080  			}
  4081  		}
  4082  		wireType := int(wire & 0x7)
  4083  		switch wireType {
  4084  		case 0:
  4085  			for shift := uint(0); ; shift += 7 {
  4086  				if shift >= 64 {
  4087  					return 0, ErrIntOverflowGenesis
  4088  				}
  4089  				if iNdEx >= l {
  4090  					return 0, io.ErrUnexpectedEOF
  4091  				}
  4092  				iNdEx++
  4093  				if dAtA[iNdEx-1] < 0x80 {
  4094  					break
  4095  				}
  4096  			}
  4097  		case 1:
  4098  			iNdEx += 8
  4099  		case 2:
  4100  			var length int
  4101  			for shift := uint(0); ; shift += 7 {
  4102  				if shift >= 64 {
  4103  					return 0, ErrIntOverflowGenesis
  4104  				}
  4105  				if iNdEx >= l {
  4106  					return 0, io.ErrUnexpectedEOF
  4107  				}
  4108  				b := dAtA[iNdEx]
  4109  				iNdEx++
  4110  				length |= (int(b) & 0x7F) << shift
  4111  				if b < 0x80 {
  4112  					break
  4113  				}
  4114  			}
  4115  			if length < 0 {
  4116  				return 0, ErrInvalidLengthGenesis
  4117  			}
  4118  			iNdEx += length
  4119  		case 3:
  4120  			depth++
  4121  		case 4:
  4122  			if depth == 0 {
  4123  				return 0, ErrUnexpectedEndOfGroupGenesis
  4124  			}
  4125  			depth--
  4126  		case 5:
  4127  			iNdEx += 4
  4128  		default:
  4129  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4130  		}
  4131  		if iNdEx < 0 {
  4132  			return 0, ErrInvalidLengthGenesis
  4133  		}
  4134  		if depth == 0 {
  4135  			return iNdEx, nil
  4136  		}
  4137  	}
  4138  	return 0, io.ErrUnexpectedEOF
  4139  }
  4140  
  4141  var (
  4142  	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
  4143  	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
  4144  	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
  4145  )